2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="driver/subprocs.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
775 -h, --help display this help and exit
776 --help=short display options specific to this package
777 --help=recursive display the short help of all the included packages
778 -V, --version display version information and exit
779 -q, --quiet, --silent do not print \`checking...' messages
780 --cache-file=FILE cache test results in FILE [disabled]
781 -C, --config-cache alias for \`--cache-file=config.cache'
782 -n, --no-create do not create output files
783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
788 Installation directories:
789 --prefix=PREFIX install architecture-independent files in PREFIX
791 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
794 By default, \`make install' will install all the files in
795 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
796 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
797 for instance \`--prefix=\$HOME'.
799 For better control, use the options below.
801 Fine tuning of the installation directories:
802 --bindir=DIR user executables [EPREFIX/bin]
803 --libdir=DIR object code libraries [EPREFIX/lib]
804 --includedir=DIR C header files [PREFIX/include]
805 --x-includes=DIR X include files are in DIR
806 --x-libraries=DIR X library files are in DIR
807 --mandir=DIR man documentation [PREFIX/man]
813 --x-includes=DIR X include files are in DIR
814 --x-libraries=DIR X library files are in DIR
817 --build=BUILD configure for building on BUILD [guessed]
818 --host=HOST cross-compile to build programs to run on HOST [BUILD]
822 if test -n "$ac_init_help"; then
827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
831 Screen locking options:
833 --enable-locking Compile in support for locking the display.
834 --disable-locking Do not allow locking at all.
837 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
838 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
839 Installation options:
841 --with-hackdir=DIR Where to install the hundreds of demo executables.
842 Default: \`PREFIX/lib/xscreensaver/'
843 --with-configdir=DIR Where to install the data files that describe each
844 of the display modes to the GUI.
845 Default: \`GNOMEPREFIX/control-center/screensavers/'
846 or \`PREFIX/lib/xscreensaver/config/', depending on
847 whether GNOME is available.
849 Except where noted, all of the --with options below can also take a
850 directory argument: for example, \`--with-motif=/opt/Motif'. That would
851 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
852 to be added to the -L list, assuming those directories exist.
854 By default, support for each of these options will be built in, if the
855 relevant library routines exist. At run time, they will then be used
856 only if the X server being used supports them. Each --with option has
857 a corresponding --without option, to override building support for them
860 Screen blanking and idle-detection options:
862 --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.
863 --with-mit-ext Include support for the MIT-SCREEN-SAVER extension.
864 --with-xidle-ext Include support for the XIDLE extension.
865 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.
866 --with-dpms-ext Include support for the DPMS extension.
867 --with-xinerama-ext Include support for the XINERAMA extension.
868 --with-xf86vmode-ext Include support for XFree86 virtual screens.
869 --with-xf86gamma-ext Include support for XFree86 gamma fading.
870 --with-proc-interrupts Include support for consulting the /proc/interrupts
871 file to notice keyboard activity.
872 --with-pam Include support for PAM (Pluggable Auth Modules.)
873 --with-kerberos Include support for Kerberos authentication.
874 --with-shadow Include support for shadow password authentication.
876 User interface options:
878 --with-motif Use the Motif toolkit for the user interface
880 --with-gtk Use the Gtk toolkit for the user interface.
881 --with-gnome Include support for the Gnome 1.x Control Center.
882 (This option is not needed with GTK 2.x / Gnome 2.x.)
884 --with-xml The XML toolkit is needed for some parts of
885 the Gtk interface. Without it, the configuration
886 interface will be much less featureful.
890 --with-gl Build those demos which depend on OpenGL.
891 --with-gle Build those demos which depend on GLE
892 (the OpenGL "extrusion" library.)
893 --with-xpm Include support for XPM files in some demos.
894 (Not needed if Pixbuf is used.)
895 --with-pixbuf Include support for the GDK-Pixbuf library in some
896 demos, which will make it possible for them to read
897 GIF, JPEG, and PNG files as well. (The path here is
898 ignored if GTK 2.x is being used.)
899 --with-jpeg Include support for the JPEG library in some demos.
900 (If this library is available, webcollage will be a
902 --with-xshm-ext Include support for the Shared Memory extension.
903 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
904 --with-readdisplay Include support for the XReadDisplay extension.
906 --with-fortune=PROGRAM Some demos are able to run an external program and
907 display its text; this names the program to use by
908 default (though it can be overridden with X
909 resources.) Default is \"/usr/games/fortune\".
910 --with-setuid-hacks Allow some demos to be installed \`setuid root'
911 (which is needed in order to ping other hosts.)
914 Some influential environment variables:
915 CC C compiler command
916 CFLAGS C compiler flags
917 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
918 nonstandard directory <lib dir>
919 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
920 headers in a nonstandard directory <include dir>
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
929 if test "$ac_init_help" = "recursive"; then
930 # If there are subdirs, report their specific --help.
932 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933 test -d $ac_dir || continue
936 if test "$ac_dir" != .; then
937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938 # A "../" for each directory in $ac_dir_suffix.
939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941 ac_dir_suffix= ac_top_builddir=
945 .) # No --srcdir option. We are building in place.
947 if test -z "$ac_top_builddir"; then
950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952 [\\/]* | ?:[\\/]* ) # Absolute path.
953 ac_srcdir=$srcdir$ac_dir_suffix;
954 ac_top_srcdir=$srcdir ;;
956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
962 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
989 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
990 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.53. Invocation command line was
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Also quote any args containing shell meta-characters.
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n ) continue ;;
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 case " $ac_configure_args " in
1069 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1070 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1076 # When interrupted or exit'd, cleanup temporary files, and complete
1077 # config.log. We remove comments because anyway the quotes in there
1078 # would cause problems or look ugly.
1079 # WARNING: Be sure not to use single quotes in there, as some shells,
1080 # such as our DU 5.0 friend, will then `close' the trap.
1081 trap 'exit_status=$?
1082 # Save into config.log some information that might help in debugging.
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1091 # The following way of writing the cache mishandles newlines in values,
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 if test -s confdefs.h; then
1114 sed "/^$/d" confdefs.h
1117 test "$ac_signal" != 0 &&
1118 echo "$as_me: caught signal $ac_signal"
1119 echo "$as_me: exit $exit_status"
1121 rm -f core core.* *.core &&
1122 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1125 for ac_signal in 1 2 13 15; do
1126 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1131 rm -rf conftest* confdefs.h
1132 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1135 # Predefined preprocessor variables.
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 # Let the site file select an alternate cache file if it wants to.
1163 # Prefer explicitly selected file to automatically selected ones.
1164 if test -z "$CONFIG_SITE"; then
1165 if test "x$prefix" != xNONE; then
1166 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1171 for ac_site_file in $CONFIG_SITE; do
1172 if test -r "$ac_site_file"; then
1173 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1174 echo "$as_me: loading site script $ac_site_file" >&6;}
1175 sed 's/^/| /' "$ac_site_file" >&5
1180 if test -r "$cache_file"; then
1181 # Some versions of bash will fail to source /dev/null (special
1182 # files actually), so we avoid doing that.
1183 if test -f "$cache_file"; then
1184 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1185 echo "$as_me: loading cache $cache_file" >&6;}
1187 [\\/]* | ?:[\\/]* ) . $cache_file;;
1188 *) . ./$cache_file;;
1192 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1193 echo "$as_me: creating cache $cache_file" >&6;}
1197 # Check that the precious variables saved in the cache have kept the same
1199 ac_cache_corrupted=false
1200 for ac_var in `(set) 2>&1 |
1201 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1203 eval ac_new_set=\$ac_env_${ac_var}_set
1204 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1205 eval ac_new_val="\$ac_env_${ac_var}_value"
1206 case $ac_old_set,$ac_new_set in
1208 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1209 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1210 ac_cache_corrupted=: ;;
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1217 if test "x$ac_old_val" != "x$ac_new_val"; then
1218 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1219 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1220 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1221 echo "$as_me: former value: $ac_old_val" >&2;}
1222 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1223 echo "$as_me: current value: $ac_new_val" >&2;}
1224 ac_cache_corrupted=:
1227 # Pass precious variables to config.status.
1228 if test "$ac_new_set" = set; then
1230 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1231 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 *) ac_arg=$ac_var=$ac_new_val ;;
1234 case " $ac_configure_args " in
1235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1236 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 if $ac_cache_corrupted; then
1241 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1242 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1243 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1244 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1245 { (exit 1); exit 1; }; }
1249 ac_cpp='$CPP $CPPFLAGS'
1250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1271 ac_config_headers="$ac_config_headers config.h"
1274 echo "current directory: `pwd`"
1275 echo "command line was: $0 $@"
1278 # After checking to see that --srcdir is correct (which AC_INIT does)
1279 # check for some random other files that come later in the tar file,
1280 # to make sure everything is here.
1282 for d in driver utils hacks hacks/glx ; do
1283 f=$srcdir/$d/Makefile.in
1284 if test \! -r $f ; then
1286 echo "ERROR: The package is incomplete: $f does not exist."
1287 echo " This probably means that your download was truncated."
1293 ###############################################################################
1295 # Function to figure out how to run the compiler.
1297 ###############################################################################
1302 ###############################################################################
1304 # Functions to figure out how to disable // comments in ANSI C code.
1306 # (With recent gcc, this is done with "-std=c89". With older gcc, this
1307 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
1308 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
1309 # so much for compatibility!)
1311 ###############################################################################
1318 ###############################################################################
1320 # Function to figure out how to create directory trees.
1322 ###############################################################################
1327 ###############################################################################
1329 # Function to check whether gettimeofday() exists, and how to call it.
1330 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
1332 ###############################################################################
1337 ###############################################################################
1339 # Function to find perl5 (defines PERL and PERL_VERSION.)
1341 ###############################################################################
1343 # M4 sucks!! perl sucks too!!
1345 perl_version_cmd='print $]'
1351 ###############################################################################
1353 # Function to demand "bc". Losers.
1355 ###############################################################################
1359 ###############################################################################
1361 # Functions to check how to do ICMP PING requests.
1363 ###############################################################################
1370 ###############################################################################
1372 # Functions to check for various X11 crap.
1374 ###############################################################################
1376 # Try and find the app-defaults directory.
1377 # It sucks that autoconf doesn't do this already...
1389 # Random special-cases for X on certain pathological OSes.
1390 # You know who you are.
1396 ###############################################################################
1398 # Some utility functions to make checking for X things easier.
1400 ###############################################################################
1402 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
1406 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
1410 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
1415 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
1416 # Use this sparingly; it probably doesn't work very well on X programs.
1420 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
1421 # (But not the -L directories!)
1427 # Usage: HANDLE_X_PATH_ARG([variable_name],
1428 # [--command-line-option],
1429 # [descriptive string])
1431 # All of the --with options take three forms:
1433 # --with-foo (or --with-foo=yes)
1434 # --without-foo (or --with-foo=no)
1437 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
1438 # a directory (string beginning with a slash) it checks to see whether
1439 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
1446 ###############################################################################
1447 ###############################################################################
1449 # End of function definitions. Now start actually executing stuff.
1451 ###############################################################################
1452 ###############################################################################
1454 # random compiler setup
1456 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1457 if test -f $ac_dir/install-sh; then
1459 ac_install_sh="$ac_aux_dir/install-sh -c"
1461 elif test -f $ac_dir/install.sh; then
1463 ac_install_sh="$ac_aux_dir/install.sh -c"
1465 elif test -f $ac_dir/shtool; then
1467 ac_install_sh="$ac_aux_dir/shtool install -c"
1471 if test -z "$ac_aux_dir"; then
1472 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1473 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1474 { (exit 1); exit 1; }; }
1476 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1477 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1478 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1480 # Make sure we can run config.sub.
1481 $ac_config_sub sun4 >/dev/null 2>&1 ||
1482 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1483 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1484 { (exit 1); exit 1; }; }
1486 echo "$as_me:$LINENO: checking build system type" >&5
1487 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1488 if test "${ac_cv_build+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 ac_cv_build_alias=$build_alias
1492 test -z "$ac_cv_build_alias" &&
1493 ac_cv_build_alias=`$ac_config_guess`
1494 test -z "$ac_cv_build_alias" &&
1495 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1496 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1497 { (exit 1); exit 1; }; }
1498 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1501 { (exit 1); exit 1; }; }
1504 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1505 echo "${ECHO_T}$ac_cv_build" >&6
1507 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512 echo "$as_me:$LINENO: checking host system type" >&5
1513 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1514 if test "${ac_cv_host+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 ac_cv_host_alias=$host_alias
1518 test -z "$ac_cv_host_alias" &&
1519 ac_cv_host_alias=$ac_cv_build_alias
1520 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1523 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1527 echo "${ECHO_T}$ac_cv_host" >&6
1529 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1536 ac_cpp='$CPP $CPPFLAGS'
1537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1540 if test -n "$ac_tool_prefix"; then
1541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 if test -n "$CC"; then
1569 echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1577 if test -z "$ac_cv_prog_CC"; then
1579 # Extract the first word of "gcc", so it can be a program name with args.
1580 set dummy gcc; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_ac_ct_CC="gcc"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1606 if test -n "$ac_ct_CC"; then
1607 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1608 echo "${ECHO_T}$ac_ct_CC" >&6
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1619 if test -z "$CC"; then
1620 if test -n "$ac_tool_prefix"; then
1621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1622 set dummy ${ac_tool_prefix}cc; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 test -z "$as_dir" && as_dir=.
1636 for ac_exec_ext in '' $ac_executable_extensions; do
1637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638 ac_cv_prog_CC="${ac_tool_prefix}cc"
1639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 if test -n "$CC"; then
1649 echo "$as_me:$LINENO: result: $CC" >&5
1650 echo "${ECHO_T}$CC" >&6
1652 echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1657 if test -z "$ac_cv_prog_CC"; then
1659 # Extract the first word of "cc", so it can be a program name with args.
1660 set dummy cc; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC="cc"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1700 if test -z "$CC"; then
1701 # Extract the first word of "cc", so it can be a program name with args.
1702 set dummy cc; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 if test -n "$CC"; then
1709 ac_cv_prog_CC="$CC" # Let the user override the test.
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1720 ac_prog_rejected=yes
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 if test $ac_prog_rejected = yes; then
1731 # We found a bogon in the path, so make sure we never use it.
1732 set dummy $ac_cv_prog_CC
1734 if test $# != 0; then
1735 # We chose a different compiler from the bogus one.
1736 # However, it has the same basename, so the bogon will be chosen
1737 # first if we set CC to just the basename; use the full file name.
1739 set dummy "$as_dir/$ac_word" ${1+"$@"}
1747 if test -n "$CC"; then
1748 echo "$as_me:$LINENO: result: $CC" >&5
1749 echo "${ECHO_T}$CC" >&6
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1756 if test -z "$CC"; then
1757 if test -n "$ac_tool_prefix"; then
1760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1762 echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764 if test "${ac_cv_prog_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 if test -n "$CC"; then
1768 ac_cv_prog_CC="$CC" # Let the user override the test.
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 if test -n "$CC"; then
1788 echo "$as_me:$LINENO: result: $CC" >&5
1789 echo "${ECHO_T}$CC" >&6
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1795 test -n "$CC" && break
1798 if test -z "$CC"; then
1802 # Extract the first word of "$ac_prog", so it can be a program name with args.
1803 set dummy $ac_prog; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 if test -n "$ac_ct_CC"; then
1810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_ac_ct_CC="$ac_prog"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1829 if test -n "$ac_ct_CC"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1831 echo "${ECHO_T}$ac_ct_CC" >&6
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1837 test -n "$ac_ct_CC" && break
1846 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1847 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1848 { (exit 1); exit 1; }; }
1850 # Provide some information about the compiler.
1851 echo "$as_me:$LINENO:" \
1852 "checking for C compiler version" >&5
1853 ac_compiler=`set X $ac_compile; echo $2`
1854 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1855 (eval $ac_compiler --version </dev/null >&5) 2>&5
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1860 (eval $ac_compiler -v </dev/null >&5) 2>&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }
1864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1865 (eval $ac_compiler -V </dev/null >&5) 2>&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }
1870 cat >conftest.$ac_ext <<_ACEOF
1871 #line $LINENO "configure"
1872 #include "confdefs.h"
1874 #ifdef F77_DUMMY_MAIN
1878 int F77_DUMMY_MAIN() { return 1; }
1888 ac_clean_files_save=$ac_clean_files
1889 ac_clean_files="$ac_clean_files a.out a.exe"
1890 # Try to create an executable without -o first, disregard a.out.
1891 # It will help us diagnose broken compilers, and finding out an intuition
1893 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1894 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1895 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1896 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1897 (eval $ac_link_default) 2>&5
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); }; then
1901 # Find the output, starting from the most likely. This scheme is
1902 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1905 # Be careful to initialize this variable, since it used to be cached.
1906 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1908 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1909 ls a.out conftest 2>/dev/null;
1910 ls a.* conftest.* 2>/dev/null`; do
1912 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1913 a.out ) # We found the default executable, but exeext='' is most
1916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1917 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1924 echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1926 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1927 echo "$as_me: error: C compiler cannot create executables" >&2;}
1928 { (exit 77); exit 77; }; }
1931 ac_exeext=$ac_cv_exeext
1932 echo "$as_me:$LINENO: result: $ac_file" >&5
1933 echo "${ECHO_T}$ac_file" >&6
1935 # Check the compiler produces executables we can run. If not, either
1936 # the compiler is broken, or we cross compile.
1937 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1938 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1939 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1940 # If not cross compiling, check that we can run a simple program.
1941 if test "$cross_compiling" != yes; then
1942 if { ac_try='./$ac_file'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1950 if test "$cross_compiling" = maybe; then
1953 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1954 If you meant to cross compile, use \`--host'." >&5
1955 echo "$as_me: error: cannot run C compiled programs.
1956 If you meant to cross compile, use \`--host'." >&2;}
1957 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1964 rm -f a.out a.exe conftest$ac_cv_exeext
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run. If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1984 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1986 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1987 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1994 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1996 { (exit 1); exit 1; }; }
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 #include "confdefs.h"
2015 #ifdef F77_DUMMY_MAIN
2019 int F77_DUMMY_MAIN() { return 1; }
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2043 echo "$as_me: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2045 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2047 { (exit 1); exit 1; }; }
2050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2053 echo "${ECHO_T}$ac_cv_objext" >&6
2054 OBJEXT=$ac_cv_objext
2056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.$ac_ext <<_ACEOF
2062 #line $LINENO "configure"
2063 #include "confdefs.h"
2065 #ifdef F77_DUMMY_MAIN
2069 int F77_DUMMY_MAIN() { return 1; }
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); } &&
2088 { ac_try='test -s conftest.$ac_objext'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; }; then
2096 echo "$as_me: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2104 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2105 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2106 GCC=`test $ac_compiler_gnu = yes && echo yes`
2107 ac_test_CFLAGS=${CFLAGS+set}
2108 ac_save_CFLAGS=$CFLAGS
2110 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2111 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2112 if test "${ac_cv_prog_cc_g+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 cat >conftest.$ac_ext <<_ACEOF
2116 #line $LINENO "configure"
2117 #include "confdefs.h"
2119 #ifdef F77_DUMMY_MAIN
2123 int F77_DUMMY_MAIN() { return 1; }
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); } &&
2139 { ac_try='test -s conftest.$ac_objext'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2147 echo "$as_me: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2151 rm -f conftest.$ac_objext conftest.$ac_ext
2153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2154 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2155 if test "$ac_test_CFLAGS" = set; then
2156 CFLAGS=$ac_save_CFLAGS
2157 elif test $ac_cv_prog_cc_g = yes; then
2158 if test "$GCC" = yes; then
2164 if test "$GCC" = yes; then
2170 # Some people use a C++ compiler to compile C. Since we use `exit',
2171 # in C++ we need to declare it. In case someone uses the same compiler
2172 # for both compiling C and C++ we need to have the C++ compiler decide
2173 # the declaration of exit, since it's the most demanding environment.
2174 cat >conftest.$ac_ext <<_ACEOF
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 for ac_declaration in \
2193 '#include <stdlib.h>' \
2194 'extern "C" void std::exit (int) throw (); using std::exit;' \
2195 'extern "C" void std::exit (int); using std::exit;' \
2196 'extern "C" void exit (int) throw ();' \
2197 'extern "C" void exit (int);' \
2200 cat >conftest.$ac_ext <<_ACEOF
2201 #line $LINENO "configure"
2202 #include "confdefs.h"
2205 #ifdef F77_DUMMY_MAIN
2209 int F77_DUMMY_MAIN() { return 1; }
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -s conftest.$ac_objext'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2233 echo "$as_me: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2237 rm -f conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2240 #include "confdefs.h"
2242 #ifdef F77_DUMMY_MAIN
2246 int F77_DUMMY_MAIN() { return 1; }
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -s conftest.$ac_objext'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; }; then
2270 echo "$as_me: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2273 rm -f conftest.$ac_objext conftest.$ac_ext
2276 if test -n "$ac_declaration"; then
2277 echo '#ifdef __cplusplus' >>confdefs.h
2278 echo $ac_declaration >>confdefs.h
2279 echo '#endif' >>confdefs.h
2283 echo "$as_me: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2294 if test -z "$GCC"; then
2295 echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
2296 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6
2299 echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
2300 echo "${ECHO_T}HPUX: adding -Ae" >&6
2304 echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
2305 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6
2306 CC="$CC -qlanglvl=ansi -qhalt=e"
2310 echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
2311 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6
2316 echo "$as_me:$LINENO: result: no idea" >&5
2317 echo "${ECHO_T}no idea" >&6
2322 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2323 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2324 if test "$cross_compiling" = yes; then
2325 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2326 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2327 { (exit 1); exit 1; }; }
2329 cat >conftest.$ac_ext <<_ACEOF
2330 #line $LINENO "configure"
2331 #include "confdefs.h"
2332 main(int ac, char **av) { return 0; }
2334 rm -f conftest$ac_exeext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2336 (eval $ac_link) 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 echo "$as_me:$LINENO: result: yes" >&5
2346 echo "${ECHO_T}yes" >&6
2348 echo "$as_me: program exited with status $ac_status" >&5
2349 echo "$as_me: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2352 echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2354 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2355 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2356 { (exit 1); exit 1; }; }
2358 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2361 if test -n "$GCC"; then
2362 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2363 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2364 CC="$CC -Wall -Wstrict-prototypes -Wnested-externs -Wno-format"
2367 *-irix5* |*-irix6.0-3* )
2368 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2369 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2370 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2373 # if test -z "$GCC"; then
2374 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2375 # CC="$CC -migrate -w0 -verbose -warnprotos"
2381 if test -n "$GCC"; then
2382 if test -n "$GCC"; then
2383 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2384 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2385 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 if ( ( gcc -E -std=c89 - </dev/null >/dev/null ) 2>&1 | \
2389 grep unrecognized >/dev/null ); then
2390 ac_cv_gcc_accepts_std=no
2392 ac_cv_gcc_accepts_std=yes
2395 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2396 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2397 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2400 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2401 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2403 # The reason that // comments are banned from xscreensaver is that gcc is
2404 # basically the only compiler in the world that supports them in C code.
2405 # All other vendors support them only in their C++ compilers, not in their
2406 # ANSI C compilers. This means that it's a portability problem: every time
2407 # these comments have snuck into the xscreensaver source code, I've gotten
2408 # complaints about it the next day. So we turn off support for them in gcc
2409 # as well to prevent them from accidentially slipping in.
2411 if test "$ac_gcc_accepts_std" = yes ; then
2413 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2414 # (That appears to be the only additional preprocessor symbol
2415 # it defines, in addition to the syntax changes it makes.)
2417 # -std=gnu89 is no good, because // comments were a GNU extension
2418 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2419 # with -std=gnu89 but not with -std=c89.)
2421 CC="$CC -std=c89 -U__STRICT_ANSI__"
2424 CC="$CC -Wp,-lang-c89"
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2435 # On Suns, sometimes $CPP names a directory.
2436 if test -n "$CPP" && test -d "$CPP"; then
2439 if test -z "$CPP"; then
2440 if test "${ac_cv_prog_CPP+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 # Double quotes because CPP needs to be expanded
2444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2447 for ac_c_preproc_warn_flag in '' yes
2449 # Use a header file that comes with gcc, so configuring glibc
2450 # with a fresh cross-compiler works.
2451 # On the NeXT, cc -E runs the code through the compiler's parser,
2452 # not just through cpp. "Syntax error" is here to catch this case.
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 #include "confdefs.h"
2459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2462 egrep -v '^ *\+' conftest.er1 >conftest.err
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } >/dev/null; then
2467 if test -s conftest.err; then
2468 ac_cpp_err=$ac_c_preproc_warn_flag
2475 if test -z "$ac_cpp_err"; then
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 # Broken: fails on valid input.
2483 rm -f conftest.err conftest.$ac_ext
2485 # OK, works on sane cases. Now check whether non-existent headers
2486 # can be detected and how.
2487 cat >conftest.$ac_ext <<_ACEOF
2488 #line $LINENO "configure"
2489 #include "confdefs.h"
2490 #include <ac_nonexistent.h>
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495 egrep -v '^ *\+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2508 if test -z "$ac_cpp_err"; then
2509 # Broken: success on invalid input.
2512 echo "$as_me: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2514 # Passes both tests.
2518 rm -f conftest.err conftest.$ac_ext
2521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522 rm -f conftest.err conftest.$ac_ext
2523 if $ac_preproc_ok; then
2535 echo "$as_me:$LINENO: result: $CPP" >&5
2536 echo "${ECHO_T}$CPP" >&6
2538 for ac_c_preproc_warn_flag in '' yes
2540 # Use a header file that comes with gcc, so configuring glibc
2541 # with a fresh cross-compiler works.
2542 # On the NeXT, cc -E runs the code through the compiler's parser,
2543 # not just through cpp. "Syntax error" is here to catch this case.
2544 cat >conftest.$ac_ext <<_ACEOF
2545 #line $LINENO "configure"
2546 #include "confdefs.h"
2550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2553 egrep -v '^ *\+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } >/dev/null; then
2558 if test -s conftest.err; then
2559 ac_cpp_err=$ac_c_preproc_warn_flag
2566 if test -z "$ac_cpp_err"; then
2569 echo "$as_me: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2571 # Broken: fails on valid input.
2574 rm -f conftest.err conftest.$ac_ext
2576 # OK, works on sane cases. Now check whether non-existent headers
2577 # can be detected and how.
2578 cat >conftest.$ac_ext <<_ACEOF
2579 #line $LINENO "configure"
2580 #include "confdefs.h"
2581 #include <ac_nonexistent.h>
2583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2586 egrep -v '^ *\+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } >/dev/null; then
2591 if test -s conftest.err; then
2592 ac_cpp_err=$ac_c_preproc_warn_flag
2599 if test -z "$ac_cpp_err"; then
2600 # Broken: success on invalid input.
2603 echo "$as_me: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2605 # Passes both tests.
2609 rm -f conftest.err conftest.$ac_ext
2612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2613 rm -f conftest.err conftest.$ac_ext
2614 if $ac_preproc_ok; then
2617 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2619 { (exit 1); exit 1; }; }
2623 ac_cpp='$CPP $CPPFLAGS'
2624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2629 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2630 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 ac_cv_prog_cc_stdc=no
2635 cat >conftest.$ac_ext <<_ACEOF
2636 #line $LINENO "configure"
2637 #include "confdefs.h"
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2656 s = g (p, va_arg (v,int));
2660 int test (int i, double x);
2661 struct s1 {int (*f) (int a);};
2662 struct s2 {int (*f) (double a);};
2663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2666 #ifdef F77_DUMMY_MAIN
2670 int F77_DUMMY_MAIN() { return 1; }
2675 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2680 # Don't try gcc -ansi; that turns off useful extensions and
2681 # breaks some systems' header files.
2682 # AIX -qlanglvl=ansi
2683 # Ultrix and OSF/1 -std1
2684 # HP-UX 10.20 and later -Ae
2685 # HP-UX older versions -Aa -D_HPUX_SOURCE
2686 # SVR4 -Xc -D__EXTENSIONS__
2687 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2689 CC="$ac_save_CC $ac_arg"
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 ac_cv_prog_cc_stdc=$ac_arg
2705 echo "$as_me: failed program was:" >&5
2706 cat conftest.$ac_ext >&5
2708 rm -f conftest.$ac_objext
2710 rm -f conftest.$ac_ext conftest.$ac_objext
2715 case "x$ac_cv_prog_cc_stdc" in
2717 echo "$as_me:$LINENO: result: none needed" >&5
2718 echo "${ECHO_T}none needed" >&6 ;;
2720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2721 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2722 CC="$CC $ac_cv_prog_cc_stdc" ;;
2725 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2726 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2727 if test "${ac_cv_c_const+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 cat >conftest.$ac_ext <<_ACEOF
2731 #line $LINENO "configure"
2732 #include "confdefs.h"
2734 #ifdef F77_DUMMY_MAIN
2738 int F77_DUMMY_MAIN() { return 1; }
2743 /* FIXME: Include the comments suggested by Paul. */
2745 /* Ultrix mips cc rejects this. */
2746 typedef int charset[2];
2748 /* SunOS 4.1.1 cc rejects this. */
2749 char const *const *ccp;
2751 /* NEC SVR4.0.2 mips cc rejects this. */
2752 struct point {int x, y;};
2753 static struct point const zero = {0,0};
2754 /* AIX XL C 1.02.0.0 rejects this.
2755 It does not let you subtract one const X* pointer from another in
2756 an arm of an if-expression whose if-part is not a constant
2758 const char *g = "string";
2759 ccp = &g + (g ? g-g : 0);
2760 /* HPUX 7.0 cc rejects these. */
2763 ccp = (char const *const *) p;
2764 { /* SCO 3.2v4 cc rejects this. */
2766 char const *s = 0 ? (char *) 0 : (char const *) 0;
2770 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2772 const int *foo = &x[0];
2775 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2776 typedef const int *iptr;
2780 { /* AIX XL C 1.02.0.0 rejects this saying
2781 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2782 struct s { int j; const int *ap[3]; };
2783 struct s *b; b->j = 5;
2785 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2808 echo "$as_me: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2812 rm -f conftest.$ac_objext conftest.$ac_ext
2814 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2815 echo "${ECHO_T}$ac_cv_c_const" >&6
2816 if test $ac_cv_c_const = no; then
2818 cat >>confdefs.h <<\_ACEOF
2824 echo "$as_me:$LINENO: checking for inline" >&5
2825 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2826 if test "${ac_cv_c_inline+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 for ac_kw in inline __inline__ __inline; do
2831 cat >conftest.$ac_ext <<_ACEOF
2832 #line $LINENO "configure"
2833 #include "confdefs.h"
2835 static $ac_kw int static_foo () {return 0; }
2836 $ac_kw int foo () {return 0; }
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2852 ac_cv_c_inline=$ac_kw; break
2854 echo "$as_me: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 rm -f conftest.$ac_objext conftest.$ac_ext
2861 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2862 echo "${ECHO_T}$ac_cv_c_inline" >&6
2863 case $ac_cv_c_inline in
2866 cat >>confdefs.h <<\_ACEOF
2870 *) cat >>confdefs.h <<_ACEOF
2871 #define inline $ac_cv_c_inline
2877 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
2878 echo "$as_me:$LINENO: checking for bc" >&5
2879 echo $ECHO_N "checking for bc... $ECHO_C" >&6
2880 if test "$ac_bc_result" = "15" ; then
2881 echo "$as_me:$LINENO: result: yes" >&5
2882 echo "${ECHO_T}yes" >&6
2884 echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2887 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
2888 part of Unix since the 1970s. Come back when your vendor
2889 has grown a clue." >&5
2890 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
2891 part of Unix since the 1970s. Come back when your vendor
2892 has grown a clue." >&2;}
2893 { (exit 1); exit 1; }; }
2897 # stuff for Makefiles
2898 # Find a good install program. We prefer a C program (faster),
2899 # so one script is as good as another. But avoid the broken or
2900 # incompatible versions:
2901 # SysV /etc/install, /usr/sbin/install
2902 # SunOS /usr/etc/install
2903 # IRIX /sbin/install
2905 # AmigaOS /C/install, which installs bootblocks on floppy discs
2906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2909 # ./install, which can be erroneously created by make from ./install.sh.
2910 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2911 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2912 if test -z "$INSTALL"; then
2913 if test "${ac_cv_path_install+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 # Account for people who put trailing slashes in PATH elements.
2923 ./ | .// | /cC/* | \
2924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2927 # OSF1 and SCO ODT 3.0 have their own names for install.
2928 # Don't use installbsd from OSF since it installs stuff as root
2930 for ac_prog in ginstall scoinst install; do
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2933 if test $ac_prog = install &&
2934 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2935 # AIX install. It has an incompatible calling convention.
2937 elif test $ac_prog = install &&
2938 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2939 # program-specific install script used by HP pwplus--don't use.
2942 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2954 if test "${ac_cv_path_install+set}" = set; then
2955 INSTALL=$ac_cv_path_install
2957 # As a last resort, use the slow shell script. We don't cache a
2958 # path for INSTALL within a source directory, because that will
2959 # break other packages using the cache if that directory is
2960 # removed, or if the path is relative.
2961 INSTALL=$ac_install_sh
2964 echo "$as_me:$LINENO: result: $INSTALL" >&5
2965 echo "${ECHO_T}$INSTALL" >&6
2967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968 # It thinks the first close brace ends the variable substitution.
2969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2975 echo "$as_me:$LINENO: checking whether \\"\${INSTALL} -d\\" creates intermediate directories" >&5
2976 echo $ECHO_N "checking whether \\"\${INSTALL} -d\\" creates intermediate directories... $ECHO_C" >&6
2977 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 ac_cv_install_d_creates_dirs=no
2982 if mkdir conftestdir; then
2983 cd conftestdir 2>/dev/null
2984 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
2985 if test -d dir1/dir2/. ; then
2986 ac_cv_install_d_creates_dirs=yes
2993 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
2994 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
2996 if test "$ac_cv_install_d_creates_dirs" = no ; then
2997 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
2998 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
2999 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_cv_mkdir_p_creates_dirs=no
3004 if mkdir conftestdir; then
3005 cd conftestdir 2>/dev/null
3006 mkdir -p dir1/dir2 >/dev/null 2>&1
3007 if test -d dir1/dir2/. ; then
3008 ac_cv_mkdir_p_creates_dirs=yes
3015 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3016 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3019 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3020 INSTALL_DIRS='${INSTALL} -d'
3021 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3022 INSTALL_DIRS='mkdir -p'
3025 INSTALL_DIRS='${INSTALL} -d'
3028 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
3029 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3030 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3031 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 cat >conftest.make <<\_ACEOF
3036 @echo 'ac_maketemp="${MAKE}"'
3038 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3039 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3040 if test -n "$ac_maketemp"; then
3041 eval ac_cv_prog_make_${ac_make}_set=yes
3043 eval ac_cv_prog_make_${ac_make}_set=no
3047 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3048 echo "$as_me:$LINENO: result: yes" >&5
3049 echo "${ECHO_T}yes" >&6
3052 echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6
3054 SET_MAKE="MAKE=${MAKE-make}"
3058 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3059 # That's wrong: it should be set to '${INSTALL}', so that one can
3060 # implement the "install-strip" target properly (strip executables,
3061 # but do not try to strip scripts.)
3063 INSTALL_SCRIPT='${INSTALL}'
3067 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3068 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3069 if test "${ac_cv_header_stdc+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 cat >conftest.$ac_ext <<_ACEOF
3073 #line $LINENO "configure"
3074 #include "confdefs.h"
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084 egrep -v '^ *\+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3097 if test -z "$ac_cpp_err"; then
3098 ac_cv_header_stdc=yes
3100 echo "$as_me: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3102 ac_cv_header_stdc=no
3104 rm -f conftest.err conftest.$ac_ext
3106 if test $ac_cv_header_stdc = yes; then
3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108 cat >conftest.$ac_ext <<_ACEOF
3109 #line $LINENO "configure"
3110 #include "confdefs.h"
3114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3115 egrep "memchr" >/dev/null 2>&1; then
3118 ac_cv_header_stdc=no
3124 if test $ac_cv_header_stdc = yes; then
3125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3126 cat >conftest.$ac_ext <<_ACEOF
3127 #line $LINENO "configure"
3128 #include "confdefs.h"
3132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3133 egrep "free" >/dev/null 2>&1; then
3136 ac_cv_header_stdc=no
3142 if test $ac_cv_header_stdc = yes; then
3143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3144 if test "$cross_compiling" = yes; then
3147 cat >conftest.$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3149 #include "confdefs.h"
3151 #if ((' ' & 0x0FF) == 0x020)
3152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3155 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3156 || ('j' <= (c) && (c) <= 'r') \
3157 || ('s' <= (c) && (c) <= 'z'))
3158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3166 for (i = 0; i < 256; i++)
3167 if (XOR (islower (i), ISLOWER (i))
3168 || toupper (i) != TOUPPER (i))
3173 rm -f conftest$ac_exeext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175 (eval $ac_link) 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3186 echo "$as_me: program exited with status $ac_status" >&5
3187 echo "$as_me: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3190 ac_cv_header_stdc=no
3192 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3198 if test $ac_cv_header_stdc = yes; then
3200 cat >>confdefs.h <<\_ACEOF
3201 #define STDC_HEADERS 1
3206 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3216 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3217 inttypes.h stdint.h unistd.h
3219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3220 echo "$as_me:$LINENO: checking for $ac_header" >&5
3221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 cat >conftest.$ac_ext <<_ACEOF
3226 #line $LINENO "configure"
3227 #include "confdefs.h"
3228 $ac_includes_default
3230 #include <$ac_header>
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 eval "$as_ac_Header=yes"
3246 echo "$as_me: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3248 eval "$as_ac_Header=no"
3250 rm -f conftest.$ac_objext conftest.$ac_ext
3252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3255 cat >>confdefs.h <<_ACEOF
3256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3265 for ac_header in unistd.h
3267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3269 echo "$as_me:$LINENO: checking for $ac_header" >&5
3270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3277 # Is the header compilable?
3278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 #include "confdefs.h"
3283 $ac_includes_default
3284 #include <$ac_header>
3286 rm -f conftest.$ac_objext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288 (eval $ac_compile) 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 ac_header_compiler=yes
3300 echo "$as_me: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3302 ac_header_compiler=no
3304 rm -f conftest.$ac_objext conftest.$ac_ext
3305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3306 echo "${ECHO_T}$ac_header_compiler" >&6
3308 # Is the header present?
3309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3311 cat >conftest.$ac_ext <<_ACEOF
3312 #line $LINENO "configure"
3313 #include "confdefs.h"
3314 #include <$ac_header>
3316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319 egrep -v '^ *\+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } >/dev/null; then
3324 if test -s conftest.err; then
3325 ac_cpp_err=$ac_c_preproc_warn_flag
3332 if test -z "$ac_cpp_err"; then
3333 ac_header_preproc=yes
3335 echo "$as_me: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3337 ac_header_preproc=no
3339 rm -f conftest.err conftest.$ac_ext
3340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3341 echo "${ECHO_T}$ac_header_preproc" >&6
3343 # So? What about this header?
3344 case $ac_header_compiler:$ac_header_preproc in
3346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3358 echo "$as_me:$LINENO: checking for $ac_header" >&5
3359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 eval "$as_ac_Header=$ac_header_preproc"
3365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3370 cat >>confdefs.h <<_ACEOF
3371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3378 echo "$as_me:$LINENO: checking for mode_t" >&5
3379 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3380 if test "${ac_cv_type_mode_t+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 cat >conftest.$ac_ext <<_ACEOF
3384 #line $LINENO "configure"
3385 #include "confdefs.h"
3386 $ac_includes_default
3387 #ifdef F77_DUMMY_MAIN
3391 int F77_DUMMY_MAIN() { return 1; }
3398 if (sizeof (mode_t))
3404 rm -f conftest.$ac_objext
3405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406 (eval $ac_compile) 2>&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_type_mode_t=yes
3418 echo "$as_me: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3420 ac_cv_type_mode_t=no
3422 rm -f conftest.$ac_objext conftest.$ac_ext
3424 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3425 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3426 if test $ac_cv_type_mode_t = yes; then
3430 cat >>confdefs.h <<_ACEOF
3436 echo "$as_me:$LINENO: checking for pid_t" >&5
3437 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3438 if test "${ac_cv_type_pid_t+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3442 #line $LINENO "configure"
3443 #include "confdefs.h"
3444 $ac_includes_default
3445 #ifdef F77_DUMMY_MAIN
3449 int F77_DUMMY_MAIN() { return 1; }
3462 rm -f conftest.$ac_objext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464 (eval $ac_compile) 2>&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_cv_type_pid_t=yes
3476 echo "$as_me: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3480 rm -f conftest.$ac_objext conftest.$ac_ext
3482 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3483 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3484 if test $ac_cv_type_pid_t = yes; then
3488 cat >>confdefs.h <<_ACEOF
3494 echo "$as_me:$LINENO: checking for size_t" >&5
3495 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3496 if test "${ac_cv_type_size_t+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 cat >conftest.$ac_ext <<_ACEOF
3500 #line $LINENO "configure"
3501 #include "confdefs.h"
3502 $ac_includes_default
3503 #ifdef F77_DUMMY_MAIN
3507 int F77_DUMMY_MAIN() { return 1; }
3514 if (sizeof (size_t))
3520 rm -f conftest.$ac_objext
3521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522 (eval $ac_compile) 2>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -s conftest.$ac_objext'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3532 ac_cv_type_size_t=yes
3534 echo "$as_me: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3536 ac_cv_type_size_t=no
3538 rm -f conftest.$ac_objext conftest.$ac_ext
3540 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3541 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3542 if test $ac_cv_type_size_t = yes; then
3546 cat >>confdefs.h <<_ACEOF
3547 #define size_t unsigned
3552 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3553 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3554 if test "${ac_cv_type_signal+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #line $LINENO "configure"
3559 #include "confdefs.h"
3560 #include <sys/types.h>
3566 extern "C" void (*signal (int, void (*)(int)))(int);
3568 void (*signal ()) ();
3571 #ifdef F77_DUMMY_MAIN
3575 int F77_DUMMY_MAIN() { return 1; }
3585 rm -f conftest.$ac_objext
3586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3587 (eval $ac_compile) 2>&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 ac_cv_type_signal=void
3599 echo "$as_me: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3601 ac_cv_type_signal=int
3603 rm -f conftest.$ac_objext conftest.$ac_ext
3605 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3606 echo "${ECHO_T}$ac_cv_type_signal" >&6
3608 cat >>confdefs.h <<_ACEOF
3609 #define RETSIGTYPE $ac_cv_type_signal
3613 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3614 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3615 if test "${ac_cv_header_time+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 cat >conftest.$ac_ext <<_ACEOF
3619 #line $LINENO "configure"
3620 #include "confdefs.h"
3621 #include <sys/types.h>
3622 #include <sys/time.h>
3625 #ifdef F77_DUMMY_MAIN
3629 int F77_DUMMY_MAIN() { return 1; }
3634 if ((struct tm *) 0)
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_cv_header_time=yes
3654 echo "$as_me: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3656 ac_cv_header_time=no
3658 rm -f conftest.$ac_objext conftest.$ac_ext
3660 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3661 echo "${ECHO_T}$ac_cv_header_time" >&6
3662 if test $ac_cv_header_time = yes; then
3664 cat >>confdefs.h <<\_ACEOF
3665 #define TIME_WITH_SYS_TIME 1
3670 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3671 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3672 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 #include "confdefs.h"
3678 #include <sys/types.h>
3679 #include <sys/wait.h>
3681 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3684 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3687 #ifdef F77_DUMMY_MAIN
3691 int F77_DUMMY_MAIN() { return 1; }
3698 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3703 rm -f conftest.$ac_objext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest.$ac_objext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 ac_cv_header_sys_wait_h=yes
3717 echo "$as_me: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 ac_cv_header_sys_wait_h=no
3721 rm -f conftest.$ac_objext conftest.$ac_ext
3723 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3724 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3725 if test $ac_cv_header_sys_wait_h = yes; then
3727 cat >>confdefs.h <<\_ACEOF
3728 #define HAVE_SYS_WAIT_H 1
3739 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3740 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3741 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3742 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 cat >conftest.$ac_ext <<_ACEOF
3747 #line $LINENO "configure"
3748 #include "confdefs.h"
3749 #include <sys/types.h>
3752 #ifdef F77_DUMMY_MAIN
3756 int F77_DUMMY_MAIN() { return 1; }
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 eval "$as_ac_Header=yes"
3781 echo "$as_me: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 eval "$as_ac_Header=no"
3785 rm -f conftest.$ac_objext conftest.$ac_ext
3787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3790 cat >>confdefs.h <<_ACEOF
3791 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3794 ac_header_dirent=$ac_hdr; break
3798 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3799 if test $ac_header_dirent = dirent.h; then
3800 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3801 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3802 if test "${ac_cv_search_opendir+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 ac_func_search_save_LIBS=$LIBS
3806 ac_cv_search_opendir=no
3807 cat >conftest.$ac_ext <<_ACEOF
3808 #line $LINENO "configure"
3809 #include "confdefs.h"
3811 /* Override any gcc2 internal prototype to avoid an error. */
3815 /* We use char because int might match the return type of a gcc2
3816 builtin and then its argument prototype would still apply. */
3818 #ifdef F77_DUMMY_MAIN
3822 int F77_DUMMY_MAIN() { return 1; }
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834 (eval $ac_link) 2>&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -s conftest$ac_exeext'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; }; then
3844 ac_cv_search_opendir="none required"
3846 echo "$as_me: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3850 if test "$ac_cv_search_opendir" = no; then
3851 for ac_lib in dir; do
3852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3853 cat >conftest.$ac_ext <<_ACEOF
3854 #line $LINENO "configure"
3855 #include "confdefs.h"
3857 /* Override any gcc2 internal prototype to avoid an error. */
3861 /* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3864 #ifdef F77_DUMMY_MAIN
3868 int F77_DUMMY_MAIN() { return 1; }
3878 rm -f conftest.$ac_objext conftest$ac_exeext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3880 (eval $ac_link) 2>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -s conftest$ac_exeext'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
3890 ac_cv_search_opendir="-l$ac_lib"
3893 echo "$as_me: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3899 LIBS=$ac_func_search_save_LIBS
3901 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3902 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3903 if test "$ac_cv_search_opendir" != no; then
3904 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3909 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3910 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3911 if test "${ac_cv_search_opendir+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 ac_func_search_save_LIBS=$LIBS
3915 ac_cv_search_opendir=no
3916 cat >conftest.$ac_ext <<_ACEOF
3917 #line $LINENO "configure"
3918 #include "confdefs.h"
3920 /* Override any gcc2 internal prototype to avoid an error. */
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3927 #ifdef F77_DUMMY_MAIN
3931 int F77_DUMMY_MAIN() { return 1; }
3941 rm -f conftest.$ac_objext conftest$ac_exeext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3943 (eval $ac_link) 2>&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } &&
3947 { ac_try='test -s conftest$ac_exeext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 ac_cv_search_opendir="none required"
3955 echo "$as_me: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3959 if test "$ac_cv_search_opendir" = no; then
3961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3962 cat >conftest.$ac_ext <<_ACEOF
3963 #line $LINENO "configure"
3964 #include "confdefs.h"
3966 /* Override any gcc2 internal prototype to avoid an error. */
3970 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3973 #ifdef F77_DUMMY_MAIN
3977 int F77_DUMMY_MAIN() { return 1; }
3987 rm -f conftest.$ac_objext conftest$ac_exeext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3989 (eval $ac_link) 2>&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -s conftest$ac_exeext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_cv_search_opendir="-l$ac_lib"
4002 echo "$as_me: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4008 LIBS=$ac_func_search_save_LIBS
4010 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4011 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4012 if test "$ac_cv_search_opendir" != no; then
4013 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4019 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4020 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4021 if test "${ac_cv_gettimeofday_args+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 #include "confdefs.h"
4028 #include <sys/time.h>
4029 #ifdef F77_DUMMY_MAIN
4033 int F77_DUMMY_MAIN() { return 1; }
4038 struct timeval tv; struct timezone tzp;
4039 gettimeofday(&tv, &tzp);
4044 rm -f conftest.$ac_objext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046 (eval $ac_compile) 2>&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } &&
4050 { ac_try='test -s conftest.$ac_objext'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4056 ac_gettimeofday_args=2
4058 echo "$as_me: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4060 cat >conftest.$ac_ext <<_ACEOF
4061 #line $LINENO "configure"
4062 #include "confdefs.h"
4064 #include <sys/time.h>
4065 #ifdef F77_DUMMY_MAIN
4069 int F77_DUMMY_MAIN() { return 1; }
4074 struct timeval tv; gettimeofday(&tv);
4079 rm -f conftest.$ac_objext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_gettimeofday_args=1
4093 echo "$as_me: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4095 ac_gettimeofday_args=0
4097 rm -f conftest.$ac_objext conftest.$ac_ext
4099 rm -f conftest.$ac_objext conftest.$ac_ext
4100 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4103 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4104 if test "$ac_gettimeofday_args" = 1 ; then
4105 cat >>confdefs.h <<\_ACEOF
4106 #define HAVE_GETTIMEOFDAY 1
4109 echo "$as_me:$LINENO: result: one argument" >&5
4110 echo "${ECHO_T}one argument" >&6
4111 elif test "$ac_gettimeofday_args" = 2 ; then
4112 cat >>confdefs.h <<\_ACEOF
4113 #define HAVE_GETTIMEOFDAY 1
4116 cat >>confdefs.h <<\_ACEOF
4117 #define GETTIMEOFDAY_TWO_ARGS 1
4120 echo "$as_me:$LINENO: result: two arguments" >&5
4121 echo "${ECHO_T}two arguments" >&6
4123 echo "$as_me:$LINENO: result: unknown" >&5
4124 echo "${ECHO_T}unknown" >&6
4136 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4139 echo "$as_me:$LINENO: checking for $ac_func" >&5
4140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4141 if eval "test \"\${$as_ac_var+set}\" = set"; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 cat >conftest.$ac_ext <<_ACEOF
4145 #line $LINENO "configure"
4146 #include "confdefs.h"
4147 /* System header to define __stub macros and hopefully few prototypes,
4148 which can conflict with char $ac_func (); below. */
4150 /* Override any gcc2 internal prototype to avoid an error. */
4154 /* We use char because int might match the return type of a gcc2
4155 builtin and then its argument prototype would still apply. */
4159 #ifdef F77_DUMMY_MAIN
4163 int F77_DUMMY_MAIN() { return 1; }
4168 /* The GNU C library defines this for functions which it implements
4169 to always fail with ENOSYS. Some functions are actually named
4170 something starting with __ and the normal name is an alias. */
4171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4181 rm -f conftest.$ac_objext conftest$ac_exeext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4183 (eval $ac_link) 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -s conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 eval "$as_ac_var=yes"
4195 echo "$as_me: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4197 eval "$as_ac_var=no"
4199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4203 if test `eval echo '${'$as_ac_var'}'` = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4216 for ac_func in sigaction syslog realpath setrlimit
4218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4219 echo "$as_me:$LINENO: checking for $ac_func" >&5
4220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4221 if eval "test \"\${$as_ac_var+set}\" = set"; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4226 #include "confdefs.h"
4227 /* System header to define __stub macros and hopefully few prototypes,
4228 which can conflict with char $ac_func (); below. */
4230 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4239 #ifdef F77_DUMMY_MAIN
4243 int F77_DUMMY_MAIN() { return 1; }
4248 /* The GNU C library defines this for functions which it implements
4249 to always fail with ENOSYS. Some functions are actually named
4250 something starting with __ and the normal name is an alias. */
4251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4261 rm -f conftest.$ac_objext conftest$ac_exeext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263 (eval $ac_link) 2>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 { ac_try='test -s conftest$ac_exeext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4273 eval "$as_ac_var=yes"
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 eval "$as_ac_var=no"
4279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4283 if test `eval echo '${'$as_ac_var'}'` = yes; then
4284 cat >>confdefs.h <<_ACEOF
4285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4291 echo "$as_me:$LINENO: checking for struct icmp" >&5
4292 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
4293 if test "${ac_cv_have_icmp+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 #include "confdefs.h"
4306 #include <sys/types.h>
4307 #include <sys/time.h>
4308 #include <sys/ipc.h>
4309 #include <sys/shm.h>
4310 #include <sys/socket.h>
4311 #include <netinet/in_systm.h>
4312 #include <netinet/in.h>
4313 #include <netinet/ip.h>
4314 #include <netinet/ip_icmp.h>
4315 #include <netinet/udp.h>
4316 #include <arpa/inet.h>
4318 #ifdef F77_DUMMY_MAIN
4322 int F77_DUMMY_MAIN() { return 1; }
4329 struct sockaddr_in si;
4331 i.icmp_type = ICMP_ECHO;
4336 si.sin_family = AF_INET;
4337 #if defined(__DECC) || defined(_IP_VHL)
4347 rm -f conftest.$ac_objext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349 (eval $ac_compile) 2>&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -s conftest.$ac_objext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4361 echo "$as_me: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4365 rm -f conftest.$ac_objext conftest.$ac_ext
4367 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
4368 echo "${ECHO_T}$ac_cv_have_icmp" >&6
4369 if test "$ac_cv_have_icmp" = yes ; then
4370 cat >>confdefs.h <<\_ACEOF
4375 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
4376 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
4377 if test "${ac_cv_have_icmphdr+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 cat >conftest.$ac_ext <<_ACEOF
4381 #line $LINENO "configure"
4382 #include "confdefs.h"
4390 #include <sys/types.h>
4391 #include <sys/time.h>
4392 #include <sys/ipc.h>
4393 #include <sys/shm.h>
4394 #include <sys/socket.h>
4395 #include <netinet/in_systm.h>
4396 #include <netinet/in.h>
4397 #include <netinet/ip.h>
4398 #include <netinet/ip_icmp.h>
4399 #include <netinet/udp.h>
4400 #include <arpa/inet.h>
4402 #ifdef F77_DUMMY_MAIN
4406 int F77_DUMMY_MAIN() { return 1; }
4413 struct sockaddr_in si;
4419 i.un.echo.sequence = 0;
4420 si.sin_family = AF_INET;
4426 rm -f conftest.$ac_objext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } &&
4432 { ac_try='test -s conftest.$ac_objext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_cv_have_icmphdr=yes
4440 echo "$as_me: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4442 ac_cv_have_icmphdr=no
4444 rm -f conftest.$ac_objext conftest.$ac_ext
4446 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
4447 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
4448 if test "$ac_cv_have_icmphdr" = yes ; then
4449 cat >>confdefs.h <<\_ACEOF
4450 #define HAVE_ICMPHDR 1
4456 for ac_header in crypt.h sys/select.h
4458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4460 echo "$as_me:$LINENO: checking for $ac_header" >&5
4461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4468 # Is the header compilable?
4469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4471 cat >conftest.$ac_ext <<_ACEOF
4472 #line $LINENO "configure"
4473 #include "confdefs.h"
4474 $ac_includes_default
4475 #include <$ac_header>
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_header_compiler=yes
4491 echo "$as_me: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4493 ac_header_compiler=no
4495 rm -f conftest.$ac_objext conftest.$ac_ext
4496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4497 echo "${ECHO_T}$ac_header_compiler" >&6
4499 # Is the header present?
4500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4502 cat >conftest.$ac_ext <<_ACEOF
4503 #line $LINENO "configure"
4504 #include "confdefs.h"
4505 #include <$ac_header>
4507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4510 egrep -v '^ *\+' conftest.er1 >conftest.err
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } >/dev/null; then
4515 if test -s conftest.err; then
4516 ac_cpp_err=$ac_c_preproc_warn_flag
4523 if test -z "$ac_cpp_err"; then
4524 ac_header_preproc=yes
4526 echo "$as_me: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4528 ac_header_preproc=no
4530 rm -f conftest.err conftest.$ac_ext
4531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4532 echo "${ECHO_T}$ac_header_preproc" >&6
4534 # So? What about this header?
4535 case $ac_header_compiler:$ac_header_preproc in
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4549 echo "$as_me:$LINENO: checking for $ac_header" >&5
4550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 eval "$as_ac_Header=$ac_header_preproc"
4556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561 cat >>confdefs.h <<_ACEOF
4562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4569 for ac_prog in perl5 perl
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575 if test "${ac_cv_path_PERL+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 PERL=$ac_cv_path_PERL
4602 if test -n "$PERL"; then
4603 echo "$as_me:$LINENO: result: $PERL" >&5
4604 echo "${ECHO_T}$PERL" >&6
4606 echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6
4610 test -n "$PERL" && break
4613 if test -z "$PERL" ; then
4616 echo "$as_me:$LINENO: checking perl version" >&5
4617 echo $ECHO_N "checking perl version... $ECHO_C" >&6
4618 if test "${ac_cv_perl_version+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
4623 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
4624 echo "${ECHO_T}$ac_cv_perl_version" >&6
4625 PERL_VERSION=$ac_cv_perl_version
4629 if test -z "$PERL" ; then
4630 # don't let it be blank...
4634 echo "$as_me:$LINENO: checking for X" >&5
4635 echo $ECHO_N "checking for X... $ECHO_C" >&6
4638 # Check whether --with-x or --without-x was given.
4639 if test "${with_x+set}" = set; then
4643 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4644 if test "x$with_x" = xno; then
4645 # The user explicitly disabled X.
4648 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4649 # Both variables are already set.
4652 if test "${ac_cv_have_x+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 # One or both of the vars are not set, and there is no cached value.
4656 ac_x_includes=no ac_x_libraries=no
4658 if mkdir conftest.dir; then
4660 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4661 cat >Imakefile <<'_ACEOF'
4663 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4665 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4666 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4667 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4668 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4669 for ac_extension in a so sl; do
4670 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4671 test -f $ac_im_libdir/libX11.$ac_extension; then
4672 ac_im_usrlibdir=$ac_im_libdir; break
4675 # Screen out bogus values from the imake configuration. They are
4676 # bogus both because they are the default anyway, and because
4677 # using them would break gcc on systems where it needs fixed includes.
4678 case $ac_im_incroot in
4680 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4682 case $ac_im_usrlibdir in
4684 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4691 # Standard set of common directories for X headers.
4692 # Check X11 before X11Rn because it is often a symlink to the current release.
4704 /usr/local/X11/include
4705 /usr/local/X11R6/include
4706 /usr/local/X11R5/include
4707 /usr/local/X11R4/include
4709 /usr/local/include/X11
4710 /usr/local/include/X11R6
4711 /usr/local/include/X11R5
4712 /usr/local/include/X11R4
4716 /usr/XFree86/include/X11
4720 /usr/unsupported/include
4722 /usr/local/x11r5/include
4723 /usr/lpp/Xamples/include
4725 /usr/openwin/include
4726 /usr/openwin/share/include'
4728 if test "$ac_x_includes" = no; then
4729 # Guess where to find include files, by looking for Intrinsic.h.
4730 # First, try using that file with no special directory specified.
4731 cat >conftest.$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4733 #include "confdefs.h"
4734 #include <X11/Intrinsic.h>
4736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4739 egrep -v '^ *\+' conftest.er1 >conftest.err
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } >/dev/null; then
4744 if test -s conftest.err; then
4745 ac_cpp_err=$ac_c_preproc_warn_flag
4752 if test -z "$ac_cpp_err"; then
4753 # We can compile using X headers with no special include directory.
4756 echo "$as_me: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4758 for ac_dir in $ac_x_header_dirs; do
4759 if test -r "$ac_dir/X11/Intrinsic.h"; then
4760 ac_x_includes=$ac_dir
4765 rm -f conftest.err conftest.$ac_ext
4766 fi # $ac_x_includes = no
4768 if test "$ac_x_libraries" = no; then
4769 # Check for the libraries.
4770 # See if we find them without any special options.
4771 # Don't add to $LIBS permanently.
4774 cat >conftest.$ac_ext <<_ACEOF
4775 #line $LINENO "configure"
4776 #include "confdefs.h"
4777 #include <X11/Intrinsic.h>
4778 #ifdef F77_DUMMY_MAIN
4782 int F77_DUMMY_MAIN() { return 1; }
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -s conftest$ac_exeext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4805 # We can link X programs with no special library path.
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4811 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4813 # Don't even attempt the hair of trying to link an X program!
4814 for ac_extension in a so sl; do
4815 if test -r $ac_dir/libXt.$ac_extension; then
4816 ac_x_libraries=$ac_dir
4822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4823 fi # $ac_x_libraries = no
4825 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4826 # Didn't find X anywhere. Cache the known absence of X.
4827 ac_cv_have_x="have_x=no"
4829 # Record where we found X for the cache.
4830 ac_cv_have_x="have_x=yes \
4831 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4836 eval "$ac_cv_have_x"
4839 if test "$have_x" != yes; then
4840 echo "$as_me:$LINENO: result: $have_x" >&5
4841 echo "${ECHO_T}$have_x" >&6
4844 # If each of the values was on the command line, it overrides each guess.
4845 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4846 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4847 # Update the cache value to reflect the command line values.
4848 ac_cv_have_x="have_x=yes \
4849 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4850 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4851 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4854 if test "$no_x" = yes; then
4855 # Not all programs may use this symbol, but it does not hurt to define it.
4857 cat >>confdefs.h <<\_ACEOF
4858 #define X_DISPLAY_MISSING 1
4861 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4863 if test -n "$x_includes"; then
4864 X_CFLAGS="$X_CFLAGS -I$x_includes"
4867 # It would also be nice to do this for all -L options, not just this one.
4868 if test -n "$x_libraries"; then
4869 X_LIBS="$X_LIBS -L$x_libraries"
4870 # For Solaris; some versions of Sun CC require a space after -R and
4871 # others require no space. Words are not sufficient . . . .
4872 case `(uname -sr) 2>/dev/null` in
4874 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4875 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4876 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4877 cat >conftest.$ac_ext <<_ACEOF
4878 #line $LINENO "configure"
4879 #include "confdefs.h"
4881 #ifdef F77_DUMMY_MAIN
4885 int F77_DUMMY_MAIN() { return 1; }
4895 rm -f conftest.$ac_objext conftest$ac_exeext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } &&
4901 { ac_try='test -s conftest$ac_exeext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4909 echo "$as_me: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4914 if test $ac_R_nospace = yes; then
4915 echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6
4917 X_LIBS="$X_LIBS -R$x_libraries"
4919 LIBS="$ac_xsave_LIBS -R $x_libraries"
4920 cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4922 #include "confdefs.h"
4924 #ifdef F77_DUMMY_MAIN
4928 int F77_DUMMY_MAIN() { return 1; }
4938 rm -f conftest.$ac_objext conftest$ac_exeext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4940 (eval $ac_link) 2>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -s conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4952 echo "$as_me: failed program was:" >&5
4953 cat conftest.$ac_ext >&5
4956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4957 if test $ac_R_space = yes; then
4958 echo "$as_me:$LINENO: result: yes" >&5
4959 echo "${ECHO_T}yes" >&6
4960 X_LIBS="$X_LIBS -R $x_libraries"
4962 echo "$as_me:$LINENO: result: neither works" >&5
4963 echo "${ECHO_T}neither works" >&6
4970 # Check for system-dependent libraries X programs must link with.
4971 # Do this before checking for the system-independent R6 libraries
4972 # (-lICE), since we may need -lsocket or whatever for X linking.
4974 if test "$ISC" = yes; then
4975 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4977 # Martyn Johnson says this is needed for Ultrix, if the X
4978 # libraries were built with DECnet support. And Karl Berry says
4979 # the Alpha needs dnet_stub (dnet does not exist).
4980 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 #include "confdefs.h"
4985 /* Override any gcc2 internal prototype to avoid an error. */
4989 /* We use char because int might match the return type of a gcc2
4990 builtin and then its argument prototype would still apply. */
4991 char XOpenDisplay ();
4992 #ifdef F77_DUMMY_MAIN
4996 int F77_DUMMY_MAIN() { return 1; }
5006 rm -f conftest.$ac_objext conftest$ac_exeext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5008 (eval $ac_link) 2>&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -s conftest$ac_exeext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5020 echo "$as_me: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5022 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5023 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5024 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 ac_check_lib_save_LIBS=$LIBS
5029 cat >conftest.$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5031 #include "confdefs.h"
5033 /* Override any gcc2 internal prototype to avoid an error. */
5037 /* We use char because int might match the return type of a gcc2
5038 builtin and then its argument prototype would still apply. */
5040 #ifdef F77_DUMMY_MAIN
5044 int F77_DUMMY_MAIN() { return 1; }
5054 rm -f conftest.$ac_objext conftest$ac_exeext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056 (eval $ac_link) 2>&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -s conftest$ac_exeext'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5066 ac_cv_lib_dnet_dnet_ntoa=yes
5068 echo "$as_me: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5070 ac_cv_lib_dnet_dnet_ntoa=no
5072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5073 LIBS=$ac_check_lib_save_LIBS
5075 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5076 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5077 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5078 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5081 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5082 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5083 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5084 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 ac_check_lib_save_LIBS=$LIBS
5088 LIBS="-ldnet_stub $LIBS"
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5091 #include "confdefs.h"
5093 /* Override any gcc2 internal prototype to avoid an error. */
5097 /* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */
5100 #ifdef F77_DUMMY_MAIN
5104 int F77_DUMMY_MAIN() { return 1; }
5114 rm -f conftest.$ac_objext conftest$ac_exeext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116 (eval $ac_link) 2>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try='test -s conftest$ac_exeext'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5126 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5128 echo "$as_me: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5130 ac_cv_lib_dnet_stub_dnet_ntoa=no
5132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5133 LIBS=$ac_check_lib_save_LIBS
5135 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5136 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5137 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5138 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5144 LIBS="$ac_xsave_LIBS"
5146 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5147 # to get the SysV transport functions.
5148 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5150 # The nsl library prevents programs from opening the X display
5151 # on Irix 5.2, according to T.E. Dickey.
5152 # The functions gethostbyname, getservbyname, and inet_addr are
5153 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5154 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5155 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5156 if test "${ac_cv_func_gethostbyname+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 cat >conftest.$ac_ext <<_ACEOF
5160 #line $LINENO "configure"
5161 #include "confdefs.h"
5162 /* System header to define __stub macros and hopefully few prototypes,
5163 which can conflict with char gethostbyname (); below. */
5165 /* Override any gcc2 internal prototype to avoid an error. */
5169 /* We use char because int might match the return type of a gcc2
5170 builtin and then its argument prototype would still apply. */
5171 char gethostbyname ();
5174 #ifdef F77_DUMMY_MAIN
5178 int F77_DUMMY_MAIN() { return 1; }
5183 /* The GNU C library defines this for functions which it implements
5184 to always fail with ENOSYS. Some functions are actually named
5185 something starting with __ and the normal name is an alias. */
5186 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5196 rm -f conftest.$ac_objext conftest$ac_exeext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5198 (eval $ac_link) 2>&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -s conftest$ac_exeext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_func_gethostbyname=yes
5210 echo "$as_me: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5212 ac_cv_func_gethostbyname=no
5214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5216 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5217 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5219 if test $ac_cv_func_gethostbyname = no; then
5220 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5221 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5222 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 ac_check_lib_save_LIBS=$LIBS
5227 cat >conftest.$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5229 #include "confdefs.h"
5231 /* Override any gcc2 internal prototype to avoid an error. */
5235 /* We use char because int might match the return type of a gcc2
5236 builtin and then its argument prototype would still apply. */
5237 char gethostbyname ();
5238 #ifdef F77_DUMMY_MAIN
5242 int F77_DUMMY_MAIN() { return 1; }
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -s conftest$ac_exeext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 ac_cv_lib_nsl_gethostbyname=yes
5266 echo "$as_me: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5268 ac_cv_lib_nsl_gethostbyname=no
5270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5271 LIBS=$ac_check_lib_save_LIBS
5273 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5274 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5275 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5276 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5279 if test $ac_cv_lib_nsl_gethostbyname = no; then
5280 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5281 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5282 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 ac_check_lib_save_LIBS=$LIBS
5287 cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 #include "confdefs.h"
5291 /* Override any gcc2 internal prototype to avoid an error. */
5295 /* We use char because int might match the return type of a gcc2
5296 builtin and then its argument prototype would still apply. */
5297 char gethostbyname ();
5298 #ifdef F77_DUMMY_MAIN
5302 int F77_DUMMY_MAIN() { return 1; }
5312 rm -f conftest.$ac_objext conftest$ac_exeext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5314 (eval $ac_link) 2>&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -s conftest$ac_exeext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 ac_cv_lib_bsd_gethostbyname=yes
5326 echo "$as_me: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5328 ac_cv_lib_bsd_gethostbyname=no
5330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5331 LIBS=$ac_check_lib_save_LIBS
5333 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5334 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5335 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5342 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5343 # socket/setsockopt and other routines are undefined under SCO ODT
5344 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5345 # on later versions), says Simon Leinen: it contains gethostby*
5346 # variants that don't use the nameserver (or something). -lsocket
5347 # must be given before -lnsl if both are needed. We assume that
5348 # if connect needs -lnsl, so does gethostbyname.
5349 echo "$as_me:$LINENO: checking for connect" >&5
5350 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5351 if test "${ac_cv_func_connect+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 cat >conftest.$ac_ext <<_ACEOF
5355 #line $LINENO "configure"
5356 #include "confdefs.h"
5357 /* System header to define __stub macros and hopefully few prototypes,
5358 which can conflict with char connect (); below. */
5360 /* Override any gcc2 internal prototype to avoid an error. */
5364 /* We use char because int might match the return type of a gcc2
5365 builtin and then its argument prototype would still apply. */
5369 #ifdef F77_DUMMY_MAIN
5373 int F77_DUMMY_MAIN() { return 1; }
5378 /* The GNU C library defines this for functions which it implements
5379 to always fail with ENOSYS. Some functions are actually named
5380 something starting with __ and the normal name is an alias. */
5381 #if defined (__stub_connect) || defined (__stub___connect)
5391 rm -f conftest.$ac_objext conftest$ac_exeext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5393 (eval $ac_link) 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -s conftest$ac_exeext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_cv_func_connect=yes
5405 echo "$as_me: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5407 ac_cv_func_connect=no
5409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5411 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5412 echo "${ECHO_T}$ac_cv_func_connect" >&6
5414 if test $ac_cv_func_connect = no; then
5415 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5416 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5417 if test "${ac_cv_lib_socket_connect+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 ac_check_lib_save_LIBS=$LIBS
5421 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5422 cat >conftest.$ac_ext <<_ACEOF
5423 #line $LINENO "configure"
5424 #include "confdefs.h"
5426 /* Override any gcc2 internal prototype to avoid an error. */
5430 /* We use char because int might match the return type of a gcc2
5431 builtin and then its argument prototype would still apply. */
5433 #ifdef F77_DUMMY_MAIN
5437 int F77_DUMMY_MAIN() { return 1; }
5447 rm -f conftest.$ac_objext conftest$ac_exeext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5449 (eval $ac_link) 2>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try='test -s conftest$ac_exeext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_cv_lib_socket_connect=yes
5461 echo "$as_me: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5463 ac_cv_lib_socket_connect=no
5465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5466 LIBS=$ac_check_lib_save_LIBS
5468 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5469 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5470 if test $ac_cv_lib_socket_connect = yes; then
5471 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5476 # Guillermo Gomez says -lposix is necessary on A/UX.
5477 echo "$as_me:$LINENO: checking for remove" >&5
5478 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5479 if test "${ac_cv_func_remove+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 #line $LINENO "configure"
5484 #include "confdefs.h"
5485 /* System header to define __stub macros and hopefully few prototypes,
5486 which can conflict with char remove (); below. */
5488 /* Override any gcc2 internal prototype to avoid an error. */
5492 /* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5497 #ifdef F77_DUMMY_MAIN
5501 int F77_DUMMY_MAIN() { return 1; }
5506 /* The GNU C library defines this for functions which it implements
5507 to always fail with ENOSYS. Some functions are actually named
5508 something starting with __ and the normal name is an alias. */
5509 #if defined (__stub_remove) || defined (__stub___remove)
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -s conftest$ac_exeext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_cv_func_remove=yes
5533 echo "$as_me: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5535 ac_cv_func_remove=no
5537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5539 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5540 echo "${ECHO_T}$ac_cv_func_remove" >&6
5542 if test $ac_cv_func_remove = no; then
5543 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5544 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5545 if test "${ac_cv_lib_posix_remove+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 ac_check_lib_save_LIBS=$LIBS
5549 LIBS="-lposix $LIBS"
5550 cat >conftest.$ac_ext <<_ACEOF
5551 #line $LINENO "configure"
5552 #include "confdefs.h"
5554 /* Override any gcc2 internal prototype to avoid an error. */
5558 /* We use char because int might match the return type of a gcc2
5559 builtin and then its argument prototype would still apply. */
5561 #ifdef F77_DUMMY_MAIN
5565 int F77_DUMMY_MAIN() { return 1; }
5575 rm -f conftest.$ac_objext conftest$ac_exeext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5577 (eval $ac_link) 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try='test -s conftest$ac_exeext'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; }; then
5587 ac_cv_lib_posix_remove=yes
5589 echo "$as_me: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5591 ac_cv_lib_posix_remove=no
5593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5594 LIBS=$ac_check_lib_save_LIBS
5596 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5597 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5598 if test $ac_cv_lib_posix_remove = yes; then
5599 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5604 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5605 echo "$as_me:$LINENO: checking for shmat" >&5
5606 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5607 if test "${ac_cv_func_shmat+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 cat >conftest.$ac_ext <<_ACEOF
5611 #line $LINENO "configure"
5612 #include "confdefs.h"
5613 /* System header to define __stub macros and hopefully few prototypes,
5614 which can conflict with char shmat (); below. */
5616 /* Override any gcc2 internal prototype to avoid an error. */
5620 /* We use char because int might match the return type of a gcc2
5621 builtin and then its argument prototype would still apply. */
5625 #ifdef F77_DUMMY_MAIN
5629 int F77_DUMMY_MAIN() { return 1; }
5634 /* The GNU C library defines this for functions which it implements
5635 to always fail with ENOSYS. Some functions are actually named
5636 something starting with __ and the normal name is an alias. */
5637 #if defined (__stub_shmat) || defined (__stub___shmat)
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -s conftest$ac_exeext'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5659 ac_cv_func_shmat=yes
5661 echo "$as_me: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5668 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5670 if test $ac_cv_func_shmat = no; then
5671 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5672 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5673 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 ac_check_lib_save_LIBS=$LIBS
5678 cat >conftest.$ac_ext <<_ACEOF
5679 #line $LINENO "configure"
5680 #include "confdefs.h"
5682 /* Override any gcc2 internal prototype to avoid an error. */
5686 /* We use char because int might match the return type of a gcc2
5687 builtin and then its argument prototype would still apply. */
5689 #ifdef F77_DUMMY_MAIN
5693 int F77_DUMMY_MAIN() { return 1; }
5703 rm -f conftest.$ac_objext conftest$ac_exeext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5705 (eval $ac_link) 2>&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try='test -s conftest$ac_exeext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_lib_ipc_shmat=yes
5717 echo "$as_me: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5719 ac_cv_lib_ipc_shmat=no
5721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5722 LIBS=$ac_check_lib_save_LIBS
5724 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5725 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5726 if test $ac_cv_lib_ipc_shmat = yes; then
5727 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5733 # Check for libraries that X11R6 Xt/Xaw programs need.
5734 ac_save_LDFLAGS=$LDFLAGS
5735 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5736 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5737 # check for ICE first), but we must link in the order -lSM -lICE or
5738 # we get undefined symbols. So assume we have SM if we have ICE.
5739 # These have to be linked with before -lX11, unlike the other
5740 # libraries we check for below, so use a different variable.
5741 # John Interrante, Karl Berry
5742 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5743 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5744 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 ac_check_lib_save_LIBS=$LIBS
5748 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5751 #include "confdefs.h"
5753 /* Override any gcc2 internal prototype to avoid an error. */
5757 /* We use char because int might match the return type of a gcc2
5758 builtin and then its argument prototype would still apply. */
5759 char IceConnectionNumber ();
5760 #ifdef F77_DUMMY_MAIN
5764 int F77_DUMMY_MAIN() { return 1; }
5769 IceConnectionNumber ();
5774 rm -f conftest.$ac_objext conftest$ac_exeext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776 (eval $ac_link) 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -s conftest$ac_exeext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_cv_lib_ICE_IceConnectionNumber=yes
5788 echo "$as_me: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5790 ac_cv_lib_ICE_IceConnectionNumber=no
5792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5793 LIBS=$ac_check_lib_save_LIBS
5795 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5796 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5797 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5798 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5801 LDFLAGS=$ac_save_LDFLAGS
5806 if test "$have_x" != yes; then
5807 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
5808 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
5809 { (exit 1); exit 1; }; }
5813 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
5814 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
5815 if test "${ac_cv_x_app_defaults+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 if mkdir conftestdir; then
5821 cd conftestdir 2>/dev/null
5822 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5823 cat > Imakefile <<'EOF'
5825 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
5827 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
5828 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
5829 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5834 if test x"$ac_x_app_defaults" = x; then
5836 # Look for the directory under a standard set of common directories.
5837 # Check X11 before X11Rn because it's often a symlink to the current release.
5839 /usr/X11/lib/app-defaults \
5840 /usr/X11R6/lib/app-defaults \
5841 /usr/X11R6/lib/X11/app-defaults \
5842 /usr/X11R5/lib/app-defaults \
5843 /usr/X11R5/lib/X11/app-defaults \
5844 /usr/X11R4/lib/app-defaults \
5845 /usr/X11R4/lib/X11/app-defaults \
5847 /usr/lib/X11/app-defaults \
5848 /usr/lib/X11R6/app-defaults \
5849 /usr/lib/X11R5/app-defaults \
5850 /usr/lib/X11R4/app-defaults \
5852 /usr/local/X11/lib/app-defaults \
5853 /usr/local/X11R6/lib/app-defaults \
5854 /usr/local/X11R5/lib/app-defaults \
5855 /usr/local/X11R4/lib/app-defaults \
5857 /usr/local/lib/X11/app-defaults \
5858 /usr/local/lib/X11R6/app-defaults \
5859 /usr/local/lib/X11R6/X11/app-defaults \
5860 /usr/local/lib/X11R5/app-defaults \
5861 /usr/local/lib/X11R5/X11/app-defaults \
5862 /usr/local/lib/X11R4/app-defaults \
5863 /usr/local/lib/X11R4/X11/app-defaults \
5865 /usr/X386/lib/X11/app-defaults \
5866 /usr/x386/lib/X11/app-defaults \
5867 /usr/XFree86/lib/X11/app-defaults \
5869 /usr/lib/X11/app-defaults \
5870 /usr/local/lib/X11/app-defaults \
5871 /usr/unsupported/lib/X11/app-defaults \
5872 /usr/athena/lib/X11/app-defaults \
5873 /usr/local/x11r5/lib/X11/app-defaults \
5874 /usr/lpp/Xamples/lib/X11/app-defaults \
5875 /lib/usr/lib/X11/app-defaults \
5877 /usr/openwin/lib/app-defaults \
5878 /usr/openwin/lib/X11/app-defaults \
5879 /usr/openwin/share/lib/app-defaults \
5880 /usr/openwin/share/lib/X11/app-defaults \
5882 /X11R6/lib/app-defaults \
5883 /X11R5/lib/app-defaults \
5884 /X11R4/lib/app-defaults \
5887 if test -d "$ac_dir"; then
5888 ac_x_app_defaults=$ac_dir
5894 if test x"$ac_x_app_defaults" = x; then
5895 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
5897 # Record where we found app-defaults for the cache.
5898 ac_cv_x_app_defaults="$ac_x_app_defaults"
5901 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
5902 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
5903 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
5907 # The following arcana was gleaned from conversations with
5908 # Eric Schwartz <erics@col.hp.com>:
5910 # On HPUX 10.x, the parts of X that HP considers "standard" live in
5911 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
5912 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
5913 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
5914 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
5915 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
5916 # you don't need any -I or -L arguments.
5918 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
5919 # are the same division as 10.x. However, there are no symlinks to
5920 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
5921 # arguments are always necessary.
5923 # However, X11R6 was available on HPUX 9.x as a patch: if that
5924 # patch was installed, then all of X11R6 went in to
5925 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
5927 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
5928 # whether R5 was available as a patch; R6 undoubtedly was not.)
5930 # So. We try and use the highest numbered pair of
5931 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
5932 # that are available. We do not mix and match different versions
5935 # Question I still don't know the answer to: (do you?)
5937 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
5938 # /usr/contrib/X11R6/ could be installed as a patch, what was in
5939 # that contrib directory? Did it contain so-called "standard"
5940 # X11R6, or did it include Xaw and Xmu as well? If the former,
5941 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
5942 # be a situation where one had to reach into the R5 headers and
5943 # libs to find Xmu? That is, must both R6 and R5 directories
5944 # be on the -I and -L lists in that case?
5946 for version in X11R6 X11R5 X11R4 ; do
5947 # if either pair of directories exists...
5948 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
5950 # if contrib exists, use it...
5951 if test -d /usr/contrib/$version/include ; then
5952 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
5953 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
5955 # if the "standard" one exists, use it.
5956 if test -d /usr/include/$version ; then
5957 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
5958 X_LIBS="$X_LIBS -L/usr/lib/$version"
5960 # since at least one of the pair exists, go no farther.
5965 # Now find Motif. Thanks for not making xmkmf find this by
5966 # default, you losers.
5968 if test -d /usr/include/Motif2.1 ; then
5969 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
5970 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
5971 elif test -d /usr/include/Motif1.2 ; then
5972 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
5973 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
5974 elif test -d /usr/include/Motif1.1 ; then
5975 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
5976 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
5979 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
5981 if test -d /opt/graphics/OpenGL/include ; then
5982 # HP-UX 10.20 puts it here
5983 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
5984 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
5985 elif test -d /opt/Mesa/lib ; then
5986 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
5987 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
5991 if test -d /opt/xpm/lib/X11 ; then
5992 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
5993 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
5996 # On HPUX, default to installing in /opt/xscreensaver/ instead of
5997 # in /usr/local/, unless there is already an xscreensaver in
5998 # /usr/local/bin/. This can be overridden with the --prefix arg
5999 # to configure. I'm not sure this is the right thing to do, but
6000 # Richard Lloyd says so...
6002 if test \! -x /usr/local/bin/xscreensaver ; then
6003 ac_default_prefix=/opt/xscreensaver
6009 # Thanks for not making xmkmf find this by default, pinheads.
6010 # And thanks for moving things around again, too. Is this
6011 # really the standard location now? What happened to the
6012 # joke that this kind of thing went in /opt?
6013 # cthomp says "answer: CDE (Common Disorganized Environment)"
6015 if test -f /usr/dt/include/Xm/Xm.h ; then
6016 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6017 X_LIBS="$X_LIBS -L/usr/dt/lib -R:/usr/dt/lib"
6019 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6020 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
6021 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
6022 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 ac_check_lib_save_LIBS=$LIBS
6027 cat >conftest.$ac_ext <<_ACEOF
6028 #line $LINENO "configure"
6029 #include "confdefs.h"
6031 /* Override any gcc2 internal prototype to avoid an error. */
6035 /* We use char because int might match the return type of a gcc2
6036 builtin and then its argument prototype would still apply. */
6038 #ifdef F77_DUMMY_MAIN
6042 int F77_DUMMY_MAIN() { return 1; }
6052 rm -f conftest.$ac_objext conftest$ac_exeext
6053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6054 (eval $ac_link) 2>&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } &&
6058 { ac_try='test -s conftest$ac_exeext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 ac_cv_lib_gen_regcmp=yes
6066 echo "$as_me: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6068 ac_cv_lib_gen_regcmp=no
6070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6071 LIBS=$ac_check_lib_save_LIBS
6073 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
6074 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
6075 if test $ac_cv_lib_gen_regcmp = yes; then
6076 X_LIBS="$X_LIBS -lgen"
6082 echo "$as_me:$LINENO: checking for XPointer" >&5
6083 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
6084 if test "${ac_cv_xpointer+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 ac_save_CPPFLAGS="$CPPFLAGS"
6089 if test \! -z "$includedir" ; then
6090 CPPFLAGS="$CPPFLAGS -I$includedir"
6092 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6093 cat >conftest.$ac_ext <<_ACEOF
6094 #line $LINENO "configure"
6095 #include "confdefs.h"
6096 #include <X11/Xlib.h>
6097 #ifdef F77_DUMMY_MAIN
6101 int F77_DUMMY_MAIN() { return 1; }
6106 XPointer foo = (XPointer) 0;
6111 rm -f conftest.$ac_objext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113 (eval $ac_compile) 2>&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -s conftest.$ac_objext'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6125 echo "$as_me: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6129 rm -f conftest.$ac_objext conftest.$ac_ext
6130 CPPFLAGS="$ac_save_CPPFLAGS"
6132 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
6133 echo "${ECHO_T}$ac_cv_xpointer" >&6
6134 if test "$ac_cv_xpointer" != yes; then
6135 cat >>confdefs.h <<\_ACEOF
6136 #define XPointer char*
6142 ###############################################################################
6146 ###############################################################################
6151 echo "$as_me:$LINENO: checking for intltool >= " >&5
6152 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
6154 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
6155 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
6157 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
6160 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
6161 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6162 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
6164 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
6165 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
6170 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
6171 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
6172 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'
6173 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
6174 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
6175 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'
6176 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
6177 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
6178 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
6179 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
6180 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
6194 # Use the tools built into the package, not the ones that are installed.
6196 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
6197 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
6198 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
6204 # Extract the first word of "perl", so it can be a program name with args.
6205 set dummy perl; ac_word=$2
6206 echo "$as_me:$LINENO: checking for $ac_word" >&5
6207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6208 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 case $INTLTOOL_PERL in
6213 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6235 if test -n "$INTLTOOL_PERL"; then
6236 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6237 echo "${ECHO_T}$INTLTOOL_PERL" >&6
6239 echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6
6243 if test -z "$INTLTOOL_PERL"; then
6244 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
6245 echo "$as_me: error: perl not found; required for intltool" >&2;}
6246 { (exit 1); exit 1; }; }
6248 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
6249 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
6250 echo "$as_me: error: perl 5.x required for intltool" >&2;}
6251 { (exit 1); exit 1; }; }
6254 # Remove file type tags (using []) from po/POTFILES.
6262 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
6264 ac_config_commands="$ac_config_commands default-1"
6268 GETTEXT_PACKAGE=xscreensaver
6269 cat >>confdefs.h <<_ACEOF
6270 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6273 cat >>confdefs.h <<_ACEOF
6274 #define PACKAGE "$GETTEXT_PACKAGE"
6279 # #### no sign of en_GB
6280 #ALL_LINGUAS="ca de en_GB et fr it ko pl sv da es fi hu ja no pt pt_BR ru wa"
6281 ALL_LINGUAS="ca de et fr it ko pl sv da es fi hu ja no pt pt_BR ru wa"
6282 if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6285 echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6287 if test "${ac_cv_prog_RANLIB+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 if test -n "$RANLIB"; then
6291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 RANLIB=$ac_cv_prog_RANLIB
6310 if test -n "$RANLIB"; then
6311 echo "$as_me:$LINENO: result: $RANLIB" >&5
6312 echo "${ECHO_T}$RANLIB" >&6
6314 echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6
6319 if test -z "$ac_cv_prog_RANLIB"; then
6320 ac_ct_RANLIB=$RANLIB
6321 # Extract the first word of "ranlib", so it can be a program name with args.
6322 set dummy ranlib; ac_word=$2
6323 echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6325 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 if test -n "$ac_ct_RANLIB"; then
6329 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_ac_ct_RANLIB="ranlib"
6339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6348 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6349 if test -n "$ac_ct_RANLIB"; then
6350 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6351 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6353 echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6
6357 RANLIB=$ac_ct_RANLIB
6359 RANLIB="$ac_cv_prog_RANLIB"
6362 echo "$as_me:$LINENO: checking for off_t" >&5
6363 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6364 if test "${ac_cv_type_off_t+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 cat >conftest.$ac_ext <<_ACEOF
6368 #line $LINENO "configure"
6369 #include "confdefs.h"
6370 $ac_includes_default
6371 #ifdef F77_DUMMY_MAIN
6375 int F77_DUMMY_MAIN() { return 1; }
6388 rm -f conftest.$ac_objext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390 (eval $ac_compile) 2>&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_cv_type_off_t=yes
6402 echo "$as_me: failed program was:" >&5
6403 cat conftest.$ac_ext >&5
6406 rm -f conftest.$ac_objext conftest.$ac_ext
6408 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6409 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6410 if test $ac_cv_type_off_t = yes; then
6414 cat >>confdefs.h <<_ACEOF
6420 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6421 # for constant arguments. Useless!
6422 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6423 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6424 if test "${ac_cv_working_alloca_h+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 cat >conftest.$ac_ext <<_ACEOF
6428 #line $LINENO "configure"
6429 #include "confdefs.h"
6431 #ifdef F77_DUMMY_MAIN
6435 int F77_DUMMY_MAIN() { return 1; }
6440 char *p = (char *) alloca (2 * sizeof (int));
6445 rm -f conftest.$ac_objext conftest$ac_exeext
6446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6447 (eval $ac_link) 2>&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } &&
6451 { ac_try='test -s conftest$ac_exeext'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
6457 ac_cv_working_alloca_h=yes
6459 echo "$as_me: failed program was:" >&5
6460 cat conftest.$ac_ext >&5
6461 ac_cv_working_alloca_h=no
6463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6465 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6466 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6467 if test $ac_cv_working_alloca_h = yes; then
6469 cat >>confdefs.h <<\_ACEOF
6470 #define HAVE_ALLOCA_H 1
6475 echo "$as_me:$LINENO: checking for alloca" >&5
6476 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6477 if test "${ac_cv_func_alloca_works+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 cat >conftest.$ac_ext <<_ACEOF
6481 #line $LINENO "configure"
6482 #include "confdefs.h"
6484 # define alloca __builtin_alloca
6487 # include <malloc.h>
6488 # define alloca _alloca
6491 # include <alloca.h>
6496 # ifndef alloca /* predefined by HP cc +Olibcalls */
6504 #ifdef F77_DUMMY_MAIN
6508 int F77_DUMMY_MAIN() { return 1; }
6513 char *p = (char *) alloca (1);
6518 rm -f conftest.$ac_objext conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520 (eval $ac_link) 2>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -s conftest$ac_exeext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 ac_cv_func_alloca_works=yes
6532 echo "$as_me: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6534 ac_cv_func_alloca_works=no
6536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6538 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6539 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6541 if test $ac_cv_func_alloca_works = yes; then
6543 cat >>confdefs.h <<\_ACEOF
6544 #define HAVE_ALLOCA 1
6548 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6549 # that cause trouble. Some versions do not even contain alloca or
6550 # contain a buggy version. If you still want to use their alloca,
6551 # use ar to extract alloca.o from them instead of compiling alloca.c.
6553 ALLOCA=alloca.$ac_objext
6555 cat >>confdefs.h <<\_ACEOF
6560 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6561 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6562 if test "${ac_cv_os_cray+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 cat >conftest.$ac_ext <<_ACEOF
6566 #line $LINENO "configure"
6567 #include "confdefs.h"
6568 #if defined(CRAY) && ! defined(CRAY2)
6575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6576 egrep "webecray" >/dev/null 2>&1; then
6584 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6585 echo "${ECHO_T}$ac_cv_os_cray" >&6
6586 if test $ac_cv_os_cray = yes; then
6587 for ac_func in _getb67 GETB67 getb67; do
6588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6589 echo "$as_me:$LINENO: checking for $ac_func" >&5
6590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6591 if eval "test \"\${$as_ac_var+set}\" = set"; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 cat >conftest.$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6596 #include "confdefs.h"
6597 /* System header to define __stub macros and hopefully few prototypes,
6598 which can conflict with char $ac_func (); below. */
6600 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6609 #ifdef F77_DUMMY_MAIN
6613 int F77_DUMMY_MAIN() { return 1; }
6618 /* The GNU C library defines this for functions which it implements
6619 to always fail with ENOSYS. Some functions are actually named
6620 something starting with __ and the normal name is an alias. */
6621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6631 rm -f conftest.$ac_objext conftest$ac_exeext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633 (eval $ac_link) 2>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -s conftest$ac_exeext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 eval "$as_ac_var=yes"
6645 echo "$as_me: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6647 eval "$as_ac_var=no"
6649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6653 if test `eval echo '${'$as_ac_var'}'` = yes; then
6655 cat >>confdefs.h <<_ACEOF
6656 #define CRAY_STACKSEG_END $ac_func
6665 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6666 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6667 if test "${ac_cv_c_stack_direction+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 if test "$cross_compiling" = yes; then
6671 ac_cv_c_stack_direction=0
6673 cat >conftest.$ac_ext <<_ACEOF
6674 #line $LINENO "configure"
6675 #include "confdefs.h"
6677 find_stack_direction ()
6679 static char *addr = 0;
6684 return find_stack_direction ();
6687 return (&dummy > addr) ? 1 : -1;
6693 exit (find_stack_direction () < 0);
6696 rm -f conftest$ac_exeext
6697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6698 (eval $ac_link) 2>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_c_stack_direction=1
6709 echo "$as_me: program exited with status $ac_status" >&5
6710 echo "$as_me: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
6713 ac_cv_c_stack_direction=-1
6715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6718 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6719 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6721 cat >>confdefs.h <<_ACEOF
6722 #define STACK_DIRECTION $ac_cv_c_stack_direction
6730 for ac_header in stdlib.h unistd.h
6732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6734 echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6742 # Is the header compilable?
6743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6745 cat >conftest.$ac_ext <<_ACEOF
6746 #line $LINENO "configure"
6747 #include "confdefs.h"
6748 $ac_includes_default
6749 #include <$ac_header>
6751 rm -f conftest.$ac_objext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6753 (eval $ac_compile) 2>&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -s conftest.$ac_objext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_header_compiler=yes
6765 echo "$as_me: failed program was:" >&5
6766 cat conftest.$ac_ext >&5
6767 ac_header_compiler=no
6769 rm -f conftest.$ac_objext conftest.$ac_ext
6770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6771 echo "${ECHO_T}$ac_header_compiler" >&6
6773 # Is the header present?
6774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6777 #line $LINENO "configure"
6778 #include "confdefs.h"
6779 #include <$ac_header>
6781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6784 egrep -v '^ *\+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } >/dev/null; then
6789 if test -s conftest.err; then
6790 ac_cpp_err=$ac_c_preproc_warn_flag
6797 if test -z "$ac_cpp_err"; then
6798 ac_header_preproc=yes
6800 echo "$as_me: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6802 ac_header_preproc=no
6804 rm -f conftest.err conftest.$ac_ext
6805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6806 echo "${ECHO_T}$ac_header_preproc" >&6
6808 # So? What about this header?
6809 case $ac_header_compiler:$ac_header_preproc in
6811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6823 echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 eval "$as_ac_Header=$ac_header_preproc"
6830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6835 cat >>confdefs.h <<_ACEOF
6836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6844 for ac_func in getpagesize
6846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6847 echo "$as_me:$LINENO: checking for $ac_func" >&5
6848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6849 if eval "test \"\${$as_ac_var+set}\" = set"; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 cat >conftest.$ac_ext <<_ACEOF
6853 #line $LINENO "configure"
6854 #include "confdefs.h"
6855 /* System header to define __stub macros and hopefully few prototypes,
6856 which can conflict with char $ac_func (); below. */
6858 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6867 #ifdef F77_DUMMY_MAIN
6871 int F77_DUMMY_MAIN() { return 1; }
6876 /* The GNU C library defines this for functions which it implements
6877 to always fail with ENOSYS. Some functions are actually named
6878 something starting with __ and the normal name is an alias. */
6879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6889 rm -f conftest.$ac_objext conftest$ac_exeext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6891 (eval $ac_link) 2>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -s conftest$ac_exeext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 eval "$as_ac_var=yes"
6903 echo "$as_me: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6905 eval "$as_ac_var=no"
6907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6911 if test `eval echo '${'$as_ac_var'}'` = yes; then
6912 cat >>confdefs.h <<_ACEOF
6913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6919 echo "$as_me:$LINENO: checking for working mmap" >&5
6920 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6921 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 if test "$cross_compiling" = yes; then
6925 ac_cv_func_mmap_fixed_mapped=no
6927 cat >conftest.$ac_ext <<_ACEOF
6928 #line $LINENO "configure"
6929 #include "confdefs.h"
6930 $ac_includes_default
6931 /* malloc might have been renamed as rpl_malloc. */
6934 /* Thanks to Mike Haertel and Jim Avera for this test.
6935 Here is a matrix of mmap possibilities:
6936 mmap private not fixed
6937 mmap private fixed at somewhere currently unmapped
6938 mmap private fixed at somewhere already mapped
6939 mmap shared not fixed
6940 mmap shared fixed at somewhere currently unmapped
6941 mmap shared fixed at somewhere already mapped
6942 For private mappings, we should verify that changes cannot be read()
6943 back from the file, nor mmap's back from the file at a different
6944 address. (There have been systems where private was not correctly
6945 implemented like the infamous i386 svr4.0, and systems where the
6946 VM page cache was not coherent with the file system buffer cache
6947 like early versions of FreeBSD and possibly contemporary NetBSD.)
6948 For shared mappings, we should conversely verify that changes get
6949 propagated back to all the places they're supposed to be.
6951 Grep wants private fixed already mapped.
6952 The main things grep needs to know about mmap are:
6953 * does it exist and is it safe to write into the mmap'd area
6954 * how to use it (BSD variants) */
6957 #include <sys/mman.h>
6959 #if !STDC_HEADERS && !HAVE_STDLIB_H
6963 /* This mess was copied from the GNU getpagesize.h. */
6964 #if !HAVE_GETPAGESIZE
6965 /* Assume that all systems that can run configure have sys/param.h. */
6966 # if !HAVE_SYS_PARAM_H
6967 # define HAVE_SYS_PARAM_H 1
6970 # ifdef _SC_PAGESIZE
6971 # define getpagesize() sysconf(_SC_PAGESIZE)
6972 # else /* no _SC_PAGESIZE */
6973 # if HAVE_SYS_PARAM_H
6974 # include <sys/param.h>
6975 # ifdef EXEC_PAGESIZE
6976 # define getpagesize() EXEC_PAGESIZE
6977 # else /* no EXEC_PAGESIZE */
6979 # define getpagesize() NBPG * CLSIZE
6982 # endif /* no CLSIZE */
6983 # else /* no NBPG */
6985 # define getpagesize() NBPC
6986 # else /* no NBPC */
6988 # define getpagesize() PAGESIZE
6989 # endif /* PAGESIZE */
6990 # endif /* no NBPC */
6991 # endif /* no NBPG */
6992 # endif /* no EXEC_PAGESIZE */
6993 # else /* no HAVE_SYS_PARAM_H */
6994 # define getpagesize() 8192 /* punt totally */
6995 # endif /* no HAVE_SYS_PARAM_H */
6996 # endif /* no _SC_PAGESIZE */
6998 #endif /* no HAVE_GETPAGESIZE */
7003 char *data, *data2, *data3;
7007 pagesize = getpagesize ();
7009 /* First, make a file with some known garbage in it. */
7010 data = (char *) malloc (pagesize);
7013 for (i = 0; i < pagesize; ++i)
7014 *(data + i) = rand ();
7016 fd = creat ("conftest.mmap", 0600);
7019 if (write (fd, data, pagesize) != pagesize)
7023 /* Next, try to mmap the file at a fixed address which already has
7024 something else allocated at it. If we can, also make sure that
7025 we see the same garbage. */
7026 fd = open ("conftest.mmap", O_RDWR);
7029 data2 = (char *) malloc (2 * pagesize);
7032 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7033 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7034 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7036 for (i = 0; i < pagesize; ++i)
7037 if (*(data + i) != *(data2 + i))
7040 /* Finally, make sure that changes to the mapped area do not
7041 percolate back to the file as seen by read(). (This is a bug on
7042 some variants of i386 svr4.0.) */
7043 for (i = 0; i < pagesize; ++i)
7044 *(data2 + i) = *(data2 + i) + 1;
7045 data3 = (char *) malloc (pagesize);
7048 if (read (fd, data3, pagesize) != pagesize)
7050 for (i = 0; i < pagesize; ++i)
7051 if (*(data + i) != *(data3 + i))
7057 rm -f conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_cv_func_mmap_fixed_mapped=yes
7070 echo "$as_me: program exited with status $ac_status" >&5
7071 echo "$as_me: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7074 ac_cv_func_mmap_fixed_mapped=no
7076 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7079 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7080 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7081 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7083 cat >>confdefs.h <<\_ACEOF
7099 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7100 unistd.h sys/param.h
7102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7104 echo "$as_me:$LINENO: checking for $ac_header" >&5
7105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7112 # Is the header compilable?
7113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7115 cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7117 #include "confdefs.h"
7118 $ac_includes_default
7119 #include <$ac_header>
7121 rm -f conftest.$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_header_compiler=yes
7135 echo "$as_me: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7137 ac_header_compiler=no
7139 rm -f conftest.$ac_objext conftest.$ac_ext
7140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7141 echo "${ECHO_T}$ac_header_compiler" >&6
7143 # Is the header present?
7144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7146 cat >conftest.$ac_ext <<_ACEOF
7147 #line $LINENO "configure"
7148 #include "confdefs.h"
7149 #include <$ac_header>
7151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7154 egrep -v '^ *\+' conftest.er1 >conftest.err
7156 cat conftest.err >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } >/dev/null; then
7159 if test -s conftest.err; then
7160 ac_cpp_err=$ac_c_preproc_warn_flag
7167 if test -z "$ac_cpp_err"; then
7168 ac_header_preproc=yes
7170 echo "$as_me: failed program was:" >&5
7171 cat conftest.$ac_ext >&5
7172 ac_header_preproc=no
7174 rm -f conftest.err conftest.$ac_ext
7175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7176 echo "${ECHO_T}$ac_header_preproc" >&6
7178 # So? What about this header?
7179 case $ac_header_compiler:$ac_header_preproc in
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7193 echo "$as_me:$LINENO: checking for $ac_header" >&5
7194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 eval "$as_ac_Header=$ac_header_preproc"
7200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7205 cat >>confdefs.h <<_ACEOF
7206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7225 strdup __argz_count __argz_stringify __argz_next
7227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7228 echo "$as_me:$LINENO: checking for $ac_func" >&5
7229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7230 if eval "test \"\${$as_ac_var+set}\" = set"; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 cat >conftest.$ac_ext <<_ACEOF
7234 #line $LINENO "configure"
7235 #include "confdefs.h"
7236 /* System header to define __stub macros and hopefully few prototypes,
7237 which can conflict with char $ac_func (); below. */
7239 /* Override any gcc2 internal prototype to avoid an error. */
7243 /* We use char because int might match the return type of a gcc2
7244 builtin and then its argument prototype would still apply. */
7248 #ifdef F77_DUMMY_MAIN
7252 int F77_DUMMY_MAIN() { return 1; }
7257 /* The GNU C library defines this for functions which it implements
7258 to always fail with ENOSYS. Some functions are actually named
7259 something starting with __ and the normal name is an alias. */
7260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7272 (eval $ac_link) 2>&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 eval "$as_ac_var=yes"
7284 echo "$as_me: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7286 eval "$as_ac_var=no"
7288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7292 if test `eval echo '${'$as_ac_var'}'` = yes; then
7293 cat >>confdefs.h <<_ACEOF
7294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7301 if test $ac_cv_header_locale_h = yes; then
7302 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7303 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7304 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 cat >conftest.$ac_ext <<_ACEOF
7308 #line $LINENO "configure"
7309 #include "confdefs.h"
7311 #ifdef F77_DUMMY_MAIN
7315 int F77_DUMMY_MAIN() { return 1; }
7325 rm -f conftest.$ac_objext conftest$ac_exeext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7327 (eval $ac_link) 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } &&
7331 { ac_try='test -s conftest$ac_exeext'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7337 am_cv_val_LC_MESSAGES=yes
7339 echo "$as_me: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7341 am_cv_val_LC_MESSAGES=no
7343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7345 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7346 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7347 if test $am_cv_val_LC_MESSAGES = yes; then
7349 cat >>confdefs.h <<\_ACEOF
7350 #define HAVE_LC_MESSAGES 1
7358 nls_cv_force_use_gnu_gettext="no"
7360 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7361 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7363 nls_cv_header_libgt=
7366 if test "${ac_cv_header_libintl_h+set}" = set; then
7367 echo "$as_me:$LINENO: checking for libintl.h" >&5
7368 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7369 if test "${ac_cv_header_libintl_h+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7373 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7375 # Is the header compilable?
7376 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7377 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7378 cat >conftest.$ac_ext <<_ACEOF
7379 #line $LINENO "configure"
7380 #include "confdefs.h"
7381 $ac_includes_default
7382 #include <libintl.h>
7384 rm -f conftest.$ac_objext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7386 (eval $ac_compile) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -s conftest.$ac_objext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7396 ac_header_compiler=yes
7398 echo "$as_me: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7400 ac_header_compiler=no
7402 rm -f conftest.$ac_objext conftest.$ac_ext
7403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7404 echo "${ECHO_T}$ac_header_compiler" >&6
7406 # Is the header present?
7407 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7408 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7409 cat >conftest.$ac_ext <<_ACEOF
7410 #line $LINENO "configure"
7411 #include "confdefs.h"
7412 #include <libintl.h>
7414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7417 egrep -v '^ *\+' conftest.er1 >conftest.err
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } >/dev/null; then
7422 if test -s conftest.err; then
7423 ac_cpp_err=$ac_c_preproc_warn_flag
7430 if test -z "$ac_cpp_err"; then
7431 ac_header_preproc=yes
7433 echo "$as_me: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 ac_header_preproc=no
7437 rm -f conftest.err conftest.$ac_ext
7438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7439 echo "${ECHO_T}$ac_header_preproc" >&6
7441 # So? What about this header?
7442 case $ac_header_compiler:$ac_header_preproc in
7444 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7445 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7446 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7447 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7449 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7450 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7452 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7454 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7456 echo "$as_me:$LINENO: checking for libintl.h" >&5
7457 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7458 if test "${ac_cv_header_libintl_h+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 ac_cv_header_libintl_h=$ac_header_preproc
7463 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7464 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7467 if test $ac_cv_header_libintl_h = yes; then
7468 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7469 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
7470 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 cat >conftest.$ac_ext <<_ACEOF
7474 #line $LINENO "configure"
7475 #include "confdefs.h"
7476 #include <libintl.h>
7477 #ifdef F77_DUMMY_MAIN
7481 int F77_DUMMY_MAIN() { return 1; }
7486 return (int) dgettext ("","")
7491 rm -f conftest.$ac_objext conftest$ac_exeext
7492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7493 (eval $ac_link) 2>&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -s conftest$ac_exeext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 gt_cv_func_dgettext_libc=yes
7505 echo "$as_me: failed program was:" >&5
7506 cat conftest.$ac_ext >&5
7507 gt_cv_func_dgettext_libc=no
7509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7511 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7512 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
7514 if test "$gt_cv_func_dgettext_libc" != "yes"; then
7515 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7516 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7517 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 ac_check_lib_save_LIBS=$LIBS
7522 cat >conftest.$ac_ext <<_ACEOF
7523 #line $LINENO "configure"
7524 #include "confdefs.h"
7526 /* Override any gcc2 internal prototype to avoid an error. */
7530 /* We use char because int might match the return type of a gcc2
7531 builtin and then its argument prototype would still apply. */
7532 char bindtextdomain ();
7533 #ifdef F77_DUMMY_MAIN
7537 int F77_DUMMY_MAIN() { return 1; }
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549 (eval $ac_link) 2>&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_lib_intl_bindtextdomain=yes
7561 echo "$as_me: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7563 ac_cv_lib_intl_bindtextdomain=no
7565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7566 LIBS=$ac_check_lib_save_LIBS
7568 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7569 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7570 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7571 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
7572 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
7573 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7577 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
7578 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_check_lib_save_LIBS=$LIBS
7583 cat >conftest.$ac_ext <<_ACEOF
7584 #line $LINENO "configure"
7585 #include "confdefs.h"
7587 /* Override any gcc2 internal prototype to avoid an error. */
7591 /* We use char because int might match the return type of a gcc2
7592 builtin and then its argument prototype would still apply. */
7594 #ifdef F77_DUMMY_MAIN
7598 int F77_DUMMY_MAIN() { return 1; }
7608 rm -f conftest.$ac_objext conftest$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try='test -s conftest$ac_exeext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 ac_cv_lib_intl_dgettext=yes
7622 echo "$as_me: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7624 ac_cv_lib_intl_dgettext=no
7626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7627 LIBS=$ac_check_lib_save_LIBS
7629 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7630 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
7631 if test $ac_cv_lib_intl_dgettext = yes; then
7632 gt_cv_func_dgettext_libintl=yes
7634 gt_cv_func_dgettext_libintl=no
7638 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
7639 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
7644 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7645 LIBS="$LIBS -lintl";
7648 if test "$gt_cv_func_dgettext_libc" = "yes" \
7649 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define HAVE_GETTEXT 1
7655 # Extract the first word of "msgfmt", so it can be a program name with args.
7656 set dummy msgfmt; ac_word=$2
7657 echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7659 if test "${ac_cv_path_MSGFMT+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7668 for ac_dir in $PATH; do
7669 test -z "$ac_dir" && ac_dir=.
7670 if test -f $ac_dir/$ac_word; then
7671 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7672 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7678 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7682 MSGFMT="$ac_cv_path_MSGFMT"
7683 if test -n "$MSGFMT"; then
7684 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7685 echo "${ECHO_T}$MSGFMT" >&6
7687 echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6
7690 if test "$MSGFMT" != "no"; then
7692 for ac_func in dcgettext
7694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7695 echo "$as_me:$LINENO: checking for $ac_func" >&5
7696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7697 if eval "test \"\${$as_ac_var+set}\" = set"; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 cat >conftest.$ac_ext <<_ACEOF
7701 #line $LINENO "configure"
7702 #include "confdefs.h"
7703 /* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char $ac_func (); below. */
7706 /* Override any gcc2 internal prototype to avoid an error. */
7710 /* We use char because int might match the return type of a gcc2
7711 builtin and then its argument prototype would still apply. */
7715 #ifdef F77_DUMMY_MAIN
7719 int F77_DUMMY_MAIN() { return 1; }
7724 /* The GNU C library defines this for functions which it implements
7725 to always fail with ENOSYS. Some functions are actually named
7726 something starting with __ and the normal name is an alias. */
7727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7737 rm -f conftest.$ac_objext conftest$ac_exeext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739 (eval $ac_link) 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 eval "$as_ac_var=yes"
7751 echo "$as_me: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 eval "$as_ac_var=no"
7755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7759 if test `eval echo '${'$as_ac_var'}'` = yes; then
7760 cat >>confdefs.h <<_ACEOF
7761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7767 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7768 set dummy gmsgfmt; ac_word=$2
7769 echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7771 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7797 GMSGFMT=$ac_cv_path_GMSGFMT
7799 if test -n "$GMSGFMT"; then
7800 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7801 echo "${ECHO_T}$GMSGFMT" >&6
7803 echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6
7807 # Extract the first word of "xgettext", so it can be a program name with args.
7808 set dummy xgettext; ac_word=$2
7809 echo "$as_me:$LINENO: checking for $ac_word" >&5
7810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7811 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7820 for ac_dir in $PATH; do
7821 test -z "$ac_dir" && ac_dir=.
7822 if test -f $ac_dir/$ac_word; then
7823 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7824 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7830 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7834 XGETTEXT="$ac_cv_path_XGETTEXT"
7835 if test -n "$XGETTEXT"; then
7836 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7837 echo "${ECHO_T}$XGETTEXT" >&6
7839 echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6
7843 cat >conftest.$ac_ext <<_ACEOF
7844 #line $LINENO "configure"
7845 #include "confdefs.h"
7847 #ifdef F77_DUMMY_MAIN
7851 int F77_DUMMY_MAIN() { return 1; }
7856 extern int _nl_msg_cat_cntr;
7857 return _nl_msg_cat_cntr
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864 (eval $ac_link) 2>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -s conftest$ac_exeext'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7877 echo "$as_me: failed program was:" >&5
7878 cat conftest.$ac_ext >&5
7882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7887 # Added by Martin Baulig 12/15/98 for libc5 systems
7888 if test "$gt_cv_func_dgettext_libc" != "yes" \
7889 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
7891 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7898 if test "$CATOBJEXT" = "NONE"; then
7899 nls_cv_use_gnu_gettext=yes
7903 if test "$nls_cv_use_gnu_gettext" != "yes"; then
7905 cat >>confdefs.h <<\_ACEOF
7906 #define ENABLE_NLS 1
7913 if test "$XGETTEXT" != ":"; then
7914 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7917 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7918 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7923 # We need to process the po/ directory.
7926 ac_config_commands="$ac_config_commands default-2"
7929 for lang in $ALL_LINGUAS; do
7930 GMOFILES="$GMOFILES $lang.gmo"
7931 POFILES="$POFILES $lang.po"
7946 if test "x$CATOBJEXT" != "x"; then
7947 if test "x$ALL_LINGUAS" = "x"; then
7950 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7951 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7953 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7954 case "$ALL_LINGUAS" in
7955 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7958 LINGUAS=$NEW_LINGUAS
7959 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7960 echo "${ECHO_T}$LINGUAS" >&6
7963 if test -n "$LINGUAS"; then
7964 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7968 test -d po || mkdir po
7969 if test "$CATOBJEXT" = ".cat"; then
7970 if test "${ac_cv_header_linux_version_h+set}" = set; then
7971 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7972 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7973 if test "${ac_cv_header_linux_version_h+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7977 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7979 # Is the header compilable?
7980 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7981 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7982 cat >conftest.$ac_ext <<_ACEOF
7983 #line $LINENO "configure"
7984 #include "confdefs.h"
7985 $ac_includes_default
7986 #include <linux/version.h>
7988 rm -f conftest.$ac_objext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7990 (eval $ac_compile) 2>&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -s conftest.$ac_objext'
7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; }; then
8000 ac_header_compiler=yes
8002 echo "$as_me: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8004 ac_header_compiler=no
8006 rm -f conftest.$ac_objext conftest.$ac_ext
8007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8008 echo "${ECHO_T}$ac_header_compiler" >&6
8010 # Is the header present?
8011 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8012 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8013 cat >conftest.$ac_ext <<_ACEOF
8014 #line $LINENO "configure"
8015 #include "confdefs.h"
8016 #include <linux/version.h>
8018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8021 egrep -v '^ *\+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } >/dev/null; then
8026 if test -s conftest.err; then
8027 ac_cpp_err=$ac_c_preproc_warn_flag
8034 if test -z "$ac_cpp_err"; then
8035 ac_header_preproc=yes
8037 echo "$as_me: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8039 ac_header_preproc=no
8041 rm -f conftest.err conftest.$ac_ext
8042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8043 echo "${ECHO_T}$ac_header_preproc" >&6
8045 # So? What about this header?
8046 case $ac_header_compiler:$ac_header_preproc in
8048 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8049 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8051 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
8053 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8054 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8055 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8056 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8057 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8058 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
8060 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8061 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8062 if test "${ac_cv_header_linux_version_h+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 ac_cv_header_linux_version_h=$ac_header_preproc
8067 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8068 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8071 if test $ac_cv_header_linux_version_h = yes; then
8079 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
8084 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
8086 # if test -n "$ac_aux_dir"; then
8087 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8089 if test -z "$MKINSTALLDIRS"; then
8090 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8093 # jwz: you know what, screw it. Let's just use the version that I
8094 # already computed in configure.in, instead of this version that came
8095 # with the i18n crud, ok?
8096 MKINSTALLDIRS="$INSTALL_DIRS"
8101 test -d po || mkdir po
8102 if test "x$srcdir" != "x."; then
8103 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8104 posrcprefix="$srcdir/"
8106 posrcprefix="../$srcdir/"
8112 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8113 < $srcdir/po/POTFILES.in > po/POTFILES
8117 ###############################################################################
8119 # Check for -lXmu (some fucked up vendors don't ship it...)
8121 ###############################################################################
8125 ac_save_CPPFLAGS="$CPPFLAGS"
8126 if test \! -z "$includedir" ; then
8127 CPPFLAGS="$CPPFLAGS -I$includedir"
8129 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8130 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
8131 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
8132 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 cat >conftest.$ac_ext <<_ACEOF
8136 #line $LINENO "configure"
8137 #include "confdefs.h"
8140 #include <X11/Intrinsic.h>
8142 #include <X11/Xmu/Error.h>
8144 rm -f conftest.$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146 (eval $ac_compile) 2>&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -s conftest.$ac_objext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 ac_cv_header_X11_Xmu_Error_h=yes
8158 echo "$as_me: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8160 ac_cv_header_X11_Xmu_Error_h=no
8162 rm -f conftest.$ac_objext conftest.$ac_ext
8164 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
8165 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
8166 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
8171 CPPFLAGS="$ac_save_CPPFLAGS"
8172 if test "$have_xmu" = no ; then
8173 XMU_SRCS='$(UTILS_SRC)/xmu.c'
8174 XMU_OBJS='$(UTILS_BIN)/xmu.o'
8180 cat >>confdefs.h <<\_ACEOF
8187 ###############################################################################
8189 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
8190 # See comp.windows.x FAQ question 124. The right fix is to
8191 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
8193 ###############################################################################
8195 if test "$have_xmu" = yes ; then
8198 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
8199 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
8200 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 ac_save_LDFLAGS="$LDFLAGS"
8204 if test \! -z "$x_libraries" ; then
8205 LDFLAGS="$LDFLAGS -L$x_libraries"
8207 # Note: this trick never works! (Generally.)
8208 # We're only getting away with using AC_TRY_LINK
8209 # with X libraries because we know it's SunOS.
8210 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
8211 cat >conftest.$ac_ext <<_ACEOF
8212 #line $LINENO "configure"
8213 #include "confdefs.h"
8215 #ifdef F77_DUMMY_MAIN
8219 int F77_DUMMY_MAIN() { return 1; }
8229 rm -f conftest.$ac_objext conftest$ac_exeext
8230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8231 (eval $ac_link) 2>&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } &&
8235 { ac_try='test -s conftest$ac_exeext'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_cv_sunos_xmu_bug=no
8243 echo "$as_me: failed program was:" >&5
8244 cat conftest.$ac_ext >&5
8245 ac_cv_sunos_xmu_bug=yes
8247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8248 LDFLAGS="$ac_save_LDFLAGS"
8250 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
8251 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
8252 if test "$ac_cv_sunos_xmu_bug" = yes ; then
8253 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
8254 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
8255 if test "${ac_cv_ld_static+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 ac_save_LDFLAGS="$LDFLAGS"
8259 LDFLAGS="$LDFLAGS -static"
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line $LINENO "configure"
8262 #include "confdefs.h"
8264 #ifdef F77_DUMMY_MAIN
8268 int F77_DUMMY_MAIN() { return 1; }
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8292 echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8297 LDFLAGS="$ac_save_LDFLAGS"
8299 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
8300 echo "${ECHO_T}$ac_cv_ld_static" >&6
8301 if test "$ac_cv_ld_static" = yes ; then
8302 LDFLAGS="$LDFLAGS -static"
8304 LDFLAGS="$LDFLAGS -Bstatic"
8312 ###############################################################################
8314 # Handle the --with-hackdir option
8316 ###############################################################################
8319 with_hackdir_req=unspecified
8321 # Check whether --with-hackdir or --without-hackdir was given.
8322 if test "${with_hackdir+set}" = set; then
8323 withval="$with_hackdir"
8324 with_hackdir="$withval"; with_hackdir_req="$withval"
8329 if test x"$with_hackdir" = xyes; then
8330 HACKDIR='${exec_prefix}/lib/xscreensaver'
8331 elif test x"$with_hackdir" = xno; then
8334 # there must be a better way than this...
8335 if test -z "`echo $with_hackdir | sed 's@^/.*@@'`" ; then
8337 HACKDIR=$with_hackdir
8340 HACKDIR="\${exec_prefix}$with_hackdir"
8344 # canonicalize slashes.
8345 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
8347 # This option used to be called --enable-subdir; make sure that is no longer
8348 # used, since configure brain-damagedly ignores unknown --enable options.
8351 # Check whether --enable-subdir or --disable-subdir was given.
8352 if test "${enable_subdir+set}" = set; then
8353 enableval="$enable_subdir"
8356 if test -n "$obsolete_enable"; then
8357 echo "error: the --enable-subdir option has been replaced with"
8358 echo " the new --with-hackdir option; see \`configure --help'"
8359 echo " for more information."
8364 ###############################################################################
8366 # Handle the --with-configdir option
8368 ###############################################################################
8371 with_configdir_req=unspecified
8373 # Check whether --with-configdir or --without-configdir was given.
8374 if test "${with_configdir+set}" = set; then
8375 withval="$with_configdir"
8376 with_configdir="$withval"; with_configdir_req="$withval"
8381 if test x"$with_configdir" = xyes; then
8382 # filled in later...
8384 elif test x"$with_configdir" = xno; then
8385 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
8388 # there must be a better way than this...
8389 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
8391 HACK_CONF_DIR=$with_configdir
8394 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
8401 ###############################################################################
8403 # Check for the SGI SCREEN_SAVER server extension.
8405 ###############################################################################
8408 with_sgi_req=unspecified
8410 # Check whether --with-sgi-ext or --without-sgi-ext was given.
8411 if test "${with_sgi_ext+set}" = set; then
8412 withval="$with_sgi_ext"
8413 with_sgi="$withval"; with_sgi_req="$withval"
8424 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
8425 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
8428 X_CFLAGS="-I$d $X_CFLAGS"
8429 echo "$as_me:$LINENO: result: $d" >&5
8430 echo "${ECHO_T}$d" >&6
8432 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8433 echo "${ECHO_T}not found ($d: no such directory)" >&6
8436 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
8437 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
8440 X_LIBS="-L$d $X_LIBS"
8441 echo "$as_me:$LINENO: result: $d" >&5
8442 echo "${ECHO_T}$d" >&6
8444 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8445 echo "${ECHO_T}not found ($d: no such directory)" >&6
8448 # replace the directory string with "yes".
8450 with_sgi=$with_sgi_req
8455 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
8456 echo " If it is a directory, then \`DIR/include' will be added to"
8457 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8463 if test "$with_sgi" = yes; then
8465 ac_save_CPPFLAGS="$CPPFLAGS"
8466 if test \! -z "$includedir" ; then
8467 CPPFLAGS="$CPPFLAGS -I$includedir"
8469 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8470 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
8471 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
8472 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 cat >conftest.$ac_ext <<_ACEOF
8476 #line $LINENO "configure"
8477 #include "confdefs.h"
8478 #include <X11/Xlib.h>
8480 #include <X11/extensions/XScreenSaver.h>
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -s conftest.$ac_objext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_header_X11_extensions_XScreenSaver_h=yes
8496 echo "$as_me: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8498 ac_cv_header_X11_extensions_XScreenSaver_h=no
8500 rm -f conftest.$ac_objext conftest.$ac_ext
8502 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
8503 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
8504 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
8506 cat >>confdefs.h <<\_ACEOF
8507 #define HAVE_SGI_SAVER_EXTENSION 1
8513 CPPFLAGS="$ac_save_CPPFLAGS"
8515 elif test "$with_sgi" != no; then
8516 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
8521 ###############################################################################
8523 # Check for the MIT-SCREEN-SAVER server extension.
8525 ###############################################################################
8528 with_mit_req=unspecified
8530 # Check whether --with-mit-ext or --without-mit-ext was given.
8531 if test "${with_mit_ext+set}" = set; then
8532 withval="$with_mit_ext"
8533 with_mit="$withval"; with_mit_req="$withval"
8544 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER headers" >&5
8545 echo $ECHO_N "checking for MIT-SCREEN-SAVER headers... $ECHO_C" >&6
8548 X_CFLAGS="-I$d $X_CFLAGS"
8549 echo "$as_me:$LINENO: result: $d" >&5
8550 echo "${ECHO_T}$d" >&6
8552 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8553 echo "${ECHO_T}not found ($d: no such directory)" >&6
8556 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER libs" >&5
8557 echo $ECHO_N "checking for MIT-SCREEN-SAVER libs... $ECHO_C" >&6
8560 X_LIBS="-L$d $X_LIBS"
8561 echo "$as_me:$LINENO: result: $d" >&5
8562 echo "${ECHO_T}$d" >&6
8564 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8565 echo "${ECHO_T}not found ($d: no such directory)" >&6
8568 # replace the directory string with "yes".
8570 with_mit=$with_mit_req
8575 echo "error: argument to --with-mit-ext must be \"yes\", \"no\", or a directory."
8576 echo " If it is a directory, then \`DIR/include' will be added to"
8577 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8583 if test "$with_mit" = yes; then
8585 ac_save_CPPFLAGS="$CPPFLAGS"
8586 if test \! -z "$includedir" ; then
8587 CPPFLAGS="$CPPFLAGS -I$includedir"
8589 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8590 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5
8591 echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6
8592 if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8597 #include "confdefs.h"
8598 #include <X11/Xlib.h>
8600 #include <X11/extensions/scrnsaver.h>
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604 (eval $ac_compile) 2>&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -s conftest.$ac_objext'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 ac_cv_header_X11_extensions_scrnsaver_h=yes
8616 echo "$as_me: failed program was:" >&5
8617 cat conftest.$ac_ext >&5
8618 ac_cv_header_X11_extensions_scrnsaver_h=no
8620 rm -f conftest.$ac_objext conftest.$ac_ext
8622 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5
8623 echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6
8624 if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then
8629 CPPFLAGS="$ac_save_CPPFLAGS"
8631 # Now check to see if it's really in the library; XF86Free-3.3 ships
8632 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
8634 if test "$have_mit" = yes; then
8636 ac_save_CPPFLAGS="$CPPFLAGS"
8637 ac_save_LDFLAGS="$LDFLAGS"
8638 # ac_save_LIBS="$LIBS"
8640 if test \! -z "$includedir" ; then
8641 CPPFLAGS="$CPPFLAGS -I$includedir"
8643 # note: $X_CFLAGS includes $x_includes
8644 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8646 if test \! -z "$libdir" ; then
8647 LDFLAGS="$LDFLAGS -L$libdir"
8649 # note: $X_LIBS includes $x_libraries
8650 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8652 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXext" >&5
8653 echo $ECHO_N "checking for XScreenSaverRegister in -lXext... $ECHO_C" >&6
8654 if test "${ac_cv_lib_Xext_XScreenSaverRegister+set}" = set; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 ac_check_lib_save_LIBS=$LIBS
8658 LIBS="-lXext -lm $LIBS"
8659 cat >conftest.$ac_ext <<_ACEOF
8660 #line $LINENO "configure"
8661 #include "confdefs.h"
8663 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8669 char XScreenSaverRegister ();
8670 #ifdef F77_DUMMY_MAIN
8674 int F77_DUMMY_MAIN() { return 1; }
8679 XScreenSaverRegister ();
8684 rm -f conftest.$ac_objext conftest$ac_exeext
8685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8686 (eval $ac_link) 2>&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
8690 { ac_try='test -s conftest$ac_exeext'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8696 ac_cv_lib_Xext_XScreenSaverRegister=yes
8698 echo "$as_me: failed program was:" >&5
8699 cat conftest.$ac_ext >&5
8700 ac_cv_lib_Xext_XScreenSaverRegister=no
8702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8703 LIBS=$ac_check_lib_save_LIBS
8705 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverRegister" >&5
8706 echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverRegister" >&6
8707 if test $ac_cv_lib_Xext_XScreenSaverRegister = yes; then
8713 CPPFLAGS="$ac_save_CPPFLAGS"
8714 LDFLAGS="$ac_save_LDFLAGS"
8715 # LIBS="$ac_save_LIBS"
8718 if test "$have_mit" = no; then
8719 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
8720 # of in Xext. Thank you master, may I have another.
8722 ac_save_CPPFLAGS="$CPPFLAGS"
8723 ac_save_LDFLAGS="$LDFLAGS"
8724 # ac_save_LIBS="$LIBS"
8726 if test \! -z "$includedir" ; then
8727 CPPFLAGS="$CPPFLAGS -I$includedir"
8729 # note: $X_CFLAGS includes $x_includes
8730 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8732 if test \! -z "$libdir" ; then
8733 LDFLAGS="$LDFLAGS -L$libdir"
8735 # note: $X_LIBS includes $x_libraries
8736 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8738 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXExExt" >&5
8739 echo $ECHO_N "checking for XScreenSaverRegister in -lXExExt... $ECHO_C" >&6
8740 if test "${ac_cv_lib_XExExt_XScreenSaverRegister+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 ac_check_lib_save_LIBS=$LIBS
8744 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
8745 cat >conftest.$ac_ext <<_ACEOF
8746 #line $LINENO "configure"
8747 #include "confdefs.h"
8749 /* Override any gcc2 internal prototype to avoid an error. */
8753 /* We use char because int might match the return type of a gcc2
8754 builtin and then its argument prototype would still apply. */
8755 char XScreenSaverRegister ();
8756 #ifdef F77_DUMMY_MAIN
8760 int F77_DUMMY_MAIN() { return 1; }
8765 XScreenSaverRegister ();
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_lib_XExExt_XScreenSaverRegister=yes
8784 echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8786 ac_cv_lib_XExExt_XScreenSaverRegister=no
8788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8789 LIBS=$ac_check_lib_save_LIBS
8791 echo "$as_me:$LINENO: result: $ac_cv_lib_XExExt_XScreenSaverRegister" >&5
8792 echo "${ECHO_T}$ac_cv_lib_XExExt_XScreenSaverRegister" >&6
8793 if test $ac_cv_lib_XExExt_XScreenSaverRegister = yes; then
8794 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
8799 CPPFLAGS="$ac_save_CPPFLAGS"
8800 LDFLAGS="$ac_save_LDFLAGS"
8801 # LIBS="$ac_save_LIBS"
8805 if test "$have_mit" = no; then
8806 # Double fuck! Looks like some versions of XFree86 (whichever version
8807 # it is that comes with RedHat Linux 2.0 -- I can't find a version
8808 # number) put this garbage in Xss instead of Xext. Thank you master,
8809 # may I have another.
8811 ac_save_CPPFLAGS="$CPPFLAGS"
8812 ac_save_LDFLAGS="$LDFLAGS"
8813 # ac_save_LIBS="$LIBS"
8815 if test \! -z "$includedir" ; then
8816 CPPFLAGS="$CPPFLAGS -I$includedir"
8818 # note: $X_CFLAGS includes $x_includes
8819 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8821 if test \! -z "$libdir" ; then
8822 LDFLAGS="$LDFLAGS -L$libdir"
8824 # note: $X_LIBS includes $x_libraries
8825 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8827 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXss" >&5
8828 echo $ECHO_N "checking for XScreenSaverRegister in -lXss... $ECHO_C" >&6
8829 if test "${ac_cv_lib_Xss_XScreenSaverRegister+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 ac_check_lib_save_LIBS=$LIBS
8833 LIBS="-lXss -lX11 -lXext -lm $LIBS"
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line $LINENO "configure"
8836 #include "confdefs.h"
8838 /* Override any gcc2 internal prototype to avoid an error. */
8842 /* We use char because int might match the return type of a gcc2
8843 builtin and then its argument prototype would still apply. */
8844 char XScreenSaverRegister ();
8845 #ifdef F77_DUMMY_MAIN
8849 int F77_DUMMY_MAIN() { return 1; }
8854 XScreenSaverRegister ();
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -s conftest$ac_exeext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 ac_cv_lib_Xss_XScreenSaverRegister=yes
8873 echo "$as_me: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 ac_cv_lib_Xss_XScreenSaverRegister=no
8877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8878 LIBS=$ac_check_lib_save_LIBS
8880 echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverRegister" >&5
8881 echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverRegister" >&6
8882 if test $ac_cv_lib_Xss_XScreenSaverRegister = yes; then
8883 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
8888 CPPFLAGS="$ac_save_CPPFLAGS"
8889 LDFLAGS="$ac_save_LDFLAGS"
8890 # LIBS="$ac_save_LIBS"
8894 if test "$have_mit" = yes; then
8895 cat >>confdefs.h <<\_ACEOF
8896 #define HAVE_MIT_SAVER_EXTENSION 1
8903 elif test "$with_mit" != no; then
8904 echo "error: must be yes or no: --with-mit-ext=$with_mit"
8909 ###############################################################################
8911 # Check for the XIDLE server extension.
8913 ###############################################################################
8916 with_xidle_req=unspecified
8918 # Check whether --with-xidle-ext or --without-xidle-ext was given.
8919 if test "${with_xidle_ext+set}" = set; then
8920 withval="$with_xidle_ext"
8921 with_xidle="$withval"; with_xidle_req="$withval"
8927 case "$with_xidle" in
8932 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
8933 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
8934 d=$with_xidle/include
8936 X_CFLAGS="-I$d $X_CFLAGS"
8937 echo "$as_me:$LINENO: result: $d" >&5
8938 echo "${ECHO_T}$d" >&6
8940 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8941 echo "${ECHO_T}not found ($d: no such directory)" >&6
8944 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
8945 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
8948 X_LIBS="-L$d $X_LIBS"
8949 echo "$as_me:$LINENO: result: $d" >&5
8950 echo "${ECHO_T}$d" >&6
8952 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8953 echo "${ECHO_T}not found ($d: no such directory)" >&6
8956 # replace the directory string with "yes".
8957 with_xidle_req="yes"
8958 with_xidle=$with_xidle_req
8963 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
8964 echo " If it is a directory, then \`DIR/include' will be added to"
8965 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8971 if test "$with_xidle" = yes; then
8973 ac_save_CPPFLAGS="$CPPFLAGS"
8974 if test \! -z "$includedir" ; then
8975 CPPFLAGS="$CPPFLAGS -I$includedir"
8977 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8978 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
8979 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
8980 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 cat >conftest.$ac_ext <<_ACEOF
8984 #line $LINENO "configure"
8985 #include "confdefs.h"
8986 #include <X11/Xlib.h>
8988 #include <X11/extensions/xidle.h>
8990 rm -f conftest.$ac_objext
8991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8992 (eval $ac_compile) 2>&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } &&
8996 { ac_try='test -s conftest.$ac_objext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_cv_header_X11_extensions_xidle_h=yes
9004 echo "$as_me: failed program was:" >&5
9005 cat conftest.$ac_ext >&5
9006 ac_cv_header_X11_extensions_xidle_h=no
9008 rm -f conftest.$ac_objext conftest.$ac_ext
9010 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
9011 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
9012 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_XIDLE_EXTENSION 1
9021 CPPFLAGS="$ac_save_CPPFLAGS"
9022 elif test "$with_xidle" != no; then
9023 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
9028 ###############################################################################
9030 # Check for the SGI-VIDEO-CONTROL server extension.
9032 ###############################################################################
9035 with_sgivc_req=unspecified
9037 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
9038 if test "${with_sgivc_ext+set}" = set; then
9039 withval="$with_sgivc_ext"
9040 with_sgivc="$withval"; with_sgivc_req="$withval"
9046 case "$with_sgivc" in
9051 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
9052 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
9053 d=$with_sgivc/include
9055 X_CFLAGS="-I$d $X_CFLAGS"
9056 echo "$as_me:$LINENO: result: $d" >&5
9057 echo "${ECHO_T}$d" >&6
9059 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9060 echo "${ECHO_T}not found ($d: no such directory)" >&6
9063 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
9064 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
9067 X_LIBS="-L$d $X_LIBS"
9068 echo "$as_me:$LINENO: result: $d" >&5
9069 echo "${ECHO_T}$d" >&6
9071 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9072 echo "${ECHO_T}not found ($d: no such directory)" >&6
9075 # replace the directory string with "yes".
9076 with_sgivc_req="yes"
9077 with_sgivc=$with_sgivc_req
9082 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
9083 echo " If it is a directory, then \`DIR/include' will be added to"
9084 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9090 if test "$with_sgivc" = yes; then
9092 # first check for XSGIvc.h
9094 ac_save_CPPFLAGS="$CPPFLAGS"
9095 if test \! -z "$includedir" ; then
9096 CPPFLAGS="$CPPFLAGS -I$includedir"
9098 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9099 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
9100 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
9101 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 cat >conftest.$ac_ext <<_ACEOF
9105 #line $LINENO "configure"
9106 #include "confdefs.h"
9107 #include <X11/Xlib.h>
9109 #include <X11/extensions/XSGIvc.h>
9111 rm -f conftest.$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113 (eval $ac_compile) 2>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -s conftest.$ac_objext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 ac_cv_header_X11_extensions_XSGIvc_h=yes
9125 echo "$as_me: failed program was:" >&5
9126 cat conftest.$ac_ext >&5
9127 ac_cv_header_X11_extensions_XSGIvc_h=no
9129 rm -f conftest.$ac_objext conftest.$ac_ext
9131 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
9132 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
9133 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
9138 CPPFLAGS="$ac_save_CPPFLAGS"
9140 # if that succeeded, then check for the -lXsgivc
9141 if test "$have_sgivc" = yes; then
9144 ac_save_CPPFLAGS="$CPPFLAGS"
9145 ac_save_LDFLAGS="$LDFLAGS"
9146 # ac_save_LIBS="$LIBS"
9148 if test \! -z "$includedir" ; then
9149 CPPFLAGS="$CPPFLAGS -I$includedir"
9151 # note: $X_CFLAGS includes $x_includes
9152 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9154 if test \! -z "$libdir" ; then
9155 LDFLAGS="$LDFLAGS -L$libdir"
9157 # note: $X_LIBS includes $x_libraries
9158 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9160 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
9161 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
9162 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 ac_check_lib_save_LIBS=$LIBS
9166 LIBS="-lXsgivc -lXext -lX11 $LIBS"
9167 cat >conftest.$ac_ext <<_ACEOF
9168 #line $LINENO "configure"
9169 #include "confdefs.h"
9171 /* Override any gcc2 internal prototype to avoid an error. */
9175 /* We use char because int might match the return type of a gcc2
9176 builtin and then its argument prototype would still apply. */
9177 char XSGIvcQueryGammaMap ();
9178 #ifdef F77_DUMMY_MAIN
9182 int F77_DUMMY_MAIN() { return 1; }
9187 XSGIvcQueryGammaMap ();
9192 rm -f conftest.$ac_objext conftest$ac_exeext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194 (eval $ac_link) 2>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -s conftest$ac_exeext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
9206 echo "$as_me: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9208 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
9210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9211 LIBS=$ac_check_lib_save_LIBS
9213 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
9214 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
9215 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
9216 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
9221 CPPFLAGS="$ac_save_CPPFLAGS"
9222 LDFLAGS="$ac_save_LDFLAGS"
9223 # LIBS="$ac_save_LIBS"
9227 # if that succeeded, then we've really got it.
9228 if test "$have_sgivc" = yes; then
9229 cat >>confdefs.h <<\_ACEOF
9230 #define HAVE_SGI_VC_EXTENSION 1
9235 elif test "$with_sgivc" != no; then
9236 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
9241 ###############################################################################
9243 # Check for the DPMS server extension.
9245 ###############################################################################
9248 with_dpms_req=unspecified
9250 # Check whether --with-dpms-ext or --without-dpms-ext was given.
9251 if test "${with_dpms_ext+set}" = set; then
9252 withval="$with_dpms_ext"
9253 with_dpms="$withval"; with_dpms_req="$withval"
9259 case "$with_dpms" in
9264 echo "$as_me:$LINENO: checking for DPMS headers" >&5
9265 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
9266 d=$with_dpms/include
9268 X_CFLAGS="-I$d $X_CFLAGS"
9269 echo "$as_me:$LINENO: result: $d" >&5
9270 echo "${ECHO_T}$d" >&6
9272 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9273 echo "${ECHO_T}not found ($d: no such directory)" >&6
9276 echo "$as_me:$LINENO: checking for DPMS libs" >&5
9277 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
9280 X_LIBS="-L$d $X_LIBS"
9281 echo "$as_me:$LINENO: result: $d" >&5
9282 echo "${ECHO_T}$d" >&6
9284 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9285 echo "${ECHO_T}not found ($d: no such directory)" >&6
9288 # replace the directory string with "yes".
9290 with_dpms=$with_dpms_req
9295 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
9296 echo " If it is a directory, then \`DIR/include' will be added to"
9297 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9303 if test "$with_dpms" = yes; then
9305 # first check for dpms.h
9307 ac_save_CPPFLAGS="$CPPFLAGS"
9308 if test \! -z "$includedir" ; then
9309 CPPFLAGS="$CPPFLAGS -I$includedir"
9311 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9312 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
9313 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
9314 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 cat >conftest.$ac_ext <<_ACEOF
9318 #line $LINENO "configure"
9319 #include "confdefs.h"
9320 #include <X11/Xlib.h>
9322 #include <X11/extensions/dpms.h>
9324 rm -f conftest.$ac_objext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9326 (eval $ac_compile) 2>&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
9330 { ac_try='test -s conftest.$ac_objext'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 ac_cv_header_X11_extensions_dpms_h=yes
9338 echo "$as_me: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9340 ac_cv_header_X11_extensions_dpms_h=no
9342 rm -f conftest.$ac_objext conftest.$ac_ext
9344 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
9345 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
9346 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
9351 CPPFLAGS="$ac_save_CPPFLAGS"
9353 # if that succeeded, then check for the DPMS code in the libraries
9354 if test "$have_dpms" = yes; then
9356 # first look in -lXext (this is where it is with XFree86 4.0)
9359 ac_save_CPPFLAGS="$CPPFLAGS"
9360 ac_save_LDFLAGS="$LDFLAGS"
9361 # ac_save_LIBS="$LIBS"
9363 if test \! -z "$includedir" ; then
9364 CPPFLAGS="$CPPFLAGS -I$includedir"
9366 # note: $X_CFLAGS includes $x_includes
9367 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9369 if test \! -z "$libdir" ; then
9370 LDFLAGS="$LDFLAGS -L$libdir"
9372 # note: $X_LIBS includes $x_libraries
9373 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9375 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
9376 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
9377 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 ac_check_lib_save_LIBS=$LIBS
9381 LIBS="-lXext -lXext -lX11 $LIBS"
9382 cat >conftest.$ac_ext <<_ACEOF
9383 #line $LINENO "configure"
9384 #include "confdefs.h"
9386 /* Override any gcc2 internal prototype to avoid an error. */
9390 /* We use char because int might match the return type of a gcc2
9391 builtin and then its argument prototype would still apply. */
9393 #ifdef F77_DUMMY_MAIN
9397 int F77_DUMMY_MAIN() { return 1; }
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -s conftest$ac_exeext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 ac_cv_lib_Xext_DPMSInfo=yes
9421 echo "$as_me: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 ac_cv_lib_Xext_DPMSInfo=no
9425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9426 LIBS=$ac_check_lib_save_LIBS
9428 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
9429 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
9430 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
9436 CPPFLAGS="$ac_save_CPPFLAGS"
9437 LDFLAGS="$ac_save_LDFLAGS"
9438 # LIBS="$ac_save_LIBS"
9441 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
9442 if test "$have_dpms" = no; then
9444 ac_save_CPPFLAGS="$CPPFLAGS"
9445 ac_save_LDFLAGS="$LDFLAGS"
9446 # ac_save_LIBS="$LIBS"
9448 if test \! -z "$includedir" ; then
9449 CPPFLAGS="$CPPFLAGS -I$includedir"
9451 # note: $X_CFLAGS includes $x_includes
9452 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9454 if test \! -z "$libdir" ; then
9455 LDFLAGS="$LDFLAGS -L$libdir"
9457 # note: $X_LIBS includes $x_libraries
9458 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9460 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
9461 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
9462 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 ac_check_lib_save_LIBS=$LIBS
9466 LIBS="-lXdpms -lXext -lX11 $LIBS"
9467 cat >conftest.$ac_ext <<_ACEOF
9468 #line $LINENO "configure"
9469 #include "confdefs.h"
9471 /* Override any gcc2 internal prototype to avoid an error. */
9475 /* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
9478 #ifdef F77_DUMMY_MAIN
9482 int F77_DUMMY_MAIN() { return 1; }
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -s conftest$ac_exeext'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 ac_cv_lib_Xdpms_DPMSInfo=yes
9506 echo "$as_me: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9508 ac_cv_lib_Xdpms_DPMSInfo=no
9510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9511 LIBS=$ac_check_lib_save_LIBS
9513 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
9514 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
9515 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
9516 have_dpms=yes; XDPMS_LIBS="-lXdpms"
9521 CPPFLAGS="$ac_save_CPPFLAGS"
9522 LDFLAGS="$ac_save_LDFLAGS"
9523 # LIBS="$ac_save_LIBS"
9529 # if that succeeded, then we've really got it.
9530 if test "$have_dpms" = yes; then
9531 cat >>confdefs.h <<\_ACEOF
9532 #define HAVE_DPMS_EXTENSION 1
9537 elif test "$with_dpms" != no; then
9538 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
9543 ###############################################################################
9545 # Check for the XINERAMA server extension.
9547 ###############################################################################
9550 with_xinerama_req=unspecified
9552 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
9553 if test "${with_xinerama_ext+set}" = set; then
9554 withval="$with_xinerama_ext"
9555 with_xinerama="$withval"; with_xinerama_req="$withval"
9561 case "$with_xinerama" in
9566 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
9567 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
9568 d=$with_xinerama/include
9570 X_CFLAGS="-I$d $X_CFLAGS"
9571 echo "$as_me:$LINENO: result: $d" >&5
9572 echo "${ECHO_T}$d" >&6
9574 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9575 echo "${ECHO_T}not found ($d: no such directory)" >&6
9578 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
9579 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
9580 d=$with_xinerama/lib
9582 X_LIBS="-L$d $X_LIBS"
9583 echo "$as_me:$LINENO: result: $d" >&5
9584 echo "${ECHO_T}$d" >&6
9586 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9587 echo "${ECHO_T}not found ($d: no such directory)" >&6
9590 # replace the directory string with "yes".
9591 with_xinerama_req="yes"
9592 with_xinerama=$with_xinerama_req
9597 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
9598 echo " If it is a directory, then \`DIR/include' will be added to"
9599 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9605 if test "$with_xinerama" = yes; then
9607 # first check for Xinerama.h
9609 ac_save_CPPFLAGS="$CPPFLAGS"
9610 if test \! -z "$includedir" ; then
9611 CPPFLAGS="$CPPFLAGS -I$includedir"
9613 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9614 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
9615 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
9616 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9620 #line $LINENO "configure"
9621 #include "confdefs.h"
9622 #include <X11/Xlib.h>
9624 #include <X11/extensions/Xinerama.h>
9626 rm -f conftest.$ac_objext
9627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9628 (eval $ac_compile) 2>&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -s conftest.$ac_objext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_header_X11_extensions_Xinerama_h=yes
9640 echo "$as_me: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9642 ac_cv_header_X11_extensions_Xinerama_h=no
9644 rm -f conftest.$ac_objext conftest.$ac_ext
9646 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
9647 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
9648 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
9653 CPPFLAGS="$ac_save_CPPFLAGS"
9655 # if that succeeded, then check for the XINERAMA code in the libraries
9656 if test "$have_xinerama" = yes; then
9658 # first look in -lXext
9661 ac_save_CPPFLAGS="$CPPFLAGS"
9662 ac_save_LDFLAGS="$LDFLAGS"
9663 # ac_save_LIBS="$LIBS"
9665 if test \! -z "$includedir" ; then
9666 CPPFLAGS="$CPPFLAGS -I$includedir"
9668 # note: $X_CFLAGS includes $x_includes
9669 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9671 if test \! -z "$libdir" ; then
9672 LDFLAGS="$LDFLAGS -L$libdir"
9674 # note: $X_LIBS includes $x_libraries
9675 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9677 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXext" >&5
9678 echo $ECHO_N "checking for XineramaQueryExtension in -lXext... $ECHO_C" >&6
9679 if test "${ac_cv_lib_Xext_XineramaQueryExtension+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 ac_check_lib_save_LIBS=$LIBS
9683 LIBS="-lXext -lXext -lX11 $LIBS"
9684 cat >conftest.$ac_ext <<_ACEOF
9685 #line $LINENO "configure"
9686 #include "confdefs.h"
9688 /* Override any gcc2 internal prototype to avoid an error. */
9692 /* We use char because int might match the return type of a gcc2
9693 builtin and then its argument prototype would still apply. */
9694 char XineramaQueryExtension ();
9695 #ifdef F77_DUMMY_MAIN
9699 int F77_DUMMY_MAIN() { return 1; }
9704 XineramaQueryExtension ();
9709 rm -f conftest.$ac_objext conftest$ac_exeext
9710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9711 (eval $ac_link) 2>&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -s conftest$ac_exeext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_cv_lib_Xext_XineramaQueryExtension=yes
9723 echo "$as_me: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9725 ac_cv_lib_Xext_XineramaQueryExtension=no
9727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9730 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryExtension" >&5
9731 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryExtension" >&6
9732 if test $ac_cv_lib_Xext_XineramaQueryExtension = yes; then
9738 CPPFLAGS="$ac_save_CPPFLAGS"
9739 LDFLAGS="$ac_save_LDFLAGS"
9740 # LIBS="$ac_save_LIBS"
9743 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
9744 if test "$have_xinerama" = no; then
9746 ac_save_CPPFLAGS="$CPPFLAGS"
9747 ac_save_LDFLAGS="$LDFLAGS"
9748 # ac_save_LIBS="$LIBS"
9750 if test \! -z "$includedir" ; then
9751 CPPFLAGS="$CPPFLAGS -I$includedir"
9753 # note: $X_CFLAGS includes $x_includes
9754 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9756 if test \! -z "$libdir" ; then
9757 LDFLAGS="$LDFLAGS -L$libdir"
9759 # note: $X_LIBS includes $x_libraries
9760 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9762 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5
9763 echo $ECHO_N "checking for XineramaQueryExtension in -lXinerama... $ECHO_C" >&6
9764 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 ac_check_lib_save_LIBS=$LIBS
9768 LIBS="-lXinerama -lXext -lX11 $LIBS"
9769 cat >conftest.$ac_ext <<_ACEOF
9770 #line $LINENO "configure"
9771 #include "confdefs.h"
9773 /* Override any gcc2 internal prototype to avoid an error. */
9777 /* We use char because int might match the return type of a gcc2
9778 builtin and then its argument prototype would still apply. */
9779 char XineramaQueryExtension ();
9780 #ifdef F77_DUMMY_MAIN
9784 int F77_DUMMY_MAIN() { return 1; }
9789 XineramaQueryExtension ();
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9796 (eval $ac_link) 2>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
9808 echo "$as_me: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 ac_cv_lib_Xinerama_XineramaQueryExtension=no
9812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9815 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
9816 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6
9817 if test $ac_cv_lib_Xinerama_XineramaQueryExtension = yes; then
9818 have_xinerama=yes; SAVER_LIBS="$SAVER_LIBS -lXinerama"
9823 CPPFLAGS="$ac_save_CPPFLAGS"
9824 LDFLAGS="$ac_save_LDFLAGS"
9825 # LIBS="$ac_save_LIBS"
9830 # if that succeeded, then we've really got it.
9831 if test "$have_xinerama" = yes; then
9832 cat >>confdefs.h <<\_ACEOF
9833 #define HAVE_XINERAMA 1
9838 elif test "$with_xinerama" != no; then
9839 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
9844 ###############################################################################
9846 # Check for the XF86VMODE server extension (for virtual screens.)
9848 ###############################################################################
9851 with_xf86vmode_req=unspecified
9853 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
9854 if test "${with_xf86vmode_ext+set}" = set; then
9855 withval="$with_xf86vmode_ext"
9856 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
9862 case "$with_xf86vmode" in
9867 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
9868 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
9869 d=$with_xf86vmode/include
9871 X_CFLAGS="-I$d $X_CFLAGS"
9872 echo "$as_me:$LINENO: result: $d" >&5
9873 echo "${ECHO_T}$d" >&6
9875 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9876 echo "${ECHO_T}not found ($d: no such directory)" >&6
9879 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
9880 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
9881 d=$with_xf86vmode/lib
9883 X_LIBS="-L$d $X_LIBS"
9884 echo "$as_me:$LINENO: result: $d" >&5
9885 echo "${ECHO_T}$d" >&6
9887 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9888 echo "${ECHO_T}not found ($d: no such directory)" >&6
9891 # replace the directory string with "yes".
9892 with_xf86vmode_req="yes"
9893 with_xf86vmode=$with_xf86vmode_req
9898 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
9899 echo " If it is a directory, then \`DIR/include' will be added to"
9900 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9906 if test "$with_xf86vmode" = yes; then
9908 # first check for xf86vmode.h
9910 ac_save_CPPFLAGS="$CPPFLAGS"
9911 if test \! -z "$includedir" ; then
9912 CPPFLAGS="$CPPFLAGS -I$includedir"
9914 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9915 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
9916 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
9917 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 cat >conftest.$ac_ext <<_ACEOF
9921 #line $LINENO "configure"
9922 #include "confdefs.h"
9923 #include <X11/Xlib.h>
9925 #include <X11/extensions/xf86vmode.h>
9927 rm -f conftest.$ac_objext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929 (eval $ac_compile) 2>&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -s conftest.$ac_objext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 ac_cv_header_X11_extensions_xf86vmode_h=yes
9941 echo "$as_me: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 ac_cv_header_X11_extensions_xf86vmode_h=no
9945 rm -f conftest.$ac_objext conftest.$ac_ext
9947 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
9948 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
9949 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
9954 CPPFLAGS="$ac_save_CPPFLAGS"
9956 # if that succeeded, then check for the -lXxf86vm
9957 if test "$have_xf86vmode" = yes; then
9960 ac_save_CPPFLAGS="$CPPFLAGS"
9961 ac_save_LDFLAGS="$LDFLAGS"
9962 # ac_save_LIBS="$LIBS"
9964 if test \! -z "$includedir" ; then
9965 CPPFLAGS="$CPPFLAGS -I$includedir"
9967 # note: $X_CFLAGS includes $x_includes
9968 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9970 if test \! -z "$libdir" ; then
9971 LDFLAGS="$LDFLAGS -L$libdir"
9973 # note: $X_LIBS includes $x_libraries
9974 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9976 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
9977 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
9978 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 ac_check_lib_save_LIBS=$LIBS
9982 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9983 cat >conftest.$ac_ext <<_ACEOF
9984 #line $LINENO "configure"
9985 #include "confdefs.h"
9987 /* Override any gcc2 internal prototype to avoid an error. */
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9993 char XF86VidModeGetViewPort ();
9994 #ifdef F77_DUMMY_MAIN
9998 int F77_DUMMY_MAIN() { return 1; }
10003 XF86VidModeGetViewPort ();
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010 (eval $ac_link) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -s conftest$ac_exeext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
10022 echo "$as_me: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10024 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
10026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10027 LIBS=$ac_check_lib_save_LIBS
10029 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
10030 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
10031 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
10032 have_xf86vmode=yes; SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10037 CPPFLAGS="$ac_save_CPPFLAGS"
10038 LDFLAGS="$ac_save_LDFLAGS"
10039 # LIBS="$ac_save_LIBS"
10043 # if that succeeded, then we've really got it.
10044 if test "$have_xf86vmode" = yes; then
10045 cat >>confdefs.h <<\_ACEOF
10046 #define HAVE_XF86VMODE 1
10051 elif test "$with_xf86vmode" != no; then
10052 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
10057 ###############################################################################
10059 # Check for the XF86VMODE server extension (for gamma fading.)
10061 ###############################################################################
10064 have_xf86gamma_ramp=no
10065 with_xf86gamma_req=unspecified
10067 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
10068 if test "${with_xf86gamma_ext+set}" = set; then
10069 withval="$with_xf86gamma_ext"
10070 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
10076 case "$with_xf86gamma" in
10081 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
10082 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
10083 d=$with_xf86gamma/include
10084 if test -d $d; then
10085 X_CFLAGS="-I$d $X_CFLAGS"
10086 echo "$as_me:$LINENO: result: $d" >&5
10087 echo "${ECHO_T}$d" >&6
10089 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10090 echo "${ECHO_T}not found ($d: no such directory)" >&6
10093 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
10094 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
10095 d=$with_xf86gamma/lib
10096 if test -d $d; then
10097 X_LIBS="-L$d $X_LIBS"
10098 echo "$as_me:$LINENO: result: $d" >&5
10099 echo "${ECHO_T}$d" >&6
10101 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10102 echo "${ECHO_T}not found ($d: no such directory)" >&6
10105 # replace the directory string with "yes".
10106 with_xf86gamma_req="yes"
10107 with_xf86gamma=$with_xf86gamma_req
10112 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
10113 echo " If it is a directory, then \`DIR/include' will be added to"
10114 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10120 if test "$with_xf86gamma" = yes; then
10122 # first check for xf86vmode.h, if we haven't already
10123 if test "$have_xf86vmode" = yes; then
10127 ac_save_CPPFLAGS="$CPPFLAGS"
10128 if test \! -z "$includedir" ; then
10129 CPPFLAGS="$CPPFLAGS -I$includedir"
10131 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10132 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
10133 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
10134 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 cat >conftest.$ac_ext <<_ACEOF
10138 #line $LINENO "configure"
10139 #include "confdefs.h"
10140 #include <X11/Xlib.h>
10142 #include <X11/extensions/xf86vmode.h>
10144 rm -f conftest.$ac_objext
10145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10146 (eval $ac_compile) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -s conftest.$ac_objext'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_header_X11_extensions_xf86vmode_h=yes
10158 echo "$as_me: failed program was:" >&5
10159 cat conftest.$ac_ext >&5
10160 ac_cv_header_X11_extensions_xf86vmode_h=no
10162 rm -f conftest.$ac_objext conftest.$ac_ext
10164 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
10165 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
10166 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
10171 CPPFLAGS="$ac_save_CPPFLAGS"
10174 # if that succeeded, then check for the -lXxf86vm
10175 if test "$have_xf86gamma" = yes; then
10178 ac_save_CPPFLAGS="$CPPFLAGS"
10179 ac_save_LDFLAGS="$LDFLAGS"
10180 # ac_save_LIBS="$LIBS"
10182 if test \! -z "$includedir" ; then
10183 CPPFLAGS="$CPPFLAGS -I$includedir"
10185 # note: $X_CFLAGS includes $x_includes
10186 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10188 if test \! -z "$libdir" ; then
10189 LDFLAGS="$LDFLAGS -L$libdir"
10191 # note: $X_LIBS includes $x_libraries
10192 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10194 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
10195 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
10196 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10202 #line $LINENO "configure"
10203 #include "confdefs.h"
10205 /* Override any gcc2 internal prototype to avoid an error. */
10209 /* We use char because int might match the return type of a gcc2
10210 builtin and then its argument prototype would still apply. */
10211 char XF86VidModeSetGamma ();
10212 #ifdef F77_DUMMY_MAIN
10213 # ifdef __cplusplus
10216 int F77_DUMMY_MAIN() { return 1; }
10221 XF86VidModeSetGamma ();
10226 rm -f conftest.$ac_objext conftest$ac_exeext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10228 (eval $ac_link) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -s conftest$ac_exeext'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
10240 echo "$as_me: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10242 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
10244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10247 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
10248 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
10249 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
10255 CPPFLAGS="$ac_save_CPPFLAGS"
10256 LDFLAGS="$ac_save_LDFLAGS"
10257 # LIBS="$ac_save_LIBS"
10261 # check for the Ramp versions of the functions too.
10262 if test "$have_xf86gamma" = yes; then
10263 have_xf86gamma_ramp=no
10265 ac_save_CPPFLAGS="$CPPFLAGS"
10266 ac_save_LDFLAGS="$LDFLAGS"
10267 # ac_save_LIBS="$LIBS"
10269 if test \! -z "$includedir" ; then
10270 CPPFLAGS="$CPPFLAGS -I$includedir"
10272 # note: $X_CFLAGS includes $x_includes
10273 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10275 if test \! -z "$libdir" ; then
10276 LDFLAGS="$LDFLAGS -L$libdir"
10278 # note: $X_LIBS includes $x_libraries
10279 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10281 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
10282 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
10283 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 ac_check_lib_save_LIBS=$LIBS
10287 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10288 cat >conftest.$ac_ext <<_ACEOF
10289 #line $LINENO "configure"
10290 #include "confdefs.h"
10292 /* Override any gcc2 internal prototype to avoid an error. */
10296 /* We use char because int might match the return type of a gcc2
10297 builtin and then its argument prototype would still apply. */
10298 char XF86VidModeSetGammaRamp ();
10299 #ifdef F77_DUMMY_MAIN
10300 # ifdef __cplusplus
10303 int F77_DUMMY_MAIN() { return 1; }
10308 XF86VidModeSetGammaRamp ();
10313 rm -f conftest.$ac_objext conftest$ac_exeext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10315 (eval $ac_link) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
10327 echo "$as_me: failed program was:" >&5
10328 cat conftest.$ac_ext >&5
10329 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
10331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10332 LIBS=$ac_check_lib_save_LIBS
10334 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
10335 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
10336 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
10337 have_xf86gamma_ramp=yes
10342 CPPFLAGS="$ac_save_CPPFLAGS"
10343 LDFLAGS="$ac_save_LDFLAGS"
10344 # LIBS="$ac_save_LIBS"
10348 # if those tests succeeded, then we've really got the functions.
10349 if test "$have_xf86gamma" = yes; then
10350 cat >>confdefs.h <<\_ACEOF
10351 #define HAVE_XF86VMODE_GAMMA 1
10356 if test "$have_xf86gamma_ramp" = yes; then
10357 cat >>confdefs.h <<\_ACEOF
10358 #define HAVE_XF86VMODE_GAMMA_RAMP 1
10363 # pull in the lib, if we haven't already
10364 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
10365 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10368 elif test "$with_xf86gamma" != no; then
10369 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
10374 ###############################################################################
10376 # Check for HP XHPDisableReset and XHPEnableReset.
10378 ###############################################################################
10381 ac_save_CPPFLAGS="$CPPFLAGS"
10382 if test \! -z "$includedir" ; then
10383 CPPFLAGS="$CPPFLAGS -I$includedir"
10385 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10386 cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10388 #include "confdefs.h"
10389 #include <X11/XHPlib.h>
10392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10393 egrep "XHPDisableReset" >/dev/null 2>&1; then
10394 cat >>confdefs.h <<\_ACEOF
10395 #define HAVE_XHPDISABLERESET 1
10398 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
10402 CPPFLAGS="$ac_save_CPPFLAGS"
10405 ###############################################################################
10407 # Check for /proc/interrupts.
10409 ###############################################################################
10411 have_proc_interrupts=no
10412 with_proc_interrupts_req=unspecified
10414 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
10415 if test "${with_proc_interrupts+set}" = set; then
10416 withval="$with_proc_interrupts"
10417 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
10419 with_proc_interrupts=yes
10422 if test "$with_proc_interrupts" = yes; then
10424 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
10425 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
10426 if test "${ac_cv_have_proc_interrupts+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 ac_cv_have_proc_interrupts=no
10430 if grep keyboard /proc/interrupts >/dev/null 2>&1 ; then
10431 ac_cv_have_proc_interrupts=yes
10435 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
10436 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
10437 have_proc_interrupts=$ac_cv_have_proc_interrupts
10439 if test "$have_proc_interrupts" = yes; then
10440 cat >>confdefs.h <<\_ACEOF
10441 #define HAVE_PROC_INTERRUPTS 1
10446 elif test "$with_proc_interrupts" != no; then
10447 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
10452 ###############################################################################
10454 # The --enable-locking option
10456 ###############################################################################
10458 # Check whether --enable-locking or --disable-locking was given.
10459 if test "${enable_locking+set}" = set; then
10460 enableval="$enable_locking"
10461 enable_locking="$enableval"
10465 if test "$enable_locking" = yes; then
10467 elif test "$enable_locking" = no; then
10468 cat >>confdefs.h <<\_ACEOF
10469 #define NO_LOCKING 1
10473 echo "error: must be yes or no: --enable-locking=$enable_locking"
10479 ###############################################################################
10481 # The --enable-vt-locking option
10483 ###############################################################################
10485 #ac_vt_lockswitch=no
10486 #AC_ARG_ENABLE(vt-locking,[
10487 # --enable-vt-locking Compile in support for locking Virtual Terminals.
10488 # This is the default if the system supports it, and
10489 # if locking support is included (--enable-locking.)
10490 # --disable-vt-locking Do not allow locking of VTs, even if locking is
10492 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
10493 #if test "$enable_vt_locking" = yes; then
10495 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
10496 # [AC_TRY_COMPILE([#include <fcntl.h>
10497 # #include <sys/ioctl.h>
10498 # #include <sys/vt.h>],
10499 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
10500 # [ac_cv_vt_lockswitch=yes],
10501 # [ac_cv_vt_lockswitch=no])])
10502 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
10504 #elif test "$enable_vt_locking" = no; then
10507 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
10511 #if test "$ac_vt_lockswitch" = yes; then
10512 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
10513 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
10514 # # #### but it doesn't work yet, so don't worry about that for now.
10519 ###############################################################################
10523 ###############################################################################
10527 # Solaris systems tend to come with PAM misconfigured.
10528 # Don't build it by default, even if the headers exist.
10529 with_pam_default=no
10532 # Default to building PAM support on all other systems, if it exists.
10533 with_pam_default=yes
10538 with_pam_req=unspecified
10541 # Check whether --with-pam or --without-pam was given.
10542 if test "${with_pam+set}" = set; then
10543 withval="$with_pam"
10544 with_pam="$withval"; with_pam_req="$withval"
10546 with_pam=$with_pam_default
10550 case "$with_pam" in
10555 echo "$as_me:$LINENO: checking for PAM headers" >&5
10556 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
10557 d=$with_pam/include
10558 if test -d $d; then
10559 X_CFLAGS="-I$d $X_CFLAGS"
10560 echo "$as_me:$LINENO: result: $d" >&5
10561 echo "${ECHO_T}$d" >&6
10563 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10564 echo "${ECHO_T}not found ($d: no such directory)" >&6
10567 echo "$as_me:$LINENO: checking for PAM libs" >&5
10568 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
10570 if test -d $d; then
10571 X_LIBS="-L$d $X_LIBS"
10572 echo "$as_me:$LINENO: result: $d" >&5
10573 echo "${ECHO_T}$d" >&6
10575 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10576 echo "${ECHO_T}not found ($d: no such directory)" >&6
10579 # replace the directory string with "yes".
10581 with_pam=$with_pam_req
10586 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
10587 echo " If it is a directory, then \`DIR/include' will be added to"
10588 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10594 if test "$enable_locking" = yes -a "$with_pam" = yes; then
10595 echo "$as_me:$LINENO: checking for PAM" >&5
10596 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
10597 if test "${ac_cv_pam+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 ac_save_CPPFLAGS="$CPPFLAGS"
10602 if test \! -z "$includedir" ; then
10603 CPPFLAGS="$CPPFLAGS -I$includedir"
10605 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10606 cat >conftest.$ac_ext <<_ACEOF
10607 #line $LINENO "configure"
10608 #include "confdefs.h"
10609 #include <security/pam_appl.h>
10610 #ifdef F77_DUMMY_MAIN
10611 # ifdef __cplusplus
10614 int F77_DUMMY_MAIN() { return 1; }
10624 rm -f conftest.$ac_objext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10626 (eval $ac_compile) 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -s conftest.$ac_objext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10638 echo "$as_me: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10642 rm -f conftest.$ac_objext conftest.$ac_ext
10643 CPPFLAGS="$ac_save_CPPFLAGS"
10645 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
10646 echo "${ECHO_T}$ac_cv_pam" >&6
10647 if test "$ac_cv_pam" = yes ; then
10649 cat >>confdefs.h <<\_ACEOF
10653 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
10655 # libpam typically requires dlopen and dlsym. On FreeBSD,
10656 # those are in libc. On Linux and Solaris, they're in libdl.
10657 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 ac_check_lib_save_LIBS=$LIBS
10664 cat >conftest.$ac_ext <<_ACEOF
10665 #line $LINENO "configure"
10666 #include "confdefs.h"
10668 /* Override any gcc2 internal prototype to avoid an error. */
10672 /* We use char because int might match the return type of a gcc2
10673 builtin and then its argument prototype would still apply. */
10675 #ifdef F77_DUMMY_MAIN
10676 # ifdef __cplusplus
10679 int F77_DUMMY_MAIN() { return 1; }
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691 (eval $ac_link) 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -s conftest$ac_exeext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_lib_dl_dlopen=yes
10703 echo "$as_me: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10705 ac_cv_lib_dl_dlopen=no
10707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10708 LIBS=$ac_check_lib_save_LIBS
10710 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10711 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10712 if test $ac_cv_lib_dl_dlopen = yes; then
10713 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
10717 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
10718 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
10719 if test "${ac_cv_pam_strerror_args+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 cat >conftest.$ac_ext <<_ACEOF
10723 #line $LINENO "configure"
10724 #include "confdefs.h"
10726 #include <stdlib.h>
10727 #include <security/pam_appl.h>
10728 #ifdef F77_DUMMY_MAIN
10729 # ifdef __cplusplus
10732 int F77_DUMMY_MAIN() { return 1; }
10737 pam_handle_t *pamh = 0;
10738 char *s = pam_strerror(pamh, PAM_SUCCESS);
10743 rm -f conftest.$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try='test -s conftest.$ac_objext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 ac_pam_strerror_args=2
10757 echo "$as_me: failed program was:" >&5
10758 cat conftest.$ac_ext >&5
10759 cat >conftest.$ac_ext <<_ACEOF
10760 #line $LINENO "configure"
10761 #include "confdefs.h"
10763 #include <stdlib.h>
10764 #include <security/pam_appl.h>
10765 #ifdef F77_DUMMY_MAIN
10766 # ifdef __cplusplus
10769 int F77_DUMMY_MAIN() { return 1; }
10775 pam_strerror(PAM_SUCCESS);
10780 rm -f conftest.$ac_objext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782 (eval $ac_compile) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -s conftest.$ac_objext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_pam_strerror_args=1
10794 echo "$as_me: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 ac_pam_strerror_args=0
10798 rm -f conftest.$ac_objext conftest.$ac_ext
10800 rm -f conftest.$ac_objext conftest.$ac_ext
10801 ac_cv_pam_strerror_args=$ac_pam_strerror_args
10804 ac_pam_strerror_args=$ac_cv_pam_strerror_args
10805 if test "$ac_pam_strerror_args" = 1 ; then
10806 echo "$as_me:$LINENO: result: one argument" >&5
10807 echo "${ECHO_T}one argument" >&6
10808 elif test "$ac_pam_strerror_args" = 2 ; then
10809 cat >>confdefs.h <<\_ACEOF
10810 #define PAM_STRERROR_TWO_ARGS 1
10813 echo "$as_me:$LINENO: result: two arguments" >&5
10814 echo "${ECHO_T}two arguments" >&6
10816 echo "$as_me:$LINENO: result: unknown" >&5
10817 echo "${ECHO_T}unknown" >&6
10823 ###############################################################################
10825 # Check for Kerberos.
10827 ###############################################################################
10831 with_kerberos_req=unspecified
10834 # Check whether --with-kerberos or --without-kerberos was given.
10835 if test "${with_kerberos+set}" = set; then
10836 withval="$with_kerberos"
10837 with_kerberos="$withval"; with_kerberos_req="$withval"
10843 case "$with_kerberos" in
10848 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
10849 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
10850 d=$with_kerberos/include
10851 if test -d $d; then
10852 X_CFLAGS="-I$d $X_CFLAGS"
10853 echo "$as_me:$LINENO: result: $d" >&5
10854 echo "${ECHO_T}$d" >&6
10856 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10857 echo "${ECHO_T}not found ($d: no such directory)" >&6
10860 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
10861 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
10862 d=$with_kerberos/lib
10863 if test -d $d; then
10864 X_LIBS="-L$d $X_LIBS"
10865 echo "$as_me:$LINENO: result: $d" >&5
10866 echo "${ECHO_T}$d" >&6
10868 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10869 echo "${ECHO_T}not found ($d: no such directory)" >&6
10872 # replace the directory string with "yes".
10873 with_kerberos_req="yes"
10874 with_kerberos=$with_kerberos_req
10879 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
10880 echo " If it is a directory, then \`DIR/include' will be added to"
10881 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10887 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
10888 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
10889 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
10890 if test "${ac_cv_kerberos+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 ac_save_CPPFLAGS="$CPPFLAGS"
10895 if test \! -z "$includedir" ; then
10896 CPPFLAGS="$CPPFLAGS -I$includedir"
10898 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10899 cat >conftest.$ac_ext <<_ACEOF
10900 #line $LINENO "configure"
10901 #include "confdefs.h"
10903 #ifdef F77_DUMMY_MAIN
10904 # ifdef __cplusplus
10907 int F77_DUMMY_MAIN() { return 1; }
10917 rm -f conftest.$ac_objext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919 (eval $ac_compile) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -s conftest.$ac_objext'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10931 echo "$as_me: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10935 rm -f conftest.$ac_objext conftest.$ac_ext
10936 CPPFLAGS="$ac_save_CPPFLAGS"
10938 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
10939 echo "${ECHO_T}$ac_cv_kerberos" >&6
10940 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
10941 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
10942 if test "${ac_cv_kerberos5+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 ac_save_CPPFLAGS="$CPPFLAGS"
10947 if test \! -z "$includedir" ; then
10948 CPPFLAGS="$CPPFLAGS -I$includedir"
10950 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10951 cat >conftest.$ac_ext <<_ACEOF
10952 #line $LINENO "configure"
10953 #include "confdefs.h"
10954 #include <kerberosIV/krb.h>
10955 #ifdef F77_DUMMY_MAIN
10956 # ifdef __cplusplus
10959 int F77_DUMMY_MAIN() { return 1; }
10969 rm -f conftest.$ac_objext
10970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10971 (eval $ac_compile) 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } &&
10975 { ac_try='test -s conftest.$ac_objext'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_cv_kerberos5=yes
10983 echo "$as_me: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10987 rm -f conftest.$ac_objext conftest.$ac_ext
10988 CPPFLAGS="$ac_save_CPPFLAGS"
10990 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
10991 echo "${ECHO_T}$ac_cv_kerberos5" >&6
10993 if test "$ac_cv_kerberos" = yes ; then
10995 cat >>confdefs.h <<\_ACEOF
10996 #define HAVE_KERBEROS 1
11001 if test "$ac_cv_kerberos5" = yes ; then
11004 cat >>confdefs.h <<\_ACEOF
11005 #define HAVE_KERBEROS 1
11008 cat >>confdefs.h <<\_ACEOF
11009 #define HAVE_KERBEROS5 1
11014 if test "$have_kerberos5" = yes ; then
11015 # from Matt Knopp <mhat@infocalypse.netlag.com>
11016 # (who got it from amu@mit.edu)
11017 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcrypt -lcom_err"
11018 elif test "$have_kerberos" = yes ; then
11019 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
11020 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
11023 if test "$have_kerberos" = yes ; then
11024 echo "$as_me:$LINENO: checking for res_search" >&5
11025 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
11026 if test "${ac_cv_func_res_search+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 cat >conftest.$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11031 #include "confdefs.h"
11032 /* System header to define __stub macros and hopefully few prototypes,
11033 which can conflict with char res_search (); below. */
11034 #include <assert.h>
11035 /* Override any gcc2 internal prototype to avoid an error. */
11039 /* We use char because int might match the return type of a gcc2
11040 builtin and then its argument prototype would still apply. */
11041 char res_search ();
11044 #ifdef F77_DUMMY_MAIN
11045 # ifdef __cplusplus
11048 int F77_DUMMY_MAIN() { return 1; }
11053 /* The GNU C library defines this for functions which it implements
11054 to always fail with ENOSYS. Some functions are actually named
11055 something starting with __ and the normal name is an alias. */
11056 #if defined (__stub_res_search) || defined (__stub___res_search)
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11068 (eval $ac_link) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try='test -s conftest$ac_exeext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_func_res_search=yes
11080 echo "$as_me: failed program was:" >&5
11081 cat conftest.$ac_ext >&5
11082 ac_cv_func_res_search=no
11084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11086 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
11087 echo "${ECHO_T}$ac_cv_func_res_search" >&6
11088 if test $ac_cv_func_res_search = yes; then
11091 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
11092 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
11093 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 ac_check_lib_save_LIBS=$LIBS
11097 LIBS="-lresolv $LIBS"
11098 cat >conftest.$ac_ext <<_ACEOF
11099 #line $LINENO "configure"
11100 #include "confdefs.h"
11102 /* Override any gcc2 internal prototype to avoid an error. */
11106 /* We use char because int might match the return type of a gcc2
11107 builtin and then its argument prototype would still apply. */
11108 char res_search ();
11109 #ifdef F77_DUMMY_MAIN
11110 # ifdef __cplusplus
11113 int F77_DUMMY_MAIN() { return 1; }
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125 (eval $ac_link) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } &&
11129 { ac_try='test -s conftest$ac_exeext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_cv_lib_resolv_res_search=yes
11137 echo "$as_me: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11139 ac_cv_lib_resolv_res_search=no
11141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11142 LIBS=$ac_check_lib_save_LIBS
11144 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
11145 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
11146 if test $ac_cv_lib_resolv_res_search = yes; then
11147 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
11149 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
11150 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
11160 ###############################################################################
11162 # Check for the nine billion variants of shadow passwords...
11164 ###############################################################################
11169 with_shadow_req=unspecified
11172 # Check whether --with-shadow or --without-shadow was given.
11173 if test "${with_shadow+set}" = set; then
11174 withval="$with_shadow"
11175 with_shadow="$withval"; with_shadow_req="$withval"
11181 case "$with_shadow" in
11186 echo "$as_me:$LINENO: checking for shadow password headers" >&5
11187 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
11188 d=$with_shadow/include
11189 if test -d $d; then
11190 X_CFLAGS="-I$d $X_CFLAGS"
11191 echo "$as_me:$LINENO: result: $d" >&5
11192 echo "${ECHO_T}$d" >&6
11194 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11195 echo "${ECHO_T}not found ($d: no such directory)" >&6
11198 echo "$as_me:$LINENO: checking for shadow password libs" >&5
11199 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
11201 if test -d $d; then
11202 X_LIBS="-L$d $X_LIBS"
11203 echo "$as_me:$LINENO: result: $d" >&5
11204 echo "${ECHO_T}$d" >&6
11206 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11207 echo "${ECHO_T}not found ($d: no such directory)" >&6
11210 # replace the directory string with "yes".
11211 with_shadow_req="yes"
11212 with_shadow=$with_shadow_req
11217 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
11218 echo " If it is a directory, then \`DIR/include' will be added to"
11219 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11225 if test "$enable_locking" = no ; then
11231 ###############################################################################
11233 # Check for Sun "adjunct" passwords.
11235 ###############################################################################
11237 if test "$with_shadow" = yes ; then
11238 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
11239 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
11240 if test "${ac_cv_sun_adjunct+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 ac_save_CPPFLAGS="$CPPFLAGS"
11245 if test \! -z "$includedir" ; then
11246 CPPFLAGS="$CPPFLAGS -I$includedir"
11248 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11249 cat >conftest.$ac_ext <<_ACEOF
11250 #line $LINENO "configure"
11251 #include "confdefs.h"
11252 #include <stdlib.h>
11253 #include <unistd.h>
11254 #include <sys/types.h>
11255 #include <sys/label.h>
11256 #include <sys/audit.h>
11257 #include <pwdadj.h>
11258 #ifdef F77_DUMMY_MAIN
11259 # ifdef __cplusplus
11262 int F77_DUMMY_MAIN() { return 1; }
11267 struct passwd_adjunct *p = getpwanam("nobody");
11268 const char *pw = p->pwa_passwd;
11273 rm -f conftest.$ac_objext
11274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11275 (eval $ac_compile) 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_cv_sun_adjunct=yes
11287 echo "$as_me: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11289 ac_cv_sun_adjunct=no
11291 rm -f conftest.$ac_objext conftest.$ac_ext
11292 CPPFLAGS="$ac_save_CPPFLAGS"
11294 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
11295 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
11296 if test "$ac_cv_sun_adjunct" = yes; then
11297 have_shadow_adjunct=yes
11304 ###############################################################################
11306 # Check for DEC and SCO so-called "enhanced" security.
11308 ###############################################################################
11310 if test "$with_shadow" = yes ; then
11311 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
11312 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
11313 if test "${ac_cv_enhanced_passwd+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 ac_save_CPPFLAGS="$CPPFLAGS"
11318 if test \! -z "$includedir" ; then
11319 CPPFLAGS="$CPPFLAGS -I$includedir"
11321 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11322 cat >conftest.$ac_ext <<_ACEOF
11323 #line $LINENO "configure"
11324 #include "confdefs.h"
11325 #include <stdlib.h>
11326 #include <unistd.h>
11327 #include <sys/types.h>
11329 #include <sys/security.h>
11331 #ifdef F77_DUMMY_MAIN
11332 # ifdef __cplusplus
11335 int F77_DUMMY_MAIN() { return 1; }
11340 struct pr_passwd *p;
11342 set_auth_parameters(0, 0);
11343 check_auth_parameters();
11344 p = getprpwnam("nobody");
11345 pw = p->ufld.fd_encrypt;
11350 rm -f conftest.$ac_objext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11352 (eval $ac_compile) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -s conftest.$ac_objext'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 ac_cv_enhanced_passwd=yes
11364 echo "$as_me: failed program was:" >&5
11365 cat conftest.$ac_ext >&5
11366 ac_cv_enhanced_passwd=no
11368 rm -f conftest.$ac_objext conftest.$ac_ext
11369 CPPFLAGS="$ac_save_CPPFLAGS"
11371 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
11372 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
11373 if test $ac_cv_enhanced_passwd = yes; then
11374 have_shadow_enhanced=yes
11378 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
11379 # (I'm told it needs -lcurses too, but I don't understand why.)
11380 # But on DEC, it's in -lsecurity.
11382 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
11383 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
11384 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 ac_check_lib_save_LIBS=$LIBS
11388 LIBS="-lprot -lx $LIBS"
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11391 #include "confdefs.h"
11393 /* Override any gcc2 internal prototype to avoid an error. */
11397 /* We use char because int might match the return type of a gcc2
11398 builtin and then its argument prototype would still apply. */
11399 char getprpwnam ();
11400 #ifdef F77_DUMMY_MAIN
11401 # ifdef __cplusplus
11404 int F77_DUMMY_MAIN() { return 1; }
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } &&
11420 { ac_try='test -s conftest$ac_exeext'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 ac_cv_lib_prot_getprpwnam=yes
11428 echo "$as_me: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11430 ac_cv_lib_prot_getprpwnam=no
11432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11435 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
11436 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
11437 if test $ac_cv_lib_prot_getprpwnam = yes; then
11438 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
11440 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
11441 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
11442 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 ac_check_lib_save_LIBS=$LIBS
11446 LIBS="-lsecurity $LIBS"
11447 cat >conftest.$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11449 #include "confdefs.h"
11451 /* Override any gcc2 internal prototype to avoid an error. */
11455 /* We use char because int might match the return type of a gcc2
11456 builtin and then its argument prototype would still apply. */
11457 char getprpwnam ();
11458 #ifdef F77_DUMMY_MAIN
11459 # ifdef __cplusplus
11462 int F77_DUMMY_MAIN() { return 1; }
11472 rm -f conftest.$ac_objext conftest$ac_exeext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474 (eval $ac_link) 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } &&
11478 { ac_try='test -s conftest$ac_exeext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 ac_cv_lib_security_getprpwnam=yes
11486 echo "$as_me: failed program was:" >&5
11487 cat conftest.$ac_ext >&5
11488 ac_cv_lib_security_getprpwnam=no
11490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11493 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
11494 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
11495 if test $ac_cv_lib_security_getprpwnam = yes; then
11496 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
11504 ###############################################################################
11506 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
11508 ###############################################################################
11510 if test "$with_shadow" = yes ; then
11511 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
11512 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
11513 if test "${ac_cv_hpux_passwd+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 ac_save_CPPFLAGS="$CPPFLAGS"
11518 if test \! -z "$includedir" ; then
11519 CPPFLAGS="$CPPFLAGS -I$includedir"
11521 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11522 cat >conftest.$ac_ext <<_ACEOF
11523 #line $LINENO "configure"
11524 #include "confdefs.h"
11525 #include <stdlib.h>
11526 #include <unistd.h>
11527 #include <sys/types.h>
11529 #include <hpsecurity.h>
11531 #ifdef F77_DUMMY_MAIN
11532 # ifdef __cplusplus
11535 int F77_DUMMY_MAIN() { return 1; }
11540 struct s_passwd *p = getspwnam("nobody");
11541 const char *pw = p->pw_passwd;
11546 rm -f conftest.$ac_objext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11548 (eval $ac_compile) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try='test -s conftest.$ac_objext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_hpux_passwd=yes
11560 echo "$as_me: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11562 ac_cv_hpux_passwd=no
11564 rm -f conftest.$ac_objext conftest.$ac_ext
11565 CPPFLAGS="$ac_save_CPPFLAGS"
11567 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
11568 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
11569 if test "$ac_cv_hpux_passwd" = yes; then
11570 have_shadow_hpux=yes
11574 # on HPUX, bigcrypt is in -lsec
11575 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
11576 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
11577 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 ac_check_lib_save_LIBS=$LIBS
11582 cat >conftest.$ac_ext <<_ACEOF
11583 #line $LINENO "configure"
11584 #include "confdefs.h"
11586 /* Override any gcc2 internal prototype to avoid an error. */
11590 /* We use char because int might match the return type of a gcc2
11591 builtin and then its argument prototype would still apply. */
11593 #ifdef F77_DUMMY_MAIN
11594 # ifdef __cplusplus
11597 int F77_DUMMY_MAIN() { return 1; }
11607 rm -f conftest.$ac_objext conftest$ac_exeext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11609 (eval $ac_link) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -s conftest$ac_exeext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 ac_cv_lib_sec_bigcrypt=yes
11621 echo "$as_me: failed program was:" >&5
11622 cat conftest.$ac_ext >&5
11623 ac_cv_lib_sec_bigcrypt=no
11625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11628 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
11629 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
11630 if test $ac_cv_lib_sec_bigcrypt = yes; then
11631 PASSWD_LIBS="$PASSWD_LIBS -lsec"
11638 ###############################################################################
11640 # Check for FreeBSD-style shadow passwords.
11642 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
11643 # password systems -- except you only get stuff in the pw_passwd field
11644 # if the running program is setuid. So, guess that we've got this
11645 # lossage to contend with if /etc/master.passwd exists, and default to
11646 # a setuid installation.
11648 ###############################################################################
11650 if test "$with_shadow" = yes ; then
11651 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
11652 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
11653 if test "${ac_cv_master_passwd+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 if test -f /etc/master.passwd ; then
11657 ac_cv_master_passwd=yes
11659 ac_cv_master_passwd=no
11662 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
11663 echo "${ECHO_T}$ac_cv_master_passwd" >&6
11664 if test "$ac_cv_master_passwd" = yes; then
11670 ###############################################################################
11672 # Check for traditional (ha!) shadow passwords.
11674 ###############################################################################
11676 if test "$with_shadow" = yes ; then
11677 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
11678 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
11679 if test "${ac_cv_shadow+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 ac_save_CPPFLAGS="$CPPFLAGS"
11684 if test \! -z "$includedir" ; then
11685 CPPFLAGS="$CPPFLAGS -I$includedir"
11687 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11688 cat >conftest.$ac_ext <<_ACEOF
11689 #line $LINENO "configure"
11690 #include "confdefs.h"
11691 #include <stdlib.h>
11692 #include <unistd.h>
11693 #include <sys/types.h>
11695 #include <shadow.h>
11696 #ifdef F77_DUMMY_MAIN
11697 # ifdef __cplusplus
11700 int F77_DUMMY_MAIN() { return 1; }
11705 struct spwd *p = getspnam("nobody");
11706 const char *pw = p->sp_pwdp;
11711 rm -f conftest.$ac_objext
11712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11713 (eval $ac_compile) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -s conftest.$ac_objext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11725 echo "$as_me: failed program was:" >&5
11726 cat conftest.$ac_ext >&5
11729 rm -f conftest.$ac_objext conftest.$ac_ext
11730 CPPFLAGS="$ac_save_CPPFLAGS"
11732 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
11733 echo "${ECHO_T}$ac_cv_shadow" >&6
11734 if test "$ac_cv_shadow" = yes; then
11738 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
11740 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
11741 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
11742 if test "${ac_cv_lib_c_getspnam+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 ac_check_lib_save_LIBS=$LIBS
11747 cat >conftest.$ac_ext <<_ACEOF
11748 #line $LINENO "configure"
11749 #include "confdefs.h"
11751 /* Override any gcc2 internal prototype to avoid an error. */
11755 /* We use char because int might match the return type of a gcc2
11756 builtin and then its argument prototype would still apply. */
11758 #ifdef F77_DUMMY_MAIN
11759 # ifdef __cplusplus
11762 int F77_DUMMY_MAIN() { return 1; }
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774 (eval $ac_link) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 ac_cv_lib_c_getspnam=yes
11786 echo "$as_me: failed program was:" >&5
11787 cat conftest.$ac_ext >&5
11788 ac_cv_lib_c_getspnam=no
11790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_lib_save_LIBS
11793 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
11794 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
11795 if test $ac_cv_lib_c_getspnam = yes; then
11799 if test "$have_getspnam" = no ; then
11800 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
11801 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
11802 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 ac_check_lib_save_LIBS=$LIBS
11807 cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11809 #include "confdefs.h"
11811 /* Override any gcc2 internal prototype to avoid an error. */
11815 /* We use char because int might match the return type of a gcc2
11816 builtin and then its argument prototype would still apply. */
11818 #ifdef F77_DUMMY_MAIN
11819 # ifdef __cplusplus
11822 int F77_DUMMY_MAIN() { return 1; }
11832 rm -f conftest.$ac_objext conftest$ac_exeext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11834 (eval $ac_link) 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } &&
11838 { ac_try='test -s conftest$ac_exeext'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 ac_cv_lib_gen_getspnam=yes
11846 echo "$as_me: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11848 ac_cv_lib_gen_getspnam=no
11850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11853 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
11854 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
11855 if test $ac_cv_lib_gen_getspnam = yes; then
11856 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
11864 ###############################################################################
11866 # Check for other libraries needed for non-shadow passwords.
11868 ###############################################################################
11870 if test "$enable_locking" = yes ; then
11872 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
11874 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
11875 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
11876 if test "${ac_cv_lib_c_crypt+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 ac_check_lib_save_LIBS=$LIBS
11881 cat >conftest.$ac_ext <<_ACEOF
11882 #line $LINENO "configure"
11883 #include "confdefs.h"
11885 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11892 #ifdef F77_DUMMY_MAIN
11893 # ifdef __cplusplus
11896 int F77_DUMMY_MAIN() { return 1; }
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 ac_cv_lib_c_crypt=yes
11920 echo "$as_me: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11922 ac_cv_lib_c_crypt=no
11924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
11928 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
11929 if test $ac_cv_lib_c_crypt = yes; then
11933 if test "$have_crypt" = no ; then
11934 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
11935 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
11936 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lcrypt $LIBS"
11941 cat >conftest.$ac_ext <<_ACEOF
11942 #line $LINENO "configure"
11943 #include "confdefs.h"
11945 /* Override any gcc2 internal prototype to avoid an error. */
11949 /* We use char because int might match the return type of a gcc2
11950 builtin and then its argument prototype would still apply. */
11952 #ifdef F77_DUMMY_MAIN
11953 # ifdef __cplusplus
11956 int F77_DUMMY_MAIN() { return 1; }
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11968 (eval $ac_link) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_lib_crypt_crypt=yes
11980 echo "$as_me: failed program was:" >&5
11981 cat conftest.$ac_ext >&5
11982 ac_cv_lib_crypt_crypt=no
11984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_lib_save_LIBS
11987 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
11988 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
11989 if test $ac_cv_lib_crypt_crypt = yes; then
11990 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
11997 # Most of the above shadow mechanisms will have set need_setuid to yes,
11998 # if they were found. But, on some systems, we need setuid even when
11999 # using plain old vanilla passwords.
12001 if test "$enable_locking" = yes ; then
12003 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
12010 if test "$have_shadow_adjunct" = yes ; then
12011 cat >>confdefs.h <<\_ACEOF
12012 #define HAVE_ADJUNCT_PASSWD 1
12015 elif test "$have_shadow_enhanced" = yes ; then
12016 cat >>confdefs.h <<\_ACEOF
12017 #define HAVE_ENHANCED_PASSWD 1
12020 elif test "$have_shadow_hpux" = yes ; then
12021 cat >>confdefs.h <<\_ACEOF
12022 #define HAVE_HPUX_PASSWD 1
12025 elif test "$have_shadow" = yes ; then
12026 cat >>confdefs.h <<\_ACEOF
12027 #define HAVE_SHADOW_PASSWD 1
12033 ###############################################################################
12037 ###############################################################################
12040 with_motif_req=unspecified
12042 # Check whether --with-motif or --without-motif was given.
12043 if test "${with_motif+set}" = set; then
12044 withval="$with_motif"
12045 with_motif="$withval"; with_motif_req="$withval"
12051 case "$with_motif" in
12056 echo "$as_me:$LINENO: checking for Motif headers" >&5
12057 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
12058 d=$with_motif/include
12059 if test -d $d; then
12060 X_CFLAGS="-I$d $X_CFLAGS"
12061 echo "$as_me:$LINENO: result: $d" >&5
12062 echo "${ECHO_T}$d" >&6
12064 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12065 echo "${ECHO_T}not found ($d: no such directory)" >&6
12068 echo "$as_me:$LINENO: checking for Motif libs" >&5
12069 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
12071 if test -d $d; then
12072 X_LIBS="-L$d $X_LIBS"
12073 echo "$as_me:$LINENO: result: $d" >&5
12074 echo "${ECHO_T}$d" >&6
12076 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12077 echo "${ECHO_T}not found ($d: no such directory)" >&6
12080 # replace the directory string with "yes".
12081 with_motif_req="yes"
12082 with_motif=$with_motif_req
12087 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
12088 echo " If it is a directory, then \`DIR/include' will be added to"
12089 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12095 if test "$with_motif" != yes -a "$with_motif" != no ; then
12096 echo "error: must be yes or no: --with-motif=$with_motif"
12100 if test "$with_motif" = yes; then
12103 ac_save_CPPFLAGS="$CPPFLAGS"
12104 if test \! -z "$includedir" ; then
12105 CPPFLAGS="$CPPFLAGS -I$includedir"
12107 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12108 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
12109 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
12110 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 cat >conftest.$ac_ext <<_ACEOF
12114 #line $LINENO "configure"
12115 #include "confdefs.h"
12116 #include <stdlib.h>
12118 #include <X11/Intrinsic.h>
12122 rm -f conftest.$ac_objext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124 (eval $ac_compile) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -s conftest.$ac_objext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_cv_header_Xm_Xm_h=yes
12136 echo "$as_me: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12138 ac_cv_header_Xm_Xm_h=no
12140 rm -f conftest.$ac_objext conftest.$ac_ext
12142 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
12143 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
12144 if test $ac_cv_header_Xm_Xm_h = yes; then
12146 cat >>confdefs.h <<\_ACEOF
12147 #define HAVE_MOTIF 1
12150 MOTIF_LIBS="$MOTIF_LIBS -lXm"
12154 CPPFLAGS="$ac_save_CPPFLAGS"
12158 if test "$have_motif" = yes; then
12160 ac_save_CPPFLAGS="$CPPFLAGS"
12161 if test \! -z "$includedir" ; then
12162 CPPFLAGS="$CPPFLAGS -I$includedir"
12164 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12165 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
12166 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
12167 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171 #line $LINENO "configure"
12172 #include "confdefs.h"
12173 #include <stdlib.h>
12175 #include <X11/Intrinsic.h>
12177 #include <Xm/ComboBox.h>
12179 rm -f conftest.$ac_objext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181 (eval $ac_compile) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 ac_cv_header_Xm_ComboBox_h=yes
12193 echo "$as_me: failed program was:" >&5
12194 cat conftest.$ac_ext >&5
12195 ac_cv_header_Xm_ComboBox_h=no
12197 rm -f conftest.$ac_objext conftest.$ac_ext
12199 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
12200 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
12201 if test $ac_cv_header_Xm_ComboBox_h = yes; then
12202 cat >>confdefs.h <<\_ACEOF
12203 #define HAVE_XMCOMBOBOX 1
12209 CPPFLAGS="$ac_save_CPPFLAGS"
12213 ###############################################################################
12215 # Check for -lgtk (and Gnome stuff)
12217 ###############################################################################
12221 with_gtk_req=unspecified
12223 # Check whether --with-gtk or --without-gtk was given.
12224 if test "${with_gtk+set}" = set; then
12225 withval="$with_gtk"
12226 with_gtk="$withval"; with_gtk_req="$withval"
12231 # if --with-gtk=/directory/ was specified, remember that directory so that
12232 # we can also look for the `gtk-config' program in that directory.
12233 case "$with_gtk" in
12235 gtk_dir="$with_gtk"
12243 case "$with_gtk" in
12248 echo "$as_me:$LINENO: checking for Gtk headers" >&5
12249 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
12250 d=$with_gtk/include
12251 if test -d $d; then
12252 X_CFLAGS="-I$d $X_CFLAGS"
12253 echo "$as_me:$LINENO: result: $d" >&5
12254 echo "${ECHO_T}$d" >&6
12256 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12257 echo "${ECHO_T}not found ($d: no such directory)" >&6
12260 echo "$as_me:$LINENO: checking for Gtk libs" >&5
12261 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
12263 if test -d $d; then
12264 X_LIBS="-L$d $X_LIBS"
12265 echo "$as_me:$LINENO: result: $d" >&5
12266 echo "${ECHO_T}$d" >&6
12268 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12269 echo "${ECHO_T}not found ($d: no such directory)" >&6
12272 # replace the directory string with "yes".
12274 with_gtk=$with_gtk_req
12279 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
12280 echo " If it is a directory, then \`DIR/include' will be added to"
12281 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12287 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
12288 echo "error: must be yes or no: --with-gtk=$with_gtk"
12293 with_gnome_req=unspecified
12295 # Check whether --with-gnome or --without-gnome was given.
12296 if test "${with_gnome+set}" = set; then
12297 withval="$with_gnome"
12298 with_gnome="$withval"; with_gnome_req="$withval"
12303 # if --with-gnome=/directory/ was specified, remember that directory so that
12304 # we can also look for the `gnome-config' program in that directory.
12305 case "$with_gnome" in
12307 gnome_dir="$with_gnome"
12315 case "$with_gnome" in
12320 echo "$as_me:$LINENO: checking for Gnome headers" >&5
12321 echo $ECHO_N "checking for Gnome headers... $ECHO_C" >&6
12322 d=$with_gnome/include
12323 if test -d $d; then
12324 X_CFLAGS="-I$d $X_CFLAGS"
12325 echo "$as_me:$LINENO: result: $d" >&5
12326 echo "${ECHO_T}$d" >&6
12328 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12329 echo "${ECHO_T}not found ($d: no such directory)" >&6
12332 echo "$as_me:$LINENO: checking for Gnome libs" >&5
12333 echo $ECHO_N "checking for Gnome libs... $ECHO_C" >&6
12335 if test -d $d; then
12336 X_LIBS="-L$d $X_LIBS"
12337 echo "$as_me:$LINENO: result: $d" >&5
12338 echo "${ECHO_T}$d" >&6
12340 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12341 echo "${ECHO_T}not found ($d: no such directory)" >&6
12344 # replace the directory string with "yes".
12345 with_gnome_req="yes"
12346 with_gnome=$with_gnome_req
12351 echo "error: argument to --with-gnome must be \"yes\", \"no\", or a directory."
12352 echo " If it is a directory, then \`DIR/include' will be added to"
12353 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12359 if test "$with_gnome" != yes -a "$with_gnome" != no ; then
12360 echo "error: must be yes or no: --with-gnome=$with_gnome"
12364 parse_gtk_version_string() {
12367 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
12368 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
12370 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
12371 if test -z "$ac_gtk_version"; then
12372 ac_gtk_version=unknown
12373 ac_gtk_version_string=unknown
12381 if test "$with_gtk" = yes; then
12384 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
12385 # look in /foo/bin/ for glib-config, gtk-config, and gnome-config.
12389 if test ! -z "$gtk_dir"; then
12390 # canonicalize slashes.
12391 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
12392 gtk_path="$foo:$gtk_path"
12395 if test ! -z "$gnome_dir"; then
12396 # canonicalize slashes.
12397 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
12398 gtk_path="$foo:$gtk_path"
12401 for ac_prog in pkg-config
12403 # Extract the first word of "$ac_prog", so it can be a program name with args.
12404 set dummy $ac_prog; ac_word=$2
12405 echo "$as_me:$LINENO: checking for $ac_word" >&5
12406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12407 if test "${ac_cv_path_pkg_config+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 case $pkg_config in
12412 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $gtk_path
12419 test -z "$as_dir" && as_dir=.
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12422 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
12423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 pkg_config=$ac_cv_path_pkg_config
12434 if test -n "$pkg_config"; then
12435 echo "$as_me:$LINENO: result: $pkg_config" >&5
12436 echo "${ECHO_T}$pkg_config" >&6
12438 echo "$as_me:$LINENO: result: no" >&5
12439 echo "${ECHO_T}no" >&6
12442 test -n "$pkg_config" && break
12446 if test -n "$pkg_config" ; then
12449 # run pkg-config based tests.
12453 pkg_check_version() {
12454 if test "$ok" = yes ; then
12457 echo "$as_me:$LINENO: checking for $req" >&5
12458 echo $ECHO_N "checking for $req... $ECHO_C" >&6
12459 if $pkg_config --exists "$req" ; then
12460 vers=`$pkg_config --modversion "$req"`
12461 if $pkg_config --exists "$req >= $min" ; then
12462 echo "$as_me:$LINENO: result: $vers" >&5
12463 echo "${ECHO_T}$vers" >&6
12467 echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
12468 echo "${ECHO_T}$vers (wanted >= $min)" >&6
12473 echo "$as_me:$LINENO: result: no" >&5
12474 echo "${ECHO_T}no" >&6
12482 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
12483 pkg_check_version gmodule-2.0 2.0.0
12484 pkg_check_version libxml-2.0 2.4.6
12485 pkg_check_version libglade-2.0 1.99.0
12488 if test "$have_gtk" = yes; then
12490 cat >>confdefs.h <<\_ACEOF
12491 #define HAVE_GTK2 1
12495 if test -n "$ac_gtk_version_string" ; then
12496 gtk2_halfassed="$ac_gtk_version_string"
12500 if test "$have_gtk" = no; then
12502 # we don't have GTK 2. Let's look for GTK 1.
12506 pkg_check_version gtk+ 1.2 ; ac_gtk_version_string="$vers"
12507 pkg_check_version glib 1.0
12510 # Now check for Gnome...
12512 if test "$have_gtk" = yes -a "$with_gnome" = yes; then
12515 pkg_check_version capplet 1.0
12516 pkg_check_version gnomeui 1.0
12517 pkg_check_version gdk_pixbuf 0.1
12520 if test "$have_gnome" = no; then
12523 cat >>confdefs.h <<\_ACEOF
12524 #define HAVE_CRAPPLET 1
12531 if test "$have_gtk" = yes; then
12532 parse_gtk_version_string
12538 if test "$have_gtk" = yes; then
12539 echo "$as_me:$LINENO: checking for Gtk includes" >&5
12540 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
12541 if test "${ac_cv_gtk_config_cflags+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
12546 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
12547 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
12548 echo "$as_me:$LINENO: checking for Gtk libs" >&5
12549 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
12550 if test "${ac_cv_gtk_config_libs+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
12555 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
12556 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
12558 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
12559 ac_gtk_config_libs=$ac_cv_gtk_config_libs
12561 ac_gnome_config_cflags=$ac_gtk_config_cflags
12562 ac_gnome_config_libs=$ac_gtk_config_libs
12567 # run {gnome,gtk}-config based tests.
12570 for ac_prog in glib12-config glib-config
12572 # Extract the first word of "$ac_prog", so it can be a program name with args.
12573 set dummy $ac_prog; ac_word=$2
12574 echo "$as_me:$LINENO: checking for $ac_word" >&5
12575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12576 if test "${ac_cv_path_glib_config+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 case $glib_config in
12581 ac_cv_path_glib_config="$glib_config" # Let the user override the test with a path.
12584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $gtk_path
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12591 ac_cv_path_glib_config="$as_dir/$ac_word$ac_exec_ext"
12592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12601 glib_config=$ac_cv_path_glib_config
12603 if test -n "$glib_config"; then
12604 echo "$as_me:$LINENO: result: $glib_config" >&5
12605 echo "${ECHO_T}$glib_config" >&6
12607 echo "$as_me:$LINENO: result: no" >&5
12608 echo "${ECHO_T}no" >&6
12611 test -n "$glib_config" && break
12614 for ac_prog in gtk12-config gtk-config
12616 # Extract the first word of "$ac_prog", so it can be a program name with args.
12617 set dummy $ac_prog; ac_word=$2
12618 echo "$as_me:$LINENO: checking for $ac_word" >&5
12619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12620 if test "${ac_cv_path_gtk_config+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 case $gtk_config in
12625 ac_cv_path_gtk_config="$gtk_config" # Let the user override the test with a path.
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $gtk_path
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635 ac_cv_path_gtk_config="$as_dir/$ac_word$ac_exec_ext"
12636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 gtk_config=$ac_cv_path_gtk_config
12647 if test -n "$gtk_config"; then
12648 echo "$as_me:$LINENO: result: $gtk_config" >&5
12649 echo "${ECHO_T}$gtk_config" >&6
12651 echo "$as_me:$LINENO: result: no" >&5
12652 echo "${ECHO_T}no" >&6
12655 test -n "$gtk_config" && break
12659 if test "$with_gnome" = yes; then
12660 for ac_prog in gnome-config
12662 # Extract the first word of "$ac_prog", so it can be a program name with args.
12663 set dummy $ac_prog; ac_word=$2
12664 echo "$as_me:$LINENO: checking for $ac_word" >&5
12665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12666 if test "${ac_cv_path_gnome_config+set}" = set; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 case $gnome_config in
12671 ac_cv_path_gnome_config="$gnome_config" # Let the user override the test with a path.
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $gtk_path
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
12680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12681 ac_cv_path_gnome_config="$as_dir/$ac_word$ac_exec_ext"
12682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 gnome_config=$ac_cv_path_gnome_config
12693 if test -n "$gnome_config"; then
12694 echo "$as_me:$LINENO: result: $gnome_config" >&5
12695 echo "${ECHO_T}$gnome_config" >&6
12697 echo "$as_me:$LINENO: result: no" >&5
12698 echo "${ECHO_T}no" >&6
12701 test -n "$gnome_config" && break
12706 if test -n "$glib_config" -a -n "$gtk_config" ; then
12708 if test "$with_gnome" = yes -a -n "$gnome_config" ; then
12713 if test "$have_gtk" = yes; then
12714 echo "$as_me:$LINENO: checking Gtk version number" >&5
12715 echo $ECHO_N "checking Gtk version number... $ECHO_C" >&6
12716 if test "${ac_cv_gtk_version_string+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 ac_cv_gtk_version_string=`$gtk_config --version`
12721 echo "$as_me:$LINENO: result: $ac_cv_gtk_version_string" >&5
12722 echo "${ECHO_T}$ac_cv_gtk_version_string" >&6
12723 ac_gtk_version_string=$ac_cv_gtk_version_string
12726 parse_gtk_version_string
12728 if test "$ac_gtk_version" = "unknown" || test "$ac_gtk_version" -lt 1002
12735 if test "$have_gtk" = yes; then
12736 echo "$as_me:$LINENO: checking for Gtk includes" >&5
12737 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
12738 if test "${ac_cv_gtk_config_cflags+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 ac_cv_gtk_config_cflags=`$gtk_config --cflags`
12743 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
12744 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
12745 echo "$as_me:$LINENO: checking for Gtk libs" >&5
12746 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
12747 if test "${ac_cv_gtk_config_libs+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 ac_cv_gtk_config_libs=`$gtk_config --libs`
12752 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
12753 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
12755 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
12756 ac_gtk_config_libs=$ac_cv_gtk_config_libs
12758 # Check for Gnome Capplet support.
12759 # Note that this is only needed with Gnome 1.x, not Gnome 2.x.
12760 # In a Gnome 2.x world, libcapplet will not exist.
12761 # (In fact, this likely won't even be checked, since in a Gnome 2.x
12762 # world, we will probably be up in the "$pkg_config" branch instead
12763 # of here in the "$gnome_config" branch.)
12765 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
12766 gnome_config_libs="gtk capplet gnomeui gdk_pixbuf"
12767 echo "$as_me:$LINENO: checking for Gnome capplet includes" >&5
12768 echo $ECHO_N "checking for Gnome capplet includes... $ECHO_C" >&6
12769 if test "${ac_cv_gnome_config_cflags+set}" = set; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 if ( $gnome_config --cflags $gnome_config_libs >/dev/null 2>&1 | \
12773 grep Unknown >/dev/null ) ; then
12774 ac_cv_gnome_config_cflags=''
12776 ac_cv_gnome_config_cflags=`$gnome_config --cflags $gnome_config_libs`
12780 ac_gnome_config_cflags=$ac_cv_gnome_config_cflags
12781 if test "$ac_gnome_config_cflags" = "" ; then
12783 echo "$as_me:$LINENO: result: no" >&5
12784 echo "${ECHO_T}no" >&6
12786 echo "$as_me:$LINENO: result: $ac_gnome_config_cflags" >&5
12787 echo "${ECHO_T}$ac_gnome_config_cflags" >&6
12791 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
12792 echo "$as_me:$LINENO: checking for Gnome capplet libs" >&5
12793 echo $ECHO_N "checking for Gnome capplet libs... $ECHO_C" >&6
12794 if test "${ac_cv_gnome_config_libs+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 if ( $gnome_config --libs $gnome_config_libs >/dev/null 2>&1 |
12798 grep Unknown >/dev/null ) ; then
12799 ac_cv_gnome_config_libs=''
12801 ac_cv_gnome_config_libs=`$gnome_config --libs $gnome_config_libs`
12805 ac_gnome_config_libs=$ac_cv_gnome_config_libs
12806 if test "$ac_gnome_config_libs" = "" ; then
12808 echo "$as_me:$LINENO: result: no" >&5
12809 echo "${ECHO_T}no" >&6
12811 echo "$as_me:$LINENO: result: $ac_gnome_config_libs" >&5
12812 echo "${ECHO_T}$ac_gnome_config_libs" >&6
12816 # If we have Gnome, then override the gtk-config values with
12817 # the gnome-config values.
12819 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
12820 ac_gtk_config_cflags=$ac_gnome_config_cflags
12821 ac_gtk_config_libs=$ac_gnome_config_libs
12822 cat >>confdefs.h <<\_ACEOF
12823 #define HAVE_CRAPPLET 1
12828 fi # end of {gnome,gtk}-config based tests
12830 if test "$have_gtk" = yes -a "$have_gtk2" = no; then
12831 # check for this function that was not in libcapplet 1.2.
12832 # (only needed in Gnome/Gtk 1.x, not Gnome/Gtk 2.x)
12834 ac_save_CPPFLAGS="$CPPFLAGS"
12835 ac_save_LDFLAGS="$LDFLAGS"
12836 # ac_save_LIBS="$LIBS"
12838 if test \! -z "$includedir" ; then
12839 CPPFLAGS="$CPPFLAGS -I$includedir"
12841 # note: $X_CFLAGS includes $x_includes
12842 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12844 if test \! -z "$libdir" ; then
12845 LDFLAGS="$LDFLAGS -L$libdir"
12847 # note: $X_LIBS includes $x_libraries
12848 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12850 echo "$as_me:$LINENO: checking for capplet_widget_changes_are_immediate in -lcapplet" >&5
12851 echo $ECHO_N "checking for capplet_widget_changes_are_immediate in -lcapplet... $ECHO_C" >&6
12852 if test "${ac_cv_lib_capplet_capplet_widget_changes_are_immediate+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 ac_check_lib_save_LIBS=$LIBS
12856 LIBS="-lcapplet $ac_gnome_config_libs $LIBS"
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 #include "confdefs.h"
12861 /* Override any gcc2 internal prototype to avoid an error. */
12865 /* We use char because int might match the return type of a gcc2
12866 builtin and then its argument prototype would still apply. */
12867 char capplet_widget_changes_are_immediate ();
12868 #ifdef F77_DUMMY_MAIN
12869 # ifdef __cplusplus
12872 int F77_DUMMY_MAIN() { return 1; }
12877 capplet_widget_changes_are_immediate ();
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=yes
12896 echo "$as_me: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=no
12900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12901 LIBS=$ac_check_lib_save_LIBS
12903 echo "$as_me:$LINENO: result: $ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&5
12904 echo "${ECHO_T}$ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&6
12905 if test $ac_cv_lib_capplet_capplet_widget_changes_are_immediate = yes; then
12906 cat >>confdefs.h <<\_ACEOF
12907 #define HAVE_CRAPPLET_IMMEDIATE 1
12914 CPPFLAGS="$ac_save_CPPFLAGS"
12915 LDFLAGS="$ac_save_LDFLAGS"
12916 # LIBS="$ac_save_LIBS"
12922 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
12923 if test -n "$pkg_config"; then
12924 if test "$have_gtk2" = yes; then
12925 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
12927 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+`
12930 GNOME_DATADIR=`$gtk_config --prefix`
12932 GNOME_DATADIR="$GNOME_DATADIR/share"
12935 # .desktop files go in different places in Gnome 1.x and Gnome 2.x...
12936 if test "$have_gtk2" = yes; then
12937 GNOME_PANELDIR='$(GNOME_PANELDIR2)'
12939 GNOME_PANELDIR='$(GNOME_PANELDIR1)'
12943 if test "$have_gtk" = yes; then
12944 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
12945 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
12946 cat >>confdefs.h <<\_ACEOF
12951 if test "$have_gtk2" = yes; then
12954 GTK_EXTRA_OBJS="\$(GTK_EXTRA_OBJS)"
12961 # Check for the Gnome Help Browser.
12963 if test "$have_gnome" = yes; then
12964 # Extract the first word of "gnome-help-browser", so it can be a program name with args.
12965 set dummy gnome-help-browser; ac_word=$2
12966 echo "$as_me:$LINENO: checking for $ac_word" >&5
12967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12968 if test "${ac_cv_prog_have_gnome_help+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 if test -n "$have_gnome_help"; then
12972 ac_cv_prog_have_gnome_help="$have_gnome_help" # Let the user override the test.
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12981 ac_cv_prog_have_gnome_help="yes"
12982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 test -z "$ac_cv_prog_have_gnome_help" && ac_cv_prog_have_gnome_help="no"
12991 have_gnome_help=$ac_cv_prog_have_gnome_help
12992 if test -n "$have_gnome_help"; then
12993 echo "$as_me:$LINENO: result: $have_gnome_help" >&5
12994 echo "${ECHO_T}$have_gnome_help" >&6
12996 echo "$as_me:$LINENO: result: no" >&5
12997 echo "${ECHO_T}no" >&6
13005 ###############################################################################
13009 ###############################################################################
13012 with_xml_req=unspecified
13015 # Check whether --with-xml or --without-xml was given.
13016 if test "${with_xml+set}" = set; then
13017 withval="$with_xml"
13018 with_xml="$withval"; with_xml_req="$withval"
13023 # if --with-xml=/directory/ was specified, remember that directory so that
13024 # we can also look for the `xml-config' program in that directory.
13025 case "$with_xml" in
13027 xml_dir="$with_xml"
13035 case "$with_xml" in
13040 echo "$as_me:$LINENO: checking for XML headers" >&5
13041 echo $ECHO_N "checking for XML headers... $ECHO_C" >&6
13042 d=$with_xml/include
13043 if test -d $d; then
13044 X_CFLAGS="-I$d $X_CFLAGS"
13045 echo "$as_me:$LINENO: result: $d" >&5
13046 echo "${ECHO_T}$d" >&6
13048 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13049 echo "${ECHO_T}not found ($d: no such directory)" >&6
13052 echo "$as_me:$LINENO: checking for XML libs" >&5
13053 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
13055 if test -d $d; then
13056 X_LIBS="-L$d $X_LIBS"
13057 echo "$as_me:$LINENO: result: $d" >&5
13058 echo "${ECHO_T}$d" >&6
13060 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13061 echo "${ECHO_T}not found ($d: no such directory)" >&6
13064 # replace the directory string with "yes".
13066 with_xml=$with_xml_req
13071 echo "error: argument to --with-xml must be \"yes\", \"no\", or a directory."
13072 echo " If it is a directory, then \`DIR/include' will be added to"
13073 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13079 if test "$with_xml" != yes -a "$with_xml" != no ; then
13080 echo "error: must be yes or no: --with-xml=$with_xml"
13084 if test "$with_xml" = yes; then
13088 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
13089 # look in /foo/bin/ for for xml-config.
13093 if test ! -z "$gtk_dir"; then
13094 # canonicalize slashes.
13095 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
13096 xml_path="$foo:$xml_path"
13099 if test ! -z "$gnome_dir"; then
13100 # canonicalize slashes.
13101 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
13102 xml_path="$foo:$xml_path"
13105 if test -n "$pkg_config" ; then
13108 # run pkg-config based tests.
13113 # If we have Gtk 2.x, then *only* XML 2.x will work.
13114 # If we have Gtk 1.x, or don't have Gtk at all, then
13115 # either XML 1.x or 2.x will work.
13117 # First check for XML 2.x.
13119 pkg_check_version libxml-2.0 2.4.6
13121 # If that didn't work (we don't have XML 2.x) and we *don't* have
13122 # Gtk 2.x, then check to see if we have XML 1.x
13124 if test "$ok" = no -a "$have_gtk2" = no; then
13126 pkg_check_version libxml 1.0
13131 if test "$have_xml" = yes; then
13132 echo "$as_me:$LINENO: checking for XML includes" >&5
13133 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
13134 if test "${ac_cv_xml_config_cflags+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 ac_cv_xml_config_cflags=`$pkg_config --cflags $pkgs`
13139 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
13140 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
13141 echo "$as_me:$LINENO: checking for XML libs" >&5
13142 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
13143 if test "${ac_cv_xml_config_libs+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 ac_cv_xml_config_libs=`$pkg_config --libs $pkgs`
13148 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
13149 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
13150 ac_xml_config_cflags=$ac_cv_xml_config_cflags
13151 ac_xml_config_libs=$ac_cv_xml_config_libs
13157 # run {xml2,xml}-config based tests.
13160 for ac_prog in xml2-config xml-config
13162 # Extract the first word of "$ac_prog", so it can be a program name with args.
13163 set dummy $ac_prog; ac_word=$2
13164 echo "$as_me:$LINENO: checking for $ac_word" >&5
13165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13166 if test "${ac_cv_path_xml_config+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 case $xml_config in
13171 ac_cv_path_xml_config="$xml_config" # Let the user override the test with a path.
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $xml_path
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13181 ac_cv_path_xml_config="$as_dir/$ac_word$ac_exec_ext"
13182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13191 xml_config=$ac_cv_path_xml_config
13193 if test -n "$xml_config"; then
13194 echo "$as_me:$LINENO: result: $xml_config" >&5
13195 echo "${ECHO_T}$xml_config" >&6
13197 echo "$as_me:$LINENO: result: no" >&5
13198 echo "${ECHO_T}no" >&6
13201 test -n "$xml_config" && break
13205 # If we found the xml-config program, run it to get flags.
13207 if test -n "$xml_config" ; then
13208 echo "$as_me:$LINENO: checking for XML includes" >&5
13209 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
13210 if test "${ac_cv_xml_config_cflags+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 ac_cv_xml_config_cflags=`$xml_config --cflags`
13215 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
13216 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
13217 echo "$as_me:$LINENO: checking for XML libs" >&5
13218 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
13219 if test "${ac_cv_xml_config_libs+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 ac_cv_xml_config_libs=`$xml_config --libs`
13224 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
13225 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
13226 ac_xml_config_cflags=$ac_cv_xml_config_cflags
13227 ac_xml_config_libs=$ac_cv_xml_config_libs
13230 ac_save_xml_CPPFLAGS="$CPPFLAGS"
13231 CPPFLAGS="$CPPFLAGS $ac_xml_config_cflags"
13233 # first try <libxml/parser.h> which is the new way...
13236 ac_save_CPPFLAGS="$CPPFLAGS"
13237 if test \! -z "$includedir" ; then
13238 CPPFLAGS="$CPPFLAGS -I$includedir"
13240 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13241 echo "$as_me:$LINENO: checking for libxml/xmlIO.h" >&5
13242 echo $ECHO_N "checking for libxml/xmlIO.h... $ECHO_C" >&6
13243 if test "${ac_cv_header_libxml_xmlIO_h+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 cat >conftest.$ac_ext <<_ACEOF
13247 #line $LINENO "configure"
13248 #include "confdefs.h"
13249 #include <libxml/parser.h>
13251 #include <libxml/xmlIO.h>
13253 rm -f conftest.$ac_objext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255 (eval $ac_compile) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try='test -s conftest.$ac_objext'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 ac_cv_header_libxml_xmlIO_h=yes
13267 echo "$as_me: failed program was:" >&5
13268 cat conftest.$ac_ext >&5
13269 ac_cv_header_libxml_xmlIO_h=no
13271 rm -f conftest.$ac_objext conftest.$ac_ext
13273 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_xmlIO_h" >&5
13274 echo "${ECHO_T}$ac_cv_header_libxml_xmlIO_h" >&6
13275 if test $ac_cv_header_libxml_xmlIO_h = yes; then
13280 CPPFLAGS="$ac_save_CPPFLAGS"
13282 # if that didn't work, then try just <parser.h> which is the old way...
13284 if test "$have_xml" = no; then
13286 ac_save_CPPFLAGS="$CPPFLAGS"
13287 if test \! -z "$includedir" ; then
13288 CPPFLAGS="$CPPFLAGS -I$includedir"
13290 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13291 echo "$as_me:$LINENO: checking for xmlIO.h" >&5
13292 echo $ECHO_N "checking for xmlIO.h... $ECHO_C" >&6
13293 if test "${ac_cv_header_xmlIO_h+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 cat >conftest.$ac_ext <<_ACEOF
13297 #line $LINENO "configure"
13298 #include "confdefs.h"
13299 #include <parser.h>
13303 rm -f conftest.$ac_objext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13305 (eval $ac_compile) 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -s conftest.$ac_objext'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 ac_cv_header_xmlIO_h=yes
13317 echo "$as_me: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13319 ac_cv_header_xmlIO_h=no
13321 rm -f conftest.$ac_objext conftest.$ac_ext
13323 echo "$as_me:$LINENO: result: $ac_cv_header_xmlIO_h" >&5
13324 echo "${ECHO_T}$ac_cv_header_xmlIO_h" >&6
13325 if test $ac_cv_header_xmlIO_h = yes; then
13326 have_xml=yes; have_old_xml=yes
13330 CPPFLAGS="$ac_save_CPPFLAGS"
13333 CPPFLAGS="$ac_save_xml_CPPFLAGS"
13338 if test "$have_xml" = yes; then
13339 # we have the XML headers; now make sure zlib is around.
13340 # yes, it's stupid we have to do this too, but there is
13341 # dependency screwage in Gnome.
13343 ac_save_CPPFLAGS="$CPPFLAGS"
13344 ac_save_LDFLAGS="$LDFLAGS"
13345 # ac_save_LIBS="$LIBS"
13347 if test \! -z "$includedir" ; then
13348 CPPFLAGS="$CPPFLAGS -I$includedir"
13350 # note: $X_CFLAGS includes $x_includes
13351 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13353 if test \! -z "$libdir" ; then
13354 LDFLAGS="$LDFLAGS -L$libdir"
13356 # note: $X_LIBS includes $x_libraries
13357 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13359 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
13360 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
13361 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 ac_check_lib_save_LIBS=$LIBS
13366 cat >conftest.$ac_ext <<_ACEOF
13367 #line $LINENO "configure"
13368 #include "confdefs.h"
13370 /* Override any gcc2 internal prototype to avoid an error. */
13374 /* We use char because int might match the return type of a gcc2
13375 builtin and then its argument prototype would still apply. */
13376 char zlibVersion ();
13377 #ifdef F77_DUMMY_MAIN
13378 # ifdef __cplusplus
13381 int F77_DUMMY_MAIN() { return 1; }
13391 rm -f conftest.$ac_objext conftest$ac_exeext
13392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13393 (eval $ac_link) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_lib_z_zlibVersion=yes
13405 echo "$as_me: failed program was:" >&5
13406 cat conftest.$ac_ext >&5
13407 ac_cv_lib_z_zlibVersion=no
13409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13410 LIBS=$ac_check_lib_save_LIBS
13412 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
13413 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
13414 if test $ac_cv_lib_z_zlibVersion = yes; then
13418 CPPFLAGS="$ac_save_CPPFLAGS"
13419 LDFLAGS="$ac_save_LDFLAGS"
13420 # LIBS="$ac_save_LIBS"
13422 if test "$have_zlib" = no; then
13428 if test "$have_xml" = yes; then
13429 # we have the header, now check for the library
13433 ac_save_CPPFLAGS="$CPPFLAGS"
13434 ac_save_LDFLAGS="$LDFLAGS"
13435 # ac_save_LIBS="$LIBS"
13437 if test \! -z "$includedir" ; then
13438 CPPFLAGS="$CPPFLAGS -I$includedir"
13440 # note: $X_CFLAGS includes $x_includes
13441 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13443 if test \! -z "$libdir" ; then
13444 LDFLAGS="$LDFLAGS -L$libdir"
13446 # note: $X_LIBS includes $x_libraries
13447 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13449 echo "$as_me:$LINENO: checking for xmlParseChunk in -lc" >&5
13450 echo $ECHO_N "checking for xmlParseChunk in -lc... $ECHO_C" >&6
13451 if test "${ac_cv_lib_c_xmlParseChunk+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 ac_check_lib_save_LIBS=$LIBS
13455 LIBS="-lc $ac_xml_config_libs $LIBS"
13456 cat >conftest.$ac_ext <<_ACEOF
13457 #line $LINENO "configure"
13458 #include "confdefs.h"
13460 /* Override any gcc2 internal prototype to avoid an error. */
13464 /* We use char because int might match the return type of a gcc2
13465 builtin and then its argument prototype would still apply. */
13466 char xmlParseChunk ();
13467 #ifdef F77_DUMMY_MAIN
13468 # ifdef __cplusplus
13471 int F77_DUMMY_MAIN() { return 1; }
13481 rm -f conftest.$ac_objext conftest$ac_exeext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13483 (eval $ac_link) 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } &&
13487 { ac_try='test -s conftest$ac_exeext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 ac_cv_lib_c_xmlParseChunk=yes
13495 echo "$as_me: failed program was:" >&5
13496 cat conftest.$ac_ext >&5
13497 ac_cv_lib_c_xmlParseChunk=no
13499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13500 LIBS=$ac_check_lib_save_LIBS
13502 echo "$as_me:$LINENO: result: $ac_cv_lib_c_xmlParseChunk" >&5
13503 echo "${ECHO_T}$ac_cv_lib_c_xmlParseChunk" >&6
13504 if test $ac_cv_lib_c_xmlParseChunk = yes; then
13507 XML_LIBS="$ac_xml_config_libs"
13508 cat >>confdefs.h <<\_ACEOF
13516 CPPFLAGS="$ac_save_CPPFLAGS"
13517 LDFLAGS="$ac_save_LDFLAGS"
13518 # LIBS="$ac_save_LIBS"
13522 if test "$have_xml" = yes; then
13523 INCLUDES="$INCLUDES $ac_xml_config_cflags"
13524 GTK_LIBS="$GTK_LIBS $ac_xml_config_libs"
13525 cat >>confdefs.h <<\_ACEOF
13529 if test "$have_old_xml" = yes; then
13530 cat >>confdefs.h <<\_ACEOF
13531 #define HAVE_OLD_XML_HEADERS 1
13540 ###############################################################################
13542 # Checking whether Motif is really Lesstif.
13544 ###############################################################################
13547 if test "$have_motif" = yes ; then
13548 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
13549 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
13550 if test "${ac_cv_have_lesstif+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 ac_save_CPPFLAGS="$CPPFLAGS"
13555 if test \! -z "$includedir" ; then
13556 CPPFLAGS="$CPPFLAGS -I$includedir"
13558 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13559 cat >conftest.$ac_ext <<_ACEOF
13560 #line $LINENO "configure"
13561 #include "confdefs.h"
13563 #ifdef F77_DUMMY_MAIN
13564 # ifdef __cplusplus
13567 int F77_DUMMY_MAIN() { return 1; }
13572 long vers = LesstifVersion;
13577 rm -f conftest.$ac_objext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579 (eval $ac_compile) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try='test -s conftest.$ac_objext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_have_lesstif=yes
13591 echo "$as_me: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13593 ac_cv_have_lesstif=no
13595 rm -f conftest.$ac_objext conftest.$ac_ext
13596 CPPFLAGS="$ac_save_CPPFLAGS"
13598 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
13599 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
13600 have_lesstif=$ac_cv_have_lesstif
13604 lesstif_version=unknown
13605 lesstif_version_string=unknown
13607 if test "$have_lesstif" = yes ; then
13609 echo unknown > conftest-lt
13610 echo "$as_me:$LINENO: checking LessTif version number" >&5
13611 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
13612 if test "${ac_cv_lesstif_version_string+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 ac_save_CPPFLAGS="$CPPFLAGS"
13617 if test \! -z "$includedir" ; then
13618 CPPFLAGS="$CPPFLAGS -I$includedir"
13620 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13621 if test "$cross_compiling" = yes; then
13622 ac_cv_lesstif_version=unknown
13623 ac_cv_lesstif_version_string=unknown
13625 cat >conftest.$ac_ext <<_ACEOF
13626 #line $LINENO "configure"
13627 #include "confdefs.h"
13631 FILE *f = fopen("conftest-lt", "w");
13633 fprintf(f, "%d %d.%d\n", LesstifVersion,
13634 LESSTIF_VERSION, LESSTIF_REVISION);
13639 rm -f conftest$ac_exeext
13640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13641 (eval $ac_link) 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ltv=`cat conftest-lt`
13651 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
13652 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
13654 echo "$as_me: program exited with status $ac_status" >&5
13655 echo "$as_me: failed program was:" >&5
13656 cat conftest.$ac_ext >&5
13657 ( exit $ac_status )
13658 ac_cv_lesstif_version=unknown
13659 ac_cv_lesstif_version_string=unknown
13661 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13663 CPPFLAGS="$ac_save_CPPFLAGS"
13665 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
13666 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
13668 lesstif_version=$ac_cv_lesstif_version
13669 lesstif_version_string=$ac_cv_lesstif_version_string
13674 if test "$have_motif" = yes ; then
13676 echo unknown > conftest-mt
13677 echo "$as_me:$LINENO: checking Motif version number" >&5
13678 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
13679 if test "${ac_cv_motif_version_string+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 ac_save_CPPFLAGS="$CPPFLAGS"
13684 if test \! -z "$includedir" ; then
13685 CPPFLAGS="$CPPFLAGS -I$includedir"
13687 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13688 if test "$cross_compiling" = yes; then
13689 ac_cv_motif_version=unknown
13690 ac_cv_motif_version_string=unknown
13692 cat >conftest.$ac_ext <<_ACEOF
13693 #line $LINENO "configure"
13694 #include "confdefs.h"
13698 FILE *f = fopen("conftest-mt", "w");
13700 fprintf(f, "%d %d.%d\n", XmVersion,
13701 XmVERSION, XmREVISION);
13706 rm -f conftest$ac_exeext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13708 (eval $ac_link) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 mtv=`cat conftest-mt`
13718 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
13719 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
13721 echo "$as_me: program exited with status $ac_status" >&5
13722 echo "$as_me: failed program was:" >&5
13723 cat conftest.$ac_ext >&5
13724 ( exit $ac_status )
13725 ac_cv_motif_version=unknown
13726 ac_cv_motif_version_string=unknown
13728 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13730 CPPFLAGS="$ac_save_CPPFLAGS"
13732 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
13733 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
13735 motif_version=$ac_cv_motif_version
13736 motif_version_string=$ac_cv_motif_version_string
13741 ###############################################################################
13743 # Checking whether Motif requires -lXpm.
13745 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
13746 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
13747 # of the library whether to build the XPM code into libXm, or whether
13748 # to rely on an external libXm. So the only way to tell whether XPM is
13749 # a link-time requirement is to examine libXm.a, which is very
13750 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
13751 # always link against XPM if the XPM lib exists (and this will be a
13752 # no-op if libXm happens to already have the XPM code in it.)
13754 ###############################################################################
13756 motif_requires_xpm=no
13757 if test "$have_motif" = yes ; then
13758 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
13759 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
13760 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
13762 motif_requires_xpm=yes
13763 echo "$as_me:$LINENO: result: maybe" >&5
13764 echo "${ECHO_T}maybe" >&6
13766 echo "$as_me:$LINENO: result: no" >&5
13767 echo "${ECHO_T}no" >&6
13772 ###############################################################################
13774 # Checking whether Motif requires -lXp.
13776 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
13777 # Extension". Why this extension isn't in -lXext with all the others,
13780 ###############################################################################
13783 if test "$have_motif" = yes ; then
13786 ac_save_CPPFLAGS="$CPPFLAGS"
13787 ac_save_LDFLAGS="$LDFLAGS"
13788 # ac_save_LIBS="$LIBS"
13790 if test \! -z "$includedir" ; then
13791 CPPFLAGS="$CPPFLAGS -I$includedir"
13793 # note: $X_CFLAGS includes $x_includes
13794 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13796 if test \! -z "$libdir" ; then
13797 LDFLAGS="$LDFLAGS -L$libdir"
13799 # note: $X_LIBS includes $x_libraries
13800 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13802 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
13803 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
13804 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 ac_check_lib_save_LIBS=$LIBS
13808 LIBS="-lXp -lX11 -lXext -lm $LIBS"
13809 cat >conftest.$ac_ext <<_ACEOF
13810 #line $LINENO "configure"
13811 #include "confdefs.h"
13813 /* Override any gcc2 internal prototype to avoid an error. */
13817 /* We use char because int might match the return type of a gcc2
13818 builtin and then its argument prototype would still apply. */
13819 char XpQueryExtension ();
13820 #ifdef F77_DUMMY_MAIN
13821 # ifdef __cplusplus
13824 int F77_DUMMY_MAIN() { return 1; }
13829 XpQueryExtension ();
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836 (eval $ac_link) 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -s conftest$ac_exeext'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13846 ac_cv_lib_Xp_XpQueryExtension=yes
13848 echo "$as_me: failed program was:" >&5
13849 cat conftest.$ac_ext >&5
13850 ac_cv_lib_Xp_XpQueryExtension=no
13852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13853 LIBS=$ac_check_lib_save_LIBS
13855 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
13856 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
13857 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
13858 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
13863 CPPFLAGS="$ac_save_CPPFLAGS"
13864 LDFLAGS="$ac_save_LDFLAGS"
13865 # LIBS="$ac_save_LIBS"
13870 ###############################################################################
13872 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
13874 ###############################################################################
13877 if test "$have_motif" = yes ; then
13879 ac_save_CPPFLAGS="$CPPFLAGS"
13880 ac_save_LDFLAGS="$LDFLAGS"
13881 # ac_save_LIBS="$LIBS"
13883 if test \! -z "$includedir" ; then
13884 CPPFLAGS="$CPPFLAGS -I$includedir"
13886 # note: $X_CFLAGS includes $x_includes
13887 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13889 if test \! -z "$libdir" ; then
13890 LDFLAGS="$LDFLAGS -L$libdir"
13892 # note: $X_LIBS includes $x_libraries
13893 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13895 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
13896 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
13897 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 ac_check_lib_save_LIBS=$LIBS
13901 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
13902 cat >conftest.$ac_ext <<_ACEOF
13903 #line $LINENO "configure"
13904 #include "confdefs.h"
13906 /* Override any gcc2 internal prototype to avoid an error. */
13910 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912 char _Xsetlocale ();
13913 #ifdef F77_DUMMY_MAIN
13914 # ifdef __cplusplus
13917 int F77_DUMMY_MAIN() { return 1; }
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -s conftest$ac_exeext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_lib_Xintl__Xsetlocale=yes
13941 echo "$as_me: failed program was:" >&5
13942 cat conftest.$ac_ext >&5
13943 ac_cv_lib_Xintl__Xsetlocale=no
13945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13946 LIBS=$ac_check_lib_save_LIBS
13948 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
13949 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
13950 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
13956 CPPFLAGS="$ac_save_CPPFLAGS"
13957 LDFLAGS="$ac_save_LDFLAGS"
13958 # LIBS="$ac_save_LIBS"
13960 if test "$have_xintl" = yes; then
13961 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
13966 ###############################################################################
13968 # Check for -lGL or -lMesaGL.
13970 ###############################################################################
13974 with_gl_req=unspecified
13977 # Check whether --with-gl or --without-gl was given.
13978 if test "${with_gl+set}" = set; then
13980 with_gl="$withval"; with_gl_req="$withval"
13991 echo "$as_me:$LINENO: checking for GL headers" >&5
13992 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
13994 if test -d $d; then
13995 X_CFLAGS="-I$d $X_CFLAGS"
13996 echo "$as_me:$LINENO: result: $d" >&5
13997 echo "${ECHO_T}$d" >&6
13999 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14000 echo "${ECHO_T}not found ($d: no such directory)" >&6
14003 echo "$as_me:$LINENO: checking for GL libs" >&5
14004 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
14006 if test -d $d; then
14007 X_LIBS="-L$d $X_LIBS"
14008 echo "$as_me:$LINENO: result: $d" >&5
14009 echo "${ECHO_T}$d" >&6
14011 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14012 echo "${ECHO_T}not found ($d: no such directory)" >&6
14015 # replace the directory string with "yes".
14017 with_gl=$with_gl_req
14022 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
14023 echo " If it is a directory, then \`DIR/include' will be added to"
14024 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14030 ac_mesagl_version=unknown
14031 ac_mesagl_version_string=unknown
14033 if test "$with_gl" = yes; then
14035 ac_save_CPPFLAGS="$CPPFLAGS"
14036 if test \! -z "$includedir" ; then
14037 CPPFLAGS="$CPPFLAGS -I$includedir"
14039 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14040 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14041 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
14042 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
14043 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
14047 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
14049 # Is the header compilable?
14050 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
14051 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
14052 cat >conftest.$ac_ext <<_ACEOF
14053 #line $LINENO "configure"
14054 #include "confdefs.h"
14055 $ac_includes_default
14058 rm -f conftest.$ac_objext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14060 (eval $ac_compile) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } &&
14064 { ac_try='test -s conftest.$ac_objext'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }; then
14070 ac_header_compiler=yes
14072 echo "$as_me: failed program was:" >&5
14073 cat conftest.$ac_ext >&5
14074 ac_header_compiler=no
14076 rm -f conftest.$ac_objext conftest.$ac_ext
14077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14078 echo "${ECHO_T}$ac_header_compiler" >&6
14080 # Is the header present?
14081 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
14082 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
14083 cat >conftest.$ac_ext <<_ACEOF
14084 #line $LINENO "configure"
14085 #include "confdefs.h"
14088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14091 egrep -v '^ *\+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } >/dev/null; then
14096 if test -s conftest.err; then
14097 ac_cpp_err=$ac_c_preproc_warn_flag
14104 if test -z "$ac_cpp_err"; then
14105 ac_header_preproc=yes
14107 echo "$as_me: failed program was:" >&5
14108 cat conftest.$ac_ext >&5
14109 ac_header_preproc=no
14111 rm -f conftest.err conftest.$ac_ext
14112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14113 echo "${ECHO_T}$ac_header_preproc" >&6
14115 # So? What about this header?
14116 case $ac_header_compiler:$ac_header_preproc in
14118 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14119 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
14121 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;};;
14123 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
14124 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
14126 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
14128 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;};;
14130 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
14131 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
14132 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 ac_cv_header_GL_gl_h=$ac_header_preproc
14137 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
14138 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
14141 if test $ac_cv_header_GL_gl_h = yes; then
14148 CPPFLAGS="$ac_save_CPPFLAGS"
14149 if test "$have_gl" = yes ; then
14151 ac_save_CPPFLAGS="$CPPFLAGS"
14152 if test \! -z "$includedir" ; then
14153 CPPFLAGS="$CPPFLAGS -I$includedir"
14155 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14156 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
14157 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
14158 if test "${ac_cv_header_GL_glx_h+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 cat >conftest.$ac_ext <<_ACEOF
14162 #line $LINENO "configure"
14163 #include "confdefs.h"
14166 #include <GL/glx.h>
14168 rm -f conftest.$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_header_GL_glx_h=yes
14182 echo "$as_me: failed program was:" >&5
14183 cat conftest.$ac_ext >&5
14184 ac_cv_header_GL_glx_h=no
14186 rm -f conftest.$ac_objext conftest.$ac_ext
14188 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
14189 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
14190 if test $ac_cv_header_GL_glx_h = yes; then
14197 CPPFLAGS="$ac_save_CPPFLAGS"
14200 # If we have the headers, try and figure out which vendor it's from.
14202 if test "$have_gl" = yes ; then
14204 # We need to know whether it's MesaGL so that we know which libraries
14207 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
14208 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
14209 if test "${ac_cv_have_mesa_gl+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 ac_cv_have_mesa_gl=no
14214 ac_save_CPPFLAGS="$CPPFLAGS"
14215 if test \! -z "$includedir" ; then
14216 CPPFLAGS="$CPPFLAGS -I$includedir"
14218 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14219 cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14221 #include "confdefs.h"
14222 #include <GL/glx.h>
14225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14226 egrep "Mesa|MESA" >/dev/null 2>&1; then
14227 ac_cv_have_mesa_gl=yes
14231 CPPFLAGS="$ac_save_CPPFLAGS"
14234 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
14235 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
14236 ac_have_mesa_gl=$ac_cv_have_mesa_gl
14243 # Some versions of MesaGL are compiled to require -lpthread.
14244 # So if the Mesa headers exist, and -lpthread exists, then always
14245 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
14247 if test "$ac_have_mesa_gl" = yes; then
14248 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14249 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
14250 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 ac_check_lib_save_LIBS=$LIBS
14254 LIBS="-lpthread $LIBS"
14255 cat >conftest.$ac_ext <<_ACEOF
14256 #line $LINENO "configure"
14257 #include "confdefs.h"
14259 /* Override any gcc2 internal prototype to avoid an error. */
14263 /* We use char because int might match the return type of a gcc2
14264 builtin and then its argument prototype would still apply. */
14265 char pthread_create ();
14266 #ifdef F77_DUMMY_MAIN
14267 # ifdef __cplusplus
14270 int F77_DUMMY_MAIN() { return 1; }
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14282 (eval $ac_link) 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -s conftest$ac_exeext'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292 ac_cv_lib_pthread_pthread_create=yes
14294 echo "$as_me: failed program was:" >&5
14295 cat conftest.$ac_ext >&5
14296 ac_cv_lib_pthread_pthread_create=no
14298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14299 LIBS=$ac_check_lib_save_LIBS
14301 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
14302 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
14303 if test $ac_cv_lib_pthread_pthread_create = yes; then
14304 GL_LIBS="-lpthread"
14310 # If we have Mesa headers, check to see if we can link against -lMesaGL.
14311 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
14312 # Else, warn that GL is busted. (We have the headers, but no libs.)
14315 if test "$ac_have_mesa_gl" = yes ; then
14317 ac_save_CPPFLAGS="$CPPFLAGS"
14318 ac_save_LDFLAGS="$LDFLAGS"
14319 # ac_save_LIBS="$LIBS"
14321 if test \! -z "$includedir" ; then
14322 CPPFLAGS="$CPPFLAGS -I$includedir"
14324 # note: $X_CFLAGS includes $x_includes
14325 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14327 if test \! -z "$libdir" ; then
14328 LDFLAGS="$LDFLAGS -L$libdir"
14330 # note: $X_LIBS includes $x_libraries
14331 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14333 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
14334 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
14335 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 ac_check_lib_save_LIBS=$LIBS
14339 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
14340 cat >conftest.$ac_ext <<_ACEOF
14341 #line $LINENO "configure"
14342 #include "confdefs.h"
14344 /* Override any gcc2 internal prototype to avoid an error. */
14348 /* We use char because int might match the return type of a gcc2
14349 builtin and then its argument prototype would still apply. */
14350 char glXCreateContext ();
14351 #ifdef F77_DUMMY_MAIN
14352 # ifdef __cplusplus
14355 int F77_DUMMY_MAIN() { return 1; }
14360 glXCreateContext ();
14365 rm -f conftest.$ac_objext conftest$ac_exeext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14367 (eval $ac_link) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
14371 { ac_try='test -s conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_lib_MesaGL_glXCreateContext=yes
14379 echo "$as_me: failed program was:" >&5
14380 cat conftest.$ac_ext >&5
14381 ac_cv_lib_MesaGL_glXCreateContext=no
14383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14384 LIBS=$ac_check_lib_save_LIBS
14386 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
14387 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
14388 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
14390 GL_LIBS="-lMesaGL -lMesaGLU $GL_LIBS"
14393 CPPFLAGS="$ac_save_CPPFLAGS"
14394 LDFLAGS="$ac_save_LDFLAGS"
14395 # LIBS="$ac_save_LIBS"
14399 if test "$gl_lib_1" = "" ; then
14401 ac_save_CPPFLAGS="$CPPFLAGS"
14402 ac_save_LDFLAGS="$LDFLAGS"
14403 # ac_save_LIBS="$LIBS"
14405 if test \! -z "$includedir" ; then
14406 CPPFLAGS="$CPPFLAGS -I$includedir"
14408 # note: $X_CFLAGS includes $x_includes
14409 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14411 if test \! -z "$libdir" ; then
14412 LDFLAGS="$LDFLAGS -L$libdir"
14414 # note: $X_LIBS includes $x_libraries
14415 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14417 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
14418 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
14419 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 ac_check_lib_save_LIBS=$LIBS
14423 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
14424 cat >conftest.$ac_ext <<_ACEOF
14425 #line $LINENO "configure"
14426 #include "confdefs.h"
14428 /* Override any gcc2 internal prototype to avoid an error. */
14432 /* We use char because int might match the return type of a gcc2
14433 builtin and then its argument prototype would still apply. */
14434 char glXCreateContext ();
14435 #ifdef F77_DUMMY_MAIN
14436 # ifdef __cplusplus
14439 int F77_DUMMY_MAIN() { return 1; }
14444 glXCreateContext ();
14449 rm -f conftest.$ac_objext conftest$ac_exeext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451 (eval $ac_link) 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try='test -s conftest$ac_exeext'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; }; then
14461 ac_cv_lib_GL_glXCreateContext=yes
14463 echo "$as_me: failed program was:" >&5
14464 cat conftest.$ac_ext >&5
14465 ac_cv_lib_GL_glXCreateContext=no
14467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14470 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
14471 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
14472 if test $ac_cv_lib_GL_glXCreateContext = yes; then
14474 GL_LIBS="-lGL -lGLU $GL_LIBS"
14477 CPPFLAGS="$ac_save_CPPFLAGS"
14478 LDFLAGS="$ac_save_LDFLAGS"
14479 # LIBS="$ac_save_LIBS"
14483 if test "$gl_lib_1" = "" ; then
14484 # we have headers, but no libs -- bail.
14489 # linking works -- we can build the GL hacks.
14490 cat >>confdefs.h <<\_ACEOF
14494 if test "$ac_have_mesa_gl" = yes ; then
14495 cat >>confdefs.h <<\_ACEOF
14496 #define HAVE_MESA_GL 1
14504 # Now that we know we have GL headers and libs, do some more GL testing.
14507 if test "$have_gl" = yes ; then
14508 # If it's MesaGL, we'd like to issue a warning if the version number
14509 # is less than or equal to 2.6, because that version had a security bug.
14511 if test "$ac_have_mesa_gl" = yes; then
14513 echo "$as_me:$LINENO: checking MesaGL version number" >&5
14514 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
14515 if test "${ac_cv_mesagl_version_string+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 cat > conftest.$ac_ext <<EOF
14519 #line 14525 "configure"
14520 #include "confdefs.h"
14522 #ifndef MESA_MAJOR_VERSION
14523 # include <GL/xmesa.h>
14524 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
14525 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
14527 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
14530 ac_save_CPPFLAGS="$CPPFLAGS"
14531 if test \! -z "$includedir" ; then
14532 CPPFLAGS="$CPPFLAGS -I$includedir"
14534 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14536 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
14540 mglv=`echo "$mglv" | sed -n \
14541 's/^configure:.*\([0-9][0-9]*\).*\([0-9][0-9]*\).*$/\1.\2/p'`
14544 rm -f conftest.$ac_ext
14546 CPPFLAGS="$ac_save_CPPFLAGS"
14548 if test "$mglv" = ""; then
14549 ac_mesagl_version=unknown
14550 ac_mesagl_version_string=unknown
14552 ac_mesagl_version_string=$mglv
14553 maj=`echo $mglv | sed -n 's/\..*//p'`
14554 min=`echo $mglv | sed -n 's/.*\.//p'`
14555 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
14556 if test -z "$ac_mesagl_version"; then
14557 ac_mesagl_version=unknown
14558 ac_mesagl_version_string=unknown
14561 ac_cv_mesagl_version=$ac_mesagl_version
14562 ac_cv_mesagl_version_string=$ac_mesagl_version_string
14565 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
14566 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
14567 ac_mesagl_version=$ac_cv_mesagl_version
14568 ac_mesagl_version_string=$ac_cv_mesagl_version_string
14572 # Check for OpenGL 1.1 features.
14575 ac_save_CPPFLAGS="$CPPFLAGS"
14576 ac_save_LDFLAGS="$LDFLAGS"
14577 # ac_save_LIBS="$LIBS"
14579 if test \! -z "$includedir" ; then
14580 CPPFLAGS="$CPPFLAGS -I$includedir"
14582 # note: $X_CFLAGS includes $x_includes
14583 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14585 if test \! -z "$libdir" ; then
14586 LDFLAGS="$LDFLAGS -L$libdir"
14588 # note: $X_LIBS includes $x_libraries
14589 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14591 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
14592 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
14593 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
14594 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 ac_check_lib_save_LIBS=$LIBS
14598 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
14599 cat >conftest.$ac_ext <<_ACEOF
14600 #line $LINENO "configure"
14601 #include "confdefs.h"
14603 /* Override any gcc2 internal prototype to avoid an error. */
14607 /* We use char because int might match the return type of a gcc2
14608 builtin and then its argument prototype would still apply. */
14609 char glBindTexture ();
14610 #ifdef F77_DUMMY_MAIN
14611 # ifdef __cplusplus
14614 int F77_DUMMY_MAIN() { return 1; }
14624 rm -f conftest.$ac_objext conftest$ac_exeext
14625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14626 (eval $ac_link) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -s conftest$ac_exeext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 eval "$as_ac_Lib=yes"
14638 echo "$as_me: failed program was:" >&5
14639 cat conftest.$ac_ext >&5
14640 eval "$as_ac_Lib=no"
14642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14643 LIBS=$ac_check_lib_save_LIBS
14645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14646 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14647 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14648 cat >>confdefs.h <<\_ACEOF
14649 #define HAVE_GLBINDTEXTURE 1
14656 CPPFLAGS="$ac_save_CPPFLAGS"
14657 LDFLAGS="$ac_save_LDFLAGS"
14658 # LIBS="$ac_save_LIBS"
14662 elif test "$with_gl" != no; then
14663 echo "error: must be yes or no: --with-gl=$with_gl"
14668 ###############################################################################
14672 ###############################################################################
14675 with_gle_req=unspecified
14678 # Check whether --with-gle or --without-gle was given.
14679 if test "${with_gle+set}" = set; then
14680 withval="$with_gle"
14681 with_gle="$withval"; with_gle_req="$withval"
14687 case "$with_gle" in
14692 echo "$as_me:$LINENO: checking for GLE headers" >&5
14693 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
14694 d=$with_gle/include
14695 if test -d $d; then
14696 X_CFLAGS="-I$d $X_CFLAGS"
14697 echo "$as_me:$LINENO: result: $d" >&5
14698 echo "${ECHO_T}$d" >&6
14700 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14701 echo "${ECHO_T}not found ($d: no such directory)" >&6
14704 echo "$as_me:$LINENO: checking for GLE libs" >&5
14705 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
14707 if test -d $d; then
14708 X_LIBS="-L$d $X_LIBS"
14709 echo "$as_me:$LINENO: result: $d" >&5
14710 echo "${ECHO_T}$d" >&6
14712 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14713 echo "${ECHO_T}not found ($d: no such directory)" >&6
14716 # replace the directory string with "yes".
14718 with_gle=$with_gle_req
14723 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
14724 echo " If it is a directory, then \`DIR/include' will be added to"
14725 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14733 if test "$with_gle" = yes; then
14736 ac_save_CPPFLAGS="$CPPFLAGS"
14737 if test \! -z "$includedir" ; then
14738 CPPFLAGS="$CPPFLAGS -I$includedir"
14740 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14741 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
14742 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
14743 if test "${ac_cv_header_GL_gle_h+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 cat >conftest.$ac_ext <<_ACEOF
14747 #line $LINENO "configure"
14748 #include "confdefs.h"
14751 #include <GL/gle.h>
14753 rm -f conftest.$ac_objext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14755 (eval $ac_compile) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try='test -s conftest.$ac_objext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 ac_cv_header_GL_gle_h=yes
14767 echo "$as_me: failed program was:" >&5
14768 cat conftest.$ac_ext >&5
14769 ac_cv_header_GL_gle_h=no
14771 rm -f conftest.$ac_objext conftest.$ac_ext
14773 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
14774 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
14775 if test $ac_cv_header_GL_gle_h = yes; then
14782 CPPFLAGS="$ac_save_CPPFLAGS"
14783 if test "$have_gle3" = yes ; then
14787 ac_save_CPPFLAGS="$CPPFLAGS"
14788 if test \! -z "$includedir" ; then
14789 CPPFLAGS="$CPPFLAGS -I$includedir"
14791 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14792 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
14793 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
14794 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 cat >conftest.$ac_ext <<_ACEOF
14798 #line $LINENO "configure"
14799 #include "confdefs.h"
14802 #include <GL/gutil.h>
14804 rm -f conftest.$ac_objext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14806 (eval $ac_compile) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -s conftest.$ac_objext'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 ac_cv_header_GL_gutil_h=yes
14818 echo "$as_me: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14820 ac_cv_header_GL_gutil_h=no
14822 rm -f conftest.$ac_objext conftest.$ac_ext
14824 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
14825 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
14826 if test $ac_cv_header_GL_gutil_h = yes; then
14833 CPPFLAGS="$ac_save_CPPFLAGS"
14834 if test "$have_gle" = yes ; then
14836 ac_save_CPPFLAGS="$CPPFLAGS"
14837 if test \! -z "$includedir" ; then
14838 CPPFLAGS="$CPPFLAGS -I$includedir"
14840 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14841 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
14842 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
14843 if test "${ac_cv_header_GL_tube_h+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14848 #include "confdefs.h"
14851 #include <GL/tube.h>
14853 rm -f conftest.$ac_objext
14854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855 (eval $ac_compile) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -s conftest.$ac_objext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_cv_header_GL_tube_h=yes
14867 echo "$as_me: failed program was:" >&5
14868 cat conftest.$ac_ext >&5
14869 ac_cv_header_GL_tube_h=no
14871 rm -f conftest.$ac_objext conftest.$ac_ext
14873 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
14874 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
14875 if test $ac_cv_header_GL_tube_h = yes; then
14882 CPPFLAGS="$ac_save_CPPFLAGS"
14886 if test "$have_gle" = yes ; then
14890 ac_save_CPPFLAGS="$CPPFLAGS"
14891 ac_save_LDFLAGS="$LDFLAGS"
14892 # ac_save_LIBS="$LIBS"
14894 if test \! -z "$includedir" ; then
14895 CPPFLAGS="$CPPFLAGS -I$includedir"
14897 # note: $X_CFLAGS includes $x_includes
14898 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14900 if test \! -z "$libdir" ; then
14901 LDFLAGS="$LDFLAGS -L$libdir"
14903 # note: $X_LIBS includes $x_libraries
14904 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14906 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
14907 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
14908 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 ac_check_lib_save_LIBS=$LIBS
14912 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
14913 cat >conftest.$ac_ext <<_ACEOF
14914 #line $LINENO "configure"
14915 #include "confdefs.h"
14917 /* Override any gcc2 internal prototype to avoid an error. */
14921 /* We use char because int might match the return type of a gcc2
14922 builtin and then its argument prototype would still apply. */
14923 char gleCreateGC ();
14924 #ifdef F77_DUMMY_MAIN
14925 # ifdef __cplusplus
14928 int F77_DUMMY_MAIN() { return 1; }
14938 rm -f conftest.$ac_objext conftest$ac_exeext
14939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14940 (eval $ac_link) 2>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
14944 { ac_try='test -s conftest$ac_exeext'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950 ac_cv_lib_gle_gleCreateGC=yes
14952 echo "$as_me: failed program was:" >&5
14953 cat conftest.$ac_ext >&5
14954 ac_cv_lib_gle_gleCreateGC=no
14956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14957 LIBS=$ac_check_lib_save_LIBS
14959 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
14960 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
14961 if test $ac_cv_lib_gle_gleCreateGC = yes; then
14962 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
14965 CPPFLAGS="$ac_save_CPPFLAGS"
14966 LDFLAGS="$ac_save_LDFLAGS"
14967 # LIBS="$ac_save_LIBS"
14970 if test "$have_gle" = yes ; then
14974 # sometimes the libmatrix stuff is included in libgle. look there first.
14976 # I don't get it. For some reason, this test passes on SGI, as if
14977 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
14978 # Yet the link is succeeding. Why???
14980 # AC_CHECK_X_LIB(gle, uview_direction_d,
14981 # [have_gle=yes; gle_halfassed=no],
14982 # [], $GL_LIBS -lX11 -lXext -lm)
14984 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
14986 if test "$have_gle3" = yes ; then
14988 ac_save_CPPFLAGS="$CPPFLAGS"
14989 ac_save_LDFLAGS="$LDFLAGS"
14990 # ac_save_LIBS="$LIBS"
14992 if test \! -z "$includedir" ; then
14993 CPPFLAGS="$CPPFLAGS -I$includedir"
14995 # note: $X_CFLAGS includes $x_includes
14996 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14998 if test \! -z "$libdir" ; then
14999 LDFLAGS="$LDFLAGS -L$libdir"
15001 # note: $X_LIBS includes $x_libraries
15002 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15004 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
15005 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
15006 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15009 ac_check_lib_save_LIBS=$LIBS
15010 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
15011 cat >conftest.$ac_ext <<_ACEOF
15012 #line $LINENO "configure"
15013 #include "confdefs.h"
15015 /* Override any gcc2 internal prototype to avoid an error. */
15019 /* We use char because int might match the return type of a gcc2
15020 builtin and then its argument prototype would still apply. */
15021 char uview_direction ();
15022 #ifdef F77_DUMMY_MAIN
15023 # ifdef __cplusplus
15026 int F77_DUMMY_MAIN() { return 1; }
15031 uview_direction ();
15036 rm -f conftest.$ac_objext conftest$ac_exeext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038 (eval $ac_link) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } &&
15042 { ac_try='test -s conftest$ac_exeext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 ac_cv_lib_gle_uview_direction=yes
15050 echo "$as_me: failed program was:" >&5
15051 cat conftest.$ac_ext >&5
15052 ac_cv_lib_gle_uview_direction=no
15054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15055 LIBS=$ac_check_lib_save_LIBS
15057 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
15058 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
15059 if test $ac_cv_lib_gle_uview_direction = yes; then
15060 have_gle=yes; gle_halfassed=no
15063 CPPFLAGS="$ac_save_CPPFLAGS"
15064 LDFLAGS="$ac_save_LDFLAGS"
15065 # LIBS="$ac_save_LIBS"
15068 # if it wasn't in libgle, then look in libmatrix.
15069 if test "$have_gle" = no ; then
15071 ac_save_CPPFLAGS="$CPPFLAGS"
15072 ac_save_LDFLAGS="$LDFLAGS"
15073 # ac_save_LIBS="$LIBS"
15075 if test \! -z "$includedir" ; then
15076 CPPFLAGS="$CPPFLAGS -I$includedir"
15078 # note: $X_CFLAGS includes $x_includes
15079 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15081 if test \! -z "$libdir" ; then
15082 LDFLAGS="$LDFLAGS -L$libdir"
15084 # note: $X_LIBS includes $x_libraries
15085 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15087 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
15088 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
15089 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 ac_check_lib_save_LIBS=$LIBS
15093 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
15094 cat >conftest.$ac_ext <<_ACEOF
15095 #line $LINENO "configure"
15096 #include "confdefs.h"
15098 /* Override any gcc2 internal prototype to avoid an error. */
15102 /* We use char because int might match the return type of a gcc2
15103 builtin and then its argument prototype would still apply. */
15104 char uview_direction_d ();
15105 #ifdef F77_DUMMY_MAIN
15106 # ifdef __cplusplus
15109 int F77_DUMMY_MAIN() { return 1; }
15114 uview_direction_d ();
15119 rm -f conftest.$ac_objext conftest$ac_exeext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15121 (eval $ac_link) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -s conftest$ac_exeext'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15131 ac_cv_lib_matrix_uview_direction_d=yes
15133 echo "$as_me: failed program was:" >&5
15134 cat conftest.$ac_ext >&5
15135 ac_cv_lib_matrix_uview_direction_d=no
15137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15138 LIBS=$ac_check_lib_save_LIBS
15140 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
15141 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
15142 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
15143 have_gle=yes; gle_halfassed=no;
15144 GLE_LIBS="$GLE_LIBS -lmatrix"
15147 CPPFLAGS="$ac_save_CPPFLAGS"
15148 LDFLAGS="$ac_save_LDFLAGS"
15149 # LIBS="$ac_save_LIBS"
15154 if test "$have_gle" = yes ; then
15155 cat >>confdefs.h <<\_ACEOF
15159 if test "$have_gle3" = yes ; then
15160 cat >>confdefs.h <<\_ACEOF
15161 #define HAVE_GLE3 1
15167 elif test "$with_gle" != no; then
15168 echo "error: must be yes or no: --with-gle=$with_gle"
15175 ###############################################################################
15179 ###############################################################################
15182 with_xpm_req=unspecified
15184 # Check whether --with-xpm or --without-xpm was given.
15185 if test "${with_xpm+set}" = set; then
15186 withval="$with_xpm"
15187 with_xpm="$withval"; with_xpm_req="$withval"
15193 case "$with_xpm" in
15198 echo "$as_me:$LINENO: checking for XPM headers" >&5
15199 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
15200 d=$with_xpm/include
15201 if test -d $d; then
15202 X_CFLAGS="-I$d $X_CFLAGS"
15203 echo "$as_me:$LINENO: result: $d" >&5
15204 echo "${ECHO_T}$d" >&6
15206 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15207 echo "${ECHO_T}not found ($d: no such directory)" >&6
15210 echo "$as_me:$LINENO: checking for XPM libs" >&5
15211 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
15213 if test -d $d; then
15214 X_LIBS="-L$d $X_LIBS"
15215 echo "$as_me:$LINENO: result: $d" >&5
15216 echo "${ECHO_T}$d" >&6
15218 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15219 echo "${ECHO_T}not found ($d: no such directory)" >&6
15222 # replace the directory string with "yes".
15224 with_xpm=$with_xpm_req
15229 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
15230 echo " If it is a directory, then \`DIR/include' will be added to"
15231 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15237 if test "$with_xpm" = yes; then
15239 ac_save_CPPFLAGS="$CPPFLAGS"
15240 if test \! -z "$includedir" ; then
15241 CPPFLAGS="$CPPFLAGS -I$includedir"
15243 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15244 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15245 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15246 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 cat >conftest.$ac_ext <<_ACEOF
15250 #line $LINENO "configure"
15251 #include "confdefs.h"
15252 #include <X11/Xlib.h>
15254 #include <X11/xpm.h>
15256 rm -f conftest.$ac_objext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258 (eval $ac_compile) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -s conftest.$ac_objext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_cv_header_X11_xpm_h=yes
15270 echo "$as_me: failed program was:" >&5
15271 cat conftest.$ac_ext >&5
15272 ac_cv_header_X11_xpm_h=no
15274 rm -f conftest.$ac_objext conftest.$ac_ext
15276 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15277 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15278 if test $ac_cv_header_X11_xpm_h = yes; then
15280 cat >>confdefs.h <<\_ACEOF
15288 CPPFLAGS="$ac_save_CPPFLAGS"
15289 elif test "$with_xpm" != no; then
15290 echo "error: must be yes or no: --with-xpm=$with_xpm"
15294 # See comment near $motif_requires_xpm, above.
15295 # Need to do this here, after both Motif and XPM have been checked for.
15297 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
15298 if test "$motif_requires_xpm" = yes ; then
15299 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
15304 ###############################################################################
15306 # Check for -lgdk_pixbuf.
15308 ###############################################################################
15311 with_gdk_pixbuf_req=unspecified
15313 # Check whether --with-pixbuf or --without-pixbuf was given.
15314 if test "${with_pixbuf+set}" = set; then
15315 withval="$with_pixbuf"
15316 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
15318 with_gdk_pixbuf=yes
15321 # if --with-pixbuf=/directory/ was specified, remember that directory so that
15322 # we can also look for the `gdk-pixbuf-config' program in that directory.
15323 case "$with_gdk_pixbuf" in
15325 gdk_pixbuf_dir="$with_gdk_pixbuf"
15333 case "$with_gdk_pixbuf" in
15338 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
15339 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
15340 d=$with_gdk_pixbuf/include
15341 if test -d $d; then
15342 X_CFLAGS="-I$d $X_CFLAGS"
15343 echo "$as_me:$LINENO: result: $d" >&5
15344 echo "${ECHO_T}$d" >&6
15346 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15347 echo "${ECHO_T}not found ($d: no such directory)" >&6
15350 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
15351 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
15352 d=$with_gdk_pixbuf/lib
15353 if test -d $d; then
15354 X_LIBS="-L$d $X_LIBS"
15355 echo "$as_me:$LINENO: result: $d" >&5
15356 echo "${ECHO_T}$d" >&6
15358 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15359 echo "${ECHO_T}not found ($d: no such directory)" >&6
15362 # replace the directory string with "yes".
15363 with_gdk_pixbuf_req="yes"
15364 with_gdk_pixbuf=$with_gdk_pixbuf_req
15369 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
15370 echo " If it is a directory, then \`DIR/include' will be added to"
15371 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15377 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
15378 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
15382 if test "$with_gdk_pixbuf" = yes; then
15384 have_gdk_pixbuf2=no
15386 if test -n "$pkg_config" ; then
15389 # run pkg-config based tests.
15394 # If we have Gtk 2.x, then *only* gdk-pixbuf 2.x will work.
15395 # If we have Gtk 1.x, then *only* gdk-pixbuf 1.x will work.
15396 # If we don't have Gtk at all, then either will work.
15398 if test "$have_gtk" = no -o "$have_gtk2" = yes; then
15400 # we don't have Gtk; or we have Gtk 2.x. Check for pixbuf 2.x.
15402 pkg_check_version gdk-pixbuf-2.0 2.0.0
15403 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
15404 have_gdk_pixbuf="$ok"
15405 have_gdk_pixbuf2="$ok"
15408 if test "$have_gtk" = no -o "$have_gtk2" = no; then
15410 # we don't have Gtk; or we have Gtk 1.x.
15411 # If we don't have pixbuf 2.x, then check for pixbuf 1.x.
15413 if test "$have_gdk_pixbuf2" = no; then
15416 pkg_check_version gdk-pixbuf 0.0
15417 pkg_check_version gdk-pixbuf-xlib 0.0
15418 have_gdk_pixbuf="$ok"
15422 if test "$have_gdk_pixbuf" = yes; then
15423 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
15424 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
15425 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
15430 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
15431 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
15432 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
15433 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
15434 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
15439 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
15440 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
15442 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
15443 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
15447 if test "$have_gdk_pixbuf" = no; then
15450 # run gdk-pixbuf-config based tests.
15451 # note that we can't assume that the existence of "pkg-config" means
15452 # that we don't have to look for gdk-pixbuf-config -- in Gnome 1.4,
15453 # pkg-config exists, but doesn't know about pixbuf.
15456 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
15457 # look in /foo/bin/ for for gdk-pixbuf-config.
15459 gdk_pixbuf_path="$PATH"
15461 if test ! -z "$gtk_dir"; then
15462 # canonicalize slashes.
15463 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
15464 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
15467 if test ! -z "$gnome_dir"; then
15468 # canonicalize slashes.
15469 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
15470 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
15473 for ac_prog in gdk-pixbuf-config
15475 # Extract the first word of "$ac_prog", so it can be a program name with args.
15476 set dummy $ac_prog; ac_word=$2
15477 echo "$as_me:$LINENO: checking for $ac_word" >&5
15478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15479 if test "${ac_cv_path_gdk_pixbuf_config+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 case $gdk_pixbuf_config in
15484 ac_cv_path_gdk_pixbuf_config="$gdk_pixbuf_config" # Let the user override the test with a path.
15487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15488 for as_dir in $gdk_pixbuf_path
15491 test -z "$as_dir" && as_dir=.
15492 for ac_exec_ext in '' $ac_executable_extensions; do
15493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15494 ac_cv_path_gdk_pixbuf_config="$as_dir/$ac_word$ac_exec_ext"
15495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15504 gdk_pixbuf_config=$ac_cv_path_gdk_pixbuf_config
15506 if test -n "$gdk_pixbuf_config"; then
15507 echo "$as_me:$LINENO: result: $gdk_pixbuf_config" >&5
15508 echo "${ECHO_T}$gdk_pixbuf_config" >&6
15510 echo "$as_me:$LINENO: result: no" >&5
15511 echo "${ECHO_T}no" >&6
15514 test -n "$gdk_pixbuf_config" && break
15518 # If we found the gdk-pixbuf-config program, run it to get flags.
15520 if test -n "$gdk_pixbuf_config" ; then
15521 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
15522 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
15523 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 ac_cv_gdk_pixbuf_config_cflags=`$gdk_pixbuf_config --cflags`
15528 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
15529 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
15530 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
15531 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
15532 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 ac_cv_gdk_pixbuf_config_libs=`$gdk_pixbuf_config --libs`
15537 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
15538 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
15540 # note that "gdk-pixbuf-config --libs" produces a link line including
15541 # -lgdk_pixbuf, but there's no way to get it to produce one that also
15542 # includes -lgdk_pixbuf_xlib. Since we don't know *exactly* what the
15543 # name of the library will be, construct it with sed...
15546 ac_cv_gdk_pixbuf_config_libs=`echo $ac_cv_gdk_pixbuf_config_libs | \
15547 sed 's@ \(-lgdk_pixbuf\([-_a-zA-Z0-9.]*\)\) @ \1 -lgdk_pixbuf_xlib\2 @'`
15550 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
15551 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
15555 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
15556 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
15558 if test "$have_gdk_pixbuf" = no; then
15560 # we appear to have pixbuf; check for headers/libs to be sure.
15565 # check for header A...
15567 ac_save_CPPFLAGS="$CPPFLAGS"
15568 if test \! -z "$includedir" ; then
15569 CPPFLAGS="$CPPFLAGS -I$includedir"
15571 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15572 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
15573 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
15574 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
15575 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
15579 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
15581 # Is the header compilable?
15582 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
15583 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
15584 cat >conftest.$ac_ext <<_ACEOF
15585 #line $LINENO "configure"
15586 #include "confdefs.h"
15587 $ac_includes_default
15588 #include <gdk-pixbuf/gdk-pixbuf.h>
15590 rm -f conftest.$ac_objext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592 (eval $ac_compile) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try='test -s conftest.$ac_objext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_header_compiler=yes
15604 echo "$as_me: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15606 ac_header_compiler=no
15608 rm -f conftest.$ac_objext conftest.$ac_ext
15609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15610 echo "${ECHO_T}$ac_header_compiler" >&6
15612 # Is the header present?
15613 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
15614 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
15615 cat >conftest.$ac_ext <<_ACEOF
15616 #line $LINENO "configure"
15617 #include "confdefs.h"
15618 #include <gdk-pixbuf/gdk-pixbuf.h>
15620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15623 egrep -v '^ *\+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } >/dev/null; then
15628 if test -s conftest.err; then
15629 ac_cpp_err=$ac_c_preproc_warn_flag
15636 if test -z "$ac_cpp_err"; then
15637 ac_header_preproc=yes
15639 echo "$as_me: failed program was:" >&5
15640 cat conftest.$ac_ext >&5
15641 ac_header_preproc=no
15643 rm -f conftest.err conftest.$ac_ext
15644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15645 echo "${ECHO_T}$ac_header_preproc" >&6
15647 # So? What about this header?
15648 case $ac_header_compiler:$ac_header_preproc in
15650 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
15651 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
15653 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;};;
15655 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
15656 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
15658 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
15660 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;};;
15662 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
15663 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
15664 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15667 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
15669 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
15670 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
15673 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
15674 have_gdk_pixbuf=yes
15678 CPPFLAGS="$ac_save_CPPFLAGS"
15680 # if that worked, check for header B...
15681 if test "$have_gdk_pixbuf" = yes; then
15683 gdk_pixbuf_halfassed=yes
15685 ac_save_CPPFLAGS="$CPPFLAGS"
15686 if test \! -z "$includedir" ; then
15687 CPPFLAGS="$CPPFLAGS -I$includedir"
15689 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15690 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
15691 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
15692 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
15693 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
15697 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
15699 # Is the header compilable?
15700 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
15701 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
15702 cat >conftest.$ac_ext <<_ACEOF
15703 #line $LINENO "configure"
15704 #include "confdefs.h"
15705 $ac_includes_default
15706 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
15708 rm -f conftest.$ac_objext
15709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15710 (eval $ac_compile) 2>&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } &&
15714 { ac_try='test -s conftest.$ac_objext'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 ac_header_compiler=yes
15722 echo "$as_me: failed program was:" >&5
15723 cat conftest.$ac_ext >&5
15724 ac_header_compiler=no
15726 rm -f conftest.$ac_objext conftest.$ac_ext
15727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15728 echo "${ECHO_T}$ac_header_compiler" >&6
15730 # Is the header present?
15731 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
15732 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
15733 cat >conftest.$ac_ext <<_ACEOF
15734 #line $LINENO "configure"
15735 #include "confdefs.h"
15736 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
15738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15741 egrep -v '^ *\+' conftest.er1 >conftest.err
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } >/dev/null; then
15746 if test -s conftest.err; then
15747 ac_cpp_err=$ac_c_preproc_warn_flag
15754 if test -z "$ac_cpp_err"; then
15755 ac_header_preproc=yes
15757 echo "$as_me: failed program was:" >&5
15758 cat conftest.$ac_ext >&5
15759 ac_header_preproc=no
15761 rm -f conftest.err conftest.$ac_ext
15762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15763 echo "${ECHO_T}$ac_header_preproc" >&6
15765 # So? What about this header?
15766 case $ac_header_compiler:$ac_header_preproc in
15768 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15769 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
15771 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;};;
15773 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
15774 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
15776 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
15778 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;};;
15780 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
15781 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
15782 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
15787 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
15788 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
15791 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
15792 have_gdk_pixbuf=yes
15793 gdk_pixbuf_halfassed=no
15797 CPPFLAGS="$ac_save_CPPFLAGS"
15799 # yay, it has a new name in Gtk 2.x...
15800 if test "$have_gdk_pixbuf" = no; then
15802 gdk_pixbuf_halfassed=yes
15804 ac_save_CPPFLAGS="$CPPFLAGS"
15805 if test \! -z "$includedir" ; then
15806 CPPFLAGS="$CPPFLAGS -I$includedir"
15808 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15809 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
15810 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
15811 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
15812 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
15816 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
15818 # Is the header compilable?
15819 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
15820 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
15821 cat >conftest.$ac_ext <<_ACEOF
15822 #line $LINENO "configure"
15823 #include "confdefs.h"
15824 $ac_includes_default
15825 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
15827 rm -f conftest.$ac_objext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829 (eval $ac_compile) 2>&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } &&
15833 { ac_try='test -s conftest.$ac_objext'
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; }; then
15839 ac_header_compiler=yes
15841 echo "$as_me: failed program was:" >&5
15842 cat conftest.$ac_ext >&5
15843 ac_header_compiler=no
15845 rm -f conftest.$ac_objext conftest.$ac_ext
15846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15847 echo "${ECHO_T}$ac_header_compiler" >&6
15849 # Is the header present?
15850 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
15851 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
15852 cat >conftest.$ac_ext <<_ACEOF
15853 #line $LINENO "configure"
15854 #include "confdefs.h"
15855 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
15857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15860 egrep -v '^ *\+' conftest.er1 >conftest.err
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } >/dev/null; then
15865 if test -s conftest.err; then
15866 ac_cpp_err=$ac_c_preproc_warn_flag
15873 if test -z "$ac_cpp_err"; then
15874 ac_header_preproc=yes
15876 echo "$as_me: failed program was:" >&5
15877 cat conftest.$ac_ext >&5
15878 ac_header_preproc=no
15880 rm -f conftest.err conftest.$ac_ext
15881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15882 echo "${ECHO_T}$ac_header_preproc" >&6
15884 # So? What about this header?
15885 case $ac_header_compiler:$ac_header_preproc in
15887 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15888 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
15890 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;};;
15892 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
15893 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
15895 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
15896 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
15897 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;};;
15899 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
15900 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
15901 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15904 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
15906 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
15907 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
15910 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
15911 have_gdk_pixbuf=yes
15912 gdk_pixbuf_halfassed=no
15916 CPPFLAGS="$ac_save_CPPFLAGS"
15921 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
15923 if test "$have_gdk_pixbuf" = yes; then
15924 # we have the headers, now check for the libraries
15926 gdk_pixbuf_halfassed=yes
15930 ac_save_CPPFLAGS="$CPPFLAGS"
15931 ac_save_LDFLAGS="$LDFLAGS"
15932 # ac_save_LIBS="$LIBS"
15934 if test \! -z "$includedir" ; then
15935 CPPFLAGS="$CPPFLAGS -I$includedir"
15937 # note: $X_CFLAGS includes $x_includes
15938 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15940 if test \! -z "$libdir" ; then
15941 LDFLAGS="$LDFLAGS -L$libdir"
15943 # note: $X_LIBS includes $x_libraries
15944 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15946 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
15947 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
15948 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 ac_check_lib_save_LIBS=$LIBS
15952 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
15953 cat >conftest.$ac_ext <<_ACEOF
15954 #line $LINENO "configure"
15955 #include "confdefs.h"
15957 /* Override any gcc2 internal prototype to avoid an error. */
15961 /* We use char because int might match the return type of a gcc2
15962 builtin and then its argument prototype would still apply. */
15963 char gdk_pixbuf_new_from_file ();
15964 #ifdef F77_DUMMY_MAIN
15965 # ifdef __cplusplus
15968 int F77_DUMMY_MAIN() { return 1; }
15973 gdk_pixbuf_new_from_file ();
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15980 (eval $ac_link) 2>&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -s conftest$ac_exeext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
15992 echo "$as_me: failed program was:" >&5
15993 cat conftest.$ac_ext >&5
15994 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
15996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15997 LIBS=$ac_check_lib_save_LIBS
15999 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
16000 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
16001 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
16002 have_gdk_pixbuf=yes
16005 CPPFLAGS="$ac_save_CPPFLAGS"
16006 LDFLAGS="$ac_save_LDFLAGS"
16007 # LIBS="$ac_save_LIBS"
16010 if test "$have_gdk_pixbuf" = yes; then
16013 ac_save_CPPFLAGS="$CPPFLAGS"
16014 ac_save_LDFLAGS="$LDFLAGS"
16015 # ac_save_LIBS="$LIBS"
16017 if test \! -z "$includedir" ; then
16018 CPPFLAGS="$CPPFLAGS -I$includedir"
16020 # note: $X_CFLAGS includes $x_includes
16021 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16023 if test \! -z "$libdir" ; then
16024 LDFLAGS="$LDFLAGS -L$libdir"
16026 # note: $X_LIBS includes $x_libraries
16027 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16029 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
16030 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
16031 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 ac_check_lib_save_LIBS=$LIBS
16035 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
16036 cat >conftest.$ac_ext <<_ACEOF
16037 #line $LINENO "configure"
16038 #include "confdefs.h"
16040 /* Override any gcc2 internal prototype to avoid an error. */
16044 /* We use char because int might match the return type of a gcc2
16045 builtin and then its argument prototype would still apply. */
16046 char gdk_pixbuf_xlib_init ();
16047 #ifdef F77_DUMMY_MAIN
16048 # ifdef __cplusplus
16051 int F77_DUMMY_MAIN() { return 1; }
16056 gdk_pixbuf_xlib_init ();
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063 (eval $ac_link) 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -s conftest$ac_exeext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
16075 echo "$as_me: failed program was:" >&5
16076 cat conftest.$ac_ext >&5
16077 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
16079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16080 LIBS=$ac_check_lib_save_LIBS
16082 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
16083 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
16084 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
16085 have_gdk_pixbuf=yes
16086 gdk_pixbuf_halfassed=no
16089 CPPFLAGS="$ac_save_CPPFLAGS"
16090 LDFLAGS="$ac_save_LDFLAGS"
16091 # LIBS="$ac_save_LIBS"
16096 if test "$have_gdk_pixbuf" = yes; then
16097 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
16098 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
16099 cat >>confdefs.h <<\_ACEOF
16100 #define HAVE_GDK_PIXBUF 1
16104 have_gdk_pixbuf2=no
16109 ###############################################################################
16113 ###############################################################################
16116 with_jpeg_req=unspecified
16119 # Check whether --with-jpeg or --without-jpeg was given.
16120 if test "${with_jpeg+set}" = set; then
16121 withval="$with_jpeg"
16122 with_jpeg="$withval"; with_jpeg_req="$withval"
16128 case "$with_jpeg" in
16133 echo "$as_me:$LINENO: checking for JPEG headers" >&5
16134 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
16135 d=$with_jpeg/include
16136 if test -d $d; then
16137 X_CFLAGS="-I$d $X_CFLAGS"
16138 echo "$as_me:$LINENO: result: $d" >&5
16139 echo "${ECHO_T}$d" >&6
16141 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16142 echo "${ECHO_T}not found ($d: no such directory)" >&6
16145 echo "$as_me:$LINENO: checking for JPEG libs" >&5
16146 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
16148 if test -d $d; then
16149 X_LIBS="-L$d $X_LIBS"
16150 echo "$as_me:$LINENO: result: $d" >&5
16151 echo "${ECHO_T}$d" >&6
16153 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16154 echo "${ECHO_T}not found ($d: no such directory)" >&6
16157 # replace the directory string with "yes".
16158 with_jpeg_req="yes"
16159 with_jpeg=$with_jpeg_req
16164 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
16165 echo " If it is a directory, then \`DIR/include' will be added to"
16166 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16172 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
16173 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
16177 if test "$with_jpeg" = yes; then
16181 ac_save_CPPFLAGS="$CPPFLAGS"
16182 if test \! -z "$includedir" ; then
16183 CPPFLAGS="$CPPFLAGS -I$includedir"
16185 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16186 if test "${ac_cv_header_jpeglib_h+set}" = set; then
16187 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
16188 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
16189 if test "${ac_cv_header_jpeglib_h+set}" = set; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
16193 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
16195 # Is the header compilable?
16196 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
16197 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
16198 cat >conftest.$ac_ext <<_ACEOF
16199 #line $LINENO "configure"
16200 #include "confdefs.h"
16201 $ac_includes_default
16202 #include <jpeglib.h>
16204 rm -f conftest.$ac_objext
16205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16206 (eval $ac_compile) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
16210 { ac_try='test -s conftest.$ac_objext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 ac_header_compiler=yes
16218 echo "$as_me: failed program was:" >&5
16219 cat conftest.$ac_ext >&5
16220 ac_header_compiler=no
16222 rm -f conftest.$ac_objext conftest.$ac_ext
16223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16224 echo "${ECHO_T}$ac_header_compiler" >&6
16226 # Is the header present?
16227 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
16228 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
16229 cat >conftest.$ac_ext <<_ACEOF
16230 #line $LINENO "configure"
16231 #include "confdefs.h"
16232 #include <jpeglib.h>
16234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16237 egrep -v '^ *\+' conftest.er1 >conftest.err
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } >/dev/null; then
16242 if test -s conftest.err; then
16243 ac_cpp_err=$ac_c_preproc_warn_flag
16250 if test -z "$ac_cpp_err"; then
16251 ac_header_preproc=yes
16253 echo "$as_me: failed program was:" >&5
16254 cat conftest.$ac_ext >&5
16255 ac_header_preproc=no
16257 rm -f conftest.err conftest.$ac_ext
16258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16259 echo "${ECHO_T}$ac_header_preproc" >&6
16261 # So? What about this header?
16262 case $ac_header_compiler:$ac_header_preproc in
16264 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16265 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16266 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
16267 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;};;
16269 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
16270 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
16272 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
16274 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;};;
16276 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
16277 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
16278 if test "${ac_cv_header_jpeglib_h+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 ac_cv_header_jpeglib_h=$ac_header_preproc
16283 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
16284 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
16287 if test $ac_cv_header_jpeglib_h = yes; then
16292 CPPFLAGS="$ac_save_CPPFLAGS"
16294 if test "$have_jpeg" = yes; then
16295 # we have the header, now check for the library
16299 ac_save_CPPFLAGS="$CPPFLAGS"
16300 ac_save_LDFLAGS="$LDFLAGS"
16301 # ac_save_LIBS="$LIBS"
16303 if test \! -z "$includedir" ; then
16304 CPPFLAGS="$CPPFLAGS -I$includedir"
16306 # note: $X_CFLAGS includes $x_includes
16307 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16309 if test \! -z "$libdir" ; then
16310 LDFLAGS="$LDFLAGS -L$libdir"
16312 # note: $X_LIBS includes $x_libraries
16313 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16315 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
16316 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
16317 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 ac_check_lib_save_LIBS=$LIBS
16321 LIBS="-ljpeg $LIBS"
16322 cat >conftest.$ac_ext <<_ACEOF
16323 #line $LINENO "configure"
16324 #include "confdefs.h"
16326 /* Override any gcc2 internal prototype to avoid an error. */
16330 /* We use char because int might match the return type of a gcc2
16331 builtin and then its argument prototype would still apply. */
16332 char jpeg_start_compress ();
16333 #ifdef F77_DUMMY_MAIN
16334 # ifdef __cplusplus
16337 int F77_DUMMY_MAIN() { return 1; }
16342 jpeg_start_compress ();
16347 rm -f conftest.$ac_objext conftest$ac_exeext
16348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16349 (eval $ac_link) 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -s conftest$ac_exeext'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16359 ac_cv_lib_jpeg_jpeg_start_compress=yes
16361 echo "$as_me: failed program was:" >&5
16362 cat conftest.$ac_ext >&5
16363 ac_cv_lib_jpeg_jpeg_start_compress=no
16365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16366 LIBS=$ac_check_lib_save_LIBS
16368 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
16369 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
16370 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
16374 cat >>confdefs.h <<\_ACEOF
16375 #define HAVE_JPEGLIB 1
16380 CPPFLAGS="$ac_save_CPPFLAGS"
16381 LDFLAGS="$ac_save_LDFLAGS"
16382 # LIBS="$ac_save_LIBS"
16388 ###############################################################################
16390 # Check for the XSHM server extension.
16392 ###############################################################################
16395 with_xshm_req=unspecified
16397 # Check whether --with-xshm-ext or --without-xshm-ext was given.
16398 if test "${with_xshm_ext+set}" = set; then
16399 withval="$with_xshm_ext"
16400 with_xshm="$withval"; with_xshm_req="$withval"
16406 case "$with_xshm" in
16411 echo "$as_me:$LINENO: checking for XSHM headers" >&5
16412 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
16413 d=$with_xshm/include
16414 if test -d $d; then
16415 X_CFLAGS="-I$d $X_CFLAGS"
16416 echo "$as_me:$LINENO: result: $d" >&5
16417 echo "${ECHO_T}$d" >&6
16419 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16420 echo "${ECHO_T}not found ($d: no such directory)" >&6
16423 echo "$as_me:$LINENO: checking for XSHM libs" >&5
16424 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
16426 if test -d $d; then
16427 X_LIBS="-L$d $X_LIBS"
16428 echo "$as_me:$LINENO: result: $d" >&5
16429 echo "${ECHO_T}$d" >&6
16431 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16432 echo "${ECHO_T}not found ($d: no such directory)" >&6
16435 # replace the directory string with "yes".
16436 with_xshm_req="yes"
16437 with_xshm=$with_xshm_req
16442 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
16443 echo " If it is a directory, then \`DIR/include' will be added to"
16444 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16450 if test "$with_xshm" = yes; then
16452 # first check for Xshm.h.
16454 ac_save_CPPFLAGS="$CPPFLAGS"
16455 if test \! -z "$includedir" ; then
16456 CPPFLAGS="$CPPFLAGS -I$includedir"
16458 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16459 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
16460 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
16461 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 cat >conftest.$ac_ext <<_ACEOF
16465 #line $LINENO "configure"
16466 #include "confdefs.h"
16467 #include <X11/Xlib.h>
16469 #include <X11/extensions/XShm.h>
16471 rm -f conftest.$ac_objext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473 (eval $ac_compile) 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } &&
16477 { ac_try='test -s conftest.$ac_objext'
16478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479 (eval $ac_try) 2>&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; }; then
16483 ac_cv_header_X11_extensions_XShm_h=yes
16485 echo "$as_me: failed program was:" >&5
16486 cat conftest.$ac_ext >&5
16487 ac_cv_header_X11_extensions_XShm_h=no
16489 rm -f conftest.$ac_objext conftest.$ac_ext
16491 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
16492 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
16493 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
16498 CPPFLAGS="$ac_save_CPPFLAGS"
16500 # if that succeeded, then check for sys/ipc.h.
16501 if test "$have_xshm" = yes; then
16504 ac_save_CPPFLAGS="$CPPFLAGS"
16505 if test \! -z "$includedir" ; then
16506 CPPFLAGS="$CPPFLAGS -I$includedir"
16508 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16509 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
16510 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
16511 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
16512 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
16516 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
16518 # Is the header compilable?
16519 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
16520 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
16521 cat >conftest.$ac_ext <<_ACEOF
16522 #line $LINENO "configure"
16523 #include "confdefs.h"
16524 $ac_includes_default
16525 #include <sys/ipc.h>
16527 rm -f conftest.$ac_objext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16529 (eval $ac_compile) 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
16533 { ac_try='test -s conftest.$ac_objext'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 ac_header_compiler=yes
16541 echo "$as_me: failed program was:" >&5
16542 cat conftest.$ac_ext >&5
16543 ac_header_compiler=no
16545 rm -f conftest.$ac_objext conftest.$ac_ext
16546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16547 echo "${ECHO_T}$ac_header_compiler" >&6
16549 # Is the header present?
16550 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
16551 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
16552 cat >conftest.$ac_ext <<_ACEOF
16553 #line $LINENO "configure"
16554 #include "confdefs.h"
16555 #include <sys/ipc.h>
16557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16560 egrep -v '^ *\+' conftest.er1 >conftest.err
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } >/dev/null; then
16565 if test -s conftest.err; then
16566 ac_cpp_err=$ac_c_preproc_warn_flag
16573 if test -z "$ac_cpp_err"; then
16574 ac_header_preproc=yes
16576 echo "$as_me: failed program was:" >&5
16577 cat conftest.$ac_ext >&5
16578 ac_header_preproc=no
16580 rm -f conftest.err conftest.$ac_ext
16581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16582 echo "${ECHO_T}$ac_header_preproc" >&6
16584 # So? What about this header?
16585 case $ac_header_compiler:$ac_header_preproc in
16587 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16588 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16589 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
16590 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;};;
16592 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
16593 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
16594 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
16595 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
16597 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;};;
16599 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
16600 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
16601 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 ac_cv_header_sys_ipc_h=$ac_header_preproc
16606 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
16607 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
16610 if test $ac_cv_header_sys_ipc_h = yes; then
16615 CPPFLAGS="$ac_save_CPPFLAGS"
16618 # if that succeeded, then check for sys/shm.h.
16619 if test "$have_xshm" = yes; then
16622 ac_save_CPPFLAGS="$CPPFLAGS"
16623 if test \! -z "$includedir" ; then
16624 CPPFLAGS="$CPPFLAGS -I$includedir"
16626 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16627 if test "${ac_cv_header_sys_shm_h+set}" = set; then
16628 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
16629 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
16630 if test "${ac_cv_header_sys_shm_h+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
16634 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
16636 # Is the header compilable?
16637 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
16638 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
16639 cat >conftest.$ac_ext <<_ACEOF
16640 #line $LINENO "configure"
16641 #include "confdefs.h"
16642 $ac_includes_default
16643 #include <sys/shm.h>
16645 rm -f conftest.$ac_objext
16646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16647 (eval $ac_compile) 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -s conftest.$ac_objext'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 ac_header_compiler=yes
16659 echo "$as_me: failed program was:" >&5
16660 cat conftest.$ac_ext >&5
16661 ac_header_compiler=no
16663 rm -f conftest.$ac_objext conftest.$ac_ext
16664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16665 echo "${ECHO_T}$ac_header_compiler" >&6
16667 # Is the header present?
16668 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
16669 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
16670 cat >conftest.$ac_ext <<_ACEOF
16671 #line $LINENO "configure"
16672 #include "confdefs.h"
16673 #include <sys/shm.h>
16675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16678 egrep -v '^ *\+' conftest.er1 >conftest.err
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } >/dev/null; then
16683 if test -s conftest.err; then
16684 ac_cpp_err=$ac_c_preproc_warn_flag
16691 if test -z "$ac_cpp_err"; then
16692 ac_header_preproc=yes
16694 echo "$as_me: failed program was:" >&5
16695 cat conftest.$ac_ext >&5
16696 ac_header_preproc=no
16698 rm -f conftest.err conftest.$ac_ext
16699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16700 echo "${ECHO_T}$ac_header_preproc" >&6
16702 # So? What about this header?
16703 case $ac_header_compiler:$ac_header_preproc in
16705 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16706 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16707 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
16708 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;};;
16710 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
16711 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
16712 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
16713 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
16714 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
16715 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;};;
16717 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
16718 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
16719 if test "${ac_cv_header_sys_shm_h+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 ac_cv_header_sys_shm_h=$ac_header_preproc
16724 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
16725 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
16728 if test $ac_cv_header_sys_shm_h = yes; then
16733 CPPFLAGS="$ac_save_CPPFLAGS"
16736 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
16737 # to exist, but the library code to not exist. And even better, the library
16738 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
16739 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
16740 # that's not quite right, but close enough.)
16744 if `uname -v` -eq 3 ; then
16747 ac_save_CPPFLAGS="$CPPFLAGS"
16748 ac_save_LDFLAGS="$LDFLAGS"
16749 # ac_save_LIBS="$LIBS"
16751 if test \! -z "$includedir" ; then
16752 CPPFLAGS="$CPPFLAGS -I$includedir"
16754 # note: $X_CFLAGS includes $x_includes
16755 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16757 if test \! -z "$libdir" ; then
16758 LDFLAGS="$LDFLAGS -L$libdir"
16760 # note: $X_LIBS includes $x_libraries
16761 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16763 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
16764 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
16765 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 ac_check_lib_save_LIBS=$LIBS
16769 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
16770 cat >conftest.$ac_ext <<_ACEOF
16771 #line $LINENO "configure"
16772 #include "confdefs.h"
16774 /* Override any gcc2 internal prototype to avoid an error. */
16778 /* We use char because int might match the return type of a gcc2
16779 builtin and then its argument prototype would still apply. */
16780 char XShmQueryExtension ();
16781 #ifdef F77_DUMMY_MAIN
16782 # ifdef __cplusplus
16785 int F77_DUMMY_MAIN() { return 1; }
16790 XShmQueryExtension ();
16795 rm -f conftest.$ac_objext conftest$ac_exeext
16796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16797 (eval $ac_link) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
16801 { ac_try='test -s conftest$ac_exeext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_lib_XextSam_XShmQueryExtension=yes
16809 echo "$as_me: failed program was:" >&5
16810 cat conftest.$ac_ext >&5
16811 ac_cv_lib_XextSam_XShmQueryExtension=no
16813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16814 LIBS=$ac_check_lib_save_LIBS
16816 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
16817 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
16818 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
16819 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
16824 CPPFLAGS="$ac_save_CPPFLAGS"
16825 LDFLAGS="$ac_save_LDFLAGS"
16826 # LIBS="$ac_save_LIBS"
16832 # if that succeeded, then we've really got it.
16833 if test "$have_xshm" = yes; then
16834 cat >>confdefs.h <<\_ACEOF
16835 #define HAVE_XSHM_EXTENSION 1
16840 elif test "$with_xshm" != no; then
16841 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
16846 ###############################################################################
16848 # Check for the DOUBLE-BUFFER server extension.
16850 ###############################################################################
16853 with_xdbe_req=unspecified
16855 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
16856 if test "${with_xdbe_ext+set}" = set; then
16857 withval="$with_xdbe_ext"
16858 with_xdbe="$withval"; with_xdbe_req="$withval"
16864 case "$with_xdbe" in
16869 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
16870 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
16871 d=$with_xdbe/include
16872 if test -d $d; then
16873 X_CFLAGS="-I$d $X_CFLAGS"
16874 echo "$as_me:$LINENO: result: $d" >&5
16875 echo "${ECHO_T}$d" >&6
16877 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16878 echo "${ECHO_T}not found ($d: no such directory)" >&6
16881 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
16882 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
16884 if test -d $d; then
16885 X_LIBS="-L$d $X_LIBS"
16886 echo "$as_me:$LINENO: result: $d" >&5
16887 echo "${ECHO_T}$d" >&6
16889 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16890 echo "${ECHO_T}not found ($d: no such directory)" >&6
16893 # replace the directory string with "yes".
16894 with_xdbe_req="yes"
16895 with_xdbe=$with_xdbe_req
16900 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
16901 echo " If it is a directory, then \`DIR/include' will be added to"
16902 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16908 if test "$with_xdbe" = yes; then
16911 ac_save_CPPFLAGS="$CPPFLAGS"
16912 if test \! -z "$includedir" ; then
16913 CPPFLAGS="$CPPFLAGS -I$includedir"
16915 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16916 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
16917 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
16918 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 cat >conftest.$ac_ext <<_ACEOF
16922 #line $LINENO "configure"
16923 #include "confdefs.h"
16924 #include <X11/Xlib.h>
16926 #include <X11/extensions/Xdbe.h>
16928 rm -f conftest.$ac_objext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16930 (eval $ac_compile) 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } &&
16934 { ac_try='test -s conftest.$ac_objext'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_header_X11_extensions_Xdbe_h=yes
16942 echo "$as_me: failed program was:" >&5
16943 cat conftest.$ac_ext >&5
16944 ac_cv_header_X11_extensions_Xdbe_h=no
16946 rm -f conftest.$ac_objext conftest.$ac_ext
16948 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
16949 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
16950 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
16955 CPPFLAGS="$ac_save_CPPFLAGS"
16956 if test "$have_xdbe" = yes; then
16957 cat >>confdefs.h <<\_ACEOF
16958 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
16963 elif test "$with_xdbe" != no; then
16964 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
16969 ###############################################################################
16971 # Check for the SGI XReadDisplay server extension.
16973 # Note: this has to be down here, rather than up with the other server
16974 # extension tests, so that the output of `configure --help' is in the
16975 # right order. Arrgh!
16977 ###############################################################################
16979 have_readdisplay=no
16980 with_readdisplay_req=unspecified
16982 # Check whether --with-readdisplay or --without-readdisplay was given.
16983 if test "${with_readdisplay+set}" = set; then
16984 withval="$with_readdisplay"
16985 with_readdisplay="$withval"; with_readdisplay_req="$withval"
16987 with_readdisplay=yes
16991 case "$with_readdisplay" in
16996 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
16997 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
16998 d=$with_readdisplay/include
16999 if test -d $d; then
17000 X_CFLAGS="-I$d $X_CFLAGS"
17001 echo "$as_me:$LINENO: result: $d" >&5
17002 echo "${ECHO_T}$d" >&6
17004 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17005 echo "${ECHO_T}not found ($d: no such directory)" >&6
17008 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
17009 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
17010 d=$with_readdisplay/lib
17011 if test -d $d; then
17012 X_LIBS="-L$d $X_LIBS"
17013 echo "$as_me:$LINENO: result: $d" >&5
17014 echo "${ECHO_T}$d" >&6
17016 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17017 echo "${ECHO_T}not found ($d: no such directory)" >&6
17020 # replace the directory string with "yes".
17021 with_readdisplay_req="yes"
17022 with_readdisplay=$with_readdisplay_req
17027 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
17028 echo " If it is a directory, then \`DIR/include' will be added to"
17029 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17035 if test "$with_readdisplay" = yes; then
17037 ac_save_CPPFLAGS="$CPPFLAGS"
17038 if test \! -z "$includedir" ; then
17039 CPPFLAGS="$CPPFLAGS -I$includedir"
17041 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17042 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
17043 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
17044 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 cat >conftest.$ac_ext <<_ACEOF
17048 #line $LINENO "configure"
17049 #include "confdefs.h"
17050 #include <X11/Xlib.h>
17052 #include <X11/extensions/readdisplay.h>
17054 rm -f conftest.$ac_objext
17055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17056 (eval $ac_compile) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try='test -s conftest.$ac_objext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_header_X11_extensions_readdisplay_h=yes
17068 echo "$as_me: failed program was:" >&5
17069 cat conftest.$ac_ext >&5
17070 ac_cv_header_X11_extensions_readdisplay_h=no
17072 rm -f conftest.$ac_objext conftest.$ac_ext
17074 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
17075 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
17076 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
17077 cat >>confdefs.h <<\_ACEOF
17078 #define HAVE_READ_DISPLAY_EXTENSION 1
17084 CPPFLAGS="$ac_save_CPPFLAGS"
17085 elif test "$with_readdisplay" != no; then
17086 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
17091 ###############################################################################
17093 # Check for a program to generate random text.
17095 # Zippy is funnier than the idiocy generally spat out by `fortune',
17096 # so first see if "fortune zippy" works. Else, use plain "fortune".
17098 # We used to dig around in Emacs to look for the "yow" program, but
17099 # most people who have Emacs also have "fortune zippy", so nevermind.
17101 ###############################################################################
17103 with_fortune_req=""
17105 # Check whether --with-fortune or --without-fortune was given.
17106 if test "${with_fortune+set}" = set; then
17107 withval="$with_fortune"
17108 with_fortune_req="$withval"; with_fortune="$withval"
17113 if test "$with_fortune" = no || test "$with_fortune" = yes ; then
17115 with_fortune_req=""
17118 if test -n "$with_fortune_req" ; then
17119 ac_cv_fortune_program=""
17120 case "$with_fortune_req" in
17123 set dummy $with_fortune_req ; fortune_tmp=$2
17124 echo "$as_me:$LINENO: checking for $fortune_tmp" >&5
17125 echo $ECHO_N "checking for $fortune_tmp... $ECHO_C" >&6
17126 if test -x "$fortune_tmp" ; then
17127 echo "$as_me:$LINENO: result: yes" >&5
17128 echo "${ECHO_T}yes" >&6
17130 echo "$as_me:$LINENO: result: no" >&5
17131 echo "${ECHO_T}no" >&6
17136 set dummy $with_fortune_req ; fortune_tmp=$2
17138 unset ac_cv_path_fortune_tmp
17139 # Extract the first word of "$fortune_tmp", so it can be a program name with args.
17140 set dummy $fortune_tmp; ac_word=$2
17141 echo "$as_me:$LINENO: checking for $ac_word" >&5
17142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17143 if test "${ac_cv_path_fortune_tmp+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 case $fortune_tmp in
17148 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
17151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17152 for as_dir in $PATH
17155 test -z "$as_dir" && as_dir=.
17156 for ac_exec_ext in '' $ac_executable_extensions; do
17157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17158 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
17159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17168 fortune_tmp=$ac_cv_path_fortune_tmp
17170 if test -n "$fortune_tmp"; then
17171 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
17172 echo "${ECHO_T}$fortune_tmp" >&6
17174 echo "$as_me:$LINENO: result: no" >&5
17175 echo "${ECHO_T}no" >&6
17178 if test -z "$fortune_tmp" ; then
17183 ac_cv_fortune_program="$with_fortune"
17185 elif test -n "$ac_cv_fortune_program"; then
17186 echo "$as_me:$LINENO: result: checking for fortune... (cached) $ac_cv_fortune_program" >&5
17187 echo "${ECHO_T}checking for fortune... (cached) $ac_cv_fortune_program" >&6
17190 unset ac_cv_path_fortune_tmp
17193 if test -z "$ac_cv_fortune_program" ; then
17195 # first look for fortune in /usr/games/ (and use absolute path)
17196 for ac_prog in fortune
17198 # Extract the first word of "$ac_prog", so it can be a program name with args.
17199 set dummy $ac_prog; ac_word=$2
17200 echo "$as_me:$LINENO: checking for $ac_word" >&5
17201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17202 if test "${ac_cv_path_fortune_tmp+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 case $fortune_tmp in
17207 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
17210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17211 as_dummy=""/usr/games""
17212 for as_dir in $as_dummy
17215 test -z "$as_dir" && as_dir=.
17216 for ac_exec_ext in '' $ac_executable_extensions; do
17217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17218 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
17219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17228 fortune_tmp=$ac_cv_path_fortune_tmp
17230 if test -n "$fortune_tmp"; then
17231 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
17232 echo "${ECHO_T}$fortune_tmp" >&6
17234 echo "$as_me:$LINENO: result: no" >&5
17235 echo "${ECHO_T}no" >&6
17238 test -n "$fortune_tmp" && break
17242 # if it's not there, look on $PATH (and don't use absolute path)
17243 if test -z "$fortune_tmp" ; then
17244 for ac_prog in fortune
17246 # Extract the first word of "$ac_prog", so it can be a program name with args.
17247 set dummy $ac_prog; ac_word=$2
17248 echo "$as_me:$LINENO: checking for $ac_word" >&5
17249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17250 if test "${ac_cv_prog_fortune_tmp+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 if test -n "$fortune_tmp"; then
17254 ac_cv_prog_fortune_tmp="$fortune_tmp" # Let the user override the test.
17256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17257 for as_dir in $PATH
17260 test -z "$as_dir" && as_dir=.
17261 for ac_exec_ext in '' $ac_executable_extensions; do
17262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17263 ac_cv_prog_fortune_tmp="$ac_prog"
17264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17272 fortune_tmp=$ac_cv_prog_fortune_tmp
17273 if test -n "$fortune_tmp"; then
17274 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
17275 echo "${ECHO_T}$fortune_tmp" >&6
17277 echo "$as_me:$LINENO: result: no" >&5
17278 echo "${ECHO_T}no" >&6
17281 test -n "$fortune_tmp" && break
17286 # if we didn't find anything, then just assume /usr/games/
17287 if test -z "$fortune_tmp" ; then
17288 fortune_tmp="/usr/games/fortune"
17291 ac_cv_fortune_program="$fortune_tmp"
17293 # now check to see whether "fortune zippy" works.
17295 fortune_tmp="$fortune_tmp zippy"
17296 echo "$as_me:$LINENO: checking for zippy quotes" >&5
17297 echo $ECHO_N "checking for zippy quotes... $ECHO_C" >&6
17298 if ( $fortune_tmp >/dev/null 2>&1 ); then
17299 ac_cv_fortune_program="$fortune_tmp"
17300 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
17301 echo "${ECHO_T}$fortune_tmp" >&6
17303 echo "$as_me:$LINENO: result: no" >&5
17304 echo "${ECHO_T}no" >&6
17309 unset ac_cv_path_fortune_tmp
17312 cat >>confdefs.h <<_ACEOF
17313 #define FORTUNE_PROGRAM "$ac_cv_fortune_program"
17318 ###############################################################################
17320 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
17321 # This should be safe, but let's give people the option.
17323 ###############################################################################
17325 setuid_hacks_default=no
17326 setuid_hacks="$setuid_hacks_default"
17328 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
17329 if test "${with_setuid_hacks+set}" = set; then
17330 withval="$with_setuid_hacks"
17331 setuid_hacks="$withval"
17333 setuid_hacks="$setuid_hacks_default"
17337 case "$setuid_hacks" in
17342 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
17343 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
17344 d=$setuid_hacks/include
17345 if test -d $d; then
17346 X_CFLAGS="-I$d $X_CFLAGS"
17347 echo "$as_me:$LINENO: result: $d" >&5
17348 echo "${ECHO_T}$d" >&6
17350 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17351 echo "${ECHO_T}not found ($d: no such directory)" >&6
17354 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
17355 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
17356 d=$setuid_hacks/lib
17357 if test -d $d; then
17358 X_LIBS="-L$d $X_LIBS"
17359 echo "$as_me:$LINENO: result: $d" >&5
17360 echo "${ECHO_T}$d" >&6
17362 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17363 echo "${ECHO_T}not found ($d: no such directory)" >&6
17366 # replace the directory string with "yes".
17367 setuid_hacks_req="yes"
17368 setuid_hacks=$setuid_hacks_req
17373 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
17374 echo " If it is a directory, then \`DIR/include' will be added to"
17375 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17381 if test "$setuid_hacks" = yes; then
17383 elif test "$setuid_hacks" != no; then
17384 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
17389 ###############################################################################
17391 # Done testing. Now, set up the various -I and -L variables,
17392 # and decide which GUI program to build by default.
17394 ###############################################################################
17401 if test \! -z "$includedir" ; then
17402 INCLUDES="$INCLUDES -I$includedir"
17405 if test \! -z "$libdir" ; then
17406 LDFLAGS="$LDFLAGS -L$libdir"
17410 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
17412 if test "$have_motif" = yes; then
17413 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
17414 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
17416 if test "$have_gtk" = yes; then
17417 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
17418 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
17422 if test "$have_kerberos" = yes; then
17423 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
17424 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
17426 if test "$have_pam" = yes; then
17427 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
17428 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
17429 INSTALL_PAM="install-pam"
17431 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
17432 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
17435 if test "$enable_locking" = yes; then
17436 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
17437 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
17439 LOCK_SRCS='$(NOLOCK_SRCS_1)'
17440 LOCK_OBJS='$(NOLOCK_OBJS_1)'
17443 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
17445 if test "$need_setuid" = yes; then
17451 if test "$setuid_hacks" = yes; then
17458 if test "$have_gl" = yes; then
17459 GL_EXES='$(GL_EXES)'
17460 GL_UTIL_EXES='$(GL_UTIL_EXES)'
17462 GL_KLUDGE="${tab} "
17464 GL_KLUDGE="-${tab} "
17467 if test "$have_gle" = yes; then
17468 GLE_EXES='$(GLE_EXES)'
17469 GLE_MEN='$(GLE_MEN)'
17470 GLE_KLUDGE="${tab} "
17472 GLE_KLUDGE="-${tab} "
17475 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
17476 JPEG_EXES='$(JPEG_EXES)'
17480 # Another substitution in the XScreenSaver.ad.in file:
17482 if test "$have_gnome_help" = yes; then
17491 # Now that we know whether we have Gnome, we can decide where the XML
17492 # config files get installed.
17494 if test -z "$HACK_CONF_DIR" ; then
17495 if test -n "$GNOME_DATADIR" ; then
17496 HACK_CONF_DIR='${GNOME_DATADIR}/control-center/screensavers'
17498 HACK_CONF_DIR='${prefix}/lib/xscreensaver/config'
17504 # After computing $HACK_CONF_DIR, make sure $GLADE_DATADIR has a value
17505 # so that we know where to install the Gtk pixmaps.
17507 # It should usually be "/usr/share/pixmaps/", but we can't just use
17508 # "$(prefix)/share/pixmaps" because that would usually result in
17509 # "/usr/X11R6/share/pixmaps/", which is wrong. It needs to be the
17510 # Gnome/Gtk prefix, not the overall prefix.
17512 if test -n "$GNOME_DATADIR" ; then
17513 GLADE_DATADIR='$(GNOME_DATADIR)/xscreensaver'
17514 elif test "$have_gtk" = yes; then
17515 if test -n "$pkg_config"; then
17516 if test "$have_gtk2" = yes; then
17517 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
17519 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+`
17522 GLADE_DATADIR=`$gtk_config --prefix`
17524 GLADE_DATADIR="$GLADE_DATADIR/share/xscreensaver"
17530 # canonicalize slashes.
17531 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
17535 ###############################################################################
17537 # Perform substitutions and write Makefiles.
17539 ###############################################################################
17589 APPDEFAULTS=$ac_x_app_defaults
17597 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad driver/xscreensaver.kss"
17598 cat >confcache <<\_ACEOF
17599 # This file is a shell script that caches the results of configure
17600 # tests run on this system so they can be shared between configure
17601 # scripts and configure runs, see configure's option --config-cache.
17602 # It is not useful on other systems. If it contains results you don't
17603 # want to keep, you may remove or edit it.
17605 # config.status only pays attention to the cache file if you give it
17606 # the --recheck option to rerun configure.
17608 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17609 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17610 # following values.
17614 # The following way of writing the cache mishandles newlines in values,
17615 # but we know of no workaround that is simple, portable, and efficient.
17616 # So, don't put newlines in cache variables' values.
17617 # Ultrix sh set writes to stderr and can't be redirected directly,
17618 # and sets the high bit in the cache file unless we assign to the vars.
17621 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17623 # `set' does not quote correctly, so add quotes (double-quote
17624 # substitution turns \\\\ into \\, and sed turns \\ into \).
17627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17630 # `set' quotes correctly as required by POSIX, so do not add quotes.
17632 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17641 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17643 if cmp -s $cache_file confcache; then :; else
17644 if test -w $cache_file; then
17645 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17646 cat confcache >$cache_file
17648 echo "not updating unwritable cache $cache_file"
17653 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17654 # Let make expand exec_prefix.
17655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17657 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17658 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17659 # trailing colons and then remove the whole line if VPATH becomes empty
17660 # (actually we leave an empty line to preserve line numbers).
17661 if test "x$srcdir" = x.; then
17662 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17663 s/:*\$(srcdir):*/:/;
17664 s/:*\${srcdir}:*/:/;
17666 s/^\([^=]*=[ ]*\):*/\1/;
17672 DEFS=-DHAVE_CONFIG_H
17676 mv -f po/POTFILES po/POTFILES.tmp
17677 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
17678 rm -f po/POTFILES.tmp
17682 : ${CONFIG_STATUS=./config.status}
17683 ac_clean_files_save=$ac_clean_files
17684 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17685 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17686 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17687 cat >$CONFIG_STATUS <<_ACEOF
17689 # Generated by $as_me.
17690 # Run this file to recreate the current configuration.
17691 # Compiler output produced by configure, useful for debugging
17692 # configure, is in config.log if it exists.
17695 SHELL=\${CONFIG_SHELL-$SHELL}
17698 cat >>$CONFIG_STATUS <<\_ACEOF
17700 ## --------------------- ##
17701 ## M4sh Initialization. ##
17702 ## --------------------- ##
17704 # Be Bourne compatible
17705 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17708 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17713 # Support unset when possible.
17714 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17720 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17721 { $as_unset LANG || test "${LANG+set}" != set; } ||
17722 { LANG=C; export LANG; }
17723 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17724 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17725 { LC_ALL=C; export LC_ALL; }
17726 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17727 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17728 { LC_TIME=C; export LC_TIME; }
17729 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17730 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17731 { LC_CTYPE=C; export LC_CTYPE; }
17732 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17733 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17734 { LANGUAGE=C; export LANGUAGE; }
17735 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17736 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17737 { LC_COLLATE=C; export LC_COLLATE; }
17738 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17739 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17740 { LC_NUMERIC=C; export LC_NUMERIC; }
17741 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17742 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17743 { LC_MESSAGES=C; export LC_MESSAGES; }
17746 # Name of the executable.
17747 as_me=`(basename "$0") 2>/dev/null ||
17748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17749 X"$0" : 'X\(//\)$' \| \
17750 X"$0" : 'X\(/\)$' \| \
17751 . : '\(.\)' 2>/dev/null ||
17753 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17754 /^X\/\(\/\/\)$/{ s//\1/; q; }
17755 /^X\/\(\/\).*/{ s//\1/; q; }
17758 # PATH needs CR, and LINENO needs CR and PATH.
17759 # Avoid depending upon Character Ranges.
17760 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17761 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17762 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17763 as_cr_digits='0123456789'
17764 as_cr_alnum=$as_cr_Letters$as_cr_digits
17766 # The user is always right.
17767 if test "${PATH_SEPARATOR+set}" != set; then
17768 echo "#! /bin/sh" >conftest.sh
17769 echo "exit 0" >>conftest.sh
17770 chmod +x conftest.sh
17771 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17780 as_lineno_1=$LINENO
17781 as_lineno_2=$LINENO
17782 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17783 test "x$as_lineno_1" != "x$as_lineno_2" &&
17784 test "x$as_lineno_3" = "x$as_lineno_2" || {
17785 # Find who we are. Look in the path if we contain no path at all
17788 *[\\/]* ) as_myself=$0 ;;
17789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17790 for as_dir in $PATH
17793 test -z "$as_dir" && as_dir=.
17794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17799 # We did not find ourselves, most probably we were run as `sh COMMAND'
17800 # in which case we are not to be found in the path.
17801 if test "x$as_myself" = x; then
17804 if test ! -f "$as_myself"; then
17805 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17806 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17807 { (exit 1); exit 1; }; }
17809 case $CONFIG_SHELL in
17811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17812 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17815 test -z "$as_dir" && as_dir=.
17816 for as_base in sh bash ksh sh5; do
17819 if ("$as_dir/$as_base" -c '
17820 as_lineno_1=$LINENO
17821 as_lineno_2=$LINENO
17822 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17823 test "x$as_lineno_1" != "x$as_lineno_2" &&
17824 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17825 CONFIG_SHELL=$as_dir/$as_base
17826 export CONFIG_SHELL
17827 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17835 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17836 # uniformly replaced by the line number. The first 'sed' inserts a
17837 # line-number line before each line; the second 'sed' does the real
17838 # work. The second script uses 'N' to pair each line-number line
17839 # with the numbered line, and appends trailing '-' during
17840 # substitution so that $LINENO is not a special case at line end.
17841 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17842 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17843 sed '=' <$as_myself |
17848 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17851 s,^['$as_cr_digits']*\n,,
17852 ' >$as_me.lineno &&
17853 chmod +x $as_me.lineno ||
17854 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17855 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17856 { (exit 1); exit 1; }; }
17858 # Don't try to exec as it changes $[0], causing all sort of problems
17859 # (the dirname of $[0] is not the place where we might find the
17860 # original and so on. Autoconf is especially sensible to this).
17862 # Exit status is that of the last command.
17867 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17868 *c*,-n*) ECHO_N= ECHO_C='
17870 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17871 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17874 if expr a : '\(a\)' >/dev/null 2>&1; then
17880 rm -f conf$$ conf$$.exe conf$$.file
17882 if ln -s conf$$.file conf$$ 2>/dev/null; then
17883 # We could just check for DJGPP; but this test a) works b) is more generic
17884 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17885 if test -f conf$$.exe; then
17886 # Don't use ln at all; we don't have any links
17891 elif ln conf$$.file conf$$ 2>/dev/null; then
17896 rm -f conf$$ conf$$.exe conf$$.file
17898 as_executable_p="test -f"
17900 # Sed expression to map a string onto a valid CPP name.
17901 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17903 # Sed expression to map a string onto a valid variable name.
17904 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17908 # We need space, tab and new line, in precisely that order.
17914 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17918 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17919 # report actual input values of CONFIG_FILES etc. instead of their
17920 # values after options handling. Logging --version etc. is OK.
17924 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17925 ## Running $as_me. ##
17930 This file was extended by $as_me, which was
17931 generated by GNU Autoconf 2.53. Invocation command line was
17933 CONFIG_FILES = $CONFIG_FILES
17934 CONFIG_HEADERS = $CONFIG_HEADERS
17935 CONFIG_LINKS = $CONFIG_LINKS
17936 CONFIG_COMMANDS = $CONFIG_COMMANDS
17940 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17944 # Files that config.status was made for.
17945 if test -n "$ac_config_files"; then
17946 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17949 if test -n "$ac_config_headers"; then
17950 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17953 if test -n "$ac_config_links"; then
17954 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17957 if test -n "$ac_config_commands"; then
17958 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17961 cat >>$CONFIG_STATUS <<\_ACEOF
17964 \`$as_me' instantiates files from templates according to the
17965 current configuration.
17967 Usage: $0 [OPTIONS] [FILE]...
17969 -h, --help print this help, then exit
17970 -V, --version print version number, then exit
17971 -d, --debug don't remove temporary files
17972 --recheck update $as_me by reconfiguring in the same conditions
17973 --file=FILE[:TEMPLATE]
17974 instantiate the configuration file FILE
17975 --header=FILE[:TEMPLATE]
17976 instantiate the configuration header FILE
17978 Configuration files:
17981 Configuration headers:
17984 Configuration commands:
17987 Report bugs to <bug-autoconf@gnu.org>."
17990 cat >>$CONFIG_STATUS <<_ACEOF
17993 configured by $0, generated by GNU Autoconf 2.53,
17994 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17996 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17997 Free Software Foundation, Inc.
17998 This config.status script is free software; the Free Software Foundation
17999 gives unlimited permission to copy, distribute and modify it."
18004 cat >>$CONFIG_STATUS <<\_ACEOF
18005 # If no file are specified by the user, then we need to provide default
18006 # value. By we need to know if files were specified by the user.
18012 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18013 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18015 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18019 *) # This is not an option, so the user has probably given explicit
18021 ac_need_defaults=false;;
18025 # Handling of the options.
18027 cat >>$CONFIG_STATUS <<_ACEOF
18028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18029 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18030 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18032 cat >>$CONFIG_STATUS <<\_ACEOF
18033 --version | --vers* | -V )
18034 echo "$ac_cs_version"; exit 0 ;;
18036 # Conflict between --help and --header
18037 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18038 Try \`$0 --help' for more information." >&5
18039 echo "$as_me: error: ambiguous option: $1
18040 Try \`$0 --help' for more information." >&2;}
18041 { (exit 1); exit 1; }; };;
18042 --help | --hel | -h )
18043 echo "$ac_cs_usage"; exit 0 ;;
18044 --debug | --d* | -d )
18046 --file | --fil | --fi | --f )
18048 CONFIG_FILES="$CONFIG_FILES $1"
18049 ac_need_defaults=false;;
18050 --header | --heade | --head | --hea )
18052 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18053 ac_need_defaults=false;;
18055 # This is an error.
18056 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18057 Try \`$0 --help' for more information." >&5
18058 echo "$as_me: error: unrecognized option: $1
18059 Try \`$0 --help' for more information." >&2;}
18060 { (exit 1); exit 1; }; } ;;
18062 *) ac_config_targets="$ac_config_targets $1" ;;
18070 cat >>$CONFIG_STATUS <<_ACEOF
18072 # INIT-COMMANDS section.
18075 INTLTOOL_PERL=${INTLTOOL_PERL}
18082 cat >>$CONFIG_STATUS <<\_ACEOF
18083 for ac_config_target in $ac_config_targets
18085 case "$ac_config_target" in
18086 # Handling of arguments.
18087 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18088 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
18089 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
18090 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
18091 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
18092 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18093 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
18094 "driver/xscreensaver.kss" ) CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.kss" ;;
18095 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18096 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
18097 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18098 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18099 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18100 { (exit 1); exit 1; }; };;
18104 # If the user did not use the arguments to specify the items to instantiate,
18105 # then the envvar interface is used. Set only those that are not.
18106 # We use the long form for the default assignment because of an extremely
18107 # bizarre bug on SunOS 4.1.3.
18108 if $ac_need_defaults; then
18109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18111 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18114 # Create a temporary directory, and hook for its removal unless debugging.
18117 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18118 trap '{ (exit 1); exit 1; }' 1 2 13 15
18121 # Create a (secure) tmp directory for tmp files.
18124 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18125 test -n "$tmp" && test -d "$tmp"
18128 tmp=$TMPDIR/cs$$-$RANDOM
18129 (umask 077 && mkdir $tmp)
18132 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18133 { (exit 1); exit 1; }
18138 cat >>$CONFIG_STATUS <<_ACEOF
18141 # CONFIG_FILES section.
18144 # No need to generate the scripts if there are no CONFIG_FILES.
18145 # This happens for instance when ./config.status config.h
18146 if test -n "\$CONFIG_FILES"; then
18147 # Protect against being on the right side of a sed subst in config.status.
18148 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18149 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18150 s,@SHELL@,$SHELL,;t t
18151 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18152 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18153 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18154 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18155 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18156 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18157 s,@exec_prefix@,$exec_prefix,;t t
18158 s,@prefix@,$prefix,;t t
18159 s,@program_transform_name@,$program_transform_name,;t t
18160 s,@bindir@,$bindir,;t t
18161 s,@sbindir@,$sbindir,;t t
18162 s,@libexecdir@,$libexecdir,;t t
18163 s,@datadir@,$datadir,;t t
18164 s,@sysconfdir@,$sysconfdir,;t t
18165 s,@sharedstatedir@,$sharedstatedir,;t t
18166 s,@localstatedir@,$localstatedir,;t t
18167 s,@libdir@,$libdir,;t t
18168 s,@includedir@,$includedir,;t t
18169 s,@oldincludedir@,$oldincludedir,;t t
18170 s,@infodir@,$infodir,;t t
18171 s,@mandir@,$mandir,;t t
18172 s,@build_alias@,$build_alias,;t t
18173 s,@host_alias@,$host_alias,;t t
18174 s,@target_alias@,$target_alias,;t t
18175 s,@DEFS@,$DEFS,;t t
18176 s,@ECHO_C@,$ECHO_C,;t t
18177 s,@ECHO_N@,$ECHO_N,;t t
18178 s,@ECHO_T@,$ECHO_T,;t t
18179 s,@LIBS@,$LIBS,;t t
18180 s,@build@,$build,;t t
18181 s,@build_cpu@,$build_cpu,;t t
18182 s,@build_vendor@,$build_vendor,;t t
18183 s,@build_os@,$build_os,;t t
18184 s,@host@,$host,;t t
18185 s,@host_cpu@,$host_cpu,;t t
18186 s,@host_vendor@,$host_vendor,;t t
18187 s,@host_os@,$host_os,;t t
18189 s,@CFLAGS@,$CFLAGS,;t t
18190 s,@LDFLAGS@,$LDFLAGS,;t t
18191 s,@CPPFLAGS@,$CPPFLAGS,;t t
18192 s,@ac_ct_CC@,$ac_ct_CC,;t t
18193 s,@EXEEXT@,$EXEEXT,;t t
18194 s,@OBJEXT@,$OBJEXT,;t t
18196 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18197 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18198 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18199 s,@SET_MAKE@,$SET_MAKE,;t t
18200 s,@PERL@,$PERL,;t t
18201 s,@X_CFLAGS@,$X_CFLAGS,;t t
18202 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18203 s,@X_LIBS@,$X_LIBS,;t t
18204 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18205 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
18206 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
18207 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
18208 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
18209 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
18210 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
18211 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
18212 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
18213 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
18214 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
18215 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
18216 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
18217 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
18218 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
18219 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
18220 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
18221 s,@RANLIB@,$RANLIB,;t t
18222 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18223 s,@ALLOCA@,$ALLOCA,;t t
18224 s,@USE_NLS@,$USE_NLS,;t t
18225 s,@MSGFMT@,$MSGFMT,;t t
18226 s,@GMSGFMT@,$GMSGFMT,;t t
18227 s,@XGETTEXT@,$XGETTEXT,;t t
18228 s,@CATALOGS@,$CATALOGS,;t t
18229 s,@CATOBJEXT@,$CATOBJEXT,;t t
18230 s,@DATADIRNAME@,$DATADIRNAME,;t t
18231 s,@GMOFILES@,$GMOFILES,;t t
18232 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18233 s,@INTLDEPS@,$INTLDEPS,;t t
18234 s,@INTLLIBS@,$INTLLIBS,;t t
18235 s,@INTLOBJS@,$INTLOBJS,;t t
18236 s,@POFILES@,$POFILES,;t t
18237 s,@POSUB@,$POSUB,;t t
18238 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
18239 s,@pkg_config@,$pkg_config,;t t
18240 s,@glib_config@,$glib_config,;t t
18241 s,@gtk_config@,$gtk_config,;t t
18242 s,@gnome_config@,$gnome_config,;t t
18243 s,@have_gnome_help@,$have_gnome_help,;t t
18244 s,@xml_config@,$xml_config,;t t
18245 s,@gdk_pixbuf_config@,$gdk_pixbuf_config,;t t
18246 s,@fortune_tmp@,$fortune_tmp,;t t
18247 s,@INCLUDES@,$INCLUDES,;t t
18248 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
18249 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
18250 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
18251 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
18252 s,@GTK_LIBS@,$GTK_LIBS,;t t
18253 s,@XML_LIBS@,$XML_LIBS,;t t
18254 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
18255 s,@HACK_LIBS@,$HACK_LIBS,;t t
18256 s,@XPM_LIBS@,$XPM_LIBS,;t t
18257 s,@GL_LIBS@,$GL_LIBS,;t t
18258 s,@GLE_LIBS@,$GLE_LIBS,;t t
18259 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
18260 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
18261 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
18262 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
18263 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
18264 s,@NEED_SETUID@,$NEED_SETUID,;t t
18265 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
18266 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
18267 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
18268 s,@XMU_SRCS@,$XMU_SRCS,;t t
18269 s,@XMU_OBJS@,$XMU_OBJS,;t t
18270 s,@XMU_LIBS@,$XMU_LIBS,;t t
18271 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
18272 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
18273 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
18274 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
18275 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
18276 s,@JPEG_EXES@,$JPEG_EXES,;t t
18277 s,@GL_EXES@,$GL_EXES,;t t
18278 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
18279 s,@GL_MEN@,$GL_MEN,;t t
18280 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
18281 s,@GLE_EXES@,$GLE_EXES,;t t
18282 s,@GLE_MEN@,$GLE_MEN,;t t
18283 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
18284 s,@GNOMEHELP_Y@,$GNOMEHELP_Y,;t t
18285 s,@GNOMEHELP_N@,$GNOMEHELP_N,;t t
18286 s,@HACKDIR@,$HACKDIR,;t t
18287 s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t
18288 s,@GLADE_DATADIR@,$GLADE_DATADIR,;t t
18289 s,@GNOME_PANELDIR@,$GNOME_PANELDIR,;t t
18290 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
18291 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
18292 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
18293 s,@DEPEND@,$DEPEND,;t t
18294 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
18295 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
18300 cat >>$CONFIG_STATUS <<\_ACEOF
18301 # Split the substitutions into bite-sized pieces for seds with
18302 # small command number limits, like on Digital OSF/1 and HP-UX.
18303 ac_max_sed_lines=48
18304 ac_sed_frag=1 # Number of current file.
18305 ac_beg=1 # First line for current file.
18306 ac_end=$ac_max_sed_lines # Line after last line for current file.
18309 while $ac_more_lines; do
18310 if test $ac_beg -gt 1; then
18311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18313 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18315 if test ! -s $tmp/subs.frag; then
18316 ac_more_lines=false
18318 # The purpose of the label and of the branching condition is to
18319 # speed up the sed processing (if there are no `@' at all, there
18320 # is no need to browse any of the substitutions).
18321 # These are the two extra sed commands mentioned above.
18323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18324 if test -z "$ac_sed_cmds"; then
18325 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18327 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18329 ac_sed_frag=`expr $ac_sed_frag + 1`
18331 ac_end=`expr $ac_end + $ac_max_sed_lines`
18334 if test -z "$ac_sed_cmds"; then
18337 fi # test -n "$CONFIG_FILES"
18340 cat >>$CONFIG_STATUS <<\_ACEOF
18341 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18344 - | *:- | *:-:* ) # input from stdin
18346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18350 * ) ac_file_in=$ac_file.in ;;
18353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18354 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18356 X"$ac_file" : 'X\(//\)[^/]' \| \
18357 X"$ac_file" : 'X\(//\)$' \| \
18358 X"$ac_file" : 'X\(/\)' \| \
18359 . : '\(.\)' 2>/dev/null ||
18361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18363 /^X\(\/\/\)$/{ s//\1/; q; }
18364 /^X\(\/\).*/{ s//\1/; q; }
18366 { case "$ac_dir" in
18367 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18371 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18372 case $as_mkdir_dir in
18373 # Skip DOS drivespec
18374 ?:) as_incr_dir=$as_mkdir_dir ;;
18376 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18377 test -d "$as_incr_dir" ||
18378 mkdir "$as_incr_dir" ||
18379 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18380 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18381 { (exit 1); exit 1; }; }
18388 if test "$ac_dir" != .; then
18389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18390 # A "../" for each directory in $ac_dir_suffix.
18391 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18393 ac_dir_suffix= ac_top_builddir=
18397 .) # No --srcdir option. We are building in place.
18399 if test -z "$ac_top_builddir"; then
18402 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18404 [\\/]* | ?:[\\/]* ) # Absolute path.
18405 ac_srcdir=$srcdir$ac_dir_suffix;
18406 ac_top_srcdir=$srcdir ;;
18407 *) # Relative path.
18408 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18409 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18411 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18413 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18414 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18415 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18416 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18420 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18421 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18424 if test x"$ac_file" != x-; then
18425 { echo "$as_me:$LINENO: creating $ac_file" >&5
18426 echo "$as_me: creating $ac_file" >&6;}
18429 # Let's still pretend it is `configure' which instantiates (i.e., don't
18430 # use $as_me), people would be surprised to read:
18431 # /* config.h. Generated by config.status. */
18432 if test x"$ac_file" = x-; then
18435 configure_input="$ac_file. "
18437 configure_input=$configure_input"Generated from `echo $ac_file_in |
18438 sed 's,.*/,,'` by configure."
18440 # First look for the input files in the build tree, otherwise in the
18442 ac_file_inputs=`IFS=:
18443 for f in $ac_file_in; do
18445 -) echo $tmp/stdin ;;
18447 # Absolute (can't be DOS-style, as IFS=:)
18448 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18449 echo "$as_me: error: cannot find input file: $f" >&2;}
18450 { (exit 1); exit 1; }; }
18453 if test -f "$f"; then
18456 elif test -f "$srcdir/$f"; then
18461 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18462 echo "$as_me: error: cannot find input file: $f" >&2;}
18463 { (exit 1); exit 1; }; }
18466 done` || { (exit 1); exit 1; }
18468 cat >>$CONFIG_STATUS <<_ACEOF
18472 cat >>$CONFIG_STATUS <<\_ACEOF
18474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18475 s,@configure_input@,$configure_input,;t t
18476 s,@srcdir@,$ac_srcdir,;t t
18477 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18478 s,@top_srcdir@,$ac_top_srcdir,;t t
18479 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18480 s,@builddir@,$ac_builddir,;t t
18481 s,@abs_builddir@,$ac_abs_builddir,;t t
18482 s,@top_builddir@,$ac_top_builddir,;t t
18483 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18484 s,@INSTALL@,$ac_INSTALL,;t t
18485 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18487 if test x"$ac_file" != x-; then
18488 mv $tmp/out $ac_file
18496 cat >>$CONFIG_STATUS <<\_ACEOF
18499 # CONFIG_HEADER section.
18502 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18503 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18505 # ac_d sets the value in "#define NAME VALUE" lines.
18506 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18507 ac_dB='[ ].*$,\1#\2'
18510 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18511 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18512 ac_uB='$,\1#\2define\3'
18516 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18517 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18519 - | *:- | *:-:* ) # input from stdin
18521 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18522 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18523 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18524 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18525 * ) ac_file_in=$ac_file.in ;;
18528 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18529 echo "$as_me: creating $ac_file" >&6;}
18531 # First look for the input files in the build tree, otherwise in the
18533 ac_file_inputs=`IFS=:
18534 for f in $ac_file_in; do
18536 -) echo $tmp/stdin ;;
18538 # Absolute (can't be DOS-style, as IFS=:)
18539 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18540 echo "$as_me: error: cannot find input file: $f" >&2;}
18541 { (exit 1); exit 1; }; }
18544 if test -f "$f"; then
18547 elif test -f "$srcdir/$f"; then
18552 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18553 echo "$as_me: error: cannot find input file: $f" >&2;}
18554 { (exit 1); exit 1; }; }
18557 done` || { (exit 1); exit 1; }
18558 # Remove the trailing spaces.
18559 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18563 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18564 # `conftest.undefs', that substitutes the proper values into
18565 # config.h.in to produce config.h. The first handles `#define'
18566 # templates, and the second `#undef' templates.
18567 # And first: Protect against being on the right side of a sed subst in
18568 # config.status. Protect against being in an unquoted here document
18569 # in config.status.
18570 rm -f conftest.defines conftest.undefs
18571 # Using a here document instead of a string reduces the quoting nightmare.
18572 # Putting comments in sed scripts is not portable.
18574 # `end' is used to avoid that the second main sed command (meant for
18575 # 0-ary CPP macros) applies to n-ary macro definitions.
18576 # See the Autoconf documentation for `clear'.
18577 cat >confdef2sed.sed <<\_ACEOF
18582 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18584 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18587 # If some macros were called several times there might be several times
18588 # the same #defines, which is useless. Nevertheless, we may not want to
18589 # sort them, since we want the *last* AC-DEFINE to be honored.
18590 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18591 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18592 rm -f confdef2sed.sed
18594 # This sed command replaces #undef with comments. This is necessary, for
18595 # example, in the case of _POSIX_SOURCE, which is predefined and required
18596 # on some systems where configure will not decide to define it.
18597 cat >>conftest.undefs <<\_ACEOF
18598 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18601 # Break up conftest.defines because some shells have a limit on the size
18602 # of here documents, and old seds have small limits too (100 cmds).
18603 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18604 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18605 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18606 echo ' :' >>$CONFIG_STATUS
18607 rm -f conftest.tail
18608 while grep . conftest.defines >/dev/null
18610 # Write a limited-size here document to $tmp/defines.sed.
18611 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18612 # Speed up: don't consider the non `#define' lines.
18613 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18614 # Work around the forget-to-reset-the-flag bug.
18615 echo 't clr' >>$CONFIG_STATUS
18616 echo ': clr' >>$CONFIG_STATUS
18617 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18619 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18621 mv $tmp/out $tmp/in
18623 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18624 rm -f conftest.defines
18625 mv conftest.tail conftest.defines
18627 rm -f conftest.defines
18628 echo ' fi # egrep' >>$CONFIG_STATUS
18629 echo >>$CONFIG_STATUS
18631 # Break up conftest.undefs because some shells have a limit on the size
18632 # of here documents, and old seds have small limits too (100 cmds).
18633 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18634 rm -f conftest.tail
18635 while grep . conftest.undefs >/dev/null
18637 # Write a limited-size here document to $tmp/undefs.sed.
18638 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18639 # Speed up: don't consider the non `#undef'
18640 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18641 # Work around the forget-to-reset-the-flag bug.
18642 echo 't clr' >>$CONFIG_STATUS
18643 echo ': clr' >>$CONFIG_STATUS
18644 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18646 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18648 mv $tmp/out $tmp/in
18650 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18651 rm -f conftest.undefs
18652 mv conftest.tail conftest.undefs
18654 rm -f conftest.undefs
18656 cat >>$CONFIG_STATUS <<\_ACEOF
18657 # Let's still pretend it is `configure' which instantiates (i.e., don't
18658 # use $as_me), people would be surprised to read:
18659 # /* config.h. Generated by config.status. */
18660 if test x"$ac_file" = x-; then
18661 echo "/* Generated by configure. */" >$tmp/config.h
18663 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18665 cat $tmp/in >>$tmp/config.h
18667 if test x"$ac_file" != x-; then
18668 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18669 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18670 echo "$as_me: $ac_file is unchanged" >&6;}
18672 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18674 X"$ac_file" : 'X\(//\)[^/]' \| \
18675 X"$ac_file" : 'X\(//\)$' \| \
18676 X"$ac_file" : 'X\(/\)' \| \
18677 . : '\(.\)' 2>/dev/null ||
18679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18681 /^X\(\/\/\)$/{ s//\1/; q; }
18682 /^X\(\/\).*/{ s//\1/; q; }
18684 { case "$ac_dir" in
18685 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18689 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18690 case $as_mkdir_dir in
18691 # Skip DOS drivespec
18692 ?:) as_incr_dir=$as_mkdir_dir ;;
18694 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18695 test -d "$as_incr_dir" ||
18696 mkdir "$as_incr_dir" ||
18697 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18698 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18699 { (exit 1); exit 1; }; }
18705 mv $tmp/config.h $ac_file
18709 rm -f $tmp/config.h
18713 cat >>$CONFIG_STATUS <<\_ACEOF
18716 # CONFIG_COMMANDS section.
18718 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18719 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18720 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18721 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18722 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18723 X"$ac_dest" : 'X\(//\)[^/]' \| \
18724 X"$ac_dest" : 'X\(//\)$' \| \
18725 X"$ac_dest" : 'X\(/\)' \| \
18726 . : '\(.\)' 2>/dev/null ||
18728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18730 /^X\(\/\/\)$/{ s//\1/; q; }
18731 /^X\(\/\).*/{ s//\1/; q; }
18735 if test "$ac_dir" != .; then
18736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18737 # A "../" for each directory in $ac_dir_suffix.
18738 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18740 ac_dir_suffix= ac_top_builddir=
18744 .) # No --srcdir option. We are building in place.
18746 if test -z "$ac_top_builddir"; then
18749 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18751 [\\/]* | ?:[\\/]* ) # Absolute path.
18752 ac_srcdir=$srcdir$ac_dir_suffix;
18753 ac_top_srcdir=$srcdir ;;
18754 *) # Relative path.
18755 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18756 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18758 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18760 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18761 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18762 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18763 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18766 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18767 echo "$as_me: executing $ac_dest commands" >&6;}
18771 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
18772 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
18773 rm -f intltool-extract.out
18775 mv -f intltool-extract.out intltool-extract
18777 chmod ugo+x intltool-extract
18778 chmod u+w intltool-extract
18780 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
18781 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
18782 rm -f intltool-merge.out
18784 mv -f intltool-merge.out intltool-merge
18786 chmod ugo+x intltool-merge
18787 chmod u+w intltool-merge
18789 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
18790 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
18791 rm -f intltool-update.out
18793 mv -f intltool-update.out intltool-update
18795 chmod ugo+x intltool-update
18796 chmod u+w intltool-update
18799 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
18800 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
18806 cat >>$CONFIG_STATUS <<\_ACEOF
18808 { (exit 0); exit 0; }
18810 chmod +x $CONFIG_STATUS
18811 ac_clean_files=$ac_clean_files_save
18814 # configure is writing to config.log, and then calls config.status.
18815 # config.status does its own redirection, appending to config.log.
18816 # Unfortunately, on DOS this fails, as config.log is still kept open
18817 # by configure, so config.status won't be able to write to it; its
18818 # output is simply discarded. So we exec the FD to /dev/null,
18819 # effectively closing config.log, so it can be properly (re)opened and
18820 # appended to by config.status. When coming back to configure, we
18821 # need to make the FD available again.
18822 if test "$no_create" != yes; then
18825 $SHELL $CONFIG_STATUS || ac_cs_success=false
18827 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18828 # would make configure fail if this is the last instruction.
18829 $ac_cs_success || { (exit 1); exit 1; }
18833 ###############################################################################
18835 # Print some warnings at the end.
18837 ###############################################################################
18839 warn_prefix_1=" Warning:"
18840 warn_prefix_2=" Note:"
18841 warn_prefix="$warn_prefix_1"
18844 warnsep=' #################################################################'
18847 if test "$warning" = no ; then
18848 echo '' ; echo "$warnsep" ; echo ''
18855 if test "$warning" = long ; then echo '' ; fi
18858 echo "$warn_prefix $rest"
18865 if test "$was" != no ; then echo '' ; fi
18867 echo "$warn_prefix $rest"
18877 warn_prefix="$warn_prefix_2"
18879 warn_prefix="$warn_prefix_1"
18883 warn_prefix="$warn_prefix_2"
18885 warn_prefix="$warn_prefix_1"
18889 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
18890 warn 'The SGI saver extension was requested, but was not found.'
18893 if test "$with_mit_req" = yes -a "$have_mit" = no ; then
18894 warn 'The MIT saver extension was requested, but was not found.'
18897 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
18898 warn 'The XIdle extension was requested, but was not found.'
18901 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
18902 warn 'The XSHM extension was requested, but was not found.'
18905 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
18906 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
18909 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
18910 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
18913 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
18914 warn 'The DPMS extension was requested, but was not found.'
18917 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
18918 warn 'The Xinerama extension was requested, but was not found.'
18921 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
18922 warn 'The XF86VMODE extension was requested, but was not found.'
18925 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
18926 warn "Checking of /proc/interrupts was requested, but it's bogus."
18930 if test "$have_motif" = no -a "$have_gtk" = no; then
18931 warnL "Neither Motif nor Gtk seem to be available;"
18932 warn2 "the \`xscreensaver-demo' program requires one of these."
18934 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
18935 warnL "Use of Motif was requested, but it wasn't found;"
18936 warn2 "Gtk will be used instead."
18938 elif test "$jurassic_gtk" = yes ; then
18942 v="$ac_gtk_version_string"
18943 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
18944 warnL "Use of Gtk was requested, but its version number is unknown;"
18945 elif test "$with_gtk_req" = yes ; then
18946 warnL "Use of Gtk was requested, but it is version $v;"
18948 warnL "Gtk was found on this system, but it is version $v;"
18951 warn2 "Gtk $pref_gtk or newer is required. Motif will be used instead."
18953 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
18954 warnL "Use of Gtk was requested, but it wasn't found."
18955 if test "$have_motif" = yes; then
18956 warn2 "Motif will be used instead."
18960 if test "$gtk2_halfassed" != no ; then
18961 warnL "GTK version $gtk2_halfassed was found, but some other supporting"
18962 warn2 "libraries were not, so GTK 2.x can't be used. Please"
18963 warn2 "read the above output and the \`config.log' file to see"
18964 warn2 "which libraries are missing."
18968 if test "$with_gnome_req" = yes -a "$have_gnome" = no ; then
18969 warn 'Use of the Gnome Control Panel was requested, but the necessary'
18970 warn2 'headers and/or libraries were not found.'
18973 if test "$have_gtk" = yes ; then
18974 if test "$have_xml" = no ; then
18975 if test "$with_xml_req" = yes ; then
18976 warn 'Use of the XML library was requested, but the necessary'
18977 warn2 'headers and/or libraries were not found.'
18979 warn 'GTK is being used, but the XML library was not found.'
18982 if test "$xml_halfassed" = yes ; then
18984 if test "$have_zlib" = yes ; then
18985 which="XML libraries"
18987 which="\`zlib' library"
18991 warn2 'More specifically, we found the headers, but not the'
18992 warn2 "$which; so either XML is half-installed on this"
18993 warn2 "system, or something else went wrong. The \`config.log'"
18994 warn2 'file might contain some clues.'
18998 warn2 "Without XML, the per-display-mode \`Settings' dialogs"
18999 warn2 'will not be available. Specify the location of the XML'
19000 warn2 'library through the --with-xml option to configure.'
19004 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
19006 preferred_lesstif=0.92
19008 if test "$lesstif_version" = unknown; then
19009 warnL "Unable to determine the LessTif version number!"
19010 warn2 "Make sure you are using version $preferred_lesstif or newer."
19011 warn2 "See <http://www.lesstif.org/>."
19013 elif test \! $lesstif_version -gt 82; then
19014 warnL "LessTif version $lesstif_version_string is being used."
19015 warn2 "LessTif versions 0.82 and earlier are too buggy to"
19016 warn2 "use with XScreenSaver; it is strongly recommended"
19017 warn2 "that you upgrade to at least version $preferred_lesstif!"
19018 warn2 "See <http://www.lesstif.org/>."
19023 if test "$have_motif" = yes -a "$have_gtk" = no ; then
19024 warn 'Motif is being used, and GTK is not.'
19026 warn2 'Though the Motif front-end to xscreensaver is still'
19027 warn2 'maintained, it is no longer being updated with new'
19028 warn2 'features: all new development on the xscreensaver-demo'
19029 warn2 'program is happening in the GTK version, and not in the'
19030 warn2 'Motif version. It is recommended that you build against'
19031 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
19035 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
19036 warnL 'Use of XPM was requested, but it was not found.'
19039 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
19040 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
19043 if test "$have_xpm" = no -a "$have_gdk_pixbuf" = no || \
19044 test "$gdk_pixbuf_halfassed" = yes; then
19046 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
19048 elif test "$with_xpm_req" = no ; then
19049 warnL 'The XPM library is not being used.'
19051 warnL 'The XPM library was not found.'
19054 if test "$with_gdk_pixbuf_req" = yes ; then
19056 elif test "$with_gdk_pixbuf_req" = no ; then
19057 warnL 'The GDK-Pixbuf library is not being used.'
19059 warnL 'The GDK-Pixbuf library was not found.'
19062 if test "$gdk_pixbuf_halfassed" = yes ; then
19064 warn2 'More specifically, we found the headers, but not the'
19065 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
19066 warn2 "system, or something else went wrong. The \`config.log'"
19067 warn2 'file might contain some clues.'
19071 warn2 'Some of the demos will not be as colorful as they'
19072 warn2 'could be. You should consider installing Pixbuf or'
19073 warn2 'XPM and re-running configure. (Remember to delete'
19074 warn2 'the config.cache file first.) The Pixbuf library is'
19075 warn2 'a part of GNOME. The XPM library comes with most'
19076 warn2 'X11 installations; you can also find it at the X11'
19077 warn2 'archive sites, such as <http://sunsite.unc.edu/>.'
19079 warn2 'GDK-Pixbuf is recommended over XPM, as it provides'
19080 warn2 'support for more image formats.'
19084 if test "$have_jpeg" = no ; then
19085 if test "$with_jpeg_req" = yes ; then
19086 warnL 'Use of libjpeg was requested, but it was not found.'
19087 elif test "$with_jpeg_req" = no ; then
19088 noteL 'The JPEG library is not being used.'
19090 noteL 'The JPEG library was not found.'
19093 if test "$jpeg_halfassed" = yes ; then
19095 warn2 'More specifically, we found the headers, but not the'
19096 warn2 'library; so either JPEG is half-installed on this'
19097 warn2 "system, or something else went wrong. The \`config.log'"
19098 warn2 'file might contain some clues.'
19102 warn2 "This means the \`webcollage' program will be much slower."
19106 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
19107 preferred_mesagl=3.4
19108 mgv="$ac_mesagl_version_string"
19109 pgl="$preferred_mesagl"
19111 if test "$ac_mesagl_version" = unknown; then
19112 warnL "Unable to determine the MesaGL version number!"
19113 warn2 "Make sure you are using version $preferred_mesagl or newer."
19115 elif test \! "$ac_mesagl_version" -gt 2006; then
19116 warnL "MesaGL version $mgv is being used. MesaGL 2.6 and earlier"
19117 warn2 "have a security bug. It is strongly recommended that you"
19118 warn2 "upgrade to at least version $preferred_mesagl."
19120 elif test \! "$ac_mesagl_version" -gt 3003; then
19121 warnL "MesaGL version $mgv is being used. That version has some"
19122 warn2 "bugs; it is recommended that you upgrade to $pgl or newer."
19126 if test "$have_gl" = no ; then
19127 if test "$with_gl_req" = yes ; then
19128 warnL 'Use of GL was requested, but it was not found.'
19129 elif test "$with_gl_req" = no ; then
19130 noteL 'The OpenGL 3D library is not being used.'
19132 noteL 'The OpenGL 3D library was not found.'
19135 if test "$gl_halfassed" = yes ; then
19137 warn2 'More specifically, we found the headers, but not the'
19138 warn2 'libraries; so either GL is half-installed on this'
19139 warn2 "system, or something else went wrong. The \`config.log'"
19140 warn2 'file might contain some clues.'
19144 warn2 'Those demos which use 3D will not be built or installed.'
19145 warn2 'You might want to consider installing OpenGL and'
19146 warn2 're-running configure. (Remember to delete the'
19147 warn2 "config.cache file first.) If your vendor doesn't ship"
19148 warn2 'their own implementation of OpenGL, you can get a free'
19149 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
19150 warn2 'info, see <http://www.opengl.org/>.'
19155 if test "$have_gl" = yes -a "$have_gle" = no ; then
19156 if test "$with_gle_req" = yes ; then
19157 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
19158 warn2 'it was not found (though the OpenGL library was found, and'
19159 warn2 'is being used.)'
19160 elif test "$with_gle_req" = no ; then
19161 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
19162 warn2 'library is not.'
19164 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
19168 if test "$gle_halfassed" = yes ; then
19170 warn2 'More specifically, we found the headers, but not the'
19171 warn2 'libraries; so either GLE is half-installed on this'
19172 warn2 "system, or something else went wrong. The \`config.log'"
19173 warn2 'file might contain some clues.'
19177 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
19178 warn2 'will not be built or installed. You might want to consider'
19179 warn2 'installing GLE and re-running configure. (Remember to delete'
19180 warn2 'the config.cache file first.) You can find the GLE library'
19181 warn2 'at <http://www.linas.org/gle/>. For general OpenGL info,'
19182 warn2 'see <http://www.opengl.org/>.'
19187 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
19188 warn 'Use of XReadDisplay was requested, but it was not found.'
19191 if test -n "$with_fortune_req"; then
19192 if test "$with_fortune_req" != "$ac_cv_fortune_program" ; then
19193 warnL "$with_fortune_req was requested as the Fortune program,"
19194 warn2 "but was not found. The default will be used instead."
19198 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
19199 warn 'Use of Kerberos was requested, but it was not found.'
19202 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
19203 warn 'Use of PAM was requested, but it was not found.'
19206 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
19207 warn 'Use of shadow passwords was requested, but they were not found.'
19211 # You are in a twisty maze of namespaces and syntaxes, all alike.
19212 # Fuck the skull of Unix.
19214 eval bindir=${bindir}
19215 eval bindir=${bindir}
19216 eval bindir=${bindir}
19217 eval bindir=${bindir}
19218 eval bindir=${bindir}
19219 eval bindir=${bindir}
19220 eval HACKDIR=${HACKDIR}
19221 eval HACKDIR=${HACKDIR}
19222 eval HACKDIR=${HACKDIR}
19223 eval HACKDIR=${HACKDIR}
19224 eval HACKDIR=${HACKDIR}
19225 eval HACKDIR=${HACKDIR}
19226 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19227 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19228 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19229 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19230 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19231 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19233 # canonicalize slashes.
19234 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
19235 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
19236 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
19239 # Sanity check the hackdir
19240 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
19241 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
19243 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
19244 There will be an executable installed with that name, so
19245 that can't be the name of a directory as well. Please
19246 re-configure with a different directory name." >&5
19247 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
19248 There will be an executable installed with that name, so
19249 that can't be the name of a directory as well. Please
19250 re-configure with a different directory name." >&2;}
19251 { (exit 1); exit 1; }; }
19258 # Now let's see if there's a previous RPM version already installed. Blargh!
19262 rpmv=`(rpm -qv xscreensaver) 2>/dev/null | \
19263 sed -n 's/^xscreensaver-\([0-9][0-9]*[.][0-9][0-9]*\)-.*$/\1/p'`
19266 if test \! -z "$rpmv" ; then
19267 rpmbdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
19268 rpmhdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/attraction$@\1@p'`
19271 warnL "There is already an installed RPM of xscreensaver $rpmv"
19272 warn2 "on this system. You might want to remove it (with"
19273 warn2 '"rpm -ve xscreensaver") before running "make install"'
19274 warn2 "from this directory."
19276 warn2 "Alternately, you could build this version of xscreensaver"
19277 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
19278 warn2 "file is included. See the RPM documentation for more info."
19281 if test "$rpmbdir" = "$rpmhdir" ; then
19282 warn2 "The RPM version was installed in $rpmbdir/."
19284 warn2 "The RPM version was installed in $rpmbdir/,"
19285 warn2 "with demos in $rpmhdir/."
19292 if test "${bindir}" = "${HACKDIR}" ; then
19296 if test "$do_dir_warning" = yes; then
19300 echo ' When you run "make install", the "xscreensaver",'
19301 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
19302 echo " will be installed in ${bindir}/."
19304 echo " The various graphics demos (140+ different executables) will"
19305 echo " be installed in ${HACKDIR}/."
19307 echo " If you would prefer the demos to be installed elsewhere,"
19308 echo " you should re-run configure with the --with-hackdir=DIR"
19309 echo " option. For more information, run \`./configure --help'."
19313 if test "$warning" != no; then
19314 echo '' ; echo "$warnsep" ; echo ''
19317 if test "$do_dir_warning" = no; then
19318 if test "$warning" = no; then
19321 echo "User programs will be installed in ${bindir}/"
19322 echo "Screen savers will be installed in ${HACKDIR}/"
19323 echo "Configuration will be installed in ${HACK_CONF_DIR}/"