From: Francesco Chemolli Date: Sat, 23 Apr 2011 05:32:01 +0000 (+0200) Subject: Portability fix: always install libltdl and change autoconf initialization X-Git-Tag: take07~16^2~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2b602326ac0d0d435c2346e8d1a5e30b90b46b3;p=thirdparty%2Fsquid.git Portability fix: always install libltdl and change autoconf initialization --- diff --git a/bootstrap.sh b/bootstrap.sh index 9a2d1add49..0bebfe9e84 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -74,14 +74,7 @@ bootstrap() { bootstrap_libtoolize() { ltver=$1 - # TODO: when we have libtool2, tell libtoolize where to put its files - # instead of manualy moving files from ltdl to lib/libLtdl - if egrep -q '^[[:space:]]*AC_LIBLTDL_' configure.ac - then - ltdl="--ltdl" - else - ltdl="" - fi + ltdl="--ltdl" bootstrap libtoolize$ltver $ltdl --force --copy --automake diff --git a/configure.ac b/configure.ac index b454a79248..f9640ff333 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,12 @@ fi AC_MSG_RESULT($squid_host_os (version $squid_host_os_version)) # on windows squid_host_os is either mingw or cygwin, version is 32 +# this needs to be before any test is run, to have more standard +# functions available on some Unix sysems (e.g. Solaris) +if test "x$squid_host_os" = "solaris" -a "x$GCC" != "x" ; then + AC_USE_SYSTEM_EXTENSIONS +fi + # test for programs AC_PROG_RANLIB AC_PROG_CPP @@ -78,12 +84,6 @@ AC_PATH_PROG(AR, ar, $FALSE) AR_R="$AR r" AC_SUBST(AR_R) -# this needs to be before any test is run, to have more standard -# functions available on some Unix sysems (e.g. Solaris) -if test "x$squid_host_os" = "solaris" -a "x$GCC" != "x" ; then - AC_USE_SYSTEM_EXTENSIONS -fi - AC_ARG_ENABLE(strict-error-checking, AS_HELP_STRING([--disable-strict-error-checking],[By default squid is compiled with all possible static compiler error-checks enabled. @@ -110,6 +110,7 @@ else AC_DISABLE_SHARED fi +AC_PROG_LIBTOOL LT_INIT([dlopen],[disable-shared]) if ! test "${ac_top_build_prefix}" = ""; then