3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-x use the X Window System"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
21 cache_file
=.
/config.cache
30 program_transform_name
=s
,x
,x
,
38 bindir
='${exec_prefix}/bin'
39 sbindir
='${exec_prefix}/sbin'
40 libexecdir
='${exec_prefix}/libexec'
41 datadir
='${prefix}/share'
42 sysconfdir
='${prefix}/etc'
43 sharedstatedir
='${prefix}/com'
44 localstatedir
='${prefix}/var'
45 libdir
='${exec_prefix}/lib'
46 includedir
='${prefix}/include'
47 oldincludedir
='/usr/include'
48 infodir
='${prefix}/info'
49 mandir
='${prefix}/man'
51 # Initialize some other variables.
54 SHELL
=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
70 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 # Accept the important Cygnus configure options, so we can diagnose typos.
78 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
80 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
81 bindir
="$ac_optarg" ;;
83 -build |
--build |
--buil |
--bui |
--bu)
85 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
88 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
89 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
91 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
92 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
93 cache_file
="$ac_optarg" ;;
95 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
97 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
99 datadir
="$ac_optarg" ;;
101 -disable-* |
--disable-*)
102 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* |
--enable-*)
111 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
124 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
125 |
--exec |
--exe |
--ex)
126 ac_prev
=exec_prefix
;;
127 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
128 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
129 |
--exec=* |
--exe=* |
--ex=*)
130 exec_prefix
="$ac_optarg" ;;
132 -gas |
--gas |
--ga |
--g)
133 # Obsolete; use --with-gas.
136 -help |
--help |
--hel |
--he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
191 -host |
--host |
--hos |
--ho)
193 -host=* |
--host=* |
--hos=* |
--ho=*)
196 -includedir |
--includedir |
--includedi |
--included |
--include \
197 |
--includ |
--inclu |
--incl |
--inc)
198 ac_prev
=includedir
;;
199 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
200 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
201 includedir
="$ac_optarg" ;;
203 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
205 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
206 infodir
="$ac_optarg" ;;
208 -libdir |
--libdir |
--libdi |
--libd)
210 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
211 libdir
="$ac_optarg" ;;
213 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
214 |
--libexe |
--libex |
--libe)
215 ac_prev
=libexecdir
;;
216 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
217 |
--libexe=* |
--libex=* |
--libe=*)
218 libexecdir
="$ac_optarg" ;;
220 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
221 |
--localstate |
--localstat |
--localsta |
--localst \
222 |
--locals |
--local |
--loca |
--loc |
--lo)
223 ac_prev
=localstatedir
;;
224 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
225 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
226 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
227 localstatedir
="$ac_optarg" ;;
229 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
231 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
232 mandir
="$ac_optarg" ;;
235 # Obsolete; use --without-fp.
238 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
242 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
243 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
246 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
247 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
248 |
--oldin |
--oldi |
--old |
--ol |
--o)
249 ac_prev
=oldincludedir
;;
250 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
251 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
252 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
253 oldincludedir
="$ac_optarg" ;;
255 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
257 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
258 prefix
="$ac_optarg" ;;
260 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
261 |
--program-pre |
--program-pr |
--program-p)
262 ac_prev
=program_prefix
;;
263 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
264 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
265 program_prefix
="$ac_optarg" ;;
267 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
268 |
--program-suf |
--program-su |
--program-s)
269 ac_prev
=program_suffix
;;
270 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
271 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
272 program_suffix
="$ac_optarg" ;;
274 -program-transform-name |
--program-transform-name \
275 |
--program-transform-nam |
--program-transform-na \
276 |
--program-transform-n |
--program-transform- \
277 |
--program-transform |
--program-transfor \
278 |
--program-transfo |
--program-transf \
279 |
--program-trans |
--program-tran \
280 |
--progr-tra |
--program-tr |
--program-t)
281 ac_prev
=program_transform_name
;;
282 -program-transform-name=* |
--program-transform-name=* \
283 |
--program-transform-nam=* |
--program-transform-na=* \
284 |
--program-transform-n=* |
--program-transform-=* \
285 |
--program-transform=* |
--program-transfor=* \
286 |
--program-transfo=* |
--program-transf=* \
287 |
--program-trans=* |
--program-tran=* \
288 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
289 program_transform_name
="$ac_optarg" ;;
291 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
292 |
-silent |
--silent |
--silen |
--sile |
--sil)
295 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
297 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
299 sbindir
="$ac_optarg" ;;
301 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
302 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
303 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
305 ac_prev
=sharedstatedir
;;
306 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
307 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
308 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
310 sharedstatedir
="$ac_optarg" ;;
312 -site |
--site |
--sit)
314 -site=* |
--site=* |
--sit=*)
317 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
319 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
320 srcdir
="$ac_optarg" ;;
322 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
323 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
324 ac_prev
=sysconfdir
;;
325 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
326 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
327 sysconfdir
="$ac_optarg" ;;
329 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
331 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
332 target
="$ac_optarg" ;;
334 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
337 -version |
--version |
--versio |
--versi |
--vers)
338 echo "configure generated by autoconf version 2.13"
342 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 ac_package
=`echo $ac_package| sed 's/-/_/g'`
352 eval "with_${ac_package}='$ac_optarg'" ;;
354 -without-* |
--without-*)
355 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package
=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
364 # Obsolete; use --with-x.
367 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
368 |
--x-incl |
--x-inc |
--x-in |
--x-i)
369 ac_prev
=x_includes
;;
370 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
371 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
372 x_includes
="$ac_optarg" ;;
374 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
375 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
376 ac_prev
=x_libraries
;;
377 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
378 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
379 x_libraries
="$ac_optarg" ;;
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 if test "x$nonopt" != xNONE
; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403 # File descriptor usage:
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
429 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
430 |
--no-cr |
--no-c) ;;
431 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
432 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
433 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest
* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file
=main.c
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted
=yes
461 # Try the directory containing this script, then its parent.
463 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
466 if test ! -r $srcdir/$ac_unique_file; then
470 ac_srcdir_defaulted
=no
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE
; then
484 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
486 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 for ac_site_file
in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
500 echo "creating cache $cache_file"
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp
='$CPP $CPPFLAGS'
507 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling
=$ac_cv_prog_cc_cross
513 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
522 ac_n
= ac_c
='\c' ac_t
=
527 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
528 if test -f $ac_dir/install-sh
; then
530 ac_install_sh
="$ac_aux_dir/install-sh -c"
532 elif test -f $ac_dir/install.sh
; then
534 ac_install_sh
="$ac_aux_dir/install.sh -c"
538 if test -z "$ac_aux_dir"; then
539 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
541 ac_config_guess
=$ac_aux_dir/config.guess
542 ac_config_sub
=$ac_aux_dir/config.sub
543 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
545 # Find a good install program. We prefer a C program (faster),
546 # so one script is as good as another. But avoid the broken or
547 # incompatible versions:
548 # SysV /etc/install, /usr/sbin/install
549 # SunOS /usr/etc/install
552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
555 # ./install, which can be erroneously created by make from ./install.sh.
556 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
557 echo "configure:558: checking for a BSD compatible install" >&5
558 if test -z "$INSTALL"; then
559 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
562 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
563 for ac_dir
in $PATH; do
564 # Account for people who put trailing slashes in PATH elements.
566 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
568 # OSF1 and SCO ODT 3.0 have their own names for install.
569 # Don't use installbsd from OSF since it installs stuff as root
571 for ac_prog
in ginstall scoinst
install; do
572 if test -f $ac_dir/$ac_prog; then
573 if test $ac_prog = install &&
574 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
575 # AIX install. It has an incompatible calling convention.
578 ac_cv_path_install
="$ac_dir/$ac_prog -c"
589 if test "${ac_cv_path_install+set}" = set; then
590 INSTALL
="$ac_cv_path_install"
592 # As a last resort, use the slow shell script. We don't cache a
593 # path for INSTALL within a source directory, because that will
594 # break other packages using the cache if that directory is
595 # removed, or if the path is relative.
596 INSTALL
="$ac_install_sh"
599 echo "$ac_t""$INSTALL" 1>&6
601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
602 # It thinks the first close brace ends the variable substitution.
603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
607 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
609 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
610 echo "configure:611: checking whether build environment is sane" >&5
613 echo timestamp
> conftestfile
614 # Do `set' in a subshell so we don't clobber the current shell's
615 # arguments. Must try -L first in case configure is actually a
616 # symlink; some systems play weird games with the mod time of symlinks
617 # (eg FreeBSD returns the mod time of the symlink's containing
620 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
621 if test "$*" = "X"; then
623 set X
`ls -t $srcdir/configure conftestfile`
625 if test "$*" != "X $srcdir/configure conftestfile" \
626 && test "$*" != "X conftestfile $srcdir/configure"; then
628 # If neither matched, then we have a broken ls. This can happen
629 # if, for instance, CONFIG_SHELL is bash and it inherits a
630 # broken ls alias from the environment. This has actually
631 # happened. Such a system could not be considered "sane".
632 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
633 alias in your environment" 1>&2; exit 1; }
636 test "$2" = conftestfile
642 { echo "configure: error: newly created file is older than distributed files!
643 Check your system clock" 1>&2; exit 1; }
646 echo "$ac_t""yes" 1>&6
647 if test "$program_transform_name" = s
,x
,x
,; then
648 program_transform_name
=
650 # Double any \ or $. echo might interpret backslashes.
651 cat <<\EOF_SED
> conftestsed
652 s
,\\,\\\\,g
; s
,\$
,$$
,g
654 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
657 test "$program_prefix" != NONE
&&
658 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
659 # Use a double $ so make ignores it.
660 test "$program_suffix" != NONE
&&
661 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
663 # sed with no file args requires a program.
664 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
666 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
667 echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5
668 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
669 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 cat > conftestmake
<<\EOF
674 @
echo 'ac_maketemp="${MAKE}"'
676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
677 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
678 if test -n "$ac_maketemp"; then
679 eval ac_cv_prog_make_
${ac_make}_set
=yes
681 eval ac_cv_prog_make_
${ac_make}_set
=no
685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
686 echo "$ac_t""yes" 1>&6
689 echo "$ac_t""no" 1>&6
690 SET_MAKE
="MAKE=${MAKE-make}"
698 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
699 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
701 cat >> confdefs.h
<<EOF
702 #define PACKAGE "$PACKAGE"
705 cat >> confdefs.h
<<EOF
706 #define VERSION "$VERSION"
711 missing_dir
=`cd $ac_aux_dir && pwd`
712 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
713 echo "configure:714: checking for working aclocal" >&5
714 # Run test in a subshell; some versions of sh will print an error if
715 # an executable is not found, even if stderr is redirected.
716 # Redirect stdin to placate older versions of autoconf. Sigh.
717 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
719 echo "$ac_t""found" 1>&6
721 ACLOCAL
="$missing_dir/missing aclocal"
722 echo "$ac_t""missing" 1>&6
725 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
726 echo "configure:727: checking for working autoconf" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf. Sigh.
730 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
732 echo "$ac_t""found" 1>&6
734 AUTOCONF
="$missing_dir/missing autoconf"
735 echo "$ac_t""missing" 1>&6
738 echo $ac_n "checking for working automake""... $ac_c" 1>&6
739 echo "configure:740: checking for working automake" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
745 echo "$ac_t""found" 1>&6
747 AUTOMAKE
="$missing_dir/missing automake"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoheader" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
757 AUTOHEADER
=autoheader
758 echo "$ac_t""found" 1>&6
760 AUTOHEADER
="$missing_dir/missing autoheader"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
765 echo "configure:766: checking for working makeinfo" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
771 echo "$ac_t""found" 1>&6
773 MAKEINFO
="$missing_dir/missing makeinfo"
774 echo "$ac_t""missing" 1>&6
778 # Extract the first word of "gcc", so it can be a program name with args.
779 set dummy gcc
; ac_word
=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 if test -n "$CC"; then
786 ac_cv_prog_CC
="$CC" # Let the user override the test.
788 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
790 for ac_dir
in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir
=.
792 if test -f $ac_dir/$ac_word; then
801 if test -n "$CC"; then
802 echo "$ac_t""$CC" 1>&6
804 echo "$ac_t""no" 1>&6
807 if test -z "$CC"; then
808 # Extract the first word of "cc", so it can be a program name with args.
809 set dummy cc
; ac_word
=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC
="$CC" # Let the user override the test.
818 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
821 for ac_dir
in $ac_dummy; do
822 test -z "$ac_dir" && ac_dir
=.
823 if test -f $ac_dir/$ac_word; then
824 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
833 if test $ac_prog_rejected = yes; then
834 # We found a bogon in the path, so make sure we never use it.
835 set dummy
$ac_cv_prog_CC
837 if test $# -gt 0; then
838 # We chose a different compiler from the bogus one.
839 # However, it has the same basename, so the bogon will be chosen
840 # first if we set CC to just the basename; use the full file name.
842 set dummy
"$ac_dir/$ac_word" "$@"
850 if test -n "$CC"; then
851 echo "$ac_t""$CC" 1>&6
853 echo "$ac_t""no" 1>&6
856 if test -z "$CC"; then
859 # Extract the first word of "cl", so it can be a program name with args.
860 set dummy cl
; ac_word
=$2
861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
862 echo "configure:863: checking for $ac_word" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 if test -n "$CC"; then
867 ac_cv_prog_CC
="$CC" # Let the user override the test.
869 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
871 for ac_dir
in $ac_dummy; do
872 test -z "$ac_dir" && ac_dir
=.
873 if test -f $ac_dir/$ac_word; then
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
890 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
893 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
894 echo "configure:895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
898 ac_cpp
='$CPP $CPPFLAGS'
899 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
900 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
901 cross_compiling
=$ac_cv_prog_cc_cross
903 cat > conftest.
$ac_ext << EOF
905 #line 906 "configure"
906 #include "confdefs.h"
910 if { (eval echo configure
:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
911 ac_cv_prog_cc_works
=yes
912 # If we can't run a trivial program, we are probably using a cross compiler.
913 if (.
/conftest
; exit) 2>/dev
/null
; then
914 ac_cv_prog_cc_cross
=no
916 ac_cv_prog_cc_cross
=yes
919 echo "configure: failed program was:" >&5
920 cat conftest.
$ac_ext >&5
921 ac_cv_prog_cc_works
=no
925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926 ac_cpp
='$CPP $CPPFLAGS'
927 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929 cross_compiling
=$ac_cv_prog_cc_cross
931 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
932 if test $ac_cv_prog_cc_works = no
; then
933 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
937 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
938 cross_compiling
=$ac_cv_prog_cc_cross
940 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
941 echo "configure:942: checking whether we are using GNU C" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 cat > conftest.c
<<EOF
950 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
957 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
959 if test $ac_cv_prog_gcc = yes; then
965 ac_test_CFLAGS
="${CFLAGS+set}"
966 ac_save_CFLAGS
="$CFLAGS"
968 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
969 echo "configure:970: checking whether ${CC-cc} accepts -g" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 echo 'void f(){}' > conftest.c
974 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
983 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
984 if test "$ac_test_CFLAGS" = set; then
985 CFLAGS
="$ac_save_CFLAGS"
986 elif test $ac_cv_prog_cc_g = yes; then
987 if test "$GCC" = yes; then
993 if test "$GCC" = yes; then
1000 # Find a good install program. We prefer a C program (faster),
1001 # so one script is as good as another. But avoid the broken or
1002 # incompatible versions:
1003 # SysV /etc/install, /usr/sbin/install
1004 # SunOS /usr/etc/install
1005 # IRIX /sbin/install
1007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1010 # ./install, which can be erroneously created by make from ./install.sh.
1011 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1012 echo "configure:1013: checking for a BSD compatible install" >&5
1013 if test -z "$INSTALL"; then
1014 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1018 for ac_dir
in $PATH; do
1019 # Account for people who put trailing slashes in PATH elements.
1021 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1023 # OSF1 and SCO ODT 3.0 have their own names for install.
1024 # Don't use installbsd from OSF since it installs stuff as root
1026 for ac_prog
in ginstall scoinst
install; do
1027 if test -f $ac_dir/$ac_prog; then
1028 if test $ac_prog = install &&
1029 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1030 # AIX install. It has an incompatible calling convention.
1033 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1044 if test "${ac_cv_path_install+set}" = set; then
1045 INSTALL
="$ac_cv_path_install"
1047 # As a last resort, use the slow shell script. We don't cache a
1048 # path for INSTALL within a source directory, because that will
1049 # break other packages using the cache if that directory is
1050 # removed, or if the path is relative.
1051 INSTALL
="$ac_install_sh"
1054 echo "$ac_t""$INSTALL" 1>&6
1056 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1057 # It thinks the first close brace ends the variable substitution.
1058 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1060 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1062 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1064 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1065 echo "configure:1066: checking how to run the C preprocessor" >&5
1066 # On Suns, sometimes $CPP names a directory.
1067 if test -n "$CPP" && test -d "$CPP"; then
1070 if test -z "$CPP"; then
1071 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 # This must be in double quotes, not single quotes, because CPP may get
1075 # substituted into the Makefile and "${CC-cc}" will confuse make.
1077 # On the NeXT, cc -E runs the code through the compiler's parser,
1078 # not just through cpp.
1079 cat > conftest.
$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1085 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1086 { (eval echo configure
:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1087 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1088 if test -z "$ac_err"; then
1092 echo "configure: failed program was:" >&5
1093 cat conftest.
$ac_ext >&5
1095 CPP
="${CC-cc} -E -traditional-cpp"
1096 cat > conftest.
$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1102 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1103 { (eval echo configure
:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1104 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1105 if test -z "$ac_err"; then
1109 echo "configure: failed program was:" >&5
1110 cat conftest.
$ac_ext >&5
1112 CPP
="${CC-cc} -nologo -E"
1113 cat > conftest.
$ac_ext <<EOF
1114 #line 1115 "configure"
1115 #include "confdefs.h"
1119 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1120 { (eval echo configure
:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1121 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1122 if test -z "$ac_err"; then
1126 echo "configure: failed program was:" >&5
1127 cat conftest.
$ac_ext >&5
1136 ac_cv_prog_CPP
="$CPP"
1138 CPP
="$ac_cv_prog_CPP"
1140 ac_cv_prog_CPP
="$CPP"
1142 echo "$ac_t""$CPP" 1>&6
1144 # If we find X, set shell vars x_includes and x_libraries to the
1145 # paths, otherwise set no_x=yes.
1146 # Uses ac_ vars as temps to allow command line to override cache and checks.
1147 # --without-x overrides everything else, but does not touch the cache.
1148 echo $ac_n "checking for X""... $ac_c" 1>&6
1149 echo "configure:1150: checking for X" >&5
1151 # Check whether --with-x or --without-x was given.
1152 if test "${with_x+set}" = set; then
1157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1158 if test "x$with_x" = xno
; then
1159 # The user explicitly disabled X.
1162 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1163 # Both variables are already set.
1166 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 # One or both of the vars are not set, and there is no cached value.
1170 ac_x_includes
=NO ac_x_libraries
=NO
1172 if mkdir conftestdir
; then
1174 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1175 cat > Imakefile
<<'EOF'
1177 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1179 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1181 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1182 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1183 for ac_extension
in a so sl
; do
1184 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1185 test -f $ac_im_libdir/libX11.
$ac_extension; then
1186 ac_im_usrlibdir
=$ac_im_libdir; break
1189 # Screen out bogus values from the imake configuration. They are
1190 # bogus both because they are the default anyway, and because
1191 # using them would break gcc on systems where it needs fixed includes.
1192 case "$ac_im_incroot" in
1194 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1196 case "$ac_im_usrlibdir" in
1198 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1205 if test "$ac_x_includes" = NO
; then
1206 # Guess where to find include files, by looking for this one X11 .h file.
1207 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1209 # First, try using that file with no special directory specified.
1210 cat > conftest.
$ac_ext <<EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1213 #include <$x_direct_test_include>
1215 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216 { (eval echo configure
:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1217 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1218 if test -z "$ac_err"; then
1220 # We can compile using X headers with no special include directory.
1224 echo "configure: failed program was:" >&5
1225 cat conftest.
$ac_ext >&5
1227 # Look for the header file in a standard set of common directories.
1228 # Check X11 before X11Rn because it is often a symlink to the current release.
1231 /usr
/X11R
6/include \
1232 /usr
/X11R
5/include \
1233 /usr
/X11R
4/include \
1236 /usr
/include
/X11R6 \
1237 /usr
/include
/X11R5 \
1238 /usr
/include
/X11R4 \
1240 /usr
/local
/X11
/include \
1241 /usr
/local
/X11R
6/include \
1242 /usr
/local
/X11R
5/include \
1243 /usr
/local
/X11R
4/include \
1245 /usr
/local
/include
/X11 \
1246 /usr
/local
/include
/X11R6 \
1247 /usr
/local
/include
/X11R5 \
1248 /usr
/local
/include
/X11R4 \
1252 /usr
/XFree86
/include
/X11 \
1255 /usr
/local
/include \
1256 /usr
/unsupported
/include \
1257 /usr
/athena
/include \
1258 /usr
/local
/x11r
5/include \
1259 /usr
/lpp
/Xamples
/include \
1261 /usr
/openwin
/include \
1262 /usr
/openwin
/share
/include \
1265 if test -r "$ac_dir/$x_direct_test_include"; then
1266 ac_x_includes
=$ac_dir
1272 fi # $ac_x_includes = NO
1274 if test "$ac_x_libraries" = NO
; then
1275 # Check for the libraries.
1277 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1278 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1280 # See if we find them without any special options.
1281 # Don't add to $LIBS permanently.
1282 ac_save_LIBS
="$LIBS"
1283 LIBS
="-l$x_direct_test_library $LIBS"
1284 cat > conftest.
$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1289 ${x_direct_test_function}()
1292 if { (eval echo configure
:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1294 LIBS
="$ac_save_LIBS"
1295 # We can link X programs with no special library path.
1298 echo "configure: failed program was:" >&5
1299 cat conftest.
$ac_ext >&5
1301 LIBS
="$ac_save_LIBS"
1302 # First see if replacing the include by lib works.
1303 # Check X11 before X11Rn because it is often a symlink to the current release.
1304 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1315 /usr
/local
/X11
/lib \
1316 /usr
/local
/X11R
6/lib \
1317 /usr
/local
/X11R
5/lib \
1318 /usr
/local
/X11R
4/lib \
1320 /usr
/local
/lib
/X11 \
1321 /usr
/local
/lib
/X11R6 \
1322 /usr
/local
/lib
/X11R5 \
1323 /usr
/local
/lib
/X11R4 \
1327 /usr
/XFree86
/lib
/X11 \
1331 /usr
/unsupported
/lib \
1333 /usr
/local
/x11r
5/lib \
1334 /usr
/lpp
/Xamples
/lib \
1338 /usr
/openwin
/share
/lib \
1341 for ac_extension
in a so sl
; do
1342 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1343 ac_x_libraries
=$ac_dir
1350 fi # $ac_x_libraries = NO
1352 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1353 # Didn't find X anywhere. Cache the known absence of X.
1354 ac_cv_have_x
="have_x=no"
1356 # Record where we found X for the cache.
1357 ac_cv_have_x
="have_x=yes \
1358 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1362 eval "$ac_cv_have_x"
1365 if test "$have_x" != yes; then
1366 echo "$ac_t""$have_x" 1>&6
1369 # If each of the values was on the command line, it overrides each guess.
1370 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1371 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1372 # Update the cache value to reflect the command line values.
1373 ac_cv_have_x
="have_x=yes \
1374 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1375 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1378 if test "$no_x" = yes; then
1379 # Not all programs may use this symbol, but it does not hurt to define it.
1380 cat >> confdefs.h
<<\EOF
1381 #define X_DISPLAY_MISSING 1
1384 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1386 if test -n "$x_includes"; then
1387 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1390 # It would also be nice to do this for all -L options, not just this one.
1391 if test -n "$x_libraries"; then
1392 X_LIBS
="$X_LIBS -L$x_libraries"
1393 # For Solaris; some versions of Sun CC require a space after -R and
1394 # others require no space. Words are not sufficient . . . .
1395 case "`(uname -sr) 2>/dev/null`" in
1397 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1398 echo "configure:1399: checking whether -R must be followed by a space" >&5
1399 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1400 cat > conftest.
$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1408 if { (eval echo configure
:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1412 echo "configure: failed program was:" >&5
1413 cat conftest.
$ac_ext >&5
1418 if test $ac_R_nospace = yes; then
1419 echo "$ac_t""no" 1>&6
1420 X_LIBS
="$X_LIBS -R$x_libraries"
1422 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1423 cat > conftest.
$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1431 if { (eval echo configure
:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1435 echo "configure: failed program was:" >&5
1436 cat conftest.
$ac_ext >&5
1441 if test $ac_R_space = yes; then
1442 echo "$ac_t""yes" 1>&6
1443 X_LIBS
="$X_LIBS -R $x_libraries"
1445 echo "$ac_t""neither works" 1>&6
1448 LIBS
="$ac_xsave_LIBS"
1452 # Check for system-dependent libraries X programs must link with.
1453 # Do this before checking for the system-independent R6 libraries
1454 # (-lICE), since we may need -lsocket or whatever for X linking.
1456 if test "$ISC" = yes; then
1457 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1459 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1460 # libraries were built with DECnet support. And karl@cs.umb.edu says
1461 # the Alpha needs dnet_stub (dnet does not exist).
1462 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1463 echo "configure:1464: checking for dnet_ntoa in -ldnet" >&5
1464 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1468 ac_save_LIBS
="$LIBS"
1470 cat > conftest.
$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 /* Override any gcc2 internal prototype to avoid an error. */
1474 /* We use char because int might match the return type of a gcc2
1475 builtin and then its argument prototype would still apply. */
1482 if { (eval echo configure
:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1484 eval "ac_cv_lib_$ac_lib_var=yes"
1486 echo "configure: failed program was:" >&5
1487 cat conftest.
$ac_ext >&5
1489 eval "ac_cv_lib_$ac_lib_var=no"
1492 LIBS
="$ac_save_LIBS"
1495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1496 echo "$ac_t""yes" 1>&6
1497 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1499 echo "$ac_t""no" 1>&6
1502 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1503 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1504 echo "configure:1505: checking for dnet_ntoa in -ldnet_stub" >&5
1505 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 ac_save_LIBS
="$LIBS"
1510 LIBS
="-ldnet_stub $LIBS"
1511 cat > conftest.
$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 /* Override any gcc2 internal prototype to avoid an error. */
1515 /* We use char because int might match the return type of a gcc2
1516 builtin and then its argument prototype would still apply. */
1523 if { (eval echo configure
:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1525 eval "ac_cv_lib_$ac_lib_var=yes"
1527 echo "configure: failed program was:" >&5
1528 cat conftest.
$ac_ext >&5
1530 eval "ac_cv_lib_$ac_lib_var=no"
1533 LIBS
="$ac_save_LIBS"
1536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1537 echo "$ac_t""yes" 1>&6
1538 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1540 echo "$ac_t""no" 1>&6
1545 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1546 # to get the SysV transport functions.
1547 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1549 # The nsl library prevents programs from opening the X display
1550 # on Irix 5.2, according to dickey@clark.net.
1551 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1552 echo "configure:1553: checking for gethostbyname" >&5
1553 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 cat > conftest.
$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 /* System header to define __stub macros and hopefully few prototypes,
1560 which can conflict with char gethostbyname(); below. */
1562 /* Override any gcc2 internal prototype to avoid an error. */
1563 /* We use char because int might match the return type of a gcc2
1564 builtin and then its argument prototype would still apply. */
1565 char gethostbyname();
1569 /* The GNU C library defines this for functions which it implements
1570 to always fail with ENOSYS. Some functions are actually named
1571 something starting with __ and the normal name is an alias. */
1572 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1580 if { (eval echo configure
:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1582 eval "ac_cv_func_gethostbyname=yes"
1584 echo "configure: failed program was:" >&5
1585 cat conftest.
$ac_ext >&5
1587 eval "ac_cv_func_gethostbyname=no"
1592 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1593 echo "$ac_t""yes" 1>&6
1596 echo "$ac_t""no" 1>&6
1599 if test $ac_cv_func_gethostbyname = no
; then
1600 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1601 echo "configure:1602: checking for gethostbyname in -lnsl" >&5
1602 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1606 ac_save_LIBS
="$LIBS"
1608 cat > conftest.
$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 /* Override any gcc2 internal prototype to avoid an error. */
1612 /* We use char because int might match the return type of a gcc2
1613 builtin and then its argument prototype would still apply. */
1614 char gethostbyname();
1620 if { (eval echo configure
:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1622 eval "ac_cv_lib_$ac_lib_var=yes"
1624 echo "configure: failed program was:" >&5
1625 cat conftest.
$ac_ext >&5
1627 eval "ac_cv_lib_$ac_lib_var=no"
1630 LIBS
="$ac_save_LIBS"
1633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1634 echo "$ac_t""yes" 1>&6
1635 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1637 echo "$ac_t""no" 1>&6
1642 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1643 # socket/setsockopt and other routines are undefined under SCO ODT
1644 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1645 # on later versions), says simon@lia.di.epfl.ch: it contains
1646 # gethostby* variants that don't use the nameserver (or something).
1647 # -lsocket must be given before -lnsl if both are needed.
1648 # We assume that if connect needs -lnsl, so does gethostbyname.
1649 echo $ac_n "checking for connect""... $ac_c" 1>&6
1650 echo "configure:1651: checking for connect" >&5
1651 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.
$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 /* System header to define __stub macros and hopefully few prototypes,
1658 which can conflict with char connect(); below. */
1660 /* Override any gcc2 internal prototype to avoid an error. */
1661 /* We use char because int might match the return type of a gcc2
1662 builtin and then its argument prototype would still apply. */
1667 /* The GNU C library defines this for functions which it implements
1668 to always fail with ENOSYS. Some functions are actually named
1669 something starting with __ and the normal name is an alias. */
1670 #if defined (__stub_connect) || defined (__stub___connect)
1678 if { (eval echo configure
:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1680 eval "ac_cv_func_connect=yes"
1682 echo "configure: failed program was:" >&5
1683 cat conftest.
$ac_ext >&5
1685 eval "ac_cv_func_connect=no"
1690 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1691 echo "$ac_t""yes" 1>&6
1694 echo "$ac_t""no" 1>&6
1697 if test $ac_cv_func_connect = no
; then
1698 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1699 echo "configure:1700: checking for connect in -lsocket" >&5
1700 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 ac_save_LIBS
="$LIBS"
1705 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1706 cat > conftest.
$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1709 /* Override any gcc2 internal prototype to avoid an error. */
1710 /* We use char because int might match the return type of a gcc2
1711 builtin and then its argument prototype would still apply. */
1718 if { (eval echo configure
:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1720 eval "ac_cv_lib_$ac_lib_var=yes"
1722 echo "configure: failed program was:" >&5
1723 cat conftest.
$ac_ext >&5
1725 eval "ac_cv_lib_$ac_lib_var=no"
1728 LIBS
="$ac_save_LIBS"
1731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1732 echo "$ac_t""yes" 1>&6
1733 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1735 echo "$ac_t""no" 1>&6
1740 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1741 echo $ac_n "checking for remove""... $ac_c" 1>&6
1742 echo "configure:1743: checking for remove" >&5
1743 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 cat > conftest.
$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char remove(); below. */
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined (__stub_remove) || defined (__stub___remove)
1770 if { (eval echo configure
:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1772 eval "ac_cv_func_remove=yes"
1774 echo "configure: failed program was:" >&5
1775 cat conftest.
$ac_ext >&5
1777 eval "ac_cv_func_remove=no"
1782 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1783 echo "$ac_t""yes" 1>&6
1786 echo "$ac_t""no" 1>&6
1789 if test $ac_cv_func_remove = no
; then
1790 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1791 echo "configure:1792: checking for remove in -lposix" >&5
1792 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 ac_save_LIBS
="$LIBS"
1797 LIBS
="-lposix $LIBS"
1798 cat > conftest.
$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 /* Override any gcc2 internal prototype to avoid an error. */
1802 /* We use char because int might match the return type of a gcc2
1803 builtin and then its argument prototype would still apply. */
1810 if { (eval echo configure
:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1812 eval "ac_cv_lib_$ac_lib_var=yes"
1814 echo "configure: failed program was:" >&5
1815 cat conftest.
$ac_ext >&5
1817 eval "ac_cv_lib_$ac_lib_var=no"
1820 LIBS
="$ac_save_LIBS"
1823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
1825 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1827 echo "$ac_t""no" 1>&6
1832 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1833 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1834 echo "configure:1835: checking for shmat" >&5
1835 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 cat > conftest.
$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char shmat(); below. */
1844 /* Override any gcc2 internal prototype to avoid an error. */
1845 /* We use char because int might match the return type of a gcc2
1846 builtin and then its argument prototype would still apply. */
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined (__stub_shmat) || defined (__stub___shmat)
1862 if { (eval echo configure
:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1864 eval "ac_cv_func_shmat=yes"
1866 echo "configure: failed program was:" >&5
1867 cat conftest.
$ac_ext >&5
1869 eval "ac_cv_func_shmat=no"
1874 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1875 echo "$ac_t""yes" 1>&6
1878 echo "$ac_t""no" 1>&6
1881 if test $ac_cv_func_shmat = no
; then
1882 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1883 echo "configure:1884: checking for shmat in -lipc" >&5
1884 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 ac_save_LIBS
="$LIBS"
1890 cat > conftest.
$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1893 /* Override any gcc2 internal prototype to avoid an error. */
1894 /* We use char because int might match the return type of a gcc2
1895 builtin and then its argument prototype would still apply. */
1902 if { (eval echo configure
:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1904 eval "ac_cv_lib_$ac_lib_var=yes"
1906 echo "configure: failed program was:" >&5
1907 cat conftest.
$ac_ext >&5
1909 eval "ac_cv_lib_$ac_lib_var=no"
1912 LIBS
="$ac_save_LIBS"
1915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1916 echo "$ac_t""yes" 1>&6
1917 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1919 echo "$ac_t""no" 1>&6
1925 # Check for libraries that X11R6 Xt/Xaw programs need.
1926 ac_save_LDFLAGS
="$LDFLAGS"
1927 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1928 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1929 # check for ICE first), but we must link in the order -lSM -lICE or
1930 # we get undefined symbols. So assume we have SM if we have ICE.
1931 # These have to be linked with before -lX11, unlike the other
1932 # libraries we check for below, so use a different variable.
1933 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1934 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1935 echo "configure:1936: checking for IceConnectionNumber in -lICE" >&5
1936 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 ac_save_LIBS
="$LIBS"
1941 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1942 cat > conftest.
$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 /* Override any gcc2 internal prototype to avoid an error. */
1946 /* We use char because int might match the return type of a gcc2
1947 builtin and then its argument prototype would still apply. */
1948 char IceConnectionNumber();
1951 IceConnectionNumber()
1954 if { (eval echo configure
:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1956 eval "ac_cv_lib_$ac_lib_var=yes"
1958 echo "configure: failed program was:" >&5
1959 cat conftest.
$ac_ext >&5
1961 eval "ac_cv_lib_$ac_lib_var=no"
1964 LIBS
="$ac_save_LIBS"
1967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1968 echo "$ac_t""yes" 1>&6
1969 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1971 echo "$ac_t""no" 1>&6
1974 LDFLAGS
="$ac_save_LDFLAGS"
1979 if test "$x_includes" != "NONE"; then
1980 CFLAGS
="$CFLAGS -I$x_includes"
1983 if test "$x_libraries" != "NONE"; then
1984 LDFLAGS
="$LDFLAGS -L$x_libraries"
1987 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
1988 echo "configure:1989: checking for XOpenDisplay in -lX11" >&5
1989 ac_lib_var
=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
1990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 ac_save_LIBS
="$LIBS"
1995 cat > conftest.
$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1998 /* Override any gcc2 internal prototype to avoid an error. */
1999 /* We use char because int might match the return type of a gcc2
2000 builtin and then its argument prototype would still apply. */
2001 char XOpenDisplay();
2007 if { (eval echo configure
:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2009 eval "ac_cv_lib_$ac_lib_var=yes"
2011 echo "configure: failed program was:" >&5
2012 cat conftest.
$ac_ext >&5
2014 eval "ac_cv_lib_$ac_lib_var=no"
2017 LIBS
="$ac_save_LIBS"
2020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2021 echo "$ac_t""yes" 1>&6
2022 ac_tr_lib
=HAVE_LIB
`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2023 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2024 cat >> confdefs.h
<<EOF
2025 #define $ac_tr_lib 1
2031 echo "$ac_t""no" 1>&6
2034 echo $ac_n "checking for XShapeCombineMask in -lXext""... $ac_c" 1>&6
2035 echo "configure:2036: checking for XShapeCombineMask in -lXext" >&5
2036 ac_lib_var
=`echo Xext'_'XShapeCombineMask | sed 'y%./+-%__p_%'`
2037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2040 ac_save_LIBS
="$LIBS"
2042 cat > conftest.
$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045 /* Override any gcc2 internal prototype to avoid an error. */
2046 /* We use char because int might match the return type of a gcc2
2047 builtin and then its argument prototype would still apply. */
2048 char XShapeCombineMask();
2054 if { (eval echo configure
:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2056 eval "ac_cv_lib_$ac_lib_var=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.
$ac_ext >&5
2061 eval "ac_cv_lib_$ac_lib_var=no"
2064 LIBS
="$ac_save_LIBS"
2067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_lib
=HAVE_LIB
`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2071 cat >> confdefs.h
<<EOF
2072 #define $ac_tr_lib 1
2078 echo "$ac_t""no" 1>&6
2081 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2082 echo "configure:2083: checking for XpmCreatePixmapFromData in -lXpm" >&5
2083 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 ac_save_LIBS
="$LIBS"
2088 LIBS
="-lXpm $LIBS $LIBS"
2089 cat > conftest.
$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2092 /* Override any gcc2 internal prototype to avoid an error. */
2093 /* We use char because int might match the return type of a gcc2
2094 builtin and then its argument prototype would still apply. */
2095 char XpmCreatePixmapFromData();
2098 XpmCreatePixmapFromData()
2101 if { (eval echo configure
:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2103 eval "ac_cv_lib_$ac_lib_var=yes"
2105 echo "configure: failed program was:" >&5
2106 cat conftest.
$ac_ext >&5
2108 eval "ac_cv_lib_$ac_lib_var=no"
2111 LIBS
="$ac_save_LIBS"
2114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 ac_tr_lib
=HAVE_LIB
`echo Xpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2117 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2118 cat >> confdefs.h
<<EOF
2119 #define $ac_tr_lib 1
2125 echo "$ac_t""no" 1>&6
2130 cat > confcache
<<\EOF
2131 # This file is a shell script that caches the results of configure
2132 # tests run on this system so they can be shared between configure
2133 # scripts and configure runs. It is not useful on other systems.
2134 # If it contains results you don't want to keep, you may remove or edit it.
2136 # By default, configure uses ./config.cache as the cache file,
2137 # creating it if it does not exist already. You can give configure
2138 # the --cache-file=FILE option to use a different cache file; that is
2139 # what configure does when it calls configure scripts in
2140 # subdirectories, so they share the cache.
2141 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2142 # config.status only pays attention to the cache file if you give it the
2143 # --recheck option to rerun configure.
2146 # The following way of writing the cache mishandles newlines in values,
2147 # but we know of no workaround that is simple, portable, and efficient.
2148 # So, don't put newlines in cache variables' values.
2149 # Ultrix sh set writes to stderr and can't be redirected directly,
2150 # and sets the high bit in the cache file unless we assign to the vars.
2152 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2154 # `set' does not quote correctly, so add quotes (double-quote substitution
2155 # turns \\\\ into \\, and sed turns \\ into \).
2157 -e "s/'/'\\\\''/g" \
2158 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2161 # `set' quotes correctly as required by POSIX, so do not add quotes.
2162 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2165 if cmp -s $cache_file confcache
; then
2168 if test -w $cache_file; then
2169 echo "updating cache $cache_file"
2170 cat confcache
> $cache_file
2172 echo "not updating unwritable cache $cache_file"
2177 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2179 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2180 # Let make expand exec_prefix.
2181 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2183 # Any assignment to VPATH causes Sun make to only execute
2184 # the first set of double-colon rules, so remove it if not needed.
2185 # If there is a colon in the path, we need to keep it.
2186 if test "x$srcdir" = x.
; then
2187 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2190 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2192 # Transform confdefs.h into DEFS.
2193 # Protect against shell expansion while executing Makefile rules.
2194 # Protect against Makefile macro expansion.
2195 cat > conftest.defs
<<\EOF
2196 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2197 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2202 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2206 # Without the "./", some shells look in PATH for config.status.
2207 : ${CONFIG_STATUS=./config.status}
2209 echo creating $CONFIG_STATUS
2210 rm -f $CONFIG_STATUS
2211 cat > $CONFIG_STATUS <<EOF
2213 # Generated automatically by configure.
2214 # Run this file to recreate the current configuration.
2215 # This directory was configured as follows,
2216 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2218 # $0 $ac_configure_args
2220 # Compiler output produced by configure, useful for debugging
2221 # configure, is in ./config.log if it exists.
2223 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2226 case "\$ac_option" in
2227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2228 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2229 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2230 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2231 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2233 -help | --help | --hel | --he | --h)
2234 echo "\$ac_cs_usage"; exit 0 ;;
2235 *) echo "\$ac_cs_usage"; exit 1 ;;
2239 ac_given_srcdir=$srcdir
2240 ac_given_INSTALL="$INSTALL"
2242 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2244 cat >> $CONFIG_STATUS <<EOF
2246 # Protect against being on the right side of a sed subst in config.status.
2247 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2248 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2252 s%@CFLAGS@%$CFLAGS%g
2253 s%@CPPFLAGS@%$CPPFLAGS%g
2254 s%@CXXFLAGS@%$CXXFLAGS%g
2255 s%@FFLAGS@%$FFLAGS%g
2257 s%@LDFLAGS@%$LDFLAGS%g
2259 s%@exec_prefix@%$exec_prefix%g
2260 s%@prefix@%$prefix%g
2261 s%@program_transform_name@%$program_transform_name%g
2262 s%@bindir@%$bindir%g
2263 s%@sbindir@%$sbindir%g
2264 s%@libexecdir@%$libexecdir%g
2265 s%@datadir@%$datadir%g
2266 s%@sysconfdir@%$sysconfdir%g
2267 s%@sharedstatedir@%$sharedstatedir%g
2268 s%@localstatedir@%$localstatedir%g
2269 s%@libdir@%$libdir%g
2270 s%@includedir@%$includedir%g
2271 s%@oldincludedir@%$oldincludedir%g
2272 s%@infodir@%$infodir%g
2273 s%@mandir@%$mandir%g
2274 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2275 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2276 s%@INSTALL_DATA@%$INSTALL_DATA%g
2277 s%@PACKAGE@%$PACKAGE%g
2278 s%@VERSION@%$VERSION%g
2279 s%@ACLOCAL@%$ACLOCAL%g
2280 s%@AUTOCONF@%$AUTOCONF%g
2281 s%@AUTOMAKE@%$AUTOMAKE%g
2282 s%@AUTOHEADER@%$AUTOHEADER%g
2283 s%@MAKEINFO@%$MAKEINFO%g
2284 s%@SET_MAKE@%$SET_MAKE%g
2287 s%@X_CFLAGS@%$X_CFLAGS%g
2288 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2289 s%@X_LIBS@%$X_LIBS%g
2290 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2295 cat >> $CONFIG_STATUS <<\EOF
2297 # Split the substitutions into bite-sized pieces for seds with
2298 # small command number limits, like on Digital OSF/1 and HP-UX.
2299 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2300 ac_file=1 # Number of current file.
2301 ac_beg=1 # First line for current file.
2302 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2305 while $ac_more_lines; do
2306 if test $ac_beg -gt 1; then
2307 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2309 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2311 if test ! -s conftest.s$ac_file; then
2313 rm -f conftest.s$ac_file
2315 if test -z "$ac_sed_cmds"; then
2316 ac_sed_cmds="sed -f conftest.s$ac_file"
2318 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2320 ac_file=`expr $ac_file + 1`
2322 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2325 if test -z "$ac_sed_cmds"; then
2330 cat >> $CONFIG_STATUS <<EOF
2332 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2334 cat >> $CONFIG_STATUS <<\EOF
2335 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2336 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2338 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2339 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2340 *) ac_file_in="${ac_file}.in" ;;
2343 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2345 # Remove last slash and all that follows it. Not all systems have dirname.
2346 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2347 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2348 # The file is in a subdirectory.
2349 test ! -d "$ac_dir" && mkdir "$ac_dir"
2350 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2351 # A "../" for each directory in $ac_dir_suffix.
2352 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2354 ac_dir_suffix= ac_dots=
2357 case "$ac_given_srcdir" in
2359 if test -z "$ac_dots"; then top_srcdir=.
2360 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2361 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2363 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2364 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2367 case "$ac_given_INSTALL" in
2368 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2369 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2372 echo creating "$ac_file"
2374 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2376 *Makefile*) ac_comsub="1i\\
2377 # $configure_input" ;;
2381 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2383 s%@configure_input@%$configure_input%g
2384 s%@srcdir@%$srcdir%g
2385 s%@top_srcdir@%$top_srcdir%g
2386 s%@INSTALL@%$INSTALL%g
2387 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2392 cat >> $CONFIG_STATUS <<EOF
2395 cat >> $CONFIG_STATUS <<\EOF
2399 chmod +x $CONFIG_STATUS
2400 rm -fr confdefs* $ac_clean_files
2401 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1