Mercurial > emacs
comparison configure1.in @ 7522:3049e726a161
[HAVE_X11]: Merge $C_SWITCH_X_SITE into CFLAGS
for the Xlib and Xt checks; then restore old CFLAGS.
(HAVE_X11XTR6): Add newline after #endif.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 17 May 1994 05:14:10 +0000 |
parents | 166f360f788e |
children | 8ecd40fe3a65 |
comparison
equal
deleted
inserted
replaced
7521:2971264ff9aa | 7522:3049e726a161 |
---|---|
1415 if test -d /usr/X386/include; then | 1415 if test -d /usr/X386/include; then |
1416 HAVE_XFREE386=yes | 1416 HAVE_XFREE386=yes |
1417 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include" | 1417 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include" |
1418 fi | 1418 fi |
1419 | 1419 |
1420 # We change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
1421 # for the tests that follow. | |
1422 orig_cflags="$CFLAGS" | |
1423 | |
1420 if test "${HAVE_X11}" = "yes"; then | 1424 if test "${HAVE_X11}" = "yes"; then |
1421 DEFS="$C_SWITCH_X_SITE $DEFS" | 1425 DEFS="$C_SWITCH_X_SITE $DEFS" |
1422 LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS" | 1426 LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS" |
1427 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
1423 AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString \ | 1428 AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString \ |
1424 XScreenNumberOfScreen XSetWMProtocols) | 1429 XScreenNumberOfScreen XSetWMProtocols) |
1425 fi | 1430 fi |
1426 | 1431 |
1427 if test "${USE_X_TOOLKIT}" != "none"; then | 1432 if test "${USE_X_TOOLKIT}" != "none"; then |
1428 AC_COMPILE_CHECK(X11 toolkit version, | 1433 AC_COMPILE_CHECK(X11 toolkit version, |
1429 [#include <X11/Intrinsic.h>], | 1434 [#include <X11/Intrinsic.h>], |
1430 [ | 1435 [ |
1431 #if XtSpecificationRelease < 6 | 1436 #if XtSpecificationRelease < 6 |
1432 fail; | 1437 fail; |
1433 #endif], | 1438 #endif |
1439 ], | |
1434 AC_DEFINE(HAVE_X11XTR6)) | 1440 AC_DEFINE(HAVE_X11XTR6)) |
1435 fi | 1441 fi |
1436 | 1442 |
1437 AC_ALLOCA | 1443 AC_ALLOCA |
1438 | 1444 |
1451 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=) | 1457 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=) |
1452 fi | 1458 fi |
1453 if test -n "$ok_so_far"; then | 1459 if test -n "$ok_so_far"; then |
1454 AC_DEFINE(HAVE_INET_SOCKETS) | 1460 AC_DEFINE(HAVE_INET_SOCKETS) |
1455 fi | 1461 fi |
1462 | |
1463 # Restore the original CFLAGS value. | |
1464 CFLAGS="$orig_cflags" | |
1465 | |
1456 [ | 1466 [ |
1457 #### Find out which version of Emacs this is. | 1467 #### Find out which version of Emacs this is. |
1458 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | 1468 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ |
1459 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 1469 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
1460 if [ x"${version}" = x ]; then | 1470 if [ x"${version}" = x ]; then |