diff options
author | Andrew Choi <akochoi@shaw.ca> | 2003-08-07 16:00:31 +0000 |
---|---|---|
committer | Andrew Choi <akochoi@shaw.ca> | 2003-08-07 16:00:31 +0000 |
commit | abd39b57199460ebbfcd4d98f9824fa8275f23e9 (patch) | |
tree | 40ff0fde03650e4bfe896ca3341930f9ff5f64cf /configure | |
parent | 3d880a4b894daa1c0f7068e8e2b59634046bcb3b (diff) | |
download | emacs-abd39b57199460ebbfcd4d98f9824fa8275f23e9.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-x | configure | 57 |
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" |