1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-21 23:28:51 -05:00

configure: Consistently use autoconf macros for conditionals

This commit is contained in:
TingPing 2015-04-22 22:10:52 -04:00
parent 6ad9419693
commit a3c257bdb4

View File

@ -57,34 +57,34 @@ AH_VERBATIM([socklen_t],[#undef socklen_t])
AH_VERBATIM([USE_DBUS],[#undef USE_DBUS]) AH_VERBATIM([USE_DBUS],[#undef USE_DBUS])
AC_PATH_PROG(sedpath, sed) AC_PATH_PROG(sedpath, sed)
if test "_$sedpath" = _; then AS_IF([test "_$sedpath" = _], [
AC_MSG_ERROR(Cannot find sed: I need it!) AC_MSG_ERROR(Cannot find sed: I need it!)
fi ])
AC_PATH_PROG(unamepath, uname) AC_PATH_PROG(unamepath, uname)
if test "_$unamepath" = _; then AS_IF([test "_$unamepath" = _], [
system="unknown" system="unknown"
else ], [
AC_MSG_CHECKING(system type) AC_MSG_CHECKING(system type)
system=`$unamepath -s` system=`$unamepath -s`
AC_MSG_RESULT($system) AC_MSG_RESULT($system)
if test "$system" = "Linux"; then AS_IF([test "$system" = "Linux"], [
AC_DEFINE(USING_LINUX) AC_DEFINE(USING_LINUX)
fi ], [test "$system" = "FreeBSD"], [
if test "$system" = "FreeBSD"; then
AC_DEFINE(USING_FREEBSD) AC_DEFINE(USING_FREEBSD)
fi ])
fi ])
platform_win32=no platform_win32=no
platform_osx=no platform_osx=no
case $host_os in AS_CASE([$host_os],
*mingw*|*cygwin*|*msys*) [*mingw*|*cygwin*|*msys*], [
platform_win32=yes;; platform_win32=yes
darwin*) ],
platform_osx=yes;; [darwin*], [
*);; platform_osx=yes
esac ]
)
dnl ********************************************************************* dnl *********************************************************************
dnl ** configure switches *********************************************** dnl ** configure switches ***********************************************
@ -168,11 +168,11 @@ AC_ARG_WITH(theme-manager,
dnl ********************************************************************* dnl *********************************************************************
dnl ** THEME-MANAGER **************************************************** dnl ** THEME-MANAGER ****************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "x$theme_manager" != "xno" ; then AS_IF([test "x$theme_manager" != "xno"], [
if test "x$MDTOOL" = "xno"; then AS_IF([test "x$MDTOOL" = "xno"], [
AC_MSG_ERROR([No "mdtool" found, you need to install monodevelop!]) AC_MSG_ERROR([No "mdtool" found, you need to install monodevelop!])
fi ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
@ -189,27 +189,27 @@ dnl *********************************************************************
dnl ** GTK ************************************************************** dnl ** GTK **************************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "$gtkfe" = yes ; then AS_IF([test "$gtkfe" = yes], [
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.24.0], [ PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.24.0], [
GUI_LIBS="$GUI_LIBS $GTK_LIBS" GUI_LIBS="$GUI_LIBS $GTK_LIBS"
GUI_CFLAGS="$GUI_CFLAGS $GTK_CFLAGS -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED" GUI_CFLAGS="$GUI_CFLAGS $GTK_CFLAGS -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED"
], [ ], [
gtkfe=no gtkfe=no
]) ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** MAC_INTEGRATION ************************************************** dnl ** MAC_INTEGRATION **************************************************
dnl ********************************************************************* dnl *********************************************************************
_gdk_tgt=`$PKG_CONFIG --variable=target gdk-2.0` _gdk_tgt=`$PKG_CONFIG --variable=target gdk-2.0`
if test "x$_gdk_tgt" = xquartz; then AS_IF([test "x$_gdk_tgt" = xquartz], [
PKG_CHECK_MODULES(GTK_MAC, gtk-mac-integration-gtk2, [ PKG_CHECK_MODULES(GTK_MAC, gtk-mac-integration-gtk2, [
GUI_LIBS="$GUI_LIBS $GTK_MAC_LIBS" GUI_LIBS="$GUI_LIBS $GTK_MAC_LIBS"
GUI_CFLAGS="$GUI_CFLAGS $GTK_MAC_CFLAGS" GUI_CFLAGS="$GUI_CFLAGS $GTK_MAC_CFLAGS"
AC_DEFINE(HAVE_GTK_MAC) AC_DEFINE(HAVE_GTK_MAC)
]) ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** PERL ************************************************************* dnl ** PERL *************************************************************
@ -274,59 +274,59 @@ if test "$perl" = yes; then
perl=no perl=no
fi fi
fi fi
dnl ********************************************************************* dnl *********************************************************************
dnl ** PYTHON *********************************************************** dnl ** PYTHON ***********************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "x$python" != xno ; then AS_IF([test "x$python" != xno], [
AC_MSG_CHECKING(for plugin interface used by Python) AC_MSG_CHECKING(for plugin interface used by Python)
if test "$plugin" = yes; then AS_IF([test "$plugin" = yes], [
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
case $python in AS_CASE([$python],
dnl set python2 default here dnl set python2 default here
python2) [python2], [
PKG_CHECK_MODULES([PY], [python-2.7], PKG_CHECK_MODULES([PY], [python-2.7],
[PY_VER="`$PKG_CONFIG --modversion python-2.7`"], [PY_VER="`$PKG_CONFIG --modversion python-2.7`"],
[true]) [true])
;; ],
dnl set python3 default here dnl set python3 default here
python3) [python3], [
PKG_CHECK_MODULES([PY], [python-3.4], PKG_CHECK_MODULES([PY], [python-3.4],
[PY_VER="`$PKG_CONFIG --modversion python-3.4`"], [PY_VER="`$PKG_CONFIG --modversion python-3.4`"],
[true]) [true])
if test "$PY_VER" = "" ; then AS_IF([test "$PY_VER" = ""], [
PKG_CHECK_MODULES([PY], [python-3.3], PKG_CHECK_MODULES([PY], [python-3.3],
[PY_VER="`$PKG_CONFIG --modversion python-3.3`"], [PY_VER="`$PKG_CONFIG --modversion python-3.3`"],
[true]) [true])
fi ])
;; ],
dnl add broken versions here dnl add broken versions here
python2.5|python2.6|python3.1|python3.2) [python2.5|python2.6|python3.1|python3.2], [
AC_MSG_WARN(Unsupported Python version ${python}!);; AC_MSG_WARN(Unsupported Python version ${python}!)
python*) ],
[python*], [
python="python-${python#python}" # stay posix compliant python="python-${python#python}" # stay posix compliant
PKG_CHECK_MODULES([PY], [${python}], PKG_CHECK_MODULES([PY], [${python}],
[PY_VER="`$PKG_CONFIG --modversion ${python}`"], [PY_VER="`$PKG_CONFIG --modversion ${python}`"],
[AC_MSG_WARN(Cannot find "${python}.pc"!)]) [AC_MSG_WARN(Cannot find "${python}.pc"!)])
;; ],[
*)
AC_MSG_WARN(Unsupported Python ${python}!) AC_MSG_WARN(Unsupported Python ${python}!)
esac ]
)
AC_MSG_CHECKING(Python version) AC_MSG_CHECKING(Python version)
if test "$PY_VER"; then AS_IF([test "$PY_VER"], [
AC_MSG_RESULT($PY_VER) AC_MSG_RESULT($PY_VER)
python="python-${PY_VER}" python="python-${PY_VER}"
else ], [
AC_MSG_RESULT(Not found) AC_MSG_RESULT(Not found)
python=no python=no
fi ])
else ], [
AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option for Python]) AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option for Python])
python=no python=no
fi ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** IPv6 ************************************************************* dnl ** IPv6 *************************************************************
@ -344,177 +344,173 @@ AC_CHECK_LIB(socket, select)
AC_CHECK_FUNCS(getaddrinfo, have_getaddrinfo=yes) AC_CHECK_FUNCS(getaddrinfo, have_getaddrinfo=yes)
AC_MSG_CHECKING(whether IPv6 is supported) AC_MSG_CHECKING(whether IPv6 is supported)
if test "$have_getaddrinfo" = yes; then AS_IF([test "$have_getaddrinfo" = yes], [
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
else ], [
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
AC_MSG_ERROR(ipv6 support not found!) AC_MSG_ERROR(ipv6 support not found!)
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** OPENSSL ********************************************************** dnl ** OPENSSL **********************************************************
dnl ********************************************************************* dnl *********************************************************************
retry=no
if test "$openssl" != no; then AS_IF([test "$openssl" != no], [
PKG_CHECK_MODULES(OPENSSL, [openssl], [ PKG_CHECK_MODULES(OPENSSL, [openssl], [
AC_DEFINE(USE_OPENSSL) AC_DEFINE(USE_OPENSSL)
openssl=yes openssl=yes
COMMON_LIBS="$COMMON_LIBS $OPENSSL_LIBS" COMMON_LIBS="$COMMON_LIBS $OPENSSL_LIBS"
COMMON_CFLAGS="$COMMON_CFLAGS $OPENSSL_CFLAGS" COMMON_CFLAGS="$COMMON_CFLAGS $OPENSSL_CFLAGS"
], [ ], [
retry=yes unset openssl_path ac_cv_lib_ssl_SSL_new ac_cv_header_openssl_ssl_h
]) AS_IF([test "$openssl" != yes], [
fi openssl_path=$openssl
if test "$retry" = "yes"; then
unset openssl_path ac_cv_lib_ssl_SSL_new ac_cv_header_openssl_ssl_h
if test "$openssl" != yes; then
openssl_path=$openssl
fi
openssl=no
OPENSSL_LIBS="-lcrypto"
if test -n "$openssl_path"; then
OPENSSL_LIBS="-L$openssl_path/lib $OPENSSL_LIBS"
fi
SAVED_LIBS=$LIBS
LIBS="$LIBS $OPENSSL_LIBS"
AC_CHECK_LIB(ssl, SSL_new, [
if test -n "$openssl_path"; then
OPENSSL_CFLAGS="-I$openssl_path/include"
fi
SAVED_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
AC_CHECK_HEADERS(openssl/ssl.h, [
openssl=yes
AC_DEFINE(USE_OPENSSL)
OPENSSL_LIBS="$OPENSSL_LIBS -lssl"
COMMON_LIBS="$COMMON_LIBS $OPENSSL_LIBS"
COMMON_CFLAGS="$COMMON_CFLAGS $OPENSSL_CFLAGS"
]) ])
CFLAGS=$SAVED_CFLAGS openssl=no
OPENSSL_LIBS="-lcrypto"
AS_IF([test -n "$openssl_path"], [
OPENSSL_LIBS="-L$openssl_path/lib $OPENSSL_LIBS"
])
SAVED_LIBS=$LIBS
LIBS="$LIBS $OPENSSL_LIBS"
AC_CHECK_LIB(ssl, SSL_new, [
AS_IF([test -n "$openssl_path"], [
OPENSSL_CFLAGS="-I$openssl_path/include"
])
SAVED_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
AC_CHECK_HEADERS(openssl/ssl.h, [
openssl=yes
AC_DEFINE(USE_OPENSSL)
OPENSSL_LIBS="$OPENSSL_LIBS -lssl"
COMMON_LIBS="$COMMON_LIBS $OPENSSL_LIBS"
COMMON_CFLAGS="$COMMON_CFLAGS $OPENSSL_CFLAGS"
])
CFLAGS=$SAVED_CFLAGS
])
LIBS=$SAVED_LIBS
]) ])
LIBS=$SAVED_LIBS ])
fi
dnl ********************************************************************* dnl *********************************************************************
dnl ** LIBPROXY ********************************************************* dnl ** LIBPROXY *********************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "x$libproxy" = "xyes" -o "x$libproxy" = "xauto" ; then AS_IF([test "x$libproxy" = "xyes" -o "x$libproxy" = "xauto"], [
PKG_CHECK_MODULES([LIBPROXY], [libproxy-1.0], [ PKG_CHECK_MODULES([LIBPROXY], [libproxy-1.0], [
COMMON_LIBS="$COMMON_LIBS $LIBPROXY_LIBS" COMMON_LIBS="$COMMON_LIBS $LIBPROXY_LIBS"
COMMON_CFLAGS="$COMMON_CFLAGS $LIBPROXY_CFLAGS" COMMON_CFLAGS="$COMMON_CFLAGS $LIBPROXY_CFLAGS"
AC_DEFINE(USE_LIBPROXY) AC_DEFINE(USE_LIBPROXY)
libproxy=yes libproxy=yes
], [ ], [
if test "x$libproxy" = "xyes" ; then AS_IF([test "x$libproxy" = "xyes"], [
AC_MSG_ERROR(Cannot find libproxy!) AC_MSG_ERROR(Cannot find libproxy!)
fi ])
libproxy=no libproxy=no
]) ])
else ], [
libproxy=no libproxy=no
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** PLUGIN *********************************************************** dnl ** PLUGIN ***********************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "$plugin" = yes; then AS_IF([test "$plugin" = yes], [
AC_DEFINE(USE_PLUGIN) AC_DEFINE(USE_PLUGIN)
PLUGIN_LDFLAGS="-avoid-version" PLUGIN_LDFLAGS="-avoid-version"
if test "$platform_win32" = yes; then AS_IF([test "$platform_win32" = yes], [
PLUGIN_LDFLAGS="$PLUGIN_LDFLAGS -no-undefined" PLUGIN_LDFLAGS="$PLUGIN_LDFLAGS -no-undefined"
fi ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** Checksum ********************************************************* dnl ** Checksum *********************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "$checksum" != "no"; then AS_IF([test "$checksum" != "no"], [
checksum=no checksum=no
AC_MSG_CHECKING(for plugin interface used by Checksum) AC_MSG_CHECKING(for plugin interface used by Checksum)
if test "$plugin" = yes; then AS_IF([test "$plugin" = yes], [
checksum=yes checksum=yes
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else ], [
AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option]) AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option])
fi ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** DO AT ************************************************************ dnl ** DO AT ************************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "$doat" != "no"; then AS_IF([test "$doat" != "no"], [
AC_MSG_CHECKING(for plugin interface used by Do At) AC_MSG_CHECKING(for plugin interface used by Do At)
doat=no doat=no
if test "$plugin" = yes; then AS_IF([test "$plugin" = yes], [
doat=yes doat=yes
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else ], [
AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option for Do At]) AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option for Do At])
fi ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** FiSHLiM ********************************************************** dnl ** FiSHLiM **********************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "$fishlim" != "no"; then AS_IF([test "$fishlim" != "no"], [
fishlim=no fishlim=no
AC_MSG_CHECKING(for plugin interface used by FiSHLiM) AC_MSG_CHECKING(for plugin interface used by FiSHLiM)
if test "$plugin" = yes; then AS_IF([test "$plugin" = yes], [
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_MSG_CHECKING(for OpenSSL used by FiSHLiM) AC_MSG_CHECKING(for OpenSSL used by FiSHLiM)
if test "$openssl" = yes; then AS_IF([test "$openssl" = yes], [
fishlim=yes fishlim=yes
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else ], [
AC_MSG_RESULT([OpenSSL cannot be found, use the --enable-openssl option]) AC_MSG_RESULT([OpenSSL cannot be found, use the --enable-openssl option])
fi ])
else ], [
AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option]) AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option])
fi ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** SYSINFO ********************************************************** dnl ** SYSINFO **********************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "$sysinfo" != "no"; then AS_IF([test "$sysinfo" != "no"], [
AC_MSG_CHECKING(for plugin interface used by SysInfo) AC_MSG_CHECKING(for plugin interface used by SysInfo)
if test "$plugin" = yes; then AS_IF([test "$plugin" = yes], [
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
if test "$platform_osx" = yes; then AS_IF([test "$platform_osx" = yes], [
sysinfo=yes sysinfo=yes
else ], [
PKG_CHECK_MODULES(LIBPCI, libpci >= 3.0.0, [ PKG_CHECK_MODULES(LIBPCI, libpci >= 3.0.0, [
sysinfo=yes sysinfo=yes
AC_DEFINE(HAVE_LIBPCI) AC_DEFINE(HAVE_LIBPCI)
], [sysinfo=no]) ], [sysinfo=no])
fi ])
else ], [
AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option for SysInfo]) AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option for SysInfo])
sysinfo=no sysinfo=no
fi ])
fi ])
dnl ####################################################################### dnl #######################################################################
dnl # Check for DBUS libraries dnl # Check for DBUS libraries
dnl ####################################################################### dnl #######################################################################
if test "x$dbus" = "xyes" ; then AS_IF([test "x$dbus" = "xyes"], [
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60 gthread-2.0], dbus=yes, [ PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60 gthread-2.0], dbus=yes, [
dbus=no dbus=no
]) ])
AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool, no) AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool, no)
if test "x$DBUS_BINDING_TOOL" = "xno" || test "x$dbus" = "xno" ; then AS_IF([test "x$DBUS_BINDING_TOOL" = "xno" || test "x$dbus" = "xno"], [
dbus="no" dbus="no"
else ], [
COMMON_LIBS="$COMMON_LIBS $DBUS_LIBS" COMMON_LIBS="$COMMON_LIBS $DBUS_LIBS"
COMMON_CFLAGS="$COMMON_CFLAGS $DBUS_CFLAGS" COMMON_CFLAGS="$COMMON_CFLAGS $DBUS_CFLAGS"
AC_DEFINE(USE_DBUS) AC_DEFINE(USE_DBUS)
@ -522,44 +518,44 @@ if test "x$dbus" = "xyes" ; then
AS_AC_EXPAND(DBUS_SERVICES_DIR, "$datadir/dbus-1/services") AS_AC_EXPAND(DBUS_SERVICES_DIR, "$datadir/dbus-1/services")
AC_SUBST(DBUS_SERVICES_DIR) AC_SUBST(DBUS_SERVICES_DIR)
AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for DBUS is]) AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for DBUS is])
fi ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** LIBNOTIFY ******************************************************** dnl ** LIBNOTIFY ********************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "x$libnotify" = "xyes" ; then AS_IF([test "x$libnotify" = "xyes"], [
PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= 0.4, [], [ PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= 0.4, [], [
libnotify=no libnotify=no
]) ])
if test "$libnotify" != "no" ; then AS_IF([test "$libnotify" != "no"], [
GUI_LIBS="$GUI_LIBS $LIBNOTIFY_LIBS" GUI_LIBS="$GUI_LIBS $LIBNOTIFY_LIBS"
GUI_CFLAGS="$GUI_CFLAGS $LIBNOTIFY_CFLAGS" GUI_CFLAGS="$GUI_CFLAGS $LIBNOTIFY_CFLAGS"
AC_DEFINE(USE_LIBNOTIFY) AC_DEFINE(USE_LIBNOTIFY)
fi ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** LIBCANBERRA ****************************************************** dnl ** LIBCANBERRA ******************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "x$libcanberra" = "xyes" ; then AS_IF([test "x$libcanberra" = "xyes"], [
PKG_CHECK_MODULES(LIBCANBERRA, libcanberra >= 0.22, [], [ PKG_CHECK_MODULES(LIBCANBERRA, libcanberra >= 0.22, [], [
libcanberra=no libcanberra=no
]) ])
if test "$libcanberra" != "no" ; then AS_IF([test "$libcanberra" != "no"], [
COMMON_LIBS="$COMMON_LIBS $LIBCANBERRA_LIBS" COMMON_LIBS="$COMMON_LIBS $LIBCANBERRA_LIBS"
COMMON_CFLAGS="$COMMON_CFLAGS $LIBCANBERRA_CFLAGS" COMMON_CFLAGS="$COMMON_CFLAGS $LIBCANBERRA_CFLAGS"
AC_DEFINE(USE_LIBCANBERRA) AC_DEFINE(USE_LIBCANBERRA)
fi ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** SPELL ************************************************************ dnl ** SPELL ************************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "x$isocodes" = "xyes" ; then AS_IF([test "x$isocodes" = "xyes"], [
PKG_CHECK_MODULES(ISOCODES, "iso-codes", [ PKG_CHECK_MODULES(ISOCODES, "iso-codes", [
iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes 2>/dev/null || echo /usr` iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes 2>/dev/null || echo /usr`
AC_MSG_NOTICE([iso-codes prefix: $iso_codes_prefix]) AC_MSG_NOTICE([iso-codes prefix: $iso_codes_prefix])
@ -570,18 +566,18 @@ if test "x$isocodes" = "xyes" ; then
isocodes=no isocodes=no
AC_MSG_WARN(iso-codes not found!) AC_MSG_WARN(iso-codes not found!)
]) ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** Static Analysis ************************************************** dnl ** Static Analysis **************************************************
dnl ********************************************************************* dnl *********************************************************************
if test "x$analyze" = "xyes"; then AS_IF([test "x$analyze" = "xyes"], [
if test "$CC" != "clang"; then AS_IF([test "$CC" != "clang"], [
AC_MSG_WARN(CC is not clang for static analysis) AC_MSG_WARN(CC is not clang for static analysis)
analyze=no analyze=no
fi ])
fi ])
dnl ********************************************************************* dnl *********************************************************************
dnl ** CONDITIONALS ***************************************************** dnl ** CONDITIONALS *****************************************************
@ -660,9 +656,9 @@ AC_EGREP_CPP([socklen_t[^a-zA-Z_0-9]], [#include <sys/types.h>
ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=yes,
ac_cv_type_socklen_t=no) ac_cv_type_socklen_t=no)
]) ])
if test $ac_cv_type_socklen_t = no; then AS_IF([test $ac_cv_type_socklen_t = no], [
AC_DEFINE(socklen_t, int) AC_DEFINE(socklen_t, int)
fi ])
dnl Mac OS X and Darwin use lookupd, which caches DNS queries by default dnl Mac OS X and Darwin use lookupd, which caches DNS queries by default
AC_EGREP_CPP(lookupd, dnl AC_EGREP_CPP(lookupd, dnl
@ -693,8 +689,12 @@ AC_SUBST(PLUGIN_LDFLAGS)
m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], AC_SUBST([pkgconfigdir], ${libdir}/pkgconfig)) m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], AC_SUBST([pkgconfigdir], ${libdir}/pkgconfig))
dnl for plugin.c and pixmaps.c dnl for plugin.c and pixmaps.c
test "x$prefix" = xNONE && prefix="$ac_default_prefix" AS_IF([test "x$prefix" = xNONE], [
test "x$exec_prefix" = xNONE && exec_prefix="$prefix" prefix="$ac_default_prefix"
])
AS_IF([test "x$exec_prefix" = xNONE], [
exec_prefix="$prefix"
])
AC_DEFINE_UNQUOTED(PREFIX, "${prefix}") AC_DEFINE_UNQUOTED(PREFIX, "${prefix}")