23933
23928
echo "$as_me:$LINENO: checking for X" >&5
23934
23929
echo $ECHO_N "checking for X... $ECHO_C" >&6
23937
# Check whether --with-x or --without-x was given.
23938
if test "${with_x+set}" = set; then
23942
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23943
if test "x$with_x" = xno; then
23944
# The user explicitly disabled X.
23947
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23948
# Both variables are already set.
23951
if test "${ac_cv_have_x+set}" = set; then
23952
echo $ECHO_N "(cached) $ECHO_C" >&6
23954
# One or both of the vars are not set, and there is no cached value.
23955
ac_x_includes=no ac_x_libraries=no
23956
rm -fr conftest.dir
23957
if mkdir conftest.dir; then
23959
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
23960
cat >Imakefile <<'_ACEOF'
23962
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23964
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23965
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23966
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23967
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23968
for ac_extension in a so sl; do
23969
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23970
test -f $ac_im_libdir/libX11.$ac_extension; then
23971
ac_im_usrlibdir=$ac_im_libdir; break
23974
# Screen out bogus values from the imake configuration. They are
23975
# bogus both because they are the default anyway, and because
23976
# using them would break gcc on systems where it needs fixed includes.
23977
case $ac_im_incroot in
23979
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23981
case $ac_im_usrlibdir in
23982
/usr/lib | /lib) ;;
23983
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23987
rm -fr conftest.dir
23990
# Standard set of common directories for X headers.
23991
# Check X11 before X11Rn because it is often a symlink to the current release.
24003
/usr/local/X11/include
24004
/usr/local/X11R6/include
24005
/usr/local/X11R5/include
24006
/usr/local/X11R4/include
24008
/usr/local/include/X11
24009
/usr/local/include/X11R6
24010
/usr/local/include/X11R5
24011
/usr/local/include/X11R4
24015
/usr/XFree86/include/X11
24019
/usr/unsupported/include
24020
/usr/athena/include
24021
/usr/local/x11r5/include
24022
/usr/lpp/Xamples/include
24024
/usr/openwin/include
24025
/usr/openwin/share/include'
24027
if test "$ac_x_includes" = no; then
24028
# Guess where to find include files, by looking for Intrinsic.h.
24029
# First, try using that file with no special directory specified.
24030
cat >conftest.$ac_ext <<_ACEOF
24033
cat confdefs.h >>conftest.$ac_ext
24034
cat >>conftest.$ac_ext <<_ACEOF
24035
/* end confdefs.h. */
24036
#include <X11/Intrinsic.h>
24038
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24039
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24041
grep -v '^ *+' conftest.er1 >conftest.err
24043
cat conftest.err >&5
24044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045
(exit $ac_status); } >/dev/null; then
24046
if test -s conftest.err; then
24047
ac_cpp_err=$ac_cxx_preproc_warn_flag
24048
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24055
if test -z "$ac_cpp_err"; then
24056
# We can compile using X headers with no special include directory.
24059
echo "$as_me: failed program was:" >&5
24060
sed 's/^/| /' conftest.$ac_ext >&5
24062
for ac_dir in $ac_x_header_dirs; do
24063
if test -r "$ac_dir/X11/Intrinsic.h"; then
24064
ac_x_includes=$ac_dir
24069
rm -f conftest.err conftest.$ac_ext
24070
fi # $ac_x_includes = no
24072
if test "$ac_x_libraries" = no; then
24073
# Check for the libraries.
24074
# See if we find them without any special options.
24075
# Don't add to $LIBS permanently.
24078
cat >conftest.$ac_ext <<_ACEOF
24081
cat confdefs.h >>conftest.$ac_ext
24082
cat >>conftest.$ac_ext <<_ACEOF
24083
/* end confdefs.h. */
24084
#include <X11/Intrinsic.h>
24093
rm -f conftest.$ac_objext conftest$ac_exeext
24094
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24095
(eval $ac_link) 2>conftest.er1
24097
grep -v '^ *+' conftest.er1 >conftest.err
24099
cat conftest.err >&5
24100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101
(exit $ac_status); } &&
24102
{ ac_try='test -z "$ac_cxx_werror_flag"
24103
|| test ! -s conftest.err'
24104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105
(eval $ac_try) 2>&5
24107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108
(exit $ac_status); }; } &&
24109
{ ac_try='test -s conftest$ac_exeext'
24110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111
(eval $ac_try) 2>&5
24113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114
(exit $ac_status); }; }; then
24116
# We can link X programs with no special library path.
24119
echo "$as_me: failed program was:" >&5
24120
sed 's/^/| /' conftest.$ac_ext >&5
24123
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24125
# Don't even attempt the hair of trying to link an X program!
24126
for ac_extension in a so sl; do
24127
if test -r $ac_dir/libXt.$ac_extension; then
24128
ac_x_libraries=$ac_dir
24134
rm -f conftest.err conftest.$ac_objext \
24135
conftest$ac_exeext conftest.$ac_ext
24136
fi # $ac_x_libraries = no
24138
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24139
# Didn't find X anywhere. Cache the known absence of X.
24140
ac_cv_have_x="have_x=no"
24142
# Record where we found X for the cache.
24143
ac_cv_have_x="have_x=yes \
24144
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24149
eval "$ac_cv_have_x"
24152
if test "$have_x" != yes; then
24153
echo "$as_me:$LINENO: result: $have_x" >&5
24154
echo "${ECHO_T}$have_x" >&6
24157
# If each of the values was on the command line, it overrides each guess.
24158
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24159
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24160
# Update the cache value to reflect the command line values.
24161
ac_cv_have_x="have_x=yes \
24162
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24163
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24164
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23931
ac_path_x_has_been_run=yes
23933
# Check whether --with-x or --without-x was given.
23934
if test "${with_x+set}" = set; then
23938
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23939
if test "x$with_x" = xno; then
23940
# The user explicitly disabled X.
23943
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23944
# Both variables are already set.
23947
if test "${ac_cv_have_x+set}" = set; then
23948
echo $ECHO_N "(cached) $ECHO_C" >&6
23950
# One or both of the vars are not set, and there is no cached value.
23951
ac_x_includes=no ac_x_libraries=no
23952
rm -fr conftest.dir
23953
if mkdir conftest.dir; then
23955
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
23956
cat >Imakefile <<'_ACEOF'
23958
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23960
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23961
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23962
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23963
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23964
for ac_extension in a so sl; do
23965
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23966
test -f $ac_im_libdir/libX11.$ac_extension; then
23967
ac_im_usrlibdir=$ac_im_libdir; break
23970
# Screen out bogus values from the imake configuration. They are
23971
# bogus both because they are the default anyway, and because
23972
# using them would break gcc on systems where it needs fixed includes.
23973
case $ac_im_incroot in
23975
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23977
case $ac_im_usrlibdir in
23978
/usr/lib | /lib) ;;
23979
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23983
rm -fr conftest.dir
23986
# Standard set of common directories for X headers.
23987
# Check X11 before X11Rn because it is often a symlink to the current release.
23999
/usr/local/X11/include
24000
/usr/local/X11R6/include
24001
/usr/local/X11R5/include
24002
/usr/local/X11R4/include
24004
/usr/local/include/X11
24005
/usr/local/include/X11R6
24006
/usr/local/include/X11R5
24007
/usr/local/include/X11R4
24011
/usr/XFree86/include/X11
24015
/usr/unsupported/include
24016
/usr/athena/include
24017
/usr/local/x11r5/include
24018
/usr/lpp/Xamples/include
24020
/usr/openwin/include
24021
/usr/openwin/share/include'
24023
if test "$ac_x_includes" = no; then
24024
# Guess where to find include files, by looking for a specified header file.
24025
# First, try using that file with no special directory specified.
24026
cat >conftest.$ac_ext <<_ACEOF
24029
cat confdefs.h >>conftest.$ac_ext
24030
cat >>conftest.$ac_ext <<_ACEOF
24031
/* end confdefs.h. */
24032
#include <X11/Intrinsic.h>
24034
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24035
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24037
grep -v '^ *+' conftest.er1 >conftest.err
24039
cat conftest.err >&5
24040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041
(exit $ac_status); } >/dev/null; then
24042
if test -s conftest.err; then
24043
ac_cpp_err=$ac_cxx_preproc_warn_flag
24044
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24051
if test -z "$ac_cpp_err"; then
24052
# We can compile using X headers with no special include directory.
24055
echo "$as_me: failed program was:" >&5
24056
sed 's/^/| /' conftest.$ac_ext >&5
24058
for ac_dir in $ac_x_header_dirs; do
24059
if test -r "$ac_dir/X11/Intrinsic.h"; then
24060
ac_x_includes=$ac_dir
24065
rm -f conftest.err conftest.$ac_ext
24066
fi # $ac_x_includes = no
24068
if test "$ac_x_libraries" = no; then
24069
# Check for the libraries.
24070
# See if we find them without any special options.
24071
# Don't add to $LIBS permanently.
24074
cat >conftest.$ac_ext <<_ACEOF
24077
cat confdefs.h >>conftest.$ac_ext
24078
cat >>conftest.$ac_ext <<_ACEOF
24079
/* end confdefs.h. */
24080
#include <X11/Intrinsic.h>
24089
rm -f conftest.$ac_objext conftest$ac_exeext
24090
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24091
(eval $ac_link) 2>conftest.er1
24093
grep -v '^ *+' conftest.er1 >conftest.err
24095
cat conftest.err >&5
24096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097
(exit $ac_status); } &&
24098
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24099
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100
(eval $ac_try) 2>&5
24102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103
(exit $ac_status); }; } &&
24104
{ ac_try='test -s conftest$ac_exeext'
24105
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106
(eval $ac_try) 2>&5
24108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109
(exit $ac_status); }; }; then
24111
# We can link X programs with no special library path.
24114
echo "$as_me: failed program was:" >&5
24115
sed 's/^/| /' conftest.$ac_ext >&5
24118
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24120
# Don't even attempt the hair of trying to link an X program!
24121
for ac_extension in a so sl; do
24122
if test -r $ac_dir/libXt.$ac_extension; then
24123
ac_x_libraries=$ac_dir
24129
rm -f conftest.err conftest.$ac_objext \
24130
conftest$ac_exeext conftest.$ac_ext
24131
fi # $ac_x_libraries = no
24133
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24134
# Didn't find X anywhere. Cache the known absence of X.
24135
ac_cv_have_x="have_x=no"
24137
# Record where we found X for the cache.
24138
ac_cv_have_x="have_x=yes \
24139
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24144
eval "$ac_cv_have_x"
24147
if test "$have_x" != yes; then
24148
echo "$as_me:$LINENO: result: $have_x" >&5
24149
echo "${ECHO_T}$have_x" >&6
24152
# If each of the values was on the command line, it overrides each guess.
24153
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24154
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24155
# Update the cache value to reflect the command line values.
24156
ac_cv_have_x="have_x=yes \
24157
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24158
# It might be that x_includes is empty (headers are found in the
24159
# standard search path. Then output the corresponding message
24160
ac_out_x_includes=$x_includes
24161
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24162
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24163
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
24167
if test "x$ac_path_x_has_been_run" != xyes; then
24168
echo "$as_me:$LINENO: checking for X" >&5
24169
echo $ECHO_N "checking for X... $ECHO_C" >&6
24171
ac_path_x_has_been_run=yes
24173
# Check whether --with-x or --without-x was given.
24174
if test "${with_x+set}" = set; then
24178
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24179
if test "x$with_x" = xno; then
24180
# The user explicitly disabled X.
24183
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24184
# Both variables are already set.
24187
if test "${ac_cv_have_x+set}" = set; then
24188
echo $ECHO_N "(cached) $ECHO_C" >&6
24190
# One or both of the vars are not set, and there is no cached value.
24191
ac_x_includes=no ac_x_libraries=no
24192
rm -fr conftest.dir
24193
if mkdir conftest.dir; then
24195
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
24196
cat >Imakefile <<'_ACEOF'
24198
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24200
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24201
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24202
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24203
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24204
for ac_extension in a so sl; do
24205
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
24206
test -f $ac_im_libdir/libX11.$ac_extension; then
24207
ac_im_usrlibdir=$ac_im_libdir; break
24210
# Screen out bogus values from the imake configuration. They are
24211
# bogus both because they are the default anyway, and because
24212
# using them would break gcc on systems where it needs fixed includes.
24213
case $ac_im_incroot in
24215
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24217
case $ac_im_usrlibdir in
24218
/usr/lib | /lib) ;;
24219
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24223
rm -fr conftest.dir
24226
# Standard set of common directories for X headers.
24227
# Check X11 before X11Rn because it is often a symlink to the current release.
24239
/usr/local/X11/include
24240
/usr/local/X11R6/include
24241
/usr/local/X11R5/include
24242
/usr/local/X11R4/include
24244
/usr/local/include/X11
24245
/usr/local/include/X11R6
24246
/usr/local/include/X11R5
24247
/usr/local/include/X11R4
24251
/usr/XFree86/include/X11
24255
/usr/unsupported/include
24256
/usr/athena/include
24257
/usr/local/x11r5/include
24258
/usr/lpp/Xamples/include
24260
/usr/openwin/include
24261
/usr/openwin/share/include'
24263
if test "$ac_x_includes" = no; then
24264
# Guess where to find include files, by looking for a specified header file.
24265
# First, try using that file with no special directory specified.
24266
cat >conftest.$ac_ext <<_ACEOF
24269
cat confdefs.h >>conftest.$ac_ext
24270
cat >>conftest.$ac_ext <<_ACEOF
24271
/* end confdefs.h. */
24272
#include <X11/Intrinsic.h>
24274
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24275
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24277
grep -v '^ *+' conftest.er1 >conftest.err
24279
cat conftest.err >&5
24280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281
(exit $ac_status); } >/dev/null; then
24282
if test -s conftest.err; then
24283
ac_cpp_err=$ac_cxx_preproc_warn_flag
24284
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24291
if test -z "$ac_cpp_err"; then
24292
# We can compile using X headers with no special include directory.
24295
echo "$as_me: failed program was:" >&5
24296
sed 's/^/| /' conftest.$ac_ext >&5
24298
for ac_dir in $ac_x_header_dirs; do
24299
if test -r "$ac_dir/X11/Intrinsic.h"; then
24300
ac_x_includes=$ac_dir
24305
rm -f conftest.err conftest.$ac_ext
24306
fi # $ac_x_includes = no
24308
if test "$ac_x_libraries" = no; then
24309
# Check for the libraries.
24310
# See if we find them without any special options.
24311
# Don't add to $LIBS permanently.
24314
cat >conftest.$ac_ext <<_ACEOF
24317
cat confdefs.h >>conftest.$ac_ext
24318
cat >>conftest.$ac_ext <<_ACEOF
24319
/* end confdefs.h. */
24320
#include <X11/Intrinsic.h>
24329
rm -f conftest.$ac_objext conftest$ac_exeext
24330
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24331
(eval $ac_link) 2>conftest.er1
24333
grep -v '^ *+' conftest.er1 >conftest.err
24335
cat conftest.err >&5
24336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337
(exit $ac_status); } &&
24338
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340
(eval $ac_try) 2>&5
24342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343
(exit $ac_status); }; } &&
24344
{ ac_try='test -s conftest$ac_exeext'
24345
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24346
(eval $ac_try) 2>&5
24348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349
(exit $ac_status); }; }; then
24351
# We can link X programs with no special library path.
24354
echo "$as_me: failed program was:" >&5
24355
sed 's/^/| /' conftest.$ac_ext >&5
24358
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24360
# Don't even attempt the hair of trying to link an X program!
24361
for ac_extension in a so sl; do
24362
if test -r $ac_dir/libXt.$ac_extension; then
24363
ac_x_libraries=$ac_dir
24369
rm -f conftest.err conftest.$ac_objext \
24370
conftest$ac_exeext conftest.$ac_ext
24371
fi # $ac_x_libraries = no
24373
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24374
# Didn't find X anywhere. Cache the known absence of X.
24375
ac_cv_have_x="have_x=no"
24377
# Record where we found X for the cache.
24378
ac_cv_have_x="have_x=yes \
24379
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24384
eval "$ac_cv_have_x"
24387
if test "$have_x" != yes; then
24388
echo "$as_me:$LINENO: result: $have_x" >&5
24389
echo "${ECHO_T}$have_x" >&6
24392
# If each of the values was on the command line, it overrides each guess.
24393
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24394
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24395
# Update the cache value to reflect the command line values.
24396
ac_cv_have_x="have_x=yes \
24397
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24398
# It might be that x_includes is empty (headers are found in the
24399
# standard search path. Then output the corresponding message
24400
ac_out_x_includes=$x_includes
24401
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24402
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24403
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
24167
24407
if test "$no_x" = yes; then
24168
24408
# Not all programs may use this symbol, but it does not hurt to define it.