aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorChong Yidong2011-01-27 15:49:48 -0500
committerChong Yidong2011-01-27 15:49:48 -0500
commit37f7b7843a02ea9f930bc163d61aca2fec413d08 (patch)
treee65b3623f96ffa0bd65f71346d521f32b4918db7 /configure
parent220c2a148456b2e7f7a900f76530a3ef742e426e (diff)
downloademacs-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-xconfigure41
1 files changed, 41 insertions, 0 deletions
diff --git a/configure b/configure
index 66c9737a43a..dd69fde936f 100755
--- a/configure
+++ b/configure
@@ -8626,10 +8626,51 @@ main ()
8626} 8626}
8627_ACEOF 8627_ACEOF
8628if ac_fn_c_try_link "$LINENO"; then : 8628if 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; }
8631if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8633else
8634 ac_check_lib_save_LIBS=$LIBS
8635LIBS="-lXaw3d $LIBS"
8636cat 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
8643extern "C"
8644#endif
8645char XawScrollbarSetThumb ();
8646int
8647main ()
8648{
8649return XawScrollbarSetThumb ();
8650 ;
8651 return 0;
8652}
8653_ACEOF
8654if ac_fn_c_try_link "$LINENO"; then :
8655 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8656else
8657 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8658fi
8659rm -f core conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661LIBS=$ac_check_lib_save_LIBS
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8664$as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
8665if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
8629 emacs_cv_xaw3d=yes 8666 emacs_cv_xaw3d=yes
8630else 8667else
8631 emacs_cv_xaw3d=no 8668 emacs_cv_xaw3d=no
8632fi 8669fi
8670
8671else
8672 emacs_cv_xaw3d=no
8673fi
8633rm -f core conftest.err conftest.$ac_objext \ 8674rm -f core conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext 8675 conftest$ac_exeext conftest.$ac_ext
8635fi 8676fi