summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-05-23 14:29:05 +0200
committerWerner Koch <wk@gnupg.org>1999-05-23 14:29:05 +0200
commitc7447e78e2abb1298fecb9861fe420109c91f14f (patch)
treeb7a7954789898fc3cac24f43cbd0d32ec139f9f2 /acinclude.m4
parentSee ChangeLog: Sat May 22 22:47:26 CEST 1999 Werner Koch (diff)
downloadgnupg2-c7447e78e2abb1298fecb9861fe420109c91f14f.tar.xz
gnupg2-c7447e78e2abb1298fecb9861fe420109c91f14f.zip
See ChangeLog: Sun May 23 14:20:22 CEST 1999 Werner Koch
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 2d2ab4d7c..fdb8d147f 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])