diff options
| author | Chong Yidong | 2011-01-27 15:49:48 -0500 |
|---|---|---|
| committer | Chong Yidong | 2011-01-27 15:49:48 -0500 |
| commit | 37f7b7843a02ea9f930bc163d61aca2fec413d08 (patch) | |
| tree | e65b3623f96ffa0bd65f71346d521f32b4918db7 /configure | |
| parent | 220c2a148456b2e7f7a900f76530a3ef742e426e (diff) | |
| download | emacs-37f7b7843a02ea9f930bc163d61aca2fec413d08.tar.gz emacs-37f7b7843a02ea9f930bc163d61aca2fec413d08.zip | |
* configure.in: Test existence of xaw3d library, not just the header (Bug#7642).
* configure: Regenerate.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 41 |
1 files changed, 41 insertions, 0 deletions
| @@ -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 |