[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"
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])
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 -Wshadow"
;;
- 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 -Wshadow"
;;