summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/cf/check-x.m4
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/cf/check-x.m4')
-rw-r--r--crypto/heimdal/cf/check-x.m411
1 files changed, 6 insertions, 5 deletions
diff --git a/crypto/heimdal/cf/check-x.m4 b/crypto/heimdal/cf/check-x.m4
index 53a3d8c..07f7e2d 100644
--- a/crypto/heimdal/cf/check-x.m4
+++ b/crypto/heimdal/cf/check-x.m4
@@ -1,7 +1,7 @@
dnl
dnl See if there is any X11 present
dnl
-dnl $Id: check-x.m4,v 1.2.20.1 2004/04/01 07:27:33 joda Exp $
+dnl $Id: check-x.m4 15435 2005-06-16 19:45:52Z lha $
AC_DEFUN([KRB_CHECK_X],[
AC_PATH_XTRA
@@ -32,17 +32,18 @@ if test "$no_x" != yes; then
done
fi
LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
- AC_TRY_RUN([
+ AC_RUN_IFELSE([
#include <X11/Xlib.h>
- foo()
+ foo(void)
{
XOpenDisplay(NULL);
}
- main()
+ main(int argc, char **argv)
{
return 0;
}
- ], krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break,:)
+ ],krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break,:,
+ krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break)
done
LIBS="$ac_save_libs"
CFLAGS="$ac_save_cflags"
OpenPOWER on IntegriCloud