summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-05-23 12:28:58 +0000
committerWerner Koch <wk@gnupg.org>1999-05-23 12:28:58 +0000
commit34acff18576ef7e77bf5fd10e192b99f74dc4205 (patch)
tree2e3bb4fe2be50bd2190192a8ea7b724a78bd1b4c /acinclude.m4
parent1fbfd5a4b5381ff4f8d857da621449a6152248c2 (diff)
downloadlibgcrypt-34acff18576ef7e77bf5fd10e192b99f74dc4205.tar.gz
See ChangeLog: Sun May 23 14:20:22 CEST 1999 Werner KochV0-9-7
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m410
1 files changed, 8 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2d2ab4d7..fdb8d147 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -553,9 +553,14 @@ AC_CHECK_TOOL(AS, as, false)
])
# GNUPG_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols
-# with an underscore?
+# with an underscore?
AC_DEFUN(GNUPG_SYS_SYMBOL_UNDERSCORE,
-[AC_REQUIRE([GNUPG_PROG_NM])dnl
+[if test "$cross_compiling" = yes; then
+ AC_MSG_CHECKING([for _ prefix in compiled symbols])
+ ac_cv_sys_symbol_underscore=yes
+ AC_MSG_RESULT(assume yes)
+else
+AC_REQUIRE([GNUPG_PROG_NM])dnl
AC_REQUIRE([GNUPG_SYS_NM_PARSE])dnl
AC_MSG_CHECKING([for _ prefix in compiled symbols])
AC_CACHE_VAL(ac_cv_sys_symbol_underscore,
@@ -588,6 +593,7 @@ fi
rm -rf conftest*
])
AC_MSG_RESULT($ac_cv_sys_symbol_underscore)
+fi
if test x$ac_cv_sys_symbol_underscore = xyes; then
AC_DEFINE(WITH_SYMBOL_UNDERSCORE,1,
[define if compiled symbols have a leading underscore])