------------------------------------------------------------ revno: 12584 revision-id: squid3@treenet.co.nz-20130704044034-geszs38xi18c3rjo parent: squid3@treenet.co.nz-20130701040025-jufqv61x88bwz0rh author: Christos Tsantilas committer: Amos Jeffries branch nick: 3.3 timestamp: Wed 2013-07-03 22:40:34 -0600 message: 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. ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20130704044034-geszs38xi18c3rjo # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # testament_sha1: f5a87c994500d1b9007f3b427bfa04065f259449 # timestamp: 2013-07-04 04:57:23 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # base_revision_id: squid3@treenet.co.nz-20130701040025-\ # jufqv61x88bwz0rh # # Begin patch === modified file 'configure.ac' --- configure.ac 2013-07-01 04:00:25 +0000 +++ configure.ac 2013-07-04 04:40:34 +0000 @@ -185,7 +185,8 @@ [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 @@ 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 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" ;;