diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-10-24 21:26:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-10-24 21:26:04 +0000 |
commit | fcfc6de9185bffa8460f5ae4aedd3aed8835a0c5 (patch) | |
tree | 70a308bf2971e0f60147872e5e5ff82b6082bf16 /configure.ac | |
parent | da0b380655ad10865c8e56b15641373b656f0807 (diff) | |
download | curl-fcfc6de9185bffa8460f5ae4aedd3aed8835a0c5.tar.gz |
Based on David Hull's fix in bug report 804599, we now check for solaris
and gcc, to set the -mimpure-text link flag for linking the lib better.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b6d27d18b..1af433377 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,7 @@ AC_LIBTOOL_WIN32_DLL dnl libtool setup AM_PROG_LIBTOOL +AC_MSG_CHECKING([if we need -no-undefined]) case $host in *-*-cygwin | *-*-mingw* | *-*-pw32*) need_no_undefined=yes @@ -74,9 +75,23 @@ case $host in need_no_undefined=no ;; esac - +AC_MSG_RESULT($need_no_undefined) AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes) +AC_MSG_CHECKING([if we need -mimpure-text]) +case $host in + *-*-solaris2*) + if test "$GCC" = "yes"; then + mimpure="yes" + fi + ;; + *) + mimpure=no + ;; +esac +AC_MSG_RESULT($mimpure) +AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes) + dnl The install stuff has already been taken care of by the automake stuff dnl AC_PROG_INSTALL AC_PROG_MAKE_SET |