diff options
author | Werner Koch <wk@gnupg.org> | 1999-05-23 14:29:05 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-05-23 14:29:05 +0200 |
commit | c7447e78e2abb1298fecb9861fe420109c91f14f (patch) | |
tree | b7a7954789898fc3cac24f43cbd0d32ec139f9f2 /acinclude.m4 | |
parent | See ChangeLog: Sat May 22 22:47:26 CEST 1999 Werner Koch (diff) | |
download | gnupg2-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.m4 | 10 |
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]) |