3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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:
17 --enable-subdir=DIR Put the demo programs in a subdirectory of \`bindir',
18 instead of putting them in bindir itself. You can
19 specify the name of the subdirectory. For example,
20 --exec-prefix=/usr/local/bin --enable-subdir=demos
21 would put xscreensaver in /usr/local/bin/, and would
22 put the demos in /usr/local/bin/demos/. (If DIR
23 begins with /, then bindir will not be prepended.)
25 --disable-subdir Just put the demos in \`bindir' (this is the default.)
29 Except where noted, all of the --with options below can also take a
30 directory argument: for example, --with-motif=/opt/Motif. That would
31 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
32 to be added to the -L list, assuming those directories exist.
34 X Server Extension options:
36 --with-sgi-ext Include support for the SGI SCREEN_SAVER
37 server extension, if possible (this is the default).
38 --without-sgi-ext Do not compile in support for this extension."
40 --with-mit-ext Include support for the MIT-SCREEN-SAVER
41 server extension, if possible (this is the default).
42 --without-mit-ext Do not compile in support for this extension."
44 --with-xidle-ext Include support for the XIDLE server extension,
45 if possible (this is the default).
46 --without-xidle-ext Do not compile in support for this extension."
48 --with-xshm-ext Include support for the XSHM (Shared Memory) server
49 extension, if possible (this is the default).
50 --without-xshm-ext Do not compile in support for this extension."
52 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL server
53 extension, if possible (this is the default).
54 --without-sgivc-ext Do not compile in support for this extension."
56 --with-dpms-ext Include support for the DPMS server extension,
57 if possible (this is the default).
58 --without-dpms-ext Do not compile in support for this extension."
61 X Client Toolkit options:
63 --with-motif Use the Motif toolkit for the user interface, if
64 possible (this is the default).
65 --without-motif Do not use Motif."
67 --with-athena Use the Athena toolkit for the user interface, if
68 possible (this is the default if Motif isn't used.)
69 --without-athena Do not use Athena."
72 Graphics Demo options:
74 --with-xpm Include support for XPM files in some demos,
75 if possible (this is the default).
76 --without-xpm Do not compile in support for XPM files."
78 --with-gl Build those demos which depend on OpenGL,
79 if possible (this is the default).
80 --without-gl Do not build the OpenGL demos."
82 --with-readdisplay Include support for the XReadDisplay server
83 extension if possible (this is the default).
84 --without-readdisplay Do not compile in support for this extension."
86 --with-sgivideo Include support for SGI's Iris Video Library
87 if possible (this is the default).
88 --without-sgivideo Do not compile in support for this library."
90 --with-zippy=PROGRAM Some demos are able to run an external program and
91 display its text; this names the program to use by
92 default (though it can be overridden with X
93 resources.) If you don't specify this, the default
94 is to use \"yow\" from the Emacs distribution (if you
95 have it) or else to use \"fortune\"."
98 Screen Locking options:
100 --enable-locking Compile in support for locking the display
101 (this is the default.)
102 --disable-locking Do not allow locking at all."
105 --enable-vt-locking Compile in support for locking Virtual Terminals.
106 This is the default if the system supports it, and
107 if locking support is included (--enable-locking.)
108 --disable-vt-locking Do not allow locking of VTs, even if locking is
112 --with-kerberos Include support for Kerberos authentication,
113 if possible (this is the default.)
114 --without-kerberos Do not compile in support for Kerberos."
116 --with-shadow Include support for shadow password authentication,
117 if possible (this is the default, if no Kerberos.)
118 --without-shadow Do not compile in support for shadow passwords.
121 # Initialize some variables set by options.
122 # The variables have the same names as the options, with
123 # dashes changed to underlines.
125 cache_file=./config.cache
134 program_transform_name=s,x,x,
142 bindir='${exec_prefix}/bin'
143 sbindir='${exec_prefix}/sbin'
144 libexecdir='${exec_prefix}/libexec'
145 datadir='${prefix}/share'
146 sysconfdir='${prefix}/etc'
147 sharedstatedir='${prefix}/com'
148 localstatedir='${prefix}/var'
149 libdir='${exec_prefix}/lib'
150 includedir='${prefix}/include'
151 oldincludedir='/usr/include'
152 infodir='${prefix}/info'
153 mandir='${prefix}/man'
155 # Initialize some other variables.
158 # Maximum number of lines to put in a shell here document.
165 # If the previous option needs an argument, assign it.
166 if test -n "$ac_prev"; then
167 eval "$ac_prev=\$ac_option"
173 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
177 # Accept the important Cygnus configure options, so we can diagnose typos.
181 -bindir | --bindir | --bindi | --bind | --bin | --bi)
183 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
184 bindir="$ac_optarg" ;;
186 -build | --build | --buil | --bui | --bu)
188 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
189 build="$ac_optarg" ;;
191 -cache-file | --cache-file | --cache-fil | --cache-fi \
192 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
193 ac_prev=cache_file ;;
194 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
195 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
196 cache_file="$ac_optarg" ;;
198 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
200 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
202 datadir="$ac_optarg" ;;
204 -disable-* | --disable-*)
205 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
206 # Reject names that are not valid shell variable names.
207 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
208 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
210 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
211 eval "enable_${ac_feature}=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
215 # Reject names that are not valid shell variable names.
216 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
217 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
219 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
224 eval "enable_${ac_feature}='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix="$ac_optarg" ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he)
240 # Omit some internal or obsolete options to make the list less imposing.
241 # This message is too long to be a string in the A/UX 3.1 sh.
243 Usage: configure [options] [host]
244 Options: [defaults in brackets after descriptions]
248 --cache-file=FILE cache test results in FILE
249 --help print this message
250 --no-create do not create output files
251 --quiet, --silent do not print \`checking...' messages
252 --version print the version of autoconf that created configure
254 Directory and file names:
256 --prefix=PREFIX install architecture-independent files in PREFIX
258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
260 --bindir=DIR user executables in DIR [EPREFIX/bin]
261 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
262 --includedir=DIR C header files in DIR [PREFIX/include]
263 --x-includes=DIR X include files are in DIR
264 --x-libraries=DIR X library files are in DIR
265 --mandir=DIR man documentation in DIR [PREFIX/man]
266 --srcdir=DIR find the sources in DIR [configure dir or ..]
267 --program-prefix=PREFIX prepend PREFIX to installed program names
268 --program-suffix=SUFFIX append SUFFIX to installed program names
269 --program-transform-name=PROGRAM
270 run sed PROGRAM on installed program names
276 --build=BUILD configure for building on BUILD [BUILD=HOST]
277 --host=HOST configure for HOST [guessed]
278 --target=TARGET configure for TARGET [TARGET=HOST]
280 if test -n "$ac_help"; then
285 -host | --host | --hos | --ho)
287 -host=* | --host=* | --hos=* | --ho=*)
290 -includedir | --includedir | --includedi | --included | --include \
291 | --includ | --inclu | --incl | --inc)
292 ac_prev=includedir ;;
293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
294 | --includ=* | --inclu=* | --incl=* | --inc=*)
295 includedir="$ac_optarg" ;;
297 -infodir | --infodir | --infodi | --infod | --info | --inf)
299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
300 infodir="$ac_optarg" ;;
302 -libdir | --libdir | --libdi | --libd)
304 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 libdir="$ac_optarg" ;;
307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
308 | --libexe | --libex | --libe)
309 ac_prev=libexecdir ;;
310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
311 | --libexe=* | --libex=* | --libe=*)
312 libexecdir="$ac_optarg" ;;
314 -localstatedir | --localstatedir | --localstatedi | --localstated \
315 | --localstate | --localstat | --localsta | --localst \
316 | --locals | --local | --loca | --loc | --lo)
317 ac_prev=localstatedir ;;
318 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
319 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
320 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
321 localstatedir="$ac_optarg" ;;
323 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
325 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
326 mandir="$ac_optarg" ;;
329 # Obsolete; use --without-fp.
332 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
336 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
337 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
340 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
341 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
342 | --oldin | --oldi | --old | --ol | --o)
343 ac_prev=oldincludedir ;;
344 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
345 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
346 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
347 oldincludedir="$ac_optarg" ;;
349 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
351 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 prefix="$ac_optarg" ;;
354 -program-prefix | --program-prefix | --program-prefi | --program-pref \
355 | --program-pre | --program-pr | --program-p)
356 ac_prev=program_prefix ;;
357 -program-prefix=* | --program-prefix=* | --program-prefi=* \
358 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
359 program_prefix="$ac_optarg" ;;
361 -program-suffix | --program-suffix | --program-suffi | --program-suff \
362 | --program-suf | --program-su | --program-s)
363 ac_prev=program_suffix ;;
364 -program-suffix=* | --program-suffix=* | --program-suffi=* \
365 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
366 program_suffix="$ac_optarg" ;;
368 -program-transform-name | --program-transform-name \
369 | --program-transform-nam | --program-transform-na \
370 | --program-transform-n | --program-transform- \
371 | --program-transform | --program-transfor \
372 | --program-transfo | --program-transf \
373 | --program-trans | --program-tran \
374 | --progr-tra | --program-tr | --program-t)
375 ac_prev=program_transform_name ;;
376 -program-transform-name=* | --program-transform-name=* \
377 | --program-transform-nam=* | --program-transform-na=* \
378 | --program-transform-n=* | --program-transform-=* \
379 | --program-transform=* | --program-transfor=* \
380 | --program-transfo=* | --program-transf=* \
381 | --program-trans=* | --program-tran=* \
382 | --progr-tra=* | --program-tr=* | --program-t=*)
383 program_transform_name="$ac_optarg" ;;
385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
386 | -silent | --silent | --silen | --sile | --sil)
389 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
391 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
393 sbindir="$ac_optarg" ;;
395 -sharedstatedir | --sharedstatedir | --sharedstatedi \
396 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
397 | --sharedst | --shareds | --shared | --share | --shar \
399 ac_prev=sharedstatedir ;;
400 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
401 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
402 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
404 sharedstatedir="$ac_optarg" ;;
406 -site | --site | --sit)
408 -site=* | --site=* | --sit=*)
411 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
413 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 srcdir="$ac_optarg" ;;
416 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
417 | --syscon | --sysco | --sysc | --sys | --sy)
418 ac_prev=sysconfdir ;;
419 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
420 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
421 sysconfdir="$ac_optarg" ;;
423 -target | --target | --targe | --targ | --tar | --ta | --t)
425 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
426 target="$ac_optarg" ;;
428 -v | -verbose | --verbose | --verbos | --verbo | --verb)
431 -version | --version | --versio | --versi | --vers)
432 echo "configure generated by autoconf version 2.12"
436 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
437 # Reject names that are not valid shell variable names.
438 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 ac_package=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}='$ac_optarg'" ;;
448 -without-* | --without-*)
449 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
450 # Reject names that are not valid shell variable names.
451 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
452 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
454 ac_package=`echo $ac_package| sed 's/-/_/g'`
455 eval "with_${ac_package}=no" ;;
458 # Obsolete; use --with-x.
461 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
462 | --x-incl | --x-inc | --x-in | --x-i)
463 ac_prev=x_includes ;;
464 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
465 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
466 x_includes="$ac_optarg" ;;
468 -x-libraries | --x-libraries | --x-librarie | --x-librari \
469 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
470 ac_prev=x_libraries ;;
471 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
472 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
473 x_libraries="$ac_optarg" ;;
475 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
479 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
480 echo "configure: warning: $ac_option: invalid host type" 1>&2
482 if test "x$nonopt" != xNONE; then
483 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
491 if test -n "$ac_prev"; then
492 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
495 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
497 # File descriptor usage:
500 # 2 errors and warnings
501 # 3 some systems may open it to /dev/tty
502 # 4 used on the Kubota Titan
503 # 6 checking for... messages and results
504 # 5 compiler messages saved in config.log
505 if test "$silent" = yes; then
513 This file contains any messages produced by compilers while
514 running configure, to aid debugging if configure makes a mistake.
517 # Strip out --no-create and --no-recursion so they do not pile up.
518 # Also quote any args containing shell metacharacters.
523 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
524 | --no-cr | --no-c) ;;
525 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
526 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
527 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
528 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
529 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
534 # Only set these to C if already set. These must not be set unconditionally
535 # because not all systems understand e.g. LANG=C (notably SCO).
536 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
537 # Non-C LC_CTYPE values break the ctype check.
538 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
539 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
540 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
541 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
544 rm -rf conftest* confdefs.h
545 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
548 # A filename unique to this package, relative to the directory that
549 # configure is in, which we can look for to find out if srcdir is correct.
550 ac_unique_file=driver/subprocs.c
552 # Find the source files, if location was not specified.
553 if test -z "$srcdir"; then
554 ac_srcdir_defaulted=yes
555 # Try the directory containing this script, then its parent.
557 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
558 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
560 if test ! -r $srcdir/$ac_unique_file; then
564 ac_srcdir_defaulted=no
566 if test ! -r $srcdir/$ac_unique_file; then
567 if test "$ac_srcdir_defaulted" = yes; then
568 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
570 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
573 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
575 # Prefer explicitly selected file to automatically selected ones.
576 if test -z "$CONFIG_SITE"; then
577 if test "x$prefix" != xNONE; then
578 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
580 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
583 for ac_site_file in $CONFIG_SITE; do
584 if test -r "$ac_site_file"; then
585 echo "loading site script $ac_site_file"
590 if test -r "$cache_file"; then
591 echo "loading cache $cache_file"
594 echo "creating cache $cache_file"
599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
600 ac_cpp='$CPP $CPPFLAGS'
601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
602 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
603 cross_compiling=$ac_cv_prog_cc_cross
605 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
606 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
607 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
614 ac_n= ac_c='\c' ac_t=
620 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
621 if test -f $ac_dir/install-sh; then
623 ac_install_sh="$ac_aux_dir/install-sh -c"
625 elif test -f $ac_dir/install.sh; then
627 ac_install_sh="$ac_aux_dir/install.sh -c"
631 if test -z "$ac_aux_dir"; then
632 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
634 ac_config_guess=$ac_aux_dir/config.guess
635 ac_config_sub=$ac_aux_dir/config.sub
636 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
639 # Make sure we can run config.sub.
640 if $ac_config_sub sun4 >/dev/null 2>&1; then :
641 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
644 echo $ac_n "checking host system type""... $ac_c" 1>&6
645 echo "configure:657: checking host system type" >&5
648 case "$host_alias" in
652 if host_alias=`$ac_config_guess`; then :
653 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
655 *) host_alias=$nonopt ;;
659 host=`$ac_config_sub $host_alias`
660 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
663 echo "$ac_t""$host" 1>&6
666 # Extract the first word of "gcc", so it can be a program name with args.
667 set dummy gcc; ac_word=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:681: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$CC"; then
674 ac_cv_prog_CC="$CC" # Let the user override the test.
676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
677 for ac_dir in $PATH; do
678 test -z "$ac_dir" && ac_dir=.
679 if test -f $ac_dir/$ac_word; then
688 if test -n "$CC"; then
689 echo "$ac_t""$CC" 1>&6
691 echo "$ac_t""no" 1>&6
694 if test -z "$CC"; then
695 # Extract the first word of "cc", so it can be a program name with args.
696 set dummy cc; ac_word=$2
697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
698 echo "configure:710: checking for $ac_word" >&5
699 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
700 echo $ac_n "(cached) $ac_c" 1>&6
702 if test -n "$CC"; then
703 ac_cv_prog_CC="$CC" # Let the user override the test.
705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
707 for ac_dir in $PATH; do
708 test -z "$ac_dir" && ac_dir=.
709 if test -f $ac_dir/$ac_word; then
710 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
719 if test $ac_prog_rejected = yes; then
720 # We found a bogon in the path, so make sure we never use it.
721 set dummy $ac_cv_prog_CC
723 if test $# -gt 0; then
724 # We chose a different compiler from the bogus one.
725 # However, it has the same basename, so the bogon will be chosen
726 # first if we set CC to just the basename; use the full file name.
728 set dummy "$ac_dir/$ac_word" "$@"
736 if test -n "$CC"; then
737 echo "$ac_t""$CC" 1>&6
739 echo "$ac_t""no" 1>&6
742 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
745 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
746 echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
750 ac_cpp='$CPP $CPPFLAGS'
751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
752 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
753 cross_compiling=$ac_cv_prog_cc_cross
755 cat > conftest.$ac_ext <<EOF
756 #line 768 "configure"
757 #include "confdefs.h"
760 if { (eval echo configure:772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
761 ac_cv_prog_cc_works=yes
762 # If we can't run a trivial program, we are probably using a cross compiler.
763 if (./conftest; exit) 2>/dev/null; then
764 ac_cv_prog_cc_cross=no
766 ac_cv_prog_cc_cross=yes
769 echo "configure: failed program was:" >&5
770 cat conftest.$ac_ext >&5
771 ac_cv_prog_cc_works=no
775 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
776 if test $ac_cv_prog_cc_works = no; then
777 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
779 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
780 echo "configure:792: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
781 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
782 cross_compiling=$ac_cv_prog_cc_cross
784 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
785 echo "configure:797: checking whether we are using GNU C" >&5
786 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 cat > conftest.c <<EOF
794 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
801 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
803 if test $ac_cv_prog_gcc = yes; then
805 ac_test_CFLAGS="${CFLAGS+set}"
806 ac_save_CFLAGS="$CFLAGS"
808 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
809 echo "configure:821: checking whether ${CC-cc} accepts -g" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 echo 'void f(){}' > conftest.c
814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
823 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
824 if test "$ac_test_CFLAGS" = set; then
825 CFLAGS="$ac_save_CFLAGS"
826 elif test $ac_cv_prog_cc_g = yes; then
833 test "${CFLAGS+set}" = set || CFLAGS="-g"
837 if test -z "$GCC"; then
838 echo $ac_n "checking how to request ANSI compilation""... $ac_c" 1>&6
839 echo "configure:851: checking how to request ANSI compilation" >&5
842 echo "$ac_t""HPUX: adding -Ae" 1>&6
846 echo "$ac_t""AIX: adding -qlanglvl=ansi -qhalt=e" 1>&6
847 CC="$CC -qlanglvl=ansi -qhalt=e"
851 echo "$ac_t""DEC: adding -std1" 1>&6
856 echo "$ac_t""no idea" 1>&6
862 echo $ac_n "checking whether the compiler works on ANSI C""... $ac_c" 1>&6
863 echo "configure:875: checking whether the compiler works on ANSI C" >&5
864 if test "$cross_compiling" = yes; then
865 { echo "configure: error: Couldn't build even a trivial ANSI C program: check CC." 1>&2; exit 1; }
867 cat > conftest.$ac_ext <<EOF
868 #line 880 "configure"
869 #include "confdefs.h"
870 main(int ac, char **av) { return 0; }
872 if { (eval echo configure:884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
874 echo "$ac_t""yes" 1>&6
876 echo "configure: failed program was:" >&5
877 cat conftest.$ac_ext >&5
879 echo "$ac_t""no" 1>&6
880 { echo "configure: error: Couldn't build even a trivial ANSI C program: check CC." 1>&2; exit 1; }
887 *-irix5* |*-irix6.0-3* )
888 if test -n "$GCC"; then
889 echo "$ac_t""Turning on gcc compiler warnings." 1>&6
890 CC="$CC -Wall -Wstrict-prototypes -Wnested-externs -Wno-format"
893 echo "$ac_t""Turning on SGI compiler warnings." 1>&6
894 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
899 echo "$ac_t""Turning on gcc compiler warnings." 1>&6
900 CC="$CC -Wall -Wstrict-prototypes -Wnested-externs -Wno-format"
904 # if test -z "$GCC"; then
905 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
906 # CC="$CC -migrate -w0 -verbose -warnprotos"
913 # Try and determine whether ${INSTALL} can create intermediate directories,
914 # and if not, whether "mkdir -p" works instead. This sets ${INSTALL_DIRS}.
915 # (But autoconf should earn its keep and do this for us!)
920 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
921 echo "configure:933: checking how to run the C preprocessor" >&5
922 # On Suns, sometimes $CPP names a directory.
923 if test -n "$CPP" && test -d "$CPP"; then
926 if test -z "$CPP"; then
927 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 # This must be in double quotes, not single quotes, because CPP may get
931 # substituted into the Makefile and "${CC-cc}" will confuse make.
933 # On the NeXT, cc -E runs the code through the compiler's parser,
934 # not just through cpp.
935 cat > conftest.$ac_ext <<EOF
936 #line 948 "configure"
937 #include "confdefs.h"
941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
942 { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
943 ac_err=`grep -v '^ *+' conftest.out`
944 if test -z "$ac_err"; then
948 echo "configure: failed program was:" >&5
949 cat conftest.$ac_ext >&5
951 CPP="${CC-cc} -E -traditional-cpp"
952 cat > conftest.$ac_ext <<EOF
953 #line 965 "configure"
954 #include "confdefs.h"
958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
959 { (eval echo configure:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
960 ac_err=`grep -v '^ *+' conftest.out`
961 if test -z "$ac_err"; then
965 echo "configure: failed program was:" >&5
966 cat conftest.$ac_ext >&5
973 ac_cv_prog_CPP="$CPP"
975 CPP="$ac_cv_prog_CPP"
977 ac_cv_prog_CPP="$CPP"
979 echo "$ac_t""$CPP" 1>&6
981 # Find a good install program. We prefer a C program (faster),
982 # so one script is as good as another. But avoid the broken or
983 # incompatible versions:
984 # SysV /etc/install, /usr/sbin/install
985 # SunOS /usr/etc/install
988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
990 # ./install, which can be erroneously created by make from ./install.sh.
991 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
992 echo "configure:1004: checking for a BSD compatible install" >&5
993 if test -z "$INSTALL"; then
994 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
998 for ac_dir in $PATH; do
999 # Account for people who put trailing slashes in PATH elements.
1001 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1003 # OSF1 and SCO ODT 3.0 have their own names for install.
1004 for ac_prog in ginstall installbsd scoinst install; do
1005 if test -f $ac_dir/$ac_prog; then
1006 if test $ac_prog = install &&
1007 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1008 # AIX install. It has an incompatible calling convention.
1009 # OSF/1 installbsd also uses dspmsg, but is usable.
1012 ac_cv_path_install="$ac_dir/$ac_prog -c"
1023 if test "${ac_cv_path_install+set}" = set; then
1024 INSTALL="$ac_cv_path_install"
1026 # As a last resort, use the slow shell script. We don't cache a
1027 # path for INSTALL within a source directory, because that will
1028 # break other packages using the cache if that directory is
1029 # removed, or if the path is relative.
1030 INSTALL="$ac_install_sh"
1033 echo "$ac_t""$INSTALL" 1>&6
1035 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1036 # It thinks the first close brace ends the variable substitution.
1037 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1041 INSTALL_DIRS='${INSTALL} -d'
1042 echo $ac_n "checking whether \"\${INSTALL} -d\" creates intermediate directories""... $ac_c" 1>&6
1043 echo "configure:1055: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
1045 if mkdir conftestdir; then
1048 ${INSTALL} -d `pwd`/dir1/dir2 >&- 2>&-
1049 if test -d dir1/dir2 ; then
1050 echo "$ac_t""yes" 1>&6
1052 echo "$ac_t""no" 1>&6
1053 echo $ac_n "checking whether \"mkdir -p\" creates intermediate directories""... $ac_c" 1>&6
1054 echo "configure:1066: checking whether \"mkdir -p\" creates intermediate directories" >&5
1056 mkdir -p dir1/dir2 >&- 2>&-
1057 if test -d dir1/dir2/. ; then
1058 echo "$ac_t""yes" 1>&6
1059 INSTALL_DIRS='mkdir -p'
1061 echo "$ac_t""no" 1>&6
1068 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1069 echo "configure:1081: checking whether ${MAKE-make} sets \${MAKE}" >&5
1070 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1071 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 cat > conftestmake <<\EOF
1076 @echo 'ac_maketemp="${MAKE}"'
1078 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1079 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1080 if test -n "$ac_maketemp"; then
1081 eval ac_cv_prog_make_${ac_make}_set=yes
1083 eval ac_cv_prog_make_${ac_make}_set=no
1087 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1088 echo "$ac_t""yes" 1>&6
1091 echo "$ac_t""no" 1>&6
1092 SET_MAKE="MAKE=${MAKE-make}"
1096 echo $ac_n "checking for working const""... $ac_c" 1>&6
1097 echo "configure:1109: checking for working const" >&5
1098 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1114 "configure"
1103 #include "confdefs.h"
1107 /* Ultrix mips cc rejects this. */
1108 typedef int charset[2]; const charset x;
1109 /* SunOS 4.1.1 cc rejects this. */
1110 char const *const *ccp;
1112 /* NEC SVR4.0.2 mips cc rejects this. */
1113 struct point {int x, y;};
1114 static struct point const zero = {0,0};
1115 /* AIX XL C 1.02.0.0 rejects this.
1116 It does not let you subtract one const X* pointer from another in an arm
1117 of an if-expression whose if-part is not a constant expression */
1118 const char *g = "string";
1119 ccp = &g + (g ? g-g : 0);
1120 /* HPUX 7.0 cc rejects these. */
1123 ccp = (char const *const *) p;
1124 { /* SCO 3.2v4 cc rejects this. */
1126 char const *s = 0 ? (char *) 0 : (char const *) 0;
1130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1132 const int *foo = &x[0];
1135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1136 typedef const int *iptr;
1140 { /* AIX XL C 1.02.0.0 rejects this saying
1141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1142 struct s { int j; const int *ap[3]; };
1143 struct s *b; b->j = 5;
1145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1151 if { (eval echo configure:1163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1163 echo "$ac_t""$ac_cv_c_const" 1>&6
1164 if test $ac_cv_c_const = no; then
1165 cat >> confdefs.h <<\EOF
1171 echo $ac_n "checking for inline""... $ac_c" 1>&6
1172 echo "configure:1184: checking for inline" >&5
1173 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1177 for ac_kw in inline __inline__ __inline; do
1178 cat > conftest.$ac_ext <<EOF
1179 #line 1191 "configure"
1180 #include "confdefs.h"
1186 if { (eval echo configure:1198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1188 ac_cv_c_inline=$ac_kw; break
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1198 echo "$ac_t""$ac_cv_c_inline" 1>&6
1199 case "$ac_cv_c_inline" in
1201 no) cat >> confdefs.h <<\EOF
1205 *) cat >> confdefs.h <<EOF
1206 #define inline $ac_cv_c_inline
1212 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1213 echo "configure:1225: checking for ANSI C header files" >&5
1214 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 cat > conftest.$ac_ext <<EOF
1218 #line 1230 "configure"
1219 #include "confdefs.h"
1225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1226 { (eval echo configure:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1227 ac_err=`grep -v '^ *+' conftest.out`
1228 if test -z "$ac_err"; then
1230 ac_cv_header_stdc=yes
1233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1236 ac_cv_header_stdc=no
1240 if test $ac_cv_header_stdc = yes; then
1241 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1242 cat > conftest.$ac_ext <<EOF
1243 #line 1255 "configure"
1244 #include "confdefs.h"
1247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1248 egrep "memchr" >/dev/null 2>&1; then
1252 ac_cv_header_stdc=no
1258 if test $ac_cv_header_stdc = yes; then
1259 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1273 "configure"
1262 #include "confdefs.h"
1265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1266 egrep "free" >/dev/null 2>&1; then
1270 ac_cv_header_stdc=no
1276 if test $ac_cv_header_stdc = yes; then
1277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1278 if test "$cross_compiling" = yes; then
1281 cat > conftest.$ac_ext <<EOF
1282 #line 1294 "configure"
1283 #include "confdefs.h"
1285 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1286 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1288 int main () { int i; for (i = 0; i < 256; i++)
1289 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1293 if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1297 echo "configure: failed program was:" >&5
1298 cat conftest.$ac_ext >&5
1300 ac_cv_header_stdc=no
1308 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1309 if test $ac_cv_header_stdc = yes; then
1310 cat >> confdefs.h <<\EOF
1311 #define STDC_HEADERS 1
1316 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1317 echo "configure:1329: checking whether time.h and sys/time.h may both be included" >&5
1318 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 cat > conftest.$ac_ext <<EOF
1322 #line 1334 "configure"
1323 #include "confdefs.h"
1324 #include <sys/types.h>
1325 #include <sys/time.h>
1331 if { (eval echo configure:1343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1333 ac_cv_header_time=yes
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1338 ac_cv_header_time=no
1343 echo "$ac_t""$ac_cv_header_time" 1>&6
1344 if test $ac_cv_header_time = yes; then
1345 cat >> confdefs.h <<\EOF
1346 #define TIME_WITH_SYS_TIME 1
1351 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1352 echo "configure:1364: checking for sys/wait.h that is POSIX.1 compatible" >&5
1353 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1369 "configure"
1358 #include "confdefs.h"
1359 #include <sys/types.h>
1360 #include <sys/wait.h>
1362 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1365 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1370 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1373 if { (eval echo configure:1385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1375 ac_cv_header_sys_wait_h=yes
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1380 ac_cv_header_sys_wait_h=no
1385 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1386 if test $ac_cv_header_sys_wait_h = yes; then
1387 cat >> confdefs.h <<\EOF
1388 #define HAVE_SYS_WAIT_H 1
1394 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1396 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1397 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1398 echo "configure:1410: checking for $ac_hdr that defines DIR" >&5
1399 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1415 "configure"
1404 #include "confdefs.h"
1405 #include <sys/types.h>
1411 if { (eval echo configure:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1413 eval "ac_cv_header_dirent_$ac_safe=yes"
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1418 eval "ac_cv_header_dirent_$ac_safe=no"
1422 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1423 echo "$ac_t""yes" 1>&6
1424 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1425 cat >> confdefs.h <<EOF
1426 #define $ac_tr_hdr 1
1428 ac_header_dirent=$ac_hdr; break
1430 echo "$ac_t""no" 1>&6
1433 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1434 if test $ac_header_dirent = dirent.h; then
1435 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1436 echo "configure:1448: checking for opendir in -ldir" >&5
1437 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 ac_save_LIBS="$LIBS"
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1456 "configure"
1445 #include "confdefs.h"
1446 /* Override any gcc2 internal prototype to avoid an error. */
1447 /* We use char because int might match the return type of a gcc2
1448 builtin and then its argument prototype would still apply. */
1455 if { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1457 eval "ac_cv_lib_$ac_lib_var=yes"
1459 echo "configure: failed program was:" >&5
1460 cat conftest.$ac_ext >&5
1462 eval "ac_cv_lib_$ac_lib_var=no"
1465 LIBS="$ac_save_LIBS"
1468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1469 echo "$ac_t""yes" 1>&6
1472 echo "$ac_t""no" 1>&6
1476 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1477 echo "configure:1489: checking for opendir in -lx" >&5
1478 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1482 ac_save_LIBS="$LIBS"
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1497 "configure"
1486 #include "confdefs.h"
1487 /* Override any gcc2 internal prototype to avoid an error. */
1488 /* We use char because int might match the return type of a gcc2
1489 builtin and then its argument prototype would still apply. */
1496 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1498 eval "ac_cv_lib_$ac_lib_var=yes"
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1503 eval "ac_cv_lib_$ac_lib_var=no"
1506 LIBS="$ac_save_LIBS"
1509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1510 echo "$ac_t""yes" 1>&6
1513 echo "$ac_t""no" 1>&6
1519 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1520 echo "configure:1532: checking for mode_t" >&5
1521 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 cat > conftest.$ac_ext <<EOF
1525 #line 1537 "configure"
1526 #include "confdefs.h"
1527 #include <sys/types.h>
1533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1534 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1536 ac_cv_type_mode_t=yes
1539 ac_cv_type_mode_t=no
1544 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1545 if test $ac_cv_type_mode_t = no; then
1546 cat >> confdefs.h <<\EOF
1552 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1553 echo "configure:1565: checking for pid_t" >&5
1554 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1570 "configure"
1559 #include "confdefs.h"
1560 #include <sys/types.h>
1566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1567 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1569 ac_cv_type_pid_t=yes
1577 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1578 if test $ac_cv_type_pid_t = no; then
1579 cat >> confdefs.h <<\EOF
1585 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1586 echo "configure:1598: checking for size_t" >&5
1587 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1603 "configure"
1592 #include "confdefs.h"
1593 #include <sys/types.h>
1599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1600 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1602 ac_cv_type_size_t=yes
1605 ac_cv_type_size_t=no
1610 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1611 if test $ac_cv_type_size_t = no; then
1612 cat >> confdefs.h <<\EOF
1613 #define size_t unsigned
1618 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1619 echo "configure:1631: checking return type of signal handlers" >&5
1620 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1636 "configure"
1625 #include "confdefs.h"
1626 #include <sys/types.h>
1632 extern "C" void (*signal (int, void (*)(int)))(int);
1634 void (*signal ()) ();
1641 if { (eval echo configure:1653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1643 ac_cv_type_signal=void
1645 echo "configure: failed program was:" >&5
1646 cat conftest.$ac_ext >&5
1648 ac_cv_type_signal=int
1653 echo "$ac_t""$ac_cv_type_signal" 1>&6
1654 cat >> confdefs.h <<EOF
1655 #define RETSIGTYPE $ac_cv_type_signal
1660 echo $ac_n "checking how to call gettimeofday""... $ac_c" 1>&6
1661 echo "configure:1673: checking how to call gettimeofday" >&5
1662 if eval "test \"`echo '$''{'ac_cv_gettimeofday_args'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1678 "configure"
1667 #include "confdefs.h"
1669 #include <sys/time.h>
1671 struct timeval tv; struct timezone tzp;
1672 gettimeofday(&tv, &tzp);
1675 if { (eval echo configure:1687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1677 ac_gettimeofday_args=2
1679 echo "configure: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
1682 cat > conftest.$ac_ext <<EOF
1683 #line 1695 "configure"
1684 #include "confdefs.h"
1686 #include <sys/time.h>
1688 struct timeval tv; gettimeofday(&tv);
1691 if { (eval echo configure:1703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1693 ac_gettimeofday_args=1
1695 echo "configure: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1698 ac_gettimeofday_args=0
1703 ac_cv_gettimeofday_args=$ac_gettimeofday_args
1706 ac_gettimeofday_args=$ac_cv_gettimeofday_args
1707 if test $ac_gettimeofday_args = 1 ; then
1708 cat >> confdefs.h <<\EOF
1709 #define HAVE_GETTIMEOFDAY 1
1712 echo "$ac_t""one argument" 1>&6
1713 elif test $ac_gettimeofday_args = 2 ; then
1714 cat >> confdefs.h <<\EOF
1715 #define HAVE_GETTIMEOFDAY 1
1718 cat >> confdefs.h <<\EOF
1719 #define GETTIMEOFDAY_TWO_ARGS 1
1722 echo "$ac_t""two arguments" 1>&6
1724 echo "$ac_t""unknown" 1>&6
1728 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv
1730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1731 echo "configure:1743: checking for $ac_func" >&5
1732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 cat > conftest.$ac_ext <<EOF
1736 #line 1748 "configure"
1737 #include "confdefs.h"
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $ac_func(); below. */
1741 /* Override any gcc2 internal prototype to avoid an error. */
1742 /* We use char because int might match the return type of a gcc2
1743 builtin and then its argument prototype would still apply. */
1748 /* The GNU C library defines this for functions which it implements
1749 to always fail with ENOSYS. Some functions are actually named
1750 something starting with __ and the normal name is an alias. */
1751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1759 if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1761 eval "ac_cv_func_$ac_func=yes"
1763 echo "configure: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1766 eval "ac_cv_func_$ac_func=no"
1771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1774 cat >> confdefs.h <<EOF
1775 #define $ac_tr_func 1
1779 echo "$ac_t""no" 1>&6
1783 for ac_func in sigaction
1785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1786 echo "configure:1798: checking for $ac_func" >&5
1787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1803 "configure"
1792 #include "confdefs.h"
1793 /* System header to define __stub macros and hopefully few prototypes,
1794 which can conflict with char $ac_func(); below. */
1796 /* Override any gcc2 internal prototype to avoid an error. */
1797 /* We use char because int might match the return type of a gcc2
1798 builtin and then its argument prototype would still apply. */
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1814 if { (eval echo configure:1826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1816 eval "ac_cv_func_$ac_func=yes"
1818 echo "configure: failed program was:" >&5
1819 cat conftest.$ac_ext >&5
1821 eval "ac_cv_func_$ac_func=no"
1826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1827 echo "$ac_t""yes" 1>&6
1828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1829 cat >> confdefs.h <<EOF
1830 #define $ac_tr_func 1
1834 echo "$ac_t""no" 1>&6
1839 for ac_hdr in unistd.h crypt.h
1841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1843 echo "configure:1855: checking for $ac_hdr" >&5
1844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 cat > conftest.$ac_ext <<EOF
1848 #line 1860 "configure"
1849 #include "confdefs.h"
1852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1853 { (eval echo configure:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1854 ac_err=`grep -v '^ *+' conftest.out`
1855 if test -z "$ac_err"; then
1857 eval "ac_cv_header_$ac_safe=yes"
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1863 eval "ac_cv_header_$ac_safe=no"
1867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1868 echo "$ac_t""yes" 1>&6
1869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1870 cat >> confdefs.h <<EOF
1871 #define $ac_tr_hdr 1
1875 echo "$ac_t""no" 1>&6
1882 # Check whether --enable-subdir or --disable-subdir was given.
1883 if test "${enable_subdir+set}" = set; then
1884 enableval="$enable_subdir"
1885 enable_subdir="$enableval"
1890 if test x"$enable_subdir" = xno; then
1892 elif test x"$enable_subdir" = xyes -o x"$enable_subdir" = x ; then
1893 echo "error: must be a subdirectory name: --enable-subdir=$enable_subdir"
1896 # there must be a better way than this...
1897 if test -z "`echo $enable_subdir | sed 's@^/.*@@'`" ; then
1899 HACKDIR=$enable_subdir
1902 HACKDIR='${bindir}/'$enable_subdir
1907 # If we find X, set shell vars x_includes and x_libraries to the
1908 # paths, otherwise set no_x=yes.
1909 # Uses ac_ vars as temps to allow command line to override cache and checks.
1910 # --without-x overrides everything else, but does not touch the cache.
1911 echo $ac_n "checking for X""... $ac_c" 1>&6
1912 echo "configure:1924: checking for X" >&5
1914 # Check whether --with-x or --without-x was given.
1915 if test "${with_x+set}" = set; then
1920 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1921 if test "x$with_x" = xno; then
1922 # The user explicitly disabled X.
1925 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1926 # Both variables are already set.
1929 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 # One or both of the vars are not set, and there is no cached value.
1933 ac_x_includes=NO ac_x_libraries=NO
1935 if mkdir conftestdir; then
1937 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1938 cat > Imakefile <<'EOF'
1940 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1942 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1944 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1945 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1946 for ac_extension in a so sl; do
1947 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1948 test -f $ac_im_libdir/libX11.$ac_extension; then
1949 ac_im_usrlibdir=$ac_im_libdir; break
1952 # Screen out bogus values from the imake configuration. They are
1953 # bogus both because they are the default anyway, and because
1954 # using them would break gcc on systems where it needs fixed includes.
1955 case "$ac_im_incroot" in
1957 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1959 case "$ac_im_usrlibdir" in
1961 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1968 if test "$ac_x_includes" = NO; then
1969 # Guess where to find include files, by looking for this one X11 .h file.
1970 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1972 # First, try using that file with no special directory specified.
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1986 "configure"
1975 #include "confdefs.h"
1976 #include <$x_direct_test_include>
1978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1979 { (eval echo configure:1991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1980 ac_err=`grep -v '^ *+' conftest.out`
1981 if test -z "$ac_err"; then
1983 # We can compile using X headers with no special include directory.
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1990 # Look for the header file in a standard set of common directories.
1991 # Check X11 before X11Rn because it is often a symlink to the current release.
1994 /usr/X11R6/include \
1995 /usr/X11R5/include \
1996 /usr/X11R4/include \
1999 /usr/include/X11R6 \
2000 /usr/include/X11R5 \
2001 /usr/include/X11R4 \
2003 /usr/local/X11/include \
2004 /usr/local/X11R6/include \
2005 /usr/local/X11R5/include \
2006 /usr/local/X11R4/include \
2008 /usr/local/include/X11 \
2009 /usr/local/include/X11R6 \
2010 /usr/local/include/X11R5 \
2011 /usr/local/include/X11R4 \
2015 /usr/XFree86/include/X11 \
2018 /usr/local/include \
2019 /usr/unsupported/include \
2020 /usr/athena/include \
2021 /usr/local/x11r5/include \
2022 /usr/lpp/Xamples/include \
2024 /usr/openwin/include \
2025 /usr/openwin/share/include \
2028 if test -r "$ac_dir/$x_direct_test_include"; then
2029 ac_x_includes=$ac_dir
2035 fi # $ac_x_includes = NO
2037 if test "$ac_x_libraries" = NO; then
2038 # Check for the libraries.
2040 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2041 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2043 # See if we find them without any special options.
2044 # Don't add to $LIBS permanently.
2045 ac_save_LIBS="$LIBS"
2046 LIBS="-l$x_direct_test_library $LIBS"
2047 cat > conftest.$ac_ext <<EOF
2048 #line 2060 "configure"
2049 #include "confdefs.h"
2052 ${x_direct_test_function}()
2055 if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2057 LIBS="$ac_save_LIBS"
2058 # We can link X programs with no special library path.
2061 echo "configure: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2064 LIBS="$ac_save_LIBS"
2065 # First see if replacing the include by lib works.
2066 # Check X11 before X11Rn because it is often a symlink to the current release.
2067 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2078 /usr/local/X11/lib \
2079 /usr/local/X11R6/lib \
2080 /usr/local/X11R5/lib \
2081 /usr/local/X11R4/lib \
2083 /usr/local/lib/X11 \
2084 /usr/local/lib/X11R6 \
2085 /usr/local/lib/X11R5 \
2086 /usr/local/lib/X11R4 \
2090 /usr/XFree86/lib/X11 \
2094 /usr/unsupported/lib \
2096 /usr/local/x11r5/lib \
2097 /usr/lpp/Xamples/lib \
2101 /usr/openwin/share/lib \
2104 for ac_extension in a so sl; do
2105 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2106 ac_x_libraries=$ac_dir
2113 fi # $ac_x_libraries = NO
2115 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2116 # Didn't find X anywhere. Cache the known absence of X.
2117 ac_cv_have_x="have_x=no"
2119 # Record where we found X for the cache.
2120 ac_cv_have_x="have_x=yes \
2121 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2125 eval "$ac_cv_have_x"
2128 if test "$have_x" != yes; then
2129 echo "$ac_t""$have_x" 1>&6
2132 # If each of the values was on the command line, it overrides each guess.
2133 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2134 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2135 # Update the cache value to reflect the command line values.
2136 ac_cv_have_x="have_x=yes \
2137 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2138 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2141 if test "$no_x" = yes; then
2142 # Not all programs may use this symbol, but it does not hurt to define it.
2143 cat >> confdefs.h <<\EOF
2144 #define X_DISPLAY_MISSING 1
2147 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2149 if test -n "$x_includes"; then
2150 X_CFLAGS="$X_CFLAGS -I$x_includes"
2153 # It would also be nice to do this for all -L options, not just this one.
2154 if test -n "$x_libraries"; then
2155 X_LIBS="$X_LIBS -L$x_libraries"
2156 # For Solaris; some versions of Sun CC require a space after -R and
2157 # others require no space. Words are not sufficient . . . .
2158 case "`(uname -sr) 2>/dev/null`" in
2160 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2161 echo "configure:2173: checking whether -R must be followed by a space" >&5
2162 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2176 "configure"
2165 #include "confdefs.h"
2171 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2181 if test $ac_R_nospace = yes; then
2182 echo "$ac_t""no" 1>&6
2183 X_LIBS="$X_LIBS -R$x_libraries"
2185 LIBS="$ac_xsave_LIBS -R $x_libraries"
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2199 "configure"
2188 #include "confdefs.h"
2194 if { (eval echo configure:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2198 echo "configure: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2204 if test $ac_R_space = yes; then
2205 echo "$ac_t""yes" 1>&6
2206 X_LIBS="$X_LIBS -R $x_libraries"
2208 echo "$ac_t""neither works" 1>&6
2211 LIBS="$ac_xsave_LIBS"
2215 # Check for system-dependent libraries X programs must link with.
2216 # Do this before checking for the system-independent R6 libraries
2217 # (-lICE), since we may need -lsocket or whatever for X linking.
2219 if test "$ISC" = yes; then
2220 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2222 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2223 # libraries were built with DECnet support. And karl@cs.umb.edu says
2224 # the Alpha needs dnet_stub (dnet does not exist).
2225 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2226 echo "configure:2238: checking for dnet_ntoa in -ldnet" >&5
2227 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 ac_save_LIBS="$LIBS"
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2246 "configure"
2235 #include "confdefs.h"
2236 /* Override any gcc2 internal prototype to avoid an error. */
2237 /* We use char because int might match the return type of a gcc2
2238 builtin and then its argument prototype would still apply. */
2245 if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2247 eval "ac_cv_lib_$ac_lib_var=yes"
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2252 eval "ac_cv_lib_$ac_lib_var=no"
2255 LIBS="$ac_save_LIBS"
2258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2262 echo "$ac_t""no" 1>&6
2265 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2266 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2267 echo "configure:2279: checking for dnet_ntoa in -ldnet_stub" >&5
2268 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 ac_save_LIBS="$LIBS"
2273 LIBS="-ldnet_stub $LIBS"
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2287 "configure"
2276 #include "confdefs.h"
2277 /* Override any gcc2 internal prototype to avoid an error. */
2278 /* We use char because int might match the return type of a gcc2
2279 builtin and then its argument prototype would still apply. */
2286 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2288 eval "ac_cv_lib_$ac_lib_var=yes"
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2293 eval "ac_cv_lib_$ac_lib_var=no"
2296 LIBS="$ac_save_LIBS"
2299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2303 echo "$ac_t""no" 1>&6
2308 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2309 # to get the SysV transport functions.
2310 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2312 # The nsl library prevents programs from opening the X display
2313 # on Irix 5.2, according to dickey@clark.net.
2314 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2315 echo "configure:2327: checking for gethostbyname" >&5
2316 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2332 "configure"
2321 #include "confdefs.h"
2322 /* System header to define __stub macros and hopefully few prototypes,
2323 which can conflict with char gethostbyname(); below. */
2325 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2328 char gethostbyname();
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2343 if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2345 eval "ac_cv_func_gethostbyname=yes"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 eval "ac_cv_func_gethostbyname=no"
2355 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2356 echo "$ac_t""yes" 1>&6
2359 echo "$ac_t""no" 1>&6
2362 if test $ac_cv_func_gethostbyname = no; then
2363 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2364 echo "configure:2376: checking for gethostbyname in -lnsl" >&5
2365 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 ac_save_LIBS="$LIBS"
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2384 "configure"
2373 #include "confdefs.h"
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2377 char gethostbyname();
2383 if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2385 eval "ac_cv_lib_$ac_lib_var=yes"
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2390 eval "ac_cv_lib_$ac_lib_var=no"
2393 LIBS="$ac_save_LIBS"
2396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2400 echo "$ac_t""no" 1>&6
2405 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2406 # socket/setsockopt and other routines are undefined under SCO ODT
2407 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2408 # on later versions), says simon@lia.di.epfl.ch: it contains
2409 # gethostby* variants that don't use the nameserver (or something).
2410 # -lsocket must be given before -lnsl if both are needed.
2411 # We assume that if connect needs -lnsl, so does gethostbyname.
2412 echo $ac_n "checking for connect""... $ac_c" 1>&6
2413 echo "configure:2425: checking for connect" >&5
2414 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2430 "configure"
2419 #include "confdefs.h"
2420 /* System header to define __stub macros and hopefully few prototypes,
2421 which can conflict with char connect(); below. */
2423 /* Override any gcc2 internal prototype to avoid an error. */
2424 /* We use char because int might match the return type of a gcc2
2425 builtin and then its argument prototype would still apply. */
2430 /* The GNU C library defines this for functions which it implements
2431 to always fail with ENOSYS. Some functions are actually named
2432 something starting with __ and the normal name is an alias. */
2433 #if defined (__stub_connect) || defined (__stub___connect)
2441 if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2443 eval "ac_cv_func_connect=yes"
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 eval "ac_cv_func_connect=no"
2453 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2457 echo "$ac_t""no" 1>&6
2460 if test $ac_cv_func_connect = no; then
2461 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2462 echo "configure:2474: checking for connect in -lsocket" >&5
2463 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 ac_save_LIBS="$LIBS"
2468 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2469 cat > conftest.$ac_ext <<EOF
2470 #line 2482 "configure"
2471 #include "confdefs.h"
2472 /* Override any gcc2 internal prototype to avoid an error. */
2473 /* We use char because int might match the return type of a gcc2
2474 builtin and then its argument prototype would still apply. */
2481 if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2483 eval "ac_cv_lib_$ac_lib_var=yes"
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2488 eval "ac_cv_lib_$ac_lib_var=no"
2491 LIBS="$ac_save_LIBS"
2494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2498 echo "$ac_t""no" 1>&6
2503 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2504 echo $ac_n "checking for remove""... $ac_c" 1>&6
2505 echo "configure:2517: checking for remove" >&5
2506 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.$ac_ext <<EOF
2510 #line 2522 "configure"
2511 #include "confdefs.h"
2512 /* System header to define __stub macros and hopefully few prototypes,
2513 which can conflict with char remove(); below. */
2515 /* Override any gcc2 internal prototype to avoid an error. */
2516 /* We use char because int might match the return type of a gcc2
2517 builtin and then its argument prototype would still apply. */
2522 /* The GNU C library defines this for functions which it implements
2523 to always fail with ENOSYS. Some functions are actually named
2524 something starting with __ and the normal name is an alias. */
2525 #if defined (__stub_remove) || defined (__stub___remove)
2533 if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2535 eval "ac_cv_func_remove=yes"
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2540 eval "ac_cv_func_remove=no"
2545 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2546 echo "$ac_t""yes" 1>&6
2549 echo "$ac_t""no" 1>&6
2552 if test $ac_cv_func_remove = no; then
2553 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2554 echo "configure:2566: checking for remove in -lposix" >&5
2555 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2559 ac_save_LIBS="$LIBS"
2560 LIBS="-lposix $LIBS"
2561 cat > conftest.$ac_ext <<EOF
2562 #line 2574 "configure"
2563 #include "confdefs.h"
2564 /* Override any gcc2 internal prototype to avoid an error. */
2565 /* We use char because int might match the return type of a gcc2
2566 builtin and then its argument prototype would still apply. */
2573 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2575 eval "ac_cv_lib_$ac_lib_var=yes"
2577 echo "configure: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2580 eval "ac_cv_lib_$ac_lib_var=no"
2583 LIBS="$ac_save_LIBS"
2586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2590 echo "$ac_t""no" 1>&6
2595 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2596 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2597 echo "configure:2609: checking for shmat" >&5
2598 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2614 "configure"
2603 #include "confdefs.h"
2604 /* System header to define __stub macros and hopefully few prototypes,
2605 which can conflict with char shmat(); below. */
2607 /* Override any gcc2 internal prototype to avoid an error. */
2608 /* We use char because int might match the return type of a gcc2
2609 builtin and then its argument prototype would still apply. */
2614 /* The GNU C library defines this for functions which it implements
2615 to always fail with ENOSYS. Some functions are actually named
2616 something starting with __ and the normal name is an alias. */
2617 #if defined (__stub_shmat) || defined (__stub___shmat)
2625 if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2627 eval "ac_cv_func_shmat=yes"
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2632 eval "ac_cv_func_shmat=no"
2637 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2641 echo "$ac_t""no" 1>&6
2644 if test $ac_cv_func_shmat = no; then
2645 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2646 echo "configure:2658: checking for shmat in -lipc" >&5
2647 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 ac_save_LIBS="$LIBS"
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2666 "configure"
2655 #include "confdefs.h"
2656 /* Override any gcc2 internal prototype to avoid an error. */
2657 /* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2665 if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2667 eval "ac_cv_lib_$ac_lib_var=yes"
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 eval "ac_cv_lib_$ac_lib_var=no"
2675 LIBS="$ac_save_LIBS"
2678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2682 echo "$ac_t""no" 1>&6
2688 # Check for libraries that X11R6 Xt/Xaw programs need.
2689 ac_save_LDFLAGS="$LDFLAGS"
2690 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2691 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2692 # check for ICE first), but we must link in the order -lSM -lICE or
2693 # we get undefined symbols. So assume we have SM if we have ICE.
2694 # These have to be linked with before -lX11, unlike the other
2695 # libraries we check for below, so use a different variable.
2696 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2697 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2698 echo "configure:2710: checking for IceConnectionNumber in -lICE" >&5
2699 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 ac_save_LIBS="$LIBS"
2705 cat > conftest.$ac_ext <<EOF
2706 #line 2718 "configure"
2707 #include "confdefs.h"
2708 /* Override any gcc2 internal prototype to avoid an error. */
2709 /* We use char because int might match the return type of a gcc2
2710 builtin and then its argument prototype would still apply. */
2711 char IceConnectionNumber();
2714 IceConnectionNumber()
2717 if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2719 eval "ac_cv_lib_$ac_lib_var=yes"
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2724 eval "ac_cv_lib_$ac_lib_var=no"
2727 LIBS="$ac_save_LIBS"
2730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2731 echo "$ac_t""yes" 1>&6
2732 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2734 echo "$ac_t""no" 1>&6
2737 LDFLAGS="$ac_save_LDFLAGS"
2742 # Try and find the app-defaults directory.
2743 # It sucks that autoconf doesn't do this already...
2753 echo $ac_n "checking for X app-defaults directory""... $ac_c" 1>&6
2754 echo "configure:2766: checking for X app-defaults directory" >&5
2755 if eval "test \"`echo '$''{'ac_cv_x_app_defaults'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2760 if mkdir conftestdir; then
2762 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2763 cat > Imakefile <<'EOF'
2765 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
2767 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2768 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
2769 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2774 if test x"$ac_x_app_defaults" = x; then
2776 # Look for the directory under a standard set of common directories.
2777 # Check X11 before X11Rn because it's often a symlink to the current release.
2779 /usr/X11/lib/app-defaults \
2780 /usr/X11R6/lib/app-defaults \
2781 /usr/X11R6/lib/X11/app-defaults \
2782 /usr/X11R5/lib/app-defaults \
2783 /usr/X11R5/lib/X11/app-defaults \
2784 /usr/X11R4/lib/app-defaults \
2785 /usr/X11R4/lib/X11/app-defaults \
2787 /usr/lib/X11/app-defaults \
2788 /usr/lib/X11R6/app-defaults \
2789 /usr/lib/X11R5/app-defaults \
2790 /usr/lib/X11R4/app-defaults \
2792 /usr/local/X11/lib/app-defaults \
2793 /usr/local/X11R6/lib/app-defaults \
2794 /usr/local/X11R5/lib/app-defaults \
2795 /usr/local/X11R4/lib/app-defaults \
2797 /usr/local/lib/X11/app-defaults \
2798 /usr/local/lib/X11R6/app-defaults \
2799 /usr/local/lib/X11R6/X11/app-defaults \
2800 /usr/local/lib/X11R5/app-defaults \
2801 /usr/local/lib/X11R5/X11/app-defaults \
2802 /usr/local/lib/X11R4/app-defaults \
2803 /usr/local/lib/X11R4/X11/app-defaults \
2805 /usr/X386/lib/X11/app-defaults \
2806 /usr/x386/lib/X11/app-defaults \
2807 /usr/XFree86/lib/X11/app-defaults \
2809 /usr/lib/X11/app-defaults \
2810 /usr/local/lib/X11/app-defaults \
2811 /usr/unsupported/lib/X11/app-defaults \
2812 /usr/athena/lib/X11/app-defaults \
2813 /usr/local/x11r5/lib/X11/app-defaults \
2814 /usr/lpp/Xamples/lib/X11/app-defaults \
2815 /lib/usr/lib/X11/app-defaults \
2817 /usr/openwin/lib/app-defaults \
2818 /usr/openwin/lib/X11/app-defaults \
2819 /usr/openwin/share/lib/app-defaults \
2820 /usr/openwin/share/lib/X11/app-defaults \
2822 /X11R6/lib/app-defaults \
2823 /X11R5/lib/app-defaults \
2824 /X11R4/lib/app-defaults \
2827 if test -d "$ac_dir"; then
2828 ac_x_app_defaults=$ac_dir
2834 if test x"$ac_x_app_defaults" = x; then
2835 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
2837 # Record where we found app-defaults for the cache.
2838 ac_cv_x_app_defaults="$ac_x_app_defaults"
2842 echo "$ac_t""$ac_cv_x_app_defaults" 1>&6
2843 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
2845 APPDEFAULTS=$ac_x_app_defaults
2848 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2852 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2856 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2861 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2862 # Use this sparingly; it probably doesn't work very well on X programs.
2866 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2867 # (But not the -L directories!)
2873 # Usage: HANDLE_X_PATH_ARG([variable_name],
2874 # [--command-line-option],
2875 # [descriptive string])
2877 # All of the --with options take three forms:
2879 # --with-foo (or --with-foo=yes)
2880 # --without-foo (or --with-foo=no)
2883 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2884 # a directory (string beginning with a slash) it checks to see whether
2885 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2892 # check for the HP XHPDisableReset server extension headers.
2895 ac_save_CPPFLAGS="$CPPFLAGS"
2896 if test \! -z "$includedir" ; then
2897 CPPFLAGS="$CPPFLAGS -I$includedir"
2899 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2900 cat > conftest.$ac_ext <<EOF
2901 #line 2913 "configure"
2902 #include "confdefs.h"
2903 #include <X11/XHPlib.h>
2905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2906 egrep "XHPDisableReset" >/dev/null 2>&1; then
2908 cat >> confdefs.h <<\EOF
2909 #define HAVE_XHPDISABLERESET 1
2912 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
2916 CPPFLAGS="$ac_save_CPPFLAGS"
2919 # Check for the availability of the XPointer typedef, and define it otherwise.
2921 echo $ac_n "checking for XPointer""... $ac_c" 1>&6
2922 echo "configure:2934: checking for XPointer" >&5
2923 if eval "test \"`echo '$''{'ac_cv_xpointer'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2927 ac_save_CPPFLAGS="$CPPFLAGS"
2928 if test \! -z "$includedir" ; then
2929 CPPFLAGS="$CPPFLAGS -I$includedir"
2931 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2945 "configure"
2934 #include "confdefs.h"
2935 #include <X11/Xlib.h>
2937 XPointer foo = (XPointer) 0;
2940 if { (eval echo configure:2952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2950 CPPFLAGS="$ac_save_CPPFLAGS"
2953 echo "$ac_t""$ac_cv_xpointer" 1>&6
2954 if test $ac_cv_xpointer != yes; then
2955 cat >> confdefs.h <<\EOF
2956 #define XPointer char*
2962 # Random special-cases for certain pathological OSes. You know who you are.
2967 # The following arcana was gleaned from conversations with
2968 # Eric Schwartz <erics@col.hp.com>:
2970 # On HPUX 10.x, the parts of X that HP considers "standard" live in
2971 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
2972 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
2973 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
2974 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
2975 # you don't need any -I or -L arguments.
2977 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
2978 # are the same division as 10.x. However, there are no symlinks to
2979 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
2980 # arguments are always necessary.
2982 # However, X11R6 was available on HPUX 9.x as a patch: if that
2983 # patch was installed, then all of X11R6 went in to
2984 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
2986 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
2987 # whether R5 was available as a patch; R6 undoubtedly was not.)
2989 # So. We try and use the highest numbered pair of
2990 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
2991 # that are available. We do not mix and match different versions
2994 # Questions I still don't know the answers to: (do you?)
2996 # * Does HPUX 10.x come with /usr/contrib/X11R6/ standard?
2997 # Or does that need to be installed separately?
2999 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
3000 # /usr/contrib/X11R6/ could be installed as a patch, what was in
3001 # that contrib directory? Did it contain so-called "standard"
3002 # X11R6, or did it include Xaw and Xmu as well? If the former,
3003 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
3004 # be a situation where one had to reach into the R5 headers and
3005 # libs to find Xmu? That is, must both R6 and R5 directories
3006 # be on the -I and -L lists in that case?
3008 for version in X11R6 X11R5 X11R4 ; do
3009 # if either pair of directories exists...
3010 if test -d /usr/lib/$version || test -d /usr/contrib/$version/lib ; then
3011 # if contrib exists, use it...
3012 if test -d /usr/contrib/$version/lib ; then
3013 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
3014 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
3016 # if the "standard" one exists, use it.
3017 if test -d /usr/lib/$version ; then
3018 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
3019 X_LIBS="$X_LIBS -L/usr/lib/$version"
3021 # since at least one of the pair exists, go no farther.
3026 # Now find Motif. Thanks for not making xmkmf find this by
3027 # default, you losers.
3029 if test -d /usr/lib/Motif1.2 ; then
3030 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
3031 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
3032 elif test -d /usr/lib/Motif1.1 ; then
3033 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
3034 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
3037 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
3039 if test -d /opt/Mesa/lib ; then
3040 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
3041 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
3044 if test -d /opt/xpm/lib/X11 ; then
3045 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
3046 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
3049 # On HPUX, default to installing in /opt/xscreensaver/ instead of
3050 # in /usr/local/, unless there is already an xscreensaver in
3051 # /usr/local/bin/. This can be overridden with the --prefix arg
3052 # to configure. I'm not sure this is the right thing to do, but
3053 # Richard Lloyd says so...
3055 if test \! -x /usr/local/bin/xscreensaver ; then
3056 ac_default_prefix=/opt/xscreensaver
3062 # Thanks for not making xmkmf find this by default, pinheads.
3063 # And thanks for moving things around again, too. Is this
3064 # really the standard location now? What happened to the
3065 # joke that this kind of thing went in /opt?
3066 # cthomp says "answer: CDE (Common Disorganized Environment)"
3068 if test -f /usr/dt/include/Xm/Xm.h ; then
3069 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
3070 X_LIBS="$X_LIBS -L/usr/dt/lib -R:/usr/dt/lib"
3072 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
3073 echo $ac_n "checking for regcmp in -lgen""... $ac_c" 1>&6
3074 echo "configure:3086: checking for regcmp in -lgen" >&5
3075 ac_lib_var=`echo gen'_'regcmp | sed 'y%./+-%__p_%'`
3076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 ac_save_LIBS="$LIBS"
3081 cat > conftest.$ac_ext <<EOF
3082 #line 3094 "configure"
3083 #include "confdefs.h"
3084 /* Override any gcc2 internal prototype to avoid an error. */
3085 /* We use char because int might match the return type of a gcc2
3086 builtin and then its argument prototype would still apply. */
3093 if { (eval echo configure:3105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3095 eval "ac_cv_lib_$ac_lib_var=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3100 eval "ac_cv_lib_$ac_lib_var=no"
3103 LIBS="$ac_save_LIBS"
3106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 X_LIBS="$X_LIBS -lgen"
3110 echo "$ac_t""no" 1>&6
3119 # Check for Xmu (some fucked up vendors don't ship it...)
3123 ac_save_CPPFLAGS="$CPPFLAGS"
3124 if test \! -z "$includedir" ; then
3125 CPPFLAGS="$CPPFLAGS -I$includedir"
3127 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3128 ac_safe=`echo "X11/Xmu/Error.h" | sed 'y%./+-%__p_%'`
3129 echo $ac_n "checking for X11/Xmu/Error.h""... $ac_c" 1>&6
3130 echo "configure:3142: checking for X11/Xmu/Error.h" >&5
3131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 cat > conftest.$ac_ext <<EOF
3135 #line 3147 "configure"
3136 #include "confdefs.h"
3137 #include <X11/Xmu/Error.h>
3139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3140 { (eval echo configure:3152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3141 ac_err=`grep -v '^ *+' conftest.out`
3142 if test -z "$ac_err"; then
3144 eval "ac_cv_header_$ac_safe=yes"
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3150 eval "ac_cv_header_$ac_safe=no"
3154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3155 echo "$ac_t""yes" 1>&6
3158 echo "$ac_t""no" 1>&6
3161 CPPFLAGS="$ac_save_CPPFLAGS"
3162 if test $have_xmu = no ; then
3163 XMU_SRCS='$(UTILS_SRC)/xmu.c'
3164 XMU_OBJS='$(UTILS_BIN)/xmu.o'
3168 SAVER_LIBS="-lXmu $SAVER_LIBS"
3169 HACK_LIBS="-lXmu $HACK_LIBS"
3170 cat >> confdefs.h <<\EOF
3177 # See comp.windows.x FAQ question 124 about _get_wmShellWidgetClass on 4.1.x.
3178 # The right fix is to get OpenWindows 3.0 patches 100512-02 and 100573-03.
3180 if test $have_xmu = yes ; then
3183 echo $ac_n "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug""... $ac_c" 1>&6
3184 echo "configure:3196: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
3185 if eval "test \"`echo '$''{'ac_cv_sunos_xmu_bug'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 ac_save_LDFLAGS="$LDFLAGS"
3189 if test \! -z "$x_libraries" ; then
3190 LDFLAGS="$LDFLAGS -L$x_libraries"
3192 # Note: this trick never works! (Generally.)
3193 # We're only getting away with using AC_TRY_LINK
3194 # with X libraries because we know it's SunOS.
3195 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3209 "configure"
3198 #include "confdefs.h"
3204 if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3206 ac_cv_sunos_xmu_bug=no
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3211 ac_cv_sunos_xmu_bug=yes
3214 LDFLAGS="$ac_save_LDFLAGS"
3217 echo "$ac_t""$ac_cv_sunos_xmu_bug" 1>&6
3218 if test $ac_cv_sunos_xmu_bug = yes ; then
3219 echo $ac_n "checking whether the compiler understands -static""... $ac_c" 1>&6
3220 echo "configure:3232: checking whether the compiler understands -static" >&5
3221 if eval "test \"`echo '$''{'ac_cv_ld_static'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 ac_save_LDFLAGS="$LDFLAGS"
3225 LDFLAGS="$LDFLAGS -static"
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3239 "configure"
3228 #include "confdefs.h"
3234 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3244 LDFLAGS="$ac_save_LDFLAGS"
3247 echo "$ac_t""$ac_cv_ld_static" 1>&6
3248 if test $ac_cv_ld_static = yes ; then
3249 LDFLAGS="$LDFLAGS -static"
3251 LDFLAGS="$LDFLAGS -Bstatic"
3259 # Check for the SGI SCREEN_SAVER server extension header.
3262 with_sgi_req=unspecified
3263 # Check whether --with-sgi-ext or --without-sgi-ext was given.
3264 if test "${with_sgi_ext+set}" = set; then
3265 withval="$with_sgi_ext"
3266 with_sgi="$withval"; with_sgi_req="$withval"
3278 echo $ac_n "checking for SGI SCREEN_SAVER headers""... $ac_c" 1>&6
3279 echo "configure:3291: checking for SGI SCREEN_SAVER headers" >&5
3282 X_CFLAGS="-I$d $X_CFLAGS"
3283 echo "$ac_t""$d" 1>&6
3285 echo "$ac_t""not found ($d: no such directory)" 1>&6
3288 echo $ac_n "checking for SGI SCREEN_SAVER libs""... $ac_c" 1>&6
3289 echo "configure:3301: checking for SGI SCREEN_SAVER libs" >&5
3292 X_LIBS="-L$d $X_LIBS"
3293 echo "$ac_t""$d" 1>&6
3295 echo "$ac_t""not found ($d: no such directory)" 1>&6
3298 # replace the directory string with "yes".
3300 with_sgi=$with_sgi_req
3305 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
3306 echo " If it is a directory, then \`DIR/include' will be added to"
3307 echo " the -I list, and \`DIR/lib' will be added to the -L list."
3312 # why is this necessary?
3313 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
3314 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
3318 if test $with_sgi = yes; then
3320 ac_save_CPPFLAGS="$CPPFLAGS"
3321 if test \! -z "$includedir" ; then
3322 CPPFLAGS="$CPPFLAGS -I$includedir"
3324 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3325 ac_safe=`echo "X11/extensions/XScreenSaver.h" | sed 'y%./+-%__p_%'`
3326 echo $ac_n "checking for X11/extensions/XScreenSaver.h""... $ac_c" 1>&6
3327 echo "configure:3339: checking for X11/extensions/XScreenSaver.h" >&5
3328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3344 "configure"
3333 #include "confdefs.h"
3334 #include <X11/extensions/XScreenSaver.h>
3336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3337 { (eval echo configure:3349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3338 ac_err=`grep -v '^ *+' conftest.out`
3339 if test -z "$ac_err"; then
3341 eval "ac_cv_header_$ac_safe=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_header_$ac_safe=no"
3351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3352 echo "$ac_t""yes" 1>&6
3354 cat >> confdefs.h <<\EOF
3355 #define HAVE_SGI_SAVER_EXTENSION 1
3359 echo "$ac_t""no" 1>&6
3362 CPPFLAGS="$ac_save_CPPFLAGS"
3364 elif test $with_sgi != no; then
3365 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
3369 # Check for the MIT-SCREEN-SAVER server extension header,
3370 # unless the SGI extension has already been found.
3373 with_mit_req=unspecified
3374 # Check whether --with-mit-ext or --without-mit-ext was given.
3375 if test "${with_mit_ext+set}" = set; then
3376 withval="$with_mit_ext"
3377 with_mit="$withval"; with_mit_req="$withval"
3389 echo $ac_n "checking for MIT-SCREEN-SAVER headers""... $ac_c" 1>&6
3390 echo "configure:3402: checking for MIT-SCREEN-SAVER headers" >&5
3393 X_CFLAGS="-I$d $X_CFLAGS"
3394 echo "$ac_t""$d" 1>&6
3396 echo "$ac_t""not found ($d: no such directory)" 1>&6
3399 echo $ac_n "checking for MIT-SCREEN-SAVER libs""... $ac_c" 1>&6
3400 echo "configure:3412: checking for MIT-SCREEN-SAVER libs" >&5
3403 X_LIBS="-L$d $X_LIBS"
3404 echo "$ac_t""$d" 1>&6
3406 echo "$ac_t""not found ($d: no such directory)" 1>&6
3409 # replace the directory string with "yes".
3411 with_mit=$with_mit_req
3416 echo "error: argument to --with-mit-ext must be \"yes\", \"no\", or a directory."
3417 echo " If it is a directory, then \`DIR/include' will be added to"
3418 echo " the -I list, and \`DIR/lib' will be added to the -L list."
3423 # why is this necessary?
3424 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
3425 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
3429 if test $have_sgi != yes; then
3430 if test $with_mit = yes; then
3432 ac_save_CPPFLAGS="$CPPFLAGS"
3433 if test \! -z "$includedir" ; then
3434 CPPFLAGS="$CPPFLAGS -I$includedir"
3436 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3437 ac_safe=`echo "X11/extensions/scrnsaver.h" | sed 'y%./+-%__p_%'`
3438 echo $ac_n "checking for X11/extensions/scrnsaver.h""... $ac_c" 1>&6
3439 echo "configure:3451: checking for X11/extensions/scrnsaver.h" >&5
3440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3456 "configure"
3445 #include "confdefs.h"
3446 #include <X11/extensions/scrnsaver.h>
3448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3449 { (eval echo configure:3461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3450 ac_err=`grep -v '^ *+' conftest.out`
3451 if test -z "$ac_err"; then
3453 eval "ac_cv_header_$ac_safe=yes"
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3459 eval "ac_cv_header_$ac_safe=no"
3463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3464 echo "$ac_t""yes" 1>&6
3467 echo "$ac_t""no" 1>&6
3470 CPPFLAGS="$ac_save_CPPFLAGS"
3472 # Now check to see if it's really in the library; XF86Free-3.3 ships
3473 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
3475 if test $have_mit = yes; then
3477 ac_save_CPPFLAGS="$CPPFLAGS"
3478 ac_save_LDFLAGS="$LDFLAGS"
3479 if test \! -z "$includedir" ; then
3480 CPPFLAGS="$CPPFLAGS -I$includedir"
3482 if test \! -z "$includedir" ; then
3483 CPPFLAGS="$CPPFLAGS -I$includedir"
3485 if test \! -z "$libdir" ; then
3486 LDFLAGS="$LDFLAGS -L$libdir"
3488 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3489 if test \! -z "$x_libraries" ; then
3490 LDFLAGS="$LDFLAGS -L$x_libraries"
3492 echo $ac_n "checking for XScreenSaverRegister in -lXext""... $ac_c" 1>&6
3493 echo "configure:3505: checking for XScreenSaverRegister in -lXext" >&5
3494 ac_lib_var=`echo Xext'_'XScreenSaverRegister | sed 'y%./+-%__p_%'`
3495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3498 ac_save_LIBS="$LIBS"
3499 LIBS="-lXext -lm $LIBS"
3500 cat > conftest.$ac_ext <<EOF
3501 #line 3513 "configure"
3502 #include "confdefs.h"
3503 /* Override any gcc2 internal prototype to avoid an error. */
3504 /* We use char because int might match the return type of a gcc2
3505 builtin and then its argument prototype would still apply. */
3506 char XScreenSaverRegister();
3509 XScreenSaverRegister()
3512 if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3514 eval "ac_cv_lib_$ac_lib_var=yes"
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3519 eval "ac_cv_lib_$ac_lib_var=no"
3522 LIBS="$ac_save_LIBS"
3525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3526 echo "$ac_t""yes" 1>&6
3527 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3528 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3529 cat >> confdefs.h <<EOF
3530 #define $ac_tr_lib 1
3536 echo "$ac_t""no" 1>&6
3540 CPPFLAGS="$ac_save_CPPFLAGS"
3541 LDFLAGS="$ac_save_LDFLAGS"
3543 if test $have_mit = no; then
3544 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
3545 # of in Xext. Thank you master, may I have another.
3547 ac_save_CPPFLAGS="$CPPFLAGS"
3548 ac_save_LDFLAGS="$LDFLAGS"
3549 if test \! -z "$includedir" ; then
3550 CPPFLAGS="$CPPFLAGS -I$includedir"
3552 if test \! -z "$includedir" ; then
3553 CPPFLAGS="$CPPFLAGS -I$includedir"
3555 if test \! -z "$libdir" ; then
3556 LDFLAGS="$LDFLAGS -L$libdir"
3558 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3559 if test \! -z "$x_libraries" ; then
3560 LDFLAGS="$LDFLAGS -L$x_libraries"
3562 echo $ac_n "checking for XScreenSaverRegister in -lXExExt""... $ac_c" 1>&6
3563 echo "configure:3575: checking for XScreenSaverRegister in -lXExExt" >&5
3564 ac_lib_var=`echo XExExt'_'XScreenSaverRegister | sed 'y%./+-%__p_%'`
3565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 ac_save_LIBS="$LIBS"
3569 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3583 "configure"
3572 #include "confdefs.h"
3573 /* Override any gcc2 internal prototype to avoid an error. */
3574 /* We use char because int might match the return type of a gcc2
3575 builtin and then its argument prototype would still apply. */
3576 char XScreenSaverRegister();
3579 XScreenSaverRegister()
3582 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3584 eval "ac_cv_lib_$ac_lib_var=yes"
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3589 eval "ac_cv_lib_$ac_lib_var=no"
3592 LIBS="$ac_save_LIBS"
3595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3596 echo "$ac_t""yes" 1>&6
3597 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
3599 echo "$ac_t""no" 1>&6
3602 CPPFLAGS="$ac_save_CPPFLAGS"
3603 LDFLAGS="$ac_save_LDFLAGS"
3606 if test $have_mit = no; then
3607 # Double fuck! Looks like some versions of XFree86 (whichever version
3608 # it is that comes with RedHat Linux 2.0 -- I can't find a version
3609 # number) put this garbage in Xss instead of Xext. Thank you master,
3610 # may I have another.
3612 ac_save_CPPFLAGS="$CPPFLAGS"
3613 ac_save_LDFLAGS="$LDFLAGS"
3614 if test \! -z "$includedir" ; then
3615 CPPFLAGS="$CPPFLAGS -I$includedir"
3617 if test \! -z "$includedir" ; then
3618 CPPFLAGS="$CPPFLAGS -I$includedir"
3620 if test \! -z "$libdir" ; then
3621 LDFLAGS="$LDFLAGS -L$libdir"
3623 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3624 if test \! -z "$x_libraries" ; then
3625 LDFLAGS="$LDFLAGS -L$x_libraries"
3627 echo $ac_n "checking for XScreenSaverRegister in -lXss""... $ac_c" 1>&6
3628 echo "configure:3640: checking for XScreenSaverRegister in -lXss" >&5
3629 ac_lib_var=`echo Xss'_'XScreenSaverRegister | sed 'y%./+-%__p_%'`
3630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 ac_save_LIBS="$LIBS"
3634 LIBS="-lXss -lX11 -lXext -lm $LIBS"
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3648 "configure"
3637 #include "confdefs.h"
3638 /* Override any gcc2 internal prototype to avoid an error. */
3639 /* We use char because int might match the return type of a gcc2
3640 builtin and then its argument prototype would still apply. */
3641 char XScreenSaverRegister();
3644 XScreenSaverRegister()
3647 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3649 eval "ac_cv_lib_$ac_lib_var=yes"
3651 echo "configure: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3654 eval "ac_cv_lib_$ac_lib_var=no"
3657 LIBS="$ac_save_LIBS"
3660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3661 echo "$ac_t""yes" 1>&6
3662 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
3664 echo "$ac_t""no" 1>&6
3667 CPPFLAGS="$ac_save_CPPFLAGS"
3668 LDFLAGS="$ac_save_LDFLAGS"
3671 if test $have_mit = yes; then
3672 cat >> confdefs.h <<\EOF
3673 #define HAVE_MIT_SAVER_EXTENSION 1
3680 elif test $with_mit != no; then
3681 echo "error: must be yes or no: --with-mit-ext=$with_mit"
3687 # Check for the XIDLE server extension header.
3690 with_xidle_req=unspecified
3691 # Check whether --with-xidle-ext or --without-xidle-ext was given.
3692 if test "${with_xidle_ext+set}" = set; then
3693 withval="$with_xidle_ext"
3694 with_xidle="$withval"; with_xidle_req="$withval"
3701 case "$with_xidle" in
3706 echo $ac_n "checking for XIDLE headers""... $ac_c" 1>&6
3707 echo "configure:3719: checking for XIDLE headers" >&5
3708 d=$with_xidle/include
3710 X_CFLAGS="-I$d $X_CFLAGS"
3711 echo "$ac_t""$d" 1>&6
3713 echo "$ac_t""not found ($d: no such directory)" 1>&6
3716 echo $ac_n "checking for XIDLE libs""... $ac_c" 1>&6
3717 echo "configure:3729: checking for XIDLE libs" >&5
3720 X_LIBS="-L$d $X_LIBS"
3721 echo "$ac_t""$d" 1>&6
3723 echo "$ac_t""not found ($d: no such directory)" 1>&6
3726 # replace the directory string with "yes".
3727 with_xidle_req="yes"
3728 with_xidle=$with_xidle_req
3733 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
3734 echo " If it is a directory, then \`DIR/include' will be added to"
3735 echo " the -I list, and \`DIR/lib' will be added to the -L list."
3740 # why is this necessary?
3741 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
3742 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
3746 if test $with_xidle = yes; then
3748 ac_save_CPPFLAGS="$CPPFLAGS"
3749 if test \! -z "$includedir" ; then
3750 CPPFLAGS="$CPPFLAGS -I$includedir"
3752 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3753 ac_safe=`echo "X11/extensions/xidle.h" | sed 'y%./+-%__p_%'`
3754 echo $ac_n "checking for X11/extensions/xidle.h""... $ac_c" 1>&6
3755 echo "configure:3767: checking for X11/extensions/xidle.h" >&5
3756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3772 "configure"
3761 #include "confdefs.h"
3762 #include <X11/extensions/xidle.h>
3764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3765 { (eval echo configure:3777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3766 ac_err=`grep -v '^ *+' conftest.out`
3767 if test -z "$ac_err"; then
3769 eval "ac_cv_header_$ac_safe=yes"
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3775 eval "ac_cv_header_$ac_safe=no"
3779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3782 cat >> confdefs.h <<\EOF
3783 #define HAVE_XIDLE_EXTENSION 1
3787 echo "$ac_t""no" 1>&6
3790 CPPFLAGS="$ac_save_CPPFLAGS"
3791 elif test $with_xidle != no; then
3792 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
3797 # Check for the XSHM server extension header.
3800 with_xshm_req=unspecified
3801 # Check whether --with-xshm-ext or --without-xshm-ext was given.
3802 if test "${with_xshm_ext+set}" = set; then
3803 withval="$with_xshm_ext"
3804 with_xshm="$withval"; with_xshm_req="$withval"
3811 case "$with_xshm" in
3816 echo $ac_n "checking for XSHM headers""... $ac_c" 1>&6
3817 echo "configure:3829: checking for XSHM headers" >&5
3818 d=$with_xshm/include
3820 X_CFLAGS="-I$d $X_CFLAGS"
3821 echo "$ac_t""$d" 1>&6
3823 echo "$ac_t""not found ($d: no such directory)" 1>&6
3826 echo $ac_n "checking for XSHM libs""... $ac_c" 1>&6
3827 echo "configure:3839: checking for XSHM libs" >&5
3830 X_LIBS="-L$d $X_LIBS"
3831 echo "$ac_t""$d" 1>&6
3833 echo "$ac_t""not found ($d: no such directory)" 1>&6
3836 # replace the directory string with "yes".
3838 with_xshm=$with_xshm_req
3843 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
3844 echo " If it is a directory, then \`DIR/include' will be added to"
3845 echo " the -I list, and \`DIR/lib' will be added to the -L list."
3850 # why is this necessary?
3851 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
3852 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
3856 if test $with_xshm = yes; then
3858 # first check for Xshm.h.
3860 ac_save_CPPFLAGS="$CPPFLAGS"
3861 if test \! -z "$includedir" ; then
3862 CPPFLAGS="$CPPFLAGS -I$includedir"
3864 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3865 ac_safe=`echo "X11/extensions/XShm.h" | sed 'y%./+-%__p_%'`
3866 echo $ac_n "checking for X11/extensions/XShm.h""... $ac_c" 1>&6
3867 echo "configure:3879: checking for X11/extensions/XShm.h" >&5
3868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3884 "configure"
3873 #include "confdefs.h"
3874 #include <X11/extensions/XShm.h>
3876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3877 { (eval echo configure:3889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3878 ac_err=`grep -v '^ *+' conftest.out`
3879 if test -z "$ac_err"; then
3881 eval "ac_cv_header_$ac_safe=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 eval "ac_cv_header_$ac_safe=no"
3891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3895 echo "$ac_t""no" 1>&6
3898 CPPFLAGS="$ac_save_CPPFLAGS"
3900 # if that succeeded, then check for sys/ipc.h.
3901 if test $have_xshm = yes; then
3904 ac_save_CPPFLAGS="$CPPFLAGS"
3905 if test \! -z "$includedir" ; then
3906 CPPFLAGS="$CPPFLAGS -I$includedir"
3908 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3909 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
3910 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
3911 echo "configure:3923: checking for sys/ipc.h" >&5
3912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3928 "configure"
3917 #include "confdefs.h"
3918 #include <sys/ipc.h>
3920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3921 { (eval echo configure:3933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3922 ac_err=`grep -v '^ *+' conftest.out`
3923 if test -z "$ac_err"; then
3925 eval "ac_cv_header_$ac_safe=yes"
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3931 eval "ac_cv_header_$ac_safe=no"
3935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3939 echo "$ac_t""no" 1>&6
3942 CPPFLAGS="$ac_save_CPPFLAGS"
3945 # if that succeeded, then check for sys/shm.h.
3946 if test $have_xshm = yes; then
3949 ac_save_CPPFLAGS="$CPPFLAGS"
3950 if test \! -z "$includedir" ; then
3951 CPPFLAGS="$CPPFLAGS -I$includedir"
3953 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3954 ac_safe=`echo "sys/shm.h" | sed 'y%./+-%__p_%'`
3955 echo $ac_n "checking for sys/shm.h""... $ac_c" 1>&6
3956 echo "configure:3968: checking for sys/shm.h" >&5
3957 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3973 "configure"
3962 #include "confdefs.h"
3963 #include <sys/shm.h>
3965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3966 { (eval echo configure:3978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3967 ac_err=`grep -v '^ *+' conftest.out`
3968 if test -z "$ac_err"; then
3970 eval "ac_cv_header_$ac_safe=yes"
3973 echo "configure: failed program was:" >&5
3974 cat conftest.$ac_ext >&5
3976 eval "ac_cv_header_$ac_safe=no"
3980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3981 echo "$ac_t""yes" 1>&6
3984 echo "$ac_t""no" 1>&6
3987 CPPFLAGS="$ac_save_CPPFLAGS"
3990 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
3991 # to exist, but the library code to not exist. And even better, the library
3992 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
3993 # lib doesn't exist, give up.
3999 ac_save_CPPFLAGS="$CPPFLAGS"
4000 ac_save_LDFLAGS="$LDFLAGS"
4001 if test \! -z "$includedir" ; then
4002 CPPFLAGS="$CPPFLAGS -I$includedir"
4004 if test \! -z "$includedir" ; then
4005 CPPFLAGS="$CPPFLAGS -I$includedir"
4007 if test \! -z "$libdir" ; then
4008 LDFLAGS="$LDFLAGS -L$libdir"
4010 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4011 if test \! -z "$x_libraries" ; then
4012 LDFLAGS="$LDFLAGS -L$x_libraries"
4014 echo $ac_n "checking for XShmQueryExtension in -lXextSam""... $ac_c" 1>&6
4015 echo "configure:4027: checking for XShmQueryExtension in -lXextSam" >&5
4016 ac_lib_var=`echo XextSam'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
4017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4020 ac_save_LIBS="$LIBS"
4021 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4035 "configure"
4024 #include "confdefs.h"
4025 /* Override any gcc2 internal prototype to avoid an error. */
4026 /* We use char because int might match the return type of a gcc2
4027 builtin and then its argument prototype would still apply. */
4028 char XShmQueryExtension();
4031 XShmQueryExtension()
4034 if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4036 eval "ac_cv_lib_$ac_lib_var=yes"
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 eval "ac_cv_lib_$ac_lib_var=no"
4044 LIBS="$ac_save_LIBS"
4047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4048 echo "$ac_t""yes" 1>&6
4049 have_xshm=yes; SAVER_LIBS="$SAVER_LIBS -lXextSam"
4051 echo "$ac_t""no" 1>&6
4054 CPPFLAGS="$ac_save_CPPFLAGS"
4055 LDFLAGS="$ac_save_LDFLAGS"
4059 # if that succeeded, then we've really got it.
4060 if test $have_xshm = yes; then
4061 cat >> confdefs.h <<\EOF
4062 #define HAVE_XSHM_EXTENSION 1
4067 elif test $with_xshm != no; then
4068 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
4073 # Check for the SGI-VIDEO-CONTROL server extension header.
4076 with_sgivc_req=unspecified
4077 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
4078 if test "${with_sgivc_ext+set}" = set; then
4079 withval="$with_sgivc_ext"
4080 with_sgivc="$withval"; with_sgivc_req="$withval"
4087 case "$with_sgivc" in
4092 echo $ac_n "checking for SGI-VIDEO-CONTROL headers""... $ac_c" 1>&6
4093 echo "configure:4105: checking for SGI-VIDEO-CONTROL headers" >&5
4094 d=$with_sgivc/include
4096 X_CFLAGS="-I$d $X_CFLAGS"
4097 echo "$ac_t""$d" 1>&6
4099 echo "$ac_t""not found ($d: no such directory)" 1>&6
4102 echo $ac_n "checking for SGI-VIDEO-CONTROL libs""... $ac_c" 1>&6
4103 echo "configure:4115: checking for SGI-VIDEO-CONTROL libs" >&5
4106 X_LIBS="-L$d $X_LIBS"
4107 echo "$ac_t""$d" 1>&6
4109 echo "$ac_t""not found ($d: no such directory)" 1>&6
4112 # replace the directory string with "yes".
4113 with_sgivc_req="yes"
4114 with_sgivc=$with_sgivc_req
4119 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
4120 echo " If it is a directory, then \`DIR/include' will be added to"
4121 echo " the -I list, and \`DIR/lib' will be added to the -L list."
4126 # why is this necessary?
4127 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
4128 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
4132 if test $with_sgivc = yes; then
4134 # first check for XSGIvc.h
4136 ac_save_CPPFLAGS="$CPPFLAGS"
4137 if test \! -z "$includedir" ; then
4138 CPPFLAGS="$CPPFLAGS -I$includedir"
4140 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4141 ac_safe=`echo "X11/extensions/XSGIvc.h" | sed 'y%./+-%__p_%'`
4142 echo $ac_n "checking for X11/extensions/XSGIvc.h""... $ac_c" 1>&6
4143 echo "configure:4155: checking for X11/extensions/XSGIvc.h" >&5
4144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4160 "configure"
4149 #include "confdefs.h"
4150 #include <X11/extensions/XSGIvc.h>
4152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4153 { (eval echo configure:4165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4154 ac_err=`grep -v '^ *+' conftest.out`
4155 if test -z "$ac_err"; then
4157 eval "ac_cv_header_$ac_safe=yes"
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4163 eval "ac_cv_header_$ac_safe=no"
4167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4171 echo "$ac_t""no" 1>&6
4174 CPPFLAGS="$ac_save_CPPFLAGS"
4176 # if that succeeded, then check for the -lXsgivc
4177 if test $have_sgivc = yes; then
4180 ac_save_CPPFLAGS="$CPPFLAGS"
4181 ac_save_LDFLAGS="$LDFLAGS"
4182 if test \! -z "$includedir" ; then
4183 CPPFLAGS="$CPPFLAGS -I$includedir"
4185 if test \! -z "$includedir" ; then
4186 CPPFLAGS="$CPPFLAGS -I$includedir"
4188 if test \! -z "$libdir" ; then
4189 LDFLAGS="$LDFLAGS -L$libdir"
4191 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4192 if test \! -z "$x_libraries" ; then
4193 LDFLAGS="$LDFLAGS -L$x_libraries"
4195 echo $ac_n "checking for XSGIvcQueryGammaMap in -lXsgivc""... $ac_c" 1>&6
4196 echo "configure:4208: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
4197 ac_lib_var=`echo Xsgivc'_'XSGIvcQueryGammaMap | sed 'y%./+-%__p_%'`
4198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4201 ac_save_LIBS="$LIBS"
4202 LIBS="-lXsgivc -lXext -lX11 $LIBS"
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4216 "configure"
4205 #include "confdefs.h"
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 /* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4209 char XSGIvcQueryGammaMap();
4212 XSGIvcQueryGammaMap()
4215 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4217 eval "ac_cv_lib_$ac_lib_var=yes"
4219 echo "configure: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4222 eval "ac_cv_lib_$ac_lib_var=no"
4225 LIBS="$ac_save_LIBS"
4228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4229 echo "$ac_t""yes" 1>&6
4230 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
4232 echo "$ac_t""no" 1>&6
4235 CPPFLAGS="$ac_save_CPPFLAGS"
4236 LDFLAGS="$ac_save_LDFLAGS"
4239 # if that succeeded, then we've really got it.
4240 if test $have_sgivc = yes; then
4241 cat >> confdefs.h <<\EOF
4242 #define HAVE_SGI_VC_EXTENSION 1
4247 elif test $with_sgivc != no; then
4248 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
4253 # Check for the DPMS server extension header.
4256 with_dpms_req=unspecified
4257 # Check whether --with-dpms-ext or --without-dpms-ext was given.
4258 if test "${with_dpms_ext+set}" = set; then
4259 withval="$with_dpms_ext"
4260 with_dpms="$withval"; with_dpms_req="$withval"
4267 case "$with_dpms" in
4272 echo $ac_n "checking for DPMS headers""... $ac_c" 1>&6
4273 echo "configure:4285: checking for DPMS headers" >&5
4274 d=$with_dpms/include
4276 X_CFLAGS="-I$d $X_CFLAGS"
4277 echo "$ac_t""$d" 1>&6
4279 echo "$ac_t""not found ($d: no such directory)" 1>&6
4282 echo $ac_n "checking for DPMS libs""... $ac_c" 1>&6
4283 echo "configure:4295: checking for DPMS libs" >&5
4286 X_LIBS="-L$d $X_LIBS"
4287 echo "$ac_t""$d" 1>&6
4289 echo "$ac_t""not found ($d: no such directory)" 1>&6
4292 # replace the directory string with "yes".
4294 with_dpms=$with_dpms_req
4299 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
4300 echo " If it is a directory, then \`DIR/include' will be added to"
4301 echo " the -I list, and \`DIR/lib' will be added to the -L list."
4306 # why is this necessary?
4307 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
4308 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
4312 if test $with_dpms = yes; then
4314 # first check for dpms.h
4316 ac_save_CPPFLAGS="$CPPFLAGS"
4317 if test \! -z "$includedir" ; then
4318 CPPFLAGS="$CPPFLAGS -I$includedir"
4320 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4321 ac_safe=`echo "X11/extensions/dpms.h" | sed 'y%./+-%__p_%'`
4322 echo $ac_n "checking for X11/extensions/dpms.h""... $ac_c" 1>&6
4323 echo "configure:4335: checking for X11/extensions/dpms.h" >&5
4324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4340 "configure"
4329 #include "confdefs.h"
4330 #include <X11/extensions/dpms.h>
4332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4333 { (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4334 ac_err=`grep -v '^ *+' conftest.out`
4335 if test -z "$ac_err"; then
4337 eval "ac_cv_header_$ac_safe=yes"
4340 echo "configure: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4343 eval "ac_cv_header_$ac_safe=no"
4347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4351 echo "$ac_t""no" 1>&6
4354 CPPFLAGS="$ac_save_CPPFLAGS"
4356 # if that succeeded, then check for the -lXdpms
4357 if test $have_dpms = yes; then
4360 ac_save_CPPFLAGS="$CPPFLAGS"
4361 ac_save_LDFLAGS="$LDFLAGS"
4362 if test \! -z "$includedir" ; then
4363 CPPFLAGS="$CPPFLAGS -I$includedir"
4365 if test \! -z "$includedir" ; then
4366 CPPFLAGS="$CPPFLAGS -I$includedir"
4368 if test \! -z "$libdir" ; then
4369 LDFLAGS="$LDFLAGS -L$libdir"
4371 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4372 if test \! -z "$x_libraries" ; then
4373 LDFLAGS="$LDFLAGS -L$x_libraries"
4375 echo $ac_n "checking for DPMSInfo in -lXdpms""... $ac_c" 1>&6
4376 echo "configure:4388: checking for DPMSInfo in -lXdpms" >&5
4377 ac_lib_var=`echo Xdpms'_'DPMSInfo | sed 'y%./+-%__p_%'`
4378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 ac_save_LIBS="$LIBS"
4382 LIBS="-lXdpms -lXext -lX11 $LIBS"
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4396 "configure"
4385 #include "confdefs.h"
4386 /* Override any gcc2 internal prototype to avoid an error. */
4387 /* We use char because int might match the return type of a gcc2
4388 builtin and then its argument prototype would still apply. */
4395 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4397 eval "ac_cv_lib_$ac_lib_var=yes"
4399 echo "configure: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4402 eval "ac_cv_lib_$ac_lib_var=no"
4405 LIBS="$ac_save_LIBS"
4408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4409 echo "$ac_t""yes" 1>&6
4410 have_dpms=yes; SAVER_LIBS="$SAVER_LIBS -lXdpms"
4412 echo "$ac_t""no" 1>&6
4415 CPPFLAGS="$ac_save_CPPFLAGS"
4416 LDFLAGS="$ac_save_LDFLAGS"
4419 # if that succeeded, then we've really got it.
4420 if test $have_dpms = yes; then
4421 cat >> confdefs.h <<\EOF
4422 #define HAVE_DPMS_EXTENSION 1
4427 elif test $with_dpms != no; then
4428 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
4434 # Check for Motif and Athena --with and --without arguments.
4439 with_motif_req=unspecified
4440 with_athena_req=unspecified
4442 # Check whether --with-motif or --without-motif was given.
4443 if test "${with_motif+set}" = set; then
4444 withval="$with_motif"
4445 with_motif="$withval"; with_motif_req="$withval"
4452 case "$with_motif" in
4457 echo $ac_n "checking for Motif headers""... $ac_c" 1>&6
4458 echo "configure:4470: checking for Motif headers" >&5
4459 d=$with_motif/include
4461 X_CFLAGS="-I$d $X_CFLAGS"
4462 echo "$ac_t""$d" 1>&6
4464 echo "$ac_t""not found ($d: no such directory)" 1>&6
4467 echo $ac_n "checking for Motif libs""... $ac_c" 1>&6
4468 echo "configure:4480: checking for Motif libs" >&5
4471 X_LIBS="-L$d $X_LIBS"
4472 echo "$ac_t""$d" 1>&6
4474 echo "$ac_t""not found ($d: no such directory)" 1>&6
4477 # replace the directory string with "yes".
4478 with_motif_req="yes"
4479 with_motif=$with_motif_req
4484 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
4485 echo " If it is a directory, then \`DIR/include' will be added to"
4486 echo " the -I list, and \`DIR/lib' will be added to the -L list."
4491 # why is this necessary?
4492 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
4493 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
4497 # Check whether --with-athena or --without-athena was given.
4498 if test "${with_athena+set}" = set; then
4499 withval="$with_athena"
4500 with_athena="$withval"; with_athena_req="$withval"
4507 case "$with_athena" in
4512 echo $ac_n "checking for Athena headers""... $ac_c" 1>&6
4513 echo "configure:4525: checking for Athena headers" >&5
4514 d=$with_athena/include
4516 X_CFLAGS="-I$d $X_CFLAGS"
4517 echo "$ac_t""$d" 1>&6
4519 echo "$ac_t""not found ($d: no such directory)" 1>&6
4522 echo $ac_n "checking for Athena libs""... $ac_c" 1>&6
4523 echo "configure:4535: checking for Athena libs" >&5
4526 X_LIBS="-L$d $X_LIBS"
4527 echo "$ac_t""$d" 1>&6
4529 echo "$ac_t""not found ($d: no such directory)" 1>&6
4532 # replace the directory string with "yes".
4533 with_athena_req="yes"
4534 with_athena=$with_athena_req
4539 echo "error: argument to --with-athena must be \"yes\", \"no\", or a directory."
4540 echo " If it is a directory, then \`DIR/include' will be added to"
4541 echo " the -I list, and \`DIR/lib' will be added to the -L list."
4546 # why is this necessary?
4547 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
4548 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
4552 if test $with_motif != yes -a $with_motif != no ; then
4553 echo "error: must be yes or no: --with-motif=$with_motif"
4557 if test $with_athena != yes -a $with_athena != no ; then
4558 echo "error: must be yes or no: --with-athena=$with_athena"
4563 # Saying --without-motif is the same as saying --with-athena.
4564 if test $with_motif_req = no ; then
4569 # Saying --without-athena is the same as saying --with-motif.
4570 if test $with_athena_req = no ; then
4575 # Check for Motif and Athena headers.
4579 ac_save_CPPFLAGS="$CPPFLAGS"
4580 if test \! -z "$includedir" ; then
4581 CPPFLAGS="$CPPFLAGS -I$includedir"
4583 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4584 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
4585 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
4586 echo "configure:4598: checking for Xm/Xm.h" >&5
4587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4603 "configure"
4592 #include "confdefs.h"
4595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4596 { (eval echo configure:4608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4597 ac_err=`grep -v '^ *+' conftest.out`
4598 if test -z "$ac_err"; then
4600 eval "ac_cv_header_$ac_safe=yes"
4603 echo "configure: failed program was:" >&5
4604 cat conftest.$ac_ext >&5
4606 eval "ac_cv_header_$ac_safe=no"
4610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4611 echo "$ac_t""yes" 1>&6
4613 cat >> confdefs.h <<\EOF
4614 #define HAVE_MOTIF 1
4617 SAVER_LIBS="-lXm $SAVER_LIBS"
4619 echo "$ac_t""no" 1>&6
4622 CPPFLAGS="$ac_save_CPPFLAGS"
4629 ac_save_CPPFLAGS="$CPPFLAGS"
4630 if test \! -z "$includedir" ; then
4631 CPPFLAGS="$CPPFLAGS -I$includedir"
4633 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4634 ac_safe=`echo "X11/Xaw/Dialog.h" | sed 'y%./+-%__p_%'`
4635 echo $ac_n "checking for X11/Xaw/Dialog.h""... $ac_c" 1>&6
4636 echo "configure:4648: checking for X11/Xaw/Dialog.h" >&5
4637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4638 echo $ac_n "(cached) $ac_c" 1>&6
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4653 "configure"
4642 #include "confdefs.h"
4643 #include <X11/Xaw/Dialog.h>
4645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4646 { (eval echo configure:4658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4647 ac_err=`grep -v '^ *+' conftest.out`
4648 if test -z "$ac_err"; then
4650 eval "ac_cv_header_$ac_safe=yes"
4653 echo "configure: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4656 eval "ac_cv_header_$ac_safe=no"
4660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4661 echo "$ac_t""yes" 1>&6
4664 echo "$ac_t""no" 1>&6
4667 CPPFLAGS="$ac_save_CPPFLAGS"
4669 ac_save_CPPFLAGS="$CPPFLAGS"
4670 ac_save_LDFLAGS="$LDFLAGS"
4671 if test \! -z "$includedir" ; then
4672 CPPFLAGS="$CPPFLAGS -I$includedir"
4674 if test \! -z "$includedir" ; then
4675 CPPFLAGS="$CPPFLAGS -I$includedir"
4677 if test \! -z "$libdir" ; then
4678 LDFLAGS="$LDFLAGS -L$libdir"
4680 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4681 if test \! -z "$x_libraries" ; then
4682 LDFLAGS="$LDFLAGS -L$x_libraries"
4684 echo $ac_n "checking for Xaw3dComputeTopShadowRGB in -lXaw3d""... $ac_c" 1>&6
4685 echo "configure:4697: checking for Xaw3dComputeTopShadowRGB in -lXaw3d" >&5
4686 ac_lib_var=`echo Xaw3d'_'Xaw3dComputeTopShadowRGB | sed 'y%./+-%__p_%'`
4687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4690 ac_save_LIBS="$LIBS"
4691 LIBS="-lXaw3d -lXt -lXmu -lXext -lX11 $LIBS"
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4705 "configure"
4694 #include "confdefs.h"
4695 /* Override any gcc2 internal prototype to avoid an error. */
4696 /* We use char because int might match the return type of a gcc2
4697 builtin and then its argument prototype would still apply. */
4698 char Xaw3dComputeTopShadowRGB();
4701 Xaw3dComputeTopShadowRGB()
4704 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4706 eval "ac_cv_lib_$ac_lib_var=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4711 eval "ac_cv_lib_$ac_lib_var=no"
4714 LIBS="$ac_save_LIBS"
4717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4719 have_athena=yes; have_athena3d=yes
4721 echo "$ac_t""no" 1>&6
4724 CPPFLAGS="$ac_save_CPPFLAGS"
4725 LDFLAGS="$ac_save_LDFLAGS"
4727 if test $have_athena3d = yes; then
4728 SAVER_LIBS="-lXaw3d $SAVER_LIBS"
4729 elif test $have_athena = yes; then
4730 SAVER_LIBS="-lXaw $SAVER_LIBS"
4735 # If they asked for both motif and athena, check motif then athena.
4736 # If they asked for only motif, check motif then athena.
4737 # If they asked for only athena, check athena then motif.
4738 # If they asked for neither, check motif then athena.
4740 proselytize_motif=yes
4741 if test $with_motif = yes; then
4742 # asked for both, or for motif only
4744 if test $have_motif = yes; then
4751 elif test $with_athena = yes; then
4752 # asked for athena only
4754 if test $have_athena = yes; then
4756 proselytize_motif=no
4764 if test $have_motif = yes; then
4772 if test $have_motif = yes; then
4773 proselytize_motif=no
4776 # If we have Athena, check whether it's a version that includes
4777 # XawViewportSetCoordinates in Viewport.h (R3 (or R4?) don't.)
4778 if test $have_athena = yes ; then
4779 echo $ac_n "checking for XawViewportSetCoordinates in Viewport.h""... $ac_c" 1>&6
4780 echo "configure:4792: checking for XawViewportSetCoordinates in Viewport.h" >&5
4781 if eval "test \"`echo '$''{'ac_cv_have_XawViewportSetCoordinates'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 ac_cv_have_XawViewportSetCoordinates=no
4786 ac_save_CPPFLAGS="$CPPFLAGS"
4787 if test \! -z "$includedir" ; then
4788 CPPFLAGS="$CPPFLAGS -I$includedir"
4790 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4804 "configure"
4793 #include "confdefs.h"
4794 #include <X11/Xaw/Viewport.h>
4796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4797 egrep "XawViewportSetCoordinates" >/dev/null 2>&1; then
4799 ac_cv_have_XawViewportSetCoordinates=yes
4803 CPPFLAGS="$ac_save_CPPFLAGS"
4806 echo "$ac_t""$ac_cv_have_XawViewportSetCoordinates" 1>&6
4807 if test $ac_cv_have_XawViewportSetCoordinates = yes ; then
4808 cat >> confdefs.h <<\EOF
4809 #define HAVE_XawViewportSetCoordinates 1
4816 # If we have Motif, check whether it's really LessTif.
4819 if test $have_motif = yes ; then
4820 echo $ac_n "checking whether Motif is really LessTif""... $ac_c" 1>&6
4821 echo "configure:4833: checking whether Motif is really LessTif" >&5
4822 if eval "test \"`echo '$''{'ac_cv_have_lesstif'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4826 ac_save_CPPFLAGS="$CPPFLAGS"
4827 if test \! -z "$includedir" ; then
4828 CPPFLAGS="$CPPFLAGS -I$includedir"
4830 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4844 "configure"
4833 #include "confdefs.h"
4836 long vers = LesstifVersion;
4839 if { (eval echo configure:4851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4841 ac_cv_have_lesstif=yes
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 ac_cv_have_lesstif=no
4849 CPPFLAGS="$ac_save_CPPFLAGS"
4852 echo "$ac_t""$ac_cv_have_lesstif" 1>&6
4853 have_lesstif=$ac_cv_have_lesstif
4857 unset ac_cv_lesstif_version
4858 unset ac_cv_lesstif_version_string
4860 lesstif_version=unknown
4861 lesstif_version_string=unknown
4863 if test $have_lesstif = yes ; then
4865 echo unknown > conftest-lt
4866 echo $ac_n "checking LessTif version number""... $ac_c" 1>&6
4867 echo "configure:4879: checking LessTif version number" >&5
4868 if eval "test \"`echo '$''{'ac_cv_lesstif_version_string'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4872 ac_save_CPPFLAGS="$CPPFLAGS"
4873 if test \! -z "$includedir" ; then
4874 CPPFLAGS="$CPPFLAGS -I$includedir"
4876 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4877 if test "$cross_compiling" = yes; then
4878 ac_cv_lesstif_version=unknown
4879 ac_cv_lesstif_version_string=unknown
4881 cat > conftest.$ac_ext <<EOF
4882 #line 4894 "configure"
4883 #include "confdefs.h"
4887 FILE *f = fopen("conftest-lt", "w");
4889 fprintf(f, "%d %d.%d\n", LesstifVersion,
4890 LESSTIF_VERSION, LESSTIF_REVISION);
4895 if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4897 ltv=`cat conftest-lt`
4898 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
4899 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4904 ac_cv_lesstif_version=unknown
4905 ac_cv_lesstif_version_string=unknown
4910 CPPFLAGS="$ac_save_CPPFLAGS"
4913 echo "$ac_t""$ac_cv_lesstif_version_string" 1>&6
4915 lesstif_version=$ac_cv_lesstif_version
4916 lesstif_version_string=$ac_cv_lesstif_version_string
4921 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
4922 # Extension". Why this extension isn't in -lXext with all the others,
4926 if test $have_motif = yes ; then
4929 ac_save_CPPFLAGS="$CPPFLAGS"
4930 ac_save_LDFLAGS="$LDFLAGS"
4931 if test \! -z "$includedir" ; then
4932 CPPFLAGS="$CPPFLAGS -I$includedir"
4934 if test \! -z "$includedir" ; then
4935 CPPFLAGS="$CPPFLAGS -I$includedir"
4937 if test \! -z "$libdir" ; then
4938 LDFLAGS="$LDFLAGS -L$libdir"
4940 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4941 if test \! -z "$x_libraries" ; then
4942 LDFLAGS="$LDFLAGS -L$x_libraries"
4944 echo $ac_n "checking for XpQueryExtension in -lXp""... $ac_c" 1>&6
4945 echo "configure:4957: checking for XpQueryExtension in -lXp" >&5
4946 ac_lib_var=`echo Xp'_'XpQueryExtension | sed 'y%./+-%__p_%'`
4947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4950 ac_save_LIBS="$LIBS"
4951 LIBS="-lXp -lX11 -lXext -lm $LIBS"
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4965 "configure"
4954 #include "confdefs.h"
4955 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4958 char XpQueryExtension();
4964 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4966 eval "ac_cv_lib_$ac_lib_var=yes"
4968 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4971 eval "ac_cv_lib_$ac_lib_var=no"
4974 LIBS="$ac_save_LIBS"
4977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4979 have_xp_ext=yes; SAVER_LIBS="$SAVER_LIBS -lXp"
4981 echo "$ac_t""no" 1>&6
4984 CPPFLAGS="$ac_save_CPPFLAGS"
4985 LDFLAGS="$ac_save_LDFLAGS"
4989 # check for XPM header.
4992 with_xpm_req=unspecified
4993 # Check whether --with-xpm or --without-xpm was given.
4994 if test "${with_xpm+set}" = set; then
4996 with_xpm="$withval"; with_xpm_req="$withval"
5008 echo $ac_n "checking for XPM headers""... $ac_c" 1>&6
5009 echo "configure:5021: checking for XPM headers" >&5
5012 X_CFLAGS="-I$d $X_CFLAGS"
5013 echo "$ac_t""$d" 1>&6
5015 echo "$ac_t""not found ($d: no such directory)" 1>&6
5018 echo $ac_n "checking for XPM libs""... $ac_c" 1>&6
5019 echo "configure:5031: checking for XPM libs" >&5
5022 X_LIBS="-L$d $X_LIBS"
5023 echo "$ac_t""$d" 1>&6
5025 echo "$ac_t""not found ($d: no such directory)" 1>&6
5028 # replace the directory string with "yes".
5030 with_xpm=$with_xpm_req
5035 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
5036 echo " If it is a directory, then \`DIR/include' will be added to"
5037 echo " the -I list, and \`DIR/lib' will be added to the -L list."
5042 # why is this necessary?
5043 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
5044 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
5048 if test $with_xpm = yes; then
5050 ac_save_CPPFLAGS="$CPPFLAGS"
5051 if test \! -z "$includedir" ; then
5052 CPPFLAGS="$CPPFLAGS -I$includedir"
5054 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5055 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5056 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5057 echo "configure:5069: checking for X11/xpm.h" >&5
5058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5074 "configure"
5063 #include "confdefs.h"
5064 #include <X11/xpm.h>
5066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5067 { (eval echo configure:5079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5068 ac_err=`grep -v '^ *+' conftest.out`
5069 if test -z "$ac_err"; then
5071 eval "ac_cv_header_$ac_safe=yes"
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5077 eval "ac_cv_header_$ac_safe=no"
5081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5082 echo "$ac_t""yes" 1>&6
5084 cat >> confdefs.h <<\EOF
5090 echo "$ac_t""no" 1>&6
5093 CPPFLAGS="$ac_save_CPPFLAGS"
5094 elif test $with_xpm != no; then
5095 echo "error: must be yes or no: --with-xpm=$with_xpm"
5100 # check for the GL header
5104 with_gl_req=unspecified
5105 # Check whether --with-gl or --without-gl was given.
5106 if test "${with_gl+set}" = set; then
5108 with_gl="$withval"; with_gl_req="$withval"
5120 echo $ac_n "checking for GL headers""... $ac_c" 1>&6
5121 echo "configure:5133: checking for GL headers" >&5
5124 X_CFLAGS="-I$d $X_CFLAGS"
5125 echo "$ac_t""$d" 1>&6
5127 echo "$ac_t""not found ($d: no such directory)" 1>&6
5130 echo $ac_n "checking for GL libs""... $ac_c" 1>&6
5131 echo "configure:5143: checking for GL libs" >&5
5134 X_LIBS="-L$d $X_LIBS"
5135 echo "$ac_t""$d" 1>&6
5137 echo "$ac_t""not found ($d: no such directory)" 1>&6
5140 # replace the directory string with "yes".
5142 with_gl=$with_gl_req
5147 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
5148 echo " If it is a directory, then \`DIR/include' will be added to"
5149 echo " the -I list, and \`DIR/lib' will be added to the -L list."
5154 # why is this necessary?
5155 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
5156 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
5160 ac_mesagl_version=unknown
5161 ac_mesagl_version_string=unknown
5163 if test $with_gl = yes; then
5165 ac_save_CPPFLAGS="$CPPFLAGS"
5166 if test \! -z "$includedir" ; then
5167 CPPFLAGS="$CPPFLAGS -I$includedir"
5169 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5170 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
5171 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
5172 echo "configure:5184: checking for GL/gl.h" >&5
5173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5189 "configure"
5178 #include "confdefs.h"
5181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5182 { (eval echo configure:5194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5183 ac_err=`grep -v '^ *+' conftest.out`
5184 if test -z "$ac_err"; then
5186 eval "ac_cv_header_$ac_safe=yes"
5189 echo "configure: failed program was:" >&5
5190 cat conftest.$ac_ext >&5
5192 eval "ac_cv_header_$ac_safe=no"
5196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5197 echo "$ac_t""yes" 1>&6
5200 echo "$ac_t""no" 1>&6
5203 CPPFLAGS="$ac_save_CPPFLAGS"
5204 if test $have_gl = yes ; then
5206 ac_save_CPPFLAGS="$CPPFLAGS"
5207 if test \! -z "$includedir" ; then
5208 CPPFLAGS="$CPPFLAGS -I$includedir"
5210 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5211 ac_safe=`echo "GL/glx.h" | sed 'y%./+-%__p_%'`
5212 echo $ac_n "checking for GL/glx.h""... $ac_c" 1>&6
5213 echo "configure:5225: checking for GL/glx.h" >&5
5214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5230 "configure"
5219 #include "confdefs.h"
5222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5223 { (eval echo configure:5235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5224 ac_err=`grep -v '^ *+' conftest.out`
5225 if test -z "$ac_err"; then
5227 eval "ac_cv_header_$ac_safe=yes"
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5233 eval "ac_cv_header_$ac_safe=no"
5237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5238 echo "$ac_t""yes" 1>&6
5241 echo "$ac_t""no" 1>&6
5244 CPPFLAGS="$ac_save_CPPFLAGS"
5247 # If we have the headers, try and figure out which vendor it's from.
5249 if test $have_gl = yes ; then
5251 cat >> confdefs.h <<\EOF
5256 # We need to know whether it's MesaGL so that we know which libraries
5259 echo $ac_n "checking whether GL is really MesaGL""... $ac_c" 1>&6
5260 echo "configure:5272: checking whether GL is really MesaGL" >&5
5261 if eval "test \"`echo '$''{'ac_cv_have_mesa_gl'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 ac_cv_have_mesa_gl=no
5266 ac_save_CPPFLAGS="$CPPFLAGS"
5267 if test \! -z "$includedir" ; then
5268 CPPFLAGS="$CPPFLAGS -I$includedir"
5270 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5284 "configure"
5273 #include "confdefs.h"
5276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277 egrep "Mesa" >/dev/null 2>&1; then
5279 ac_cv_have_mesa_gl=yes
5283 CPPFLAGS="$ac_save_CPPFLAGS"
5287 ac_have_mesa_gl=$ac_cv_have_mesa_gl
5288 echo "$ac_t""$ac_have_mesa_gl" 1>&6
5290 if test $ac_have_mesa_gl = no ; then
5292 GL_LIBS="-lGL -lGLU"
5294 cat >> confdefs.h <<\EOF
5295 #define HAVE_MESA_GL 1
5299 GL_LIBS="-lMesaGL -lMesaGLU"
5303 # If it's MesaGL, we'd like to issue a warning if the version number
5304 # is less than or equal to 2.6, because that version had a security bug.
5306 if test $ac_have_mesa_gl = yes; then
5308 # don't cache these.
5309 unset ac_cv_mesagl_version
5310 unset ac_cv_mesagl_version_string
5312 echo $ac_n "checking MesaGL version number""... $ac_c" 1>&6
5313 echo "configure:5325: checking MesaGL version number" >&5
5314 if eval "test \"`echo '$''{'ac_cv_mesagl_version_string'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5330 "configure"
5319 #include "confdefs.h"
5321 #configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
5324 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -n \
5325 's/^#configure:.*\([0-9][0-9]*\).*\([0-9][0-9]*\).*$/\1.\2/p'`
5326 if test "$mglv" = ""; then
5327 ac_mesagl_version=unknown
5328 ac_mesagl_version_string=unknown
5330 ac_mesagl_version_string=$mglv
5331 maj=`echo $mglv | sed -n 's/\..*//p'`
5332 min=`echo $mglv | sed -n 's/.*\.//p'`
5333 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
5335 ac_cv_mesagl_version=$ac_mesagl_version
5336 ac_cv_mesagl_version_string=$ac_mesagl_version_string
5340 ac_mesagl_version=$ac_cv_mesagl_version
5341 ac_mesagl_version_string=$ac_cv_mesagl_version_string
5342 echo "$ac_t""$ac_cv_mesagl_version_string" 1>&6
5346 # Check for OpenGL 1.1 features.
5349 ac_save_CPPFLAGS="$CPPFLAGS"
5350 ac_save_LDFLAGS="$LDFLAGS"
5351 if test \! -z "$includedir" ; then
5352 CPPFLAGS="$CPPFLAGS -I$includedir"
5354 if test \! -z "$includedir" ; then
5355 CPPFLAGS="$CPPFLAGS -I$includedir"
5357 if test \! -z "$libdir" ; then
5358 LDFLAGS="$LDFLAGS -L$libdir"
5360 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5361 if test \! -z "$x_libraries" ; then
5362 LDFLAGS="$LDFLAGS -L$x_libraries"
5364 echo $ac_n "checking for glBindTexture in -l$gl_lib_1""... $ac_c" 1>&6
5365 echo "configure:5377: checking for glBindTexture in -l$gl_lib_1" >&5
5366 ac_lib_var=`echo $gl_lib_1'_'glBindTexture | sed 'y%./+-%__p_%'`
5367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 ac_save_LIBS="$LIBS"
5371 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5385 "configure"
5374 #include "confdefs.h"
5375 /* Override any gcc2 internal prototype to avoid an error. */
5376 /* We use char because int might match the return type of a gcc2
5377 builtin and then its argument prototype would still apply. */
5378 char glBindTexture();
5384 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5386 eval "ac_cv_lib_$ac_lib_var=yes"
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5391 eval "ac_cv_lib_$ac_lib_var=no"
5394 LIBS="$ac_save_LIBS"
5397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5398 echo "$ac_t""yes" 1>&6
5399 cat >> confdefs.h <<\EOF
5400 #define HAVE_GLBINDTEXTURE 1
5404 echo "$ac_t""no" 1>&6
5407 CPPFLAGS="$ac_save_CPPFLAGS"
5408 LDFLAGS="$ac_save_LDFLAGS"
5412 elif test $with_gl != no; then
5413 echo "error: must be yes or no: --with-gl=$with_gl"
5418 # check for SGI XReadDisplay server extension header.
5421 with_readdisplay_req=unspecified
5422 # Check whether --with-readdisplay or --without-readdisplay was given.
5423 if test "${with_readdisplay+set}" = set; then
5424 withval="$with_readdisplay"
5425 with_readdisplay="$withval"; with_readdisplay_req="$withval"
5427 with_readdisplay=yes
5432 case "$with_readdisplay" in
5437 echo $ac_n "checking for XReadDisplay headers""... $ac_c" 1>&6
5438 echo "configure:5450: checking for XReadDisplay headers" >&5
5439 d=$with_readdisplay/include
5441 X_CFLAGS="-I$d $X_CFLAGS"
5442 echo "$ac_t""$d" 1>&6
5444 echo "$ac_t""not found ($d: no such directory)" 1>&6
5447 echo $ac_n "checking for XReadDisplay libs""... $ac_c" 1>&6
5448 echo "configure:5460: checking for XReadDisplay libs" >&5
5449 d=$with_readdisplay/lib
5451 X_LIBS="-L$d $X_LIBS"
5452 echo "$ac_t""$d" 1>&6
5454 echo "$ac_t""not found ($d: no such directory)" 1>&6
5457 # replace the directory string with "yes".
5458 with_readdisplay_req="yes"
5459 with_readdisplay=$with_readdisplay_req
5464 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
5465 echo " If it is a directory, then \`DIR/include' will be added to"
5466 echo " the -I list, and \`DIR/lib' will be added to the -L list."
5471 # why is this necessary?
5472 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
5473 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
5477 if test $with_readdisplay = yes; then
5479 ac_save_CPPFLAGS="$CPPFLAGS"
5480 if test \! -z "$includedir" ; then
5481 CPPFLAGS="$CPPFLAGS -I$includedir"
5483 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5484 ac_safe=`echo "X11/extensions/readdisplay.h" | sed 'y%./+-%__p_%'`
5485 echo $ac_n "checking for X11/extensions/readdisplay.h""... $ac_c" 1>&6
5486 echo "configure:5498: checking for X11/extensions/readdisplay.h" >&5
5487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5490 cat > conftest.$ac_ext <<EOF
5491 #line 5503 "configure"
5492 #include "confdefs.h"
5493 #include <X11/extensions/readdisplay.h>
5495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5496 { (eval echo configure:5508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5497 ac_err=`grep -v '^ *+' conftest.out`
5498 if test -z "$ac_err"; then
5500 eval "ac_cv_header_$ac_safe=yes"
5503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5506 eval "ac_cv_header_$ac_safe=no"
5510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5511 echo "$ac_t""yes" 1>&6
5512 cat >> confdefs.h <<\EOF
5513 #define HAVE_READ_DISPLAY_EXTENSION 1
5517 echo "$ac_t""no" 1>&6
5520 CPPFLAGS="$ac_save_CPPFLAGS"
5521 elif test $with_readdisplay != no; then
5522 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
5527 # check for SGI's Iris Video Library header.
5530 with_sgivideo_req=unspecified
5531 # Check whether --with-sgivideo or --without-sgivideo was given.
5532 if test "${with_sgivideo+set}" = set; then
5533 withval="$with_sgivideo"
5534 with_sgivideo="$withval"; with_sgivideo_req="$withval"
5541 case "$with_sgivideo" in
5546 echo $ac_n "checking for Iris Video headers""... $ac_c" 1>&6
5547 echo "configure:5559: checking for Iris Video headers" >&5
5548 d=$with_sgivideo/include
5550 X_CFLAGS="-I$d $X_CFLAGS"
5551 echo "$ac_t""$d" 1>&6
5553 echo "$ac_t""not found ($d: no such directory)" 1>&6
5556 echo $ac_n "checking for Iris Video libs""... $ac_c" 1>&6
5557 echo "configure:5569: checking for Iris Video libs" >&5
5558 d=$with_sgivideo/lib
5560 X_LIBS="-L$d $X_LIBS"
5561 echo "$ac_t""$d" 1>&6
5563 echo "$ac_t""not found ($d: no such directory)" 1>&6
5566 # replace the directory string with "yes".
5567 with_sgivideo_req="yes"
5568 with_sgivideo=$with_sgivideo_req
5573 echo "error: argument to --with-sgivideo must be \"yes\", \"no\", or a directory."
5574 echo " If it is a directory, then \`DIR/include' will be added to"
5575 echo " the -I list, and \`DIR/lib' will be added to the -L list."
5580 # why is this necessary?
5581 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
5582 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
5586 if test $with_sgivideo = yes; then
5588 ac_save_CPPFLAGS="$CPPFLAGS"
5589 if test \! -z "$includedir" ; then
5590 CPPFLAGS="$CPPFLAGS -I$includedir"
5592 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5593 ac_safe=`echo "dmedia/vl.h" | sed 'y%./+-%__p_%'`
5594 echo $ac_n "checking for dmedia/vl.h""... $ac_c" 1>&6
5595 echo "configure:5607: checking for dmedia/vl.h" >&5
5596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5612 "configure"
5601 #include "confdefs.h"
5602 #include <dmedia/vl.h>
5604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5605 { (eval echo configure:5617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5606 ac_err=`grep -v '^ *+' conftest.out`
5607 if test -z "$ac_err"; then
5609 eval "ac_cv_header_$ac_safe=yes"
5612 echo "configure: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5615 eval "ac_cv_header_$ac_safe=no"
5619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5620 echo "$ac_t""yes" 1>&6
5623 echo "$ac_t""no" 1>&6
5626 CPPFLAGS="$ac_save_CPPFLAGS"
5627 if test $have_sgivideo = yes; then
5629 echo $ac_n "checking for vlOpenVideo in -lvl""... $ac_c" 1>&6
5630 echo "configure:5642: checking for vlOpenVideo in -lvl" >&5
5631 ac_lib_var=`echo vl'_'vlOpenVideo | sed 'y%./+-%__p_%'`
5632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5633 echo $ac_n "(cached) $ac_c" 1>&6
5635 ac_save_LIBS="$LIBS"
5637 cat > conftest.$ac_ext <<EOF
5638 #line 5650 "configure"
5639 #include "confdefs.h"
5640 /* Override any gcc2 internal prototype to avoid an error. */
5641 /* We use char because int might match the return type of a gcc2
5642 builtin and then its argument prototype would still apply. */
5649 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5651 eval "ac_cv_lib_$ac_lib_var=yes"
5653 echo "configure: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5656 eval "ac_cv_lib_$ac_lib_var=no"
5659 LIBS="$ac_save_LIBS"
5662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5663 echo "$ac_t""yes" 1>&6
5666 echo "$ac_t""no" 1>&6
5669 if test $have_sgivideo = yes; then
5670 SGI_VIDEO_OBJS="$(UTILS_BIN)/sgivideo.o"
5671 SGI_VIDEO_LIBS="-lvl"
5672 cat >> confdefs.h <<\EOF
5673 #define HAVE_SGI_VIDEO 1
5678 elif test $with_sgivideo != no; then
5679 echo "error: must be yes or no: --with-sgivideo=$with_sgivideo"
5685 # Try to find a program to generate random text.
5687 # Zippy is funnier than the idiocy generally spat out by `fortune',
5688 # so try to find that, by invoking Emacs and asking it where its
5689 # libexec directory is ("yow" lives in there.)
5691 # If that doesn't work, see if fortune, zippy, or yow are on $PATH,
5692 # and if so, use them.
5694 # If that doesn't work, look in /usr/games, and if it's there, use
5695 # the full pathname.
5698 # Check whether --with-zippy or --without-zippy was given.
5699 if test "${with_zippy+set}" = set; then
5700 withval="$with_zippy"
5701 with_zippy_req="$withval"; with_zippy="$withval"
5703 with_zippy_req="$withval"; with_zippy="$withval"
5707 if test "$with_zippy" = no || test "$with_zippy" = yes ; then
5712 if test -n "$with_zippy_req" ; then
5713 ac_cv_zippy_program=""
5714 case "$with_zippy_req" in
5716 echo $ac_n "checking for $with_zippy_req""... $ac_c" 1>&6
5717 echo "configure:5729: checking for $with_zippy_req" >&5
5718 if test -x "$with_zippy_req" ; then
5719 echo "$ac_t""yes" 1>&6
5721 echo "$ac_t""no" 1>&6
5727 unset ac_cv_path_zip2
5728 # Extract the first word of "$with_zippy_req", so it can be a program name with args.
5729 set dummy $with_zippy_req; ac_word=$2
5730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5731 echo "configure:5743: checking for $ac_word" >&5
5732 if eval "test \"`echo '$''{'ac_cv_path_zip2'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5737 ac_cv_path_zip2="$zip2" # Let the user override the test with a path.
5740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5741 for ac_dir in $PATH; do
5742 test -z "$ac_dir" && ac_dir=.
5743 if test -f $ac_dir/$ac_word; then
5744 ac_cv_path_zip2="$ac_dir/$ac_word"
5752 zip2="$ac_cv_path_zip2"
5753 if test -n "$zip2"; then
5754 echo "$ac_t""$zip2" 1>&6
5756 echo "$ac_t""no" 1>&6
5759 if test "$zip2" = ""; then
5764 ac_cv_zippy_program="$with_zippy"
5766 elif test -n "$ac_cv_zippy_program"; then
5767 echo "$ac_t""checking for zippy... (cached) $ac_cv_zippy_program" 1>&6
5770 if test ! -n "$ac_cv_zippy_program"; then
5772 for ac_prog in emacs
5774 # Extract the first word of "$ac_prog", so it can be a program name with args.
5775 set dummy $ac_prog; ac_word=$2
5776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5777 echo "configure:5789: checking for $ac_word" >&5
5778 if eval "test \"`echo '$''{'ac_cv_prog_emacs_exe'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5781 if test -n "$emacs_exe"; then
5782 ac_cv_prog_emacs_exe="$emacs_exe" # Let the user override the test.
5784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5785 for ac_dir in $PATH; do
5786 test -z "$ac_dir" && ac_dir=.
5787 if test -f $ac_dir/$ac_word; then
5788 ac_cv_prog_emacs_exe="$ac_prog"
5795 emacs_exe="$ac_cv_prog_emacs_exe"
5796 if test -n "$emacs_exe"; then
5797 echo "$ac_t""$emacs_exe" 1>&6
5799 echo "$ac_t""no" 1>&6
5802 test -n "$emacs_exe" && break
5805 for ac_prog in xemacs
5807 # Extract the first word of "$ac_prog", so it can be a program name with args.
5808 set dummy $ac_prog; ac_word=$2
5809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5810 echo "configure:5822: checking for $ac_word" >&5
5811 if eval "test \"`echo '$''{'ac_cv_prog_xemacs_exe'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5814 if test -n "$xemacs_exe"; then
5815 ac_cv_prog_xemacs_exe="$xemacs_exe" # Let the user override the test.
5817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5818 for ac_dir in $PATH; do
5819 test -z "$ac_dir" && ac_dir=.
5820 if test -f $ac_dir/$ac_word; then
5821 ac_cv_prog_xemacs_exe="$ac_prog"
5828 xemacs_exe="$ac_cv_prog_xemacs_exe"
5829 if test -n "$xemacs_exe"; then
5830 echo "$ac_t""$xemacs_exe" 1>&6
5832 echo "$ac_t""no" 1>&6
5835 test -n "$xemacs_exe" && break
5839 ac_cv_zippy_program=""
5840 eargs='-batch -q -nw --eval'
5842 if test -n "$emacs_exe" ; then
5843 echo $ac_n "checking for emacs yow""... $ac_c" 1>&6
5844 echo "configure:5856: checking for emacs yow" >&5
5846 # get emacs to tell us where the libexec directory is.
5848 dir=`$emacs_exe $eargs '(princ (concat exec-directory "\n"))' \
5849 2>/dev/null | tail -1`
5850 dir=`echo "$dir" | sed 's@///*@/@g;s@/$@@'`
5852 # try running libexec/yow and see if it exits without error.
5854 if test x"$dir" != x -a -x $dir/yow ; then
5855 if $dir/yow >&- 2>&- ; then
5856 ac_cv_zippy_program="$dir/yow"
5857 echo "$ac_t""$ac_cv_zippy_program" 1>&6
5859 echo "$ac_t""no" 1>&6
5864 if test -z "$ac_cv_zippy_program" ; then
5865 echo $ac_n "checking for xemacs yow""... $ac_c" 1>&6
5866 echo "configure:5878: checking for xemacs yow" >&5
5867 if test -n "$xemacs_exe" ; then
5869 # get xemacs to tell us where the libexec directory is.
5871 dir=`$xemacs_exe $eargs '(princ (concat exec-directory "\n"))' \
5872 2>/dev/null | tail -1`
5873 dir=`echo "$dir" | sed 's@///*@/@g;s@/$@@'`
5875 # try running libexec/yow and see if it exits without error.
5877 if test x"$dir" != x -a -x $dir/yow ; then
5878 if $dir/yow >&- 2>&- ; then
5879 ac_cv_zippy_program="$dir/yow"
5880 echo "$ac_t""$ac_cv_zippy_program" 1>&6
5883 # in some xemacs installations, the pathname of the yow.lines file
5884 # isn't hardcoded into the yow executable, and must be passed on
5885 # the command line. See if it's in libexec/../etc/.
5889 dir_up=`echo "$dir" | sed 's@/[^/]*$@@'`
5892 yow="yow -f $dir_up/etc/yow.lines"
5893 if $dir/$yow >&- 2>&- ; then
5894 ac_cv_zippy_program="$dir/$yow"
5895 echo "$ac_t""$ac_cv_zippy_program" 1>&6
5897 echo "$ac_t""no" 1>&6
5904 # if that didn't work, try for some other programs...
5905 if test -z "$ac_cv_zippy_program" ; then
5907 for ac_prog in fortune zippy yow
5909 # Extract the first word of "$ac_prog", so it can be a program name with args.
5910 set dummy $ac_prog; ac_word=$2
5911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5912 echo "configure:5924: checking for $ac_word" >&5
5913 if eval "test \"`echo '$''{'ac_cv_prog_fortune'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5916 if test -n "$fortune"; then
5917 ac_cv_prog_fortune="$fortune" # Let the user override the test.
5919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5920 for ac_dir in $PATH; do
5921 test -z "$ac_dir" && ac_dir=.
5922 if test -f $ac_dir/$ac_word; then
5923 ac_cv_prog_fortune="$ac_prog"
5930 fortune="$ac_cv_prog_fortune"
5931 if test -n "$fortune"; then
5932 echo "$ac_t""$fortune" 1>&6
5934 echo "$ac_t""no" 1>&6
5937 test -n "$fortune" && break
5940 # if that didn't work, try for those programs in /usr/games...
5941 if test -z "$fortune" ; then
5942 for ac_prog in fortune zippy yow
5944 # Extract the first word of "$ac_prog", so it can be a program name with args.
5945 set dummy $ac_prog; ac_word=$2
5946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5947 echo "configure:5959: checking for $ac_word" >&5
5948 if eval "test \"`echo '$''{'ac_cv_path_fortune'+set}'`\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5953 ac_cv_path_fortune="$fortune" # Let the user override the test with a path.
5956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5957 for ac_dir in /usr/games:/usr/local/games$ac_dummy; do
5958 test -z "$ac_dir" && ac_dir=.
5959 if test -f $ac_dir/$ac_word; then
5960 ac_cv_path_fortune="$ac_dir/$ac_word"
5968 fortune="$ac_cv_path_fortune"
5969 if test -n "$fortune"; then
5970 echo "$ac_t""$fortune" 1>&6
5972 echo "$ac_t""no" 1>&6
5975 test -n "$fortune" && break
5977 test -n "$fortune" || fortune="fortune"
5983 if test -z "$ac_cv_zippy_program" ; then
5984 ac_cv_zippy_program=fortune
5987 cat >> confdefs.h <<EOF
5988 #define ZIPPY_PROGRAM "$ac_cv_zippy_program"
5995 # Allow locking to be disabled at compile-time.
5998 with_kerberos_req=unspecified
6000 with_shadow_req=unspecified
6003 # Check whether --enable-locking or --disable-locking was given.
6004 if test "${enable_locking+set}" = set; then
6005 enableval="$enable_locking"
6006 enable_locking="$enableval"
6011 if test $enable_locking = yes; then
6013 elif test $enable_locking = no; then
6014 cat >> confdefs.h <<\EOF
6015 #define NO_LOCKING 1
6019 echo "error: must be yes or no: --enable-locking=$enable_locking"
6025 # Check to see if we can lock Virtual-Terminal switching, but allow that
6026 # to be disabled at compile-time.
6029 # Check whether --enable-vt-locking or --disable-vt-locking was given.
6030 if test "${enable_vt_locking+set}" = set; then
6031 enableval="$enable_vt_locking"
6032 enable_vt_locking="$enableval"
6034 enable_vt_locking=yes
6037 if test $enable_vt_locking = yes; then
6039 echo $ac_n "checking for VT_LOCKSWITCH ioctl""... $ac_c" 1>&6
6040 echo "configure:6052: checking for VT_LOCKSWITCH ioctl" >&5
6041 if eval "test \"`echo '$''{'ac_cv_vt_lockswitch'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6057 "configure"
6046 #include "confdefs.h"
6048 #include <sys/ioctl.h>
6051 int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;
6054 if { (eval echo configure:6066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6056 ac_cv_vt_lockswitch=yes
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6061 ac_cv_vt_lockswitch=no
6066 ac_vt_lockswitch=$ac_cv_vt_lockswitch
6067 echo "$ac_t""$ac_vt_lockswitch" 1>&6
6069 elif test $enable_locking = no; then
6072 echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
6076 if test $ac_vt_lockswitch = yes; then
6077 cat >> confdefs.h <<\EOF
6078 #define HAVE_VT_LOCKSWITCH 1
6081 # the VT_LOCKSWITCH ioctl can only be used when running as root.
6087 if test $enable_locking = yes; then
6089 # Check for Kerberos.
6091 # Check whether --with-kerberos or --without-kerberos was given.
6092 if test "${with_kerberos+set}" = set; then
6093 withval="$with_kerberos"
6094 with_kerberos="$withval"; with_kerberos_req="$withval"
6101 case "$with_kerberos" in
6106 echo $ac_n "checking for Kerberos headers""... $ac_c" 1>&6
6107 echo "configure:6119: checking for Kerberos headers" >&5
6108 d=$with_kerberos/include
6110 X_CFLAGS="-I$d $X_CFLAGS"
6111 echo "$ac_t""$d" 1>&6
6113 echo "$ac_t""not found ($d: no such directory)" 1>&6
6116 echo $ac_n "checking for Kerberos libs""... $ac_c" 1>&6
6117 echo "configure:6129: checking for Kerberos libs" >&5
6118 d=$with_kerberos/lib
6120 X_LIBS="-L$d $X_LIBS"
6121 echo "$ac_t""$d" 1>&6
6123 echo "$ac_t""not found ($d: no such directory)" 1>&6
6126 # replace the directory string with "yes".
6127 with_kerberos_req="yes"
6128 with_kerberos=$with_kerberos_req
6133 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
6134 echo " If it is a directory, then \`DIR/include' will be added to"
6135 echo " the -I list, and \`DIR/lib' will be added to the -L list."
6140 # why is this necessary?
6141 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
6142 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
6146 if test $with_kerberos = yes; then
6147 echo $ac_n "checking for Kerberos""... $ac_c" 1>&6
6148 echo "configure:6160: checking for Kerberos" >&5
6149 if eval "test \"`echo '$''{'ac_cv_kerberos'+set}'`\" = set"; then
6150 echo $ac_n "(cached) $ac_c" 1>&6
6153 ac_save_CPPFLAGS="$CPPFLAGS"
6154 if test \! -z "$includedir" ; then
6155 CPPFLAGS="$CPPFLAGS -I$includedir"
6157 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6171 "configure"
6160 #include "confdefs.h"
6166 if { (eval echo configure:6178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6170 echo "configure: failed program was:" >&5
6171 cat conftest.$ac_ext >&5
6176 CPPFLAGS="$ac_save_CPPFLAGS"
6179 echo "$ac_t""$ac_cv_kerberos" 1>&6
6180 if test $ac_cv_kerberos = yes ; then
6182 cat >> confdefs.h <<\EOF
6183 #define HAVE_KERBEROS 1
6187 # from Tim Showalter <tjs+@andrew.cmu.edu>
6188 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes"
6189 echo $ac_n "checking for res_search""... $ac_c" 1>&6
6190 echo "configure:6202: checking for res_search" >&5
6191 if eval "test \"`echo '$''{'ac_cv_func_res_search'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6194 cat > conftest.$ac_ext <<EOF
6195 #line 6207 "configure"
6196 #include "confdefs.h"
6197 /* System header to define __stub macros and hopefully few prototypes,
6198 which can conflict with char res_search(); below. */
6200 /* Override any gcc2 internal prototype to avoid an error. */
6201 /* We use char because int might match the return type of a gcc2
6202 builtin and then its argument prototype would still apply. */
6207 /* The GNU C library defines this for functions which it implements
6208 to always fail with ENOSYS. Some functions are actually named
6209 something starting with __ and the normal name is an alias. */
6210 #if defined (__stub_res_search) || defined (__stub___res_search)
6218 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6220 eval "ac_cv_func_res_search=yes"
6222 echo "configure: failed program was:" >&5
6223 cat conftest.$ac_ext >&5
6225 eval "ac_cv_func_res_search=no"
6230 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
6231 echo "$ac_t""yes" 1>&6
6234 echo "$ac_t""no" 1>&6
6235 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
6236 echo "configure:6248: checking for res_search in -lresolv" >&5
6237 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
6238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6239 echo $ac_n "(cached) $ac_c" 1>&6
6241 ac_save_LIBS="$LIBS"
6242 LIBS="-lresolv $LIBS"
6243 cat > conftest.$ac_ext <<EOF
6244 #line 6256 "configure"
6245 #include "confdefs.h"
6246 /* Override any gcc2 internal prototype to avoid an error. */
6247 /* We use char because int might match the return type of a gcc2
6248 builtin and then its argument prototype would still apply. */
6255 if { (eval echo configure:6267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6257 eval "ac_cv_lib_$ac_lib_var=yes"
6259 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6262 eval "ac_cv_lib_$ac_lib_var=no"
6265 LIBS="$ac_save_LIBS"
6268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6269 echo "$ac_t""yes" 1>&6
6270 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
6272 echo "$ac_t""no" 1>&6
6273 echo "configure: warning: Can't find DNS resolver libraries needed for Kerberos" 1>&2
6281 elif test $with_kerberos != no; then
6282 echo "error: must be yes or no: --with-kerberos=$with_kerberos"
6286 # Next, check for the nine billion variants of shadow passwords...
6288 passwd_cruft_done=no
6289 # Check whether --with-shadow or --without-shadow was given.
6290 if test "${with_shadow+set}" = set; then
6291 withval="$with_shadow"
6292 with_shadow="$withval"; with_shadow_req="$withval"
6299 case "$with_shadow" in
6304 echo $ac_n "checking for shadow password headers""... $ac_c" 1>&6
6305 echo "configure:6317: checking for shadow password headers" >&5
6306 d=$with_shadow/include
6308 X_CFLAGS="-I$d $X_CFLAGS"
6309 echo "$ac_t""$d" 1>&6
6311 echo "$ac_t""not found ($d: no such directory)" 1>&6
6314 echo $ac_n "checking for shadow password libs""... $ac_c" 1>&6
6315 echo "configure:6327: checking for shadow password libs" >&5
6318 X_LIBS="-L$d $X_LIBS"
6319 echo "$ac_t""$d" 1>&6
6321 echo "$ac_t""not found ($d: no such directory)" 1>&6
6324 # replace the directory string with "yes".
6325 with_shadow_req="yes"
6326 with_shadow=$with_shadow_req
6331 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
6332 echo " If it is a directory, then \`DIR/include' will be added to"
6333 echo " the -I list, and \`DIR/lib' will be added to the -L list."
6338 # why is this necessary?
6339 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
6340 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
6344 if test $with_shadow = no; then
6345 passwd_cruft_done=yes
6346 elif test $with_shadow != yes; then
6347 echo "error: must be yes or no: --with-shadow=$with_shadow"
6352 # Sun's "adjunct" passwords.
6354 if test $passwd_cruft_done = no ; then
6355 echo $ac_n "checking for Sun-style shadow passwords""... $ac_c" 1>&6
6356 echo "configure:6368: checking for Sun-style shadow passwords" >&5
6357 if eval "test \"`echo '$''{'ac_cv_sun_adjunct'+set}'`\" = set"; then
6358 echo $ac_n "(cached) $ac_c" 1>&6
6361 ac_save_CPPFLAGS="$CPPFLAGS"
6362 if test \! -z "$includedir" ; then
6363 CPPFLAGS="$CPPFLAGS -I$includedir"
6365 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6379 "configure"
6368 #include "confdefs.h"
6371 #include <sys/types.h>
6372 #include <sys/label.h>
6373 #include <sys/audit.h>
6376 struct passwd_adjunct *p = getpwanam("nobody");
6377 const char *pw = p->pwa_passwd;
6380 if { (eval echo configure:6392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6382 ac_cv_sun_adjunct=yes
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 ac_cv_sun_adjunct=no
6390 CPPFLAGS="$ac_save_CPPFLAGS"
6393 echo "$ac_t""$ac_cv_sun_adjunct" 1>&6
6394 if test $ac_cv_sun_adjunct = yes; then
6397 passwd_cruft_done=yes
6398 cat >> confdefs.h <<\EOF
6399 #define HAVE_ADJUNCT_PASSWD 1
6405 # DEC and SCO so-called "enhanced" security.
6407 if test $passwd_cruft_done = no ; then
6408 echo $ac_n "checking for DEC-style shadow passwords""... $ac_c" 1>&6
6409 echo "configure:6421: checking for DEC-style shadow passwords" >&5
6410 if eval "test \"`echo '$''{'ac_cv_enhanced_passwd'+set}'`\" = set"; then
6411 echo $ac_n "(cached) $ac_c" 1>&6
6414 ac_save_CPPFLAGS="$CPPFLAGS"
6415 if test \! -z "$includedir" ; then
6416 CPPFLAGS="$CPPFLAGS -I$includedir"
6418 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6432 "configure"
6421 #include "confdefs.h"
6424 #include <sys/types.h>
6426 #include <sys/security.h>
6429 struct pr_passwd *p;
6431 set_auth_parameters(0, 0);
6432 check_auth_parameters();
6433 p = getprpwnam("nobody");
6434 pw = p->ufld.fd_encrypt;
6437 if { (eval echo configure:6449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6439 ac_cv_enhanced_passwd=yes
6441 echo "configure: failed program was:" >&5
6442 cat conftest.$ac_ext >&5
6444 ac_cv_enhanced_passwd=no
6447 CPPFLAGS="$ac_save_CPPFLAGS"
6450 echo "$ac_t""$ac_cv_enhanced_passwd" 1>&6
6451 if test $ac_cv_enhanced_passwd = yes; then
6454 passwd_cruft_done=yes
6455 cat >> confdefs.h <<\EOF
6456 #define HAVE_ENHANCED_PASSWD 1
6460 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
6461 # (I'm told it needs -lcurses too, but I don't understand why.)
6462 echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
6463 echo "configure:6475: checking for getprpwnam in -lprot" >&5
6464 ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
6465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6466 echo $ac_n "(cached) $ac_c" 1>&6
6468 ac_save_LIBS="$LIBS"
6469 LIBS="-lprot -lx $LIBS"
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6483 "configure"
6472 #include "confdefs.h"
6473 /* Override any gcc2 internal prototype to avoid an error. */
6474 /* We use char because int might match the return type of a gcc2
6475 builtin and then its argument prototype would still apply. */
6482 if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6484 eval "ac_cv_lib_$ac_lib_var=yes"
6486 echo "configure: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6489 eval "ac_cv_lib_$ac_lib_var=no"
6492 LIBS="$ac_save_LIBS"
6495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6496 echo "$ac_t""yes" 1>&6
6497 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
6499 echo "$ac_t""no" 1>&6
6500 # On DEC, getprpwnam() is in -lsecurity
6501 echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6502 echo "configure:6514: checking for getprpwnam in -lsecurity" >&5
6503 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6507 ac_save_LIBS="$LIBS"
6508 LIBS="-lsecurity $LIBS"
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6522 "configure"
6511 #include "confdefs.h"
6512 /* Override any gcc2 internal prototype to avoid an error. */
6513 /* We use char because int might match the return type of a gcc2
6514 builtin and then its argument prototype would still apply. */
6521 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6523 eval "ac_cv_lib_$ac_lib_var=yes"
6525 echo "configure: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6528 eval "ac_cv_lib_$ac_lib_var=no"
6531 LIBS="$ac_save_LIBS"
6534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6535 echo "$ac_t""yes" 1>&6
6536 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
6538 echo "$ac_t""no" 1>&6
6546 # HP's entry in the "Not Invented Here" Sweepstakes.
6548 if test $passwd_cruft_done = no ; then
6549 echo $ac_n "checking for HP-style shadow passwords""... $ac_c" 1>&6
6550 echo "configure:6562: checking for HP-style shadow passwords" >&5
6551 if eval "test \"`echo '$''{'ac_cv_hpux_passwd'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6555 ac_save_CPPFLAGS="$CPPFLAGS"
6556 if test \! -z "$includedir" ; then
6557 CPPFLAGS="$CPPFLAGS -I$includedir"
6559 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6573 "configure"
6562 #include "confdefs.h"
6565 #include <sys/types.h>
6567 #include <hpsecurity.h>
6570 struct s_passwd *p = getspwnam("nobody");
6571 const char *pw = p->pw_passwd;
6574 if { (eval echo configure:6586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6576 ac_cv_hpux_passwd=yes
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6581 ac_cv_hpux_passwd=no
6584 CPPFLAGS="$ac_save_CPPFLAGS"
6587 echo "$ac_t""$ac_cv_hpux_passwd" 1>&6
6588 if test $ac_cv_hpux_passwd = yes; then
6591 passwd_cruft_done=yes
6592 cat >> confdefs.h <<\EOF
6593 #define HAVE_HPUX_PASSWD 1
6597 # on HPUX, bigcrypt is in -lsec
6598 echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6599 echo "configure:6611: checking for bigcrypt in -lsec" >&5
6600 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6602 echo $ac_n "(cached) $ac_c" 1>&6
6604 ac_save_LIBS="$LIBS"
6606 cat > conftest.$ac_ext <<EOF
6607 #line 6619 "configure"
6608 #include "confdefs.h"
6609 /* Override any gcc2 internal prototype to avoid an error. */
6610 /* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6618 if { (eval echo configure:6630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6620 eval "ac_cv_lib_$ac_lib_var=yes"
6622 echo "configure: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6625 eval "ac_cv_lib_$ac_lib_var=no"
6628 LIBS="$ac_save_LIBS"
6631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6632 echo "$ac_t""yes" 1>&6
6633 PASSWD_LIBS="$PASSWD_LIBS -lsec"
6635 echo "$ac_t""no" 1>&6
6641 # Traditional (ha!) shadow passwords.
6643 if test $passwd_cruft_done = no ; then
6644 echo $ac_n "checking for generic shadow passwords""... $ac_c" 1>&6
6645 echo "configure:6657: checking for generic shadow passwords" >&5
6646 if eval "test \"`echo '$''{'ac_cv_shadow'+set}'`\" = set"; then
6647 echo $ac_n "(cached) $ac_c" 1>&6
6650 ac_save_CPPFLAGS="$CPPFLAGS"
6651 if test \! -z "$includedir" ; then
6652 CPPFLAGS="$CPPFLAGS -I$includedir"
6654 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6668 "configure"
6657 #include "confdefs.h"
6660 #include <sys/types.h>
6664 struct spwd *p = getspnam("nobody");
6665 const char *pw = p->sp_pwdp;
6668 if { (eval echo configure:6680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6678 CPPFLAGS="$ac_save_CPPFLAGS"
6681 echo "$ac_t""$ac_cv_shadow" 1>&6
6682 if test $ac_cv_shadow = yes; then
6685 passwd_cruft_done=yes
6686 cat >> confdefs.h <<\EOF
6687 #define HAVE_SHADOW_PASSWD 1
6691 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
6693 echo $ac_n "checking for getspnam in -lc""... $ac_c" 1>&6
6694 echo "configure:6706: checking for getspnam in -lc" >&5
6695 ac_lib_var=`echo c'_'getspnam | sed 'y%./+-%__p_%'`
6696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6699 ac_save_LIBS="$LIBS"
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6714 "configure"
6703 #include "confdefs.h"
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */
6713 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6715 eval "ac_cv_lib_$ac_lib_var=yes"
6717 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6720 eval "ac_cv_lib_$ac_lib_var=no"
6723 LIBS="$ac_save_LIBS"
6726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6730 echo "$ac_t""no" 1>&6
6733 if test $have_getspnam = no ; then
6734 echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6735 echo "configure:6747: checking for getspnam in -lgen" >&5
6736 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6738 echo $ac_n "(cached) $ac_c" 1>&6
6740 ac_save_LIBS="$LIBS"
6742 cat > conftest.$ac_ext <<EOF
6743 #line 6755 "configure"
6744 #include "confdefs.h"
6745 /* Override any gcc2 internal prototype to avoid an error. */
6746 /* We use char because int might match the return type of a gcc2
6747 builtin and then its argument prototype would still apply. */
6754 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6756 eval "ac_cv_lib_$ac_lib_var=yes"
6758 echo "configure: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6761 eval "ac_cv_lib_$ac_lib_var=no"
6764 LIBS="$ac_save_LIBS"
6767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6768 echo "$ac_t""yes" 1>&6
6769 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
6771 echo "$ac_t""no" 1>&6
6778 # On FreeBSD, getpwnam() and friends work just like on non-shadow-password
6779 # systems -- except you only get stuff in the pw_passwd field if the running
6780 # program is setuid. So, guess that we've got this lossage to contend with
6781 # if /etc/master.passwd exists, and default to a setuid installation.
6783 if test $passwd_cruft_done = no ; then
6784 echo $ac_n "checking for FreeBSD-style shadow passwords""... $ac_c" 1>&6
6785 echo "configure:6797: checking for FreeBSD-style shadow passwords" >&5
6786 if eval "test \"`echo '$''{'ac_cv_master_passwd'+set}'`\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6789 if test -f /etc/master.passwd ; then
6790 ac_cv_master_passwd=yes
6792 ac_cv_master_passwd=no
6796 echo "$ac_t""$ac_cv_master_passwd" 1>&6
6797 if test $ac_cv_master_passwd = yes; then
6799 passwd_cruft_done=yes
6803 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
6805 echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
6806 echo "configure:6818: checking for crypt in -lc" >&5
6807 ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
6808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6811 ac_save_LIBS="$LIBS"
6813 cat > conftest.$ac_ext <<EOF
6814 #line 6826 "configure"
6815 #include "confdefs.h"
6816 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6825 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6827 eval "ac_cv_lib_$ac_lib_var=yes"
6829 echo "configure: failed program was:" >&5
6830 cat conftest.$ac_ext >&5
6832 eval "ac_cv_lib_$ac_lib_var=no"
6835 LIBS="$ac_save_LIBS"
6838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6839 echo "$ac_t""yes" 1>&6
6842 echo "$ac_t""no" 1>&6
6845 if test $have_crypt = no ; then
6846 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6847 echo "configure:6859: checking for crypt in -lcrypt" >&5
6848 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6852 ac_save_LIBS="$LIBS"
6853 LIBS="-lcrypt $LIBS"
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6867 "configure"
6856 #include "confdefs.h"
6857 /* Override any gcc2 internal prototype to avoid an error. */
6858 /* We use char because int might match the return type of a gcc2
6859 builtin and then its argument prototype would still apply. */
6866 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6868 eval "ac_cv_lib_$ac_lib_var=yes"
6870 echo "configure: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6873 eval "ac_cv_lib_$ac_lib_var=no"
6876 LIBS="$ac_save_LIBS"
6879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6880 echo "$ac_t""yes" 1>&6
6881 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
6883 echo "$ac_t""no" 1>&6
6889 # Most of the above shadow mechanisms will have set need_setuid to yes,
6890 # if they were found. But, on some systems, we need setuid even when
6891 # using plain old vanilla passwords.
6893 if test $need_setuid = no ; then
6895 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
6905 if test \! -z "$includedir" ; then
6906 INCLUDES="-I$includedir"
6909 if test \! -z "$libdir" ; then
6910 LDFLAGS="$LDFLAGS -L$libdir"
6914 ##### should have options to override the DEPEND crap, I guess...
6920 # Done testing things -- now substitute in some stuff for the Makefiles.
6922 if test $have_motif = yes; then
6923 cat >> confdefs.h <<\EOF
6924 #define HAVE_MOTIF 1
6927 DIALOG_SRCS='$(MOTIF_SRCS)'
6928 DIALOG_OBJS='$(MOTIF_OBJS)'
6929 elif test $have_athena = yes; then
6930 cat >> confdefs.h <<\EOF
6931 #define HAVE_ATHENA 1
6934 DIALOG_SRCS='$(ATHENA_SRCS)'
6935 DIALOG_OBJS='$(ATHENA_OBJS)'
6941 if test $have_kerberos = yes; then
6942 PASSWD_SRCS='$(KERBEROS_SRCS)'
6943 PASSWD_OBJS='$(KERBEROS_OBJS)'
6945 PASSWD_SRCS='$(PWENT_SRCS)'
6946 PASSWD_OBJS='$(PWENT_OBJS)'
6949 if test $enable_locking = yes; then
6950 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
6951 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
6957 if test $need_setuid = yes; then
6959 INSTALL_SETUID='$(INSTALL) $(SUID_FLAGS)'
6962 INSTALL_SETUID='$(INSTALL_PROGRAM)'
6966 if test $have_gl = yes; then
6967 GL_EXES='$(GL_EXES)'
6968 GL_KLUDGE_1=${tab}${tab}${tab}${tab}${tab}${tab}${tab}${tab}${tab}' \'
6971 GL_KLUDGE_1=${tab}${tab}${tab}${tab}${tab}${tab}${tab}${tab}${tab}'\n'
6972 GL_KLUDGE_2='!'${tab}
7006 # Print some warnings before emitting the Makefiles.
7008 warn_prefix_1=" Warning:"
7009 warn_prefix_2=" Note:"
7010 warn_prefix="$warn_prefix_1"
7013 warnsep=' #################################################################'
7016 if test $warning = no ; then
7017 echo '' ; echo "$warnsep" ; echo ''
7024 if test $warning = long ; then echo '' ; fi
7026 echo "$warn_prefix $@"
7033 if test $was != no ; then echo '' ; fi
7034 echo "$warn_prefix $@"
7043 warn_prefix="$warn_prefix_2"
7045 warn_prefix="$warn_prefix_1"
7049 warn_prefix="$warn_prefix_2"
7051 warn_prefix="$warn_prefix_1"
7055 if test $with_sgi_req = yes -a $have_sgi = no ; then
7056 warn 'The SGI saver extension was requested, but was not found.'
7059 if test $with_mit_req = yes -a $have_mit = no ; then
7060 warn 'The MIT saver extension was requested, but was not found.'
7063 if test $with_xidle_req = yes -a $have_xidle = no ; then
7064 warn 'The XIdle extension was requested, but was not found.'
7067 if test $with_xshm_req = yes -a $have_xshm = no ; then
7068 warn 'The XSHM extension was requested, but was not found.'
7071 if test $with_sgivc_req = yes -a $have_sgivc = no ; then
7072 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
7075 if test $with_dpms_req = yes -a $have_dpms = no ; then
7076 warn 'The DPMS extension was requested, but was not found.'
7079 if test $have_motif = no -a $have_athena = no ; then
7080 warnL "Neither Motif nor Athena widgets seem to be available;"
7081 warn2 "one or the other is required."
7082 proselytize_motif=no
7084 elif test $with_motif_req = yes -a $have_motif = no ; then
7085 warnL "Use of Motif was requested, but it wasn't found;"
7086 warn2 "Athena will be used instead."
7088 elif test $with_athena_req = yes -a $have_athena = no ; then
7089 warnL "Use of Athena was requested, but it wasn't found;"
7090 warn2 "Motif will be used instead."
7093 if test $have_motif = yes -a $have_lesstif = yes ; then
7095 preferred_lesstif=0.86
7097 if test $lesstif_version = unknown; then
7098 warnL "Unable to determine the LessTif version number!"
7099 warn2 "Make sure you are using version $preferred_lesstif or newer."
7100 warn2 "See <http://www.lesstif.org/>."
7102 elif test \! $lesstif_version -gt 82; then
7103 warnL "LessTif version $lesstif_version_string is being used."
7104 warn2 "LessTif versions 0.82 and earlier are too buggy to"
7105 warn2 "use with XScreenSaver; it is strongly recommended"
7106 warn2 "that you upgrade to at least version $preferred_lesstif!"
7107 warn2 "See <http://www.lesstif.org/>."
7111 if test $proselytize_motif = yes ; then
7112 warnL "Athena widgets are being used instead of Motif."
7113 warn2 "XScreenSaver looks much better with Motif, and has"
7114 warn2 "a few extra features as well. Wouldn't you rather"
7115 warn2 "be using Motif? It is shipped by every commercial"
7116 warn2 "Unix vendor; and there is a free implementation"
7117 warn2 "available as well: see <http://www.lesstif.org/>."
7121 if test $have_gl = yes -a $ac_have_mesa_gl = yes ; then
7122 preferred_mesagl=2.7
7124 if test $ac_mesagl_version = unknown; then
7125 warnL "Unable to determine the MesaGL version number!"
7126 warn2 "Make sure you are using version $preferred_mesagl or newer."
7128 elif test \! $ac_mesagl_version -gt 2006; then
7129 warnL "MesaGL version $ac_mesagl_version_string is being used."
7130 warn2 "MesaGL versions 2.6 and earlier have a security bug."
7131 warn2 "It is strongly recommended that you upgrade to at"
7132 warn2 "least version $preferred_mesagl."
7137 if test $have_xpm = no ; then
7138 if test $with_xpm_req = yes ; then
7139 warnL 'Use of XPM was requested, but it was not found.'
7140 elif test $with_xpm_req = no ; then
7141 noteL 'The XPM library is not being used.'
7143 noteL 'The XPM library was not found.'
7147 warn2 'Some of the demos will not be as colorful as they'
7148 warn2 'could be. You might want to consider installing XPM'
7149 warn2 'and re-running configure. (Remember to delete the'
7150 warn2 'config.cache file first.) You can find XPM at most'
7151 warn2 'X11 archive sites, such as <http://sunsite.unc.edu/>.'
7154 if test $have_gl = no ; then
7155 if test $with_gl_req = yes ; then
7156 warnL 'Use of GL was requested, but it was not found.'
7157 elif test $with_gl_req = no ; then
7158 noteL 'The OpenGL 3D library is not being used.'
7160 noteL 'The OpenGL 3D library was not found.'
7164 warn2 'Those demos which use 3D will not be built or installed.'
7165 warn2 'You might want to consider installing OpenGL and'
7166 warn2 're-running configure. (Remember to delete the'
7167 warn2 "config.cache file first.) If your vendor doesn't ship"
7168 warn2 'their own implementation of OpenGL, you can get a free'
7169 warn2 'version at <http://www.ssec.wisc.edu/~brianp/Mesa.html>.'
7170 warn2 'For general OpenGL info, see <http://www.opengl.org/>.'
7174 if test $with_readdisplay_req = yes -a $have_readdisplay = no ; then
7175 warn 'Use of XReadDisplay was requested, but it was not found.'
7178 if test $with_sgivideo_req = yes -a $have_sgivideo = no ; then
7179 warn 'Use of the Iris Video Library was requested, but it was not found.'
7182 if test $with_kerberos_req = yes -a $have_kerberos = no ; then
7183 warn 'Use of Kerberos was requested, but it was not found.'
7186 if test $with_shadow_req = yes -a $have_shadow = no ; then
7187 warn 'Use of shadow passwords was requested, but they were not found.'
7190 if test -n "$with_zippy_req"; then
7191 if test "$with_zippy_req" != "$ac_cv_zippy_program" ; then
7192 warnL "$with_zippy_req was requested as the Zippy program,"
7193 warn2 "but was not found. The default will be used instead."
7197 if test $warning != no; then
7198 echo '' ; echo "$warnsep" ; echo ''
7203 cat > confcache <<\EOF
7204 # This file is a shell script that caches the results of configure
7205 # tests run on this system so they can be shared between configure
7206 # scripts and configure runs. It is not useful on other systems.
7207 # If it contains results you don't want to keep, you may remove or edit it.
7209 # By default, configure uses ./config.cache as the cache file,
7210 # creating it if it does not exist already. You can give configure
7211 # the --cache-file=FILE option to use a different cache file; that is
7212 # what configure does when it calls configure scripts in
7213 # subdirectories, so they share the cache.
7214 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7215 # config.status only pays attention to the cache file if you give it the
7216 # --recheck option to rerun configure.
7219 # The following way of writing the cache mishandles newlines in values,
7220 # but we know of no workaround that is simple, portable, and efficient.
7221 # So, don't put newlines in cache variables' values.
7222 # Ultrix sh set writes to stderr and can't be redirected directly,
7223 # and sets the high bit in the cache file unless we assign to the vars.
7225 case `(ac_space=' '; set) 2>&1` in
7227 # `set' does not quote correctly, so add quotes (double-quote substitution
7228 # turns \\\\ into \\, and sed turns \\ into \).
7230 -e "s/'/'\\\\''/g" \
7231 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7234 # `set' quotes correctly as required by POSIX, so do not add quotes.
7235 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7238 if cmp -s $cache_file confcache; then
7241 if test -w $cache_file; then
7242 echo "updating cache $cache_file"
7243 cat confcache > $cache_file
7245 echo "not updating unwritable cache $cache_file"
7250 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7252 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7253 # Let make expand exec_prefix.
7254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7256 # Any assignment to VPATH causes Sun make to only execute
7257 # the first set of double-colon rules, so remove it if not needed.
7258 # If there is a colon in the path, we need to keep it.
7259 if test "x$srcdir" = x.; then
7260 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7263 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7265 DEFS=-DHAVE_CONFIG_H
7267 # Without the "./", some shells look in PATH for config.status.
7268 : ${CONFIG_STATUS=./config.status}
7270 echo creating $CONFIG_STATUS
7271 rm -f $CONFIG_STATUS
7272 cat > $CONFIG_STATUS <<EOF
7274 # Generated automatically by configure.
7275 # Run this file to recreate the current configuration.
7276 # This directory was configured as follows,
7277 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7279 # $0 $ac_configure_args
7281 # Compiler output produced by configure, useful for debugging
7282 # configure, is in ./config.log if it exists.
7284 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7287 case "\$ac_option" in
7288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7289 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7290 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7291 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7292 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7294 -help | --help | --hel | --he | --h)
7295 echo "\$ac_cs_usage"; exit 0 ;;
7296 *) echo "\$ac_cs_usage"; exit 1 ;;
7300 ac_given_srcdir=$srcdir
7301 ac_given_INSTALL="$INSTALL"
7303 trap 'rm -fr `echo "Makefile
7308 driver/XScreenSaver.ad config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7310 cat >> $CONFIG_STATUS <<EOF
7312 # Protect against being on the right side of a sed subst in config.status.
7313 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7314 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7317 s%@CFLAGS@%$CFLAGS%g
7318 s%@CPPFLAGS@%$CPPFLAGS%g
7319 s%@CXXFLAGS@%$CXXFLAGS%g
7321 s%@LDFLAGS@%$LDFLAGS%g
7323 s%@exec_prefix@%$exec_prefix%g
7324 s%@prefix@%$prefix%g
7325 s%@program_transform_name@%$program_transform_name%g
7326 s%@bindir@%$bindir%g
7327 s%@sbindir@%$sbindir%g
7328 s%@libexecdir@%$libexecdir%g
7329 s%@datadir@%$datadir%g
7330 s%@sysconfdir@%$sysconfdir%g
7331 s%@sharedstatedir@%$sharedstatedir%g
7332 s%@localstatedir@%$localstatedir%g
7333 s%@libdir@%$libdir%g
7334 s%@includedir@%$includedir%g
7335 s%@oldincludedir@%$oldincludedir%g
7336 s%@infodir@%$infodir%g
7337 s%@mandir@%$mandir%g
7339 s%@host_alias@%$host_alias%g
7340 s%@host_cpu@%$host_cpu%g
7341 s%@host_vendor@%$host_vendor%g
7342 s%@host_os@%$host_os%g
7345 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7346 s%@INSTALL_DATA@%$INSTALL_DATA%g
7347 s%@SET_MAKE@%$SET_MAKE%g
7348 s%@X_CFLAGS@%$X_CFLAGS%g
7349 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7350 s%@X_LIBS@%$X_LIBS%g
7351 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7353 s%@emacs_exe@%$emacs_exe%g
7354 s%@xemacs_exe@%$xemacs_exe%g
7355 s%@fortune@%$fortune%g
7356 s%@INCLUDES@%$INCLUDES%g
7357 s%@SAVER_LIBS@%$SAVER_LIBS%g
7358 s%@HACK_LIBS@%$HACK_LIBS%g
7359 s%@XPM_LIBS@%$XPM_LIBS%g
7360 s%@GL_LIBS@%$GL_LIBS%g
7361 s%@PASSWD_LIBS@%$PASSWD_LIBS%g
7362 s%@INSTALL_SETUID@%$INSTALL_SETUID%g
7363 s%@INSTALL_DIRS@%$INSTALL_DIRS%g
7364 s%@NEED_SETUID@%$NEED_SETUID%g
7365 s%@SGI_VIDEO_OBJS@%$SGI_VIDEO_OBJS%g
7366 s%@SGI_VIDEO_LIBS@%$SGI_VIDEO_LIBS%g
7367 s%@DIALOG_SRCS@%$DIALOG_SRCS%g
7368 s%@DIALOG_OBJS@%$DIALOG_OBJS%g
7369 s%@PASSWD_SRCS@%$PASSWD_SRCS%g
7370 s%@PASSWD_OBJS@%$PASSWD_OBJS%g
7371 s%@XMU_SRCS@%$XMU_SRCS%g
7372 s%@XMU_OBJS@%$XMU_OBJS%g
7373 s%@LOCK_SRCS@%$LOCK_SRCS%g
7374 s%@LOCK_OBJS@%$LOCK_OBJS%g
7375 s%@GL_EXES@%$GL_EXES%g
7376 s%@GL_KLUDGE_1@%$GL_KLUDGE_1%g
7377 s%@GL_KLUDGE_2@%$GL_KLUDGE_2%g
7378 s%@HACKDIR@%$HACKDIR%g
7379 s%@APPDEFAULTS@%$APPDEFAULTS%g
7380 s%@DEPEND@%$DEPEND%g
7381 s%@DEPEND_FLAGS@%$DEPEND_FLAGS%g
7382 s%@DEPEND_DEFINES@%$DEPEND_DEFINES%g
7387 cat >> $CONFIG_STATUS <<\EOF
7389 # Split the substitutions into bite-sized pieces for seds with
7390 # small command number limits, like on Digital OSF/1 and HP-UX.
7391 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7392 ac_file=1 # Number of current file.
7393 ac_beg=1 # First line for current file.
7394 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7397 while $ac_more_lines; do
7398 if test $ac_beg -gt 1; then
7399 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7401 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7403 if test ! -s conftest.s$ac_file; then
7405 rm -f conftest.s$ac_file
7407 if test -z "$ac_sed_cmds"; then
7408 ac_sed_cmds="sed -f conftest.s$ac_file"
7410 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7412 ac_file=`expr $ac_file + 1`
7414 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7417 if test -z "$ac_sed_cmds"; then
7422 cat >> $CONFIG_STATUS <<EOF
7424 CONFIG_FILES=\${CONFIG_FILES-"Makefile
7429 driver/XScreenSaver.ad"}
7431 cat >> $CONFIG_STATUS <<\EOF
7432 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7433 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7435 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7436 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7437 *) ac_file_in="${ac_file}.in" ;;
7440 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7442 # Remove last slash and all that follows it. Not all systems have dirname.
7443 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7444 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7445 # The file is in a subdirectory.
7446 test ! -d "$ac_dir" && mkdir "$ac_dir"
7447 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7448 # A "../" for each directory in $ac_dir_suffix.
7449 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7451 ac_dir_suffix= ac_dots=
7454 case "$ac_given_srcdir" in
7456 if test -z "$ac_dots"; then top_srcdir=.
7457 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7458 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7460 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7461 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7464 case "$ac_given_INSTALL" in
7465 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7466 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7469 echo creating "$ac_file"
7471 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7473 *Makefile*) ac_comsub="1i\\
7474 # $configure_input" ;;
7478 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7480 s%@configure_input@%$configure_input%g
7481 s%@srcdir@%$srcdir%g
7482 s%@top_srcdir@%$top_srcdir%g
7483 s%@INSTALL@%$INSTALL%g
7484 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7488 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7489 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7491 # ac_d sets the value in "#define NAME VALUE" lines.
7492 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7493 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7496 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7497 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7498 ac_uB='\([ ]\)%\1#\2define\3'
7501 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7502 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7503 ac_eB='$%\1#\2define\3'
7507 if test "${CONFIG_HEADERS+set}" != set; then
7509 cat >> $CONFIG_STATUS <<EOF
7510 CONFIG_HEADERS="config.h"
7512 cat >> $CONFIG_STATUS <<\EOF
7514 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7515 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7517 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7518 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7519 *) ac_file_in="${ac_file}.in" ;;
7522 echo creating $ac_file
7524 rm -f conftest.frag conftest.in conftest.out
7525 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7526 cat $ac_file_inputs > conftest.in
7530 # Transform confdefs.h into a sed script conftest.vals that substitutes
7531 # the proper values into config.h.in to produce config.h. And first:
7532 # Protect against being on the right side of a sed subst in config.status.
7533 # Protect against being in an unquoted here document in config.status.
7535 cat > conftest.hdr <<\EOF
7538 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7542 sed -n -f conftest.hdr confdefs.h > conftest.vals
7545 # This sed command replaces #undef with comments. This is necessary, for
7546 # example, in the case of _POSIX_SOURCE, which is predefined and required
7547 # on some systems where configure will not decide to define it.
7548 cat >> conftest.vals <<\EOF
7549 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7552 # Break up conftest.vals because some shells have a limit on
7553 # the size of here documents, and old seds have small limits too.
7558 ac_lines=`grep -c . conftest.vals`
7559 # grep -c gives empty output for an empty file on some AIX systems.
7560 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7561 # Write a limited-size here document to conftest.frag.
7562 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7563 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7565 sed -f conftest.frag conftest.in > conftest.out
7567 mv conftest.out conftest.in
7569 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7571 mv conftest.tail conftest.vals
7575 cat >> $CONFIG_STATUS <<\EOF
7576 rm -f conftest.frag conftest.h
7577 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7578 cat conftest.in >> conftest.h
7580 if cmp -s $ac_file conftest.h 2>/dev/null; then
7581 echo "$ac_file is unchanged"
7584 # Remove last slash and all that follows it. Not all systems have dirname.
7585 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7586 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7587 # The file is in a subdirectory.
7588 test ! -d "$ac_dir" && mkdir "$ac_dir"
7591 mv conftest.h $ac_file
7596 cat >> $CONFIG_STATUS <<EOF
7599 cat >> $CONFIG_STATUS <<\EOF
7603 chmod +x $CONFIG_STATUS
7604 rm -fr confdefs* $ac_clean_files
7605 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7608 # You are in a twisty maze of namespaces and syntaxes, all alike.
7609 # Fuck the skull of Unix.
7611 eval bindir=${bindir}
7612 eval bindir=${bindir}
7613 eval bindir=${bindir}
7614 eval bindir=${bindir}
7615 eval bindir=${bindir}
7616 eval bindir=${bindir}
7617 eval HACKDIR=${HACKDIR}
7618 eval HACKDIR=${HACKDIR}
7619 eval HACKDIR=${HACKDIR}
7620 eval HACKDIR=${HACKDIR}
7621 eval HACKDIR=${HACKDIR}
7622 eval HACKDIR=${HACKDIR}
7627 echo ' When you run "make install", the "xscreensaver" and'
7628 echo ' "xscreensaver-command" executables will be installed in'
7631 echo " The various graphics demos (80+ different executables) will"
7632 echo " be installed in ${HACKDIR}."
7634 echo " If you would prefer the demos to be installed elsewhere"
7635 echo " (for example, in a dedicated directory) you should re-run"
7636 echo " configure with the --enable-subdir=DIR option. For more"
7637 echo " information, run $0 --help."