summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndrew Choi <akochoi@shaw.ca>2003-08-07 16:00:31 +0000
committerAndrew Choi <akochoi@shaw.ca>2003-08-07 16:00:31 +0000
commitfeaaaa99631e3d5e8740ff0cbc3f82ed5018fe3b (patch)
treeb7f46f50d31b932457a80f53cf06e66e5ba75b6b /configure
parent561305a7b517427b9a8cdd9ae55e7fe789543360 (diff)
downloademacs-feaaaa99631e3d5e8740ff0cbc3f82ed5018fe3b.tar.gz
* configure.in [powerpc-apple-darwin*]: Use the -no-cpp-precomp
option instead of -traditional-cpp for CPP.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure57
1 files changed, 52 insertions, 5 deletions
diff --git a/configure b/configure
index 4d417642c2d..75602df1483 100755
--- a/configure
+++ b/configure
@@ -2576,7 +2576,7 @@ _ACEOF
powerpc-apple-darwin* )
machine=powermac opsys=darwin
# Define CPP as follows to make autoconf work correctly.
- CPP="cc -E -traditional-cpp"
+ CPP="gcc -E -no-cpp-precomp"
;;
## AMD x86-64 Linux-based GNU system
@@ -3420,7 +3420,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
for ac_declaration in \
- '' \
+ ''\
+ '#include <stdlib.h>' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
@@ -3434,8 +3435,8 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_declaration
#include <stdlib.h>
+$ac_declaration
int
main ()
{
@@ -8191,7 +8192,7 @@ echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with
{ (exit 1); exit 1; }; };
fi
GLIB_REQUIRED=2.0.1
- GTK_REQUIRED=2.0.1
+ GTK_REQUIRED=2.2
GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
if test "X${with_pkg_config_prog}" != X; then
@@ -8910,6 +8911,50 @@ _ACEOF
fi
fi
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+ #include <X11/Xlib.h>
+ #include <X11/Xresource.h>
+int
+main ()
+{
+XIMProc callback;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ HAVE_XIM=yes
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_XIM 1
+_ACEOF
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+HAVE_XIM=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+
if test "${with_xim}" != "no"; then
@@ -8918,7 +8963,9 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
-if test "${HAVE_X11}" = "yes"; then
+
+
+if test "${HAVE_XIM}" != "no"; then
late_CFLAGS=$CFLAGS
if test "$GCC" = yes; then
CFLAGS="$CFLAGS --pedantic-errors"