correct error message (CPPFLAGS instead of CFLAGS) and add /usr/pkg/include
to SEARCH_INCLUDE (usual location on NetBSD).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35389
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
/usr/x386/include \
/usr/XFree86/include/X11 \
\
/usr/x386/include \
/usr/XFree86/include/X11 \
\
X:/XFree86/include \
X:/XFree86/include/X11 \
\
X:/XFree86/include \
X:/XFree86/include/X11 \
\
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
else
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
else
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
+
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
- { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
-echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
+ { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
+echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
{ (exit 1); exit 1; }; }
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
if test "$COMPILED_X_PROGRAM" = 0; then
fi
if test "$COMPILED_X_PROGRAM" = 0; then
/usr/x386/include \
/usr/XFree86/include/X11 \
\
/usr/x386/include \
/usr/XFree86/include/X11 \
\
X:/XFree86/include \
X:/XFree86/include/X11 \
\
X:/XFree86/include \
X:/XFree86/include/X11 \
\
WX_INCLUDE_PATH_EXIST($ac_find_includes, $TOOLKIT_INCLUDE)
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
else
WX_INCLUDE_PATH_EXIST($ac_find_includes, $TOOLKIT_INCLUDE)
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
else
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
+
AC_TRY_COMPILE(
[
#include <Xm/Xm.h>
AC_TRY_COMPILE(
[
#include <Xm/Xm.h>
- AC_MSG_ERROR(please set CFLAGS to contain the location of Xm/Xm.h)
+ AC_MSG_ERROR(please set CPPFLAGS to contain the location of Xm/Xm.h)
fi
if test "$COMPILED_X_PROGRAM" = 0; then
fi
if test "$COMPILED_X_PROGRAM" = 0; then