2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="driver/subprocs.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE EGREP PERL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XML_RULE INTLTOOL_CAVES_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL GETTEXT_PACKAGE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB MKINSTALLDIRS pkg_config glib_config gtk_config gnome_config have_gnome_help xml_config gdk_pixbuf_config fortune_tmp INCLUDES PREFERRED_DEMO_PROGRAM ALL_DEMO_PROGRAMS SAVER_LIBS MOTIF_LIBS GTK_LIBS XML_LIBS JPEG_LIBS HACK_LIBS XPM_LIBS PTY_LIBS GL_LIBS GLE_LIBS XDPMS_LIBS PASSWD_LIBS INSTALL_SETUID SETUID_HACKS INSTALL_DIRS NEED_SETUID INSTALL_PAM OBJCC EXES_OSX SCRIPTS_OSX MEN_OSX PASSWD_SRCS PASSWD_OBJS XMU_SRCS XMU_OBJS XMU_LIBS SAVER_GL_SRCS SAVER_GL_OBJS SAVER_GL_LIBS LOCK_SRCS LOCK_OBJS JPEG_EXES GL_EXES GL_UTIL_EXES GL_MEN GL_KLUDGE GLE_EXES GLE_KLUDGE GNOMEHELP_Y GNOMEHELP_N HACKDIR GNOME_DATADIR GLADE_DATADIR PO_DATADIR GNOME_PANELDIR HACK_CONF_DIR GTK_EXTRA_OBJS APPDEFAULTS DEPEND DEPEND_FLAGS DEPEND_DEFINES LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --libdir=DIR object code libraries [EPREFIX/lib]
821 --includedir=DIR C header files [PREFIX/include]
822 --x-includes=DIR X include files are in DIR
823 --x-libraries=DIR X library files are in DIR
824 --mandir=DIR man documentation [PREFIX/man]
830 --x-includes=DIR X include files are in DIR
831 --x-libraries=DIR X library files are in DIR
834 --build=BUILD configure for building on BUILD [guessed]
835 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 if test -n "$ac_init_help"; then
844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 Screen locking options:
850 --enable-locking Compile in support for locking the display.
851 --disable-locking Do not allow locking at all.
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 Installation options:
858 --with-hackdir=DIR Where to install the hundreds of demo executables.
859 Default: `PREFIX/lib/xscreensaver/'
860 --with-configdir=DIR Where to install the data files that describe each
861 of the display modes to the GUI.
862 Default: `GNOMEPREFIX/control-center/screensavers/'
863 or `PREFIX/lib/xscreensaver/config/', depending on
864 whether GNOME is available.
866 Except where noted, all of the --with options below can also take a
867 directory argument: for example, `--with-motif=/opt/Motif'. That would
868 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
869 to be added to the -L list, assuming those directories exist.
871 By default, support for each of these options will be built in, if the
872 relevant library routines exist. At run time, they will then be used
873 only if the X server being used supports them. Each --with option has
874 a corresponding --without option, to override building support for them
877 Screen blanking and idle-detection options:
879 --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.
880 --with-mit-ext Include support for the MIT-SCREEN-SAVER extension.
881 --with-xidle-ext Include support for the XIDLE extension.
882 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.
883 --with-dpms-ext Include support for the DPMS extension.
884 --with-xinerama-ext Include support for the XINERAMA extension.
885 --with-xf86vmode-ext Include support for XFree86 virtual screens.
886 --with-xf86gamma-ext Include support for XFree86 gamma fading.
887 --with-randr-ext Include support for the X Resize+Rotate extension.
888 --with-proc-interrupts Include support for consulting the /proc/interrupts
889 file to notice keyboard activity.
890 --with-pam Include support for PAM (Pluggable Auth Modules.)
891 --with-kerberos Include support for Kerberos authentication.
892 --with-shadow Include support for shadow password authentication.
893 --with-passwd-helper Include support for an external password
894 verification helper program.
896 User interface options:
898 --with-motif Use the Motif toolkit for the user interface
900 --with-gtk Use the Gtk toolkit for the user interface.
901 --with-gnome Include support for the Gnome 1.x Control Center.
902 (This option is not needed with GTK 2.x / Gnome 2.x.)
904 --with-xml The XML toolkit is needed for some parts of
905 the Gtk interface. Without it, the configuration
906 interface will be much less featureful.
910 --with-gl Build those demos which depend on OpenGL.
911 --with-gle Build those demos which depend on GLE
912 (the OpenGL "extrusion" library.)
913 --with-xpm Include support for XPM files in some demos.
914 (Not needed if Pixbuf is used.)
915 --with-pixbuf Include support for the GDK-Pixbuf library in some
916 demos, which will make it possible for them to read
917 GIF, JPEG, and PNG files as well. (The path here is
918 ignored if GTK 2.x is being used.)
919 --with-jpeg Include support for the JPEG library.
920 --with-xshm-ext Include support for the Shared Memory extension.
921 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
922 --with-readdisplay Include support for the XReadDisplay extension.
924 --with-fortune=PROGRAM Some demos are able to run an external program and
925 display its text; this names the program to use by
926 default (though it can be overridden with X
927 resources.) Default is "/usr/games/fortune".
928 --with-setuid-hacks Allow some demos to be installed `setuid root'
929 (which is needed in order to ping other hosts.)
932 Some influential environment variables:
933 CC C compiler command
934 CFLAGS C compiler flags
935 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
936 nonstandard directory <lib dir>
937 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
938 headers in a nonstandard directory <include dir>
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
947 if test "$ac_init_help" = "recursive"; then
948 # If there are subdirs, report their specific --help.
950 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951 test -d $ac_dir || continue
954 if test "$ac_dir" != .; then
955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956 # A "../" for each directory in $ac_dir_suffix.
957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
959 ac_dir_suffix= ac_top_builddir=
963 .) # No --srcdir option. We are building in place.
965 if test -z "$ac_top_builddir"; then
968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
970 [\\/]* | ?:[\\/]* ) # Absolute path.
971 ac_srcdir=$srcdir$ac_dir_suffix;
972 ac_top_srcdir=$srcdir ;;
974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
977 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
979 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
980 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
981 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
982 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
985 # Check for guested configure; otherwise get Cygnus style configure.
986 if test -f $ac_srcdir/configure.gnu; then
988 $SHELL $ac_srcdir/configure.gnu --help=recursive
989 elif test -f $ac_srcdir/configure; then
991 $SHELL $ac_srcdir/configure --help=recursive
992 elif test -f $ac_srcdir/configure.ac ||
993 test -f $ac_srcdir/configure.in; then
997 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003 test -n "$ac_init_help" && exit 0
1004 if $ac_init_version; then
1007 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1008 Free Software Foundation, Inc.
1009 This configure script is free software; the Free Software Foundation
1010 gives unlimited permission to copy, distribute and modify it.
1016 This file contains any messages produced by compilers while
1017 running configure, to aid debugging if configure makes a mistake.
1019 It was created by $as_me, which was
1020 generated by GNU Autoconf 2.57. Invocation command line was
1031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1038 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1040 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1041 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1043 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1044 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1045 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1046 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054 test -z "$as_dir" && as_dir=.
1055 echo "PATH: $as_dir"
1070 # Keep a trace of the command line.
1071 # Strip out --no-create and --no-recursion so they do not pile up.
1072 # Strip out --silent because we don't want to record it for future runs.
1073 # Also quote any args containing shell meta-characters.
1074 # Make two passes to allow for proper duplicate-argument suppression.
1079 ac_must_keep_next=false
1085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1089 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1090 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1093 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1095 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1096 if test $ac_must_keep_next = true; then
1097 ac_must_keep_next=false # Got value, back to normal.
1100 *=* | --config-cache | -C | -disable-* | --disable-* \
1101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1103 | -with-* | --with-* | -without-* | --without-* | --x)
1104 case "$ac_configure_args0 " in
1105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108 -* ) ac_must_keep_next=true ;;
1111 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1112 # Get rid of the leading space.
1118 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1119 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1121 # When interrupted or exit'd, cleanup temporary files, and complete
1122 # config.log. We remove comments because anyway the quotes in there
1123 # would cause problems or look ugly.
1124 # WARNING: Be sure not to use single quotes in there, as some shells,
1125 # such as our DU 5.0 friend, will then `close' the trap.
1126 trap 'exit_status=$?
1127 # Save into config.log some information that might help in debugging.
1132 ## ---------------- ##
1133 ## Cache variables. ##
1134 ## ---------------- ##
1137 # The following way of writing the cache mishandles newlines in values,
1140 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155 ## ----------------- ##
1156 ## Output variables. ##
1157 ## ----------------- ##
1160 for ac_var in $ac_subst_vars
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -n "$ac_subst_files"; then
1174 for ac_var in $ac_subst_files
1176 eval ac_val=$`echo $ac_var`
1177 echo "$ac_var='"'"'$ac_val'"'"'"
1182 if test -s confdefs.h; then
1189 sed "/^$/d" confdefs.h | sort
1192 test "$ac_signal" != 0 &&
1193 echo "$as_me: caught signal $ac_signal"
1194 echo "$as_me: exit $exit_status"
1196 rm -f core core.* *.core &&
1197 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1200 for ac_signal in 1 2 13 15; do
1201 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1206 rm -rf conftest* confdefs.h
1207 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210 # Predefined preprocessor variables.
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_NAME "$PACKAGE_NAME"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_STRING "$PACKAGE_STRING"
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237 # Let the site file select an alternate cache file if it wants to.
1238 # Prefer explicitly selected file to automatically selected ones.
1239 if test -z "$CONFIG_SITE"; then
1240 if test "x$prefix" != xNONE; then
1241 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1243 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246 for ac_site_file in $CONFIG_SITE; do
1247 if test -r "$ac_site_file"; then
1248 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1249 echo "$as_me: loading site script $ac_site_file" >&6;}
1250 sed 's/^/| /' "$ac_site_file" >&5
1255 if test -r "$cache_file"; then
1256 # Some versions of bash will fail to source /dev/null (special
1257 # files actually), so we avoid doing that.
1258 if test -f "$cache_file"; then
1259 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1260 echo "$as_me: loading cache $cache_file" >&6;}
1262 [\\/]* | ?:[\\/]* ) . $cache_file;;
1263 *) . ./$cache_file;;
1267 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1268 echo "$as_me: creating cache $cache_file" >&6;}
1272 # Check that the precious variables saved in the cache have kept the same
1274 ac_cache_corrupted=false
1275 for ac_var in `(set) 2>&1 |
1276 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1277 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1278 eval ac_new_set=\$ac_env_${ac_var}_set
1279 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1280 eval ac_new_val="\$ac_env_${ac_var}_value"
1281 case $ac_old_set,$ac_new_set in
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1284 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1287 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1288 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1289 ac_cache_corrupted=: ;;
1292 if test "x$ac_old_val" != "x$ac_new_val"; then
1293 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1294 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1295 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1296 echo "$as_me: former value: $ac_old_val" >&2;}
1297 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1298 echo "$as_me: current value: $ac_new_val" >&2;}
1299 ac_cache_corrupted=:
1302 # Pass precious variables to config.status.
1303 if test "$ac_new_set" = set; then
1305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1306 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1307 *) ac_arg=$ac_var=$ac_new_val ;;
1309 case " $ac_configure_args " in
1310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1311 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1315 if $ac_cache_corrupted; then
1316 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1317 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1318 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1319 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1320 { (exit 1); exit 1; }; }
1324 ac_cpp='$CPP $CPPFLAGS'
1325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1347 ac_config_headers="$ac_config_headers config.h"
1350 echo "current directory: `pwd`"
1351 echo "command line was: $0 $@"
1354 # After checking to see that --srcdir is correct (which AC_INIT does)
1355 # check for some random other files that come later in the tar file,
1356 # to make sure everything is here.
1358 for d in driver utils hacks hacks/glx ; do
1359 f=$srcdir/$d/Makefile.in
1360 if test \! -r $f ; then
1362 echo "ERROR: The package is incomplete: $f does not exist."
1363 echo " This probably means that your download was truncated."
1369 ###############################################################################
1371 # Function to figure out how to run the compiler.
1373 ###############################################################################
1378 ###############################################################################
1380 # Functions to figure out how to disable // comments in ANSI C code.
1382 # (With recent gcc, this is done with "-std=c89". With older gcc, this
1383 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
1384 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
1385 # so much for compatibility!)
1387 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
1388 # declarations preceed statements, without resorting to "-pedantic".
1389 # This means that there is no way to get gcc3 to issue warnings that
1390 # ensure that your code complies with the ANSI/ISO C89 standard, without
1391 # also drowning in totally useless warnings. Thank you master may I
1394 # So, I give up, let's just use -pedantic.
1396 ###############################################################################
1403 ###############################################################################
1405 # Function to figure out how to turn off Objective C on MacOS X.
1406 # (We have to do this to work around an Apple-specific gcc bug.)
1408 ###############################################################################
1415 ###############################################################################
1417 # Function to figure out how to create directory trees.
1419 ###############################################################################
1424 ###############################################################################
1426 # Function to check whether gettimeofday() exists, and how to call it.
1427 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
1429 ###############################################################################
1434 ###############################################################################
1436 # Function to find perl5 (defines PERL and PERL_VERSION.)
1438 ###############################################################################
1440 # M4 sucks!! perl sucks too!!
1442 perl_version_cmd='print $]'
1448 ###############################################################################
1450 # Function to demand "bc". Losers.
1452 ###############################################################################
1456 ###############################################################################
1458 # Functions to check how to do ICMP PING requests.
1460 ###############################################################################
1467 ###############################################################################
1469 # Functions to check for various X11 crap.
1471 ###############################################################################
1473 # Try and find the app-defaults directory.
1474 # It sucks that autoconf doesn't do this already...
1486 # Random special-cases for X on certain pathological OSes.
1487 # You know who you are.
1493 ###############################################################################
1495 # Some utility functions to make checking for X things easier.
1497 ###############################################################################
1499 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
1503 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
1507 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
1512 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
1513 # Use this sparingly; it probably doesn't work very well on X programs.
1517 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
1518 # (But not the -L directories!)
1524 # Usage: HANDLE_X_PATH_ARG([variable_name],
1525 # [--command-line-option],
1526 # [descriptive string])
1528 # All of the --with options take three forms:
1530 # --with-foo (or --with-foo=yes)
1531 # --without-foo (or --with-foo=no)
1534 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
1535 # a directory (string beginning with a slash) it checks to see whether
1536 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
1543 ###############################################################################
1544 ###############################################################################
1546 # End of function definitions. Now start actually executing stuff.
1548 ###############################################################################
1549 ###############################################################################
1551 # random compiler setup
1553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1554 if test -f $ac_dir/install-sh; then
1556 ac_install_sh="$ac_aux_dir/install-sh -c"
1558 elif test -f $ac_dir/install.sh; then
1560 ac_install_sh="$ac_aux_dir/install.sh -c"
1562 elif test -f $ac_dir/shtool; then
1564 ac_install_sh="$ac_aux_dir/shtool install -c"
1568 if test -z "$ac_aux_dir"; then
1569 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1570 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1571 { (exit 1); exit 1; }; }
1573 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1574 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1575 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577 # Make sure we can run config.sub.
1578 $ac_config_sub sun4 >/dev/null 2>&1 ||
1579 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1580 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1581 { (exit 1); exit 1; }; }
1583 echo "$as_me:$LINENO: checking build system type" >&5
1584 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1585 if test "${ac_cv_build+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 ac_cv_build_alias=$build_alias
1589 test -z "$ac_cv_build_alias" &&
1590 ac_cv_build_alias=`$ac_config_guess`
1591 test -z "$ac_cv_build_alias" &&
1592 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1593 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1594 { (exit 1); exit 1; }; }
1595 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1596 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1597 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1598 { (exit 1); exit 1; }; }
1601 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1602 echo "${ECHO_T}$ac_cv_build" >&6
1604 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1605 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1606 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609 echo "$as_me:$LINENO: checking host system type" >&5
1610 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1611 if test "${ac_cv_host+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 ac_cv_host_alias=$host_alias
1615 test -z "$ac_cv_host_alias" &&
1616 ac_cv_host_alias=$ac_cv_build_alias
1617 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1624 echo "${ECHO_T}$ac_cv_host" >&6
1626 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633 ac_cpp='$CPP $CPPFLAGS'
1634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1637 if test -n "$ac_tool_prefix"; then
1638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 if test -n "$CC"; then
1646 ac_cv_prog_CC="$CC" # Let the user override the test.
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 test -z "$as_dir" && as_dir=.
1653 for ac_exec_ext in '' $ac_executable_extensions; do
1654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 if test -n "$CC"; then
1666 echo "$as_me:$LINENO: result: $CC" >&5
1667 echo "${ECHO_T}$CC" >&6
1669 echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1674 if test -z "$ac_cv_prog_CC"; then
1676 # Extract the first word of "gcc", so it can be a program name with args.
1677 set dummy gcc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 if test -n "$ac_ct_CC"; then
1684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 test -z "$as_dir" && as_dir=.
1691 for ac_exec_ext in '' $ac_executable_extensions; do
1692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693 ac_cv_prog_ac_ct_CC="gcc"
1694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1703 if test -n "$ac_ct_CC"; then
1704 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1705 echo "${ECHO_T}$ac_ct_CC" >&6
1707 echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1716 if test -z "$CC"; then
1717 if test -n "$ac_tool_prefix"; then
1718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1719 set dummy ${ac_tool_prefix}cc; ac_word=$2
1720 echo "$as_me:$LINENO: checking for $ac_word" >&5
1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722 if test "${ac_cv_prog_CC+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 if test -n "$CC"; then
1726 ac_cv_prog_CC="$CC" # Let the user override the test.
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 ac_cv_prog_CC="${ac_tool_prefix}cc"
1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 if test -n "$CC"; then
1746 echo "$as_me:$LINENO: result: $CC" >&5
1747 echo "${ECHO_T}$CC" >&6
1749 echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1754 if test -z "$ac_cv_prog_CC"; then
1756 # Extract the first word of "cc", so it can be a program name with args.
1757 set dummy cc; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 if test -n "$ac_ct_CC"; then
1764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_ac_ct_CC="cc"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1783 if test -n "$ac_ct_CC"; then
1784 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1785 echo "${ECHO_T}$ac_ct_CC" >&6
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1797 if test -z "$CC"; then
1798 # Extract the first word of "cc", so it can be a program name with args.
1799 set dummy cc; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 if test -n "$CC"; then
1806 ac_cv_prog_CC="$CC" # Let the user override the test.
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1817 ac_prog_rejected=yes
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 if test $ac_prog_rejected = yes; then
1828 # We found a bogon in the path, so make sure we never use it.
1829 set dummy $ac_cv_prog_CC
1831 if test $# != 0; then
1832 # We chose a different compiler from the bogus one.
1833 # However, it has the same basename, so the bogon will be chosen
1834 # first if we set CC to just the basename; use the full file name.
1836 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1842 if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844 echo "${ECHO_T}$CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1851 if test -z "$CC"; then
1852 if test -n "$ac_tool_prefix"; then
1855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$CC"; then
1863 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 if test -n "$CC"; then
1883 echo "$as_me:$LINENO: result: $CC" >&5
1884 echo "${ECHO_T}$CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1890 test -n "$CC" && break
1893 if test -z "$CC"; then
1897 # Extract the first word of "$ac_prog", so it can be a program name with args.
1898 set dummy $ac_prog; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$ac_ct_CC"; then
1905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_ac_ct_CC="$ac_prog"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1924 if test -n "$ac_ct_CC"; then
1925 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1926 echo "${ECHO_T}$ac_ct_CC" >&6
1928 echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1932 test -n "$ac_ct_CC" && break
1941 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: no acceptable C compiler found in \$PATH
1944 See \`config.log' for more details." >&2;}
1945 { (exit 1); exit 1; }; }
1947 # Provide some information about the compiler.
1948 echo "$as_me:$LINENO:" \
1949 "checking for C compiler version" >&5
1950 ac_compiler=`set X $ac_compile; echo $2`
1951 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1952 (eval $ac_compiler --version </dev/null >&5) 2>&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1957 (eval $ac_compiler -v </dev/null >&5) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1962 (eval $ac_compiler -V </dev/null >&5) 2>&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }
1967 cat >conftest.$ac_ext <<_ACEOF
1968 #line $LINENO "configure"
1971 cat confdefs.h >>conftest.$ac_ext
1972 cat >>conftest.$ac_ext <<_ACEOF
1973 /* end confdefs.h. */
1983 ac_clean_files_save=$ac_clean_files
1984 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1985 # Try to create an executable without -o first, disregard a.out.
1986 # It will help us diagnose broken compilers, and finding out an intuition
1988 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1989 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1990 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1991 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1992 (eval $ac_link_default) 2>&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }; then
1996 # Find the output, starting from the most likely. This scheme is
1997 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2000 # Be careful to initialize this variable, since it used to be cached.
2001 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2003 # b.out is created by i960 compilers.
2004 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2006 test -f "$ac_file" || continue
2008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2011 # This is the source file.
2014 # We found the default executable, but exeext='' is most
2018 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2019 # FIXME: I believe we export ac_cv_exeext for Libtool,
2020 # but it would be cool to find out if it's true. Does anybody
2021 # maintain Libtool? --akim.
2029 echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2032 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2033 See \`config.log' for more details." >&5
2034 echo "$as_me: error: C compiler cannot create executables
2035 See \`config.log' for more details." >&2;}
2036 { (exit 77); exit 77; }; }
2039 ac_exeext=$ac_cv_exeext
2040 echo "$as_me:$LINENO: result: $ac_file" >&5
2041 echo "${ECHO_T}$ac_file" >&6
2043 # Check the compiler produces executables we can run. If not, either
2044 # the compiler is broken, or we cross compile.
2045 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2046 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2047 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2048 # If not cross compiling, check that we can run a simple program.
2049 if test "$cross_compiling" != yes; then
2050 if { ac_try='./$ac_file'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; }; then
2058 if test "$cross_compiling" = maybe; then
2061 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2062 If you meant to cross compile, use \`--host'.
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'.
2066 See \`config.log' for more details." >&2;}
2067 { (exit 1); exit 1; }; }
2071 echo "$as_me:$LINENO: result: yes" >&5
2072 echo "${ECHO_T}yes" >&6
2074 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2075 ac_clean_files=$ac_clean_files_save
2076 # Check the compiler produces executables we can run. If not, either
2077 # the compiler is broken, or we cross compile.
2078 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2079 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2080 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2081 echo "${ECHO_T}$cross_compiling" >&6
2083 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2084 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2086 (eval $ac_link) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; then
2090 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2091 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2092 # work properly (i.e., refer to `conftest.exe'), while it won't with
2094 for ac_file in conftest.exe conftest conftest.*; do
2095 test -f "$ac_file" || continue
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2098 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2105 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2108 See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2112 rm -f conftest$ac_cv_exeext
2113 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2114 echo "${ECHO_T}$ac_cv_exeext" >&6
2116 rm -f conftest.$ac_ext
2117 EXEEXT=$ac_cv_exeext
2119 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2120 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2121 if test "${ac_cv_objext+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2140 rm -f conftest.o conftest.obj
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2149 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2154 echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2157 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2160 See \`config.log' for more details." >&2;}
2161 { (exit 1); exit 1; }; }
2164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2166 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2167 echo "${ECHO_T}$ac_cv_objext" >&6
2168 OBJEXT=$ac_cv_objext
2170 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #line $LINENO "configure"
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2194 rm -f conftest.$ac_objext
2195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
2200 { ac_try='test -s conftest.$ac_objext'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2213 rm -f conftest.$ac_objext conftest.$ac_ext
2214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2217 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2218 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2219 GCC=`test $ac_compiler_gnu = yes && echo yes`
2220 ac_test_CFLAGS=${CFLAGS+set}
2221 ac_save_CFLAGS=$CFLAGS
2223 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2224 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2225 if test "${ac_cv_prog_cc_g+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 cat >conftest.$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h. */
2244 rm -f conftest.$ac_objext
2245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -s conftest.$ac_objext'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2258 echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2263 rm -f conftest.$ac_objext conftest.$ac_ext
2265 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2266 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2267 if test "$ac_test_CFLAGS" = set; then
2268 CFLAGS=$ac_save_CFLAGS
2269 elif test $ac_cv_prog_cc_g = yes; then
2270 if test "$GCC" = yes; then
2276 if test "$GCC" = yes; then
2282 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2283 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2284 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 ac_cv_prog_cc_stdc=no
2289 cat >conftest.$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2298 #include <sys/types.h>
2299 #include <sys/stat.h>
2300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2301 struct buf { int x; };
2302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2303 static char *e (p, i)
2309 static char *f (char * (*g) (char **, int), char **p, ...)
2314 s = g (p, va_arg (v,int));
2318 int test (int i, double x);
2319 struct s1 {int (*f) (int a);};
2320 struct s2 {int (*f) (double a);};
2321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2327 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2332 # Don't try gcc -ansi; that turns off useful extensions and
2333 # breaks some systems' header files.
2334 # AIX -qlanglvl=ansi
2335 # Ultrix and OSF/1 -std1
2336 # HP-UX 10.20 and later -Ae
2337 # HP-UX older versions -Aa -D_HPUX_SOURCE
2338 # SVR4 -Xc -D__EXTENSIONS__
2339 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341 CC="$ac_save_CC $ac_arg"
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -s conftest.$ac_objext'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; }; then
2354 ac_cv_prog_cc_stdc=$ac_arg
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2361 rm -f conftest.$ac_objext
2363 rm -f conftest.$ac_ext conftest.$ac_objext
2368 case "x$ac_cv_prog_cc_stdc" in
2370 echo "$as_me:$LINENO: result: none needed" >&5
2371 echo "${ECHO_T}none needed" >&6 ;;
2373 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2374 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2375 CC="$CC $ac_cv_prog_cc_stdc" ;;
2378 # Some people use a C++ compiler to compile C. Since we use `exit',
2379 # in C++ we need to declare it. In case someone uses the same compiler
2380 # for both compiling C and C++ we need to have the C++ compiler decide
2381 # the declaration of exit, since it's the most demanding environment.
2382 cat >conftest.$ac_ext <<_ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 for ac_declaration in \
2401 '#include <stdlib.h>' \
2402 'extern "C" void std::exit (int) throw (); using std::exit;' \
2403 'extern "C" void std::exit (int); using std::exit;' \
2404 'extern "C" void exit (int) throw ();' \
2405 'extern "C" void exit (int);' \
2408 cat >conftest.$ac_ext <<_ACEOF
2409 #line $LINENO "configure"
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2444 rm -f conftest.$ac_objext conftest.$ac_ext
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #line $LINENO "configure"
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2461 rm -f conftest.$ac_objext
2462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463 (eval $ac_compile) 2>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2479 rm -f conftest.$ac_objext conftest.$ac_ext
2482 if test -n "$ac_declaration"; then
2483 echo '#ifdef __cplusplus' >>confdefs.h
2484 echo $ac_declaration >>confdefs.h
2485 echo '#endif' >>confdefs.h
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2495 ac_cpp='$CPP $CPPFLAGS'
2496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501 if test -z "$GCC"; then
2502 echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
2503 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6
2506 echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
2507 echo "${ECHO_T}HPUX: adding -Ae" >&6
2511 echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
2512 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6
2513 CC="$CC -qlanglvl=ansi -qhalt=e"
2517 echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
2518 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6
2523 echo "$as_me:$LINENO: result: no idea" >&5
2524 echo "${ECHO_T}no idea" >&6
2531 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2532 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2533 if test "$cross_compiling" = yes; then
2534 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2535 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2536 { (exit 1); exit 1; }; }
2538 cat >conftest.$ac_ext <<_ACEOF
2539 #line $LINENO "configure"
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h. */
2545 main(int ac, char **av) { return 0; }
2547 rm -f conftest$ac_exeext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549 (eval $ac_link) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2558 echo "$as_me:$LINENO: result: yes" >&5
2559 echo "${ECHO_T}yes" >&6
2561 echo "$as_me: program exited with status $ac_status" >&5
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2566 echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6
2568 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2569 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2570 { (exit 1); exit 1; }; }
2572 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2575 if test -n "$GCC"; then
2576 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2577 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2578 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs"
2579 OBJCC="$OBJCC -Wall"
2580 # supposedly gcc 3.4 will have "-Wdeclaration-after-statement"
2581 # and then perhaps we can do without -pedantic?
2584 *-irix5* |*-irix6.0-3* )
2585 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2586 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2587 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2590 # if test -z "$GCC"; then
2591 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2592 # CC="$CC -migrate -w0 -verbose -warnprotos"
2598 if test -n "$GCC"; then
2599 if test -n "$GCC"; then
2600 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2601 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2602 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 if ( ( gcc -E -std=c89 - </dev/null >/dev/null ) 2>&1 | \
2606 grep unrecognized >/dev/null ); then
2607 ac_cv_gcc_accepts_std=no
2609 ac_cv_gcc_accepts_std=yes
2612 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2613 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2614 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2617 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2618 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2620 # The reason that // comments are banned from xscreensaver is that gcc is
2621 # basically the only compiler in the world that supports them in C code.
2622 # All other vendors support them only in their C++ compilers, not in their
2623 # ANSI C compilers. This means that it's a portability problem: every time
2624 # these comments have snuck into the xscreensaver source code, I've gotten
2625 # complaints about it the next day. So we turn off support for them in gcc
2626 # as well to prevent them from accidentially slipping in.
2628 if test "$ac_gcc_accepts_std" = yes ; then
2630 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2631 # (That appears to be the only additional preprocessor symbol
2632 # it defines, in addition to the syntax changes it makes.)
2634 # -std=gnu89 is no good, because // comments were a GNU extension
2635 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2636 # with -std=gnu89 but not with -std=c89.)
2638 CC="$CC -std=c89 -U__STRICT_ANSI__"
2641 CC="$CC -Wp,-lang-c89"
2645 if test -n "$GCC"; then
2646 if test -n "$GCC"; then
2647 echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
2648 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6
2649 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 if ( ( gcc -E -no-cpp-precomp - </dev/null >/dev/null ) 2>&1 | \
2653 grep unrecognized >/dev/null ); then
2654 ac_cv_gcc_accepts_no_cpp_precomp=no
2656 ac_cv_gcc_accepts_no_cpp_precomp=yes
2659 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
2660 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6
2661 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
2664 if test "$ac_gcc_accepts_no_cpp_precomp" = yes ; then
2665 echo "$as_me:$LINENO: result: Disabling Objective C extensions in ANSI C code." >&5
2666 echo "${ECHO_T}Disabling Objective C extensions in ANSI C code." >&6
2667 CC="$CC -no-cpp-precomp"
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2677 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2678 # On Suns, sometimes $CPP names a directory.
2679 if test -n "$CPP" && test -d "$CPP"; then
2682 if test -z "$CPP"; then
2683 if test "${ac_cv_prog_CPP+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 # Double quotes because CPP needs to be expanded
2687 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2690 for ac_c_preproc_warn_flag in '' yes
2692 # Use a header file that comes with gcc, so configuring glibc
2693 # with a fresh cross-compiler works.
2694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2695 # <limits.h> exists even on freestanding compilers.
2696 # On the NeXT, cc -E runs the code through the compiler's parser,
2697 # not just through cpp. "Syntax error" is here to catch this case.
2698 cat >conftest.$ac_ext <<_ACEOF
2699 #line $LINENO "configure"
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2706 # include <limits.h>
2708 # include <assert.h>
2712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } >/dev/null; then
2720 if test -s conftest.err; then
2721 ac_cpp_err=$ac_c_preproc_warn_flag
2728 if test -z "$ac_cpp_err"; then
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2734 # Broken: fails on valid input.
2737 rm -f conftest.err conftest.$ac_ext
2739 # OK, works on sane cases. Now check whether non-existent headers
2740 # can be detected and how.
2741 cat >conftest.$ac_ext <<_ACEOF
2742 #line $LINENO "configure"
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2748 #include <ac_nonexistent.h>
2750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2753 grep -v '^ *+' conftest.er1 >conftest.err
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } >/dev/null; then
2758 if test -s conftest.err; then
2759 ac_cpp_err=$ac_c_preproc_warn_flag
2766 if test -z "$ac_cpp_err"; then
2767 # Broken: success on invalid input.
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2773 # Passes both tests.
2777 rm -f conftest.err conftest.$ac_ext
2780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2781 rm -f conftest.err conftest.$ac_ext
2782 if $ac_preproc_ok; then
2794 echo "$as_me:$LINENO: result: $CPP" >&5
2795 echo "${ECHO_T}$CPP" >&6
2797 for ac_c_preproc_warn_flag in '' yes
2799 # Use a header file that comes with gcc, so configuring glibc
2800 # with a fresh cross-compiler works.
2801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2802 # <limits.h> exists even on freestanding compilers.
2803 # On the NeXT, cc -E runs the code through the compiler's parser,
2804 # not just through cpp. "Syntax error" is here to catch this case.
2805 cat >conftest.$ac_ext <<_ACEOF
2806 #line $LINENO "configure"
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2813 # include <limits.h>
2815 # include <assert.h>
2819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2822 grep -v '^ *+' conftest.er1 >conftest.err
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } >/dev/null; then
2827 if test -s conftest.err; then
2828 ac_cpp_err=$ac_c_preproc_warn_flag
2835 if test -z "$ac_cpp_err"; then
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 # Broken: fails on valid input.
2844 rm -f conftest.err conftest.$ac_ext
2846 # OK, works on sane cases. Now check whether non-existent headers
2847 # can be detected and how.
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2855 #include <ac_nonexistent.h>
2857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2860 grep -v '^ *+' conftest.er1 >conftest.err
2862 cat conftest.err >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } >/dev/null; then
2865 if test -s conftest.err; then
2866 ac_cpp_err=$ac_c_preproc_warn_flag
2873 if test -z "$ac_cpp_err"; then
2874 # Broken: success on invalid input.
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2880 # Passes both tests.
2884 rm -f conftest.err conftest.$ac_ext
2887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2888 rm -f conftest.err conftest.$ac_ext
2889 if $ac_preproc_ok; then
2892 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2900 ac_cpp='$CPP $CPPFLAGS'
2901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2906 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2907 if test "${ac_cv_c_const+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 cat >conftest.$ac_ext <<_ACEOF
2911 #line $LINENO "configure"
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2921 /* FIXME: Include the comments suggested by Paul. */
2923 /* Ultrix mips cc rejects this. */
2924 typedef int charset[2];
2926 /* SunOS 4.1.1 cc rejects this. */
2927 char const *const *ccp;
2929 /* NEC SVR4.0.2 mips cc rejects this. */
2930 struct point {int x, y;};
2931 static struct point const zero = {0,0};
2932 /* AIX XL C 1.02.0.0 rejects this.
2933 It does not let you subtract one const X* pointer from another in
2934 an arm of an if-expression whose if-part is not a constant
2936 const char *g = "string";
2937 ccp = &g + (g ? g-g : 0);
2938 /* HPUX 7.0 cc rejects these. */
2941 ccp = (char const *const *) p;
2942 { /* SCO 3.2v4 cc rejects this. */
2944 char const *s = 0 ? (char *) 0 : (char const *) 0;
2948 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2950 const int *foo = &x[0];
2953 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2954 typedef const int *iptr;
2958 { /* AIX XL C 1.02.0.0 rejects this saying
2959 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2960 struct s { int j; const int *ap[3]; };
2961 struct s *b; b->j = 5;
2963 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2972 rm -f conftest.$ac_objext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974 (eval $ac_compile) 2>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -s conftest.$ac_objext'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2991 rm -f conftest.$ac_objext conftest.$ac_ext
2993 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2994 echo "${ECHO_T}$ac_cv_c_const" >&6
2995 if test $ac_cv_c_const = no; then
2997 cat >>confdefs.h <<\_ACEOF
3003 echo "$as_me:$LINENO: checking for inline" >&5
3004 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3005 if test "${ac_cv_c_inline+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 for ac_kw in inline __inline__ __inline; do
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3019 static $ac_kw foo_t static_foo () {return 0; }
3020 $ac_kw foo_t foo () {return 0; }
3024 rm -f conftest.$ac_objext
3025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3026 (eval $ac_compile) 2>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try='test -s conftest.$ac_objext'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_c_inline=$ac_kw; break
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3042 rm -f conftest.$ac_objext conftest.$ac_ext
3046 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3047 echo "${ECHO_T}$ac_cv_c_inline" >&6
3048 case $ac_cv_c_inline in
3051 cat >>confdefs.h <<\_ACEOF
3055 *) cat >>confdefs.h <<_ACEOF
3056 #define inline $ac_cv_c_inline
3062 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3063 echo "$as_me:$LINENO: checking for bc" >&5
3064 echo $ECHO_N "checking for bc... $ECHO_C" >&6
3065 if test "$ac_bc_result" = "15" ; then
3066 echo "$as_me:$LINENO: result: yes" >&5
3067 echo "${ECHO_T}yes" >&6
3069 echo "$as_me:$LINENO: result: no" >&5
3070 echo "${ECHO_T}no" >&6
3072 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3073 part of Unix since the 1970s. Come back when your vendor
3074 has grown a clue." >&5
3075 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
3076 part of Unix since the 1970s. Come back when your vendor
3077 has grown a clue." >&2;}
3078 { (exit 1); exit 1; }; }
3082 # stuff for Makefiles
3083 # Find a good install program. We prefer a C program (faster),
3084 # so one script is as good as another. But avoid the broken or
3085 # incompatible versions:
3086 # SysV /etc/install, /usr/sbin/install
3087 # SunOS /usr/etc/install
3088 # IRIX /sbin/install
3090 # AmigaOS /C/install, which installs bootblocks on floppy discs
3091 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3092 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3093 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3094 # ./install, which can be erroneously created by make from ./install.sh.
3095 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3096 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3097 if test -z "$INSTALL"; then
3098 if test "${ac_cv_path_install+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir=.
3106 # Account for people who put trailing slashes in PATH elements.
3108 ./ | .// | /cC/* | \
3109 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3112 # OSF1 and SCO ODT 3.0 have their own names for install.
3113 # Don't use installbsd from OSF since it installs stuff as root
3115 for ac_prog in ginstall scoinst install; do
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3118 if test $ac_prog = install &&
3119 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3120 # AIX install. It has an incompatible calling convention.
3122 elif test $ac_prog = install &&
3123 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3124 # program-specific install script used by HP pwplus--don't use.
3127 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3139 if test "${ac_cv_path_install+set}" = set; then
3140 INSTALL=$ac_cv_path_install
3142 # As a last resort, use the slow shell script. We don't cache a
3143 # path for INSTALL within a source directory, because that will
3144 # break other packages using the cache if that directory is
3145 # removed, or if the path is relative.
3146 INSTALL=$ac_install_sh
3149 echo "$as_me:$LINENO: result: $INSTALL" >&5
3150 echo "${ECHO_T}$INSTALL" >&6
3152 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3153 # It thinks the first close brace ends the variable substitution.
3154 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3156 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3158 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3160 echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
3161 echo $ECHO_N "checking whether \"\${INSTALL} -d\" creates intermediate directories... $ECHO_C" >&6
3162 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 ac_cv_install_d_creates_dirs=no
3167 if mkdir conftestdir; then
3168 cd conftestdir 2>/dev/null
3169 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
3170 if test -d dir1/dir2/. ; then
3171 ac_cv_install_d_creates_dirs=yes
3178 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
3179 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
3181 if test "$ac_cv_install_d_creates_dirs" = no ; then
3182 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
3183 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
3184 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 ac_cv_mkdir_p_creates_dirs=no
3189 if mkdir conftestdir; then
3190 cd conftestdir 2>/dev/null
3191 mkdir -p dir1/dir2 >/dev/null 2>&1
3192 if test -d dir1/dir2/. ; then
3193 ac_cv_mkdir_p_creates_dirs=yes
3200 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3201 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3204 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3205 INSTALL_DIRS='${INSTALL} -d'
3206 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3207 INSTALL_DIRS='mkdir -p'
3210 INSTALL_DIRS='${INSTALL} -d'
3213 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3214 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3215 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3216 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 cat >conftest.make <<\_ACEOF
3221 @echo 'ac_maketemp="$(MAKE)"'
3223 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3224 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3225 if test -n "$ac_maketemp"; then
3226 eval ac_cv_prog_make_${ac_make}_set=yes
3228 eval ac_cv_prog_make_${ac_make}_set=no
3232 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3233 echo "$as_me:$LINENO: result: yes" >&5
3234 echo "${ECHO_T}yes" >&6
3237 echo "$as_me:$LINENO: result: no" >&5
3238 echo "${ECHO_T}no" >&6
3239 SET_MAKE="MAKE=${MAKE-make}"
3243 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3244 # That's wrong: it should be set to '${INSTALL}', so that one can
3245 # implement the "install-strip" target properly (strip executables,
3246 # but do not try to strip scripts.)
3248 INSTALL_SCRIPT='${INSTALL}'
3252 echo "$as_me:$LINENO: checking for egrep" >&5
3253 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3254 if test "${ac_cv_prog_egrep+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3258 then ac_cv_prog_egrep='grep -E'
3259 else ac_cv_prog_egrep='egrep'
3262 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3263 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3264 EGREP=$ac_cv_prog_egrep
3267 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3268 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3269 if test "${ac_cv_header_stdc+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 cat >conftest.$ac_ext <<_ACEOF
3273 #line $LINENO "configure"
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3292 rm -f conftest.$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_header_stdc=yes
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 ac_cv_header_stdc=no
3311 rm -f conftest.$ac_objext conftest.$ac_ext
3313 if test $ac_cv_header_stdc = yes; then
3314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 #line $LINENO "configure"
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 $EGREP "memchr" >/dev/null 2>&1; then
3329 ac_cv_header_stdc=no
3335 if test $ac_cv_header_stdc = yes; then
3336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3337 cat >conftest.$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3348 $EGREP "free" >/dev/null 2>&1; then
3351 ac_cv_header_stdc=no
3357 if test $ac_cv_header_stdc = yes; then
3358 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3359 if test "$cross_compiling" = yes; then
3362 cat >conftest.$ac_ext <<_ACEOF
3363 #line $LINENO "configure"
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3370 #if ((' ' & 0x0FF) == 0x020)
3371 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3372 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3374 # define ISLOWER(c) \
3375 (('a' <= (c) && (c) <= 'i') \
3376 || ('j' <= (c) && (c) <= 'r') \
3377 || ('s' <= (c) && (c) <= 'z'))
3378 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3381 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3386 for (i = 0; i < 256; i++)
3387 if (XOR (islower (i), ISLOWER (i))
3388 || toupper (i) != TOUPPER (i))
3393 rm -f conftest$ac_exeext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3395 (eval $ac_link) 2>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3406 echo "$as_me: program exited with status $ac_status" >&5
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3411 ac_cv_header_stdc=no
3413 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3417 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3418 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3419 if test $ac_cv_header_stdc = yes; then
3421 cat >>confdefs.h <<\_ACEOF
3422 #define STDC_HEADERS 1
3427 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3437 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3438 inttypes.h stdint.h unistd.h
3440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3441 echo "$as_me:$LINENO: checking for $ac_header" >&5
3442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 cat >conftest.$ac_ext <<_ACEOF
3447 #line $LINENO "configure"
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 $ac_includes_default
3455 #include <$ac_header>
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -s conftest.$ac_objext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3469 eval "$as_ac_Header=yes"
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 eval "$as_ac_Header=no"
3476 rm -f conftest.$ac_objext conftest.$ac_ext
3478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3481 cat >>confdefs.h <<_ACEOF
3482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3491 for ac_header in unistd.h
3493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495 echo "$as_me:$LINENO: checking for $ac_header" >&5
3496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3503 # Is the header compilable?
3504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3506 cat >conftest.$ac_ext <<_ACEOF
3507 #line $LINENO "configure"
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 $ac_includes_default
3514 #include <$ac_header>
3516 rm -f conftest.$ac_objext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_header_compiler=yes
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 ac_header_compiler=no
3535 rm -f conftest.$ac_objext conftest.$ac_ext
3536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3537 echo "${ECHO_T}$ac_header_compiler" >&6
3539 # Is the header present?
3540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3542 cat >conftest.$ac_ext <<_ACEOF
3543 #line $LINENO "configure"
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include <$ac_header>
3551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3567 if test -z "$ac_cpp_err"; then
3568 ac_header_preproc=yes
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 ac_header_preproc=no
3575 rm -f conftest.err conftest.$ac_ext
3576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3577 echo "${ECHO_T}$ac_header_preproc" >&6
3579 # So? What about this header?
3580 case $ac_header_compiler:$ac_header_preproc in
3582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3588 ## ------------------------------------ ##
3589 ## Report this to bug-autoconf@gnu.org. ##
3590 ## ------------------------------------ ##
3593 sed "s/^/$as_me: WARNING: /" >&2
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3604 ## ------------------------------------ ##
3605 ## Report this to bug-autoconf@gnu.org. ##
3606 ## ------------------------------------ ##
3609 sed "s/^/$as_me: WARNING: /" >&2
3612 echo "$as_me:$LINENO: checking for $ac_header" >&5
3613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 eval "$as_ac_Header=$ac_header_preproc"
3619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3624 cat >>confdefs.h <<_ACEOF
3625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3632 echo "$as_me:$LINENO: checking for mode_t" >&5
3633 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3634 if test "${ac_cv_type_mode_t+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line $LINENO "configure"
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_includes_default
3650 if (sizeof (mode_t))
3656 rm -f conftest.$ac_objext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_cv_type_mode_t=yes
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 ac_cv_type_mode_t=no
3675 rm -f conftest.$ac_objext conftest.$ac_ext
3677 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3678 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3679 if test $ac_cv_type_mode_t = yes; then
3683 cat >>confdefs.h <<_ACEOF
3689 echo "$as_me:$LINENO: checking for pid_t" >&5
3690 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3691 if test "${ac_cv_type_pid_t+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 cat >conftest.$ac_ext <<_ACEOF
3695 #line $LINENO "configure"
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 $ac_includes_default
3713 rm -f conftest.$ac_objext
3714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715 (eval $ac_compile) 2>&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -s conftest.$ac_objext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_type_pid_t=yes
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3732 rm -f conftest.$ac_objext conftest.$ac_ext
3734 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3735 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3736 if test $ac_cv_type_pid_t = yes; then
3740 cat >>confdefs.h <<_ACEOF
3746 echo "$as_me:$LINENO: checking for size_t" >&5
3747 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3748 if test "${ac_cv_type_size_t+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 cat >conftest.$ac_ext <<_ACEOF
3752 #line $LINENO "configure"
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 $ac_includes_default
3764 if (sizeof (size_t))
3770 rm -f conftest.$ac_objext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -s conftest.$ac_objext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3782 ac_cv_type_size_t=yes
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 ac_cv_type_size_t=no
3789 rm -f conftest.$ac_objext conftest.$ac_ext
3791 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3792 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3793 if test $ac_cv_type_size_t = yes; then
3797 cat >>confdefs.h <<_ACEOF
3798 #define size_t unsigned
3803 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3804 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3805 if test "${ac_cv_type_signal+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 cat >conftest.$ac_ext <<_ACEOF
3809 #line $LINENO "configure"
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 #include <sys/types.h>
3821 extern "C" void (*signal (int, void (*)(int)))(int);
3823 void (*signal ()) ();
3834 rm -f conftest.$ac_objext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3836 (eval $ac_compile) 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -s conftest.$ac_objext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 ac_cv_type_signal=void
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_cv_type_signal=int
3853 rm -f conftest.$ac_objext conftest.$ac_ext
3855 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3856 echo "${ECHO_T}$ac_cv_type_signal" >&6
3858 cat >>confdefs.h <<_ACEOF
3859 #define RETSIGTYPE $ac_cv_type_signal
3863 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3864 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3865 if test "${ac_cv_header_time+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 cat >conftest.$ac_ext <<_ACEOF
3869 #line $LINENO "configure"
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 #include <sys/types.h>
3876 #include <sys/time.h>
3882 if ((struct tm *) 0)
3888 rm -f conftest.$ac_objext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3890 (eval $ac_compile) 2>&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_header_time=yes
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 ac_cv_header_time=no
3907 rm -f conftest.$ac_objext conftest.$ac_ext
3909 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3910 echo "${ECHO_T}$ac_cv_header_time" >&6
3911 if test $ac_cv_header_time = yes; then
3913 cat >>confdefs.h <<\_ACEOF
3914 #define TIME_WITH_SYS_TIME 1
3919 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3920 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3921 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 cat >conftest.$ac_ext <<_ACEOF
3925 #line $LINENO "configure"
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3931 #include <sys/types.h>
3932 #include <sys/wait.h>
3934 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3937 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3945 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -s conftest.$ac_objext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_cv_header_sys_wait_h=yes
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ac_cv_header_sys_wait_h=no
3969 rm -f conftest.$ac_objext conftest.$ac_ext
3971 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3972 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3973 if test $ac_cv_header_sys_wait_h = yes; then
3975 cat >>confdefs.h <<\_ACEOF
3976 #define HAVE_SYS_WAIT_H 1
3987 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3988 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3989 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3990 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 cat >conftest.$ac_ext <<_ACEOF
3995 #line $LINENO "configure"
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4001 #include <sys/types.h>
4013 rm -f conftest.$ac_objext
4014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 eval "$as_ac_Header=yes"
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 eval "$as_ac_Header=no"
4032 rm -f conftest.$ac_objext conftest.$ac_ext
4034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4037 cat >>confdefs.h <<_ACEOF
4038 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4041 ac_header_dirent=$ac_hdr; break
4045 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4046 if test $ac_header_dirent = dirent.h; then
4047 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4049 if test "${ac_cv_search_opendir+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 ac_func_search_save_LIBS=$LIBS
4053 ac_cv_search_opendir=no
4054 cat >conftest.$ac_ext <<_ACEOF
4055 #line $LINENO "configure"
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4062 /* Override any gcc2 internal prototype to avoid an error. */
4066 /* We use char because int might match the return type of a gcc2
4067 builtin and then its argument prototype would still apply. */
4077 rm -f conftest.$ac_objext conftest$ac_exeext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079 (eval $ac_link) 2>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -s conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_search_opendir="none required"
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4096 if test "$ac_cv_search_opendir" = no; then
4097 for ac_lib in dir; do
4098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4099 cat >conftest.$ac_ext <<_ACEOF
4100 #line $LINENO "configure"
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4107 /* Override any gcc2 internal prototype to avoid an error. */
4111 /* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4122 rm -f conftest.$ac_objext conftest$ac_exeext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4124 (eval $ac_link) 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -s conftest$ac_exeext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 ac_cv_search_opendir="-l$ac_lib"
4137 echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4144 LIBS=$ac_func_search_save_LIBS
4146 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4147 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4148 if test "$ac_cv_search_opendir" != no; then
4149 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4154 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4156 if test "${ac_cv_search_opendir+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 ac_func_search_save_LIBS=$LIBS
4160 ac_cv_search_opendir=no
4161 cat >conftest.$ac_ext <<_ACEOF
4162 #line $LINENO "configure"
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4169 /* Override any gcc2 internal prototype to avoid an error. */
4173 /* We use char because int might match the return type of a gcc2
4174 builtin and then its argument prototype would still apply. */
4184 rm -f conftest.$ac_objext conftest$ac_exeext
4185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4186 (eval $ac_link) 2>&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_search_opendir="none required"
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4203 if test "$ac_cv_search_opendir" = no; then
4205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4206 cat >conftest.$ac_ext <<_ACEOF
4207 #line $LINENO "configure"
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4214 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231 (eval $ac_link) 2>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -s conftest$ac_exeext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 ac_cv_search_opendir="-l$ac_lib"
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4251 LIBS=$ac_func_search_save_LIBS
4253 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4254 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4255 if test "$ac_cv_search_opendir" != no; then
4256 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4262 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4263 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4264 if test "${ac_cv_gettimeofday_args+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 cat >conftest.$ac_ext <<_ACEOF
4268 #line $LINENO "configure"
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4275 #include <sys/time.h>
4279 struct timeval tv; struct timezone tzp;
4280 gettimeofday(&tv, &tzp);
4285 rm -f conftest.$ac_objext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287 (eval $ac_compile) 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -s conftest.$ac_objext'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 ac_gettimeofday_args=2
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 cat >conftest.$ac_ext <<_ACEOF
4303 #line $LINENO "configure"
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4310 #include <sys/time.h>
4314 struct timeval tv; gettimeofday(&tv);
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4331 ac_gettimeofday_args=1
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4336 ac_gettimeofday_args=0
4338 rm -f conftest.$ac_objext conftest.$ac_ext
4340 rm -f conftest.$ac_objext conftest.$ac_ext
4341 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4344 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4345 if test "$ac_gettimeofday_args" = 1 ; then
4346 cat >>confdefs.h <<\_ACEOF
4347 #define HAVE_GETTIMEOFDAY 1
4350 echo "$as_me:$LINENO: result: one argument" >&5
4351 echo "${ECHO_T}one argument" >&6
4352 elif test "$ac_gettimeofday_args" = 2 ; then
4353 cat >>confdefs.h <<\_ACEOF
4354 #define HAVE_GETTIMEOFDAY 1
4357 cat >>confdefs.h <<\_ACEOF
4358 #define GETTIMEOFDAY_TWO_ARGS 1
4361 echo "$as_me:$LINENO: result: two arguments" >&5
4362 echo "${ECHO_T}two arguments" >&6
4364 echo "$as_me:$LINENO: result: unknown" >&5
4365 echo "${ECHO_T}unknown" >&6
4377 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4380 echo "$as_me:$LINENO: checking for $ac_func" >&5
4381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4382 if eval "test \"\${$as_ac_var+set}\" = set"; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 cat >conftest.$ac_ext <<_ACEOF
4386 #line $LINENO "configure"
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4392 /* System header to define __stub macros and hopefully few prototypes,
4393 which can conflict with char $ac_func (); below.
4394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4395 <limits.h> exists even on freestanding compilers. */
4397 # include <limits.h>
4399 # include <assert.h>
4401 /* Override any gcc2 internal prototype to avoid an error. */
4406 /* We use char because int might match the return type of a gcc2
4407 builtin and then its argument prototype would still apply. */
4409 /* The GNU C library defines this for functions which it implements
4410 to always fail with ENOSYS. Some functions are actually named
4411 something starting with __ and the normal name is an alias. */
4412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4415 char (*f) () = $ac_func;
4424 return f != $ac_func;
4429 rm -f conftest.$ac_objext conftest$ac_exeext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4431 (eval $ac_link) 2>&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -s conftest$ac_exeext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 eval "$as_ac_var=yes"
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 eval "$as_ac_var=no"
4448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4452 if test `eval echo '${'$as_ac_var'}'` = yes; then
4453 cat >>confdefs.h <<_ACEOF
4454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4464 for ac_func in sigaction syslog realpath setrlimit
4466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4467 echo "$as_me:$LINENO: checking for $ac_func" >&5
4468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4469 if eval "test \"\${$as_ac_var+set}\" = set"; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 cat >conftest.$ac_ext <<_ACEOF
4473 #line $LINENO "configure"
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 /* System header to define __stub macros and hopefully few prototypes,
4480 which can conflict with char $ac_func (); below.
4481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482 <limits.h> exists even on freestanding compilers. */
4484 # include <limits.h>
4486 # include <assert.h>
4488 /* Override any gcc2 internal prototype to avoid an error. */
4493 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */
4496 /* The GNU C library defines this for functions which it implements
4497 to always fail with ENOSYS. Some functions are actually named
4498 something starting with __ and the normal name is an alias. */
4499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4502 char (*f) () = $ac_func;
4511 return f != $ac_func;
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518 (eval $ac_link) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 eval "$as_ac_var=yes"
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 eval "$as_ac_var=no"
4535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4539 if test `eval echo '${'$as_ac_var'}'` = yes; then
4540 cat >>confdefs.h <<_ACEOF
4541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4547 echo "$as_me:$LINENO: checking for struct icmp" >&5
4548 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
4549 if test "${ac_cv_have_icmp+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 cat >conftest.$ac_ext <<_ACEOF
4553 #line $LINENO "configure"
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4566 #include <sys/types.h>
4567 #include <sys/time.h>
4568 #include <sys/ipc.h>
4569 #include <sys/shm.h>
4570 #include <sys/socket.h>
4571 #include <netinet/in_systm.h>
4572 #include <netinet/in.h>
4573 #include <netinet/ip.h>
4574 #include <netinet/ip_icmp.h>
4575 #include <netinet/udp.h>
4576 #include <arpa/inet.h>
4583 struct sockaddr_in si;
4585 i.icmp_type = ICMP_ECHO;
4590 si.sin_family = AF_INET;
4591 #if defined(__DECC) || defined(_IP_VHL)
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4620 rm -f conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
4623 echo "${ECHO_T}$ac_cv_have_icmp" >&6
4624 if test "$ac_cv_have_icmp" = yes ; then
4625 cat >>confdefs.h <<\_ACEOF
4630 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
4631 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
4632 if test "${ac_cv_have_icmphdr+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 cat >conftest.$ac_ext <<_ACEOF
4636 #line $LINENO "configure"
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4649 #include <sys/types.h>
4650 #include <sys/time.h>
4651 #include <sys/ipc.h>
4652 #include <sys/shm.h>
4653 #include <sys/socket.h>
4654 #include <netinet/in_systm.h>
4655 #include <netinet/in.h>
4656 #include <netinet/ip.h>
4657 #include <netinet/ip_icmp.h>
4658 #include <netinet/udp.h>
4659 #include <arpa/inet.h>
4666 struct sockaddr_in si;
4672 i.un.echo.sequence = 0;
4673 si.sin_family = AF_INET;
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_have_icmphdr=yes
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4696 ac_cv_have_icmphdr=no
4698 rm -f conftest.$ac_objext conftest.$ac_ext
4700 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
4701 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
4702 if test "$ac_cv_have_icmphdr" = yes ; then
4703 cat >>confdefs.h <<\_ACEOF
4704 #define HAVE_ICMPHDR 1
4710 for ac_header in crypt.h sys/select.h
4712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4714 echo "$as_me:$LINENO: checking for $ac_header" >&5
4715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4722 # Is the header compilable?
4723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4725 cat >conftest.$ac_ext <<_ACEOF
4726 #line $LINENO "configure"
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 $ac_includes_default
4733 #include <$ac_header>
4735 rm -f conftest.$ac_objext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -s conftest.$ac_objext'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; }; then
4747 ac_header_compiler=yes
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4752 ac_header_compiler=no
4754 rm -f conftest.$ac_objext conftest.$ac_ext
4755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4756 echo "${ECHO_T}$ac_header_compiler" >&6
4758 # Is the header present?
4759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4761 cat >conftest.$ac_ext <<_ACEOF
4762 #line $LINENO "configure"
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 #include <$ac_header>
4770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null; then
4778 if test -s conftest.err; then
4779 ac_cpp_err=$ac_c_preproc_warn_flag
4786 if test -z "$ac_cpp_err"; then
4787 ac_header_preproc=yes
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 ac_header_preproc=no
4794 rm -f conftest.err conftest.$ac_ext
4795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4796 echo "${ECHO_T}$ac_header_preproc" >&6
4798 # So? What about this header?
4799 case $ac_header_compiler:$ac_header_preproc in
4801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4807 ## ------------------------------------ ##
4808 ## Report this to bug-autoconf@gnu.org. ##
4809 ## ------------------------------------ ##
4812 sed "s/^/$as_me: WARNING: /" >&2
4815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4823 ## ------------------------------------ ##
4824 ## Report this to bug-autoconf@gnu.org. ##
4825 ## ------------------------------------ ##
4828 sed "s/^/$as_me: WARNING: /" >&2
4831 echo "$as_me:$LINENO: checking for $ac_header" >&5
4832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 eval "$as_ac_Header=$ac_header_preproc"
4838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4843 cat >>confdefs.h <<_ACEOF
4844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4851 for ac_prog in perl5 perl
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857 if test "${ac_cv_path_PERL+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4872 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 PERL=$ac_cv_path_PERL
4884 if test -n "$PERL"; then
4885 echo "$as_me:$LINENO: result: $PERL" >&5
4886 echo "${ECHO_T}$PERL" >&6
4888 echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6
4892 test -n "$PERL" && break
4895 if test -z "$PERL" ; then
4898 echo "$as_me:$LINENO: checking perl version" >&5
4899 echo $ECHO_N "checking perl version... $ECHO_C" >&6
4900 if test "${ac_cv_perl_version+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
4905 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
4906 echo "${ECHO_T}$ac_cv_perl_version" >&6
4907 PERL_VERSION=$ac_cv_perl_version
4911 if test -z "$PERL" ; then
4912 # don't let it be blank...
4916 echo "$as_me:$LINENO: checking for X" >&5
4917 echo $ECHO_N "checking for X... $ECHO_C" >&6
4920 # Check whether --with-x or --without-x was given.
4921 if test "${with_x+set}" = set; then
4925 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4926 if test "x$with_x" = xno; then
4927 # The user explicitly disabled X.
4930 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4931 # Both variables are already set.
4934 if test "${ac_cv_have_x+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 # One or both of the vars are not set, and there is no cached value.
4938 ac_x_includes=no ac_x_libraries=no
4940 if mkdir conftest.dir; then
4942 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4943 cat >Imakefile <<'_ACEOF'
4945 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4947 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4948 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4949 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4950 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4951 for ac_extension in a so sl; do
4952 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4953 test -f $ac_im_libdir/libX11.$ac_extension; then
4954 ac_im_usrlibdir=$ac_im_libdir; break
4957 # Screen out bogus values from the imake configuration. They are
4958 # bogus both because they are the default anyway, and because
4959 # using them would break gcc on systems where it needs fixed includes.
4960 case $ac_im_incroot in
4962 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4964 case $ac_im_usrlibdir in
4966 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4973 # Standard set of common directories for X headers.
4974 # Check X11 before X11Rn because it is often a symlink to the current release.
4986 /usr/local/X11/include
4987 /usr/local/X11R6/include
4988 /usr/local/X11R5/include
4989 /usr/local/X11R4/include
4991 /usr/local/include/X11
4992 /usr/local/include/X11R6
4993 /usr/local/include/X11R5
4994 /usr/local/include/X11R4
4998 /usr/XFree86/include/X11
5002 /usr/unsupported/include
5004 /usr/local/x11r5/include
5005 /usr/lpp/Xamples/include
5007 /usr/openwin/include
5008 /usr/openwin/share/include'
5010 if test "$ac_x_includes" = no; then
5011 # Guess where to find include files, by looking for Intrinsic.h.
5012 # First, try using that file with no special directory specified.
5013 cat >conftest.$ac_ext <<_ACEOF
5014 #line $LINENO "configure"
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5020 #include <X11/Intrinsic.h>
5022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5025 grep -v '^ *+' conftest.er1 >conftest.err
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } >/dev/null; then
5030 if test -s conftest.err; then
5031 ac_cpp_err=$ac_c_preproc_warn_flag
5038 if test -z "$ac_cpp_err"; then
5039 # We can compile using X headers with no special include directory.
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 for ac_dir in $ac_x_header_dirs; do
5046 if test -r "$ac_dir/X11/Intrinsic.h"; then
5047 ac_x_includes=$ac_dir
5052 rm -f conftest.err conftest.$ac_ext
5053 fi # $ac_x_includes = no
5055 if test "$ac_x_libraries" = no; then
5056 # Check for the libraries.
5057 # See if we find them without any special options.
5058 # Don't add to $LIBS permanently.
5061 cat >conftest.$ac_ext <<_ACEOF
5062 #line $LINENO "configure"
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5068 #include <X11/Intrinsic.h>
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079 (eval $ac_link) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -s conftest$ac_exeext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5090 # We can link X programs with no special library path.
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5097 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5099 # Don't even attempt the hair of trying to link an X program!
5100 for ac_extension in a so sl; do
5101 if test -r $ac_dir/libXt.$ac_extension; then
5102 ac_x_libraries=$ac_dir
5108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5109 fi # $ac_x_libraries = no
5111 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5112 # Didn't find X anywhere. Cache the known absence of X.
5113 ac_cv_have_x="have_x=no"
5115 # Record where we found X for the cache.
5116 ac_cv_have_x="have_x=yes \
5117 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5122 eval "$ac_cv_have_x"
5125 if test "$have_x" != yes; then
5126 echo "$as_me:$LINENO: result: $have_x" >&5
5127 echo "${ECHO_T}$have_x" >&6
5130 # If each of the values was on the command line, it overrides each guess.
5131 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5132 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5133 # Update the cache value to reflect the command line values.
5134 ac_cv_have_x="have_x=yes \
5135 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5136 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5137 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5140 if test "$no_x" = yes; then
5141 # Not all programs may use this symbol, but it does not hurt to define it.
5143 cat >>confdefs.h <<\_ACEOF
5144 #define X_DISPLAY_MISSING 1
5147 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5149 if test -n "$x_includes"; then
5150 X_CFLAGS="$X_CFLAGS -I$x_includes"
5153 # It would also be nice to do this for all -L options, not just this one.
5154 if test -n "$x_libraries"; then
5155 X_LIBS="$X_LIBS -L$x_libraries"
5156 # For Solaris; some versions of Sun CC require a space after -R and
5157 # others require no space. Words are not sufficient . . . .
5158 case `(uname -sr) 2>/dev/null` in
5160 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5161 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5162 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5163 cat >conftest.$ac_ext <<_ACEOF
5164 #line $LINENO "configure"
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5179 rm -f conftest.$ac_objext conftest$ac_exeext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5181 (eval $ac_link) 2>&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } &&
5185 { ac_try='test -s conftest$ac_exeext'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5199 if test $ac_R_nospace = yes; then
5200 echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5202 X_LIBS="$X_LIBS -R$x_libraries"
5204 LIBS="$ac_xsave_LIBS -R $x_libraries"
5205 cat >conftest.$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5221 rm -f conftest.$ac_objext conftest$ac_exeext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5223 (eval $ac_link) 2>&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -s conftest$ac_exeext'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; }; then
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5241 if test $ac_R_space = yes; then
5242 echo "$as_me:$LINENO: result: yes" >&5
5243 echo "${ECHO_T}yes" >&6
5244 X_LIBS="$X_LIBS -R $x_libraries"
5246 echo "$as_me:$LINENO: result: neither works" >&5
5247 echo "${ECHO_T}neither works" >&6
5254 # Check for system-dependent libraries X programs must link with.
5255 # Do this before checking for the system-independent R6 libraries
5256 # (-lICE), since we may need -lsocket or whatever for X linking.
5258 if test "$ISC" = yes; then
5259 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5261 # Martyn Johnson says this is needed for Ultrix, if the X
5262 # libraries were built with DECnet support. And Karl Berry says
5263 # the Alpha needs dnet_stub (dnet does not exist).
5264 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5265 cat >conftest.$ac_ext <<_ACEOF
5266 #line $LINENO "configure"
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5273 /* Override any gcc2 internal prototype to avoid an error. */
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5279 char XOpenDisplay ();
5288 rm -f conftest.$ac_objext conftest$ac_exeext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5290 (eval $ac_link) 2>&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -s conftest$ac_exeext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5305 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5306 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5307 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 ac_check_lib_save_LIBS=$LIBS
5312 cat >conftest.$ac_ext <<_ACEOF
5313 #line $LINENO "configure"
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5320 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5335 rm -f conftest.$ac_objext conftest$ac_exeext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_lib_dnet_dnet_ntoa=yes
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 ac_cv_lib_dnet_dnet_ntoa=no
5354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5357 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5358 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5359 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5360 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5363 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5364 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5365 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5366 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 ac_check_lib_save_LIBS=$LIBS
5370 LIBS="-ldnet_stub $LIBS"
5371 cat >conftest.$ac_ext <<_ACEOF
5372 #line $LINENO "configure"
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5379 /* Override any gcc2 internal prototype to avoid an error. */
5383 /* We use char because int might match the return type of a gcc2
5384 builtin and then its argument prototype would still apply. */
5394 rm -f conftest.$ac_objext conftest$ac_exeext
5395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5396 (eval $ac_link) 2>&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -s conftest$ac_exeext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 ac_cv_lib_dnet_stub_dnet_ntoa=no
5413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5414 LIBS=$ac_check_lib_save_LIBS
5416 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5417 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5418 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5419 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5425 LIBS="$ac_xsave_LIBS"
5427 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5428 # to get the SysV transport functions.
5429 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5431 # The nsl library prevents programs from opening the X display
5432 # on Irix 5.2, according to T.E. Dickey.
5433 # The functions gethostbyname, getservbyname, and inet_addr are
5434 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5435 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5436 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5437 if test "${ac_cv_func_gethostbyname+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 cat >conftest.$ac_ext <<_ACEOF
5441 #line $LINENO "configure"
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5447 /* System header to define __stub macros and hopefully few prototypes,
5448 which can conflict with char gethostbyname (); below.
5449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5450 <limits.h> exists even on freestanding compilers. */
5452 # include <limits.h>
5454 # include <assert.h>
5456 /* Override any gcc2 internal prototype to avoid an error. */
5461 /* We use char because int might match the return type of a gcc2
5462 builtin and then its argument prototype would still apply. */
5463 char gethostbyname ();
5464 /* The GNU C library defines this for functions which it implements
5465 to always fail with ENOSYS. Some functions are actually named
5466 something starting with __ and the normal name is an alias. */
5467 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5470 char (*f) () = gethostbyname;
5479 return f != gethostbyname;
5484 rm -f conftest.$ac_objext conftest$ac_exeext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5486 (eval $ac_link) 2>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -s conftest$ac_exeext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 ac_cv_func_gethostbyname=yes
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ac_cv_func_gethostbyname=no
5503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5505 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5506 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5508 if test $ac_cv_func_gethostbyname = no; then
5509 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5510 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5511 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 ac_check_lib_save_LIBS=$LIBS
5516 cat >conftest.$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5524 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5530 char gethostbyname ();
5539 rm -f conftest.$ac_objext conftest$ac_exeext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5541 (eval $ac_link) 2>&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -s conftest$ac_exeext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_lib_nsl_gethostbyname=yes
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 ac_cv_lib_nsl_gethostbyname=no
5558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5561 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5562 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5563 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5567 if test $ac_cv_lib_nsl_gethostbyname = no; then
5568 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5569 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5570 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 ac_check_lib_save_LIBS=$LIBS
5575 cat >conftest.$ac_ext <<_ACEOF
5576 #line $LINENO "configure"
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5583 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5589 char gethostbyname ();
5598 rm -f conftest.$ac_objext conftest$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } &&
5604 { ac_try='test -s conftest$ac_exeext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_cv_lib_bsd_gethostbyname=yes
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 ac_cv_lib_bsd_gethostbyname=no
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5620 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5621 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5622 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5629 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5630 # socket/setsockopt and other routines are undefined under SCO ODT
5631 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5632 # on later versions), says Simon Leinen: it contains gethostby*
5633 # variants that don't use the name server (or something). -lsocket
5634 # must be given before -lnsl if both are needed. We assume that
5635 # if connect needs -lnsl, so does gethostbyname.
5636 echo "$as_me:$LINENO: checking for connect" >&5
5637 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5638 if test "${ac_cv_func_connect+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5642 #line $LINENO "configure"
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 /* System header to define __stub macros and hopefully few prototypes,
5649 which can conflict with char connect (); below.
5650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 <limits.h> exists even on freestanding compilers. */
5653 # include <limits.h>
5655 # include <assert.h>
5657 /* Override any gcc2 internal prototype to avoid an error. */
5662 /* We use char because int might match the return type of a gcc2
5663 builtin and then its argument prototype would still apply. */
5665 /* The GNU C library defines this for functions which it implements
5666 to always fail with ENOSYS. Some functions are actually named
5667 something starting with __ and the normal name is an alias. */
5668 #if defined (__stub_connect) || defined (__stub___connect)
5671 char (*f) () = connect;
5680 return f != connect;
5685 rm -f conftest.$ac_objext conftest$ac_exeext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5687 (eval $ac_link) 2>&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } &&
5691 { ac_try='test -s conftest$ac_exeext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_cv_func_connect=yes
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5702 ac_cv_func_connect=no
5704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5706 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5707 echo "${ECHO_T}$ac_cv_func_connect" >&6
5709 if test $ac_cv_func_connect = no; then
5710 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5711 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5712 if test "${ac_cv_lib_socket_connect+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 ac_check_lib_save_LIBS=$LIBS
5716 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5717 cat >conftest.$ac_ext <<_ACEOF
5718 #line $LINENO "configure"
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5725 /* Override any gcc2 internal prototype to avoid an error. */
5729 /* We use char because int might match the return type of a gcc2
5730 builtin and then its argument prototype would still apply. */
5740 rm -f conftest.$ac_objext conftest$ac_exeext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5742 (eval $ac_link) 2>&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_lib_socket_connect=yes
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 ac_cv_lib_socket_connect=no
5759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5760 LIBS=$ac_check_lib_save_LIBS
5762 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5763 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5764 if test $ac_cv_lib_socket_connect = yes; then
5765 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5770 # Guillermo Gomez says -lposix is necessary on A/UX.
5771 echo "$as_me:$LINENO: checking for remove" >&5
5772 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5773 if test "${ac_cv_func_remove+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 /* System header to define __stub macros and hopefully few prototypes,
5784 which can conflict with char remove (); below.
5785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786 <limits.h> exists even on freestanding compilers. */
5788 # include <limits.h>
5790 # include <assert.h>
5792 /* Override any gcc2 internal prototype to avoid an error. */
5797 /* We use char because int might match the return type of a gcc2
5798 builtin and then its argument prototype would still apply. */
5800 /* The GNU C library defines this for functions which it implements
5801 to always fail with ENOSYS. Some functions are actually named
5802 something starting with __ and the normal name is an alias. */
5803 #if defined (__stub_remove) || defined (__stub___remove)
5806 char (*f) () = remove;
5820 rm -f conftest.$ac_objext conftest$ac_exeext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5822 (eval $ac_link) 2>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -s conftest$ac_exeext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 ac_cv_func_remove=yes
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 ac_cv_func_remove=no
5839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5841 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5842 echo "${ECHO_T}$ac_cv_func_remove" >&6
5844 if test $ac_cv_func_remove = no; then
5845 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5846 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5847 if test "${ac_cv_lib_posix_remove+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 ac_check_lib_save_LIBS=$LIBS
5851 LIBS="-lposix $LIBS"
5852 cat >conftest.$ac_ext <<_ACEOF
5853 #line $LINENO "configure"
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5860 /* Override any gcc2 internal prototype to avoid an error. */
5864 /* We use char because int might match the return type of a gcc2
5865 builtin and then its argument prototype would still apply. */
5875 rm -f conftest.$ac_objext conftest$ac_exeext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877 (eval $ac_link) 2>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -s conftest$ac_exeext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_cv_lib_posix_remove=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_cv_lib_posix_remove=no
5894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5895 LIBS=$ac_check_lib_save_LIBS
5897 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5898 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5899 if test $ac_cv_lib_posix_remove = yes; then
5900 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5905 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5906 echo "$as_me:$LINENO: checking for shmat" >&5
5907 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5908 if test "${ac_cv_func_shmat+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 cat >conftest.$ac_ext <<_ACEOF
5912 #line $LINENO "configure"
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 /* System header to define __stub macros and hopefully few prototypes,
5919 which can conflict with char shmat (); below.
5920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921 <limits.h> exists even on freestanding compilers. */
5923 # include <limits.h>
5925 # include <assert.h>
5927 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5935 /* The GNU C library defines this for functions which it implements
5936 to always fail with ENOSYS. Some functions are actually named
5937 something starting with __ and the normal name is an alias. */
5938 #if defined (__stub_shmat) || defined (__stub___shmat)
5941 char (*f) () = shmat;
5955 rm -f conftest.$ac_objext conftest$ac_exeext
5956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957 (eval $ac_link) 2>&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } &&
5961 { ac_try='test -s conftest$ac_exeext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 ac_cv_func_shmat=yes
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5976 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5977 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5979 if test $ac_cv_func_shmat = no; then
5980 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5981 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5982 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 ac_check_lib_save_LIBS=$LIBS
5987 cat >conftest.$ac_ext <<_ACEOF
5988 #line $LINENO "configure"
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5995 /* Override any gcc2 internal prototype to avoid an error. */
5999 /* We use char because int might match the return type of a gcc2
6000 builtin and then its argument prototype would still apply. */
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -s conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_lib_ipc_shmat=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_cv_lib_ipc_shmat=no
6029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6030 LIBS=$ac_check_lib_save_LIBS
6032 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6033 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6034 if test $ac_cv_lib_ipc_shmat = yes; then
6035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6041 # Check for libraries that X11R6 Xt/Xaw programs need.
6042 ac_save_LDFLAGS=$LDFLAGS
6043 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6044 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6045 # check for ICE first), but we must link in the order -lSM -lICE or
6046 # we get undefined symbols. So assume we have SM if we have ICE.
6047 # These have to be linked with before -lX11, unlike the other
6048 # libraries we check for below, so use a different variable.
6049 # John Interrante, Karl Berry
6050 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6051 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6052 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 ac_check_lib_save_LIBS=$LIBS
6056 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6057 cat >conftest.$ac_ext <<_ACEOF
6058 #line $LINENO "configure"
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6065 /* Override any gcc2 internal prototype to avoid an error. */
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6071 char IceConnectionNumber ();
6075 IceConnectionNumber ();
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082 (eval $ac_link) 2>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -s conftest$ac_exeext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_lib_ICE_IceConnectionNumber=yes
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6097 ac_cv_lib_ICE_IceConnectionNumber=no
6099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6100 LIBS=$ac_check_lib_save_LIBS
6102 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6103 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6104 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6105 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6108 LDFLAGS=$ac_save_LDFLAGS
6113 if test "$have_x" != yes; then
6114 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
6115 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
6116 { (exit 1); exit 1; }; }
6120 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
6121 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
6122 if test "${ac_cv_x_app_defaults+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 if mkdir conftestdir; then
6128 cd conftestdir 2>/dev/null
6129 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6130 cat > Imakefile <<'EOF'
6132 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
6134 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
6135 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
6136 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6141 if test x"$ac_x_app_defaults" = x; then
6143 # Look for the directory under a standard set of common directories.
6144 # Check X11 before X11Rn because it's often a symlink to the current release.
6146 /usr/X11/lib/app-defaults \
6147 /usr/X11R6/lib/app-defaults \
6148 /usr/X11R6/lib/X11/app-defaults \
6149 /usr/X11R5/lib/app-defaults \
6150 /usr/X11R5/lib/X11/app-defaults \
6151 /usr/X11R4/lib/app-defaults \
6152 /usr/X11R4/lib/X11/app-defaults \
6154 /usr/lib/X11/app-defaults \
6155 /usr/lib/X11R6/app-defaults \
6156 /usr/lib/X11R5/app-defaults \
6157 /usr/lib/X11R4/app-defaults \
6159 /usr/local/X11/lib/app-defaults \
6160 /usr/local/X11R6/lib/app-defaults \
6161 /usr/local/X11R5/lib/app-defaults \
6162 /usr/local/X11R4/lib/app-defaults \
6164 /usr/local/lib/X11/app-defaults \
6165 /usr/local/lib/X11R6/app-defaults \
6166 /usr/local/lib/X11R6/X11/app-defaults \
6167 /usr/local/lib/X11R5/app-defaults \
6168 /usr/local/lib/X11R5/X11/app-defaults \
6169 /usr/local/lib/X11R4/app-defaults \
6170 /usr/local/lib/X11R4/X11/app-defaults \
6172 /usr/X386/lib/X11/app-defaults \
6173 /usr/x386/lib/X11/app-defaults \
6174 /usr/XFree86/lib/X11/app-defaults \
6176 /usr/lib/X11/app-defaults \
6177 /usr/local/lib/X11/app-defaults \
6178 /usr/unsupported/lib/X11/app-defaults \
6179 /usr/athena/lib/X11/app-defaults \
6180 /usr/local/x11r5/lib/X11/app-defaults \
6181 /usr/lpp/Xamples/lib/X11/app-defaults \
6182 /lib/usr/lib/X11/app-defaults \
6184 /usr/openwin/lib/app-defaults \
6185 /usr/openwin/lib/X11/app-defaults \
6186 /usr/openwin/share/lib/app-defaults \
6187 /usr/openwin/share/lib/X11/app-defaults \
6189 /X11R6/lib/app-defaults \
6190 /X11R5/lib/app-defaults \
6191 /X11R4/lib/app-defaults \
6194 if test -d "$ac_dir"; then
6195 ac_x_app_defaults=$ac_dir
6201 if test x"$ac_x_app_defaults" = x; then
6202 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6204 # Record where we found app-defaults for the cache.
6205 ac_cv_x_app_defaults="$ac_x_app_defaults"
6208 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
6209 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
6210 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6214 # The following arcana was gleaned from conversations with
6215 # Eric Schwartz <erics@col.hp.com>:
6217 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6218 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6219 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6220 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6221 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6222 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6223 # you don't need any -I or -L arguments.
6225 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6226 # are the same division as 10.x. However, there are no symlinks to
6227 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6228 # arguments are always necessary.
6230 # However, X11R6 was available on HPUX 9.x as a patch: if that
6231 # patch was installed, then all of X11R6 went in to
6232 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6234 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6235 # whether R5 was available as a patch; R6 undoubtedly was not.)
6237 # So. We try and use the highest numbered pair of
6238 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6239 # that are available. We do not mix and match different versions
6242 # Question I still don't know the answer to: (do you?)
6244 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6245 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6246 # that contrib directory? Did it contain so-called "standard"
6247 # X11R6, or did it include Xaw and Xmu as well? If the former,
6248 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6249 # be a situation where one had to reach into the R5 headers and
6250 # libs to find Xmu? That is, must both R6 and R5 directories
6251 # be on the -I and -L lists in that case?
6253 for version in X11R6 X11R5 X11R4 ; do
6254 # if either pair of directories exists...
6255 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6257 # if contrib exists, use it...
6258 if test -d /usr/contrib/$version/include ; then
6259 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6260 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6262 # if the "standard" one exists, use it.
6263 if test -d /usr/include/$version ; then
6264 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6265 X_LIBS="$X_LIBS -L/usr/lib/$version"
6267 # since at least one of the pair exists, go no farther.
6272 # Now find Motif. Thanks for not making xmkmf find this by
6273 # default, you losers.
6275 if test -d /usr/include/Motif2.1 ; then
6276 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6277 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6278 elif test -d /usr/include/Motif1.2 ; then
6279 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6280 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6281 elif test -d /usr/include/Motif1.1 ; then
6282 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6283 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6286 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6288 if test -d /opt/graphics/OpenGL/include ; then
6289 # HP-UX 10.20 puts it here
6290 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6291 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6292 elif test -d /opt/Mesa/lib ; then
6293 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6294 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6298 if test -d /opt/xpm/lib/X11 ; then
6299 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6300 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6303 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6304 # in /usr/local/, unless there is already an xscreensaver in
6305 # /usr/local/bin/. This can be overridden with the --prefix arg
6306 # to configure. I'm not sure this is the right thing to do, but
6307 # Richard Lloyd says so...
6309 if test \! -x /usr/local/bin/xscreensaver ; then
6310 ac_default_prefix=/opt/xscreensaver
6316 # Thanks for not making xmkmf find this by default, pinheads.
6317 # And thanks for moving things around again, too. Is this
6318 # really the standard location now? What happened to the
6319 # joke that this kind of thing went in /opt?
6320 # cthomp says "answer: CDE (Common Disorganized Environment)"
6322 if test -f /usr/dt/include/Xm/Xm.h ; then
6323 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6324 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
6326 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6327 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
6328 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
6329 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 ac_check_lib_save_LIBS=$LIBS
6334 cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6342 /* Override any gcc2 internal prototype to avoid an error. */
6346 /* We use char because int might match the return type of a gcc2
6347 builtin and then its argument prototype would still apply. */
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359 (eval $ac_link) 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -s conftest$ac_exeext'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 ac_cv_lib_gen_regcmp=yes
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6374 ac_cv_lib_gen_regcmp=no
6376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6377 LIBS=$ac_check_lib_save_LIBS
6379 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
6380 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
6381 if test $ac_cv_lib_gen_regcmp = yes; then
6382 MOTIF_LIBS="$MOTIF_LIBS -lgen"
6390 # On MacOS X (10.x with "fink"), many things are under /sw/.
6392 if test -d /sw/include ; then
6393 X_CFLAGS="-I/sw/include $X_CFLAGS"
6394 X_LIBS="-L/sw/lib $X_LIBS"
6398 echo "$as_me:$LINENO: checking for XPointer" >&5
6399 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
6400 if test "${ac_cv_xpointer+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 ac_save_CPPFLAGS="$CPPFLAGS"
6405 if test \! -z "$includedir" ; then
6406 CPPFLAGS="$CPPFLAGS -I$includedir"
6408 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6409 cat >conftest.$ac_ext <<_ACEOF
6410 #line $LINENO "configure"
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 #include <X11/Xlib.h>
6420 XPointer foo = (XPointer) 0;
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6444 rm -f conftest.$ac_objext conftest.$ac_ext
6445 CPPFLAGS="$ac_save_CPPFLAGS"
6447 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
6448 echo "${ECHO_T}$ac_cv_xpointer" >&6
6449 if test "$ac_cv_xpointer" != yes; then
6450 cat >>confdefs.h <<\_ACEOF
6451 #define XPointer char*
6456 echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
6457 echo $ECHO_N "checking whether this is MacOS X... $ECHO_C" >&6
6464 echo "$as_me:$LINENO: result: $ac_macosx" >&5
6465 echo "${ECHO_T}$ac_macosx" >&6
6469 ###############################################################################
6473 ###############################################################################
6478 echo "$as_me:$LINENO: checking for intltool >= " >&5
6479 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
6481 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
6482 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
6484 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
6487 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
6488 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6489 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
6491 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
6492 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
6497 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'
6498 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'
6499 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'
6500 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
6501 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'
6502 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'
6503 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'
6504 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'
6505 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'
6506 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'
6507 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'
6521 # Use the tools built into the package, not the ones that are installed.
6523 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
6524 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
6525 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
6531 # Extract the first word of "perl", so it can be a program name with args.
6532 set dummy perl; ac_word=$2
6533 echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6535 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 case $INTLTOOL_PERL in
6540 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6562 if test -n "$INTLTOOL_PERL"; then
6563 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6564 echo "${ECHO_T}$INTLTOOL_PERL" >&6
6566 echo "$as_me:$LINENO: result: no" >&5
6567 echo "${ECHO_T}no" >&6
6570 if test -z "$INTLTOOL_PERL"; then
6571 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
6572 echo "$as_me: error: perl not found; required for intltool" >&2;}
6573 { (exit 1); exit 1; }; }
6575 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
6576 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
6577 echo "$as_me: error: perl 5.x required for intltool" >&2;}
6578 { (exit 1); exit 1; }; }
6581 # Remove file type tags (using []) from po/POTFILES.
6589 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
6591 ac_config_commands="$ac_config_commands default-1"
6595 GETTEXT_PACKAGE=xscreensaver
6596 cat >>confdefs.h <<_ACEOF
6597 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6600 cat >>confdefs.h <<_ACEOF
6601 #define PACKAGE "$GETTEXT_PACKAGE"
6606 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nl no pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6610 echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6612 if test "${ac_cv_prog_RANLIB+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 if test -n "$RANLIB"; then
6616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 RANLIB=$ac_cv_prog_RANLIB
6635 if test -n "$RANLIB"; then
6636 echo "$as_me:$LINENO: result: $RANLIB" >&5
6637 echo "${ECHO_T}$RANLIB" >&6
6639 echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6
6644 if test -z "$ac_cv_prog_RANLIB"; then
6645 ac_ct_RANLIB=$RANLIB
6646 # Extract the first word of "ranlib", so it can be a program name with args.
6647 set dummy ranlib; ac_word=$2
6648 echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6650 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 if test -n "$ac_ct_RANLIB"; then
6654 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6663 ac_cv_prog_ac_ct_RANLIB="ranlib"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6673 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6674 if test -n "$ac_ct_RANLIB"; then
6675 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6676 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6678 echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6682 RANLIB=$ac_ct_RANLIB
6684 RANLIB="$ac_cv_prog_RANLIB"
6687 echo "$as_me:$LINENO: checking for off_t" >&5
6688 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6689 if test "${ac_cv_type_off_t+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 cat >conftest.$ac_ext <<_ACEOF
6693 #line $LINENO "configure"
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 $ac_includes_default
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 ac_cv_type_off_t=yes
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6732 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6733 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6734 if test $ac_cv_type_off_t = yes; then
6738 cat >>confdefs.h <<_ACEOF
6744 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6745 # for constant arguments. Useless!
6746 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6747 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6748 if test "${ac_cv_working_alloca_h+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 cat >conftest.$ac_ext <<_ACEOF
6752 #line $LINENO "configure"
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6762 char *p = (char *) alloca (2 * sizeof (int));
6767 rm -f conftest.$ac_objext conftest$ac_exeext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6769 (eval $ac_link) 2>&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -s conftest$ac_exeext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 ac_cv_working_alloca_h=yes
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 ac_cv_working_alloca_h=no
6786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6788 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6789 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6790 if test $ac_cv_working_alloca_h = yes; then
6792 cat >>confdefs.h <<\_ACEOF
6793 #define HAVE_ALLOCA_H 1
6798 echo "$as_me:$LINENO: checking for alloca" >&5
6799 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6800 if test "${ac_cv_func_alloca_works+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 cat >conftest.$ac_ext <<_ACEOF
6804 #line $LINENO "configure"
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6811 # define alloca __builtin_alloca
6814 # include <malloc.h>
6815 # define alloca _alloca
6818 # include <alloca.h>
6823 # ifndef alloca /* predefined by HP cc +Olibcalls */
6834 char *p = (char *) alloca (1);
6839 rm -f conftest.$ac_objext conftest$ac_exeext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6841 (eval $ac_link) 2>&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try='test -s conftest$ac_exeext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_cv_func_alloca_works=yes
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_cv_func_alloca_works=no
6858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6860 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6861 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6863 if test $ac_cv_func_alloca_works = yes; then
6865 cat >>confdefs.h <<\_ACEOF
6866 #define HAVE_ALLOCA 1
6870 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6871 # that cause trouble. Some versions do not even contain alloca or
6872 # contain a buggy version. If you still want to use their alloca,
6873 # use ar to extract alloca.o from them instead of compiling alloca.c.
6875 ALLOCA=alloca.$ac_objext
6877 cat >>confdefs.h <<\_ACEOF
6882 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6883 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6884 if test "${ac_cv_os_cray+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line $LINENO "configure"
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 #if defined(CRAY) && ! defined(CRAY2)
6901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6902 $EGREP "webecray" >/dev/null 2>&1; then
6910 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6911 echo "${ECHO_T}$ac_cv_os_cray" >&6
6912 if test $ac_cv_os_cray = yes; then
6913 for ac_func in _getb67 GETB67 getb67; do
6914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6915 echo "$as_me:$LINENO: checking for $ac_func" >&5
6916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6917 if eval "test \"\${$as_ac_var+set}\" = set"; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 cat >conftest.$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 /* System header to define __stub macros and hopefully few prototypes,
6928 which can conflict with char $ac_func (); below.
6929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6930 <limits.h> exists even on freestanding compilers. */
6932 # include <limits.h>
6934 # include <assert.h>
6936 /* Override any gcc2 internal prototype to avoid an error. */
6941 /* We use char because int might match the return type of a gcc2
6942 builtin and then its argument prototype would still apply. */
6944 /* The GNU C library defines this for functions which it implements
6945 to always fail with ENOSYS. Some functions are actually named
6946 something starting with __ and the normal name is an alias. */
6947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6950 char (*f) () = $ac_func;
6959 return f != $ac_func;
6964 rm -f conftest.$ac_objext conftest$ac_exeext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6966 (eval $ac_link) 2>&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -s conftest$ac_exeext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6976 eval "$as_ac_var=yes"
6978 echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6981 eval "$as_ac_var=no"
6983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6987 if test `eval echo '${'$as_ac_var'}'` = yes; then
6989 cat >>confdefs.h <<_ACEOF
6990 #define CRAY_STACKSEG_END $ac_func
6999 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7000 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7001 if test "${ac_cv_c_stack_direction+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 if test "$cross_compiling" = yes; then
7005 ac_cv_c_stack_direction=0
7007 cat >conftest.$ac_ext <<_ACEOF
7008 #line $LINENO "configure"
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7015 find_stack_direction ()
7017 static char *addr = 0;
7022 return find_stack_direction ();
7025 return (&dummy > addr) ? 1 : -1;
7031 exit (find_stack_direction () < 0);
7034 rm -f conftest$ac_exeext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7036 (eval $ac_link) 2>&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_cv_c_stack_direction=1
7047 echo "$as_me: program exited with status $ac_status" >&5
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7052 ac_cv_c_stack_direction=-1
7054 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7057 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7058 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7060 cat >>confdefs.h <<_ACEOF
7061 #define STACK_DIRECTION $ac_cv_c_stack_direction
7069 for ac_header in stdlib.h unistd.h
7071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7073 echo "$as_me:$LINENO: checking for $ac_header" >&5
7074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7081 # Is the header compilable?
7082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7084 cat >conftest.$ac_ext <<_ACEOF
7085 #line $LINENO "configure"
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 $ac_includes_default
7092 #include <$ac_header>
7094 rm -f conftest.$ac_objext
7095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7096 (eval $ac_compile) 2>&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } &&
7100 { ac_try='test -s conftest.$ac_objext'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_header_compiler=yes
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 ac_header_compiler=no
7113 rm -f conftest.$ac_objext conftest.$ac_ext
7114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7115 echo "${ECHO_T}$ac_header_compiler" >&6
7117 # Is the header present?
7118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7120 cat >conftest.$ac_ext <<_ACEOF
7121 #line $LINENO "configure"
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 #include <$ac_header>
7129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7132 grep -v '^ *+' conftest.er1 >conftest.err
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } >/dev/null; then
7137 if test -s conftest.err; then
7138 ac_cpp_err=$ac_c_preproc_warn_flag
7145 if test -z "$ac_cpp_err"; then
7146 ac_header_preproc=yes
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 ac_header_preproc=no
7153 rm -f conftest.err conftest.$ac_ext
7154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7155 echo "${ECHO_T}$ac_header_preproc" >&6
7157 # So? What about this header?
7158 case $ac_header_compiler:$ac_header_preproc in
7160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7166 ## ------------------------------------ ##
7167 ## Report this to bug-autoconf@gnu.org. ##
7168 ## ------------------------------------ ##
7171 sed "s/^/$as_me: WARNING: /" >&2
7174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7182 ## ------------------------------------ ##
7183 ## Report this to bug-autoconf@gnu.org. ##
7184 ## ------------------------------------ ##
7187 sed "s/^/$as_me: WARNING: /" >&2
7190 echo "$as_me:$LINENO: checking for $ac_header" >&5
7191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 eval "$as_ac_Header=$ac_header_preproc"
7197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7202 cat >>confdefs.h <<_ACEOF
7203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7211 for ac_func in getpagesize
7213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7214 echo "$as_me:$LINENO: checking for $ac_func" >&5
7215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_var+set}\" = set"; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7220 #line $LINENO "configure"
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 /* System header to define __stub macros and hopefully few prototypes,
7227 which can conflict with char $ac_func (); below.
7228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7229 <limits.h> exists even on freestanding compilers. */
7231 # include <limits.h>
7233 # include <assert.h>
7235 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7243 /* The GNU C library defines this for functions which it implements
7244 to always fail with ENOSYS. Some functions are actually named
7245 something starting with __ and the normal name is an alias. */
7246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7249 char (*f) () = $ac_func;
7258 return f != $ac_func;
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -s conftest$ac_exeext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 eval "$as_ac_var=yes"
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 eval "$as_ac_var=no"
7282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7286 if test `eval echo '${'$as_ac_var'}'` = yes; then
7287 cat >>confdefs.h <<_ACEOF
7288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7294 echo "$as_me:$LINENO: checking for working mmap" >&5
7295 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7296 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 if test "$cross_compiling" = yes; then
7300 ac_cv_func_mmap_fixed_mapped=no
7302 cat >conftest.$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 /* malloc might have been renamed as rpl_malloc. */
7313 /* Thanks to Mike Haertel and Jim Avera for this test.
7314 Here is a matrix of mmap possibilities:
7315 mmap private not fixed
7316 mmap private fixed at somewhere currently unmapped
7317 mmap private fixed at somewhere already mapped
7318 mmap shared not fixed
7319 mmap shared fixed at somewhere currently unmapped
7320 mmap shared fixed at somewhere already mapped
7321 For private mappings, we should verify that changes cannot be read()
7322 back from the file, nor mmap's back from the file at a different
7323 address. (There have been systems where private was not correctly
7324 implemented like the infamous i386 svr4.0, and systems where the
7325 VM page cache was not coherent with the file system buffer cache
7326 like early versions of FreeBSD and possibly contemporary NetBSD.)
7327 For shared mappings, we should conversely verify that changes get
7328 propagated back to all the places they're supposed to be.
7330 Grep wants private fixed already mapped.
7331 The main things grep needs to know about mmap are:
7332 * does it exist and is it safe to write into the mmap'd area
7333 * how to use it (BSD variants) */
7336 #include <sys/mman.h>
7338 #if !STDC_HEADERS && !HAVE_STDLIB_H
7342 /* This mess was copied from the GNU getpagesize.h. */
7343 #if !HAVE_GETPAGESIZE
7344 /* Assume that all systems that can run configure have sys/param.h. */
7345 # if !HAVE_SYS_PARAM_H
7346 # define HAVE_SYS_PARAM_H 1
7349 # ifdef _SC_PAGESIZE
7350 # define getpagesize() sysconf(_SC_PAGESIZE)
7351 # else /* no _SC_PAGESIZE */
7352 # if HAVE_SYS_PARAM_H
7353 # include <sys/param.h>
7354 # ifdef EXEC_PAGESIZE
7355 # define getpagesize() EXEC_PAGESIZE
7356 # else /* no EXEC_PAGESIZE */
7358 # define getpagesize() NBPG * CLSIZE
7361 # endif /* no CLSIZE */
7362 # else /* no NBPG */
7364 # define getpagesize() NBPC
7365 # else /* no NBPC */
7367 # define getpagesize() PAGESIZE
7368 # endif /* PAGESIZE */
7369 # endif /* no NBPC */
7370 # endif /* no NBPG */
7371 # endif /* no EXEC_PAGESIZE */
7372 # else /* no HAVE_SYS_PARAM_H */
7373 # define getpagesize() 8192 /* punt totally */
7374 # endif /* no HAVE_SYS_PARAM_H */
7375 # endif /* no _SC_PAGESIZE */
7377 #endif /* no HAVE_GETPAGESIZE */
7382 char *data, *data2, *data3;
7386 pagesize = getpagesize ();
7388 /* First, make a file with some known garbage in it. */
7389 data = (char *) malloc (pagesize);
7392 for (i = 0; i < pagesize; ++i)
7393 *(data + i) = rand ();
7395 fd = creat ("conftest.mmap", 0600);
7398 if (write (fd, data, pagesize) != pagesize)
7402 /* Next, try to mmap the file at a fixed address which already has
7403 something else allocated at it. If we can, also make sure that
7404 we see the same garbage. */
7405 fd = open ("conftest.mmap", O_RDWR);
7408 data2 = (char *) malloc (2 * pagesize);
7411 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7412 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7413 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7415 for (i = 0; i < pagesize; ++i)
7416 if (*(data + i) != *(data2 + i))
7419 /* Finally, make sure that changes to the mapped area do not
7420 percolate back to the file as seen by read(). (This is a bug on
7421 some variants of i386 svr4.0.) */
7422 for (i = 0; i < pagesize; ++i)
7423 *(data2 + i) = *(data2 + i) + 1;
7424 data3 = (char *) malloc (pagesize);
7427 if (read (fd, data3, pagesize) != pagesize)
7429 for (i = 0; i < pagesize; ++i)
7430 if (*(data + i) != *(data3 + i))
7436 rm -f conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7447 ac_cv_func_mmap_fixed_mapped=yes
7449 echo "$as_me: program exited with status $ac_status" >&5
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7454 ac_cv_func_mmap_fixed_mapped=no
7456 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7459 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7460 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7461 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7463 cat >>confdefs.h <<\_ACEOF
7479 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7480 unistd.h sys/param.h
7482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7484 echo "$as_me:$LINENO: checking for $ac_header" >&5
7485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7492 # Is the header compilable?
7493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7495 cat >conftest.$ac_ext <<_ACEOF
7496 #line $LINENO "configure"
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 $ac_includes_default
7503 #include <$ac_header>
7505 rm -f conftest.$ac_objext
7506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } &&
7511 { ac_try='test -s conftest.$ac_objext'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; }; then
7517 ac_header_compiler=yes
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7522 ac_header_compiler=no
7524 rm -f conftest.$ac_objext conftest.$ac_ext
7525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7526 echo "${ECHO_T}$ac_header_compiler" >&6
7528 # Is the header present?
7529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7531 cat >conftest.$ac_ext <<_ACEOF
7532 #line $LINENO "configure"
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 #include <$ac_header>
7540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7543 grep -v '^ *+' conftest.er1 >conftest.err
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } >/dev/null; then
7548 if test -s conftest.err; then
7549 ac_cpp_err=$ac_c_preproc_warn_flag
7556 if test -z "$ac_cpp_err"; then
7557 ac_header_preproc=yes
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7562 ac_header_preproc=no
7564 rm -f conftest.err conftest.$ac_ext
7565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566 echo "${ECHO_T}$ac_header_preproc" >&6
7568 # So? What about this header?
7569 case $ac_header_compiler:$ac_header_preproc in
7571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7577 ## ------------------------------------ ##
7578 ## Report this to bug-autoconf@gnu.org. ##
7579 ## ------------------------------------ ##
7582 sed "s/^/$as_me: WARNING: /" >&2
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7593 ## ------------------------------------ ##
7594 ## Report this to bug-autoconf@gnu.org. ##
7595 ## ------------------------------------ ##
7598 sed "s/^/$as_me: WARNING: /" >&2
7601 echo "$as_me:$LINENO: checking for $ac_header" >&5
7602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 eval "$as_ac_Header=$ac_header_preproc"
7608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7613 cat >>confdefs.h <<_ACEOF
7614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7632 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7633 strdup __argz_count __argz_stringify __argz_next
7635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7636 echo "$as_me:$LINENO: checking for $ac_func" >&5
7637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7638 if eval "test \"\${$as_ac_var+set}\" = set"; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 cat >conftest.$ac_ext <<_ACEOF
7642 #line $LINENO "configure"
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 /* System header to define __stub macros and hopefully few prototypes,
7649 which can conflict with char $ac_func (); below.
7650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7651 <limits.h> exists even on freestanding compilers. */
7653 # include <limits.h>
7655 # include <assert.h>
7657 /* Override any gcc2 internal prototype to avoid an error. */
7662 /* We use char because int might match the return type of a gcc2
7663 builtin and then its argument prototype would still apply. */
7665 /* The GNU C library defines this for functions which it implements
7666 to always fail with ENOSYS. Some functions are actually named
7667 something starting with __ and the normal name is an alias. */
7668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7671 char (*f) () = $ac_func;
7680 return f != $ac_func;
7685 rm -f conftest.$ac_objext conftest$ac_exeext
7686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7687 (eval $ac_link) 2>&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try='test -s conftest$ac_exeext'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7697 eval "$as_ac_var=yes"
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 eval "$as_ac_var=no"
7704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7708 if test `eval echo '${'$as_ac_var'}'` = yes; then
7709 cat >>confdefs.h <<_ACEOF
7710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7717 if test $ac_cv_header_locale_h = yes; then
7718 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7719 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7720 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 cat >conftest.$ac_ext <<_ACEOF
7724 #line $LINENO "configure"
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741 (eval $ac_link) 2>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
7745 { ac_try='test -s conftest$ac_exeext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751 am_cv_val_LC_MESSAGES=yes
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7756 am_cv_val_LC_MESSAGES=no
7758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7761 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7762 if test $am_cv_val_LC_MESSAGES = yes; then
7764 cat >>confdefs.h <<\_ACEOF
7765 #define HAVE_LC_MESSAGES 1
7773 nls_cv_force_use_gnu_gettext="no"
7775 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7776 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7778 nls_cv_header_libgt=
7781 if test "${ac_cv_header_libintl_h+set}" = set; then
7782 echo "$as_me:$LINENO: checking for libintl.h" >&5
7783 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7784 if test "${ac_cv_header_libintl_h+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7788 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7790 # Is the header compilable?
7791 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7792 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7793 cat >conftest.$ac_ext <<_ACEOF
7794 #line $LINENO "configure"
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 $ac_includes_default
7801 #include <libintl.h>
7803 rm -f conftest.$ac_objext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7805 (eval $ac_compile) 2>&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } &&
7809 { ac_try='test -s conftest.$ac_objext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 ac_header_compiler=yes
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7820 ac_header_compiler=no
7822 rm -f conftest.$ac_objext conftest.$ac_ext
7823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7824 echo "${ECHO_T}$ac_header_compiler" >&6
7826 # Is the header present?
7827 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7828 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7829 cat >conftest.$ac_ext <<_ACEOF
7830 #line $LINENO "configure"
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7836 #include <libintl.h>
7838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7841 grep -v '^ *+' conftest.er1 >conftest.err
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } >/dev/null; then
7846 if test -s conftest.err; then
7847 ac_cpp_err=$ac_c_preproc_warn_flag
7854 if test -z "$ac_cpp_err"; then
7855 ac_header_preproc=yes
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_header_preproc=no
7862 rm -f conftest.err conftest.$ac_ext
7863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7864 echo "${ECHO_T}$ac_header_preproc" >&6
7866 # So? What about this header?
7867 case $ac_header_compiler:$ac_header_preproc in
7869 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7870 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7871 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7872 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7875 ## ------------------------------------ ##
7876 ## Report this to bug-autoconf@gnu.org. ##
7877 ## ------------------------------------ ##
7880 sed "s/^/$as_me: WARNING: /" >&2
7883 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7884 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7885 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7886 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7887 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7888 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7891 ## ------------------------------------ ##
7892 ## Report this to bug-autoconf@gnu.org. ##
7893 ## ------------------------------------ ##
7896 sed "s/^/$as_me: WARNING: /" >&2
7899 echo "$as_me:$LINENO: checking for libintl.h" >&5
7900 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7901 if test "${ac_cv_header_libintl_h+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_cv_header_libintl_h=$ac_header_preproc
7906 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7907 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7910 if test $ac_cv_header_libintl_h = yes; then
7911 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7912 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
7913 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 cat >conftest.$ac_ext <<_ACEOF
7917 #line $LINENO "configure"
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 #include <libintl.h>
7927 return (int) dgettext ("","")
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7934 (eval $ac_link) 2>&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -s conftest$ac_exeext'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 gt_cv_func_dgettext_libc=yes
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 gt_cv_func_dgettext_libc=no
7951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7953 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7954 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
7956 if test "$gt_cv_func_dgettext_libc" != "yes"; then
7957 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7958 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7959 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 ac_check_lib_save_LIBS=$LIBS
7964 cat >conftest.$ac_ext <<_ACEOF
7965 #line $LINENO "configure"
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7972 /* Override any gcc2 internal prototype to avoid an error. */
7976 /* We use char because int might match the return type of a gcc2
7977 builtin and then its argument prototype would still apply. */
7978 char bindtextdomain ();
7987 rm -f conftest.$ac_objext conftest$ac_exeext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
7993 { ac_try='test -s conftest$ac_exeext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 ac_cv_lib_intl_bindtextdomain=yes
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8004 ac_cv_lib_intl_bindtextdomain=no
8006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8007 LIBS=$ac_check_lib_save_LIBS
8009 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8010 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8011 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8012 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
8013 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
8014 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
8018 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
8019 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 ac_check_lib_save_LIBS=$LIBS
8024 cat >conftest.$ac_ext <<_ACEOF
8025 #line $LINENO "configure"
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8032 /* Override any gcc2 internal prototype to avoid an error. */
8036 /* We use char because int might match the return type of a gcc2
8037 builtin and then its argument prototype would still apply. */
8047 rm -f conftest.$ac_objext conftest$ac_exeext
8048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8049 (eval $ac_link) 2>&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try='test -s conftest$ac_exeext'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8059 ac_cv_lib_intl_dgettext=yes
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 ac_cv_lib_intl_dgettext=no
8066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8067 LIBS=$ac_check_lib_save_LIBS
8069 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
8070 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
8071 if test $ac_cv_lib_intl_dgettext = yes; then
8072 gt_cv_func_dgettext_libintl=yes
8074 gt_cv_func_dgettext_libintl=no
8078 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
8079 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
8084 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8085 LIBS="$LIBS -lintl";
8088 if test "$gt_cv_func_dgettext_libc" = "yes" \
8089 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8091 cat >>confdefs.h <<\_ACEOF
8092 #define HAVE_GETTEXT 1
8095 # Extract the first word of "msgfmt", so it can be a program name with args.
8096 set dummy msgfmt; ac_word=$2
8097 echo "$as_me:$LINENO: checking for $ac_word" >&5
8098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8099 if test "${ac_cv_path_MSGFMT+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8108 for ac_dir in $PATH; do
8109 test -z "$ac_dir" && ac_dir=.
8110 if test -f $ac_dir/$ac_word; then
8111 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8112 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8118 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8122 MSGFMT="$ac_cv_path_MSGFMT"
8123 if test -n "$MSGFMT"; then
8124 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8125 echo "${ECHO_T}$MSGFMT" >&6
8127 echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8130 if test "$MSGFMT" != "no"; then
8132 for ac_func in dcgettext
8134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8135 echo "$as_me:$LINENO: checking for $ac_func" >&5
8136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8137 if eval "test \"\${$as_ac_var+set}\" = set"; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 cat >conftest.$ac_ext <<_ACEOF
8141 #line $LINENO "configure"
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 /* System header to define __stub macros and hopefully few prototypes,
8148 which can conflict with char $ac_func (); below.
8149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8150 <limits.h> exists even on freestanding compilers. */
8152 # include <limits.h>
8154 # include <assert.h>
8156 /* Override any gcc2 internal prototype to avoid an error. */
8161 /* We use char because int might match the return type of a gcc2
8162 builtin and then its argument prototype would still apply. */
8164 /* The GNU C library defines this for functions which it implements
8165 to always fail with ENOSYS. Some functions are actually named
8166 something starting with __ and the normal name is an alias. */
8167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8170 char (*f) () = $ac_func;
8179 return f != $ac_func;
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -s conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 eval "$as_ac_var=yes"
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 eval "$as_ac_var=no"
8203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8207 if test `eval echo '${'$as_ac_var'}'` = yes; then
8208 cat >>confdefs.h <<_ACEOF
8209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8215 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8216 set dummy gmsgfmt; ac_word=$2
8217 echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8219 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8245 GMSGFMT=$ac_cv_path_GMSGFMT
8247 if test -n "$GMSGFMT"; then
8248 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8249 echo "${ECHO_T}$GMSGFMT" >&6
8251 echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6
8255 # Extract the first word of "xgettext", so it can be a program name with args.
8256 set dummy xgettext; ac_word=$2
8257 echo "$as_me:$LINENO: checking for $ac_word" >&5
8258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8259 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8268 for ac_dir in $PATH; do
8269 test -z "$ac_dir" && ac_dir=.
8270 if test -f $ac_dir/$ac_word; then
8271 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8272 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8278 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8282 XGETTEXT="$ac_cv_path_XGETTEXT"
8283 if test -n "$XGETTEXT"; then
8284 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8285 echo "${ECHO_T}$XGETTEXT" >&6
8287 echo "$as_me:$LINENO: result: no" >&5
8288 echo "${ECHO_T}no" >&6
8291 cat >conftest.$ac_ext <<_ACEOF
8292 #line $LINENO "configure"
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8302 extern int _nl_msg_cat_cntr;
8303 return _nl_msg_cat_cntr
8308 rm -f conftest.$ac_objext conftest$ac_exeext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -s conftest$ac_exeext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8334 # Added by Martin Baulig 12/15/98 for libc5 systems
8335 if test "$gt_cv_func_dgettext_libc" != "yes" \
8336 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
8338 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8345 if test "$CATOBJEXT" = "NONE"; then
8346 nls_cv_use_gnu_gettext=yes
8350 if test "$nls_cv_use_gnu_gettext" != "yes"; then
8352 cat >>confdefs.h <<\_ACEOF
8353 #define ENABLE_NLS 1
8360 if test "$XGETTEXT" != ":"; then
8361 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8364 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8365 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8370 # We need to process the po/ directory.
8373 ac_config_commands="$ac_config_commands default-2"
8376 for lang in $ALL_LINGUAS; do
8377 GMOFILES="$GMOFILES $lang.gmo"
8378 POFILES="$POFILES $lang.po"
8393 if test "x$CATOBJEXT" != "x"; then
8394 if test "x$ALL_LINGUAS" = "x"; then
8397 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8398 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8400 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8401 case "$ALL_LINGUAS" in
8402 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8405 LINGUAS=$NEW_LINGUAS
8406 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8407 echo "${ECHO_T}$LINGUAS" >&6
8410 if test -n "$LINGUAS"; then
8411 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8415 test -d po || mkdir po
8416 if test "$CATOBJEXT" = ".cat"; then
8417 if test "${ac_cv_header_linux_version_h+set}" = set; then
8418 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8419 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8420 if test "${ac_cv_header_linux_version_h+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8424 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8426 # Is the header compilable?
8427 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8428 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8429 cat >conftest.$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 $ac_includes_default
8437 #include <linux/version.h>
8439 rm -f conftest.$ac_objext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441 (eval $ac_compile) 2>&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_header_compiler=yes
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8456 ac_header_compiler=no
8458 rm -f conftest.$ac_objext conftest.$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8460 echo "${ECHO_T}$ac_header_compiler" >&6
8462 # Is the header present?
8463 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8464 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 #include <linux/version.h>
8474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } >/dev/null; then
8482 if test -s conftest.err; then
8483 ac_cpp_err=$ac_c_preproc_warn_flag
8490 if test -z "$ac_cpp_err"; then
8491 ac_header_preproc=yes
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8496 ac_header_preproc=no
8498 rm -f conftest.err conftest.$ac_ext
8499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8500 echo "${ECHO_T}$ac_header_preproc" >&6
8502 # So? What about this header?
8503 case $ac_header_compiler:$ac_header_preproc in
8505 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8506 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8508 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8511 ## ------------------------------------ ##
8512 ## Report this to bug-autoconf@gnu.org. ##
8513 ## ------------------------------------ ##
8516 sed "s/^/$as_me: WARNING: /" >&2
8519 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8520 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8522 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8524 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8527 ## ------------------------------------ ##
8528 ## Report this to bug-autoconf@gnu.org. ##
8529 ## ------------------------------------ ##
8532 sed "s/^/$as_me: WARNING: /" >&2
8535 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8536 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8537 if test "${ac_cv_header_linux_version_h+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 ac_cv_header_linux_version_h=$ac_header_preproc
8542 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8543 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8546 if test $ac_cv_header_linux_version_h = yes; then
8554 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
8559 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
8561 # if test -n "$ac_aux_dir"; then
8562 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8564 if test -z "$MKINSTALLDIRS"; then
8565 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8568 # jwz: you know what, screw it. Let's just use the version that I
8569 # already computed in configure.in, instead of this version that came
8570 # with the i18n crud, ok?
8571 MKINSTALLDIRS="$INSTALL_DIRS"
8576 test -d po || mkdir po
8577 if test "x$srcdir" != "x."; then
8578 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8579 posrcprefix="$srcdir/"
8581 posrcprefix="../$srcdir/"
8587 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8588 < $srcdir/po/POTFILES.in > po/POTFILES
8590 MKINSTALLDIRS="$INSTALL_DIRS"
8593 ###############################################################################
8595 # Check for -lXmu (some fucked up vendors don't ship it...)
8597 ###############################################################################
8601 ac_save_CPPFLAGS="$CPPFLAGS"
8602 if test \! -z "$includedir" ; then
8603 CPPFLAGS="$CPPFLAGS -I$includedir"
8605 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8606 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
8607 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
8608 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8612 #line $LINENO "configure"
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8620 #include <X11/Intrinsic.h>
8622 #include <X11/Xmu/Error.h>
8624 rm -f conftest.$ac_objext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8626 (eval $ac_compile) 2>&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 ac_cv_header_X11_Xmu_Error_h=yes
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 ac_cv_header_X11_Xmu_Error_h=no
8643 rm -f conftest.$ac_objext conftest.$ac_ext
8645 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
8646 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
8647 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
8652 CPPFLAGS="$ac_save_CPPFLAGS"
8653 if test "$have_xmu" = no ; then
8654 XMU_SRCS='$(UTILS_SRC)/xmu.c'
8655 XMU_OBJS='$(UTILS_BIN)/xmu.o'
8661 cat >>confdefs.h <<\_ACEOF
8668 ###############################################################################
8670 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
8671 # See comp.windows.x FAQ question 124. The right fix is to
8672 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
8674 ###############################################################################
8676 if test "$have_xmu" = yes ; then
8679 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
8680 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
8681 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 ac_save_LDFLAGS="$LDFLAGS"
8685 if test \! -z "$x_libraries" ; then
8686 LDFLAGS="$LDFLAGS -L$x_libraries"
8688 # Note: this trick never works! (Generally.)
8689 # We're only getting away with using AC_TRY_LINK
8690 # with X libraries because we know it's SunOS.
8691 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
8692 cat >conftest.$ac_ext <<_ACEOF
8693 #line $LINENO "configure"
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710 (eval $ac_link) 2>&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } &&
8714 { ac_try='test -s conftest$ac_exeext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720 ac_cv_sunos_xmu_bug=no
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_sunos_xmu_bug=yes
8727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8728 LDFLAGS="$ac_save_LDFLAGS"
8730 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
8731 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
8732 if test "$ac_cv_sunos_xmu_bug" = yes ; then
8733 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
8734 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
8735 if test "${ac_cv_ld_static+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 ac_save_LDFLAGS="$LDFLAGS"
8739 LDFLAGS="$LDFLAGS -static"
8740 cat >conftest.$ac_ext <<_ACEOF
8741 #line $LINENO "configure"
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -s conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8776 LDFLAGS="$ac_save_LDFLAGS"
8778 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
8779 echo "${ECHO_T}$ac_cv_ld_static" >&6
8780 if test "$ac_cv_ld_static" = yes ; then
8781 LDFLAGS="$LDFLAGS -static"
8783 LDFLAGS="$LDFLAGS -Bstatic"
8791 ###############################################################################
8793 # Handle the --with-hackdir option
8795 ###############################################################################
8798 with_hackdir_req=unspecified
8800 # Check whether --with-hackdir or --without-hackdir was given.
8801 if test "${with_hackdir+set}" = set; then
8802 withval="$with_hackdir"
8803 with_hackdir="$withval"; with_hackdir_req="$withval"
8808 if test x"$with_hackdir" = xyes; then
8809 HACKDIR='${exec_prefix}/lib/xscreensaver'
8810 elif test x"$with_hackdir" = xno; then
8813 # there must be a better way than this...
8814 if test -z "`echo $with_hackdir | sed 's@^/.*@@'`" ; then
8816 HACKDIR=$with_hackdir
8819 HACKDIR="\${exec_prefix}$with_hackdir"
8823 # canonicalize slashes.
8824 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
8826 # This option used to be called --enable-subdir; make sure that is no longer
8827 # used, since configure brain-damagedly ignores unknown --enable options.
8830 # Check whether --enable-subdir or --disable-subdir was given.
8831 if test "${enable_subdir+set}" = set; then
8832 enableval="$enable_subdir"
8835 if test -n "$obsolete_enable"; then
8836 echo "error: the --enable-subdir option has been replaced with"
8837 echo " the new --with-hackdir option; see \`configure --help'"
8838 echo " for more information."
8843 ###############################################################################
8845 # Handle the --with-configdir option
8847 ###############################################################################
8850 with_configdir_req=unspecified
8852 # Check whether --with-configdir or --without-configdir was given.
8853 if test "${with_configdir+set}" = set; then
8854 withval="$with_configdir"
8855 with_configdir="$withval"; with_configdir_req="$withval"
8860 if test x"$with_configdir" = xyes; then
8861 # filled in later...
8863 elif test x"$with_configdir" = xno; then
8864 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
8867 # there must be a better way than this...
8868 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
8870 HACK_CONF_DIR=$with_configdir
8873 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
8880 ###############################################################################
8882 # Check for the SGI SCREEN_SAVER server extension.
8884 ###############################################################################
8887 with_sgi_req=unspecified
8889 # Check whether --with-sgi-ext or --without-sgi-ext was given.
8890 if test "${with_sgi_ext+set}" = set; then
8891 withval="$with_sgi_ext"
8892 with_sgi="$withval"; with_sgi_req="$withval"
8903 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
8904 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
8907 X_CFLAGS="-I$d $X_CFLAGS"
8908 echo "$as_me:$LINENO: result: $d" >&5
8909 echo "${ECHO_T}$d" >&6
8911 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8912 echo "${ECHO_T}not found ($d: no such directory)" >&6
8915 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
8916 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
8919 X_LIBS="-L$d $X_LIBS"
8920 echo "$as_me:$LINENO: result: $d" >&5
8921 echo "${ECHO_T}$d" >&6
8923 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8924 echo "${ECHO_T}not found ($d: no such directory)" >&6
8927 # replace the directory string with "yes".
8929 with_sgi=$with_sgi_req
8934 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
8935 echo " If it is a directory, then \`DIR/include' will be added to"
8936 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8942 if test "$with_sgi" = yes; then
8944 ac_save_CPPFLAGS="$CPPFLAGS"
8945 if test \! -z "$includedir" ; then
8946 CPPFLAGS="$CPPFLAGS -I$includedir"
8948 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8949 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
8950 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
8951 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 cat >conftest.$ac_ext <<_ACEOF
8955 #line $LINENO "configure"
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 #include <X11/Xlib.h>
8963 #include <X11/extensions/XScreenSaver.h>
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967 (eval $ac_compile) 2>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -s conftest.$ac_objext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_header_X11_extensions_XScreenSaver_h=yes
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_cv_header_X11_extensions_XScreenSaver_h=no
8984 rm -f conftest.$ac_objext conftest.$ac_ext
8986 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
8987 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
8988 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
8990 cat >>confdefs.h <<\_ACEOF
8991 #define HAVE_SGI_SAVER_EXTENSION 1
8997 CPPFLAGS="$ac_save_CPPFLAGS"
8999 elif test "$with_sgi" != no; then
9000 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
9005 ###############################################################################
9007 # Check for the MIT-SCREEN-SAVER server extension.
9009 ###############################################################################
9012 with_mit_req=unspecified
9014 # Check whether --with-mit-ext or --without-mit-ext was given.
9015 if test "${with_mit_ext+set}" = set; then
9016 withval="$with_mit_ext"
9017 with_mit="$withval"; with_mit_req="$withval"
9028 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER headers" >&5
9029 echo $ECHO_N "checking for MIT-SCREEN-SAVER headers... $ECHO_C" >&6
9032 X_CFLAGS="-I$d $X_CFLAGS"
9033 echo "$as_me:$LINENO: result: $d" >&5
9034 echo "${ECHO_T}$d" >&6
9036 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9037 echo "${ECHO_T}not found ($d: no such directory)" >&6
9040 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER libs" >&5
9041 echo $ECHO_N "checking for MIT-SCREEN-SAVER libs... $ECHO_C" >&6
9044 X_LIBS="-L$d $X_LIBS"
9045 echo "$as_me:$LINENO: result: $d" >&5
9046 echo "${ECHO_T}$d" >&6
9048 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9049 echo "${ECHO_T}not found ($d: no such directory)" >&6
9052 # replace the directory string with "yes".
9054 with_mit=$with_mit_req
9059 echo "error: argument to --with-mit-ext must be \"yes\", \"no\", or a directory."
9060 echo " If it is a directory, then \`DIR/include' will be added to"
9061 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9067 if test "$with_mit" = yes; then
9069 ac_save_CPPFLAGS="$CPPFLAGS"
9070 if test \! -z "$includedir" ; then
9071 CPPFLAGS="$CPPFLAGS -I$includedir"
9073 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9074 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5
9075 echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6
9076 if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 cat >conftest.$ac_ext <<_ACEOF
9080 #line $LINENO "configure"
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086 #include <X11/Xlib.h>
9088 #include <X11/extensions/scrnsaver.h>
9090 rm -f conftest.$ac_objext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092 (eval $ac_compile) 2>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -s conftest.$ac_objext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_cv_header_X11_extensions_scrnsaver_h=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_cv_header_X11_extensions_scrnsaver_h=no
9109 rm -f conftest.$ac_objext conftest.$ac_ext
9111 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5
9112 echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6
9113 if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then
9118 CPPFLAGS="$ac_save_CPPFLAGS"
9120 # Now check to see if it's really in the library; XF86Free-3.3 ships
9121 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
9123 if test "$have_mit" = yes; then
9125 ac_save_CPPFLAGS="$CPPFLAGS"
9126 ac_save_LDFLAGS="$LDFLAGS"
9127 # ac_save_LIBS="$LIBS"
9129 if test \! -z "$includedir" ; then
9130 CPPFLAGS="$CPPFLAGS -I$includedir"
9132 # note: $X_CFLAGS includes $x_includes
9133 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9135 if test \! -z "$libdir" ; then
9136 LDFLAGS="$LDFLAGS -L$libdir"
9138 # note: $X_LIBS includes $x_libraries
9139 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9141 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXext" >&5
9142 echo $ECHO_N "checking for XScreenSaverRegister in -lXext... $ECHO_C" >&6
9143 if test "${ac_cv_lib_Xext_XScreenSaverRegister+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 ac_check_lib_save_LIBS=$LIBS
9147 LIBS="-lXext -lm $LIBS"
9148 cat >conftest.$ac_ext <<_ACEOF
9149 #line $LINENO "configure"
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9156 /* Override any gcc2 internal prototype to avoid an error. */
9160 /* We use char because int might match the return type of a gcc2
9161 builtin and then its argument prototype would still apply. */
9162 char XScreenSaverRegister ();
9166 XScreenSaverRegister ();
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9173 (eval $ac_link) 2>&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try='test -s conftest$ac_exeext'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9183 ac_cv_lib_Xext_XScreenSaverRegister=yes
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9188 ac_cv_lib_Xext_XScreenSaverRegister=no
9190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9191 LIBS=$ac_check_lib_save_LIBS
9193 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverRegister" >&5
9194 echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverRegister" >&6
9195 if test $ac_cv_lib_Xext_XScreenSaverRegister = yes; then
9201 CPPFLAGS="$ac_save_CPPFLAGS"
9202 LDFLAGS="$ac_save_LDFLAGS"
9203 # LIBS="$ac_save_LIBS"
9206 if test "$have_mit" = no; then
9207 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
9208 # of in Xext. Thank you master, may I have another.
9210 ac_save_CPPFLAGS="$CPPFLAGS"
9211 ac_save_LDFLAGS="$LDFLAGS"
9212 # ac_save_LIBS="$LIBS"
9214 if test \! -z "$includedir" ; then
9215 CPPFLAGS="$CPPFLAGS -I$includedir"
9217 # note: $X_CFLAGS includes $x_includes
9218 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9220 if test \! -z "$libdir" ; then
9221 LDFLAGS="$LDFLAGS -L$libdir"
9223 # note: $X_LIBS includes $x_libraries
9224 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9226 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXExExt" >&5
9227 echo $ECHO_N "checking for XScreenSaverRegister in -lXExExt... $ECHO_C" >&6
9228 if test "${ac_cv_lib_XExExt_XScreenSaverRegister+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 ac_check_lib_save_LIBS=$LIBS
9232 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
9233 cat >conftest.$ac_ext <<_ACEOF
9234 #line $LINENO "configure"
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9241 /* Override any gcc2 internal prototype to avoid an error. */
9245 /* We use char because int might match the return type of a gcc2
9246 builtin and then its argument prototype would still apply. */
9247 char XScreenSaverRegister ();
9251 XScreenSaverRegister ();
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258 (eval $ac_link) 2>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 ac_cv_lib_XExExt_XScreenSaverRegister=yes
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 ac_cv_lib_XExExt_XScreenSaverRegister=no
9275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9276 LIBS=$ac_check_lib_save_LIBS
9278 echo "$as_me:$LINENO: result: $ac_cv_lib_XExExt_XScreenSaverRegister" >&5
9279 echo "${ECHO_T}$ac_cv_lib_XExExt_XScreenSaverRegister" >&6
9280 if test $ac_cv_lib_XExExt_XScreenSaverRegister = yes; then
9281 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
9286 CPPFLAGS="$ac_save_CPPFLAGS"
9287 LDFLAGS="$ac_save_LDFLAGS"
9288 # LIBS="$ac_save_LIBS"
9292 if test "$have_mit" = no; then
9293 # Double fuck! Looks like some versions of XFree86 (whichever version
9294 # it is that comes with RedHat Linux 2.0 -- I can't find a version
9295 # number) put this garbage in Xss instead of Xext. Thank you master,
9296 # may I have another.
9298 ac_save_CPPFLAGS="$CPPFLAGS"
9299 ac_save_LDFLAGS="$LDFLAGS"
9300 # ac_save_LIBS="$LIBS"
9302 if test \! -z "$includedir" ; then
9303 CPPFLAGS="$CPPFLAGS -I$includedir"
9305 # note: $X_CFLAGS includes $x_includes
9306 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9308 if test \! -z "$libdir" ; then
9309 LDFLAGS="$LDFLAGS -L$libdir"
9311 # note: $X_LIBS includes $x_libraries
9312 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9314 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXss" >&5
9315 echo $ECHO_N "checking for XScreenSaverRegister in -lXss... $ECHO_C" >&6
9316 if test "${ac_cv_lib_Xss_XScreenSaverRegister+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 ac_check_lib_save_LIBS=$LIBS
9320 LIBS="-lXss -lX11 -lXext -lm $LIBS"
9321 cat >conftest.$ac_ext <<_ACEOF
9322 #line $LINENO "configure"
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9329 /* Override any gcc2 internal prototype to avoid an error. */
9333 /* We use char because int might match the return type of a gcc2
9334 builtin and then its argument prototype would still apply. */
9335 char XScreenSaverRegister ();
9339 XScreenSaverRegister ();
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346 (eval $ac_link) 2>&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -s conftest$ac_exeext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 ac_cv_lib_Xss_XScreenSaverRegister=yes
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 ac_cv_lib_Xss_XScreenSaverRegister=no
9363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9364 LIBS=$ac_check_lib_save_LIBS
9366 echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverRegister" >&5
9367 echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverRegister" >&6
9368 if test $ac_cv_lib_Xss_XScreenSaverRegister = yes; then
9369 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
9374 CPPFLAGS="$ac_save_CPPFLAGS"
9375 LDFLAGS="$ac_save_LDFLAGS"
9376 # LIBS="$ac_save_LIBS"
9380 if test "$have_mit" = yes; then
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_MIT_SAVER_EXTENSION 1
9389 elif test "$with_mit" != no; then
9390 echo "error: must be yes or no: --with-mit-ext=$with_mit"
9395 ###############################################################################
9397 # Check for the XIDLE server extension.
9399 ###############################################################################
9402 with_xidle_req=unspecified
9404 # Check whether --with-xidle-ext or --without-xidle-ext was given.
9405 if test "${with_xidle_ext+set}" = set; then
9406 withval="$with_xidle_ext"
9407 with_xidle="$withval"; with_xidle_req="$withval"
9413 case "$with_xidle" in
9418 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
9419 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
9420 d=$with_xidle/include
9422 X_CFLAGS="-I$d $X_CFLAGS"
9423 echo "$as_me:$LINENO: result: $d" >&5
9424 echo "${ECHO_T}$d" >&6
9426 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9427 echo "${ECHO_T}not found ($d: no such directory)" >&6
9430 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
9431 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
9434 X_LIBS="-L$d $X_LIBS"
9435 echo "$as_me:$LINENO: result: $d" >&5
9436 echo "${ECHO_T}$d" >&6
9438 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9439 echo "${ECHO_T}not found ($d: no such directory)" >&6
9442 # replace the directory string with "yes".
9443 with_xidle_req="yes"
9444 with_xidle=$with_xidle_req
9449 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
9450 echo " If it is a directory, then \`DIR/include' will be added to"
9451 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9457 if test "$with_xidle" = yes; then
9459 ac_save_CPPFLAGS="$CPPFLAGS"
9460 if test \! -z "$includedir" ; then
9461 CPPFLAGS="$CPPFLAGS -I$includedir"
9463 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9464 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
9465 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
9466 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 cat >conftest.$ac_ext <<_ACEOF
9470 #line $LINENO "configure"
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9476 #include <X11/Xlib.h>
9478 #include <X11/extensions/xidle.h>
9480 rm -f conftest.$ac_objext
9481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9482 (eval $ac_compile) 2>&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } &&
9486 { ac_try='test -s conftest.$ac_objext'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492 ac_cv_header_X11_extensions_xidle_h=yes
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9497 ac_cv_header_X11_extensions_xidle_h=no
9499 rm -f conftest.$ac_objext conftest.$ac_ext
9501 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
9502 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
9503 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
9505 cat >>confdefs.h <<\_ACEOF
9506 #define HAVE_XIDLE_EXTENSION 1
9512 CPPFLAGS="$ac_save_CPPFLAGS"
9513 elif test "$with_xidle" != no; then
9514 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
9519 ###############################################################################
9521 # Check for the SGI-VIDEO-CONTROL server extension.
9523 ###############################################################################
9526 with_sgivc_req=unspecified
9528 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
9529 if test "${with_sgivc_ext+set}" = set; then
9530 withval="$with_sgivc_ext"
9531 with_sgivc="$withval"; with_sgivc_req="$withval"
9537 case "$with_sgivc" in
9542 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
9543 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
9544 d=$with_sgivc/include
9546 X_CFLAGS="-I$d $X_CFLAGS"
9547 echo "$as_me:$LINENO: result: $d" >&5
9548 echo "${ECHO_T}$d" >&6
9550 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9551 echo "${ECHO_T}not found ($d: no such directory)" >&6
9554 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
9555 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
9558 X_LIBS="-L$d $X_LIBS"
9559 echo "$as_me:$LINENO: result: $d" >&5
9560 echo "${ECHO_T}$d" >&6
9562 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9563 echo "${ECHO_T}not found ($d: no such directory)" >&6
9566 # replace the directory string with "yes".
9567 with_sgivc_req="yes"
9568 with_sgivc=$with_sgivc_req
9573 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
9574 echo " If it is a directory, then \`DIR/include' will be added to"
9575 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9581 if test "$with_sgivc" = yes; then
9583 # first check for XSGIvc.h
9585 ac_save_CPPFLAGS="$CPPFLAGS"
9586 if test \! -z "$includedir" ; then
9587 CPPFLAGS="$CPPFLAGS -I$includedir"
9589 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9590 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
9591 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
9592 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 cat >conftest.$ac_ext <<_ACEOF
9596 #line $LINENO "configure"
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 #include <X11/Xlib.h>
9604 #include <X11/extensions/XSGIvc.h>
9606 rm -f conftest.$ac_objext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9608 (eval $ac_compile) 2>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -s conftest.$ac_objext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_header_X11_extensions_XSGIvc_h=yes
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_cv_header_X11_extensions_XSGIvc_h=no
9625 rm -f conftest.$ac_objext conftest.$ac_ext
9627 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
9628 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
9629 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
9634 CPPFLAGS="$ac_save_CPPFLAGS"
9636 # if that succeeded, then check for the -lXsgivc
9637 if test "$have_sgivc" = yes; then
9640 ac_save_CPPFLAGS="$CPPFLAGS"
9641 ac_save_LDFLAGS="$LDFLAGS"
9642 # ac_save_LIBS="$LIBS"
9644 if test \! -z "$includedir" ; then
9645 CPPFLAGS="$CPPFLAGS -I$includedir"
9647 # note: $X_CFLAGS includes $x_includes
9648 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9650 if test \! -z "$libdir" ; then
9651 LDFLAGS="$LDFLAGS -L$libdir"
9653 # note: $X_LIBS includes $x_libraries
9654 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9656 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
9657 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
9658 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 ac_check_lib_save_LIBS=$LIBS
9662 LIBS="-lXsgivc -lXext -lX11 $LIBS"
9663 cat >conftest.$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9671 /* Override any gcc2 internal prototype to avoid an error. */
9675 /* We use char because int might match the return type of a gcc2
9676 builtin and then its argument prototype would still apply. */
9677 char XSGIvcQueryGammaMap ();
9681 XSGIvcQueryGammaMap ();
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688 (eval $ac_link) 2>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -s conftest$ac_exeext'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
9705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9706 LIBS=$ac_check_lib_save_LIBS
9708 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
9709 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
9710 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
9711 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
9716 CPPFLAGS="$ac_save_CPPFLAGS"
9717 LDFLAGS="$ac_save_LDFLAGS"
9718 # LIBS="$ac_save_LIBS"
9722 # if that succeeded, then we've really got it.
9723 if test "$have_sgivc" = yes; then
9724 cat >>confdefs.h <<\_ACEOF
9725 #define HAVE_SGI_VC_EXTENSION 1
9730 elif test "$with_sgivc" != no; then
9731 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
9736 ###############################################################################
9738 # Check for the DPMS server extension.
9740 ###############################################################################
9743 with_dpms_req=unspecified
9745 # Check whether --with-dpms-ext or --without-dpms-ext was given.
9746 if test "${with_dpms_ext+set}" = set; then
9747 withval="$with_dpms_ext"
9748 with_dpms="$withval"; with_dpms_req="$withval"
9754 case "$with_dpms" in
9759 echo "$as_me:$LINENO: checking for DPMS headers" >&5
9760 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
9761 d=$with_dpms/include
9763 X_CFLAGS="-I$d $X_CFLAGS"
9764 echo "$as_me:$LINENO: result: $d" >&5
9765 echo "${ECHO_T}$d" >&6
9767 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9768 echo "${ECHO_T}not found ($d: no such directory)" >&6
9771 echo "$as_me:$LINENO: checking for DPMS libs" >&5
9772 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
9775 X_LIBS="-L$d $X_LIBS"
9776 echo "$as_me:$LINENO: result: $d" >&5
9777 echo "${ECHO_T}$d" >&6
9779 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9780 echo "${ECHO_T}not found ($d: no such directory)" >&6
9783 # replace the directory string with "yes".
9785 with_dpms=$with_dpms_req
9790 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
9791 echo " If it is a directory, then \`DIR/include' will be added to"
9792 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9798 if test "$with_dpms" = yes; then
9800 # first check for dpms.h
9802 ac_save_CPPFLAGS="$CPPFLAGS"
9803 if test \! -z "$includedir" ; then
9804 CPPFLAGS="$CPPFLAGS -I$includedir"
9806 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9807 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
9808 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
9809 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 cat >conftest.$ac_ext <<_ACEOF
9813 #line $LINENO "configure"
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9819 #include <X11/Xlib.h>
9820 #include <X11/Xmd.h>
9822 #include <X11/extensions/dpms.h>
9824 rm -f conftest.$ac_objext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9826 (eval $ac_compile) 2>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -s conftest.$ac_objext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_header_X11_extensions_dpms_h=yes
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9841 ac_cv_header_X11_extensions_dpms_h=no
9843 rm -f conftest.$ac_objext conftest.$ac_ext
9845 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
9846 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
9847 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
9852 CPPFLAGS="$ac_save_CPPFLAGS"
9854 # if that succeeded, then check for the DPMS code in the libraries
9855 if test "$have_dpms" = yes; then
9857 # first look in -lXext (this is where it is with XFree86 4.0)
9860 ac_save_CPPFLAGS="$CPPFLAGS"
9861 ac_save_LDFLAGS="$LDFLAGS"
9862 # ac_save_LIBS="$LIBS"
9864 if test \! -z "$includedir" ; then
9865 CPPFLAGS="$CPPFLAGS -I$includedir"
9867 # note: $X_CFLAGS includes $x_includes
9868 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9870 if test \! -z "$libdir" ; then
9871 LDFLAGS="$LDFLAGS -L$libdir"
9873 # note: $X_LIBS includes $x_libraries
9874 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9876 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
9877 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
9878 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-lXext -lXext -lX11 $LIBS"
9883 cat >conftest.$ac_ext <<_ACEOF
9884 #line $LINENO "configure"
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any gcc2 internal prototype to avoid an error. */
9895 /* We use char because int might match the return type of a gcc2
9896 builtin and then its argument prototype would still apply. */
9906 rm -f conftest.$ac_objext conftest$ac_exeext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9908 (eval $ac_link) 2>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; }; then
9918 ac_cv_lib_Xext_DPMSInfo=yes
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9923 ac_cv_lib_Xext_DPMSInfo=no
9925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9926 LIBS=$ac_check_lib_save_LIBS
9928 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
9929 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
9930 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
9936 CPPFLAGS="$ac_save_CPPFLAGS"
9937 LDFLAGS="$ac_save_LDFLAGS"
9938 # LIBS="$ac_save_LIBS"
9941 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
9942 if test "$have_dpms" = no; then
9944 ac_save_CPPFLAGS="$CPPFLAGS"
9945 ac_save_LDFLAGS="$LDFLAGS"
9946 # ac_save_LIBS="$LIBS"
9948 if test \! -z "$includedir" ; then
9949 CPPFLAGS="$CPPFLAGS -I$includedir"
9951 # note: $X_CFLAGS includes $x_includes
9952 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9954 if test \! -z "$libdir" ; then
9955 LDFLAGS="$LDFLAGS -L$libdir"
9957 # note: $X_LIBS includes $x_libraries
9958 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9960 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
9961 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
9962 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 ac_check_lib_save_LIBS=$LIBS
9966 LIBS="-lXdpms -lXext -lX11 $LIBS"
9967 cat >conftest.$ac_ext <<_ACEOF
9968 #line $LINENO "configure"
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9975 /* Override any gcc2 internal prototype to avoid an error. */
9979 /* We use char because int might match the return type of a gcc2
9980 builtin and then its argument prototype would still apply. */
9990 rm -f conftest.$ac_objext conftest$ac_exeext
9991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9992 (eval $ac_link) 2>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -s conftest$ac_exeext'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 ac_cv_lib_Xdpms_DPMSInfo=yes
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 ac_cv_lib_Xdpms_DPMSInfo=no
10009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10010 LIBS=$ac_check_lib_save_LIBS
10012 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
10013 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
10014 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
10015 have_dpms=yes; XDPMS_LIBS="-lXdpms"
10020 CPPFLAGS="$ac_save_CPPFLAGS"
10021 LDFLAGS="$ac_save_LDFLAGS"
10022 # LIBS="$ac_save_LIBS"
10028 # if that succeeded, then we've really got it.
10029 if test "$have_dpms" = yes; then
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_DPMS_EXTENSION 1
10036 elif test "$with_dpms" != no; then
10037 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
10042 ###############################################################################
10044 # Check for the XINERAMA server extension.
10046 ###############################################################################
10049 with_xinerama_req=unspecified
10051 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
10052 if test "${with_xinerama_ext+set}" = set; then
10053 withval="$with_xinerama_ext"
10054 with_xinerama="$withval"; with_xinerama_req="$withval"
10060 case "$with_xinerama" in
10065 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
10066 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
10067 d=$with_xinerama/include
10068 if test -d $d; then
10069 X_CFLAGS="-I$d $X_CFLAGS"
10070 echo "$as_me:$LINENO: result: $d" >&5
10071 echo "${ECHO_T}$d" >&6
10073 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10074 echo "${ECHO_T}not found ($d: no such directory)" >&6
10077 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
10078 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
10079 d=$with_xinerama/lib
10080 if test -d $d; then
10081 X_LIBS="-L$d $X_LIBS"
10082 echo "$as_me:$LINENO: result: $d" >&5
10083 echo "${ECHO_T}$d" >&6
10085 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10086 echo "${ECHO_T}not found ($d: no such directory)" >&6
10089 # replace the directory string with "yes".
10090 with_xinerama_req="yes"
10091 with_xinerama=$with_xinerama_req
10096 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
10097 echo " If it is a directory, then \`DIR/include' will be added to"
10098 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10104 if test "$with_xinerama" = yes; then
10106 # first check for Xinerama.h
10108 ac_save_CPPFLAGS="$CPPFLAGS"
10109 if test \! -z "$includedir" ; then
10110 CPPFLAGS="$CPPFLAGS -I$includedir"
10112 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10113 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
10114 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
10115 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 cat >conftest.$ac_ext <<_ACEOF
10119 #line $LINENO "configure"
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125 #include <X11/Xlib.h>
10127 #include <X11/extensions/Xinerama.h>
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131 (eval $ac_compile) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -s conftest.$ac_objext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_cv_header_X11_extensions_Xinerama_h=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_cv_header_X11_extensions_Xinerama_h=no
10148 rm -f conftest.$ac_objext conftest.$ac_ext
10150 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
10151 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
10152 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
10157 CPPFLAGS="$ac_save_CPPFLAGS"
10159 # if that succeeded, then check for the XINERAMA code in the libraries
10160 if test "$have_xinerama" = yes; then
10162 # first look in -lXext
10165 ac_save_CPPFLAGS="$CPPFLAGS"
10166 ac_save_LDFLAGS="$LDFLAGS"
10167 # ac_save_LIBS="$LIBS"
10169 if test \! -z "$includedir" ; then
10170 CPPFLAGS="$CPPFLAGS -I$includedir"
10172 # note: $X_CFLAGS includes $x_includes
10173 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10175 if test \! -z "$libdir" ; then
10176 LDFLAGS="$LDFLAGS -L$libdir"
10178 # note: $X_LIBS includes $x_libraries
10179 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10181 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
10182 echo $ECHO_N "checking for XineramaQueryScreens in -lXext... $ECHO_C" >&6
10183 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-lXext -lXext -lX11 $LIBS"
10188 cat >conftest.$ac_ext <<_ACEOF
10189 #line $LINENO "configure"
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h. */
10196 /* Override any gcc2 internal prototype to avoid an error. */
10200 /* We use char because int might match the return type of a gcc2
10201 builtin and then its argument prototype would still apply. */
10202 char XineramaQueryScreens ();
10206 XineramaQueryScreens ();
10211 rm -f conftest.$ac_objext conftest$ac_exeext
10212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10213 (eval $ac_link) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -s conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 ac_cv_lib_Xext_XineramaQueryScreens=yes
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ac_cv_lib_Xext_XineramaQueryScreens=no
10230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10231 LIBS=$ac_check_lib_save_LIBS
10233 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
10234 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryScreens" >&6
10235 if test $ac_cv_lib_Xext_XineramaQueryScreens = yes; then
10241 CPPFLAGS="$ac_save_CPPFLAGS"
10242 LDFLAGS="$ac_save_LDFLAGS"
10243 # LIBS="$ac_save_LIBS"
10246 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
10247 if test "$have_xinerama" = no; then
10249 ac_save_CPPFLAGS="$CPPFLAGS"
10250 ac_save_LDFLAGS="$LDFLAGS"
10251 # ac_save_LIBS="$LIBS"
10253 if test \! -z "$includedir" ; then
10254 CPPFLAGS="$CPPFLAGS -I$includedir"
10256 # note: $X_CFLAGS includes $x_includes
10257 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10259 if test \! -z "$libdir" ; then
10260 LDFLAGS="$LDFLAGS -L$libdir"
10262 # note: $X_LIBS includes $x_libraries
10263 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10265 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
10266 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
10267 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 ac_check_lib_save_LIBS=$LIBS
10271 LIBS="-lXinerama -lXext -lX11 $LIBS"
10272 cat >conftest.$ac_ext <<_ACEOF
10273 #line $LINENO "configure"
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10280 /* Override any gcc2 internal prototype to avoid an error. */
10284 /* We use char because int might match the return type of a gcc2
10285 builtin and then its argument prototype would still apply. */
10286 char XineramaQueryScreens ();
10290 XineramaQueryScreens ();
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297 (eval $ac_link) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -s conftest$ac_exeext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_lib_Xinerama_XineramaQueryScreens=no
10314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
10318 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
10319 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
10320 have_xinerama=yes; SAVER_LIBS="$SAVER_LIBS -lXinerama"
10325 CPPFLAGS="$ac_save_CPPFLAGS"
10326 LDFLAGS="$ac_save_LDFLAGS"
10327 # LIBS="$ac_save_LIBS"
10332 # if that succeeded, then we've really got it.
10333 if test "$have_xinerama" = yes; then
10334 cat >>confdefs.h <<\_ACEOF
10335 #define HAVE_XINERAMA 1
10340 elif test "$with_xinerama" != no; then
10341 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
10346 ###############################################################################
10348 # Check for the XF86VMODE server extension (for virtual screens.)
10350 ###############################################################################
10353 with_xf86vmode_req=unspecified
10355 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
10356 if test "${with_xf86vmode_ext+set}" = set; then
10357 withval="$with_xf86vmode_ext"
10358 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
10364 case "$with_xf86vmode" in
10369 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
10370 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
10371 d=$with_xf86vmode/include
10372 if test -d $d; then
10373 X_CFLAGS="-I$d $X_CFLAGS"
10374 echo "$as_me:$LINENO: result: $d" >&5
10375 echo "${ECHO_T}$d" >&6
10377 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10378 echo "${ECHO_T}not found ($d: no such directory)" >&6
10381 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
10382 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
10383 d=$with_xf86vmode/lib
10384 if test -d $d; then
10385 X_LIBS="-L$d $X_LIBS"
10386 echo "$as_me:$LINENO: result: $d" >&5
10387 echo "${ECHO_T}$d" >&6
10389 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10390 echo "${ECHO_T}not found ($d: no such directory)" >&6
10393 # replace the directory string with "yes".
10394 with_xf86vmode_req="yes"
10395 with_xf86vmode=$with_xf86vmode_req
10400 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
10401 echo " If it is a directory, then \`DIR/include' will be added to"
10402 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10408 if test "$with_xf86vmode" = yes; then
10410 # first check for xf86vmode.h
10412 ac_save_CPPFLAGS="$CPPFLAGS"
10413 if test \! -z "$includedir" ; then
10414 CPPFLAGS="$CPPFLAGS -I$includedir"
10416 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10417 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
10418 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
10419 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 cat >conftest.$ac_ext <<_ACEOF
10423 #line $LINENO "configure"
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 #include <X11/Xlib.h>
10431 #include <X11/extensions/xf86vmode.h>
10433 rm -f conftest.$ac_objext
10434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10435 (eval $ac_compile) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -s conftest.$ac_objext'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_cv_header_X11_extensions_xf86vmode_h=yes
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_cv_header_X11_extensions_xf86vmode_h=no
10452 rm -f conftest.$ac_objext conftest.$ac_ext
10454 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
10455 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
10456 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
10461 CPPFLAGS="$ac_save_CPPFLAGS"
10463 # if that succeeded, then check for the -lXxf86vm
10464 if test "$have_xf86vmode" = yes; then
10467 ac_save_CPPFLAGS="$CPPFLAGS"
10468 ac_save_LDFLAGS="$LDFLAGS"
10469 # ac_save_LIBS="$LIBS"
10471 if test \! -z "$includedir" ; then
10472 CPPFLAGS="$CPPFLAGS -I$includedir"
10474 # note: $X_CFLAGS includes $x_includes
10475 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10477 if test \! -z "$libdir" ; then
10478 LDFLAGS="$LDFLAGS -L$libdir"
10480 # note: $X_LIBS includes $x_libraries
10481 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10483 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
10484 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
10485 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 ac_check_lib_save_LIBS=$LIBS
10489 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10490 cat >conftest.$ac_ext <<_ACEOF
10491 #line $LINENO "configure"
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10498 /* Override any gcc2 internal prototype to avoid an error. */
10502 /* We use char because int might match the return type of a gcc2
10503 builtin and then its argument prototype would still apply. */
10504 char XF86VidModeGetViewPort ();
10508 XF86VidModeGetViewPort ();
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10515 (eval $ac_link) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try='test -s conftest$ac_exeext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10530 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
10532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10533 LIBS=$ac_check_lib_save_LIBS
10535 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
10536 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
10537 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
10538 have_xf86vmode=yes; SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10543 CPPFLAGS="$ac_save_CPPFLAGS"
10544 LDFLAGS="$ac_save_LDFLAGS"
10545 # LIBS="$ac_save_LIBS"
10549 # if that succeeded, then we've really got it.
10550 if test "$have_xf86vmode" = yes; then
10551 cat >>confdefs.h <<\_ACEOF
10552 #define HAVE_XF86VMODE 1
10557 elif test "$with_xf86vmode" != no; then
10558 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
10563 ###############################################################################
10565 # Check for the XF86VMODE server extension (for gamma fading.)
10567 ###############################################################################
10570 have_xf86gamma_ramp=no
10571 with_xf86gamma_req=unspecified
10573 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
10574 if test "${with_xf86gamma_ext+set}" = set; then
10575 withval="$with_xf86gamma_ext"
10576 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
10582 case "$with_xf86gamma" in
10587 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
10588 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
10589 d=$with_xf86gamma/include
10590 if test -d $d; then
10591 X_CFLAGS="-I$d $X_CFLAGS"
10592 echo "$as_me:$LINENO: result: $d" >&5
10593 echo "${ECHO_T}$d" >&6
10595 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10596 echo "${ECHO_T}not found ($d: no such directory)" >&6
10599 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
10600 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
10601 d=$with_xf86gamma/lib
10602 if test -d $d; then
10603 X_LIBS="-L$d $X_LIBS"
10604 echo "$as_me:$LINENO: result: $d" >&5
10605 echo "${ECHO_T}$d" >&6
10607 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10608 echo "${ECHO_T}not found ($d: no such directory)" >&6
10611 # replace the directory string with "yes".
10612 with_xf86gamma_req="yes"
10613 with_xf86gamma=$with_xf86gamma_req
10618 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
10619 echo " If it is a directory, then \`DIR/include' will be added to"
10620 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10626 if test "$with_xf86gamma" = yes; then
10628 # first check for xf86vmode.h, if we haven't already
10629 if test "$have_xf86vmode" = yes; then
10633 ac_save_CPPFLAGS="$CPPFLAGS"
10634 if test \! -z "$includedir" ; then
10635 CPPFLAGS="$CPPFLAGS -I$includedir"
10637 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10638 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
10639 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
10640 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 cat >conftest.$ac_ext <<_ACEOF
10644 #line $LINENO "configure"
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <X11/Xlib.h>
10652 #include <X11/extensions/xf86vmode.h>
10654 rm -f conftest.$ac_objext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656 (eval $ac_compile) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 ac_cv_header_X11_extensions_xf86vmode_h=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 ac_cv_header_X11_extensions_xf86vmode_h=no
10673 rm -f conftest.$ac_objext conftest.$ac_ext
10675 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
10676 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
10677 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
10682 CPPFLAGS="$ac_save_CPPFLAGS"
10685 # if that succeeded, then check for the -lXxf86vm
10686 if test "$have_xf86gamma" = yes; then
10689 ac_save_CPPFLAGS="$CPPFLAGS"
10690 ac_save_LDFLAGS="$LDFLAGS"
10691 # ac_save_LIBS="$LIBS"
10693 if test \! -z "$includedir" ; then
10694 CPPFLAGS="$CPPFLAGS -I$includedir"
10696 # note: $X_CFLAGS includes $x_includes
10697 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10699 if test \! -z "$libdir" ; then
10700 LDFLAGS="$LDFLAGS -L$libdir"
10702 # note: $X_LIBS includes $x_libraries
10703 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10705 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
10706 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
10707 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 ac_check_lib_save_LIBS=$LIBS
10711 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10712 cat >conftest.$ac_ext <<_ACEOF
10713 #line $LINENO "configure"
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10720 /* Override any gcc2 internal prototype to avoid an error. */
10724 /* We use char because int might match the return type of a gcc2
10725 builtin and then its argument prototype would still apply. */
10726 char XF86VidModeSetGamma ();
10730 XF86VidModeSetGamma ();
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10737 (eval $ac_link) 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 { ac_try='test -s conftest$ac_exeext'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10752 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
10754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_check_lib_save_LIBS
10757 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
10758 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
10759 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
10765 CPPFLAGS="$ac_save_CPPFLAGS"
10766 LDFLAGS="$ac_save_LDFLAGS"
10767 # LIBS="$ac_save_LIBS"
10771 # check for the Ramp versions of the functions too.
10772 if test "$have_xf86gamma" = yes; then
10773 have_xf86gamma_ramp=no
10775 ac_save_CPPFLAGS="$CPPFLAGS"
10776 ac_save_LDFLAGS="$LDFLAGS"
10777 # ac_save_LIBS="$LIBS"
10779 if test \! -z "$includedir" ; then
10780 CPPFLAGS="$CPPFLAGS -I$includedir"
10782 # note: $X_CFLAGS includes $x_includes
10783 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10785 if test \! -z "$libdir" ; then
10786 LDFLAGS="$LDFLAGS -L$libdir"
10788 # note: $X_LIBS includes $x_libraries
10789 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10791 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
10792 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
10793 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 ac_check_lib_save_LIBS=$LIBS
10797 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10798 cat >conftest.$ac_ext <<_ACEOF
10799 #line $LINENO "configure"
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10806 /* Override any gcc2 internal prototype to avoid an error. */
10810 /* We use char because int might match the return type of a gcc2
10811 builtin and then its argument prototype would still apply. */
10812 char XF86VidModeSetGammaRamp ();
10816 XF86VidModeSetGammaRamp ();
10821 rm -f conftest.$ac_objext conftest$ac_exeext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10823 (eval $ac_link) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
10840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10843 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
10844 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
10845 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
10846 have_xf86gamma_ramp=yes
10851 CPPFLAGS="$ac_save_CPPFLAGS"
10852 LDFLAGS="$ac_save_LDFLAGS"
10853 # LIBS="$ac_save_LIBS"
10857 # if those tests succeeded, then we've really got the functions.
10858 if test "$have_xf86gamma" = yes; then
10859 cat >>confdefs.h <<\_ACEOF
10860 #define HAVE_XF86VMODE_GAMMA 1
10865 if test "$have_xf86gamma_ramp" = yes; then
10866 cat >>confdefs.h <<\_ACEOF
10867 #define HAVE_XF86VMODE_GAMMA_RAMP 1
10872 # pull in the lib, if we haven't already
10873 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
10874 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10877 elif test "$with_xf86gamma" != no; then
10878 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
10883 ###############################################################################
10885 # Check for the RANDR (Resize and Rotate) server extension.
10887 # We need this to detect when the resolution of the desktop
10888 # has changed out from under us (this is a newer, different
10889 # mechanism than the XF86VMODE virtual viewports.)
10891 ###############################################################################
10894 with_randr_req=unspecified
10896 # Check whether --with-randr-ext or --without-randr-ext was given.
10897 if test "${with_randr_ext+set}" = set; then
10898 withval="$with_randr_ext"
10899 with_randr="$withval"; with_randr_req="$withval"
10905 case "$with_randr" in
10910 echo "$as_me:$LINENO: checking for RANDR headers" >&5
10911 echo $ECHO_N "checking for RANDR headers... $ECHO_C" >&6
10912 d=$with_randr/include
10913 if test -d $d; then
10914 X_CFLAGS="-I$d $X_CFLAGS"
10915 echo "$as_me:$LINENO: result: $d" >&5
10916 echo "${ECHO_T}$d" >&6
10918 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10919 echo "${ECHO_T}not found ($d: no such directory)" >&6
10922 echo "$as_me:$LINENO: checking for RANDR libs" >&5
10923 echo $ECHO_N "checking for RANDR libs... $ECHO_C" >&6
10925 if test -d $d; then
10926 X_LIBS="-L$d $X_LIBS"
10927 echo "$as_me:$LINENO: result: $d" >&5
10928 echo "${ECHO_T}$d" >&6
10930 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10931 echo "${ECHO_T}not found ($d: no such directory)" >&6
10934 # replace the directory string with "yes".
10935 with_randr_req="yes"
10936 with_randr=$with_randr_req
10941 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
10942 echo " If it is a directory, then \`DIR/include' will be added to"
10943 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10949 if test "$with_randr" = yes; then
10951 # first check for Randr.h
10953 ac_save_CPPFLAGS="$CPPFLAGS"
10954 if test \! -z "$includedir" ; then
10955 CPPFLAGS="$CPPFLAGS -I$includedir"
10957 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10958 echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
10959 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
10960 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 #include <X11/Xlib.h>
10972 #include <X11/extensions/Xrandr.h>
10974 rm -f conftest.$ac_objext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10976 (eval $ac_compile) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try='test -s conftest.$ac_objext'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; }; then
10986 ac_cv_header_X11_extensions_Xrandr_h=yes
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10991 ac_cv_header_X11_extensions_Xrandr_h=no
10993 rm -f conftest.$ac_objext conftest.$ac_ext
10995 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
10996 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
10997 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
11002 CPPFLAGS="$ac_save_CPPFLAGS"
11004 # if that succeeded, then check for the XRR code in the libraries
11005 if test "$have_randr" = yes; then
11007 # RANDR probably needs -lXrender
11010 ac_save_CPPFLAGS="$CPPFLAGS"
11011 ac_save_LDFLAGS="$LDFLAGS"
11012 # ac_save_LIBS="$LIBS"
11014 if test \! -z "$includedir" ; then
11015 CPPFLAGS="$CPPFLAGS -I$includedir"
11017 # note: $X_CFLAGS includes $x_includes
11018 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11020 if test \! -z "$libdir" ; then
11021 LDFLAGS="$LDFLAGS -L$libdir"
11023 # note: $X_LIBS includes $x_libraries
11024 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11026 echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
11027 echo $ECHO_N "checking for XRenderSetSubpixelOrder in -lXrender... $ECHO_C" >&6
11028 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-lXrender -lXext -lX11 $LIBS"
11033 cat >conftest.$ac_ext <<_ACEOF
11034 #line $LINENO "configure"
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11041 /* Override any gcc2 internal prototype to avoid an error. */
11045 /* We use char because int might match the return type of a gcc2
11046 builtin and then its argument prototype would still apply. */
11047 char XRenderSetSubpixelOrder ();
11051 XRenderSetSubpixelOrder ();
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11058 (eval $ac_link) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -s conftest$ac_exeext'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; }; then
11068 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
11075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11078 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
11079 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6
11080 if test $ac_cv_lib_Xrender_XRenderSetSubpixelOrder = yes; then
11081 xrender_libs="-lXrender"
11086 CPPFLAGS="$ac_save_CPPFLAGS"
11087 LDFLAGS="$ac_save_LDFLAGS"
11088 # LIBS="$ac_save_LIBS"
11091 # first look for RANDR in -lXext
11094 ac_save_CPPFLAGS="$CPPFLAGS"
11095 ac_save_LDFLAGS="$LDFLAGS"
11096 # ac_save_LIBS="$LIBS"
11098 if test \! -z "$includedir" ; then
11099 CPPFLAGS="$CPPFLAGS -I$includedir"
11101 # note: $X_CFLAGS includes $x_includes
11102 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11104 if test \! -z "$libdir" ; then
11105 LDFLAGS="$LDFLAGS -L$libdir"
11107 # note: $X_LIBS includes $x_libraries
11108 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11110 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
11111 echo $ECHO_N "checking for XRRGetScreenInfo in -lXext... $ECHO_C" >&6
11112 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 ac_check_lib_save_LIBS=$LIBS
11116 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
11117 cat >conftest.$ac_ext <<_ACEOF
11118 #line $LINENO "configure"
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11125 /* Override any gcc2 internal prototype to avoid an error. */
11129 /* We use char because int might match the return type of a gcc2
11130 builtin and then its argument prototype would still apply. */
11131 char XRRGetScreenInfo ();
11135 XRRGetScreenInfo ();
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11142 (eval $ac_link) 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_lib_Xext_XRRGetScreenInfo=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_cv_lib_Xext_XRRGetScreenInfo=no
11159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11160 LIBS=$ac_check_lib_save_LIBS
11162 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
11163 echo "${ECHO_T}$ac_cv_lib_Xext_XRRGetScreenInfo" >&6
11164 if test $ac_cv_lib_Xext_XRRGetScreenInfo = yes; then
11165 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
11170 CPPFLAGS="$ac_save_CPPFLAGS"
11171 LDFLAGS="$ac_save_LDFLAGS"
11172 # LIBS="$ac_save_LIBS"
11175 # if that failed, look in -lXrandr
11176 if test "$have_randr" = no; then
11178 ac_save_CPPFLAGS="$CPPFLAGS"
11179 ac_save_LDFLAGS="$LDFLAGS"
11180 # ac_save_LIBS="$LIBS"
11182 if test \! -z "$includedir" ; then
11183 CPPFLAGS="$CPPFLAGS -I$includedir"
11185 # note: $X_CFLAGS includes $x_includes
11186 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11188 if test \! -z "$libdir" ; then
11189 LDFLAGS="$LDFLAGS -L$libdir"
11191 # note: $X_LIBS includes $x_libraries
11192 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11194 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
11195 echo $ECHO_N "checking for XRRGetScreenInfo in -lXrandr... $ECHO_C" >&6
11196 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
11201 cat >conftest.$ac_ext <<_ACEOF
11202 #line $LINENO "configure"
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11209 /* Override any gcc2 internal prototype to avoid an error. */
11213 /* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */
11215 char XRRGetScreenInfo ();
11219 XRRGetScreenInfo ();
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
11243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11244 LIBS=$ac_check_lib_save_LIBS
11246 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
11247 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6
11248 if test $ac_cv_lib_Xrandr_XRRGetScreenInfo = yes; then
11249 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
11254 CPPFLAGS="$ac_save_CPPFLAGS"
11255 LDFLAGS="$ac_save_LDFLAGS"
11256 # LIBS="$ac_save_LIBS"
11261 # if that succeeded, then we've really got it.
11262 if test "$have_randr" = yes; then
11263 cat >>confdefs.h <<\_ACEOF
11264 #define HAVE_RANDR 1
11269 elif test "$with_randr" != no; then
11270 echo "error: must be yes or no: --with-randr-ext=$with_randr"
11275 ###############################################################################
11277 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
11278 # using other XF86 stuff.)
11280 ###############################################################################
11282 have_xf86miscsetgrabkeysstate=no
11283 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
11285 ac_save_CPPFLAGS="$CPPFLAGS"
11286 ac_save_LDFLAGS="$LDFLAGS"
11287 # ac_save_LIBS="$LIBS"
11289 if test \! -z "$includedir" ; then
11290 CPPFLAGS="$CPPFLAGS -I$includedir"
11292 # note: $X_CFLAGS includes $x_includes
11293 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11295 if test \! -z "$libdir" ; then
11296 LDFLAGS="$LDFLAGS -L$libdir"
11298 # note: $X_LIBS includes $x_libraries
11299 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11301 echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
11302 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6
11303 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 ac_check_lib_save_LIBS=$LIBS
11307 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
11308 cat >conftest.$ac_ext <<_ACEOF
11309 #line $LINENO "configure"
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11316 /* Override any gcc2 internal prototype to avoid an error. */
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11322 char XF86MiscSetGrabKeysState ();
11326 XF86MiscSetGrabKeysState ();
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333 (eval $ac_link) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -s conftest$ac_exeext'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
11350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11351 LIBS=$ac_check_lib_save_LIBS
11353 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
11354 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6
11355 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
11356 have_xf86miscsetgrabkeysstate=yes
11361 CPPFLAGS="$ac_save_CPPFLAGS"
11362 LDFLAGS="$ac_save_LDFLAGS"
11363 # LIBS="$ac_save_LIBS"
11365 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
11366 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
11367 cat >>confdefs.h <<\_ACEOF
11368 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
11375 ###############################################################################
11377 # Check for HP XHPDisableReset and XHPEnableReset.
11379 ###############################################################################
11381 echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
11382 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6
11384 ac_save_CPPFLAGS="$CPPFLAGS"
11385 if test \! -z "$includedir" ; then
11386 CPPFLAGS="$CPPFLAGS -I$includedir"
11388 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 #include <X11/XHPlib.h>
11399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11400 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
11401 cat >>confdefs.h <<\_ACEOF
11402 #define HAVE_XHPDISABLERESET 1
11405 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
11406 echo "$as_me:$LINENO: result: yes" >&5
11407 echo "${ECHO_T}yes" >&6
11409 echo "$as_me:$LINENO: result: no" >&5
11410 echo "${ECHO_T}no" >&6
11414 CPPFLAGS="$ac_save_CPPFLAGS"
11417 ###############################################################################
11419 # Check for /proc/interrupts.
11421 ###############################################################################
11423 have_proc_interrupts=no
11424 with_proc_interrupts_req=unspecified
11426 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
11427 if test "${with_proc_interrupts+set}" = set; then
11428 withval="$with_proc_interrupts"
11429 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
11431 with_proc_interrupts=yes
11434 if test "$with_proc_interrupts" = yes; then
11436 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
11437 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
11438 if test "${ac_cv_have_proc_interrupts+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 ac_cv_have_proc_interrupts=no
11442 if grep keyboard /proc/interrupts >/dev/null 2>&1 ; then
11443 ac_cv_have_proc_interrupts=yes
11447 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
11448 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
11449 have_proc_interrupts=$ac_cv_have_proc_interrupts
11451 if test "$have_proc_interrupts" = yes; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define HAVE_PROC_INTERRUPTS 1
11458 elif test "$with_proc_interrupts" != no; then
11459 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
11464 ###############################################################################
11466 # The --enable-locking option
11468 ###############################################################################
11470 # Check whether --enable-locking or --disable-locking was given.
11471 if test "${enable_locking+set}" = set; then
11472 enableval="$enable_locking"
11473 enable_locking="$enableval"
11477 if test "$enable_locking" = yes; then
11479 elif test "$enable_locking" = no; then
11480 cat >>confdefs.h <<\_ACEOF
11481 #define NO_LOCKING 1
11485 echo "error: must be yes or no: --enable-locking=$enable_locking"
11489 # We can't lock on MacOS X, so don't even bother compiling in support for it.
11491 if test "$ac_macosx" = yes; then
11492 if test "$enable_locking" = yes; then
11493 echo "$as_me:$LINENO: result: locking disabled: it doesn't work on MacOS X" >&5
11494 echo "${ECHO_T}locking disabled: it doesn't work on MacOS X" >&6
11496 cat >>confdefs.h <<\_ACEOF
11497 #define NO_LOCKING 1
11504 ###############################################################################
11506 # The --enable-vt-locking option
11508 ###############################################################################
11510 #ac_vt_lockswitch=no
11511 #AC_ARG_ENABLE(vt-locking,[
11512 # --enable-vt-locking Compile in support for locking Virtual Terminals.
11513 # This is the default if the system supports it, and
11514 # if locking support is included (--enable-locking.)
11515 # --disable-vt-locking Do not allow locking of VTs, even if locking is
11517 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
11518 #if test "$enable_vt_locking" = yes; then
11520 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
11521 # [AC_TRY_COMPILE([#include <fcntl.h>
11522 # #include <sys/ioctl.h>
11523 # #include <sys/vt.h>],
11524 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
11525 # [ac_cv_vt_lockswitch=yes],
11526 # [ac_cv_vt_lockswitch=no])])
11527 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
11529 #elif test "$enable_vt_locking" = no; then
11532 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
11536 #if test "$ac_vt_lockswitch" = yes; then
11537 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
11538 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
11539 # # #### but it doesn't work yet, so don't worry about that for now.
11544 ###############################################################################
11548 ###############################################################################
11552 # Solaris systems tend to come with PAM misconfigured.
11553 # Don't build it by default, even if the headers exist.
11554 with_pam_default=no
11557 # Default to building PAM support on all other systems, if it exists.
11558 with_pam_default=yes
11563 with_pam_req=unspecified
11566 # Check whether --with-pam or --without-pam was given.
11567 if test "${with_pam+set}" = set; then
11568 withval="$with_pam"
11569 with_pam="$withval"; with_pam_req="$withval"
11571 with_pam=$with_pam_default
11575 case "$with_pam" in
11580 echo "$as_me:$LINENO: checking for PAM headers" >&5
11581 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
11582 d=$with_pam/include
11583 if test -d $d; then
11584 X_CFLAGS="-I$d $X_CFLAGS"
11585 echo "$as_me:$LINENO: result: $d" >&5
11586 echo "${ECHO_T}$d" >&6
11588 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11589 echo "${ECHO_T}not found ($d: no such directory)" >&6
11592 echo "$as_me:$LINENO: checking for PAM libs" >&5
11593 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
11595 if test -d $d; then
11596 X_LIBS="-L$d $X_LIBS"
11597 echo "$as_me:$LINENO: result: $d" >&5
11598 echo "${ECHO_T}$d" >&6
11600 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11601 echo "${ECHO_T}not found ($d: no such directory)" >&6
11604 # replace the directory string with "yes".
11606 with_pam=$with_pam_req
11611 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
11612 echo " If it is a directory, then \`DIR/include' will be added to"
11613 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11619 if test "$enable_locking" = yes -a "$with_pam" = yes; then
11620 echo "$as_me:$LINENO: checking for PAM" >&5
11621 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
11622 if test "${ac_cv_pam+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 ac_save_CPPFLAGS="$CPPFLAGS"
11627 if test \! -z "$includedir" ; then
11628 CPPFLAGS="$CPPFLAGS -I$includedir"
11630 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 #line $LINENO "configure"
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11638 #include <security/pam_appl.h>
11647 rm -f conftest.$ac_objext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649 (eval $ac_compile) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11666 rm -f conftest.$ac_objext conftest.$ac_ext
11667 CPPFLAGS="$ac_save_CPPFLAGS"
11669 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
11670 echo "${ECHO_T}$ac_cv_pam" >&6
11671 if test "$ac_cv_pam" = yes ; then
11673 cat >>confdefs.h <<\_ACEOF
11677 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
11679 # libpam typically requires dlopen and dlsym. On FreeBSD,
11680 # those are in libc. On Linux and Solaris, they're in libdl.
11681 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11682 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11683 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 ac_check_lib_save_LIBS=$LIBS
11688 cat >conftest.$ac_ext <<_ACEOF
11689 #line $LINENO "configure"
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11696 /* Override any gcc2 internal prototype to avoid an error. */
11700 /* We use char because int might match the return type of a gcc2
11701 builtin and then its argument prototype would still apply. */
11711 rm -f conftest.$ac_objext conftest$ac_exeext
11712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11713 (eval $ac_link) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -s conftest$ac_exeext'
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
11723 ac_cv_lib_dl_dlopen=yes
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 ac_cv_lib_dl_dlopen=no
11730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11731 LIBS=$ac_check_lib_save_LIBS
11733 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11734 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11735 if test $ac_cv_lib_dl_dlopen = yes; then
11736 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
11740 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
11742 echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
11743 echo $ECHO_N "checking for sigtimedwait in -lc... $ECHO_C" >&6
11744 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 ac_check_lib_save_LIBS=$LIBS
11749 cat >conftest.$ac_ext <<_ACEOF
11750 #line $LINENO "configure"
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11757 /* Override any gcc2 internal prototype to avoid an error. */
11761 /* We use char because int might match the return type of a gcc2
11762 builtin and then its argument prototype would still apply. */
11763 char sigtimedwait ();
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_sigtimedwait=yes
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 ac_cv_lib_c_sigtimedwait=no
11791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11792 LIBS=$ac_check_lib_save_LIBS
11794 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
11795 echo "${ECHO_T}$ac_cv_lib_c_sigtimedwait" >&6
11796 if test $ac_cv_lib_c_sigtimedwait = yes; then
11800 if test "$have_timedwait" = no ; then
11801 echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
11802 echo $ECHO_N "checking for sigtimedwait in -lrt... $ECHO_C" >&6
11803 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 ac_check_lib_save_LIBS=$LIBS
11808 cat >conftest.$ac_ext <<_ACEOF
11809 #line $LINENO "configure"
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11816 /* Override any gcc2 internal prototype to avoid an error. */
11820 /* We use char because int might match the return type of a gcc2
11821 builtin and then its argument prototype would still apply. */
11822 char sigtimedwait ();
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833 (eval $ac_link) 2>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -s conftest$ac_exeext'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 ac_cv_lib_rt_sigtimedwait=yes
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_cv_lib_rt_sigtimedwait=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_rt_sigtimedwait" >&5
11854 echo "${ECHO_T}$ac_cv_lib_rt_sigtimedwait" >&6
11855 if test $ac_cv_lib_rt_sigtimedwait = yes; then
11856 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
11861 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
11862 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
11863 if test "${ac_cv_pam_strerror_args+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11874 #include <stdlib.h>
11875 #include <security/pam_appl.h>
11879 pam_handle_t *pamh = 0;
11880 char *s = pam_strerror(pamh, PAM_SUCCESS);
11885 rm -f conftest.$ac_objext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887 (eval $ac_compile) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_pam_strerror_args=2
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 cat >conftest.$ac_ext <<_ACEOF
11903 #line $LINENO "configure"
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11910 #include <stdlib.h>
11911 #include <security/pam_appl.h>
11916 pam_strerror(PAM_SUCCESS);
11921 rm -f conftest.$ac_objext
11922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11923 (eval $ac_compile) 2>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -s conftest.$ac_objext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_pam_strerror_args=1
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_pam_strerror_args=0
11940 rm -f conftest.$ac_objext conftest.$ac_ext
11942 rm -f conftest.$ac_objext conftest.$ac_ext
11943 ac_cv_pam_strerror_args=$ac_pam_strerror_args
11946 ac_pam_strerror_args=$ac_cv_pam_strerror_args
11947 if test "$ac_pam_strerror_args" = 1 ; then
11948 echo "$as_me:$LINENO: result: one argument" >&5
11949 echo "${ECHO_T}one argument" >&6
11950 elif test "$ac_pam_strerror_args" = 2 ; then
11951 cat >>confdefs.h <<\_ACEOF
11952 #define PAM_STRERROR_TWO_ARGS 1
11955 echo "$as_me:$LINENO: result: two arguments" >&5
11956 echo "${ECHO_T}two arguments" >&6
11958 echo "$as_me:$LINENO: result: unknown" >&5
11959 echo "${ECHO_T}unknown" >&6
11965 ###############################################################################
11967 # Check for Kerberos.
11969 ###############################################################################
11973 with_kerberos_req=unspecified
11976 # Check whether --with-kerberos or --without-kerberos was given.
11977 if test "${with_kerberos+set}" = set; then
11978 withval="$with_kerberos"
11979 with_kerberos="$withval"; with_kerberos_req="$withval"
11985 case "$with_kerberos" in
11990 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
11991 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
11992 d=$with_kerberos/include
11993 if test -d $d; then
11994 X_CFLAGS="-I$d $X_CFLAGS"
11995 echo "$as_me:$LINENO: result: $d" >&5
11996 echo "${ECHO_T}$d" >&6
11998 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11999 echo "${ECHO_T}not found ($d: no such directory)" >&6
12002 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
12003 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
12004 d=$with_kerberos/lib
12005 if test -d $d; then
12006 X_LIBS="-L$d $X_LIBS"
12007 echo "$as_me:$LINENO: result: $d" >&5
12008 echo "${ECHO_T}$d" >&6
12010 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12011 echo "${ECHO_T}not found ($d: no such directory)" >&6
12014 # replace the directory string with "yes".
12015 with_kerberos_req="yes"
12016 with_kerberos=$with_kerberos_req
12021 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
12022 echo " If it is a directory, then \`DIR/include' will be added to"
12023 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12029 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
12030 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
12031 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
12032 if test "${ac_cv_kerberos+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 ac_save_CPPFLAGS="$CPPFLAGS"
12037 if test \! -z "$includedir" ; then
12038 CPPFLAGS="$CPPFLAGS -I$includedir"
12040 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12041 cat >conftest.$ac_ext <<_ACEOF
12042 #line $LINENO "configure"
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12057 rm -f conftest.$ac_objext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12059 (eval $ac_compile) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -s conftest.$ac_objext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12076 rm -f conftest.$ac_objext conftest.$ac_ext
12077 CPPFLAGS="$ac_save_CPPFLAGS"
12079 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
12080 echo "${ECHO_T}$ac_cv_kerberos" >&6
12081 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
12082 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
12083 if test "${ac_cv_kerberos5+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 ac_save_CPPFLAGS="$CPPFLAGS"
12088 if test \! -z "$includedir" ; then
12089 CPPFLAGS="$CPPFLAGS -I$includedir"
12091 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12092 cat >conftest.$ac_ext <<_ACEOF
12093 #line $LINENO "configure"
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 #include <kerberosIV/krb.h>
12108 rm -f conftest.$ac_objext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12110 (eval $ac_compile) 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -s conftest.$ac_objext'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_cv_kerberos5=yes
12122 echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12127 rm -f conftest.$ac_objext conftest.$ac_ext
12128 CPPFLAGS="$ac_save_CPPFLAGS"
12130 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
12131 echo "${ECHO_T}$ac_cv_kerberos5" >&6
12133 if test "$ac_cv_kerberos" = yes ; then
12135 cat >>confdefs.h <<\_ACEOF
12136 #define HAVE_KERBEROS 1
12141 if test "$ac_cv_kerberos5" = yes ; then
12143 # Andrew Snare <ajs@pigpond.com> wrote:
12145 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
12146 # (krb4) was also available. This turns out not to be the case with
12147 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
12150 # So, disable kerberosV support if libkrb4 can't be found.
12151 # This is not the best solution, but it makes the compile not fail.
12154 ac_save_CPPFLAGS="$CPPFLAGS"
12155 ac_save_LDFLAGS="$LDFLAGS"
12156 # ac_save_LIBS="$LIBS"
12158 if test \! -z "$includedir" ; then
12159 CPPFLAGS="$CPPFLAGS -I$includedir"
12161 # note: $X_CFLAGS includes $x_includes
12162 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12164 if test \! -z "$libdir" ; then
12165 LDFLAGS="$LDFLAGS -L$libdir"
12167 # note: $X_LIBS includes $x_libraries
12168 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12170 echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
12171 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6
12172 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-lkrb4 $LIBS"
12177 cat >conftest.$ac_ext <<_ACEOF
12178 #line $LINENO "configure"
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12185 /* Override any gcc2 internal prototype to avoid an error. */
12189 /* We use char because int might match the return type of a gcc2
12190 builtin and then its argument prototype would still apply. */
12191 char krb_get_tf_realm ();
12195 krb_get_tf_realm ();
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12202 (eval $ac_link) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_lib_krb4_krb_get_tf_realm=yes
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_cv_lib_krb4_krb_get_tf_realm=no
12219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12220 LIBS=$ac_check_lib_save_LIBS
12222 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
12223 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6
12224 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
12230 CPPFLAGS="$ac_save_CPPFLAGS"
12231 LDFLAGS="$ac_save_LDFLAGS"
12232 # LIBS="$ac_save_LIBS"
12234 if test "$have_kerberos" = yes ; then
12236 cat >>confdefs.h <<\_ACEOF
12237 #define HAVE_KERBEROS 1
12240 cat >>confdefs.h <<\_ACEOF
12241 #define HAVE_KERBEROS5 1
12246 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
12247 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
12252 if test "$have_kerberos5" = yes ; then
12253 # from Matt Knopp <mhat@infocalypse.netlag.com>
12254 # (who got it from amu@mit.edu)
12256 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
12258 # jwz: MacOS X uses -lkrb5, but not -lcrypt
12260 ac_save_CPPFLAGS="$CPPFLAGS"
12261 ac_save_LDFLAGS="$LDFLAGS"
12262 # ac_save_LIBS="$LIBS"
12264 if test \! -z "$includedir" ; then
12265 CPPFLAGS="$CPPFLAGS -I$includedir"
12267 # note: $X_CFLAGS includes $x_includes
12268 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12270 if test \! -z "$libdir" ; then
12271 LDFLAGS="$LDFLAGS -L$libdir"
12273 # note: $X_LIBS includes $x_libraries
12274 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12276 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
12277 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
12278 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 ac_check_lib_save_LIBS=$LIBS
12282 LIBS="-lcrypt $LIBS"
12283 cat >conftest.$ac_ext <<_ACEOF
12284 #line $LINENO "configure"
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12291 /* Override any gcc2 internal prototype to avoid an error. */
12295 /* We use char because int might match the return type of a gcc2
12296 builtin and then its argument prototype would still apply. */
12306 rm -f conftest.$ac_objext conftest$ac_exeext
12307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12308 (eval $ac_link) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -s conftest$ac_exeext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_lib_crypt_crypt=yes
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 ac_cv_lib_crypt_crypt=no
12325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12328 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
12329 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
12330 if test $ac_cv_lib_crypt_crypt = yes; then
12331 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
12334 CPPFLAGS="$ac_save_CPPFLAGS"
12335 LDFLAGS="$ac_save_LDFLAGS"
12336 # LIBS="$ac_save_LIBS"
12339 elif test "$have_kerberos" = yes ; then
12340 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
12341 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
12344 if test "$have_kerberos" = yes ; then
12345 echo "$as_me:$LINENO: checking for res_search" >&5
12346 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
12347 if test "${ac_cv_func_res_search+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12351 #line $LINENO "configure"
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 /* System header to define __stub macros and hopefully few prototypes,
12358 which can conflict with char res_search (); below.
12359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12360 <limits.h> exists even on freestanding compilers. */
12362 # include <limits.h>
12364 # include <assert.h>
12366 /* Override any gcc2 internal prototype to avoid an error. */
12371 /* We use char because int might match the return type of a gcc2
12372 builtin and then its argument prototype would still apply. */
12373 char res_search ();
12374 /* The GNU C library defines this for functions which it implements
12375 to always fail with ENOSYS. Some functions are actually named
12376 something starting with __ and the normal name is an alias. */
12377 #if defined (__stub_res_search) || defined (__stub___res_search)
12380 char (*f) () = res_search;
12389 return f != res_search;
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396 (eval $ac_link) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_cv_func_res_search=yes
12408 echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12411 ac_cv_func_res_search=no
12413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12415 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
12416 echo "${ECHO_T}$ac_cv_func_res_search" >&6
12417 if test $ac_cv_func_res_search = yes; then
12420 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
12421 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
12422 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 ac_check_lib_save_LIBS=$LIBS
12426 LIBS="-lresolv $LIBS"
12427 cat >conftest.$ac_ext <<_ACEOF
12428 #line $LINENO "configure"
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12435 /* Override any gcc2 internal prototype to avoid an error. */
12439 /* We use char because int might match the return type of a gcc2
12440 builtin and then its argument prototype would still apply. */
12441 char res_search ();
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12452 (eval $ac_link) 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
12456 { ac_try='test -s conftest$ac_exeext'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12462 ac_cv_lib_resolv_res_search=yes
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ac_cv_lib_resolv_res_search=no
12469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12470 LIBS=$ac_check_lib_save_LIBS
12472 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
12473 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
12474 if test $ac_cv_lib_resolv_res_search = yes; then
12475 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
12477 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
12478 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
12488 ###############################################################################
12490 # Check for the nine billion variants of shadow passwords...
12492 ###############################################################################
12497 with_shadow_req=unspecified
12500 # Check whether --with-shadow or --without-shadow was given.
12501 if test "${with_shadow+set}" = set; then
12502 withval="$with_shadow"
12503 with_shadow="$withval"; with_shadow_req="$withval"
12509 case "$with_shadow" in
12514 echo "$as_me:$LINENO: checking for shadow password headers" >&5
12515 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
12516 d=$with_shadow/include
12517 if test -d $d; then
12518 X_CFLAGS="-I$d $X_CFLAGS"
12519 echo "$as_me:$LINENO: result: $d" >&5
12520 echo "${ECHO_T}$d" >&6
12522 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12523 echo "${ECHO_T}not found ($d: no such directory)" >&6
12526 echo "$as_me:$LINENO: checking for shadow password libs" >&5
12527 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
12529 if test -d $d; then
12530 X_LIBS="-L$d $X_LIBS"
12531 echo "$as_me:$LINENO: result: $d" >&5
12532 echo "${ECHO_T}$d" >&6
12534 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12535 echo "${ECHO_T}not found ($d: no such directory)" >&6
12538 # replace the directory string with "yes".
12539 with_shadow_req="yes"
12540 with_shadow=$with_shadow_req
12545 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
12546 echo " If it is a directory, then \`DIR/include' will be added to"
12547 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12553 if test "$enable_locking" = no ; then
12559 ###############################################################################
12561 # Check for Sun "adjunct" passwords.
12563 ###############################################################################
12565 if test "$with_shadow" = yes ; then
12566 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
12567 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
12568 if test "${ac_cv_sun_adjunct+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 ac_save_CPPFLAGS="$CPPFLAGS"
12573 if test \! -z "$includedir" ; then
12574 CPPFLAGS="$CPPFLAGS -I$includedir"
12576 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12577 cat >conftest.$ac_ext <<_ACEOF
12578 #line $LINENO "configure"
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 #include <stdlib.h>
12585 #include <unistd.h>
12586 #include <sys/types.h>
12587 #include <sys/label.h>
12588 #include <sys/audit.h>
12589 #include <pwdadj.h>
12593 struct passwd_adjunct *p = getpwanam("nobody");
12594 const char *pw = p->pwa_passwd;
12599 rm -f conftest.$ac_objext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } &&
12605 { ac_try='test -s conftest.$ac_objext'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
12611 ac_cv_sun_adjunct=yes
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12616 ac_cv_sun_adjunct=no
12618 rm -f conftest.$ac_objext conftest.$ac_ext
12619 CPPFLAGS="$ac_save_CPPFLAGS"
12621 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
12622 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
12623 if test "$ac_cv_sun_adjunct" = yes; then
12624 have_shadow_adjunct=yes
12631 ###############################################################################
12633 # Check for DEC and SCO so-called "enhanced" security.
12635 ###############################################################################
12637 if test "$with_shadow" = yes ; then
12638 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
12639 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
12640 if test "${ac_cv_enhanced_passwd+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 ac_save_CPPFLAGS="$CPPFLAGS"
12645 if test \! -z "$includedir" ; then
12646 CPPFLAGS="$CPPFLAGS -I$includedir"
12648 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12649 cat >conftest.$ac_ext <<_ACEOF
12650 #line $LINENO "configure"
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656 #include <stdlib.h>
12657 #include <unistd.h>
12658 #include <sys/types.h>
12660 #include <sys/security.h>
12665 struct pr_passwd *p;
12667 set_auth_parameters(0, 0);
12668 check_auth_parameters();
12669 p = getprpwnam("nobody");
12670 pw = p->ufld.fd_encrypt;
12675 rm -f conftest.$ac_objext
12676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12677 (eval $ac_compile) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } &&
12681 { ac_try='test -s conftest.$ac_objext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_cv_enhanced_passwd=yes
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 ac_cv_enhanced_passwd=no
12694 rm -f conftest.$ac_objext conftest.$ac_ext
12695 CPPFLAGS="$ac_save_CPPFLAGS"
12697 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
12698 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
12699 if test $ac_cv_enhanced_passwd = yes; then
12700 have_shadow_enhanced=yes
12704 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
12705 # (I'm told it needs -lcurses too, but I don't understand why.)
12706 # But on DEC, it's in -lsecurity.
12708 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
12709 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
12710 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 ac_check_lib_save_LIBS=$LIBS
12714 LIBS="-lprot -lx $LIBS"
12715 cat >conftest.$ac_ext <<_ACEOF
12716 #line $LINENO "configure"
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12723 /* Override any gcc2 internal prototype to avoid an error. */
12727 /* We use char because int might match the return type of a gcc2
12728 builtin and then its argument prototype would still apply. */
12729 char getprpwnam ();
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740 (eval $ac_link) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -s conftest$ac_exeext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 ac_cv_lib_prot_getprpwnam=yes
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ac_cv_lib_prot_getprpwnam=no
12757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12758 LIBS=$ac_check_lib_save_LIBS
12760 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
12761 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
12762 if test $ac_cv_lib_prot_getprpwnam = yes; then
12763 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
12765 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
12766 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
12767 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 ac_check_lib_save_LIBS=$LIBS
12771 LIBS="-lsecurity $LIBS"
12772 cat >conftest.$ac_ext <<_ACEOF
12773 #line $LINENO "configure"
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12780 /* Override any gcc2 internal prototype to avoid an error. */
12784 /* We use char because int might match the return type of a gcc2
12785 builtin and then its argument prototype would still apply. */
12786 char getprpwnam ();
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_lib_security_getprpwnam=yes
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_cv_lib_security_getprpwnam=no
12814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12815 LIBS=$ac_check_lib_save_LIBS
12817 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
12818 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
12819 if test $ac_cv_lib_security_getprpwnam = yes; then
12820 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
12828 ###############################################################################
12830 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
12832 ###############################################################################
12834 if test "$with_shadow" = yes ; then
12835 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
12836 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
12837 if test "${ac_cv_hpux_passwd+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 ac_save_CPPFLAGS="$CPPFLAGS"
12842 if test \! -z "$includedir" ; then
12843 CPPFLAGS="$CPPFLAGS -I$includedir"
12845 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12846 cat >conftest.$ac_ext <<_ACEOF
12847 #line $LINENO "configure"
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 #include <stdlib.h>
12854 #include <unistd.h>
12855 #include <sys/types.h>
12857 #include <hpsecurity.h>
12862 struct s_passwd *p = getspwnam("nobody");
12863 const char *pw = p->pw_passwd;
12868 rm -f conftest.$ac_objext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -s conftest.$ac_objext'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
12880 ac_cv_hpux_passwd=yes
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12885 ac_cv_hpux_passwd=no
12887 rm -f conftest.$ac_objext conftest.$ac_ext
12888 CPPFLAGS="$ac_save_CPPFLAGS"
12890 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
12891 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
12892 if test "$ac_cv_hpux_passwd" = yes; then
12893 have_shadow_hpux=yes
12897 # on HPUX, bigcrypt is in -lsec
12898 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
12899 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
12900 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 ac_check_lib_save_LIBS=$LIBS
12905 cat >conftest.$ac_ext <<_ACEOF
12906 #line $LINENO "configure"
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12913 /* Override any gcc2 internal prototype to avoid an error. */
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12928 rm -f conftest.$ac_objext conftest$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930 (eval $ac_link) 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -s conftest$ac_exeext'
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; }; then
12940 ac_cv_lib_sec_bigcrypt=yes
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12945 ac_cv_lib_sec_bigcrypt=no
12947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12948 LIBS=$ac_check_lib_save_LIBS
12950 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
12951 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
12952 if test $ac_cv_lib_sec_bigcrypt = yes; then
12953 PASSWD_LIBS="$PASSWD_LIBS -lsec"
12960 ###############################################################################
12962 # Check for FreeBSD-style shadow passwords.
12964 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
12965 # password systems -- except you only get stuff in the pw_passwd field
12966 # if the running program is setuid. So, guess that we've got this
12967 # lossage to contend with if /etc/master.passwd exists, and default to
12968 # a setuid installation.
12970 ###############################################################################
12972 if test "$with_shadow" = yes ; then
12973 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
12974 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
12975 if test "${ac_cv_master_passwd+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 if test -f /etc/master.passwd ; then
12979 ac_cv_master_passwd=yes
12981 ac_cv_master_passwd=no
12984 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
12985 echo "${ECHO_T}$ac_cv_master_passwd" >&6
12986 if test "$ac_cv_master_passwd" = yes; then
12992 ###############################################################################
12994 # Check for traditional (ha!) shadow passwords.
12996 ###############################################################################
12998 if test "$with_shadow" = yes ; then
12999 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
13000 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
13001 if test "${ac_cv_shadow+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 ac_save_CPPFLAGS="$CPPFLAGS"
13006 if test \! -z "$includedir" ; then
13007 CPPFLAGS="$CPPFLAGS -I$includedir"
13009 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13010 cat >conftest.$ac_ext <<_ACEOF
13011 #line $LINENO "configure"
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017 #include <stdlib.h>
13018 #include <unistd.h>
13019 #include <sys/types.h>
13021 #include <shadow.h>
13025 struct spwd *p = getspnam("nobody");
13026 const char *pw = p->sp_pwdp;
13031 rm -f conftest.$ac_objext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13033 (eval $ac_compile) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13050 rm -f conftest.$ac_objext conftest.$ac_ext
13051 CPPFLAGS="$ac_save_CPPFLAGS"
13053 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
13054 echo "${ECHO_T}$ac_cv_shadow" >&6
13055 if test "$ac_cv_shadow" = yes; then
13059 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
13061 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
13062 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
13063 if test "${ac_cv_lib_c_getspnam+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 ac_check_lib_save_LIBS=$LIBS
13068 cat >conftest.$ac_ext <<_ACEOF
13069 #line $LINENO "configure"
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13076 /* Override any gcc2 internal prototype to avoid an error. */
13080 /* We use char because int might match the return type of a gcc2
13081 builtin and then its argument prototype would still apply. */
13091 rm -f conftest.$ac_objext conftest$ac_exeext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13093 (eval $ac_link) 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -s conftest$ac_exeext'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_cv_lib_c_getspnam=yes
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_cv_lib_c_getspnam=no
13110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13111 LIBS=$ac_check_lib_save_LIBS
13113 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
13114 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
13115 if test $ac_cv_lib_c_getspnam = yes; then
13119 if test "$have_getspnam" = no ; then
13120 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
13121 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
13122 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 ac_check_lib_save_LIBS=$LIBS
13127 cat >conftest.$ac_ext <<_ACEOF
13128 #line $LINENO "configure"
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13135 /* Override any gcc2 internal prototype to avoid an error. */
13139 /* We use char because int might match the return type of a gcc2
13140 builtin and then its argument prototype would still apply. */
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13152 (eval $ac_link) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -s conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_lib_gen_getspnam=yes
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_cv_lib_gen_getspnam=no
13169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13172 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
13173 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
13174 if test $ac_cv_lib_gen_getspnam = yes; then
13175 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
13183 ###############################################################################
13185 # Check for other libraries needed for non-shadow passwords.
13187 ###############################################################################
13189 if test "$enable_locking" = yes ; then
13191 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
13193 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
13194 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
13195 if test "${ac_cv_lib_c_crypt+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 ac_check_lib_save_LIBS=$LIBS
13200 cat >conftest.$ac_ext <<_ACEOF
13201 #line $LINENO "configure"
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13208 /* Override any gcc2 internal prototype to avoid an error. */
13212 /* We use char because int might match the return type of a gcc2
13213 builtin and then its argument prototype would still apply. */
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13225 (eval $ac_link) 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -s conftest$ac_exeext'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }; then
13235 ac_cv_lib_c_crypt=yes
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13240 ac_cv_lib_c_crypt=no
13242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13243 LIBS=$ac_check_lib_save_LIBS
13245 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
13246 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
13247 if test $ac_cv_lib_c_crypt = yes; then
13251 if test "$have_crypt" = no ; then
13252 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13253 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
13254 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 ac_check_lib_save_LIBS=$LIBS
13258 LIBS="-lcrypt $LIBS"
13259 cat >conftest.$ac_ext <<_ACEOF
13260 #line $LINENO "configure"
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13267 /* Override any gcc2 internal prototype to avoid an error. */
13271 /* We use char because int might match the return type of a gcc2
13272 builtin and then its argument prototype would still apply. */
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284 (eval $ac_link) 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } &&
13288 { ac_try='test -s conftest$ac_exeext'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; }; then
13294 ac_cv_lib_crypt_crypt=yes
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13299 ac_cv_lib_crypt_crypt=no
13301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13304 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13305 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
13306 if test $ac_cv_lib_crypt_crypt = yes; then
13307 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
13314 # Most of the above shadow mechanisms will have set need_setuid to yes,
13315 # if they were found. But, on some systems, we need setuid even when
13316 # using plain old vanilla passwords.
13318 if test "$enable_locking" = yes ; then
13320 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
13327 if test "$have_shadow_adjunct" = yes ; then
13328 cat >>confdefs.h <<\_ACEOF
13329 #define HAVE_ADJUNCT_PASSWD 1
13332 elif test "$have_shadow_enhanced" = yes ; then
13333 cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_ENHANCED_PASSWD 1
13337 elif test "$have_shadow_hpux" = yes ; then
13338 cat >>confdefs.h <<\_ACEOF
13339 #define HAVE_HPUX_PASSWD 1
13342 elif test "$have_shadow" = yes ; then
13343 cat >>confdefs.h <<\_ACEOF
13344 #define HAVE_SHADOW_PASSWD 1
13350 ###############################################################################
13352 # Check for external password helper
13353 # On SuSE, instead of having xscreensaver be a setuid program, they
13354 # fork an external program that takes the password on stdin, and
13355 # returns true if that password is a valid one. Then only that
13356 # smaller program needs to be setuid.
13358 # (Note that this external program is not a GUI: the GUI is still
13359 # all in xscreensaver itself; the external program just does auth.)
13361 ###############################################################################
13363 have_passwd_helper=no
13364 with_passwd_helper_req=unspecified
13367 # Check whether --with-passwd-helper or --without-passwd-helper was given.
13368 if test "${with_passwd_helper+set}" = set; then
13369 withval="$with_passwd_helper"
13370 with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
13372 with_passwd_helper=no
13374 # no HANDLE_X_PATH_ARG for this one
13376 if test "$enable_locking" = no ; then
13377 with_passwd_helper_req=no
13378 with_passwd_helper=no
13381 case "$with_passwd_helper" in
13384 cat >>confdefs.h <<_ACEOF
13385 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
13388 have_passwd_helper=yes;;
13390 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
13395 ###############################################################################
13399 ###############################################################################
13402 with_motif_req=unspecified
13404 # Check whether --with-motif or --without-motif was given.
13405 if test "${with_motif+set}" = set; then
13406 withval="$with_motif"
13407 with_motif="$withval"; with_motif_req="$withval"
13413 case "$with_motif" in
13418 echo "$as_me:$LINENO: checking for Motif headers" >&5
13419 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
13420 d=$with_motif/include
13421 if test -d $d; then
13422 X_CFLAGS="-I$d $X_CFLAGS"
13423 echo "$as_me:$LINENO: result: $d" >&5
13424 echo "${ECHO_T}$d" >&6
13426 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13427 echo "${ECHO_T}not found ($d: no such directory)" >&6
13430 echo "$as_me:$LINENO: checking for Motif libs" >&5
13431 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
13433 if test -d $d; then
13434 X_LIBS="-L$d $X_LIBS"
13435 echo "$as_me:$LINENO: result: $d" >&5
13436 echo "${ECHO_T}$d" >&6
13438 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13439 echo "${ECHO_T}not found ($d: no such directory)" >&6
13442 # replace the directory string with "yes".
13443 with_motif_req="yes"
13444 with_motif=$with_motif_req
13449 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
13450 echo " If it is a directory, then \`DIR/include' will be added to"
13451 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13457 if test "$with_motif" != yes -a "$with_motif" != no ; then
13458 echo "error: must be yes or no: --with-motif=$with_motif"
13462 if test "$with_motif" = yes; then
13465 ac_save_CPPFLAGS="$CPPFLAGS"
13466 if test \! -z "$includedir" ; then
13467 CPPFLAGS="$CPPFLAGS -I$includedir"
13469 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13470 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
13471 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
13472 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 cat >conftest.$ac_ext <<_ACEOF
13476 #line $LINENO "configure"
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 #include <stdlib.h>
13484 #include <X11/Intrinsic.h>
13488 rm -f conftest.$ac_objext
13489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13490 (eval $ac_compile) 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } &&
13494 { ac_try='test -s conftest.$ac_objext'
13495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496 (eval $ac_try) 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; }; then
13500 ac_cv_header_Xm_Xm_h=yes
13502 echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13505 ac_cv_header_Xm_Xm_h=no
13507 rm -f conftest.$ac_objext conftest.$ac_ext
13509 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
13510 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
13511 if test $ac_cv_header_Xm_Xm_h = yes; then
13513 cat >>confdefs.h <<\_ACEOF
13514 #define HAVE_MOTIF 1
13517 MOTIF_LIBS="$MOTIF_LIBS -lXm"
13521 CPPFLAGS="$ac_save_CPPFLAGS"
13525 if test "$have_motif" = yes; then
13527 ac_save_CPPFLAGS="$CPPFLAGS"
13528 if test \! -z "$includedir" ; then
13529 CPPFLAGS="$CPPFLAGS -I$includedir"
13531 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13532 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
13533 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
13534 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 cat >conftest.$ac_ext <<_ACEOF
13538 #line $LINENO "configure"
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 #include <stdlib.h>
13546 #include <X11/Intrinsic.h>
13548 #include <Xm/ComboBox.h>
13550 rm -f conftest.$ac_objext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552 (eval $ac_compile) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -s conftest.$ac_objext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_header_Xm_ComboBox_h=yes
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 ac_cv_header_Xm_ComboBox_h=no
13569 rm -f conftest.$ac_objext conftest.$ac_ext
13571 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
13572 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
13573 if test $ac_cv_header_Xm_ComboBox_h = yes; then
13574 cat >>confdefs.h <<\_ACEOF
13575 #define HAVE_XMCOMBOBOX 1
13581 CPPFLAGS="$ac_save_CPPFLAGS"
13585 ###############################################################################
13587 # Check for -lgtk (and Gnome stuff)
13589 ###############################################################################
13593 with_gtk_req=unspecified
13595 # Check whether --with-gtk or --without-gtk was given.
13596 if test "${with_gtk+set}" = set; then
13597 withval="$with_gtk"
13598 with_gtk="$withval"; with_gtk_req="$withval"
13603 # if --with-gtk=/directory/ was specified, remember that directory so that
13604 # we can also look for the `gtk-config' program in that directory.
13605 case "$with_gtk" in
13607 gtk_dir="$with_gtk"
13615 case "$with_gtk" in
13620 echo "$as_me:$LINENO: checking for Gtk headers" >&5
13621 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
13622 d=$with_gtk/include
13623 if test -d $d; then
13624 X_CFLAGS="-I$d $X_CFLAGS"
13625 echo "$as_me:$LINENO: result: $d" >&5
13626 echo "${ECHO_T}$d" >&6
13628 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13629 echo "${ECHO_T}not found ($d: no such directory)" >&6
13632 echo "$as_me:$LINENO: checking for Gtk libs" >&5
13633 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
13635 if test -d $d; then
13636 X_LIBS="-L$d $X_LIBS"
13637 echo "$as_me:$LINENO: result: $d" >&5
13638 echo "${ECHO_T}$d" >&6
13640 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13641 echo "${ECHO_T}not found ($d: no such directory)" >&6
13644 # replace the directory string with "yes".
13646 with_gtk=$with_gtk_req
13651 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
13652 echo " If it is a directory, then \`DIR/include' will be added to"
13653 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13659 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
13660 echo "error: must be yes or no: --with-gtk=$with_gtk"
13665 with_gnome_req=unspecified
13667 # Check whether --with-gnome or --without-gnome was given.
13668 if test "${with_gnome+set}" = set; then
13669 withval="$with_gnome"
13670 with_gnome="$withval"; with_gnome_req="$withval"
13675 # if --with-gnome=/directory/ was specified, remember that directory so that
13676 # we can also look for the `gnome-config' program in that directory.
13677 case "$with_gnome" in
13679 gnome_dir="$with_gnome"
13687 case "$with_gnome" in
13692 echo "$as_me:$LINENO: checking for Gnome headers" >&5
13693 echo $ECHO_N "checking for Gnome headers... $ECHO_C" >&6
13694 d=$with_gnome/include
13695 if test -d $d; then
13696 X_CFLAGS="-I$d $X_CFLAGS"
13697 echo "$as_me:$LINENO: result: $d" >&5
13698 echo "${ECHO_T}$d" >&6
13700 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13701 echo "${ECHO_T}not found ($d: no such directory)" >&6
13704 echo "$as_me:$LINENO: checking for Gnome libs" >&5
13705 echo $ECHO_N "checking for Gnome libs... $ECHO_C" >&6
13707 if test -d $d; then
13708 X_LIBS="-L$d $X_LIBS"
13709 echo "$as_me:$LINENO: result: $d" >&5
13710 echo "${ECHO_T}$d" >&6
13712 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13713 echo "${ECHO_T}not found ($d: no such directory)" >&6
13716 # replace the directory string with "yes".
13717 with_gnome_req="yes"
13718 with_gnome=$with_gnome_req
13723 echo "error: argument to --with-gnome must be \"yes\", \"no\", or a directory."
13724 echo " If it is a directory, then \`DIR/include' will be added to"
13725 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13731 if test "$with_gnome" != yes -a "$with_gnome" != no ; then
13732 echo "error: must be yes or no: --with-gnome=$with_gnome"
13736 parse_gtk_version_string() {
13739 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
13740 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
13742 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
13743 if test -z "$ac_gtk_version"; then
13744 ac_gtk_version=unknown
13745 ac_gtk_version_string=unknown
13753 if test "$with_gtk" = yes; then
13756 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
13757 # look in /foo/bin/ for glib-config, gtk-config, and gnome-config.
13761 if test ! -z "$gtk_dir"; then
13762 # canonicalize slashes.
13763 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
13764 gtk_path="$foo:$gtk_path"
13767 if test ! -z "$gnome_dir"; then
13768 # canonicalize slashes.
13769 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
13770 gtk_path="$foo:$gtk_path"
13773 for ac_prog in pkg-config
13775 # Extract the first word of "$ac_prog", so it can be a program name with args.
13776 set dummy $ac_prog; ac_word=$2
13777 echo "$as_me:$LINENO: checking for $ac_word" >&5
13778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13779 if test "${ac_cv_path_pkg_config+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 case $pkg_config in
13784 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
13787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788 for as_dir in $gtk_path
13791 test -z "$as_dir" && as_dir=.
13792 for ac_exec_ext in '' $ac_executable_extensions; do
13793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13794 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
13795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13804 pkg_config=$ac_cv_path_pkg_config
13806 if test -n "$pkg_config"; then
13807 echo "$as_me:$LINENO: result: $pkg_config" >&5
13808 echo "${ECHO_T}$pkg_config" >&6
13810 echo "$as_me:$LINENO: result: no" >&5
13811 echo "${ECHO_T}no" >&6
13814 test -n "$pkg_config" && break
13818 if test -n "$pkg_config" ; then
13821 # run pkg-config based tests.
13824 pkg_check_version() {
13825 if test "$ok" = yes ; then
13828 echo "$as_me:$LINENO: checking for $req" >&5
13829 echo $ECHO_N "checking for $req... $ECHO_C" >&6
13830 if $pkg_config --exists "$req" ; then
13831 vers=`$pkg_config --modversion "$req"`
13832 if $pkg_config --exists "$req >= $min" ; then
13833 echo "$as_me:$LINENO: result: $vers" >&5
13834 echo "${ECHO_T}$vers" >&6
13838 echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
13839 echo "${ECHO_T}$vers (wanted >= $min)" >&6
13844 echo "$as_me:$LINENO: result: no" >&5
13845 echo "${ECHO_T}no" >&6
13852 echo "$as_me:$LINENO: result: checking for GTK 2.x with pkg-config based tests..." >&5
13853 echo "${ECHO_T}checking for GTK 2.x with pkg-config based tests..." >&6
13856 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
13857 pkg_check_version gmodule-2.0 2.0.0
13858 pkg_check_version libxml-2.0 2.4.6
13859 pkg_check_version libglade-2.0 1.99.0
13860 # pkg_check_version gdk_pixbuf 0.1
13863 if test "$have_gtk" = yes; then
13865 cat >>confdefs.h <<\_ACEOF
13866 #define HAVE_GTK2 1
13870 if test -n "$ac_gtk_version_string" ; then
13871 gtk2_halfassed="$ac_gtk_version_string"
13872 gtk2_halfassed_lib="$req"
13876 if test "$have_gtk" = no; then
13878 # we don't have GTK 2. Let's look for GTK 1.
13880 echo "$as_me:$LINENO: result: checking for GTK 1.x with pkg-config based tests..." >&5
13881 echo "${ECHO_T}checking for GTK 1.x with pkg-config based tests..." >&6
13885 pkg_check_version gtk+ 1.2 ; ac_gtk_version_string="$vers"
13886 pkg_check_version glib 1.0
13887 pkg_check_version gdk_pixbuf 0.1
13890 # Now check for Gnome...
13892 if test "$have_gtk" = yes -a "$with_gnome" = yes; then
13895 pkg_check_version capplet 1.0
13896 pkg_check_version gnomeui 1.0
13897 pkg_check_version gdk_pixbuf 0.1
13900 if test "$have_gnome" = no; then
13903 cat >>confdefs.h <<\_ACEOF
13904 #define HAVE_CRAPPLET 1
13911 if test "$have_gtk" = yes; then
13912 parse_gtk_version_string
13918 if test "$have_gtk" = yes; then
13919 echo "$as_me:$LINENO: checking for Gtk includes" >&5
13920 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
13921 if test "${ac_cv_gtk_config_cflags+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
13926 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
13927 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
13928 echo "$as_me:$LINENO: checking for Gtk libs" >&5
13929 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
13930 if test "${ac_cv_gtk_config_libs+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
13935 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
13936 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
13938 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
13939 ac_gtk_config_libs=$ac_cv_gtk_config_libs
13941 ac_gnome_config_cflags=$ac_gtk_config_cflags
13942 ac_gnome_config_libs=$ac_gtk_config_libs
13947 # run {gnome,gtk}-config based tests.
13949 echo "$as_me:$LINENO: result: checking for GTK 1.x with gtk-config based tests..." >&5
13950 echo "${ECHO_T}checking for GTK 1.x with gtk-config based tests..." >&6
13952 for ac_prog in glib12-config glib-config
13954 # Extract the first word of "$ac_prog", so it can be a program name with args.
13955 set dummy $ac_prog; ac_word=$2
13956 echo "$as_me:$LINENO: checking for $ac_word" >&5
13957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13958 if test "${ac_cv_path_glib_config+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 case $glib_config in
13963 ac_cv_path_glib_config="$glib_config" # Let the user override the test with a path.
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $gtk_path
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13973 ac_cv_path_glib_config="$as_dir/$ac_word$ac_exec_ext"
13974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13983 glib_config=$ac_cv_path_glib_config
13985 if test -n "$glib_config"; then
13986 echo "$as_me:$LINENO: result: $glib_config" >&5
13987 echo "${ECHO_T}$glib_config" >&6
13989 echo "$as_me:$LINENO: result: no" >&5
13990 echo "${ECHO_T}no" >&6
13993 test -n "$glib_config" && break
13996 for ac_prog in gtk12-config gtk-config
13998 # Extract the first word of "$ac_prog", so it can be a program name with args.
13999 set dummy $ac_prog; ac_word=$2
14000 echo "$as_me:$LINENO: checking for $ac_word" >&5
14001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14002 if test "${ac_cv_path_gtk_config+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 case $gtk_config in
14007 ac_cv_path_gtk_config="$gtk_config" # Let the user override the test with a path.
14010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14011 for as_dir in $gtk_path
14014 test -z "$as_dir" && as_dir=.
14015 for ac_exec_ext in '' $ac_executable_extensions; do
14016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14017 ac_cv_path_gtk_config="$as_dir/$ac_word$ac_exec_ext"
14018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 gtk_config=$ac_cv_path_gtk_config
14029 if test -n "$gtk_config"; then
14030 echo "$as_me:$LINENO: result: $gtk_config" >&5
14031 echo "${ECHO_T}$gtk_config" >&6
14033 echo "$as_me:$LINENO: result: no" >&5
14034 echo "${ECHO_T}no" >&6
14037 test -n "$gtk_config" && break
14041 if test "$with_gnome" = yes; then
14042 for ac_prog in gnome-config
14044 # Extract the first word of "$ac_prog", so it can be a program name with args.
14045 set dummy $ac_prog; ac_word=$2
14046 echo "$as_me:$LINENO: checking for $ac_word" >&5
14047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14048 if test "${ac_cv_path_gnome_config+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 case $gnome_config in
14053 ac_cv_path_gnome_config="$gnome_config" # Let the user override the test with a path.
14056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057 for as_dir in $gtk_path
14060 test -z "$as_dir" && as_dir=.
14061 for ac_exec_ext in '' $ac_executable_extensions; do
14062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14063 ac_cv_path_gnome_config="$as_dir/$ac_word$ac_exec_ext"
14064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14073 gnome_config=$ac_cv_path_gnome_config
14075 if test -n "$gnome_config"; then
14076 echo "$as_me:$LINENO: result: $gnome_config" >&5
14077 echo "${ECHO_T}$gnome_config" >&6
14079 echo "$as_me:$LINENO: result: no" >&5
14080 echo "${ECHO_T}no" >&6
14083 test -n "$gnome_config" && break
14088 if test -n "$glib_config" -a -n "$gtk_config" ; then
14090 if test "$with_gnome" = yes -a -n "$gnome_config" ; then
14095 if test "$have_gtk" = yes; then
14096 echo "$as_me:$LINENO: checking Gtk version number" >&5
14097 echo $ECHO_N "checking Gtk version number... $ECHO_C" >&6
14098 if test "${ac_cv_gtk_version_string+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 ac_cv_gtk_version_string=`$gtk_config --version`
14103 echo "$as_me:$LINENO: result: $ac_cv_gtk_version_string" >&5
14104 echo "${ECHO_T}$ac_cv_gtk_version_string" >&6
14105 ac_gtk_version_string=$ac_cv_gtk_version_string
14106 parse_gtk_version_string
14109 if test "$have_gtk" = yes; then
14110 if test "$ac_gtk_version" = "unknown" || test "$ac_gtk_version" -lt 1002
14118 if test "$have_gtk" = yes; then
14119 echo "$as_me:$LINENO: checking for Gtk includes" >&5
14120 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
14121 if test "${ac_cv_gtk_config_cflags+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 ac_cv_gtk_config_cflags=`$gtk_config --cflags`
14126 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
14127 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
14128 echo "$as_me:$LINENO: checking for Gtk libs" >&5
14129 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
14130 if test "${ac_cv_gtk_config_libs+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 ac_cv_gtk_config_libs=`$gtk_config --libs`
14135 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
14136 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
14138 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
14139 ac_gtk_config_libs=$ac_cv_gtk_config_libs
14141 # Check for Gnome Capplet support.
14142 # Note that this is only needed with Gnome 1.x, not Gnome 2.x.
14143 # In a Gnome 2.x world, libcapplet will not exist.
14144 # (In fact, this likely won't even be checked, since in a Gnome 2.x
14145 # world, we will probably be up in the "$pkg_config" branch instead
14146 # of here in the "$gnome_config" branch.)
14148 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
14149 gnome_config_libs="gtk capplet gnomeui gdk_pixbuf"
14150 echo "$as_me:$LINENO: checking for Gnome capplet includes" >&5
14151 echo $ECHO_N "checking for Gnome capplet includes... $ECHO_C" >&6
14152 if test "${ac_cv_gnome_config_cflags+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 if ( $gnome_config --cflags $gnome_config_libs 2>&1 | \
14156 grep Unknown >/dev/null ) ; then
14157 ac_cv_gnome_config_cflags=''
14159 ac_cv_gnome_config_cflags=`$gnome_config --cflags $gnome_config_libs`
14163 ac_gnome_config_cflags=$ac_cv_gnome_config_cflags
14164 if test "$ac_gnome_config_cflags" = "" ; then
14166 echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6
14169 echo "$as_me:$LINENO: result: $ac_gnome_config_cflags" >&5
14170 echo "${ECHO_T}$ac_gnome_config_cflags" >&6
14174 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
14175 echo "$as_me:$LINENO: checking for Gnome capplet libs" >&5
14176 echo $ECHO_N "checking for Gnome capplet libs... $ECHO_C" >&6
14177 if test "${ac_cv_gnome_config_libs+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 if ( $gnome_config --libs $gnome_config_libs 2>&1 |
14181 grep Unknown >/dev/null ) ; then
14182 ac_cv_gnome_config_libs=''
14184 ac_cv_gnome_config_libs=`$gnome_config --libs $gnome_config_libs`
14188 ac_gnome_config_libs=$ac_cv_gnome_config_libs
14189 if test "$ac_gnome_config_libs" = "" ; then
14191 echo "$as_me:$LINENO: result: no" >&5
14192 echo "${ECHO_T}no" >&6
14194 echo "$as_me:$LINENO: result: $ac_gnome_config_libs" >&5
14195 echo "${ECHO_T}$ac_gnome_config_libs" >&6
14199 # If we have Gnome, then override the gtk-config values with
14200 # the gnome-config values.
14202 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
14203 ac_gtk_config_cflags=$ac_gnome_config_cflags
14204 ac_gtk_config_libs=$ac_gnome_config_libs
14205 cat >>confdefs.h <<\_ACEOF
14206 #define HAVE_CRAPPLET 1
14211 fi # end of {gnome,gtk}-config based tests
14213 if test "$have_gtk" = yes -a "$have_gtk2" = no; then
14214 # check for this function that was not in libcapplet 1.2.
14215 # (only needed in Gnome/Gtk 1.x, not Gnome/Gtk 2.x)
14217 ac_save_CPPFLAGS="$CPPFLAGS"
14218 ac_save_LDFLAGS="$LDFLAGS"
14219 # ac_save_LIBS="$LIBS"
14221 if test \! -z "$includedir" ; then
14222 CPPFLAGS="$CPPFLAGS -I$includedir"
14224 # note: $X_CFLAGS includes $x_includes
14225 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14227 if test \! -z "$libdir" ; then
14228 LDFLAGS="$LDFLAGS -L$libdir"
14230 # note: $X_LIBS includes $x_libraries
14231 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14233 echo "$as_me:$LINENO: checking for capplet_widget_changes_are_immediate in -lcapplet" >&5
14234 echo $ECHO_N "checking for capplet_widget_changes_are_immediate in -lcapplet... $ECHO_C" >&6
14235 if test "${ac_cv_lib_capplet_capplet_widget_changes_are_immediate+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 ac_check_lib_save_LIBS=$LIBS
14239 LIBS="-lcapplet $ac_gnome_config_libs $LIBS"
14240 cat >conftest.$ac_ext <<_ACEOF
14241 #line $LINENO "configure"
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14248 /* Override any gcc2 internal prototype to avoid an error. */
14252 /* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14254 char capplet_widget_changes_are_immediate ();
14258 capplet_widget_changes_are_immediate ();
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14265 (eval $ac_link) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -s conftest$ac_exeext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=yes
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=no
14282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14283 LIBS=$ac_check_lib_save_LIBS
14285 echo "$as_me:$LINENO: result: $ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&5
14286 echo "${ECHO_T}$ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&6
14287 if test $ac_cv_lib_capplet_capplet_widget_changes_are_immediate = yes; then
14288 cat >>confdefs.h <<\_ACEOF
14289 #define HAVE_CRAPPLET_IMMEDIATE 1
14296 CPPFLAGS="$ac_save_CPPFLAGS"
14297 LDFLAGS="$ac_save_LDFLAGS"
14298 # LIBS="$ac_save_LIBS"
14304 if test "$have_gtk" = yes; then
14305 if test -n "$pkg_config"; then
14306 if test "$have_gtk2" = yes; then
14307 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
14309 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+`
14312 GNOME_DATADIR=`$gtk_config --prefix`
14314 GNOME_DATADIR="$GNOME_DATADIR/share"
14317 # .desktop files go in different places in Gnome 1.x and Gnome 2.x...
14318 if test "$have_gtk2" = yes; then
14319 GNOME_PANELDIR='$(GNOME_PANELDIR2)'
14321 GNOME_PANELDIR='$(GNOME_PANELDIR1)'
14325 if test "$have_gtk" = yes; then
14326 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
14327 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
14328 cat >>confdefs.h <<\_ACEOF
14333 if test "$have_gtk2" = yes; then
14336 GTK_EXTRA_OBJS="\$(GTK_EXTRA_OBJS)"
14343 # Check for the Gnome Help Browser.
14345 if test "$have_gtk" = yes; then
14346 for ac_prog in yelp gnome-help-browser
14348 # Extract the first word of "$ac_prog", so it can be a program name with args.
14349 set dummy $ac_prog; ac_word=$2
14350 echo "$as_me:$LINENO: checking for $ac_word" >&5
14351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14352 if test "${ac_cv_prog_have_gnome_help+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 if test -n "$have_gnome_help"; then
14356 ac_cv_prog_have_gnome_help="$have_gnome_help" # Let the user override the test.
14358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359 for as_dir in $PATH
14362 test -z "$as_dir" && as_dir=.
14363 for ac_exec_ext in '' $ac_executable_extensions; do
14364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14365 ac_cv_prog_have_gnome_help="$ac_prog"
14366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14374 have_gnome_help=$ac_cv_prog_have_gnome_help
14375 if test -n "$have_gnome_help"; then
14376 echo "$as_me:$LINENO: result: $have_gnome_help" >&5
14377 echo "${ECHO_T}$have_gnome_help" >&6
14379 echo "$as_me:$LINENO: result: no" >&5
14380 echo "${ECHO_T}no" >&6
14383 test -n "$have_gnome_help" && break
14385 test -n "$have_gnome_help" || have_gnome_help="no"
14387 if test "$have_gnome_help" != no; then
14388 have_gnome_help=yes
14393 ###############################################################################
14397 ###############################################################################
14400 with_xml_req=unspecified
14403 # Check whether --with-xml or --without-xml was given.
14404 if test "${with_xml+set}" = set; then
14405 withval="$with_xml"
14406 with_xml="$withval"; with_xml_req="$withval"
14411 # if --with-xml=/directory/ was specified, remember that directory so that
14412 # we can also look for the `xml-config' program in that directory.
14413 case "$with_xml" in
14415 xml_dir="$with_xml"
14423 case "$with_xml" in
14428 echo "$as_me:$LINENO: checking for XML headers" >&5
14429 echo $ECHO_N "checking for XML headers... $ECHO_C" >&6
14430 d=$with_xml/include
14431 if test -d $d; then
14432 X_CFLAGS="-I$d $X_CFLAGS"
14433 echo "$as_me:$LINENO: result: $d" >&5
14434 echo "${ECHO_T}$d" >&6
14436 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14437 echo "${ECHO_T}not found ($d: no such directory)" >&6
14440 echo "$as_me:$LINENO: checking for XML libs" >&5
14441 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
14443 if test -d $d; then
14444 X_LIBS="-L$d $X_LIBS"
14445 echo "$as_me:$LINENO: result: $d" >&5
14446 echo "${ECHO_T}$d" >&6
14448 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14449 echo "${ECHO_T}not found ($d: no such directory)" >&6
14452 # replace the directory string with "yes".
14454 with_xml=$with_xml_req
14459 echo "error: argument to --with-xml must be \"yes\", \"no\", or a directory."
14460 echo " If it is a directory, then \`DIR/include' will be added to"
14461 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14467 if test "$with_xml" != yes -a "$with_xml" != no ; then
14468 echo "error: must be yes or no: --with-xml=$with_xml"
14472 if test "$with_xml" = yes; then
14476 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
14477 # look in /foo/bin/ for for xml-config.
14481 if test ! -z "$gtk_dir"; then
14482 # canonicalize slashes.
14483 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
14484 xml_path="$foo:$xml_path"
14487 if test ! -z "$gnome_dir"; then
14488 # canonicalize slashes.
14489 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
14490 xml_path="$foo:$xml_path"
14493 if test -n "$pkg_config" ; then
14496 # run pkg-config based tests.
14501 # If we have Gtk 2.x, then *only* XML 2.x will work.
14502 # If we have Gtk 1.x, or don't have Gtk at all, then
14503 # either XML 1.x or 2.x will work.
14505 # First check for XML 2.x.
14507 pkg_check_version libxml-2.0 2.4.6
14509 # If that didn't work (we don't have XML 2.x) and we *don't* have
14510 # Gtk 2.x, then check to see if we have XML 1.x
14512 if test "$ok" = no -a "$have_gtk2" = no; then
14514 pkg_check_version libxml 1.0
14519 if test "$have_xml" = yes; then
14520 echo "$as_me:$LINENO: checking for XML includes" >&5
14521 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
14522 if test "${ac_cv_xml_config_cflags+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 ac_cv_xml_config_cflags=`$pkg_config --cflags $pkgs`
14527 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
14528 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
14529 echo "$as_me:$LINENO: checking for XML libs" >&5
14530 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
14531 if test "${ac_cv_xml_config_libs+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14534 ac_cv_xml_config_libs=`$pkg_config --libs $pkgs`
14536 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
14537 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
14538 ac_xml_config_cflags=$ac_cv_xml_config_cflags
14539 ac_xml_config_libs=$ac_cv_xml_config_libs
14545 # run {xml2,xml}-config based tests.
14548 for ac_prog in xml2-config xml-config
14550 # Extract the first word of "$ac_prog", so it can be a program name with args.
14551 set dummy $ac_prog; ac_word=$2
14552 echo "$as_me:$LINENO: checking for $ac_word" >&5
14553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14554 if test "${ac_cv_path_xml_config+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 case $xml_config in
14559 ac_cv_path_xml_config="$xml_config" # Let the user override the test with a path.
14562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563 for as_dir in $xml_path
14566 test -z "$as_dir" && as_dir=.
14567 for ac_exec_ext in '' $ac_executable_extensions; do
14568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14569 ac_cv_path_xml_config="$as_dir/$ac_word$ac_exec_ext"
14570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14579 xml_config=$ac_cv_path_xml_config
14581 if test -n "$xml_config"; then
14582 echo "$as_me:$LINENO: result: $xml_config" >&5
14583 echo "${ECHO_T}$xml_config" >&6
14585 echo "$as_me:$LINENO: result: no" >&5
14586 echo "${ECHO_T}no" >&6
14589 test -n "$xml_config" && break
14593 # If we found the xml-config program, run it to get flags.
14595 if test -n "$xml_config" ; then
14596 echo "$as_me:$LINENO: checking for XML includes" >&5
14597 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
14598 if test "${ac_cv_xml_config_cflags+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 ac_cv_xml_config_cflags=`$xml_config --cflags`
14603 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
14604 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
14605 echo "$as_me:$LINENO: checking for XML libs" >&5
14606 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
14607 if test "${ac_cv_xml_config_libs+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 ac_cv_xml_config_libs=`$xml_config --libs`
14612 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
14613 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
14614 ac_xml_config_cflags=$ac_cv_xml_config_cflags
14615 ac_xml_config_libs=$ac_cv_xml_config_libs
14618 ac_save_xml_CPPFLAGS="$CPPFLAGS"
14619 CPPFLAGS="$CPPFLAGS $ac_xml_config_cflags"
14621 # first try <libxml/parser.h> which is the new way...
14624 ac_save_CPPFLAGS="$CPPFLAGS"
14625 if test \! -z "$includedir" ; then
14626 CPPFLAGS="$CPPFLAGS -I$includedir"
14628 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14629 echo "$as_me:$LINENO: checking for libxml/xmlIO.h" >&5
14630 echo $ECHO_N "checking for libxml/xmlIO.h... $ECHO_C" >&6
14631 if test "${ac_cv_header_libxml_xmlIO_h+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 cat >conftest.$ac_ext <<_ACEOF
14635 #line $LINENO "configure"
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 #include <libxml/parser.h>
14643 #include <libxml/xmlIO.h>
14645 rm -f conftest.$ac_objext
14646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14647 (eval $ac_compile) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_header_libxml_xmlIO_h=yes
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_cv_header_libxml_xmlIO_h=no
14664 rm -f conftest.$ac_objext conftest.$ac_ext
14666 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_xmlIO_h" >&5
14667 echo "${ECHO_T}$ac_cv_header_libxml_xmlIO_h" >&6
14668 if test $ac_cv_header_libxml_xmlIO_h = yes; then
14673 CPPFLAGS="$ac_save_CPPFLAGS"
14675 # if that didn't work, then try just <parser.h> which is the old way...
14677 if test "$have_xml" = no; then
14679 ac_save_CPPFLAGS="$CPPFLAGS"
14680 if test \! -z "$includedir" ; then
14681 CPPFLAGS="$CPPFLAGS -I$includedir"
14683 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14684 echo "$as_me:$LINENO: checking for xmlIO.h" >&5
14685 echo $ECHO_N "checking for xmlIO.h... $ECHO_C" >&6
14686 if test "${ac_cv_header_xmlIO_h+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 cat >conftest.$ac_ext <<_ACEOF
14690 #line $LINENO "configure"
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 #include <parser.h>
14700 rm -f conftest.$ac_objext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14702 (eval $ac_compile) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -s conftest.$ac_objext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_header_xmlIO_h=yes
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 ac_cv_header_xmlIO_h=no
14719 rm -f conftest.$ac_objext conftest.$ac_ext
14721 echo "$as_me:$LINENO: result: $ac_cv_header_xmlIO_h" >&5
14722 echo "${ECHO_T}$ac_cv_header_xmlIO_h" >&6
14723 if test $ac_cv_header_xmlIO_h = yes; then
14724 have_xml=yes; have_old_xml=yes
14728 CPPFLAGS="$ac_save_CPPFLAGS"
14731 CPPFLAGS="$ac_save_xml_CPPFLAGS"
14736 if test "$have_xml" = yes; then
14737 # we have the XML headers; now make sure zlib is around.
14738 # yes, it's stupid we have to do this too, but there is
14739 # dependency screwage in Gnome.
14741 ac_save_CPPFLAGS="$CPPFLAGS"
14742 ac_save_LDFLAGS="$LDFLAGS"
14743 # ac_save_LIBS="$LIBS"
14745 if test \! -z "$includedir" ; then
14746 CPPFLAGS="$CPPFLAGS -I$includedir"
14748 # note: $X_CFLAGS includes $x_includes
14749 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14751 if test \! -z "$libdir" ; then
14752 LDFLAGS="$LDFLAGS -L$libdir"
14754 # note: $X_LIBS includes $x_libraries
14755 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14757 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
14758 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
14759 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 ac_check_lib_save_LIBS=$LIBS
14764 cat >conftest.$ac_ext <<_ACEOF
14765 #line $LINENO "configure"
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14772 /* Override any gcc2 internal prototype to avoid an error. */
14776 /* We use char because int might match the return type of a gcc2
14777 builtin and then its argument prototype would still apply. */
14778 char zlibVersion ();
14787 rm -f conftest.$ac_objext conftest$ac_exeext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14789 (eval $ac_link) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } &&
14793 { ac_try='test -s conftest$ac_exeext'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }; then
14799 ac_cv_lib_z_zlibVersion=yes
14801 echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14804 ac_cv_lib_z_zlibVersion=no
14806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14809 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
14810 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
14811 if test $ac_cv_lib_z_zlibVersion = yes; then
14815 CPPFLAGS="$ac_save_CPPFLAGS"
14816 LDFLAGS="$ac_save_LDFLAGS"
14817 # LIBS="$ac_save_LIBS"
14819 if test "$have_zlib" = no; then
14825 if test "$have_xml" = yes; then
14826 # we have the header, now check for the library
14830 ac_save_CPPFLAGS="$CPPFLAGS"
14831 ac_save_LDFLAGS="$LDFLAGS"
14832 # ac_save_LIBS="$LIBS"
14834 if test \! -z "$includedir" ; then
14835 CPPFLAGS="$CPPFLAGS -I$includedir"
14837 # note: $X_CFLAGS includes $x_includes
14838 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14840 if test \! -z "$libdir" ; then
14841 LDFLAGS="$LDFLAGS -L$libdir"
14843 # note: $X_LIBS includes $x_libraries
14844 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14846 echo "$as_me:$LINENO: checking for xmlParseChunk in -lc" >&5
14847 echo $ECHO_N "checking for xmlParseChunk in -lc... $ECHO_C" >&6
14848 if test "${ac_cv_lib_c_xmlParseChunk+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 ac_check_lib_save_LIBS=$LIBS
14852 LIBS="-lc $ac_xml_config_libs $LIBS"
14853 cat >conftest.$ac_ext <<_ACEOF
14854 #line $LINENO "configure"
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14861 /* Override any gcc2 internal prototype to avoid an error. */
14865 /* We use char because int might match the return type of a gcc2
14866 builtin and then its argument prototype would still apply. */
14867 char xmlParseChunk ();
14876 rm -f conftest.$ac_objext conftest$ac_exeext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878 (eval $ac_link) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } &&
14882 { ac_try='test -s conftest$ac_exeext'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_cv_lib_c_xmlParseChunk=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_cv_lib_c_xmlParseChunk=no
14895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14896 LIBS=$ac_check_lib_save_LIBS
14898 echo "$as_me:$LINENO: result: $ac_cv_lib_c_xmlParseChunk" >&5
14899 echo "${ECHO_T}$ac_cv_lib_c_xmlParseChunk" >&6
14900 if test $ac_cv_lib_c_xmlParseChunk = yes; then
14903 XML_LIBS="$ac_xml_config_libs"
14904 cat >>confdefs.h <<\_ACEOF
14912 CPPFLAGS="$ac_save_CPPFLAGS"
14913 LDFLAGS="$ac_save_LDFLAGS"
14914 # LIBS="$ac_save_LIBS"
14918 if test "$have_xml" = yes; then
14919 INCLUDES="$INCLUDES $ac_xml_config_cflags"
14920 GTK_LIBS="$GTK_LIBS $ac_xml_config_libs"
14921 cat >>confdefs.h <<\_ACEOF
14925 if test "$have_old_xml" = yes; then
14926 cat >>confdefs.h <<\_ACEOF
14927 #define HAVE_OLD_XML_HEADERS 1
14936 ###############################################################################
14938 # Checking whether Motif is really Lesstif.
14940 ###############################################################################
14943 if test "$have_motif" = yes ; then
14944 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
14945 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
14946 if test "${ac_cv_have_lesstif+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 ac_save_CPPFLAGS="$CPPFLAGS"
14951 if test \! -z "$includedir" ; then
14952 CPPFLAGS="$CPPFLAGS -I$includedir"
14954 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14955 cat >conftest.$ac_ext <<_ACEOF
14956 #line $LINENO "configure"
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14966 long vers = LesstifVersion;
14971 rm -f conftest.$ac_objext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14973 (eval $ac_compile) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } &&
14977 { ac_try='test -s conftest.$ac_objext'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_cv_have_lesstif=yes
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 ac_cv_have_lesstif=no
14990 rm -f conftest.$ac_objext conftest.$ac_ext
14991 CPPFLAGS="$ac_save_CPPFLAGS"
14993 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
14994 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
14995 have_lesstif=$ac_cv_have_lesstif
14999 lesstif_version=unknown
15000 lesstif_version_string=unknown
15002 if test "$have_lesstif" = yes ; then
15004 echo unknown > conftest-lt
15005 echo "$as_me:$LINENO: checking LessTif version number" >&5
15006 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
15007 if test "${ac_cv_lesstif_version_string+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 ac_save_CPPFLAGS="$CPPFLAGS"
15012 if test \! -z "$includedir" ; then
15013 CPPFLAGS="$CPPFLAGS -I$includedir"
15015 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15016 if test "$cross_compiling" = yes; then
15017 ac_cv_lesstif_version=unknown
15018 ac_cv_lesstif_version_string=unknown
15020 cat >conftest.$ac_ext <<_ACEOF
15021 #line $LINENO "configure"
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15030 FILE *f = fopen("conftest-lt", "w");
15032 fprintf(f, "%d %d.%d\n", LesstifVersion,
15033 LESSTIF_VERSION, LESSTIF_REVISION);
15038 rm -f conftest$ac_exeext
15039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15040 (eval $ac_link) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ltv=`cat conftest-lt`
15050 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
15051 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
15053 echo "$as_me: program exited with status $ac_status" >&5
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15057 ( exit $ac_status )
15058 ac_cv_lesstif_version=unknown
15059 ac_cv_lesstif_version_string=unknown
15061 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15063 CPPFLAGS="$ac_save_CPPFLAGS"
15065 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
15066 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
15068 lesstif_version=$ac_cv_lesstif_version
15069 lesstif_version_string=$ac_cv_lesstif_version_string
15074 if test "$have_motif" = yes ; then
15076 echo unknown > conftest-mt
15077 echo "$as_me:$LINENO: checking Motif version number" >&5
15078 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
15079 if test "${ac_cv_motif_version_string+set}" = set; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 ac_save_CPPFLAGS="$CPPFLAGS"
15084 if test \! -z "$includedir" ; then
15085 CPPFLAGS="$CPPFLAGS -I$includedir"
15087 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15088 if test "$cross_compiling" = yes; then
15089 ac_cv_motif_version=unknown
15090 ac_cv_motif_version_string=unknown
15092 cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15102 FILE *f = fopen("conftest-mt", "w");
15104 fprintf(f, "%d %d.%d\n", XmVersion,
15105 XmVERSION, XmREVISION);
15110 rm -f conftest$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 mtv=`cat conftest-mt`
15122 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
15123 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
15125 echo "$as_me: program exited with status $ac_status" >&5
15126 echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15129 ( exit $ac_status )
15130 ac_cv_motif_version=unknown
15131 ac_cv_motif_version_string=unknown
15133 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15135 CPPFLAGS="$ac_save_CPPFLAGS"
15137 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
15138 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
15140 motif_version=$ac_cv_motif_version
15141 motif_version_string=$ac_cv_motif_version_string
15146 ###############################################################################
15148 # Checking whether Motif requires -lXpm.
15150 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
15151 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
15152 # of the library whether to build the XPM code into libXm, or whether
15153 # to rely on an external libXm. So the only way to tell whether XPM is
15154 # a link-time requirement is to examine libXm.a, which is very
15155 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
15156 # always link against XPM if the XPM lib exists (and this will be a
15157 # no-op if libXm happens to already have the XPM code in it.)
15159 ###############################################################################
15161 motif_requires_xpm=no
15162 if test "$have_motif" = yes ; then
15163 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
15164 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
15165 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
15167 motif_requires_xpm=yes
15168 echo "$as_me:$LINENO: result: maybe" >&5
15169 echo "${ECHO_T}maybe" >&6
15171 echo "$as_me:$LINENO: result: no" >&5
15172 echo "${ECHO_T}no" >&6
15177 ###############################################################################
15179 # Checking whether Motif requires -lXp.
15181 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
15182 # Extension". Why this extension isn't in -lXext with all the others,
15185 ###############################################################################
15188 if test "$have_motif" = yes ; then
15191 ac_save_CPPFLAGS="$CPPFLAGS"
15192 ac_save_LDFLAGS="$LDFLAGS"
15193 # ac_save_LIBS="$LIBS"
15195 if test \! -z "$includedir" ; then
15196 CPPFLAGS="$CPPFLAGS -I$includedir"
15198 # note: $X_CFLAGS includes $x_includes
15199 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15201 if test \! -z "$libdir" ; then
15202 LDFLAGS="$LDFLAGS -L$libdir"
15204 # note: $X_LIBS includes $x_libraries
15205 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15207 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
15208 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
15209 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 ac_check_lib_save_LIBS=$LIBS
15213 LIBS="-lXp -lX11 -lXext -lm $LIBS"
15214 cat >conftest.$ac_ext <<_ACEOF
15215 #line $LINENO "configure"
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15222 /* Override any gcc2 internal prototype to avoid an error. */
15226 /* We use char because int might match the return type of a gcc2
15227 builtin and then its argument prototype would still apply. */
15228 char XpQueryExtension ();
15232 XpQueryExtension ();
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15239 (eval $ac_link) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -s conftest$ac_exeext'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 ac_cv_lib_Xp_XpQueryExtension=yes
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ac_cv_lib_Xp_XpQueryExtension=no
15256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15257 LIBS=$ac_check_lib_save_LIBS
15259 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
15260 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
15261 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
15262 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
15267 CPPFLAGS="$ac_save_CPPFLAGS"
15268 LDFLAGS="$ac_save_LDFLAGS"
15269 # LIBS="$ac_save_LIBS"
15274 ###############################################################################
15276 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
15278 ###############################################################################
15281 if test "$have_motif" = yes ; then
15283 ac_save_CPPFLAGS="$CPPFLAGS"
15284 ac_save_LDFLAGS="$LDFLAGS"
15285 # ac_save_LIBS="$LIBS"
15287 if test \! -z "$includedir" ; then
15288 CPPFLAGS="$CPPFLAGS -I$includedir"
15290 # note: $X_CFLAGS includes $x_includes
15291 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15293 if test \! -z "$libdir" ; then
15294 LDFLAGS="$LDFLAGS -L$libdir"
15296 # note: $X_LIBS includes $x_libraries
15297 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15299 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
15300 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
15301 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 ac_check_lib_save_LIBS=$LIBS
15305 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
15306 cat >conftest.$ac_ext <<_ACEOF
15307 #line $LINENO "configure"
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h. */
15314 /* Override any gcc2 internal prototype to avoid an error. */
15318 /* We use char because int might match the return type of a gcc2
15319 builtin and then its argument prototype would still apply. */
15320 char _Xsetlocale ();
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331 (eval $ac_link) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -s conftest$ac_exeext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_cv_lib_Xintl__Xsetlocale=yes
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_cv_lib_Xintl__Xsetlocale=no
15348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15349 LIBS=$ac_check_lib_save_LIBS
15351 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
15352 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
15353 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
15359 CPPFLAGS="$ac_save_CPPFLAGS"
15360 LDFLAGS="$ac_save_LDFLAGS"
15361 # LIBS="$ac_save_LIBS"
15363 if test "$have_xintl" = yes; then
15364 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
15369 ###############################################################################
15371 # Check for -lGL or -lMesaGL.
15373 ###############################################################################
15377 with_gl_req=unspecified
15380 # Check whether --with-gl or --without-gl was given.
15381 if test "${with_gl+set}" = set; then
15383 with_gl="$withval"; with_gl_req="$withval"
15394 echo "$as_me:$LINENO: checking for GL headers" >&5
15395 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
15397 if test -d $d; then
15398 X_CFLAGS="-I$d $X_CFLAGS"
15399 echo "$as_me:$LINENO: result: $d" >&5
15400 echo "${ECHO_T}$d" >&6
15402 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15403 echo "${ECHO_T}not found ($d: no such directory)" >&6
15406 echo "$as_me:$LINENO: checking for GL libs" >&5
15407 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
15409 if test -d $d; then
15410 X_LIBS="-L$d $X_LIBS"
15411 echo "$as_me:$LINENO: result: $d" >&5
15412 echo "${ECHO_T}$d" >&6
15414 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15415 echo "${ECHO_T}not found ($d: no such directory)" >&6
15418 # replace the directory string with "yes".
15420 with_gl=$with_gl_req
15425 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
15426 echo " If it is a directory, then \`DIR/include' will be added to"
15427 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15433 ac_mesagl_version=unknown
15434 ac_mesagl_version_string=unknown
15436 if test "$with_gl" = yes; then
15438 ac_save_CPPFLAGS="$CPPFLAGS"
15439 if test \! -z "$includedir" ; then
15440 CPPFLAGS="$CPPFLAGS -I$includedir"
15442 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15443 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15444 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15445 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15446 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15449 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15450 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15452 # Is the header compilable?
15453 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
15454 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
15455 cat >conftest.$ac_ext <<_ACEOF
15456 #line $LINENO "configure"
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 $ac_includes_default
15465 rm -f conftest.$ac_objext
15466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15467 (eval $ac_compile) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_header_compiler=yes
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_header_compiler=no
15484 rm -f conftest.$ac_objext conftest.$ac_ext
15485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15486 echo "${ECHO_T}$ac_header_compiler" >&6
15488 # Is the header present?
15489 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
15490 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
15491 cat >conftest.$ac_ext <<_ACEOF
15492 #line $LINENO "configure"
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } >/dev/null; then
15508 if test -s conftest.err; then
15509 ac_cpp_err=$ac_c_preproc_warn_flag
15516 if test -z "$ac_cpp_err"; then
15517 ac_header_preproc=yes
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15522 ac_header_preproc=no
15524 rm -f conftest.err conftest.$ac_ext
15525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15526 echo "${ECHO_T}$ac_header_preproc" >&6
15528 # So? What about this header?
15529 case $ac_header_compiler:$ac_header_preproc in
15531 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15532 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
15534 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
15537 ## ------------------------------------ ##
15538 ## Report this to bug-autoconf@gnu.org. ##
15539 ## ------------------------------------ ##
15542 sed "s/^/$as_me: WARNING: /" >&2
15545 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
15546 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
15547 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
15548 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
15549 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
15550 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
15553 ## ------------------------------------ ##
15554 ## Report this to bug-autoconf@gnu.org. ##
15555 ## ------------------------------------ ##
15558 sed "s/^/$as_me: WARNING: /" >&2
15561 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15562 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15563 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 ac_cv_header_GL_gl_h=$ac_header_preproc
15568 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15569 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15572 if test $ac_cv_header_GL_gl_h = yes; then
15579 CPPFLAGS="$ac_save_CPPFLAGS"
15580 if test "$have_gl" = yes ; then
15582 ac_save_CPPFLAGS="$CPPFLAGS"
15583 if test \! -z "$includedir" ; then
15584 CPPFLAGS="$CPPFLAGS -I$includedir"
15586 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15587 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
15588 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
15589 if test "${ac_cv_header_GL_glx_h+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 cat >conftest.$ac_ext <<_ACEOF
15593 #line $LINENO "configure"
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15601 #include <GL/glx.h>
15603 rm -f conftest.$ac_objext
15604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15605 (eval $ac_compile) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -s conftest.$ac_objext'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_cv_header_GL_glx_h=yes
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15620 ac_cv_header_GL_glx_h=no
15622 rm -f conftest.$ac_objext conftest.$ac_ext
15624 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
15625 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
15626 if test $ac_cv_header_GL_glx_h = yes; then
15633 CPPFLAGS="$ac_save_CPPFLAGS"
15636 # If we have the headers, try and figure out which vendor it's from.
15638 if test "$have_gl" = yes ; then
15640 # We need to know whether it's MesaGL so that we know which libraries
15643 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
15644 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
15645 if test "${ac_cv_have_mesa_gl+set}" = set; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 ac_cv_have_mesa_gl=no
15650 ac_save_CPPFLAGS="$CPPFLAGS"
15651 if test \! -z "$includedir" ; then
15652 CPPFLAGS="$CPPFLAGS -I$includedir"
15654 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15655 cat >conftest.$ac_ext <<_ACEOF
15656 #line $LINENO "configure"
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 #include <GL/glx.h>
15665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15666 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
15667 ac_cv_have_mesa_gl=yes
15671 CPPFLAGS="$ac_save_CPPFLAGS"
15674 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
15675 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
15676 ac_have_mesa_gl=$ac_cv_have_mesa_gl
15683 # Some versions of MesaGL are compiled to require -lpthread.
15684 # So if the Mesa headers exist, and -lpthread exists, then always
15685 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
15687 if test "$ac_have_mesa_gl" = yes; then
15688 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15689 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
15690 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 ac_check_lib_save_LIBS=$LIBS
15694 LIBS="-lpthread $LIBS"
15695 cat >conftest.$ac_ext <<_ACEOF
15696 #line $LINENO "configure"
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15703 /* Override any gcc2 internal prototype to avoid an error. */
15707 /* We use char because int might match the return type of a gcc2
15708 builtin and then its argument prototype would still apply. */
15709 char pthread_create ();
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720 (eval $ac_link) 2>&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -s conftest$ac_exeext'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 ac_cv_lib_pthread_pthread_create=yes
15732 echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15735 ac_cv_lib_pthread_pthread_create=no
15737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15738 LIBS=$ac_check_lib_save_LIBS
15740 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
15741 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
15742 if test $ac_cv_lib_pthread_pthread_create = yes; then
15743 GL_LIBS="-lpthread"
15749 # If we have Mesa headers, check to see if we can link against -lMesaGL.
15750 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
15751 # Else, warn that GL is busted. (We have the headers, but no libs.)
15754 if test "$ac_have_mesa_gl" = yes ; then
15756 ac_save_CPPFLAGS="$CPPFLAGS"
15757 ac_save_LDFLAGS="$LDFLAGS"
15758 # ac_save_LIBS="$LIBS"
15760 if test \! -z "$includedir" ; then
15761 CPPFLAGS="$CPPFLAGS -I$includedir"
15763 # note: $X_CFLAGS includes $x_includes
15764 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15766 if test \! -z "$libdir" ; then
15767 LDFLAGS="$LDFLAGS -L$libdir"
15769 # note: $X_LIBS includes $x_libraries
15770 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15772 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
15773 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
15774 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
15779 cat >conftest.$ac_ext <<_ACEOF
15780 #line $LINENO "configure"
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15787 /* Override any gcc2 internal prototype to avoid an error. */
15791 /* We use char because int might match the return type of a gcc2
15792 builtin and then its argument prototype would still apply. */
15793 char glXCreateContext ();
15797 glXCreateContext ();
15802 rm -f conftest.$ac_objext conftest$ac_exeext
15803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15804 (eval $ac_link) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
15808 { ac_try='test -s conftest$ac_exeext'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_cv_lib_MesaGL_glXCreateContext=yes
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15819 ac_cv_lib_MesaGL_glXCreateContext=no
15821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15822 LIBS=$ac_check_lib_save_LIBS
15824 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
15825 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
15826 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
15828 GL_LIBS="-lMesaGL -lMesaGLU $GL_LIBS"
15831 CPPFLAGS="$ac_save_CPPFLAGS"
15832 LDFLAGS="$ac_save_LDFLAGS"
15833 # LIBS="$ac_save_LIBS"
15837 if test "$gl_lib_1" = "" ; then
15839 ac_save_CPPFLAGS="$CPPFLAGS"
15840 ac_save_LDFLAGS="$LDFLAGS"
15841 # ac_save_LIBS="$LIBS"
15843 if test \! -z "$includedir" ; then
15844 CPPFLAGS="$CPPFLAGS -I$includedir"
15846 # note: $X_CFLAGS includes $x_includes
15847 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15849 if test \! -z "$libdir" ; then
15850 LDFLAGS="$LDFLAGS -L$libdir"
15852 # note: $X_LIBS includes $x_libraries
15853 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15855 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
15856 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
15857 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 ac_check_lib_save_LIBS=$LIBS
15861 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
15862 cat >conftest.$ac_ext <<_ACEOF
15863 #line $LINENO "configure"
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15870 /* Override any gcc2 internal prototype to avoid an error. */
15874 /* We use char because int might match the return type of a gcc2
15875 builtin and then its argument prototype would still apply. */
15876 char glXCreateContext ();
15880 glXCreateContext ();
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15887 (eval $ac_link) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } &&
15891 { ac_try='test -s conftest$ac_exeext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 ac_cv_lib_GL_glXCreateContext=yes
15899 echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15902 ac_cv_lib_GL_glXCreateContext=no
15904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15905 LIBS=$ac_check_lib_save_LIBS
15907 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
15908 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
15909 if test $ac_cv_lib_GL_glXCreateContext = yes; then
15911 GL_LIBS="-lGL -lGLU $GL_LIBS"
15914 CPPFLAGS="$ac_save_CPPFLAGS"
15915 LDFLAGS="$ac_save_LDFLAGS"
15916 # LIBS="$ac_save_LIBS"
15920 if test "$gl_lib_1" = "" ; then
15921 # we have headers, but no libs -- bail.
15926 # linking works -- we can build the GL hacks.
15927 cat >>confdefs.h <<\_ACEOF
15931 if test "$ac_have_mesa_gl" = yes ; then
15932 cat >>confdefs.h <<\_ACEOF
15933 #define HAVE_MESA_GL 1
15941 # Now that we know we have GL headers and libs, do some more GL testing.
15944 if test "$have_gl" = yes ; then
15945 # If it's MesaGL, we'd like to issue a warning if the version number
15946 # is less than or equal to 2.6, because that version had a security bug.
15948 if test "$ac_have_mesa_gl" = yes; then
15950 echo "$as_me:$LINENO: checking MesaGL version number" >&5
15951 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
15952 if test "${ac_cv_mesagl_version_string+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 cat > conftest.$ac_ext <<EOF
15956 #line 15962 "configure"
15957 #include "confdefs.h"
15959 #ifndef MESA_MAJOR_VERSION
15960 # include <GL/xmesa.h>
15961 # ifdef XMESA_MAJOR_VERSION
15962 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
15963 we have to check the XMesa version number (the number of the X protocol
15964 support, which seems to be the same as the Mesa version number.)
15966 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
15967 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
15969 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
15970 so we have no way of telling what version of Mesa this is at all.
15971 So, we'll guess that the osmesa version (the "offscreen protocol")
15972 is less than or equal to the real mesa version number. Except that
15973 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
15974 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
15976 # include <GL/osmesa.h>
15977 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
15978 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
15979 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
15980 # undef MESA_MINOR_VERSION
15981 # define MESA_MINOR_VERSION 4 or newer, probably?
15985 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
15988 ac_save_CPPFLAGS="$CPPFLAGS"
15989 if test \! -z "$includedir" ; then
15990 CPPFLAGS="$CPPFLAGS -I$includedir"
15992 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15994 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
15998 mglv=`echo "$mglv" | sed -n \
15999 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
16002 rm -f conftest.$ac_ext
16004 CPPFLAGS="$ac_save_CPPFLAGS"
16006 if test "$mglv" = ""; then
16007 ac_mesagl_version=unknown
16008 ac_mesagl_version_string=unknown
16010 ac_mesagl_version_string="$mglv"
16013 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
16014 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
16016 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
16017 if test -z "$ac_mesagl_version"; then
16018 ac_mesagl_version=unknown
16019 ac_mesagl_version_string=unknown
16022 ac_cv_mesagl_version=$ac_mesagl_version
16023 ac_cv_mesagl_version_string=$ac_mesagl_version_string
16026 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
16027 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
16028 ac_mesagl_version=$ac_cv_mesagl_version
16029 ac_mesagl_version_string=$ac_cv_mesagl_version_string
16033 # Check for OpenGL 1.1 features.
16036 ac_save_CPPFLAGS="$CPPFLAGS"
16037 ac_save_LDFLAGS="$LDFLAGS"
16038 # ac_save_LIBS="$LIBS"
16040 if test \! -z "$includedir" ; then
16041 CPPFLAGS="$CPPFLAGS -I$includedir"
16043 # note: $X_CFLAGS includes $x_includes
16044 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16046 if test \! -z "$libdir" ; then
16047 LDFLAGS="$LDFLAGS -L$libdir"
16049 # note: $X_LIBS includes $x_libraries
16050 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16052 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
16053 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
16054 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
16055 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 ac_check_lib_save_LIBS=$LIBS
16059 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
16060 cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16068 /* Override any gcc2 internal prototype to avoid an error. */
16072 /* We use char because int might match the return type of a gcc2
16073 builtin and then its argument prototype would still apply. */
16074 char glBindTexture ();
16083 rm -f conftest.$ac_objext conftest$ac_exeext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16085 (eval $ac_link) 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } &&
16089 { ac_try='test -s conftest$ac_exeext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 eval "$as_ac_Lib=yes"
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 eval "$as_ac_Lib=no"
16102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16103 LIBS=$ac_check_lib_save_LIBS
16105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16106 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16107 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16108 cat >>confdefs.h <<\_ACEOF
16109 #define HAVE_GLBINDTEXTURE 1
16116 CPPFLAGS="$ac_save_CPPFLAGS"
16117 LDFLAGS="$ac_save_LDFLAGS"
16118 # LIBS="$ac_save_LIBS"
16122 elif test "$with_gl" != no; then
16123 echo "error: must be yes or no: --with-gl=$with_gl"
16128 ###############################################################################
16132 ###############################################################################
16135 with_gle_req=unspecified
16138 # Check whether --with-gle or --without-gle was given.
16139 if test "${with_gle+set}" = set; then
16140 withval="$with_gle"
16141 with_gle="$withval"; with_gle_req="$withval"
16147 case "$with_gle" in
16152 echo "$as_me:$LINENO: checking for GLE headers" >&5
16153 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
16154 d=$with_gle/include
16155 if test -d $d; then
16156 X_CFLAGS="-I$d $X_CFLAGS"
16157 echo "$as_me:$LINENO: result: $d" >&5
16158 echo "${ECHO_T}$d" >&6
16160 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16161 echo "${ECHO_T}not found ($d: no such directory)" >&6
16164 echo "$as_me:$LINENO: checking for GLE libs" >&5
16165 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
16167 if test -d $d; then
16168 X_LIBS="-L$d $X_LIBS"
16169 echo "$as_me:$LINENO: result: $d" >&5
16170 echo "${ECHO_T}$d" >&6
16172 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16173 echo "${ECHO_T}not found ($d: no such directory)" >&6
16176 # replace the directory string with "yes".
16178 with_gle=$with_gle_req
16183 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
16184 echo " If it is a directory, then \`DIR/include' will be added to"
16185 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16193 if test "$have_gl" = no ; then
16195 elif test "$with_gle" = yes; then
16198 ac_save_CPPFLAGS="$CPPFLAGS"
16199 if test \! -z "$includedir" ; then
16200 CPPFLAGS="$CPPFLAGS -I$includedir"
16202 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16203 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
16204 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
16205 if test "${ac_cv_header_GL_gle_h+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 cat >conftest.$ac_ext <<_ACEOF
16209 #line $LINENO "configure"
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h. */
16217 #include <GL/gle.h>
16219 rm -f conftest.$ac_objext
16220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16221 (eval $ac_compile) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
16225 { ac_try='test -s conftest.$ac_objext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 ac_cv_header_GL_gle_h=yes
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 ac_cv_header_GL_gle_h=no
16238 rm -f conftest.$ac_objext conftest.$ac_ext
16240 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
16241 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
16242 if test $ac_cv_header_GL_gle_h = yes; then
16249 CPPFLAGS="$ac_save_CPPFLAGS"
16250 if test "$have_gle3" = yes ; then
16254 ac_save_CPPFLAGS="$CPPFLAGS"
16255 if test \! -z "$includedir" ; then
16256 CPPFLAGS="$CPPFLAGS -I$includedir"
16258 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16259 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
16260 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
16261 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
16262 echo $ECHO_N "(cached) $ECHO_C" >&6
16264 cat >conftest.$ac_ext <<_ACEOF
16265 #line $LINENO "configure"
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16273 #include <GL/gutil.h>
16275 rm -f conftest.$ac_objext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16277 (eval $ac_compile) 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
16281 { ac_try='test -s conftest.$ac_objext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_cv_header_GL_gutil_h=yes
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ac_cv_header_GL_gutil_h=no
16294 rm -f conftest.$ac_objext conftest.$ac_ext
16296 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
16297 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
16298 if test $ac_cv_header_GL_gutil_h = yes; then
16305 CPPFLAGS="$ac_save_CPPFLAGS"
16306 if test "$have_gle" = yes ; then
16308 ac_save_CPPFLAGS="$CPPFLAGS"
16309 if test \! -z "$includedir" ; then
16310 CPPFLAGS="$CPPFLAGS -I$includedir"
16312 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16313 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
16314 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
16315 if test "${ac_cv_header_GL_tube_h+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 cat >conftest.$ac_ext <<_ACEOF
16319 #line $LINENO "configure"
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16327 #include <GL/tube.h>
16329 rm -f conftest.$ac_objext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16331 (eval $ac_compile) 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -s conftest.$ac_objext'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; }; then
16341 ac_cv_header_GL_tube_h=yes
16343 echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.$ac_ext >&5
16346 ac_cv_header_GL_tube_h=no
16348 rm -f conftest.$ac_objext conftest.$ac_ext
16350 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
16351 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
16352 if test $ac_cv_header_GL_tube_h = yes; then
16359 CPPFLAGS="$ac_save_CPPFLAGS"
16363 if test "$have_gle" = yes ; then
16367 ac_save_CPPFLAGS="$CPPFLAGS"
16368 ac_save_LDFLAGS="$LDFLAGS"
16369 # ac_save_LIBS="$LIBS"
16371 if test \! -z "$includedir" ; then
16372 CPPFLAGS="$CPPFLAGS -I$includedir"
16374 # note: $X_CFLAGS includes $x_includes
16375 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16377 if test \! -z "$libdir" ; then
16378 LDFLAGS="$LDFLAGS -L$libdir"
16380 # note: $X_LIBS includes $x_libraries
16381 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16383 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
16384 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
16385 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 ac_check_lib_save_LIBS=$LIBS
16389 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16390 cat >conftest.$ac_ext <<_ACEOF
16391 #line $LINENO "configure"
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16398 /* Override any gcc2 internal prototype to avoid an error. */
16402 /* We use char because int might match the return type of a gcc2
16403 builtin and then its argument prototype would still apply. */
16404 char gleCreateGC ();
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16415 (eval $ac_link) 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
16419 { ac_try='test -s conftest$ac_exeext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_cv_lib_gle_gleCreateGC=yes
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_cv_lib_gle_gleCreateGC=no
16432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16433 LIBS=$ac_check_lib_save_LIBS
16435 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
16436 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
16437 if test $ac_cv_lib_gle_gleCreateGC = yes; then
16438 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
16441 CPPFLAGS="$ac_save_CPPFLAGS"
16442 LDFLAGS="$ac_save_LDFLAGS"
16443 # LIBS="$ac_save_LIBS"
16446 if test "$have_gle" = yes ; then
16450 # sometimes the libmatrix stuff is included in libgle. look there first.
16452 # I don't get it. For some reason, this test passes on SGI, as if
16453 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
16454 # Yet the link is succeeding. Why???
16456 # AC_CHECK_X_LIB(gle, uview_direction_d,
16457 # [have_gle=yes; gle_halfassed=no],
16458 # [], $GL_LIBS -lX11 -lXext -lm)
16460 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
16462 if test "$have_gle3" = yes ; then
16464 ac_save_CPPFLAGS="$CPPFLAGS"
16465 ac_save_LDFLAGS="$LDFLAGS"
16466 # ac_save_LIBS="$LIBS"
16468 if test \! -z "$includedir" ; then
16469 CPPFLAGS="$CPPFLAGS -I$includedir"
16471 # note: $X_CFLAGS includes $x_includes
16472 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16474 if test \! -z "$libdir" ; then
16475 LDFLAGS="$LDFLAGS -L$libdir"
16477 # note: $X_LIBS includes $x_libraries
16478 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16480 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
16481 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
16482 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 ac_check_lib_save_LIBS=$LIBS
16486 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16487 cat >conftest.$ac_ext <<_ACEOF
16488 #line $LINENO "configure"
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16495 /* Override any gcc2 internal prototype to avoid an error. */
16499 /* We use char because int might match the return type of a gcc2
16500 builtin and then its argument prototype would still apply. */
16501 char uview_direction ();
16505 uview_direction ();
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512 (eval $ac_link) 2>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -s conftest$ac_exeext'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16522 ac_cv_lib_gle_uview_direction=yes
16524 echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16527 ac_cv_lib_gle_uview_direction=no
16529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16530 LIBS=$ac_check_lib_save_LIBS
16532 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
16533 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
16534 if test $ac_cv_lib_gle_uview_direction = yes; then
16535 have_gle=yes; gle_halfassed=no
16538 CPPFLAGS="$ac_save_CPPFLAGS"
16539 LDFLAGS="$ac_save_LDFLAGS"
16540 # LIBS="$ac_save_LIBS"
16543 # if it wasn't in libgle, then look in libmatrix.
16544 if test "$have_gle" = no ; then
16546 ac_save_CPPFLAGS="$CPPFLAGS"
16547 ac_save_LDFLAGS="$LDFLAGS"
16548 # ac_save_LIBS="$LIBS"
16550 if test \! -z "$includedir" ; then
16551 CPPFLAGS="$CPPFLAGS -I$includedir"
16553 # note: $X_CFLAGS includes $x_includes
16554 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16556 if test \! -z "$libdir" ; then
16557 LDFLAGS="$LDFLAGS -L$libdir"
16559 # note: $X_LIBS includes $x_libraries
16560 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16562 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
16563 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
16564 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_check_lib_save_LIBS=$LIBS
16568 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
16569 cat >conftest.$ac_ext <<_ACEOF
16570 #line $LINENO "configure"
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16577 /* Override any gcc2 internal prototype to avoid an error. */
16581 /* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
16583 char uview_direction_d ();
16587 uview_direction_d ();
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594 (eval $ac_link) 2>&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } &&
16598 { ac_try='test -s conftest$ac_exeext'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 ac_cv_lib_matrix_uview_direction_d=yes
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16609 ac_cv_lib_matrix_uview_direction_d=no
16611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16612 LIBS=$ac_check_lib_save_LIBS
16614 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
16615 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
16616 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
16617 have_gle=yes; gle_halfassed=no;
16618 GLE_LIBS="$GLE_LIBS -lmatrix"
16621 CPPFLAGS="$ac_save_CPPFLAGS"
16622 LDFLAGS="$ac_save_LDFLAGS"
16623 # LIBS="$ac_save_LIBS"
16628 if test "$have_gle" = yes ; then
16629 cat >>confdefs.h <<\_ACEOF
16633 if test "$have_gle3" = yes ; then
16634 cat >>confdefs.h <<\_ACEOF
16635 #define HAVE_GLE3 1
16641 elif test "$with_gle" != no; then
16642 echo "error: must be yes or no: --with-gle=$with_gle"
16649 ###############################################################################
16653 ###############################################################################
16656 with_xpm_req=unspecified
16658 # Check whether --with-xpm or --without-xpm was given.
16659 if test "${with_xpm+set}" = set; then
16660 withval="$with_xpm"
16661 with_xpm="$withval"; with_xpm_req="$withval"
16667 case "$with_xpm" in
16672 echo "$as_me:$LINENO: checking for XPM headers" >&5
16673 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
16674 d=$with_xpm/include
16675 if test -d $d; then
16676 X_CFLAGS="-I$d $X_CFLAGS"
16677 echo "$as_me:$LINENO: result: $d" >&5
16678 echo "${ECHO_T}$d" >&6
16680 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16681 echo "${ECHO_T}not found ($d: no such directory)" >&6
16684 echo "$as_me:$LINENO: checking for XPM libs" >&5
16685 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
16687 if test -d $d; then
16688 X_LIBS="-L$d $X_LIBS"
16689 echo "$as_me:$LINENO: result: $d" >&5
16690 echo "${ECHO_T}$d" >&6
16692 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16693 echo "${ECHO_T}not found ($d: no such directory)" >&6
16696 # replace the directory string with "yes".
16698 with_xpm=$with_xpm_req
16703 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
16704 echo " If it is a directory, then \`DIR/include' will be added to"
16705 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16711 if test "$with_xpm" = yes; then
16713 ac_save_CPPFLAGS="$CPPFLAGS"
16714 if test \! -z "$includedir" ; then
16715 CPPFLAGS="$CPPFLAGS -I$includedir"
16717 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16718 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
16719 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
16720 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 cat >conftest.$ac_ext <<_ACEOF
16724 #line $LINENO "configure"
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 #include <X11/Xlib.h>
16732 #include <X11/xpm.h>
16734 rm -f conftest.$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -s conftest.$ac_objext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_header_X11_xpm_h=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_header_X11_xpm_h=no
16753 rm -f conftest.$ac_objext conftest.$ac_ext
16755 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
16756 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
16757 if test $ac_cv_header_X11_xpm_h = yes; then
16759 cat >>confdefs.h <<\_ACEOF
16767 CPPFLAGS="$ac_save_CPPFLAGS"
16768 elif test "$with_xpm" != no; then
16769 echo "error: must be yes or no: --with-xpm=$with_xpm"
16773 # See comment near $motif_requires_xpm, above.
16774 # Need to do this here, after both Motif and XPM have been checked for.
16776 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
16777 if test "$motif_requires_xpm" = yes ; then
16778 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
16782 ###############################################################################
16784 # Check for -lgdk_pixbuf.
16786 ###############################################################################
16789 with_gdk_pixbuf_req=unspecified
16791 # Check whether --with-pixbuf or --without-pixbuf was given.
16792 if test "${with_pixbuf+set}" = set; then
16793 withval="$with_pixbuf"
16794 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
16796 with_gdk_pixbuf=yes
16799 # if --with-pixbuf=/directory/ was specified, remember that directory so that
16800 # we can also look for the `gdk-pixbuf-config' program in that directory.
16801 case "$with_gdk_pixbuf" in
16803 gdk_pixbuf_dir="$with_gdk_pixbuf"
16811 case "$with_gdk_pixbuf" in
16816 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
16817 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
16818 d=$with_gdk_pixbuf/include
16819 if test -d $d; then
16820 X_CFLAGS="-I$d $X_CFLAGS"
16821 echo "$as_me:$LINENO: result: $d" >&5
16822 echo "${ECHO_T}$d" >&6
16824 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16825 echo "${ECHO_T}not found ($d: no such directory)" >&6
16828 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
16829 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
16830 d=$with_gdk_pixbuf/lib
16831 if test -d $d; then
16832 X_LIBS="-L$d $X_LIBS"
16833 echo "$as_me:$LINENO: result: $d" >&5
16834 echo "${ECHO_T}$d" >&6
16836 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16837 echo "${ECHO_T}not found ($d: no such directory)" >&6
16840 # replace the directory string with "yes".
16841 with_gdk_pixbuf_req="yes"
16842 with_gdk_pixbuf=$with_gdk_pixbuf_req
16847 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
16848 echo " If it is a directory, then \`DIR/include' will be added to"
16849 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16855 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
16856 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
16860 if test "$with_gdk_pixbuf" = yes; then
16862 have_gdk_pixbuf2=no
16864 if test -n "$pkg_config" ; then
16867 # run pkg-config based tests.
16872 # If we have Gtk 2.x, then *only* gdk-pixbuf 2.x will work.
16873 # If we have Gtk 1.x, then *only* gdk-pixbuf 1.x will work.
16874 # If we don't have Gtk at all, then either will work.
16876 if test "$have_gtk" = no -o "$have_gtk2" = yes; then
16878 # we don't have Gtk; or we have Gtk 2.x. Check for pixbuf 2.x.
16880 echo "$as_me:$LINENO: result: checking for gdk_pixbuf 2.x with gtk-config based tests..." >&5
16881 echo "${ECHO_T}checking for gdk_pixbuf 2.x with gtk-config based tests..." >&6
16882 pkg_check_version gdk-pixbuf-2.0 2.0.0
16883 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
16884 have_gdk_pixbuf="$ok"
16885 have_gdk_pixbuf2="$ok"
16888 if test "$have_gtk" = no -o "$have_gtk2" = no; then
16890 # we don't have Gtk; or we have Gtk 1.x.
16891 # If we don't have pixbuf 2.x, then check for pixbuf 1.x.
16893 if test "$have_gdk_pixbuf2" = no; then
16896 echo "$as_me:$LINENO: result: checking for gdk_pixbuf 1.x with gtk-config based tests..." >&5
16897 echo "${ECHO_T}checking for gdk_pixbuf 1.x with gtk-config based tests..." >&6
16898 pkg_check_version gdk_pixbuf 0.0
16899 pkg_check_version gdk_pixbuf_xlib 0.0
16900 have_gdk_pixbuf="$ok"
16904 if test "$have_gdk_pixbuf" = yes; then
16905 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
16906 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
16907 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
16912 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
16913 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
16914 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
16915 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
16916 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
16921 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
16922 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
16924 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
16925 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
16929 if test "$have_gdk_pixbuf" = no; then
16932 # run gdk-pixbuf-config based tests.
16933 # note that we can't assume that the existence of "pkg-config" means
16934 # that we don't have to look for gdk-pixbuf-config -- in Gnome 1.4,
16935 # pkg-config exists, but doesn't know about pixbuf.
16938 echo "$as_me:$LINENO: result: checking for gdk_pixbuf with gdk-pixbuf-config based tests..." >&5
16939 echo "${ECHO_T}checking for gdk_pixbuf with gdk-pixbuf-config based tests..." >&6
16941 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
16942 # look in /foo/bin/ for for gdk-pixbuf-config.
16944 gdk_pixbuf_path="$PATH"
16946 if test ! -z "$gtk_dir"; then
16947 # canonicalize slashes.
16948 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
16949 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
16952 if test ! -z "$gnome_dir"; then
16953 # canonicalize slashes.
16954 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
16955 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
16958 for ac_prog in gdk-pixbuf-config
16960 # Extract the first word of "$ac_prog", so it can be a program name with args.
16961 set dummy $ac_prog; ac_word=$2
16962 echo "$as_me:$LINENO: checking for $ac_word" >&5
16963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16964 if test "${ac_cv_path_gdk_pixbuf_config+set}" = set; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 case $gdk_pixbuf_config in
16969 ac_cv_path_gdk_pixbuf_config="$gdk_pixbuf_config" # Let the user override the test with a path.
16972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16973 for as_dir in $gdk_pixbuf_path
16976 test -z "$as_dir" && as_dir=.
16977 for ac_exec_ext in '' $ac_executable_extensions; do
16978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16979 ac_cv_path_gdk_pixbuf_config="$as_dir/$ac_word$ac_exec_ext"
16980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16989 gdk_pixbuf_config=$ac_cv_path_gdk_pixbuf_config
16991 if test -n "$gdk_pixbuf_config"; then
16992 echo "$as_me:$LINENO: result: $gdk_pixbuf_config" >&5
16993 echo "${ECHO_T}$gdk_pixbuf_config" >&6
16995 echo "$as_me:$LINENO: result: no" >&5
16996 echo "${ECHO_T}no" >&6
16999 test -n "$gdk_pixbuf_config" && break
17003 # If we found the gdk-pixbuf-config program, run it to get flags.
17005 if test -n "$gdk_pixbuf_config" ; then
17006 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
17007 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
17008 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17011 ac_cv_gdk_pixbuf_config_cflags=`$gdk_pixbuf_config --cflags`
17013 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
17014 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
17015 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
17016 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
17017 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17020 ac_cv_gdk_pixbuf_config_libs=`$gdk_pixbuf_config --libs`
17022 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
17023 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
17025 # note that "gdk-pixbuf-config --libs" produces a link line including
17026 # -lgdk_pixbuf, but there's no way to get it to produce one that also
17027 # includes -lgdk_pixbuf_xlib. Since we don't know *exactly* what the
17028 # name of the library will be, construct it with sed...
17031 ac_cv_gdk_pixbuf_config_libs=`echo $ac_cv_gdk_pixbuf_config_libs | \
17032 sed 's@ \(-lgdk_pixbuf\([-_a-zA-Z0-9.]*\)\) @ \1 -lgdk_pixbuf_xlib\2 @'`
17035 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
17036 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
17040 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
17041 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
17043 if test "$have_gdk_pixbuf" = no; then
17045 # we appear to have pixbuf; check for headers/libs to be sure.
17050 # check for header A...
17052 ac_save_CPPFLAGS="$CPPFLAGS"
17053 if test \! -z "$includedir" ; then
17054 CPPFLAGS="$CPPFLAGS -I$includedir"
17056 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17057 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17058 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17059 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
17060 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17064 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
17066 # Is the header compilable?
17067 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
17068 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
17069 cat >conftest.$ac_ext <<_ACEOF
17070 #line $LINENO "configure"
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076 $ac_includes_default
17077 #include <gdk-pixbuf/gdk-pixbuf.h>
17079 rm -f conftest.$ac_objext
17080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17081 (eval $ac_compile) 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -s conftest.$ac_objext'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; }; then
17091 ac_header_compiler=yes
17093 echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17096 ac_header_compiler=no
17098 rm -f conftest.$ac_objext conftest.$ac_ext
17099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17100 echo "${ECHO_T}$ac_header_compiler" >&6
17102 # Is the header present?
17103 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
17104 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
17105 cat >conftest.$ac_ext <<_ACEOF
17106 #line $LINENO "configure"
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 #include <gdk-pixbuf/gdk-pixbuf.h>
17114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } >/dev/null; then
17122 if test -s conftest.err; then
17123 ac_cpp_err=$ac_c_preproc_warn_flag
17130 if test -z "$ac_cpp_err"; then
17131 ac_header_preproc=yes
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 ac_header_preproc=no
17138 rm -f conftest.err conftest.$ac_ext
17139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17140 echo "${ECHO_T}$ac_header_preproc" >&6
17142 # So? What about this header?
17143 case $ac_header_compiler:$ac_header_preproc in
17145 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
17146 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17147 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
17148 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
17151 ## ------------------------------------ ##
17152 ## Report this to bug-autoconf@gnu.org. ##
17153 ## ------------------------------------ ##
17156 sed "s/^/$as_me: WARNING: /" >&2
17159 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
17160 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
17161 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
17162 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
17163 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
17164 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
17167 ## ------------------------------------ ##
17168 ## Report this to bug-autoconf@gnu.org. ##
17169 ## ------------------------------------ ##
17172 sed "s/^/$as_me: WARNING: /" >&2
17175 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17176 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
17177 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
17182 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17183 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
17186 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
17187 have_gdk_pixbuf=yes
17191 CPPFLAGS="$ac_save_CPPFLAGS"
17193 # if that worked, check for header B...
17194 if test "$have_gdk_pixbuf" = yes; then
17196 gdk_pixbuf_halfassed=yes
17198 ac_save_CPPFLAGS="$CPPFLAGS"
17199 if test \! -z "$includedir" ; then
17200 CPPFLAGS="$CPPFLAGS -I$includedir"
17202 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17203 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17204 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17205 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17206 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17210 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17212 # Is the header compilable?
17213 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
17214 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17215 cat >conftest.$ac_ext <<_ACEOF
17216 #line $LINENO "configure"
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17222 $ac_includes_default
17223 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17225 rm -f conftest.$ac_objext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17227 (eval $ac_compile) 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } &&
17231 { ac_try='test -s conftest.$ac_objext'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_header_compiler=yes
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ac_header_compiler=no
17244 rm -f conftest.$ac_objext conftest.$ac_ext
17245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17246 echo "${ECHO_T}$ac_header_compiler" >&6
17248 # Is the header present?
17249 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
17250 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17251 cat >conftest.$ac_ext <<_ACEOF
17252 #line $LINENO "configure"
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } >/dev/null; then
17268 if test -s conftest.err; then
17269 ac_cpp_err=$ac_c_preproc_warn_flag
17276 if test -z "$ac_cpp_err"; then
17277 ac_header_preproc=yes
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_header_preproc=no
17284 rm -f conftest.err conftest.$ac_ext
17285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17286 echo "${ECHO_T}$ac_header_preproc" >&6
17288 # So? What about this header?
17289 case $ac_header_compiler:$ac_header_preproc in
17291 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17292 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17293 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17294 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17297 ## ------------------------------------ ##
17298 ## Report this to bug-autoconf@gnu.org. ##
17299 ## ------------------------------------ ##
17302 sed "s/^/$as_me: WARNING: /" >&2
17305 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17306 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17307 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17308 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17309 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17310 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17313 ## ------------------------------------ ##
17314 ## Report this to bug-autoconf@gnu.org. ##
17315 ## ------------------------------------ ##
17318 sed "s/^/$as_me: WARNING: /" >&2
17321 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17322 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17323 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
17328 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17329 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17332 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
17333 have_gdk_pixbuf=yes
17334 gdk_pixbuf_halfassed=no
17338 CPPFLAGS="$ac_save_CPPFLAGS"
17340 # yay, it has a new name in Gtk 2.x...
17341 if test "$have_gdk_pixbuf" = no; then
17343 gdk_pixbuf_halfassed=yes
17345 ac_save_CPPFLAGS="$CPPFLAGS"
17346 if test \! -z "$includedir" ; then
17347 CPPFLAGS="$CPPFLAGS -I$includedir"
17349 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17350 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17351 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17352 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17353 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17356 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17357 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17359 # Is the header compilable?
17360 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
17361 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17362 cat >conftest.$ac_ext <<_ACEOF
17363 #line $LINENO "configure"
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 $ac_includes_default
17370 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17372 rm -f conftest.$ac_objext
17373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17374 (eval $ac_compile) 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
17378 { ac_try='test -s conftest.$ac_objext'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 ac_header_compiler=yes
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17389 ac_header_compiler=no
17391 rm -f conftest.$ac_objext conftest.$ac_ext
17392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17393 echo "${ECHO_T}$ac_header_compiler" >&6
17395 # Is the header present?
17396 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
17397 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17398 cat >conftest.$ac_ext <<_ACEOF
17399 #line $LINENO "configure"
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17405 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17410 grep -v '^ *+' conftest.er1 >conftest.err
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } >/dev/null; then
17415 if test -s conftest.err; then
17416 ac_cpp_err=$ac_c_preproc_warn_flag
17423 if test -z "$ac_cpp_err"; then
17424 ac_header_preproc=yes
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17429 ac_header_preproc=no
17431 rm -f conftest.err conftest.$ac_ext
17432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17433 echo "${ECHO_T}$ac_header_preproc" >&6
17435 # So? What about this header?
17436 case $ac_header_compiler:$ac_header_preproc in
17438 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17439 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17441 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17444 ## ------------------------------------ ##
17445 ## Report this to bug-autoconf@gnu.org. ##
17446 ## ------------------------------------ ##
17449 sed "s/^/$as_me: WARNING: /" >&2
17452 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17453 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17454 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17455 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17456 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17457 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17460 ## ------------------------------------ ##
17461 ## Report this to bug-autoconf@gnu.org. ##
17462 ## ------------------------------------ ##
17465 sed "s/^/$as_me: WARNING: /" >&2
17468 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17469 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17470 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
17475 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17476 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17479 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
17480 have_gdk_pixbuf=yes
17481 gdk_pixbuf_halfassed=no
17485 CPPFLAGS="$ac_save_CPPFLAGS"
17490 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
17492 if test "$have_gdk_pixbuf" = yes; then
17493 # we have the headers, now check for the libraries
17495 gdk_pixbuf_halfassed=yes
17499 ac_save_CPPFLAGS="$CPPFLAGS"
17500 ac_save_LDFLAGS="$LDFLAGS"
17501 # ac_save_LIBS="$LIBS"
17503 if test \! -z "$includedir" ; then
17504 CPPFLAGS="$CPPFLAGS -I$includedir"
17506 # note: $X_CFLAGS includes $x_includes
17507 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17509 if test \! -z "$libdir" ; then
17510 LDFLAGS="$LDFLAGS -L$libdir"
17512 # note: $X_LIBS includes $x_libraries
17513 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17515 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
17516 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
17517 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 ac_check_lib_save_LIBS=$LIBS
17521 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17522 cat >conftest.$ac_ext <<_ACEOF
17523 #line $LINENO "configure"
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17530 /* Override any gcc2 internal prototype to avoid an error. */
17534 /* We use char because int might match the return type of a gcc2
17535 builtin and then its argument prototype would still apply. */
17536 char gdk_pixbuf_new_from_file ();
17540 gdk_pixbuf_new_from_file ();
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17547 (eval $ac_link) 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try='test -s conftest$ac_exeext'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17557 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
17559 echo "$as_me: failed program was:" >&5
17560 sed 's/^/| /' conftest.$ac_ext >&5
17562 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
17564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17565 LIBS=$ac_check_lib_save_LIBS
17567 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
17568 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
17569 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
17570 have_gdk_pixbuf=yes
17573 CPPFLAGS="$ac_save_CPPFLAGS"
17574 LDFLAGS="$ac_save_LDFLAGS"
17575 # LIBS="$ac_save_LIBS"
17578 if test "$have_gdk_pixbuf" = yes; then
17581 ac_save_CPPFLAGS="$CPPFLAGS"
17582 ac_save_LDFLAGS="$LDFLAGS"
17583 # ac_save_LIBS="$LIBS"
17585 if test \! -z "$includedir" ; then
17586 CPPFLAGS="$CPPFLAGS -I$includedir"
17588 # note: $X_CFLAGS includes $x_includes
17589 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17591 if test \! -z "$libdir" ; then
17592 LDFLAGS="$LDFLAGS -L$libdir"
17594 # note: $X_LIBS includes $x_libraries
17595 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17597 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
17598 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
17599 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 ac_check_lib_save_LIBS=$LIBS
17603 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17604 cat >conftest.$ac_ext <<_ACEOF
17605 #line $LINENO "configure"
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17612 /* Override any gcc2 internal prototype to avoid an error. */
17616 /* We use char because int might match the return type of a gcc2
17617 builtin and then its argument prototype would still apply. */
17618 char gdk_pixbuf_xlib_init ();
17622 gdk_pixbuf_xlib_init ();
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -s conftest$ac_exeext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
17646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17647 LIBS=$ac_check_lib_save_LIBS
17649 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
17650 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
17651 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
17652 have_gdk_pixbuf=yes
17653 gdk_pixbuf_halfassed=no
17656 CPPFLAGS="$ac_save_CPPFLAGS"
17657 LDFLAGS="$ac_save_LDFLAGS"
17658 # LIBS="$ac_save_LIBS"
17663 if test "$have_gdk_pixbuf" = yes; then
17664 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
17665 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
17666 cat >>confdefs.h <<\_ACEOF
17667 #define HAVE_GDK_PIXBUF 1
17671 have_gdk_pixbuf2=no
17676 ###############################################################################
17680 ###############################################################################
17683 with_jpeg_req=unspecified
17686 # Check whether --with-jpeg or --without-jpeg was given.
17687 if test "${with_jpeg+set}" = set; then
17688 withval="$with_jpeg"
17689 with_jpeg="$withval"; with_jpeg_req="$withval"
17695 case "$with_jpeg" in
17700 echo "$as_me:$LINENO: checking for JPEG headers" >&5
17701 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
17702 d=$with_jpeg/include
17703 if test -d $d; then
17704 X_CFLAGS="-I$d $X_CFLAGS"
17705 echo "$as_me:$LINENO: result: $d" >&5
17706 echo "${ECHO_T}$d" >&6
17708 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17709 echo "${ECHO_T}not found ($d: no such directory)" >&6
17712 echo "$as_me:$LINENO: checking for JPEG libs" >&5
17713 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
17715 if test -d $d; then
17716 X_LIBS="-L$d $X_LIBS"
17717 echo "$as_me:$LINENO: result: $d" >&5
17718 echo "${ECHO_T}$d" >&6
17720 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17721 echo "${ECHO_T}not found ($d: no such directory)" >&6
17724 # replace the directory string with "yes".
17725 with_jpeg_req="yes"
17726 with_jpeg=$with_jpeg_req
17731 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
17732 echo " If it is a directory, then \`DIR/include' will be added to"
17733 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17739 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
17740 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
17744 if test "$with_jpeg" = yes; then
17748 ac_save_CPPFLAGS="$CPPFLAGS"
17749 if test \! -z "$includedir" ; then
17750 CPPFLAGS="$CPPFLAGS -I$includedir"
17752 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17753 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17754 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17755 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17756 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17760 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17762 # Is the header compilable?
17763 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
17764 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
17765 cat >conftest.$ac_ext <<_ACEOF
17766 #line $LINENO "configure"
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17773 #include <jpeglib.h>
17775 rm -f conftest.$ac_objext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17777 (eval $ac_compile) 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try='test -s conftest.$ac_objext'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 ac_header_compiler=yes
17789 echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 ac_header_compiler=no
17794 rm -f conftest.$ac_objext conftest.$ac_ext
17795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17796 echo "${ECHO_T}$ac_header_compiler" >&6
17798 # Is the header present?
17799 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
17800 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
17801 cat >conftest.$ac_ext <<_ACEOF
17802 #line $LINENO "configure"
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808 #include <jpeglib.h>
17810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17813 grep -v '^ *+' conftest.er1 >conftest.err
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } >/dev/null; then
17818 if test -s conftest.err; then
17819 ac_cpp_err=$ac_c_preproc_warn_flag
17826 if test -z "$ac_cpp_err"; then
17827 ac_header_preproc=yes
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ac_header_preproc=no
17834 rm -f conftest.err conftest.$ac_ext
17835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17836 echo "${ECHO_T}$ac_header_preproc" >&6
17838 # So? What about this header?
17839 case $ac_header_compiler:$ac_header_preproc in
17841 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17842 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17843 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
17844 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
17847 ## ------------------------------------ ##
17848 ## Report this to bug-autoconf@gnu.org. ##
17849 ## ------------------------------------ ##
17852 sed "s/^/$as_me: WARNING: /" >&2
17855 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
17856 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
17857 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
17858 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
17859 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
17860 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
17863 ## ------------------------------------ ##
17864 ## Report this to bug-autoconf@gnu.org. ##
17865 ## ------------------------------------ ##
17868 sed "s/^/$as_me: WARNING: /" >&2
17871 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17872 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17873 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 ac_cv_header_jpeglib_h=$ac_header_preproc
17878 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17879 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17882 if test $ac_cv_header_jpeglib_h = yes; then
17887 CPPFLAGS="$ac_save_CPPFLAGS"
17889 if test "$have_jpeg" = yes; then
17890 # we have the header, now check for the library
17894 ac_save_CPPFLAGS="$CPPFLAGS"
17895 ac_save_LDFLAGS="$LDFLAGS"
17896 # ac_save_LIBS="$LIBS"
17898 if test \! -z "$includedir" ; then
17899 CPPFLAGS="$CPPFLAGS -I$includedir"
17901 # note: $X_CFLAGS includes $x_includes
17902 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17904 if test \! -z "$libdir" ; then
17905 LDFLAGS="$LDFLAGS -L$libdir"
17907 # note: $X_LIBS includes $x_libraries
17908 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17910 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
17911 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
17912 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 ac_check_lib_save_LIBS=$LIBS
17916 LIBS="-ljpeg $LIBS"
17917 cat >conftest.$ac_ext <<_ACEOF
17918 #line $LINENO "configure"
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17925 /* Override any gcc2 internal prototype to avoid an error. */
17929 /* We use char because int might match the return type of a gcc2
17930 builtin and then its argument prototype would still apply. */
17931 char jpeg_start_compress ();
17935 jpeg_start_compress ();
17940 rm -f conftest.$ac_objext conftest$ac_exeext
17941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17942 (eval $ac_link) 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -s conftest$ac_exeext'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 ac_cv_lib_jpeg_jpeg_start_compress=yes
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 ac_cv_lib_jpeg_jpeg_start_compress=no
17959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17960 LIBS=$ac_check_lib_save_LIBS
17962 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
17963 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
17964 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
17968 cat >>confdefs.h <<\_ACEOF
17969 #define HAVE_JPEGLIB 1
17974 CPPFLAGS="$ac_save_CPPFLAGS"
17975 LDFLAGS="$ac_save_LDFLAGS"
17976 # LIBS="$ac_save_LIBS"
17982 ###############################################################################
17984 # Check for pty support for 'phosphor'
17986 ###############################################################################
17991 for ac_header in pty.h util.h
17993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17995 echo "$as_me:$LINENO: checking for $ac_header" >&5
17996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
18000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18003 # Is the header compilable?
18004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18006 cat >conftest.$ac_ext <<_ACEOF
18007 #line $LINENO "configure"
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h. */
18013 $ac_includes_default
18014 #include <$ac_header>
18016 rm -f conftest.$ac_objext
18017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18018 (eval $ac_compile) 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -s conftest.$ac_objext'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; }; then
18028 ac_header_compiler=yes
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18033 ac_header_compiler=no
18035 rm -f conftest.$ac_objext conftest.$ac_ext
18036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18037 echo "${ECHO_T}$ac_header_compiler" >&6
18039 # Is the header present?
18040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18042 cat >conftest.$ac_ext <<_ACEOF
18043 #line $LINENO "configure"
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 #include <$ac_header>
18051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18054 grep -v '^ *+' conftest.er1 >conftest.err
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } >/dev/null; then
18059 if test -s conftest.err; then
18060 ac_cpp_err=$ac_c_preproc_warn_flag
18067 if test -z "$ac_cpp_err"; then
18068 ac_header_preproc=yes
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 ac_header_preproc=no
18075 rm -f conftest.err conftest.$ac_ext
18076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18077 echo "${ECHO_T}$ac_header_preproc" >&6
18079 # So? What about this header?
18080 case $ac_header_compiler:$ac_header_preproc in
18082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18088 ## ------------------------------------ ##
18089 ## Report this to bug-autoconf@gnu.org. ##
18090 ## ------------------------------------ ##
18093 sed "s/^/$as_me: WARNING: /" >&2
18096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18104 ## ------------------------------------ ##
18105 ## Report this to bug-autoconf@gnu.org. ##
18106 ## ------------------------------------ ##
18109 sed "s/^/$as_me: WARNING: /" >&2
18112 echo "$as_me:$LINENO: checking for $ac_header" >&5
18113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 eval "$as_ac_Header=$ac_header_preproc"
18119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18124 cat >>confdefs.h <<_ACEOF
18125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18133 ac_save_CPPFLAGS="$CPPFLAGS"
18134 ac_save_LDFLAGS="$LDFLAGS"
18135 # ac_save_LIBS="$LIBS"
18137 if test \! -z "$includedir" ; then
18138 CPPFLAGS="$CPPFLAGS -I$includedir"
18140 # note: $X_CFLAGS includes $x_includes
18141 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18143 if test \! -z "$libdir" ; then
18144 LDFLAGS="$LDFLAGS -L$libdir"
18146 # note: $X_LIBS includes $x_libraries
18147 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18149 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18150 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
18151 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 ac_check_lib_save_LIBS=$LIBS
18155 LIBS="-lutil $LIBS"
18156 cat >conftest.$ac_ext <<_ACEOF
18157 #line $LINENO "configure"
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18164 /* Override any gcc2 internal prototype to avoid an error. */
18168 /* We use char because int might match the return type of a gcc2
18169 builtin and then its argument prototype would still apply. */
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18181 (eval $ac_link) 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } &&
18185 { ac_try='test -s conftest$ac_exeext'
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_cv_lib_util_forkpty=yes
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 ac_cv_lib_util_forkpty=no
18198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18199 LIBS=$ac_check_lib_save_LIBS
18201 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18202 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
18203 if test $ac_cv_lib_util_forkpty = yes; then
18205 cat >>confdefs.h <<\_ACEOF
18206 #define HAVE_FORKPTY 1
18211 CPPFLAGS="$ac_save_CPPFLAGS"
18212 LDFLAGS="$ac_save_LDFLAGS"
18213 # LIBS="$ac_save_LIBS"
18217 ###############################################################################
18219 # Check for the XSHM server extension.
18221 ###############################################################################
18224 with_xshm_req=unspecified
18226 # Check whether --with-xshm-ext or --without-xshm-ext was given.
18227 if test "${with_xshm_ext+set}" = set; then
18228 withval="$with_xshm_ext"
18229 with_xshm="$withval"; with_xshm_req="$withval"
18235 case "$with_xshm" in
18240 echo "$as_me:$LINENO: checking for XSHM headers" >&5
18241 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
18242 d=$with_xshm/include
18243 if test -d $d; then
18244 X_CFLAGS="-I$d $X_CFLAGS"
18245 echo "$as_me:$LINENO: result: $d" >&5
18246 echo "${ECHO_T}$d" >&6
18248 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18249 echo "${ECHO_T}not found ($d: no such directory)" >&6
18252 echo "$as_me:$LINENO: checking for XSHM libs" >&5
18253 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
18255 if test -d $d; then
18256 X_LIBS="-L$d $X_LIBS"
18257 echo "$as_me:$LINENO: result: $d" >&5
18258 echo "${ECHO_T}$d" >&6
18260 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18261 echo "${ECHO_T}not found ($d: no such directory)" >&6
18264 # replace the directory string with "yes".
18265 with_xshm_req="yes"
18266 with_xshm=$with_xshm_req
18271 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
18272 echo " If it is a directory, then \`DIR/include' will be added to"
18273 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18279 if test "$with_xshm" = yes; then
18281 # first check for Xshm.h.
18283 ac_save_CPPFLAGS="$CPPFLAGS"
18284 if test \! -z "$includedir" ; then
18285 CPPFLAGS="$CPPFLAGS -I$includedir"
18287 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18288 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
18289 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
18290 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 cat >conftest.$ac_ext <<_ACEOF
18294 #line $LINENO "configure"
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18300 #include <X11/Xlib.h>
18302 #include <X11/extensions/XShm.h>
18304 rm -f conftest.$ac_objext
18305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18306 (eval $ac_compile) 2>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
18310 { ac_try='test -s conftest.$ac_objext'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; }; then
18316 ac_cv_header_X11_extensions_XShm_h=yes
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ac_cv_header_X11_extensions_XShm_h=no
18323 rm -f conftest.$ac_objext conftest.$ac_ext
18325 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
18326 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
18327 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
18332 CPPFLAGS="$ac_save_CPPFLAGS"
18334 # if that succeeded, then check for sys/ipc.h.
18335 if test "$have_xshm" = yes; then
18338 ac_save_CPPFLAGS="$CPPFLAGS"
18339 if test \! -z "$includedir" ; then
18340 CPPFLAGS="$CPPFLAGS -I$includedir"
18342 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18343 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18344 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18345 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18346 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18350 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18352 # Is the header compilable?
18353 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
18354 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
18355 cat >conftest.$ac_ext <<_ACEOF
18356 #line $LINENO "configure"
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18362 $ac_includes_default
18363 #include <sys/ipc.h>
18365 rm -f conftest.$ac_objext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18367 (eval $ac_compile) 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_header_compiler=yes
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18382 ac_header_compiler=no
18384 rm -f conftest.$ac_objext conftest.$ac_ext
18385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18386 echo "${ECHO_T}$ac_header_compiler" >&6
18388 # Is the header present?
18389 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
18390 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
18391 cat >conftest.$ac_ext <<_ACEOF
18392 #line $LINENO "configure"
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 #include <sys/ipc.h>
18400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18403 grep -v '^ *+' conftest.er1 >conftest.err
18405 cat conftest.err >&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } >/dev/null; then
18408 if test -s conftest.err; then
18409 ac_cpp_err=$ac_c_preproc_warn_flag
18416 if test -z "$ac_cpp_err"; then
18417 ac_header_preproc=yes
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18422 ac_header_preproc=no
18424 rm -f conftest.err conftest.$ac_ext
18425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18426 echo "${ECHO_T}$ac_header_preproc" >&6
18428 # So? What about this header?
18429 case $ac_header_compiler:$ac_header_preproc in
18431 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
18432 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18433 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
18434 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
18437 ## ------------------------------------ ##
18438 ## Report this to bug-autoconf@gnu.org. ##
18439 ## ------------------------------------ ##
18442 sed "s/^/$as_me: WARNING: /" >&2
18445 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
18446 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
18447 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
18448 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
18449 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
18450 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
18453 ## ------------------------------------ ##
18454 ## Report this to bug-autoconf@gnu.org. ##
18455 ## ------------------------------------ ##
18458 sed "s/^/$as_me: WARNING: /" >&2
18461 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18462 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18463 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18466 ac_cv_header_sys_ipc_h=$ac_header_preproc
18468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18469 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18472 if test $ac_cv_header_sys_ipc_h = yes; then
18477 CPPFLAGS="$ac_save_CPPFLAGS"
18480 # if that succeeded, then check for sys/shm.h.
18481 if test "$have_xshm" = yes; then
18484 ac_save_CPPFLAGS="$CPPFLAGS"
18485 if test \! -z "$includedir" ; then
18486 CPPFLAGS="$CPPFLAGS -I$includedir"
18488 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18489 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18490 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18491 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18492 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18493 echo $ECHO_N "(cached) $ECHO_C" >&6
18495 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18496 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18498 # Is the header compilable?
18499 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
18500 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
18501 cat >conftest.$ac_ext <<_ACEOF
18502 #line $LINENO "configure"
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18508 $ac_includes_default
18509 #include <sys/shm.h>
18511 rm -f conftest.$ac_objext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18513 (eval $ac_compile) 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } &&
18517 { ac_try='test -s conftest.$ac_objext'
18518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519 (eval $ac_try) 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; }; then
18523 ac_header_compiler=yes
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 ac_header_compiler=no
18530 rm -f conftest.$ac_objext conftest.$ac_ext
18531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18532 echo "${ECHO_T}$ac_header_compiler" >&6
18534 # Is the header present?
18535 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
18536 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
18537 cat >conftest.$ac_ext <<_ACEOF
18538 #line $LINENO "configure"
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18544 #include <sys/shm.h>
18546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18549 grep -v '^ *+' conftest.er1 >conftest.err
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } >/dev/null; then
18554 if test -s conftest.err; then
18555 ac_cpp_err=$ac_c_preproc_warn_flag
18562 if test -z "$ac_cpp_err"; then
18563 ac_header_preproc=yes
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 ac_header_preproc=no
18570 rm -f conftest.err conftest.$ac_ext
18571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18572 echo "${ECHO_T}$ac_header_preproc" >&6
18574 # So? What about this header?
18575 case $ac_header_compiler:$ac_header_preproc in
18577 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18578 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18579 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
18580 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
18583 ## ------------------------------------ ##
18584 ## Report this to bug-autoconf@gnu.org. ##
18585 ## ------------------------------------ ##
18588 sed "s/^/$as_me: WARNING: /" >&2
18591 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
18592 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
18593 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
18594 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
18595 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
18596 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
18599 ## ------------------------------------ ##
18600 ## Report this to bug-autoconf@gnu.org. ##
18601 ## ------------------------------------ ##
18604 sed "s/^/$as_me: WARNING: /" >&2
18607 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18608 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18609 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18610 echo $ECHO_N "(cached) $ECHO_C" >&6
18612 ac_cv_header_sys_shm_h=$ac_header_preproc
18614 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18615 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18618 if test $ac_cv_header_sys_shm_h = yes; then
18623 CPPFLAGS="$ac_save_CPPFLAGS"
18626 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
18627 # to exist, but the library code to not exist. And even better, the library
18628 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
18629 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
18630 # that's not quite right, but close enough.)
18634 if `uname -v` -eq 3 ; then
18637 ac_save_CPPFLAGS="$CPPFLAGS"
18638 ac_save_LDFLAGS="$LDFLAGS"
18639 # ac_save_LIBS="$LIBS"
18641 if test \! -z "$includedir" ; then
18642 CPPFLAGS="$CPPFLAGS -I$includedir"
18644 # note: $X_CFLAGS includes $x_includes
18645 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18647 if test \! -z "$libdir" ; then
18648 LDFLAGS="$LDFLAGS -L$libdir"
18650 # note: $X_LIBS includes $x_libraries
18651 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18653 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
18654 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
18655 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 ac_check_lib_save_LIBS=$LIBS
18659 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
18660 cat >conftest.$ac_ext <<_ACEOF
18661 #line $LINENO "configure"
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18668 /* Override any gcc2 internal prototype to avoid an error. */
18672 /* We use char because int might match the return type of a gcc2
18673 builtin and then its argument prototype would still apply. */
18674 char XShmQueryExtension ();
18678 XShmQueryExtension ();
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18685 (eval $ac_link) 2>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try='test -s conftest$ac_exeext'
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18695 ac_cv_lib_XextSam_XShmQueryExtension=yes
18697 echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18700 ac_cv_lib_XextSam_XShmQueryExtension=no
18702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18705 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
18706 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
18707 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
18708 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
18713 CPPFLAGS="$ac_save_CPPFLAGS"
18714 LDFLAGS="$ac_save_LDFLAGS"
18715 # LIBS="$ac_save_LIBS"
18721 # if that succeeded, then we've really got it.
18722 if test "$have_xshm" = yes; then
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_XSHM_EXTENSION 1
18729 elif test "$with_xshm" != no; then
18730 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
18735 ###############################################################################
18737 # Check for the DOUBLE-BUFFER server extension.
18739 ###############################################################################
18742 with_xdbe_req=unspecified
18744 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
18745 if test "${with_xdbe_ext+set}" = set; then
18746 withval="$with_xdbe_ext"
18747 with_xdbe="$withval"; with_xdbe_req="$withval"
18753 case "$with_xdbe" in
18758 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
18759 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
18760 d=$with_xdbe/include
18761 if test -d $d; then
18762 X_CFLAGS="-I$d $X_CFLAGS"
18763 echo "$as_me:$LINENO: result: $d" >&5
18764 echo "${ECHO_T}$d" >&6
18766 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18767 echo "${ECHO_T}not found ($d: no such directory)" >&6
18770 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
18771 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
18773 if test -d $d; then
18774 X_LIBS="-L$d $X_LIBS"
18775 echo "$as_me:$LINENO: result: $d" >&5
18776 echo "${ECHO_T}$d" >&6
18778 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18779 echo "${ECHO_T}not found ($d: no such directory)" >&6
18782 # replace the directory string with "yes".
18783 with_xdbe_req="yes"
18784 with_xdbe=$with_xdbe_req
18789 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
18790 echo " If it is a directory, then \`DIR/include' will be added to"
18791 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18797 if test "$with_xdbe" = yes; then
18800 ac_save_CPPFLAGS="$CPPFLAGS"
18801 if test \! -z "$includedir" ; then
18802 CPPFLAGS="$CPPFLAGS -I$includedir"
18804 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18805 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
18806 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
18807 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18810 cat >conftest.$ac_ext <<_ACEOF
18811 #line $LINENO "configure"
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 #include <X11/Xlib.h>
18819 #include <X11/extensions/Xdbe.h>
18821 rm -f conftest.$ac_objext
18822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18823 (eval $ac_compile) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } &&
18827 { ac_try='test -s conftest.$ac_objext'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_cv_header_X11_extensions_Xdbe_h=yes
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 ac_cv_header_X11_extensions_Xdbe_h=no
18840 rm -f conftest.$ac_objext conftest.$ac_ext
18842 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
18843 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
18844 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
18849 CPPFLAGS="$ac_save_CPPFLAGS"
18850 if test "$have_xdbe" = yes; then
18851 cat >>confdefs.h <<\_ACEOF
18852 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
18857 elif test "$with_xdbe" != no; then
18858 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
18863 ###############################################################################
18865 # Check for the SGI XReadDisplay server extension.
18867 # Note: this has to be down here, rather than up with the other server
18868 # extension tests, so that the output of `configure --help' is in the
18869 # right order. Arrgh!
18871 ###############################################################################
18873 have_readdisplay=no
18874 with_readdisplay_req=unspecified
18876 # Check whether --with-readdisplay or --without-readdisplay was given.
18877 if test "${with_readdisplay+set}" = set; then
18878 withval="$with_readdisplay"
18879 with_readdisplay="$withval"; with_readdisplay_req="$withval"
18881 with_readdisplay=yes
18885 case "$with_readdisplay" in
18890 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
18891 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
18892 d=$with_readdisplay/include
18893 if test -d $d; then
18894 X_CFLAGS="-I$d $X_CFLAGS"
18895 echo "$as_me:$LINENO: result: $d" >&5
18896 echo "${ECHO_T}$d" >&6
18898 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18899 echo "${ECHO_T}not found ($d: no such directory)" >&6
18902 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
18903 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
18904 d=$with_readdisplay/lib
18905 if test -d $d; then
18906 X_LIBS="-L$d $X_LIBS"
18907 echo "$as_me:$LINENO: result: $d" >&5
18908 echo "${ECHO_T}$d" >&6
18910 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18911 echo "${ECHO_T}not found ($d: no such directory)" >&6
18914 # replace the directory string with "yes".
18915 with_readdisplay_req="yes"
18916 with_readdisplay=$with_readdisplay_req
18921 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
18922 echo " If it is a directory, then \`DIR/include' will be added to"
18923 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18929 if test "$with_readdisplay" = yes; then
18931 ac_save_CPPFLAGS="$CPPFLAGS"
18932 if test \! -z "$includedir" ; then
18933 CPPFLAGS="$CPPFLAGS -I$includedir"
18935 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18936 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
18937 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
18938 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 cat >conftest.$ac_ext <<_ACEOF
18942 #line $LINENO "configure"
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 #include <X11/Xlib.h>
18950 #include <X11/extensions/readdisplay.h>
18952 rm -f conftest.$ac_objext
18953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18954 (eval $ac_compile) 2>&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } &&
18958 { ac_try='test -s conftest.$ac_objext'
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_cv_header_X11_extensions_readdisplay_h=yes
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18969 ac_cv_header_X11_extensions_readdisplay_h=no
18971 rm -f conftest.$ac_objext conftest.$ac_ext
18973 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
18974 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
18975 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
18976 cat >>confdefs.h <<\_ACEOF
18977 #define HAVE_READ_DISPLAY_EXTENSION 1
18983 CPPFLAGS="$ac_save_CPPFLAGS"
18984 elif test "$with_readdisplay" != no; then
18985 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
18990 ###############################################################################
18992 # Check for a program to generate random text.
18994 # Zippy is funnier than the idiocy generally spat out by `fortune',
18995 # so first see if "fortune zippy" works. Else, use plain "fortune".
18997 # We used to dig around in Emacs to look for the "yow" program, but
18998 # most people who have Emacs also have "fortune zippy", so nevermind.
19000 ###############################################################################
19002 with_fortune_req=""
19004 # Check whether --with-fortune or --without-fortune was given.
19005 if test "${with_fortune+set}" = set; then
19006 withval="$with_fortune"
19007 with_fortune_req="$withval"; with_fortune="$withval"
19012 if test "$with_fortune" = no || test "$with_fortune" = yes ; then
19014 with_fortune_req=""
19017 if test -n "$with_fortune_req" ; then
19018 ac_cv_fortune_program=""
19019 case "$with_fortune_req" in
19022 set dummy $with_fortune_req ; fortune_tmp=$2
19023 echo "$as_me:$LINENO: checking for $fortune_tmp" >&5
19024 echo $ECHO_N "checking for $fortune_tmp... $ECHO_C" >&6
19025 if test -x "$fortune_tmp" ; then
19026 echo "$as_me:$LINENO: result: yes" >&5
19027 echo "${ECHO_T}yes" >&6
19029 echo "$as_me:$LINENO: result: no" >&5
19030 echo "${ECHO_T}no" >&6
19035 set dummy $with_fortune_req ; fortune_tmp=$2
19037 unset ac_cv_path_fortune_tmp
19038 # Extract the first word of "$fortune_tmp", so it can be a program name with args.
19039 set dummy $fortune_tmp; ac_word=$2
19040 echo "$as_me:$LINENO: checking for $ac_word" >&5
19041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19042 if test "${ac_cv_path_fortune_tmp+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 case $fortune_tmp in
19047 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
19050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19051 for as_dir in $PATH
19054 test -z "$as_dir" && as_dir=.
19055 for ac_exec_ext in '' $ac_executable_extensions; do
19056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19057 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
19058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19067 fortune_tmp=$ac_cv_path_fortune_tmp
19069 if test -n "$fortune_tmp"; then
19070 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19071 echo "${ECHO_T}$fortune_tmp" >&6
19073 echo "$as_me:$LINENO: result: no" >&5
19074 echo "${ECHO_T}no" >&6
19077 if test -z "$fortune_tmp" ; then
19082 ac_cv_fortune_program="$with_fortune"
19084 elif test -n "$ac_cv_fortune_program"; then
19085 echo "$as_me:$LINENO: result: checking for fortune... (cached) $ac_cv_fortune_program" >&5
19086 echo "${ECHO_T}checking for fortune... (cached) $ac_cv_fortune_program" >&6
19089 unset ac_cv_path_fortune_tmp
19092 if test -z "$ac_cv_fortune_program" ; then
19094 # first look for fortune in /usr/games/ (and use absolute path)
19095 for ac_prog in fortune
19097 # Extract the first word of "$ac_prog", so it can be a program name with args.
19098 set dummy $ac_prog; ac_word=$2
19099 echo "$as_me:$LINENO: checking for $ac_word" >&5
19100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19101 if test "${ac_cv_path_fortune_tmp+set}" = set; then
19102 echo $ECHO_N "(cached) $ECHO_C" >&6
19104 case $fortune_tmp in
19106 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
19109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19110 for as_dir in "/usr/games"
19113 test -z "$as_dir" && as_dir=.
19114 for ac_exec_ext in '' $ac_executable_extensions; do
19115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19116 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
19117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19126 fortune_tmp=$ac_cv_path_fortune_tmp
19128 if test -n "$fortune_tmp"; then
19129 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19130 echo "${ECHO_T}$fortune_tmp" >&6
19132 echo "$as_me:$LINENO: result: no" >&5
19133 echo "${ECHO_T}no" >&6
19136 test -n "$fortune_tmp" && break
19140 # if it's not there, look on $PATH (and don't use absolute path)
19141 if test -z "$fortune_tmp" ; then
19142 for ac_prog in fortune
19144 # Extract the first word of "$ac_prog", so it can be a program name with args.
19145 set dummy $ac_prog; ac_word=$2
19146 echo "$as_me:$LINENO: checking for $ac_word" >&5
19147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19148 if test "${ac_cv_prog_fortune_tmp+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19151 if test -n "$fortune_tmp"; then
19152 ac_cv_prog_fortune_tmp="$fortune_tmp" # Let the user override the test.
19154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19155 for as_dir in $PATH
19158 test -z "$as_dir" && as_dir=.
19159 for ac_exec_ext in '' $ac_executable_extensions; do
19160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19161 ac_cv_prog_fortune_tmp="$ac_prog"
19162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19170 fortune_tmp=$ac_cv_prog_fortune_tmp
19171 if test -n "$fortune_tmp"; then
19172 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19173 echo "${ECHO_T}$fortune_tmp" >&6
19175 echo "$as_me:$LINENO: result: no" >&5
19176 echo "${ECHO_T}no" >&6
19179 test -n "$fortune_tmp" && break
19184 # if we didn't find anything, then just assume /usr/games/
19185 if test -z "$fortune_tmp" ; then
19186 fortune_tmp="/usr/games/fortune"
19189 ac_cv_fortune_program="$fortune_tmp"
19191 # now check to see whether "fortune zippy" works.
19193 fortune_tmp="$fortune_tmp zippy"
19194 echo "$as_me:$LINENO: checking for zippy quotes" >&5
19195 echo $ECHO_N "checking for zippy quotes... $ECHO_C" >&6
19196 if ( $fortune_tmp >/dev/null 2>&1 ); then
19197 ac_cv_fortune_program="$fortune_tmp"
19198 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19199 echo "${ECHO_T}$fortune_tmp" >&6
19201 echo "$as_me:$LINENO: result: no" >&5
19202 echo "${ECHO_T}no" >&6
19207 unset ac_cv_path_fortune_tmp
19210 cat >>confdefs.h <<_ACEOF
19211 #define FORTUNE_PROGRAM "$ac_cv_fortune_program"
19216 ###############################################################################
19218 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
19219 # This should be safe, but let's give people the option.
19221 ###############################################################################
19223 setuid_hacks_default=no
19224 setuid_hacks="$setuid_hacks_default"
19226 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
19227 if test "${with_setuid_hacks+set}" = set; then
19228 withval="$with_setuid_hacks"
19229 setuid_hacks="$withval"
19231 setuid_hacks="$setuid_hacks_default"
19235 case "$setuid_hacks" in
19240 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
19241 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
19242 d=$setuid_hacks/include
19243 if test -d $d; then
19244 X_CFLAGS="-I$d $X_CFLAGS"
19245 echo "$as_me:$LINENO: result: $d" >&5
19246 echo "${ECHO_T}$d" >&6
19248 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19249 echo "${ECHO_T}not found ($d: no such directory)" >&6
19252 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
19253 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
19254 d=$setuid_hacks/lib
19255 if test -d $d; then
19256 X_LIBS="-L$d $X_LIBS"
19257 echo "$as_me:$LINENO: result: $d" >&5
19258 echo "${ECHO_T}$d" >&6
19260 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19261 echo "${ECHO_T}not found ($d: no such directory)" >&6
19264 # replace the directory string with "yes".
19265 setuid_hacks_req="yes"
19266 setuid_hacks=$setuid_hacks_req
19271 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
19272 echo " If it is a directory, then \`DIR/include' will be added to"
19273 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19279 if test "$setuid_hacks" = yes; then
19281 elif test "$setuid_hacks" != no; then
19282 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
19287 ###############################################################################
19289 # Done testing. Now, set up the various -I and -L variables,
19290 # and decide which GUI program to build by default.
19292 ###############################################################################
19299 if test \! -z "$includedir" ; then
19300 INCLUDES="$INCLUDES -I$includedir"
19303 if test \! -z "$libdir" ; then
19304 LDFLAGS="$LDFLAGS -L$libdir"
19308 PREFERRED_DEMO_PROGRAM=''
19310 if test "$have_motif" = yes; then
19311 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
19312 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19314 if test "$have_gtk" = yes; then
19315 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
19316 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19320 if test "$have_kerberos" = yes; then
19321 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
19322 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
19324 if test "$have_pam" = yes; then
19325 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
19326 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
19327 INSTALL_PAM="install-pam"
19329 if test "$have_passwd_helper" = yes; then
19330 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
19331 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
19333 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
19334 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
19337 if test "$enable_locking" = yes; then
19338 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
19339 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
19341 LOCK_SRCS='$(NOLOCK_SRCS_1)'
19342 LOCK_OBJS='$(NOLOCK_OBJS_1)'
19345 if test "$ac_macosx" = yes; then
19346 EXES_OSX='$(EXES_OSX)'
19347 SCRIPTS_OSX='$(SCRIPTS_OSX)'
19348 MEN_OSX='$(MEN_OSX)'
19356 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
19358 if test "$need_setuid" = yes; then
19364 if test "$setuid_hacks" = yes; then
19371 if test "$have_gl" = yes; then
19372 GL_EXES='$(GL_EXES)'
19373 GL_UTIL_EXES='$(GL_UTIL_EXES)'
19375 GL_KLUDGE="${tab} "
19377 GL_KLUDGE="-${tab} "
19380 if test "$have_gle" = yes; then
19381 GLE_EXES='$(GLE_EXES)'
19382 GLE_KLUDGE="${tab} "
19384 GLE_KLUDGE="-${tab} "
19387 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
19388 JPEG_EXES='$(JPEG_EXES)'
19392 # Another substitution in the XScreenSaver.ad.in file:
19394 if test "$have_gnome_help" = yes; then
19403 # Now that we know whether we have Gnome, we can decide where the XML
19404 # config files get installed.
19406 if test -z "$HACK_CONF_DIR" ; then
19407 if test -n "$GNOME_DATADIR" ; then
19408 HACK_CONF_DIR='${GNOME_DATADIR}/control-center/screensavers'
19410 HACK_CONF_DIR='${prefix}/lib/xscreensaver/config'
19416 # After computing $HACK_CONF_DIR, make sure $GLADE_DATADIR has a value
19417 # so that we know where to install the Gtk pixmaps.
19419 # It should usually be "/usr/share/pixmaps/", but we can't just use
19420 # "$(prefix)/share/pixmaps" because that would usually result in
19421 # "/usr/X11R6/share/pixmaps/", which is wrong. It needs to be the
19422 # Gnome/Gtk prefix, not the overall prefix.
19424 if test -n "$GNOME_DATADIR" ; then
19425 GLADE_DATADIR='$(GNOME_DATADIR)/xscreensaver'
19426 elif test "$have_gtk" = yes; then
19427 if test -n "$pkg_config"; then
19428 if test "$have_gtk2" = yes; then
19429 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
19431 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+`
19434 GLADE_DATADIR=`$gtk_config --prefix`
19436 GLADE_DATADIR="$GLADE_DATADIR/share/xscreensaver"
19442 # Set PO_DATADIR to something sensible.
19444 echo "$as_me:$LINENO: checking for locale directory" >&5
19445 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6
19446 if test -n "$GNOME_DATADIR" ; then
19447 PO_DATADIR="$GNOME_DATADIR"
19448 elif test "$have_gtk" = yes; then
19449 if test -n "$pkg_config"; then
19450 if test "$have_gtk2" = yes; then
19451 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
19453 PO_DATADIR=`$pkg_config --variable=prefix gtk+`
19456 PO_DATADIR=`$gtk_config --prefix`
19458 PO_DATADIR="$PO_DATADIR/share"
19461 if test -z "$PO_DATADIR" ; then
19463 # #### Total fucking kludge --
19464 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
19465 # but of course we need to expand all the nested variables to do that...
19473 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
19476 echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
19477 echo "${ECHO_T}$PO_DATADIR/locale" >&6
19480 # canonicalize slashes.
19481 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
19483 # gcc 3.0 likes to issue this warning for every file:
19485 # cc1: warning: changing search order for system directory "/usr/local/include"
19486 # cc1: warning: as it has already been specified as a non-system directory
19488 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
19489 # Which *should* be totally redundant, and thus an ok thing to delete?
19491 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
19494 ###############################################################################
19496 # Perform substitutions and write Makefiles.
19498 ###############################################################################
19554 APPDEFAULTS=$ac_x_app_defaults
19562 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"
19563 cat >confcache <<\_ACEOF
19564 # This file is a shell script that caches the results of configure
19565 # tests run on this system so they can be shared between configure
19566 # scripts and configure runs, see configure's option --config-cache.
19567 # It is not useful on other systems. If it contains results you don't
19568 # want to keep, you may remove or edit it.
19570 # config.status only pays attention to the cache file if you give it
19571 # the --recheck option to rerun configure.
19573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19575 # following values.
19579 # The following way of writing the cache mishandles newlines in values,
19580 # but we know of no workaround that is simple, portable, and efficient.
19581 # So, don't put newlines in cache variables' values.
19582 # Ultrix sh set writes to stderr and can't be redirected directly,
19583 # and sets the high bit in the cache file unless we assign to the vars.
19586 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19588 # `set' does not quote correctly, so add quotes (double-quote
19589 # substitution turns \\\\ into \\, and sed turns \\ into \).
19592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19595 # `set' quotes correctly as required by POSIX, so do not add quotes.
19597 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19606 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19608 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19609 if test -w $cache_file; then
19610 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19611 cat confcache >$cache_file
19613 echo "not updating unwritable cache $cache_file"
19618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19619 # Let make expand exec_prefix.
19620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19622 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19623 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19624 # trailing colons and then remove the whole line if VPATH becomes empty
19625 # (actually we leave an empty line to preserve line numbers).
19626 if test "x$srcdir" = x.; then
19627 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19628 s/:*\$(srcdir):*/:/;
19629 s/:*\${srcdir}:*/:/;
19631 s/^\([^=]*=[ ]*\):*/\1/;
19637 DEFS=-DHAVE_CONFIG_H
19641 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19642 # 1. Remove the extension, and $U if already installed.
19643 ac_i=`echo "$ac_i" |
19644 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19646 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19647 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19649 LIBOBJS=$ac_libobjs
19651 LTLIBOBJS=$ac_ltlibobjs
19656 mv -f po/POTFILES po/POTFILES.tmp
19657 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
19658 rm -f po/POTFILES.tmp
19662 : ${CONFIG_STATUS=./config.status}
19663 ac_clean_files_save=$ac_clean_files
19664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19665 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19666 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19667 cat >$CONFIG_STATUS <<_ACEOF
19669 # Generated by $as_me.
19670 # Run this file to recreate the current configuration.
19671 # Compiler output produced by configure, useful for debugging
19672 # configure, is in config.log if it exists.
19675 ac_cs_recheck=false
19677 SHELL=\${CONFIG_SHELL-$SHELL}
19680 cat >>$CONFIG_STATUS <<\_ACEOF
19681 ## --------------------- ##
19682 ## M4sh Initialization. ##
19683 ## --------------------- ##
19685 # Be Bourne compatible
19686 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19689 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19690 # is contrary to our usage. Disable this feature.
19691 alias -g '${1+"$@"}'='"$@"'
19692 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19696 # Support unset when possible.
19697 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19704 # Work around bugs in pre-3.0 UWIN ksh.
19705 $as_unset ENV MAIL MAILPATH
19712 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19713 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19714 LC_TELEPHONE LC_TIME
19716 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19717 eval $as_var=C; export $as_var
19723 # Required to use basename.
19724 if expr a : '\(a\)' >/dev/null 2>&1; then
19730 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19731 as_basename=basename
19737 # Name of the executable.
19738 as_me=`$as_basename "$0" ||
19739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19740 X"$0" : 'X\(//\)$' \| \
19741 X"$0" : 'X\(/\)$' \| \
19742 . : '\(.\)' 2>/dev/null ||
19744 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19745 /^X\/\(\/\/\)$/{ s//\1/; q; }
19746 /^X\/\(\/\).*/{ s//\1/; q; }
19750 # PATH needs CR, and LINENO needs CR and PATH.
19751 # Avoid depending upon Character Ranges.
19752 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19753 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19754 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19755 as_cr_digits='0123456789'
19756 as_cr_alnum=$as_cr_Letters$as_cr_digits
19758 # The user is always right.
19759 if test "${PATH_SEPARATOR+set}" != set; then
19760 echo "#! /bin/sh" >conf$$.sh
19761 echo "exit 0" >>conf$$.sh
19763 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19772 as_lineno_1=$LINENO
19773 as_lineno_2=$LINENO
19774 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19775 test "x$as_lineno_1" != "x$as_lineno_2" &&
19776 test "x$as_lineno_3" = "x$as_lineno_2" || {
19777 # Find who we are. Look in the path if we contain no path at all
19780 *[\\/]* ) as_myself=$0 ;;
19781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782 for as_dir in $PATH
19785 test -z "$as_dir" && as_dir=.
19786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19791 # We did not find ourselves, most probably we were run as `sh COMMAND'
19792 # in which case we are not to be found in the path.
19793 if test "x$as_myself" = x; then
19796 if test ! -f "$as_myself"; then
19797 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19798 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19799 { (exit 1); exit 1; }; }
19801 case $CONFIG_SHELL in
19803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19804 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19807 test -z "$as_dir" && as_dir=.
19808 for as_base in sh bash ksh sh5; do
19811 if ("$as_dir/$as_base" -c '
19812 as_lineno_1=$LINENO
19813 as_lineno_2=$LINENO
19814 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19815 test "x$as_lineno_1" != "x$as_lineno_2" &&
19816 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19817 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19818 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19819 CONFIG_SHELL=$as_dir/$as_base
19820 export CONFIG_SHELL
19821 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19829 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19830 # uniformly replaced by the line number. The first 'sed' inserts a
19831 # line-number line before each line; the second 'sed' does the real
19832 # work. The second script uses 'N' to pair each line-number line
19833 # with the numbered line, and appends trailing '-' during
19834 # substitution so that $LINENO is not a special case at line end.
19835 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19836 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19837 sed '=' <$as_myself |
19842 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19845 s,^['$as_cr_digits']*\n,,
19846 ' >$as_me.lineno &&
19847 chmod +x $as_me.lineno ||
19848 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19849 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19850 { (exit 1); exit 1; }; }
19852 # Don't try to exec as it changes $[0], causing all sort of problems
19853 # (the dirname of $[0] is not the place where we might find the
19854 # original and so on. Autoconf is especially sensible to this).
19856 # Exit status is that of the last command.
19861 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19862 *c*,-n*) ECHO_N= ECHO_C='
19864 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19865 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19868 if expr a : '\(a\)' >/dev/null 2>&1; then
19874 rm -f conf$$ conf$$.exe conf$$.file
19876 if ln -s conf$$.file conf$$ 2>/dev/null; then
19877 # We could just check for DJGPP; but this test a) works b) is more generic
19878 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19879 if test -f conf$$.exe; then
19880 # Don't use ln at all; we don't have any links
19885 elif ln conf$$.file conf$$ 2>/dev/null; then
19890 rm -f conf$$ conf$$.exe conf$$.file
19892 if mkdir -p . 2>/dev/null; then
19898 as_executable_p="test -f"
19900 # Sed expression to map a string onto a valid CPP name.
19901 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19903 # Sed expression to map a string onto a valid variable name.
19904 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19908 # We need space, tab and new line, in precisely that order.
19918 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19919 # report actual input values of CONFIG_FILES etc. instead of their
19920 # values after options handling. Logging --version etc. is OK.
19924 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19925 ## Running $as_me. ##
19930 This file was extended by $as_me, which was
19931 generated by GNU Autoconf 2.57. Invocation command line was
19933 CONFIG_FILES = $CONFIG_FILES
19934 CONFIG_HEADERS = $CONFIG_HEADERS
19935 CONFIG_LINKS = $CONFIG_LINKS
19936 CONFIG_COMMANDS = $CONFIG_COMMANDS
19940 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19944 # Files that config.status was made for.
19945 if test -n "$ac_config_files"; then
19946 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19949 if test -n "$ac_config_headers"; then
19950 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19953 if test -n "$ac_config_links"; then
19954 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19957 if test -n "$ac_config_commands"; then
19958 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19961 cat >>$CONFIG_STATUS <<\_ACEOF
19964 \`$as_me' instantiates files from templates according to the
19965 current configuration.
19967 Usage: $0 [OPTIONS] [FILE]...
19969 -h, --help print this help, then exit
19970 -V, --version print version number, then exit
19971 -q, --quiet do not print progress messages
19972 -d, --debug don't remove temporary files
19973 --recheck update $as_me by reconfiguring in the same conditions
19974 --file=FILE[:TEMPLATE]
19975 instantiate the configuration file FILE
19976 --header=FILE[:TEMPLATE]
19977 instantiate the configuration header FILE
19979 Configuration files:
19982 Configuration headers:
19985 Configuration commands:
19988 Report bugs to <bug-autoconf@gnu.org>."
19991 cat >>$CONFIG_STATUS <<_ACEOF
19994 configured by $0, generated by GNU Autoconf 2.57,
19995 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19997 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19998 Free Software Foundation, Inc.
19999 This config.status script is free software; the Free Software Foundation
20000 gives unlimited permission to copy, distribute and modify it."
20005 cat >>$CONFIG_STATUS <<\_ACEOF
20006 # If no file are specified by the user, then we need to provide default
20007 # value. By we need to know if files were specified by the user.
20013 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20014 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20022 *) # This is not an option, so the user has probably given explicit
20025 ac_need_defaults=false;;
20029 # Handling of the options.
20031 cat >>$CONFIG_STATUS <<\_ACEOF
20032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20034 --version | --vers* | -V )
20035 echo "$ac_cs_version"; exit 0 ;;
20037 # Conflict between --help and --header
20038 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20039 Try \`$0 --help' for more information." >&5
20040 echo "$as_me: error: ambiguous option: $1
20041 Try \`$0 --help' for more information." >&2;}
20042 { (exit 1); exit 1; }; };;
20043 --help | --hel | -h )
20044 echo "$ac_cs_usage"; exit 0 ;;
20045 --debug | --d* | -d )
20047 --file | --fil | --fi | --f )
20049 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20050 ac_need_defaults=false;;
20051 --header | --heade | --head | --hea )
20053 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20054 ac_need_defaults=false;;
20055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20056 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20059 # This is an error.
20060 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20061 Try \`$0 --help' for more information." >&5
20062 echo "$as_me: error: unrecognized option: $1
20063 Try \`$0 --help' for more information." >&2;}
20064 { (exit 1); exit 1; }; } ;;
20066 *) ac_config_targets="$ac_config_targets $1" ;;
20072 ac_configure_extra_args=
20074 if $ac_cs_silent; then
20076 ac_configure_extra_args="$ac_configure_extra_args --silent"
20080 cat >>$CONFIG_STATUS <<_ACEOF
20081 if \$ac_cs_recheck; then
20082 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20083 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20088 cat >>$CONFIG_STATUS <<_ACEOF
20090 # INIT-COMMANDS section.
20093 INTLTOOL_PERL=${INTLTOOL_PERL}
20100 cat >>$CONFIG_STATUS <<\_ACEOF
20101 for ac_config_target in $ac_config_targets
20103 case "$ac_config_target" in
20104 # Handling of arguments.
20105 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20106 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20107 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
20108 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
20109 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
20110 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20111 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
20112 "driver/xscreensaver.kss" ) CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.kss" ;;
20113 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20114 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20115 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20116 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20117 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20118 { (exit 1); exit 1; }; };;
20122 # If the user did not use the arguments to specify the items to instantiate,
20123 # then the envvar interface is used. Set only those that are not.
20124 # We use the long form for the default assignment because of an extremely
20125 # bizarre bug on SunOS 4.1.3.
20126 if $ac_need_defaults; then
20127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20132 # Have a temporary directory for convenience. Make it in the build tree
20133 # simply because there is no reason to put it here, and in addition,
20134 # creating and moving files from /tmp can sometimes cause problems.
20135 # Create a temporary directory, and hook for its removal unless debugging.
20138 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20139 trap '{ (exit 1); exit 1; }' 1 2 13 15
20142 # Create a (secure) tmp directory for tmp files.
20145 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20146 test -n "$tmp" && test -d "$tmp"
20149 tmp=./confstat$$-$RANDOM
20150 (umask 077 && mkdir $tmp)
20153 echo "$me: cannot create a temporary directory in ." >&2
20154 { (exit 1); exit 1; }
20159 cat >>$CONFIG_STATUS <<_ACEOF
20162 # CONFIG_FILES section.
20165 # No need to generate the scripts if there are no CONFIG_FILES.
20166 # This happens for instance when ./config.status config.h
20167 if test -n "\$CONFIG_FILES"; then
20168 # Protect against being on the right side of a sed subst in config.status.
20169 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20170 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20171 s,@SHELL@,$SHELL,;t t
20172 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20173 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20174 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20175 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20176 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20177 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20178 s,@exec_prefix@,$exec_prefix,;t t
20179 s,@prefix@,$prefix,;t t
20180 s,@program_transform_name@,$program_transform_name,;t t
20181 s,@bindir@,$bindir,;t t
20182 s,@sbindir@,$sbindir,;t t
20183 s,@libexecdir@,$libexecdir,;t t
20184 s,@datadir@,$datadir,;t t
20185 s,@sysconfdir@,$sysconfdir,;t t
20186 s,@sharedstatedir@,$sharedstatedir,;t t
20187 s,@localstatedir@,$localstatedir,;t t
20188 s,@libdir@,$libdir,;t t
20189 s,@includedir@,$includedir,;t t
20190 s,@oldincludedir@,$oldincludedir,;t t
20191 s,@infodir@,$infodir,;t t
20192 s,@mandir@,$mandir,;t t
20193 s,@build_alias@,$build_alias,;t t
20194 s,@host_alias@,$host_alias,;t t
20195 s,@target_alias@,$target_alias,;t t
20196 s,@DEFS@,$DEFS,;t t
20197 s,@ECHO_C@,$ECHO_C,;t t
20198 s,@ECHO_N@,$ECHO_N,;t t
20199 s,@ECHO_T@,$ECHO_T,;t t
20200 s,@LIBS@,$LIBS,;t t
20201 s,@build@,$build,;t t
20202 s,@build_cpu@,$build_cpu,;t t
20203 s,@build_vendor@,$build_vendor,;t t
20204 s,@build_os@,$build_os,;t t
20205 s,@host@,$host,;t t
20206 s,@host_cpu@,$host_cpu,;t t
20207 s,@host_vendor@,$host_vendor,;t t
20208 s,@host_os@,$host_os,;t t
20210 s,@CFLAGS@,$CFLAGS,;t t
20211 s,@LDFLAGS@,$LDFLAGS,;t t
20212 s,@CPPFLAGS@,$CPPFLAGS,;t t
20213 s,@ac_ct_CC@,$ac_ct_CC,;t t
20214 s,@EXEEXT@,$EXEEXT,;t t
20215 s,@OBJEXT@,$OBJEXT,;t t
20217 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20218 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20219 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20220 s,@SET_MAKE@,$SET_MAKE,;t t
20221 s,@EGREP@,$EGREP,;t t
20222 s,@PERL@,$PERL,;t t
20223 s,@X_CFLAGS@,$X_CFLAGS,;t t
20224 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20225 s,@X_LIBS@,$X_LIBS,;t t
20226 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20227 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
20228 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
20229 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
20230 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
20231 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
20232 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
20233 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
20234 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
20235 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
20236 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
20237 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
20238 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
20239 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
20240 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
20241 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
20242 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
20243 s,@RANLIB@,$RANLIB,;t t
20244 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20245 s,@ALLOCA@,$ALLOCA,;t t
20246 s,@USE_NLS@,$USE_NLS,;t t
20247 s,@MSGFMT@,$MSGFMT,;t t
20248 s,@GMSGFMT@,$GMSGFMT,;t t
20249 s,@XGETTEXT@,$XGETTEXT,;t t
20250 s,@CATALOGS@,$CATALOGS,;t t
20251 s,@CATOBJEXT@,$CATOBJEXT,;t t
20252 s,@DATADIRNAME@,$DATADIRNAME,;t t
20253 s,@GMOFILES@,$GMOFILES,;t t
20254 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20255 s,@INTLDEPS@,$INTLDEPS,;t t
20256 s,@INTLLIBS@,$INTLLIBS,;t t
20257 s,@INTLOBJS@,$INTLOBJS,;t t
20258 s,@POFILES@,$POFILES,;t t
20259 s,@POSUB@,$POSUB,;t t
20260 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20261 s,@pkg_config@,$pkg_config,;t t
20262 s,@glib_config@,$glib_config,;t t
20263 s,@gtk_config@,$gtk_config,;t t
20264 s,@gnome_config@,$gnome_config,;t t
20265 s,@have_gnome_help@,$have_gnome_help,;t t
20266 s,@xml_config@,$xml_config,;t t
20267 s,@gdk_pixbuf_config@,$gdk_pixbuf_config,;t t
20268 s,@fortune_tmp@,$fortune_tmp,;t t
20269 s,@INCLUDES@,$INCLUDES,;t t
20270 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
20271 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
20272 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
20273 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
20274 s,@GTK_LIBS@,$GTK_LIBS,;t t
20275 s,@XML_LIBS@,$XML_LIBS,;t t
20276 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
20277 s,@HACK_LIBS@,$HACK_LIBS,;t t
20278 s,@XPM_LIBS@,$XPM_LIBS,;t t
20279 s,@PTY_LIBS@,$PTY_LIBS,;t t
20280 s,@GL_LIBS@,$GL_LIBS,;t t
20281 s,@GLE_LIBS@,$GLE_LIBS,;t t
20282 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
20283 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
20284 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
20285 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
20286 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
20287 s,@NEED_SETUID@,$NEED_SETUID,;t t
20288 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
20289 s,@OBJCC@,$OBJCC,;t t
20290 s,@EXES_OSX@,$EXES_OSX,;t t
20291 s,@SCRIPTS_OSX@,$SCRIPTS_OSX,;t t
20292 s,@MEN_OSX@,$MEN_OSX,;t t
20293 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
20294 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
20295 s,@XMU_SRCS@,$XMU_SRCS,;t t
20296 s,@XMU_OBJS@,$XMU_OBJS,;t t
20297 s,@XMU_LIBS@,$XMU_LIBS,;t t
20298 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
20299 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
20300 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
20301 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
20302 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
20303 s,@JPEG_EXES@,$JPEG_EXES,;t t
20304 s,@GL_EXES@,$GL_EXES,;t t
20305 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
20306 s,@GL_MEN@,$GL_MEN,;t t
20307 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
20308 s,@GLE_EXES@,$GLE_EXES,;t t
20309 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
20310 s,@GNOMEHELP_Y@,$GNOMEHELP_Y,;t t
20311 s,@GNOMEHELP_N@,$GNOMEHELP_N,;t t
20312 s,@HACKDIR@,$HACKDIR,;t t
20313 s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t
20314 s,@GLADE_DATADIR@,$GLADE_DATADIR,;t t
20315 s,@PO_DATADIR@,$PO_DATADIR,;t t
20316 s,@GNOME_PANELDIR@,$GNOME_PANELDIR,;t t
20317 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
20318 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
20319 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
20320 s,@DEPEND@,$DEPEND,;t t
20321 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
20322 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
20323 s,@LIBOBJS@,$LIBOBJS,;t t
20324 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20329 cat >>$CONFIG_STATUS <<\_ACEOF
20330 # Split the substitutions into bite-sized pieces for seds with
20331 # small command number limits, like on Digital OSF/1 and HP-UX.
20332 ac_max_sed_lines=48
20333 ac_sed_frag=1 # Number of current file.
20334 ac_beg=1 # First line for current file.
20335 ac_end=$ac_max_sed_lines # Line after last line for current file.
20338 while $ac_more_lines; do
20339 if test $ac_beg -gt 1; then
20340 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20342 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20344 if test ! -s $tmp/subs.frag; then
20345 ac_more_lines=false
20347 # The purpose of the label and of the branching condition is to
20348 # speed up the sed processing (if there are no `@' at all, there
20349 # is no need to browse any of the substitutions).
20350 # These are the two extra sed commands mentioned above.
20352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20353 if test -z "$ac_sed_cmds"; then
20354 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20356 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20358 ac_sed_frag=`expr $ac_sed_frag + 1`
20360 ac_end=`expr $ac_end + $ac_max_sed_lines`
20363 if test -z "$ac_sed_cmds"; then
20366 fi # test -n "$CONFIG_FILES"
20369 cat >>$CONFIG_STATUS <<\_ACEOF
20370 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20371 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20373 - | *:- | *:-:* ) # input from stdin
20375 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20377 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20379 * ) ac_file_in=$ac_file.in ;;
20382 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20383 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20384 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20385 X"$ac_file" : 'X\(//\)[^/]' \| \
20386 X"$ac_file" : 'X\(//\)$' \| \
20387 X"$ac_file" : 'X\(/\)' \| \
20388 . : '\(.\)' 2>/dev/null ||
20390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20392 /^X\(\/\/\)$/{ s//\1/; q; }
20393 /^X\(\/\).*/{ s//\1/; q; }
20395 { if $as_mkdir_p; then
20400 while test ! -d "$as_dir"; do
20401 as_dirs="$as_dir $as_dirs"
20402 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20404 X"$as_dir" : 'X\(//\)[^/]' \| \
20405 X"$as_dir" : 'X\(//\)$' \| \
20406 X"$as_dir" : 'X\(/\)' \| \
20407 . : '\(.\)' 2>/dev/null ||
20409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20410 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20411 /^X\(\/\/\)$/{ s//\1/; q; }
20412 /^X\(\/\).*/{ s//\1/; q; }
20415 test ! -n "$as_dirs" || mkdir $as_dirs
20416 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20417 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20418 { (exit 1); exit 1; }; }; }
20422 if test "$ac_dir" != .; then
20423 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20424 # A "../" for each directory in $ac_dir_suffix.
20425 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20427 ac_dir_suffix= ac_top_builddir=
20431 .) # No --srcdir option. We are building in place.
20433 if test -z "$ac_top_builddir"; then
20436 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20438 [\\/]* | ?:[\\/]* ) # Absolute path.
20439 ac_srcdir=$srcdir$ac_dir_suffix;
20440 ac_top_srcdir=$srcdir ;;
20441 *) # Relative path.
20442 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20443 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20445 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20447 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20448 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20449 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20450 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20454 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20455 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20458 if test x"$ac_file" != x-; then
20459 { echo "$as_me:$LINENO: creating $ac_file" >&5
20460 echo "$as_me: creating $ac_file" >&6;}
20463 # Let's still pretend it is `configure' which instantiates (i.e., don't
20464 # use $as_me), people would be surprised to read:
20465 # /* config.h. Generated by config.status. */
20466 if test x"$ac_file" = x-; then
20469 configure_input="$ac_file. "
20471 configure_input=$configure_input"Generated from `echo $ac_file_in |
20472 sed 's,.*/,,'` by configure."
20474 # First look for the input files in the build tree, otherwise in the
20476 ac_file_inputs=`IFS=:
20477 for f in $ac_file_in; do
20479 -) echo $tmp/stdin ;;
20481 # Absolute (can't be DOS-style, as IFS=:)
20482 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20483 echo "$as_me: error: cannot find input file: $f" >&2;}
20484 { (exit 1); exit 1; }; }
20487 if test -f "$f"; then
20490 elif test -f "$srcdir/$f"; then
20495 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20496 echo "$as_me: error: cannot find input file: $f" >&2;}
20497 { (exit 1); exit 1; }; }
20500 done` || { (exit 1); exit 1; }
20502 cat >>$CONFIG_STATUS <<_ACEOF
20506 cat >>$CONFIG_STATUS <<\_ACEOF
20508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20509 s,@configure_input@,$configure_input,;t t
20510 s,@srcdir@,$ac_srcdir,;t t
20511 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20512 s,@top_srcdir@,$ac_top_srcdir,;t t
20513 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20514 s,@builddir@,$ac_builddir,;t t
20515 s,@abs_builddir@,$ac_abs_builddir,;t t
20516 s,@top_builddir@,$ac_top_builddir,;t t
20517 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20518 s,@INSTALL@,$ac_INSTALL,;t t
20519 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20521 if test x"$ac_file" != x-; then
20522 mv $tmp/out $ac_file
20530 cat >>$CONFIG_STATUS <<\_ACEOF
20533 # CONFIG_HEADER section.
20536 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20537 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20539 # ac_d sets the value in "#define NAME VALUE" lines.
20540 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20541 ac_dB='[ ].*$,\1#\2'
20544 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20545 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20546 ac_uB='$,\1#\2define\3'
20550 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20551 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20553 - | *:- | *:-:* ) # input from stdin
20555 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20556 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20557 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20558 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20559 * ) ac_file_in=$ac_file.in ;;
20562 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20563 echo "$as_me: creating $ac_file" >&6;}
20565 # First look for the input files in the build tree, otherwise in the
20567 ac_file_inputs=`IFS=:
20568 for f in $ac_file_in; do
20570 -) echo $tmp/stdin ;;
20572 # Absolute (can't be DOS-style, as IFS=:)
20573 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20574 echo "$as_me: error: cannot find input file: $f" >&2;}
20575 { (exit 1); exit 1; }; }
20578 if test -f "$f"; then
20581 elif test -f "$srcdir/$f"; then
20586 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20587 echo "$as_me: error: cannot find input file: $f" >&2;}
20588 { (exit 1); exit 1; }; }
20591 done` || { (exit 1); exit 1; }
20592 # Remove the trailing spaces.
20593 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20597 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20598 # `conftest.undefs', that substitutes the proper values into
20599 # config.h.in to produce config.h. The first handles `#define'
20600 # templates, and the second `#undef' templates.
20601 # And first: Protect against being on the right side of a sed subst in
20602 # config.status. Protect against being in an unquoted here document
20603 # in config.status.
20604 rm -f conftest.defines conftest.undefs
20605 # Using a here document instead of a string reduces the quoting nightmare.
20606 # Putting comments in sed scripts is not portable.
20608 # `end' is used to avoid that the second main sed command (meant for
20609 # 0-ary CPP macros) applies to n-ary macro definitions.
20610 # See the Autoconf documentation for `clear'.
20611 cat >confdef2sed.sed <<\_ACEOF
20616 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20618 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20621 # If some macros were called several times there might be several times
20622 # the same #defines, which is useless. Nevertheless, we may not want to
20623 # sort them, since we want the *last* AC-DEFINE to be honored.
20624 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20625 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20626 rm -f confdef2sed.sed
20628 # This sed command replaces #undef with comments. This is necessary, for
20629 # example, in the case of _POSIX_SOURCE, which is predefined and required
20630 # on some systems where configure will not decide to define it.
20631 cat >>conftest.undefs <<\_ACEOF
20632 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20635 # Break up conftest.defines because some shells have a limit on the size
20636 # of here documents, and old seds have small limits too (100 cmds).
20637 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20638 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20639 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20640 echo ' :' >>$CONFIG_STATUS
20641 rm -f conftest.tail
20642 while grep . conftest.defines >/dev/null
20644 # Write a limited-size here document to $tmp/defines.sed.
20645 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20646 # Speed up: don't consider the non `#define' lines.
20647 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20648 # Work around the forget-to-reset-the-flag bug.
20649 echo 't clr' >>$CONFIG_STATUS
20650 echo ': clr' >>$CONFIG_STATUS
20651 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20653 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20655 mv $tmp/out $tmp/in
20657 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20658 rm -f conftest.defines
20659 mv conftest.tail conftest.defines
20661 rm -f conftest.defines
20662 echo ' fi # grep' >>$CONFIG_STATUS
20663 echo >>$CONFIG_STATUS
20665 # Break up conftest.undefs because some shells have a limit on the size
20666 # of here documents, and old seds have small limits too (100 cmds).
20667 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20668 rm -f conftest.tail
20669 while grep . conftest.undefs >/dev/null
20671 # Write a limited-size here document to $tmp/undefs.sed.
20672 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20673 # Speed up: don't consider the non `#undef'
20674 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20675 # Work around the forget-to-reset-the-flag bug.
20676 echo 't clr' >>$CONFIG_STATUS
20677 echo ': clr' >>$CONFIG_STATUS
20678 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20680 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20682 mv $tmp/out $tmp/in
20684 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20685 rm -f conftest.undefs
20686 mv conftest.tail conftest.undefs
20688 rm -f conftest.undefs
20690 cat >>$CONFIG_STATUS <<\_ACEOF
20691 # Let's still pretend it is `configure' which instantiates (i.e., don't
20692 # use $as_me), people would be surprised to read:
20693 # /* config.h. Generated by config.status. */
20694 if test x"$ac_file" = x-; then
20695 echo "/* Generated by configure. */" >$tmp/config.h
20697 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20699 cat $tmp/in >>$tmp/config.h
20701 if test x"$ac_file" != x-; then
20702 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20703 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20704 echo "$as_me: $ac_file is unchanged" >&6;}
20706 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20708 X"$ac_file" : 'X\(//\)[^/]' \| \
20709 X"$ac_file" : 'X\(//\)$' \| \
20710 X"$ac_file" : 'X\(/\)' \| \
20711 . : '\(.\)' 2>/dev/null ||
20713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20715 /^X\(\/\/\)$/{ s//\1/; q; }
20716 /^X\(\/\).*/{ s//\1/; q; }
20718 { if $as_mkdir_p; then
20723 while test ! -d "$as_dir"; do
20724 as_dirs="$as_dir $as_dirs"
20725 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20727 X"$as_dir" : 'X\(//\)[^/]' \| \
20728 X"$as_dir" : 'X\(//\)$' \| \
20729 X"$as_dir" : 'X\(/\)' \| \
20730 . : '\(.\)' 2>/dev/null ||
20732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20734 /^X\(\/\/\)$/{ s//\1/; q; }
20735 /^X\(\/\).*/{ s//\1/; q; }
20738 test ! -n "$as_dirs" || mkdir $as_dirs
20739 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20740 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20741 { (exit 1); exit 1; }; }; }
20744 mv $tmp/config.h $ac_file
20748 rm -f $tmp/config.h
20752 cat >>$CONFIG_STATUS <<\_ACEOF
20755 # CONFIG_COMMANDS section.
20757 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20758 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20759 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20760 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20761 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20762 X"$ac_dest" : 'X\(//\)[^/]' \| \
20763 X"$ac_dest" : 'X\(//\)$' \| \
20764 X"$ac_dest" : 'X\(/\)' \| \
20765 . : '\(.\)' 2>/dev/null ||
20767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20769 /^X\(\/\/\)$/{ s//\1/; q; }
20770 /^X\(\/\).*/{ s//\1/; q; }
20774 if test "$ac_dir" != .; then
20775 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20776 # A "../" for each directory in $ac_dir_suffix.
20777 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20779 ac_dir_suffix= ac_top_builddir=
20783 .) # No --srcdir option. We are building in place.
20785 if test -z "$ac_top_builddir"; then
20788 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20790 [\\/]* | ?:[\\/]* ) # Absolute path.
20791 ac_srcdir=$srcdir$ac_dir_suffix;
20792 ac_top_srcdir=$srcdir ;;
20793 *) # Relative path.
20794 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20795 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20797 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20799 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20800 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20801 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20802 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20805 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20806 echo "$as_me: executing $ac_dest commands" >&6;}
20810 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
20811 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
20812 rm -f intltool-extract.out
20814 mv -f intltool-extract.out intltool-extract
20816 chmod ugo+x intltool-extract
20817 chmod u+w intltool-extract
20819 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
20820 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
20821 rm -f intltool-merge.out
20823 mv -f intltool-merge.out intltool-merge
20825 chmod ugo+x intltool-merge
20826 chmod u+w intltool-merge
20828 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
20829 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
20830 rm -f intltool-update.out
20832 mv -f intltool-update.out intltool-update
20834 chmod ugo+x intltool-update
20835 chmod u+w intltool-update
20838 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
20839 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
20845 cat >>$CONFIG_STATUS <<\_ACEOF
20847 { (exit 0); exit 0; }
20849 chmod +x $CONFIG_STATUS
20850 ac_clean_files=$ac_clean_files_save
20853 # configure is writing to config.log, and then calls config.status.
20854 # config.status does its own redirection, appending to config.log.
20855 # Unfortunately, on DOS this fails, as config.log is still kept open
20856 # by configure, so config.status won't be able to write to it; its
20857 # output is simply discarded. So we exec the FD to /dev/null,
20858 # effectively closing config.log, so it can be properly (re)opened and
20859 # appended to by config.status. When coming back to configure, we
20860 # need to make the FD available again.
20861 if test "$no_create" != yes; then
20863 ac_config_status_args=
20864 test "$silent" = yes &&
20865 ac_config_status_args="$ac_config_status_args --quiet"
20867 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20869 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20870 # would make configure fail if this is the last instruction.
20871 $ac_cs_success || { (exit 1); exit 1; }
20875 ###############################################################################
20877 # Print some warnings at the end.
20879 ###############################################################################
20881 warn_prefix_1=" Warning:"
20882 warn_prefix_2=" Note:"
20883 warn_prefix="$warn_prefix_1"
20886 warnsep=' #################################################################'
20889 if test "$warning" = no ; then
20890 echo '' ; echo "$warnsep" ; echo ''
20897 if test "$warning" = long ; then echo '' ; fi
20900 echo "$warn_prefix $rest"
20907 if test "$was" != no ; then echo '' ; fi
20909 echo "$warn_prefix $rest"
20919 warn_prefix="$warn_prefix_2"
20921 warn_prefix="$warn_prefix_1"
20925 warn_prefix="$warn_prefix_2"
20927 warn_prefix="$warn_prefix_1"
20931 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
20932 warn 'The SGI saver extension was requested, but was not found.'
20935 if test "$with_mit_req" = yes -a "$have_mit" = no ; then
20936 warn 'The MIT saver extension was requested, but was not found.'
20939 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
20940 warn 'The XIdle extension was requested, but was not found.'
20943 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
20944 warn 'The XSHM extension was requested, but was not found.'
20947 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
20948 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
20951 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
20952 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
20955 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
20956 warn 'The DPMS extension was requested, but was not found.'
20959 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
20960 warn 'The Xinerama extension was requested, but was not found.'
20963 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
20964 warn 'The XF86VMODE extension was requested, but was not found.'
20967 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
20968 warn 'The RANDR extension was requested, but was not found.'
20971 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
20972 warn "Checking of /proc/interrupts was requested, but it's bogus."
20976 warn2 'Though the Motif front-end to xscreensaver is still'
20977 warn2 'maintained, it is no longer being updated with new'
20978 warn2 'features: all new development on the xscreensaver-demo'
20979 warn2 'program is happening in the GTK version, and not in the'
20980 warn2 'Motif version. It is recommended that you build against'
20981 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
20984 if test "$have_motif" = no -a "$have_gtk" = no; then
20986 if test "$with_motif" = yes; then
20987 warnL "Neither the GTK nor Motif libraries were found; the"
20988 warn2 "\`xscreensaver-demo' program requires one of these."
20992 warnL "The GTK libraries do not seem to be available; the"
20993 warn2 "\`xscreensaver-demo' program requires them."
20995 warn2 'You can use Motif or Lesstif instead of GTK (use the'
20996 warn2 "\`--with-motif' option) but that is NOT recommended."
21000 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
21001 warnL "Use of Motif was requested, but it wasn't found;"
21002 warn2 "Gtk will be used instead."
21004 elif test "$jurassic_gtk" = yes ; then
21008 v="$ac_gtk_version_string"
21009 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
21010 warnL "Use of Gtk was requested, but its version number is unknown;"
21011 elif test "$with_gtk_req" = yes ; then
21012 warnL "Use of Gtk was requested, but it is version $v;"
21014 warnL "Gtk was found on this system, but it is version $v;"
21017 warn2 "Gtk $pref_gtk or newer is required."
21019 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
21020 warnL "Use of Gtk was requested, but it wasn't found."
21023 if test "$gtk2_halfassed" != no ; then
21024 warnL "GTK version $gtk2_halfassed was found, but at least one supporting"
21025 warn2 "library ($gtk2_halfassed_lib) was not, so GTK 2.x can't be used."
21026 if test "$have_gtk" = yes ; then
21027 v="$ac_gtk_version_string"
21028 warn2 "GTK $v is also installed, so it will be used instead."
21029 warn2 "Please read the above output and the \`config.log' file"
21030 warn2 "for more details."
21035 if test "$with_gnome_req" = yes -a "$have_gnome" = no \
21036 -a "$have_gtk2" = no; then
21037 # don't issue this warning if we have GTK2 -- in that case, the
21038 # Gnome-specific code isn't needed.
21039 warn 'Use of the Gnome Control Panel was requested, but the necessary'
21040 warn2 'headers and/or libraries were not found.'
21043 if test "$have_gtk" = yes ; then
21044 if test "$have_xml" = no ; then
21045 if test "$with_xml_req" = yes ; then
21046 warn 'Use of the XML library was requested, but the necessary'
21047 warn2 'headers and/or libraries were not found.'
21049 warn 'GTK is being used, but the XML library was not found.'
21052 if test "$xml_halfassed" = yes ; then
21054 if test "$have_zlib" = yes ; then
21055 which="XML libraries"
21057 which="\`zlib' library"
21061 warn2 'More specifically, we found the headers, but not the'
21062 warn2 "$which; so either XML is half-installed on this"
21063 warn2 "system, or something else went wrong. The \`config.log'"
21064 warn2 'file might contain some clues.'
21068 warn2 "Without XML, the per-display-mode \`Settings' dialogs"
21069 warn2 'will not be available. Specify the location of the XML'
21070 warn2 'library through the --with-xml option to configure.'
21074 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
21075 warn "GTK is being used, but the GDK-Pixbuf library and/or"
21076 warn2 "headers were not found. That can't be good. Please"
21077 warn2 "install the GDK-Pixbuf development kit and re-configure."
21080 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
21082 preferred_lesstif=0.92
21084 if test "$lesstif_version" = unknown; then
21085 warnL "Unable to determine the LessTif version number!"
21086 warn2 "Make sure you are using version $preferred_lesstif or newer."
21087 warn2 "See <http://www.lesstif.org/>."
21089 elif test \! $lesstif_version -gt 82; then
21090 warnL "LessTif version $lesstif_version_string is being used."
21091 warn2 "LessTif versions 0.82 and earlier are too buggy to"
21092 warn2 "use with XScreenSaver; it is strongly recommended"
21093 warn2 "that you upgrade to at least version $preferred_lesstif!"
21094 warn2 "See <http://www.lesstif.org/>."
21099 if test "$have_motif" = yes -a "$have_gtk" = no ; then
21100 warn 'Motif is being used, and GTK is not.'
21106 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
21107 warnL 'Use of XPM was requested, but it was not found.'
21110 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
21111 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
21114 if test "$have_xpm" = no -a "$have_gdk_pixbuf" = no || \
21115 test "$gdk_pixbuf_halfassed" = yes; then
21117 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
21119 elif test "$with_xpm_req" = no ; then
21120 warnL 'The XPM library is not being used.'
21122 warnL 'The XPM library was not found.'
21125 if test "$with_gdk_pixbuf_req" = yes ; then
21127 elif test "$with_gdk_pixbuf_req" = no ; then
21128 warnL 'The GDK-Pixbuf library is not being used.'
21130 warnL 'The GDK-Pixbuf library was not found.'
21133 if test "$gdk_pixbuf_halfassed" = yes ; then
21135 warn2 'More specifically, we found the headers, but not the'
21136 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
21137 warn2 "system, or something else went wrong. The \`config.log'"
21138 warn2 'file might contain some clues.'
21142 warn2 'Some of the demos will not be as colorful as they'
21143 warn2 'could be. You should consider installing Pixbuf or'
21144 warn2 'XPM and re-running configure. The Pixbuf library is'
21145 warn2 'a part of GNOME. The XPM library comes with most'
21146 warn2 'X11 installations; you can also find it at the X11'
21147 warn2 'archive sites, such as <http://sunsite.unc.edu/>.'
21149 warn2 'GDK-Pixbuf is recommended over XPM, as it provides'
21150 warn2 'support for more image formats.'
21154 if test "$have_jpeg" = no ; then
21155 if test "$with_jpeg_req" = yes ; then
21156 warnL 'Use of libjpeg was requested, but it was not found.'
21157 elif test "$with_jpeg_req" = no ; then
21158 noteL 'The JPEG library is not being used.'
21160 noteL 'The JPEG library was not found.'
21163 if test "$jpeg_halfassed" = yes ; then
21165 warn2 'More specifically, we found the headers, but not the'
21166 warn2 'library; so either JPEG is half-installed on this'
21167 warn2 "system, or something else went wrong. The \`config.log'"
21168 warn2 'file might contain some clues.'
21172 if test "$have_gdk_pixbuf" = no ; then
21173 warn2 "This means that it won't be possible for the image-manipulating"
21174 warn2 "display modes to load files from disk; and it also means that"
21175 warn2 "the \`webcollage' program will be much slower."
21177 warn2 "This means the \`webcollage' program will be much slower."
21182 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
21183 preferred_mesagl=3.4
21184 mgv="$ac_mesagl_version_string"
21185 pgl="$preferred_mesagl"
21187 if test "$ac_mesagl_version" = unknown; then
21188 warnL "Unable to determine the MesaGL version number!"
21189 warn2 "Make sure you are using version $preferred_mesagl or newer."
21191 elif test \! "$ac_mesagl_version" -gt 2006; then
21192 warnL "MesaGL version number is $mgv --"
21193 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
21194 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
21196 elif test \! "$ac_mesagl_version" -gt 3003; then
21197 warnL "MesaGL version number is $mgv --"
21198 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
21199 warn2 "that you upgrade to $pgl or newer."
21203 if test "$have_gl" = no ; then
21204 if test "$with_gl_req" = yes ; then
21205 warnL 'Use of GL was requested, but it was not found.'
21206 elif test "$with_gl_req" = no ; then
21207 noteL 'The OpenGL 3D library is not being used.'
21209 noteL 'The OpenGL 3D library was not found.'
21212 if test "$gl_halfassed" = yes ; then
21214 warn2 'More specifically, we found the headers, but not the'
21215 warn2 'libraries; so either GL is half-installed on this'
21216 warn2 "system, or something else went wrong. The \`config.log'"
21217 warn2 'file might contain some clues.'
21221 warn2 'Those demos which use 3D will not be built or installed.'
21222 warn2 'You might want to consider installing OpenGL and'
21223 warn2 "re-running configure. If your vendor doesn't ship"
21224 warn2 'their own implementation of OpenGL, you can get a free'
21225 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
21226 warn2 'info, see <http://www.opengl.org/>.'
21231 if test "$have_gl" = yes -a "$have_gle" = no ; then
21233 # nobody cares about this; don't print the warning unless it was
21234 # requested and not found, or halfway-found.
21235 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
21237 if test "$with_gle_req" = yes ; then
21238 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
21239 warn2 'it was not found (though the OpenGL library was found, and'
21240 warn2 'is being used.)'
21241 elif test "$with_gle_req" = no ; then
21242 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
21243 warn2 'library is not.'
21245 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
21249 if test "$gle_halfassed" = yes ; then
21251 warn2 'More specifically, we found the headers, but not the'
21252 warn2 'libraries; so either GLE is half-installed on this'
21253 warn2 "system, or something else went wrong. The \`config.log'"
21254 warn2 'file might contain some clues.'
21258 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
21259 warn2 'will not be built or installed. You might want to consider'
21260 warn2 'installing GLE and re-running configure. You can find the'
21261 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
21262 warn2 'OpenGL info, see <http://www.opengl.org/>.'
21268 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
21269 warn 'Use of XReadDisplay was requested, but it was not found.'
21272 if test -n "$with_fortune_req"; then
21273 if test "$with_fortune_req" != "$ac_cv_fortune_program" ; then
21274 warnL "$with_fortune_req was requested as the Fortune program,"
21275 warn2 "but was not found. The default will be used instead."
21279 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
21280 warn 'Use of Kerberos was requested, but it was not found.'
21283 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
21284 warn 'Use of PAM was requested, but it was not found.'
21287 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
21288 warn 'Use of shadow passwords was requested, but they were not found.'
21292 # You are in a twisty maze of namespaces and syntaxes, all alike.
21293 # Fuck the skull of Unix.
21295 eval bindir=${bindir}
21296 eval bindir=${bindir}
21297 eval bindir=${bindir}
21298 eval bindir=${bindir}
21299 eval bindir=${bindir}
21300 eval bindir=${bindir}
21301 eval HACKDIR=${HACKDIR}
21302 eval HACKDIR=${HACKDIR}
21303 eval HACKDIR=${HACKDIR}
21304 eval HACKDIR=${HACKDIR}
21305 eval HACKDIR=${HACKDIR}
21306 eval HACKDIR=${HACKDIR}
21307 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21308 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21309 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21310 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21311 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21312 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21314 # canonicalize slashes.
21315 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
21316 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
21317 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
21320 # Sanity check the hackdir
21321 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
21322 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
21324 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21325 There will be an executable installed with that name, so
21326 that can't be the name of a directory as well. Please
21327 re-configure with a different directory name." >&5
21328 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21329 There will be an executable installed with that name, so
21330 that can't be the name of a directory as well. Please
21331 re-configure with a different directory name." >&2;}
21332 { (exit 1); exit 1; }; }
21339 # Now let's see if there's a previous RPM version already installed. Blargh!
21343 rpmv=`(rpm -qv xscreensaver) 2>/dev/null | \
21344 sed -n 's/^xscreensaver-\([0-9][0-9]*[.][0-9][0-9]*\)-.*$/\1/p'`
21347 if test \! -z "$rpmv" ; then
21348 rpmbdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
21349 rpmhdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/attraction$@\1@p'`
21352 warnL "There is already an installed RPM of xscreensaver $rpmv"
21353 warn2 "on this system. You might want to remove it (with"
21354 warn2 '"rpm -ve xscreensaver") before running "make install"'
21355 warn2 "from this directory."
21357 warn2 "Alternately, you could build this version of xscreensaver"
21358 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
21359 warn2 "file is included. See the RPM documentation for more info."
21362 if test "$rpmbdir" = "$rpmhdir" ; then
21363 warn2 "The RPM version was installed in $rpmbdir/."
21365 warn2 "The RPM version was installed in $rpmbdir/,"
21366 warn2 "with demos in $rpmhdir/."
21373 if test "${bindir}" = "${HACKDIR}" ; then
21377 if test "$do_dir_warning" = yes; then
21381 echo ' When you run "make install", the "xscreensaver",'
21382 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
21383 echo " will be installed in ${bindir}/."
21385 echo " The various graphics demos (180+ different executables) will"
21386 echo " be installed in ${HACKDIR}/."
21388 echo " If you would prefer the demos to be installed elsewhere,"
21389 echo " you should re-run configure with the --with-hackdir=DIR"
21390 echo " option. For more information, run \`./configure --help'."
21394 if test "$warning" != no; then
21395 echo '' ; echo "$warnsep" ; echo ''
21398 if test "$do_dir_warning" = no; then
21399 if test "$warning" = no; then
21402 echo "User programs will be installed in ${bindir}/"
21403 echo "Screen savers will be installed in ${HACKDIR}/"
21404 echo "Configuration will be installed in ${HACK_CONF_DIR}/"