From: Christos Tsantilas Date: Thu, 4 Jul 2013 04:40:34 +0000 (-0600) Subject: Fix build on FreeBSD 9.x platform with clang X-Git-Tag: SQUID_3_3_7~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d5fad28fc60b97bbc3e99015312f3d10a9e257b;p=thirdparty%2Fsquid.git Fix build on FreeBSD 9.x platform with clang Add the "/usr/local/*" directories to include files and libraries search paths, for clang compiler too. --- diff --git a/configure.ac b/configure.ac index 64f71ff83c..5e1bf8ace0 100644 --- a/configure.ac +++ b/configure.ac @@ -185,7 +185,8 @@ AM_CONDITIONAL(ENABLE_WIN32SPECIFIC, [test "x$squid_host_os" = "xmingw" -o "x$squid_host_os" = "xcygwin"]) AM_CONDITIONAL(USE_IPC_WIN32,[test "x$squid_host_os" = "xmingw"]) -if test "x$squid_host_os" = "xmingw"; then +case "$squid_host_os" in +mingw) AC_PATH_PROG(WIN32_PSAPI, psapi.dll, none) CFLAGS="$CFLAGS -mthreads" CXXFLAGS="$CXXFLAGS -mthreads" @@ -198,7 +199,16 @@ if test "x$squid_host_os" = "xmingw"; then fi MINGW_LIBS="-lmingwex" AC_SUBST(MINGW_LIBS) -fi + ;; +freebsd) + # FreeBSD places local libraries and packages in /usr/local + CFLAGS="$CFLAGS -I/usr/local/include" + CXXFLAGS="$CXXFLAGS -I/usr/local/include" + LDFLAGS="$LDFLAGS -L/usr/local/lib -Wl,-R/usr/local/lib" + ;; +*) + ;; +esac dnl Substitutions AC_DEFINE_UNQUOTED(CONFIG_HOST_TYPE, "$host",[Host type from configure]) @@ -319,12 +329,6 @@ dnl -Werror -Wmissing-prototypes -Wmissing-declarations dnl TODO: check if the problem will be present in any other newer MinGW release. SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments" ;; - freebsd) - # FreeBSD places local libraries and packages in /usr/local - CFLAGS="$CFLAGS -I/usr/local/include" - CXXFLAGS="$CXXFLAGS -I/usr/local/include" - LDFLAGS="$LDFLAGS -L/usr/local/lib -Wl,-R/usr/local/lib" - ;; *) SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments" ;;