X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd8df4fc9c4eab2f455f587c87840340165447da..3f9ee1cd8575e05a9978ebbf3034f739baaa5f1c:/configure.in diff --git a/configure.in b/configure.in index 785166c43c..1dc0572b29 100644 --- a/configure.in +++ b/configure.in @@ -134,6 +134,10 @@ case "${host}" in NEEDS_D_REENTRANT_FOR_R_FUNCS=1 SO_SUFFIX=sl AC_DEFINE(__HPUX__) + + dnl many standard declarations in HP-UX headers are only included if either + dnl _HPUX_SOURCE is defined, see stdsyms(5) + CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE" ;; *-*-linux* ) USE_LINUX=1 @@ -1940,6 +1944,20 @@ if test "x$SGICXX" = "xyes"; then CXXFLAGS="$CXXFLAGS -woff 3970" fi +dnl HP-UX c89/aCC compiler warnings +if test "x$HPCC" = "xyes"; then + dnl 2011: "unrecognized preprocessor directive": nice warning but it's given + dnl even for directives inside #if which is not true (i.e. which are + dnl used for other compilers/OS) and so we have no way to get rid of it + dnl 2450: "long long is non standard" -- yes, we know + CFLAGS="$CFLAGS +W 2011,2450" +fi +if test "x$HPCXX" = "xyes"; then + dnl 2340: "value copied to temporary, reference to temporary used": very + dnl painful as triggered by any occurrence of user-defined conversion + CXXFLAGS="$CXXFLAGS +W 2340" +fi + dnl check for std::string or std::wstring if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then AC_LANG_PUSH(C++) @@ -3019,7 +3037,7 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config AC_PATH_XTRA if test "$no_x" = "yes"; then - AC_MSG_ERROR(X11 not found, please use --x-includes and/or --x-libraries options) + AC_MSG_ERROR([X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)]) fi dnl for some reason AC_PATH_XTRA seems to add -INONE and -LNONE (and @@ -7139,6 +7157,9 @@ if test $GCC_PCH = 1 ; then CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" fi +dnl TOOLCHAIN_DEFS are used by wx-config but should be also used for wx build +dnl itself +CPPFLAGS="$CPPFLAGS $TOOLCHAIN_DEFS" dnl for convenience, sort the samples in alphabetical order dnl