dnl Process this file with autoconf to produce a configure script.
AC_REVISION($Id$)dnl
-AC_PREREQ(2.57)
+AC_PREREQ(2.58)
dnl ---------------------------------------------------------------------------
dnl
INSTALL=`pwd`/${INSTALL} ;;
esac
-dnl HP-UX install doesn't handle the "-d" switch so don't use it there
-case ${host} in
- *-hp-hpux* )
- INSTALL_DIR="mkdir"
- ;;
-
- *) INSTALL_DIR="$INSTALL -d"
- ;;
-esac
-
case "${host}" in
dnl like mingw does.. -- RL
if test "$TOOLKIT" != "MSW"; then
dnl determine the type of third argument for getsockname
+ dnl This test needs to be done in C++ mode since gsocket.cpp now
+ dnl is C++ code and pointer cast that are possible even without
+ dnl warning in C still fail in C++.
+ AC_LANG_PUSH(C++)
AC_CACHE_CHECK([what is the type of the third argument of getsockname],
wx_cv_type_getsockname3,
[
else
AC_DEFINE_UNQUOTED(SOCKLEN_T, $wx_cv_type_getsockname3)
fi
+ AC_LANG_POP
fi
fi
AC_SUBST(LD)
AC_SUBST(MAKEINFO)
AC_SUBST(INSTALL_LIBRARY)
-AC_SUBST(INSTALL_DIR)
dnl MAKE_SET will be replaced with "MAKE=..." or nothing if make sets MAKE