diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rwxr-xr-x | configure | 41 | ||||
| -rw-r--r-- | configure.in | 3 |
3 files changed, 48 insertions, 1 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-01-27 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * configure.in: Test existence of xaw3d library, not just the | ||
| 4 | header (Bug#7642). | ||
| 5 | |||
| 1 | 2011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change) | 6 | 2011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change) |
| 2 | 7 | ||
| 3 | * configure.in: Add HP-UX on IA64 (Bug#6811). | 8 | * configure.in: Add HP-UX on IA64 (Bug#6811). |
| @@ -8626,10 +8626,51 @@ main () | |||
| 8626 | } | 8626 | } |
| 8627 | _ACEOF | 8627 | _ACEOF |
| 8628 | if ac_fn_c_try_link "$LINENO"; then : | 8628 | if ac_fn_c_try_link "$LINENO"; then : |
| 8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | ||
| 8630 | $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; } | ||
| 8631 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then : | ||
| 8632 | $as_echo_n "(cached) " >&6 | ||
| 8633 | else | ||
| 8634 | ac_check_lib_save_LIBS=$LIBS | ||
| 8635 | LIBS="-lXaw3d $LIBS" | ||
| 8636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8637 | /* end confdefs.h. */ | ||
| 8638 | |||
| 8639 | /* Override any GCC internal prototype to avoid an error. | ||
| 8640 | Use char because int might match the return type of a GCC | ||
| 8641 | builtin and then its argument prototype would still apply. */ | ||
| 8642 | #ifdef __cplusplus | ||
| 8643 | extern "C" | ||
| 8644 | #endif | ||
| 8645 | char XawScrollbarSetThumb (); | ||
| 8646 | int | ||
| 8647 | main () | ||
| 8648 | { | ||
| 8649 | return XawScrollbarSetThumb (); | ||
| 8650 | ; | ||
| 8651 | return 0; | ||
| 8652 | } | ||
| 8653 | _ACEOF | ||
| 8654 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 8655 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | ||
| 8656 | else | ||
| 8657 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | ||
| 8658 | fi | ||
| 8659 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 8660 | conftest$ac_exeext conftest.$ac_ext | ||
| 8661 | LIBS=$ac_check_lib_save_LIBS | ||
| 8662 | fi | ||
| 8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 | ||
| 8664 | $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; } | ||
| 8665 | if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then : | ||
| 8629 | emacs_cv_xaw3d=yes | 8666 | emacs_cv_xaw3d=yes |
| 8630 | else | 8667 | else |
| 8631 | emacs_cv_xaw3d=no | 8668 | emacs_cv_xaw3d=no |
| 8632 | fi | 8669 | fi |
| 8670 | |||
| 8671 | else | ||
| 8672 | emacs_cv_xaw3d=no | ||
| 8673 | fi | ||
| 8633 | rm -f core conftest.err conftest.$ac_objext \ | 8674 | rm -f core conftest.err conftest.$ac_objext \ |
| 8634 | conftest$ac_exeext conftest.$ac_ext | 8675 | conftest$ac_exeext conftest.$ac_ext |
| 8635 | fi | 8676 | fi |
diff --git a/configure.in b/configure.in index fd1c62ccb7d..dce2a6271c4 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1796,7 +1796,8 @@ if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then | |||
| 1796 | #include <X11/Intrinsic.h> | 1796 | #include <X11/Intrinsic.h> |
| 1797 | #include <X11/Xaw3d/Simple.h>], | 1797 | #include <X11/Xaw3d/Simple.h>], |
| 1798 | [], | 1798 | [], |
| 1799 | emacs_cv_xaw3d=yes, | 1799 | [AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, |
| 1800 | emacs_cv_xaw3d=yes, emacs_cv_xaw3d=no)], | ||
| 1800 | emacs_cv_xaw3d=no)]) | 1801 | emacs_cv_xaw3d=no)]) |
| 1801 | else | 1802 | else |
| 1802 | emacs_cv_xaw3d=no | 1803 | emacs_cv_xaw3d=no |