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 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-proc-interrupts Include support for consulting the /proc/interrupts
888 file to notice keyboard activity.
889 --with-pam Include support for PAM (Pluggable Auth Modules.)
890 --with-kerberos Include support for Kerberos authentication.
891 --with-shadow Include support for shadow password authentication.
893 User interface options:
895 --with-motif Use the Motif toolkit for the user interface
897 --with-gtk Use the Gtk toolkit for the user interface.
898 --with-gnome Include support for the Gnome 1.x Control Center.
899 (This option is not needed with GTK 2.x / Gnome 2.x.)
901 --with-xml The XML toolkit is needed for some parts of
902 the Gtk interface. Without it, the configuration
903 interface will be much less featureful.
907 --with-gl Build those demos which depend on OpenGL.
908 --with-gle Build those demos which depend on GLE
909 (the OpenGL "extrusion" library.)
910 --with-xpm Include support for XPM files in some demos.
911 (Not needed if Pixbuf is used.)
912 --with-pixbuf Include support for the GDK-Pixbuf library in some
913 demos, which will make it possible for them to read
914 GIF, JPEG, and PNG files as well. (The path here is
915 ignored if GTK 2.x is being used.)
916 --with-jpeg Include support for the JPEG library.
917 --with-xshm-ext Include support for the Shared Memory extension.
918 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
919 --with-readdisplay Include support for the XReadDisplay extension.
921 --with-fortune=PROGRAM Some demos are able to run an external program and
922 display its text; this names the program to use by
923 default (though it can be overridden with X
924 resources.) Default is \"/usr/games/fortune\".
925 --with-setuid-hacks Allow some demos to be installed \`setuid root'
926 (which is needed in order to ping other hosts.)
929 Some influential environment variables:
930 CC C compiler command
931 CFLAGS C compiler flags
932 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
933 nonstandard directory <lib dir>
934 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
935 headers in a nonstandard directory <include dir>
938 Use these variables to override the choices made by `configure' or to help
939 it to find libraries and programs with nonstandard names/locations.
944 if test "$ac_init_help" = "recursive"; then
945 # If there are subdirs, report their specific --help.
947 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
948 test -d $ac_dir || continue
951 if test "$ac_dir" != .; then
952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
953 # A "../" for each directory in $ac_dir_suffix.
954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
956 ac_dir_suffix= ac_top_builddir=
960 .) # No --srcdir option. We are building in place.
962 if test -z "$ac_top_builddir"; then
965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
967 [\\/]* | ?:[\\/]* ) # Absolute path.
968 ac_srcdir=$srcdir$ac_dir_suffix;
969 ac_top_srcdir=$srcdir ;;
971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
974 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
976 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
977 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
978 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
979 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
982 # Check for guested configure; otherwise get Cygnus style configure.
983 if test -f $ac_srcdir/configure.gnu; then
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
988 $SHELL $ac_srcdir/configure --help=recursive
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000 test -n "$ac_init_help" && exit 0
1001 if $ac_init_version; then
1004 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1005 Free Software Foundation, Inc.
1006 This configure script is free software; the Free Software Foundation
1007 gives unlimited permission to copy, distribute and modify it.
1013 This file contains any messages produced by compilers while
1014 running configure, to aid debugging if configure makes a mistake.
1016 It was created by $as_me, which was
1017 generated by GNU Autoconf 2.57. Invocation command line was
1028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1035 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1038 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1040 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1041 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1042 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1043 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1051 test -z "$as_dir" && as_dir=.
1052 echo "PATH: $as_dir"
1067 # Keep a trace of the command line.
1068 # Strip out --no-create and --no-recursion so they do not pile up.
1069 # Strip out --silent because we don't want to record it for future runs.
1070 # Also quote any args containing shell meta-characters.
1071 # Make two passes to allow for proper duplicate-argument suppression.
1076 ac_must_keep_next=false
1082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1086 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1087 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1093 if test $ac_must_keep_next = true; then
1094 ac_must_keep_next=false # Got value, back to normal.
1097 *=* | --config-cache | -C | -disable-* | --disable-* \
1098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1100 | -with-* | --with-* | -without-* | --without-* | --x)
1101 case "$ac_configure_args0 " in
1102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105 -* ) ac_must_keep_next=true ;;
1108 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1109 # Get rid of the leading space.
1115 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1116 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118 # When interrupted or exit'd, cleanup temporary files, and complete
1119 # config.log. We remove comments because anyway the quotes in there
1120 # would cause problems or look ugly.
1121 # WARNING: Be sure not to use single quotes in there, as some shells,
1122 # such as our DU 5.0 friend, will then `close' the trap.
1123 trap 'exit_status=$?
1124 # Save into config.log some information that might help in debugging.
1129 ## ---------------- ##
1130 ## Cache variables. ##
1131 ## ---------------- ##
1134 # The following way of writing the cache mishandles newlines in values,
1137 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152 ## ----------------- ##
1153 ## Output variables. ##
1154 ## ----------------- ##
1157 for ac_var in $ac_subst_vars
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1164 if test -n "$ac_subst_files"; then
1171 for ac_var in $ac_subst_files
1173 eval ac_val=$`echo $ac_var`
1174 echo "$ac_var='"'"'$ac_val'"'"'"
1179 if test -s confdefs.h; then
1186 sed "/^$/d" confdefs.h | sort
1189 test "$ac_signal" != 0 &&
1190 echo "$as_me: caught signal $ac_signal"
1191 echo "$as_me: exit $exit_status"
1193 rm -f core core.* *.core &&
1194 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197 for ac_signal in 1 2 13 15; do
1198 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1202 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1203 rm -rf conftest* confdefs.h
1204 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207 # Predefined preprocessor variables.
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_NAME "$PACKAGE_NAME"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_STRING "$PACKAGE_STRING"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1234 # Let the site file select an alternate cache file if it wants to.
1235 # Prefer explicitly selected file to automatically selected ones.
1236 if test -z "$CONFIG_SITE"; then
1237 if test "x$prefix" != xNONE; then
1238 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243 for ac_site_file in $CONFIG_SITE; do
1244 if test -r "$ac_site_file"; then
1245 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1246 echo "$as_me: loading site script $ac_site_file" >&6;}
1247 sed 's/^/| /' "$ac_site_file" >&5
1252 if test -r "$cache_file"; then
1253 # Some versions of bash will fail to source /dev/null (special
1254 # files actually), so we avoid doing that.
1255 if test -f "$cache_file"; then
1256 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1257 echo "$as_me: loading cache $cache_file" >&6;}
1259 [\\/]* | ?:[\\/]* ) . $cache_file;;
1260 *) . ./$cache_file;;
1264 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1265 echo "$as_me: creating cache $cache_file" >&6;}
1269 # Check that the precious variables saved in the cache have kept the same
1271 ac_cache_corrupted=false
1272 for ac_var in `(set) 2>&1 |
1273 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1275 eval ac_new_set=\$ac_env_${ac_var}_set
1276 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1277 eval ac_new_val="\$ac_env_${ac_var}_value"
1278 case $ac_old_set,$ac_new_set in
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1281 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1284 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1285 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1286 ac_cache_corrupted=: ;;
1289 if test "x$ac_old_val" != "x$ac_new_val"; then
1290 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1291 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1292 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1293 echo "$as_me: former value: $ac_old_val" >&2;}
1294 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1295 echo "$as_me: current value: $ac_new_val" >&2;}
1296 ac_cache_corrupted=:
1299 # Pass precious variables to config.status.
1300 if test "$ac_new_set" = set; then
1302 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1303 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1304 *) ac_arg=$ac_var=$ac_new_val ;;
1306 case " $ac_configure_args " in
1307 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1308 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1312 if $ac_cache_corrupted; then
1313 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1314 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1315 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1316 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1317 { (exit 1); exit 1; }; }
1321 ac_cpp='$CPP $CPPFLAGS'
1322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 ac_config_headers="$ac_config_headers config.h"
1347 echo "current directory: `pwd`"
1348 echo "command line was: $0 $@"
1351 # After checking to see that --srcdir is correct (which AC_INIT does)
1352 # check for some random other files that come later in the tar file,
1353 # to make sure everything is here.
1355 for d in driver utils hacks hacks/glx ; do
1356 f=$srcdir/$d/Makefile.in
1357 if test \! -r $f ; then
1359 echo "ERROR: The package is incomplete: $f does not exist."
1360 echo " This probably means that your download was truncated."
1366 ###############################################################################
1368 # Function to figure out how to run the compiler.
1370 ###############################################################################
1375 ###############################################################################
1377 # Functions to figure out how to disable // comments in ANSI C code.
1379 # (With recent gcc, this is done with "-std=c89". With older gcc, this
1380 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
1381 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
1382 # so much for compatibility!)
1384 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
1385 # declarations preceed statements, without resorting to "-pedantic".
1386 # This means that there is no way to get gcc3 to issue warnings that
1387 # ensure that your code complies with the ANSI/ISO C89 standard, without
1388 # also drowning in totally useless warnings. Thank you master may I
1391 # So, I give up, let's just use -pedantic.
1393 ###############################################################################
1400 ###############################################################################
1402 # Function to figure out how to turn off Objective C on MacOS X.
1403 # (We have to do this to work around an Apple-specific gcc bug.)
1405 ###############################################################################
1412 ###############################################################################
1414 # Function to figure out how to create directory trees.
1416 ###############################################################################
1421 ###############################################################################
1423 # Function to check whether gettimeofday() exists, and how to call it.
1424 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
1426 ###############################################################################
1431 ###############################################################################
1433 # Function to find perl5 (defines PERL and PERL_VERSION.)
1435 ###############################################################################
1437 # M4 sucks!! perl sucks too!!
1439 perl_version_cmd='print $]'
1445 ###############################################################################
1447 # Function to demand "bc". Losers.
1449 ###############################################################################
1453 ###############################################################################
1455 # Functions to check how to do ICMP PING requests.
1457 ###############################################################################
1464 ###############################################################################
1466 # Functions to check for various X11 crap.
1468 ###############################################################################
1470 # Try and find the app-defaults directory.
1471 # It sucks that autoconf doesn't do this already...
1483 # Random special-cases for X on certain pathological OSes.
1484 # You know who you are.
1490 ###############################################################################
1492 # Some utility functions to make checking for X things easier.
1494 ###############################################################################
1496 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
1500 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
1504 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
1509 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
1510 # Use this sparingly; it probably doesn't work very well on X programs.
1514 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
1515 # (But not the -L directories!)
1521 # Usage: HANDLE_X_PATH_ARG([variable_name],
1522 # [--command-line-option],
1523 # [descriptive string])
1525 # All of the --with options take three forms:
1527 # --with-foo (or --with-foo=yes)
1528 # --without-foo (or --with-foo=no)
1531 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
1532 # a directory (string beginning with a slash) it checks to see whether
1533 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
1540 ###############################################################################
1541 ###############################################################################
1543 # End of function definitions. Now start actually executing stuff.
1545 ###############################################################################
1546 ###############################################################################
1548 # random compiler setup
1550 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1551 if test -f $ac_dir/install-sh; then
1553 ac_install_sh="$ac_aux_dir/install-sh -c"
1555 elif test -f $ac_dir/install.sh; then
1557 ac_install_sh="$ac_aux_dir/install.sh -c"
1559 elif test -f $ac_dir/shtool; then
1561 ac_install_sh="$ac_aux_dir/shtool install -c"
1565 if test -z "$ac_aux_dir"; then
1566 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1567 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1568 { (exit 1); exit 1; }; }
1570 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1571 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1572 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1574 # Make sure we can run config.sub.
1575 $ac_config_sub sun4 >/dev/null 2>&1 ||
1576 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1577 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1578 { (exit 1); exit 1; }; }
1580 echo "$as_me:$LINENO: checking build system type" >&5
1581 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1582 if test "${ac_cv_build+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 ac_cv_build_alias=$build_alias
1586 test -z "$ac_cv_build_alias" &&
1587 ac_cv_build_alias=`$ac_config_guess`
1588 test -z "$ac_cv_build_alias" &&
1589 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1590 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1591 { (exit 1); exit 1; }; }
1592 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1598 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1599 echo "${ECHO_T}$ac_cv_build" >&6
1601 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606 echo "$as_me:$LINENO: checking host system type" >&5
1607 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1608 if test "${ac_cv_host+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 ac_cv_host_alias=$host_alias
1612 test -z "$ac_cv_host_alias" &&
1613 ac_cv_host_alias=$ac_cv_build_alias
1614 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1616 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1620 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1621 echo "${ECHO_T}$ac_cv_host" >&6
1623 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1671 if test -z "$ac_cv_prog_CC"; then
1673 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$ac_ct_CC"; then
1681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_ac_ct_CC="gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1713 if test -z "$CC"; then
1714 if test -n "$ac_tool_prefix"; then
1715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$CC"; then
1723 ac_cv_prog_CC="$CC" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_CC="${ac_tool_prefix}cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$ac_cv_prog_CC"; then
1753 # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814 ac_prog_rejected=yes
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 if test $ac_prog_rejected = yes; then
1825 # We found a bogon in the path, so make sure we never use it.
1826 set dummy $ac_cv_prog_CC
1828 if test $# != 0; then
1829 # We chose a different compiler from the bogus one.
1830 # However, it has the same basename, so the bogon will be chosen
1831 # first if we set CC to just the basename; use the full file name.
1833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$CC" && break
1890 if test -z "$CC"; then
1894 # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="$ac_prog"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 test -n "$ac_ct_CC" && break
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946 "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949 (eval $ac_compiler --version </dev/null >&5) 2>&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954 (eval $ac_compiler -v </dev/null >&5) 2>&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959 (eval $ac_compiler -V </dev/null >&5) 2>&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1964 cat >conftest.$ac_ext <<_ACEOF
1965 #line $LINENO "configure"
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1980 ac_clean_files_save=$ac_clean_files
1981 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1982 # Try to create an executable without -o first, disregard a.out.
1983 # It will help us diagnose broken compilers, and finding out an intuition
1985 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1986 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1987 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1988 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1989 (eval $ac_link_default) 2>&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; then
1993 # Find the output, starting from the most likely. This scheme is
1994 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1997 # Be careful to initialize this variable, since it used to be cached.
1998 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2000 # b.out is created by i960 compilers.
2001 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2003 test -f "$ac_file" || continue
2005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2008 # This is the source file.
2011 # We found the default executable, but exeext='' is most
2015 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2016 # FIXME: I believe we export ac_cv_exeext for Libtool,
2017 # but it would be cool to find out if it's true. Does anybody
2018 # maintain Libtool? --akim.
2026 echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2029 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2030 See \`config.log' for more details." >&5
2031 echo "$as_me: error: C compiler cannot create executables
2032 See \`config.log' for more details." >&2;}
2033 { (exit 77); exit 77; }; }
2036 ac_exeext=$ac_cv_exeext
2037 echo "$as_me:$LINENO: result: $ac_file" >&5
2038 echo "${ECHO_T}$ac_file" >&6
2040 # Check the compiler produces executables we can run. If not, either
2041 # the compiler is broken, or we cross compile.
2042 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2043 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2044 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2045 # If not cross compiling, check that we can run a simple program.
2046 if test "$cross_compiling" != yes; then
2047 if { ac_try='./$ac_file'
2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2055 if test "$cross_compiling" = maybe; then
2058 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2059 If you meant to cross compile, use \`--host'.
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: cannot run C compiled programs.
2062 If you meant to cross compile, use \`--host'.
2063 See \`config.log' for more details." >&2;}
2064 { (exit 1); exit 1; }; }
2068 echo "$as_me:$LINENO: result: yes" >&5
2069 echo "${ECHO_T}yes" >&6
2071 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2072 ac_clean_files=$ac_clean_files_save
2073 # Check the compiler produces executables we can run. If not, either
2074 # the compiler is broken, or we cross compile.
2075 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2076 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2077 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2078 echo "${ECHO_T}$cross_compiling" >&6
2080 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2081 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2083 (eval $ac_link) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2087 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2088 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2089 # work properly (i.e., refer to `conftest.exe'), while it won't with
2091 for ac_file in conftest.exe conftest conftest.*; do
2092 test -f "$ac_file" || continue
2094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2095 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2103 See \`config.log' for more details." >&5
2104 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2105 See \`config.log' for more details." >&2;}
2106 { (exit 1); exit 1; }; }
2109 rm -f conftest$ac_cv_exeext
2110 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2111 echo "${ECHO_T}$ac_cv_exeext" >&6
2113 rm -f conftest.$ac_ext
2114 EXEEXT=$ac_cv_exeext
2116 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2117 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2118 if test "${ac_cv_objext+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 cat >conftest.$ac_ext <<_ACEOF
2122 #line $LINENO "configure"
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 rm -f conftest.o conftest.obj
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; then
2143 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2146 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2151 echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2154 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2157 See \`config.log' for more details." >&2;}
2158 { (exit 1); exit 1; }; }
2161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2163 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2164 echo "${ECHO_T}$ac_cv_objext" >&6
2165 OBJEXT=$ac_cv_objext
2167 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2168 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2169 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2210 rm -f conftest.$ac_objext conftest.$ac_ext
2211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2214 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2215 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2216 GCC=`test $ac_compiler_gnu = yes && echo yes`
2217 ac_test_CFLAGS=${CFLAGS+set}
2218 ac_save_CFLAGS=$CFLAGS
2220 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2221 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2222 if test "${ac_cv_prog_cc_g+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 cat >conftest.$ac_ext <<_ACEOF
2226 #line $LINENO "configure"
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); } &&
2247 { ac_try='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2255 echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2260 rm -f conftest.$ac_objext conftest.$ac_ext
2262 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2263 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2264 if test "$ac_test_CFLAGS" = set; then
2265 CFLAGS=$ac_save_CFLAGS
2266 elif test $ac_cv_prog_cc_g = yes; then
2267 if test "$GCC" = yes; then
2273 if test "$GCC" = yes; then
2279 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2280 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2281 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 ac_cv_prog_cc_stdc=no
2286 cat >conftest.$ac_ext <<_ACEOF
2287 #line $LINENO "configure"
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2295 #include <sys/types.h>
2296 #include <sys/stat.h>
2297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2298 struct buf { int x; };
2299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2300 static char *e (p, i)
2306 static char *f (char * (*g) (char **, int), char **p, ...)
2311 s = g (p, va_arg (v,int));
2315 int test (int i, double x);
2316 struct s1 {int (*f) (int a);};
2317 struct s2 {int (*f) (double a);};
2318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2329 # Don't try gcc -ansi; that turns off useful extensions and
2330 # breaks some systems' header files.
2331 # AIX -qlanglvl=ansi
2332 # Ultrix and OSF/1 -std1
2333 # HP-UX 10.20 and later -Ae
2334 # HP-UX older versions -Aa -D_HPUX_SOURCE
2335 # SVR4 -Xc -D__EXTENSIONS__
2336 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2338 CC="$ac_save_CC $ac_arg"
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_prog_cc_stdc=$ac_arg
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2358 rm -f conftest.$ac_objext
2360 rm -f conftest.$ac_ext conftest.$ac_objext
2365 case "x$ac_cv_prog_cc_stdc" in
2367 echo "$as_me:$LINENO: result: none needed" >&5
2368 echo "${ECHO_T}none needed" >&6 ;;
2370 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2371 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2372 CC="$CC $ac_cv_prog_cc_stdc" ;;
2375 # Some people use a C++ compiler to compile C. Since we use `exit',
2376 # in C++ we need to declare it. In case someone uses the same compiler
2377 # for both compiling C and C++ we need to have the C++ compiler decide
2378 # the declaration of exit, since it's the most demanding environment.
2379 cat >conftest.$ac_ext <<_ACEOF
2384 rm -f conftest.$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 for ac_declaration in \
2398 '#include <stdlib.h>' \
2399 'extern "C" void std::exit (int) throw (); using std::exit;' \
2400 'extern "C" void std::exit (int); using std::exit;' \
2401 'extern "C" void exit (int) throw ();' \
2402 'extern "C" void exit (int);' \
2405 cat >conftest.$ac_ext <<_ACEOF
2406 #line $LINENO "configure"
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -s conftest.$ac_objext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2441 rm -f conftest.$ac_objext conftest.$ac_ext
2442 cat >conftest.$ac_ext <<_ACEOF
2443 #line $LINENO "configure"
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2476 rm -f conftest.$ac_objext conftest.$ac_ext
2479 if test -n "$ac_declaration"; then
2480 echo '#ifdef __cplusplus' >>confdefs.h
2481 echo $ac_declaration >>confdefs.h
2482 echo '#endif' >>confdefs.h
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2490 rm -f conftest.$ac_objext conftest.$ac_ext
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498 if test -z "$GCC"; then
2499 echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
2500 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6
2503 echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
2504 echo "${ECHO_T}HPUX: adding -Ae" >&6
2508 echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
2509 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6
2510 CC="$CC -qlanglvl=ansi -qhalt=e"
2514 echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
2515 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6
2520 echo "$as_me:$LINENO: result: no idea" >&5
2521 echo "${ECHO_T}no idea" >&6
2528 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2529 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2530 if test "$cross_compiling" = yes; then
2531 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2532 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2533 { (exit 1); exit 1; }; }
2535 cat >conftest.$ac_ext <<_ACEOF
2536 #line $LINENO "configure"
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h. */
2542 main(int ac, char **av) { return 0; }
2544 rm -f conftest$ac_exeext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 echo "$as_me:$LINENO: result: yes" >&5
2556 echo "${ECHO_T}yes" >&6
2558 echo "$as_me: program exited with status $ac_status" >&5
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2563 echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6
2565 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2566 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2567 { (exit 1); exit 1; }; }
2569 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2572 if test -n "$GCC"; then
2573 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2574 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2575 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs"
2576 OBJCC="$OBJCC -Wall"
2577 # supposedly gcc 3.4 will have "-Wdeclaration-after-statement"
2578 # and then perhaps we can do without -pedantic?
2581 *-irix5* |*-irix6.0-3* )
2582 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2583 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2584 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2587 # if test -z "$GCC"; then
2588 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2589 # CC="$CC -migrate -w0 -verbose -warnprotos"
2595 if test -n "$GCC"; then
2596 if test -n "$GCC"; then
2597 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2598 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2599 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 if ( ( gcc -E -std=c89 - </dev/null >/dev/null ) 2>&1 | \
2603 grep unrecognized >/dev/null ); then
2604 ac_cv_gcc_accepts_std=no
2606 ac_cv_gcc_accepts_std=yes
2609 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2610 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2611 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2614 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2615 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2617 # The reason that // comments are banned from xscreensaver is that gcc is
2618 # basically the only compiler in the world that supports them in C code.
2619 # All other vendors support them only in their C++ compilers, not in their
2620 # ANSI C compilers. This means that it's a portability problem: every time
2621 # these comments have snuck into the xscreensaver source code, I've gotten
2622 # complaints about it the next day. So we turn off support for them in gcc
2623 # as well to prevent them from accidentially slipping in.
2625 if test "$ac_gcc_accepts_std" = yes ; then
2627 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2628 # (That appears to be the only additional preprocessor symbol
2629 # it defines, in addition to the syntax changes it makes.)
2631 # -std=gnu89 is no good, because // comments were a GNU extension
2632 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2633 # with -std=gnu89 but not with -std=c89.)
2635 CC="$CC -std=c89 -U__STRICT_ANSI__"
2638 CC="$CC -Wp,-lang-c89"
2642 if test -n "$GCC"; then
2643 if test -n "$GCC"; then
2644 echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
2645 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6
2646 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 if ( ( gcc -E -no-cpp-precomp - </dev/null >/dev/null ) 2>&1 | \
2650 grep unrecognized >/dev/null ); then
2651 ac_cv_gcc_accepts_no_cpp_precomp=no
2653 ac_cv_gcc_accepts_no_cpp_precomp=yes
2656 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
2657 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6
2658 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
2661 if test "$ac_gcc_accepts_no_cpp_precomp" = yes ; then
2662 echo "$as_me:$LINENO: result: Disabling Objective C extensions in ANSI C code." >&5
2663 echo "${ECHO_T}Disabling Objective C extensions in ANSI C code." >&6
2664 CC="$CC -no-cpp-precomp"
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2674 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2675 # On Suns, sometimes $CPP names a directory.
2676 if test -n "$CPP" && test -d "$CPP"; then
2679 if test -z "$CPP"; then
2680 if test "${ac_cv_prog_CPP+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 # Double quotes because CPP needs to be expanded
2684 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2687 for ac_c_preproc_warn_flag in '' yes
2689 # Use a header file that comes with gcc, so configuring glibc
2690 # with a fresh cross-compiler works.
2691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2692 # <limits.h> exists even on freestanding compilers.
2693 # On the NeXT, cc -E runs the code through the compiler's parser,
2694 # not just through cpp. "Syntax error" is here to catch this case.
2695 cat >conftest.$ac_ext <<_ACEOF
2696 #line $LINENO "configure"
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2703 # include <limits.h>
2705 # include <assert.h>
2709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } >/dev/null; then
2717 if test -s conftest.err; then
2718 ac_cpp_err=$ac_c_preproc_warn_flag
2725 if test -z "$ac_cpp_err"; then
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2731 # Broken: fails on valid input.
2734 rm -f conftest.err conftest.$ac_ext
2736 # OK, works on sane cases. Now check whether non-existent headers
2737 # can be detected and how.
2738 cat >conftest.$ac_ext <<_ACEOF
2739 #line $LINENO "configure"
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2745 #include <ac_nonexistent.h>
2747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2750 grep -v '^ *+' conftest.er1 >conftest.err
2752 cat conftest.err >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } >/dev/null; then
2755 if test -s conftest.err; then
2756 ac_cpp_err=$ac_c_preproc_warn_flag
2763 if test -z "$ac_cpp_err"; then
2764 # Broken: success on invalid input.
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2770 # Passes both tests.
2774 rm -f conftest.err conftest.$ac_ext
2777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2778 rm -f conftest.err conftest.$ac_ext
2779 if $ac_preproc_ok; then
2791 echo "$as_me:$LINENO: result: $CPP" >&5
2792 echo "${ECHO_T}$CPP" >&6
2794 for ac_c_preproc_warn_flag in '' yes
2796 # Use a header file that comes with gcc, so configuring glibc
2797 # with a fresh cross-compiler works.
2798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2799 # <limits.h> exists even on freestanding compilers.
2800 # On the NeXT, cc -E runs the code through the compiler's parser,
2801 # not just through cpp. "Syntax error" is here to catch this case.
2802 cat >conftest.$ac_ext <<_ACEOF
2803 #line $LINENO "configure"
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2810 # include <limits.h>
2812 # include <assert.h>
2816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2819 grep -v '^ *+' conftest.er1 >conftest.err
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } >/dev/null; then
2824 if test -s conftest.err; then
2825 ac_cpp_err=$ac_c_preproc_warn_flag
2832 if test -z "$ac_cpp_err"; then
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2838 # Broken: fails on valid input.
2841 rm -f conftest.err conftest.$ac_ext
2843 # OK, works on sane cases. Now check whether non-existent headers
2844 # can be detected and how.
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #line $LINENO "configure"
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2852 #include <ac_nonexistent.h>
2854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2857 grep -v '^ *+' conftest.er1 >conftest.err
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } >/dev/null; then
2862 if test -s conftest.err; then
2863 ac_cpp_err=$ac_c_preproc_warn_flag
2870 if test -z "$ac_cpp_err"; then
2871 # Broken: success on invalid input.
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2877 # Passes both tests.
2881 rm -f conftest.err conftest.$ac_ext
2884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2885 rm -f conftest.err conftest.$ac_ext
2886 if $ac_preproc_ok; then
2889 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2892 See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2903 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2904 if test "${ac_cv_c_const+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 cat >conftest.$ac_ext <<_ACEOF
2908 #line $LINENO "configure"
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2918 /* FIXME: Include the comments suggested by Paul. */
2920 /* Ultrix mips cc rejects this. */
2921 typedef int charset[2];
2923 /* SunOS 4.1.1 cc rejects this. */
2924 char const *const *ccp;
2926 /* NEC SVR4.0.2 mips cc rejects this. */
2927 struct point {int x, y;};
2928 static struct point const zero = {0,0};
2929 /* AIX XL C 1.02.0.0 rejects this.
2930 It does not let you subtract one const X* pointer from another in
2931 an arm of an if-expression whose if-part is not a constant
2933 const char *g = "string";
2934 ccp = &g + (g ? g-g : 0);
2935 /* HPUX 7.0 cc rejects these. */
2938 ccp = (char const *const *) p;
2939 { /* SCO 3.2v4 cc rejects this. */
2941 char const *s = 0 ? (char *) 0 : (char const *) 0;
2945 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2947 const int *foo = &x[0];
2950 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2951 typedef const int *iptr;
2955 { /* AIX XL C 1.02.0.0 rejects this saying
2956 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2957 struct s { int j; const int *ap[3]; };
2958 struct s *b; b->j = 5;
2960 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f conftest.$ac_objext conftest.$ac_ext
2990 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2991 echo "${ECHO_T}$ac_cv_c_const" >&6
2992 if test $ac_cv_c_const = no; then
2994 cat >>confdefs.h <<\_ACEOF
3000 echo "$as_me:$LINENO: checking for inline" >&5
3001 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3002 if test "${ac_cv_c_inline+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 for ac_kw in inline __inline__ __inline; do
3007 cat >conftest.$ac_ext <<_ACEOF
3008 #line $LINENO "configure"
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3016 static $ac_kw foo_t static_foo () {return 0; }
3017 $ac_kw foo_t foo () {return 0; }
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023 (eval $ac_compile) 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_cv_c_inline=$ac_kw; break
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3039 rm -f conftest.$ac_objext conftest.$ac_ext
3043 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3044 echo "${ECHO_T}$ac_cv_c_inline" >&6
3045 case $ac_cv_c_inline in
3048 cat >>confdefs.h <<\_ACEOF
3052 *) cat >>confdefs.h <<_ACEOF
3053 #define inline $ac_cv_c_inline
3059 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3060 echo "$as_me:$LINENO: checking for bc" >&5
3061 echo $ECHO_N "checking for bc... $ECHO_C" >&6
3062 if test "$ac_bc_result" = "15" ; then
3063 echo "$as_me:$LINENO: result: yes" >&5
3064 echo "${ECHO_T}yes" >&6
3066 echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6
3069 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3070 part of Unix since the 1970s. Come back when your vendor
3071 has grown a clue." >&5
3072 echo "$as_me: 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." >&2;}
3075 { (exit 1); exit 1; }; }
3079 # stuff for Makefiles
3080 # Find a good install program. We prefer a C program (faster),
3081 # so one script is as good as another. But avoid the broken or
3082 # incompatible versions:
3083 # SysV /etc/install, /usr/sbin/install
3084 # SunOS /usr/etc/install
3085 # IRIX /sbin/install
3087 # AmigaOS /C/install, which installs bootblocks on floppy discs
3088 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3091 # ./install, which can be erroneously created by make from ./install.sh.
3092 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3093 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3094 if test -z "$INSTALL"; then
3095 if test "${ac_cv_path_install+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 # Account for people who put trailing slashes in PATH elements.
3105 ./ | .// | /cC/* | \
3106 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3109 # OSF1 and SCO ODT 3.0 have their own names for install.
3110 # Don't use installbsd from OSF since it installs stuff as root
3112 for ac_prog in ginstall scoinst install; do
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3115 if test $ac_prog = install &&
3116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3117 # AIX install. It has an incompatible calling convention.
3119 elif test $ac_prog = install &&
3120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3121 # program-specific install script used by HP pwplus--don't use.
3124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3136 if test "${ac_cv_path_install+set}" = set; then
3137 INSTALL=$ac_cv_path_install
3139 # As a last resort, use the slow shell script. We don't cache a
3140 # path for INSTALL within a source directory, because that will
3141 # break other packages using the cache if that directory is
3142 # removed, or if the path is relative.
3143 INSTALL=$ac_install_sh
3146 echo "$as_me:$LINENO: result: $INSTALL" >&5
3147 echo "${ECHO_T}$INSTALL" >&6
3149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3150 # It thinks the first close brace ends the variable substitution.
3151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3157 echo "$as_me:$LINENO: checking whether \\"\${INSTALL} -d\\" creates intermediate directories" >&5
3158 echo $ECHO_N "checking whether \\"\${INSTALL} -d\\" creates intermediate directories... $ECHO_C" >&6
3159 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 ac_cv_install_d_creates_dirs=no
3164 if mkdir conftestdir; then
3165 cd conftestdir 2>/dev/null
3166 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
3167 if test -d dir1/dir2/. ; then
3168 ac_cv_install_d_creates_dirs=yes
3175 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
3176 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
3178 if test "$ac_cv_install_d_creates_dirs" = no ; then
3179 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
3180 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
3181 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 ac_cv_mkdir_p_creates_dirs=no
3186 if mkdir conftestdir; then
3187 cd conftestdir 2>/dev/null
3188 mkdir -p dir1/dir2 >/dev/null 2>&1
3189 if test -d dir1/dir2/. ; then
3190 ac_cv_mkdir_p_creates_dirs=yes
3197 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3198 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3201 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3202 INSTALL_DIRS='${INSTALL} -d'
3203 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3204 INSTALL_DIRS='mkdir -p'
3207 INSTALL_DIRS='${INSTALL} -d'
3210 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3212 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3213 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 cat >conftest.make <<\_ACEOF
3218 @echo 'ac_maketemp="$(MAKE)"'
3220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3221 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3222 if test -n "$ac_maketemp"; then
3223 eval ac_cv_prog_make_${ac_make}_set=yes
3225 eval ac_cv_prog_make_${ac_make}_set=no
3229 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3230 echo "$as_me:$LINENO: result: yes" >&5
3231 echo "${ECHO_T}yes" >&6
3234 echo "$as_me:$LINENO: result: no" >&5
3235 echo "${ECHO_T}no" >&6
3236 SET_MAKE="MAKE=${MAKE-make}"
3240 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3241 # That's wrong: it should be set to '${INSTALL}', so that one can
3242 # implement the "install-strip" target properly (strip executables,
3243 # but do not try to strip scripts.)
3245 INSTALL_SCRIPT='${INSTALL}'
3249 echo "$as_me:$LINENO: checking for egrep" >&5
3250 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3251 if test "${ac_cv_prog_egrep+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3255 then ac_cv_prog_egrep='grep -E'
3256 else ac_cv_prog_egrep='egrep'
3259 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3260 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3261 EGREP=$ac_cv_prog_egrep
3264 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3265 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3266 if test "${ac_cv_header_stdc+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line $LINENO "configure"
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3289 rm -f conftest.$ac_objext
3290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291 (eval $ac_compile) 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } &&
3295 { ac_try='test -s conftest.$ac_objext'
3296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; }; then
3301 ac_cv_header_stdc=yes
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 ac_cv_header_stdc=no
3308 rm -f conftest.$ac_objext conftest.$ac_ext
3310 if test $ac_cv_header_stdc = yes; then
3311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3312 cat >conftest.$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 $EGREP "memchr" >/dev/null 2>&1; then
3326 ac_cv_header_stdc=no
3332 if test $ac_cv_header_stdc = yes; then
3333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3334 cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 $EGREP "free" >/dev/null 2>&1; then
3348 ac_cv_header_stdc=no
3354 if test $ac_cv_header_stdc = yes; then
3355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3356 if test "$cross_compiling" = yes; then
3359 cat >conftest.$ac_ext <<_ACEOF
3360 #line $LINENO "configure"
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3367 #if ((' ' & 0x0FF) == 0x020)
3368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3371 # define ISLOWER(c) \
3372 (('a' <= (c) && (c) <= 'i') \
3373 || ('j' <= (c) && (c) <= 'r') \
3374 || ('s' <= (c) && (c) <= 'z'))
3375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3383 for (i = 0; i < 256; i++)
3384 if (XOR (islower (i), ISLOWER (i))
3385 || toupper (i) != TOUPPER (i))
3390 rm -f conftest$ac_exeext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3392 (eval $ac_link) 2>&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3403 echo "$as_me: program exited with status $ac_status" >&5
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3408 ac_cv_header_stdc=no
3410 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3414 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3415 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3416 if test $ac_cv_header_stdc = yes; then
3418 cat >>confdefs.h <<\_ACEOF
3419 #define STDC_HEADERS 1
3424 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3434 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3435 inttypes.h stdint.h unistd.h
3437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3438 echo "$as_me:$LINENO: checking for $ac_header" >&5
3439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 cat >conftest.$ac_ext <<_ACEOF
3444 #line $LINENO "configure"
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 $ac_includes_default
3452 #include <$ac_header>
3454 rm -f conftest.$ac_objext
3455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456 (eval $ac_compile) 2>&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -s conftest.$ac_objext'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3466 eval "$as_ac_Header=yes"
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 eval "$as_ac_Header=no"
3473 rm -f conftest.$ac_objext conftest.$ac_ext
3475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3478 cat >>confdefs.h <<_ACEOF
3479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3488 for ac_header in unistd.h
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492 echo "$as_me:$LINENO: checking for $ac_header" >&5
3493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3500 # Is the header compilable?
3501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 $ac_includes_default
3511 #include <$ac_header>
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
3519 { ac_try='test -s conftest.$ac_objext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 ac_header_compiler=yes
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 ac_header_compiler=no
3532 rm -f conftest.$ac_objext conftest.$ac_ext
3533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3534 echo "${ECHO_T}$ac_header_compiler" >&6
3536 # Is the header present?
3537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #include <$ac_header>
3548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } >/dev/null; then
3556 if test -s conftest.err; then
3557 ac_cpp_err=$ac_c_preproc_warn_flag
3564 if test -z "$ac_cpp_err"; then
3565 ac_header_preproc=yes
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 ac_header_preproc=no
3572 rm -f conftest.err conftest.$ac_ext
3573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3574 echo "${ECHO_T}$ac_header_preproc" >&6
3576 # So? What about this header?
3577 case $ac_header_compiler:$ac_header_preproc in
3579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3585 ## ------------------------------------ ##
3586 ## Report this to bug-autoconf@gnu.org. ##
3587 ## ------------------------------------ ##
3590 sed "s/^/$as_me: WARNING: /" >&2
3593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3601 ## ------------------------------------ ##
3602 ## Report this to bug-autoconf@gnu.org. ##
3603 ## ------------------------------------ ##
3606 sed "s/^/$as_me: WARNING: /" >&2
3609 echo "$as_me:$LINENO: checking for $ac_header" >&5
3610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 eval "$as_ac_Header=$ac_header_preproc"
3616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3621 cat >>confdefs.h <<_ACEOF
3622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3629 echo "$as_me:$LINENO: checking for mode_t" >&5
3630 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3631 if test "${ac_cv_type_mode_t+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 cat >conftest.$ac_ext <<_ACEOF
3635 #line $LINENO "configure"
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3641 $ac_includes_default
3647 if (sizeof (mode_t))
3653 rm -f conftest.$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655 (eval $ac_compile) 2>&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_type_mode_t=yes
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 ac_cv_type_mode_t=no
3672 rm -f conftest.$ac_objext conftest.$ac_ext
3674 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3675 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3676 if test $ac_cv_type_mode_t = yes; then
3680 cat >>confdefs.h <<_ACEOF
3686 echo "$as_me:$LINENO: checking for pid_t" >&5
3687 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3688 if test "${ac_cv_type_pid_t+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 cat >conftest.$ac_ext <<_ACEOF
3692 #line $LINENO "configure"
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 $ac_includes_default
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 ac_cv_type_pid_t=yes
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3729 rm -f conftest.$ac_objext conftest.$ac_ext
3731 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3732 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3733 if test $ac_cv_type_pid_t = yes; then
3737 cat >>confdefs.h <<_ACEOF
3743 echo "$as_me:$LINENO: checking for size_t" >&5
3744 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3745 if test "${ac_cv_type_size_t+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 cat >conftest.$ac_ext <<_ACEOF
3749 #line $LINENO "configure"
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 $ac_includes_default
3761 if (sizeof (size_t))
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 ac_cv_type_size_t=yes
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3784 ac_cv_type_size_t=no
3786 rm -f conftest.$ac_objext conftest.$ac_ext
3788 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3789 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3790 if test $ac_cv_type_size_t = yes; then
3794 cat >>confdefs.h <<_ACEOF
3795 #define size_t unsigned
3800 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3801 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3802 if test "${ac_cv_type_signal+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 cat >conftest.$ac_ext <<_ACEOF
3806 #line $LINENO "configure"
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <sys/types.h>
3818 extern "C" void (*signal (int, void (*)(int)))(int);
3820 void (*signal ()) ();
3831 rm -f conftest.$ac_objext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3833 (eval $ac_compile) 2>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_cv_type_signal=void
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 ac_cv_type_signal=int
3850 rm -f conftest.$ac_objext conftest.$ac_ext
3852 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3853 echo "${ECHO_T}$ac_cv_type_signal" >&6
3855 cat >>confdefs.h <<_ACEOF
3856 #define RETSIGTYPE $ac_cv_type_signal
3860 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3861 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3862 if test "${ac_cv_header_time+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 cat >conftest.$ac_ext <<_ACEOF
3866 #line $LINENO "configure"
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3872 #include <sys/types.h>
3873 #include <sys/time.h>
3879 if ((struct tm *) 0)
3885 rm -f conftest.$ac_objext
3886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3887 (eval $ac_compile) 2>&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_cv_header_time=yes
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_cv_header_time=no
3904 rm -f conftest.$ac_objext conftest.$ac_ext
3906 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3907 echo "${ECHO_T}$ac_cv_header_time" >&6
3908 if test $ac_cv_header_time = yes; then
3910 cat >>confdefs.h <<\_ACEOF
3911 #define TIME_WITH_SYS_TIME 1
3916 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3917 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3918 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 cat >conftest.$ac_ext <<_ACEOF
3922 #line $LINENO "configure"
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 #include <sys/types.h>
3929 #include <sys/wait.h>
3931 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3934 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3942 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3947 rm -f conftest.$ac_objext
3948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3949 (eval $ac_compile) 2>&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } &&
3953 { ac_try='test -s conftest.$ac_objext'
3954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3959 ac_cv_header_sys_wait_h=yes
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3964 ac_cv_header_sys_wait_h=no
3966 rm -f conftest.$ac_objext conftest.$ac_ext
3968 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3969 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3970 if test $ac_cv_header_sys_wait_h = yes; then
3972 cat >>confdefs.h <<\_ACEOF
3973 #define HAVE_SYS_WAIT_H 1
3984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3985 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3986 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3987 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 cat >conftest.$ac_ext <<_ACEOF
3992 #line $LINENO "configure"
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 #include <sys/types.h>
4010 rm -f conftest.$ac_objext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012 (eval $ac_compile) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -s conftest.$ac_objext'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4022 eval "$as_ac_Header=yes"
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 eval "$as_ac_Header=no"
4029 rm -f conftest.$ac_objext conftest.$ac_ext
4031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4034 cat >>confdefs.h <<_ACEOF
4035 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4038 ac_header_dirent=$ac_hdr; break
4042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4043 if test $ac_header_dirent = dirent.h; then
4044 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4045 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4046 if test "${ac_cv_search_opendir+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 ac_func_search_save_LIBS=$LIBS
4050 ac_cv_search_opendir=no
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line $LINENO "configure"
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4059 /* Override any gcc2 internal prototype to avoid an error. */
4063 /* We use char because int might match the return type of a gcc2
4064 builtin and then its argument prototype would still apply. */
4074 rm -f conftest.$ac_objext conftest$ac_exeext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4076 (eval $ac_link) 2>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -s conftest$ac_exeext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_search_opendir="none required"
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4093 if test "$ac_cv_search_opendir" = no; then
4094 for ac_lib in dir; do
4095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4104 /* Override any gcc2 internal prototype to avoid an error. */
4108 /* We use char because int might match the return type of a gcc2
4109 builtin and then its argument prototype would still apply. */
4119 rm -f conftest.$ac_objext conftest$ac_exeext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4121 (eval $ac_link) 2>&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -s conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_search_opendir="-l$ac_lib"
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4141 LIBS=$ac_func_search_save_LIBS
4143 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4144 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4145 if test "$ac_cv_search_opendir" != no; then
4146 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4151 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4152 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4153 if test "${ac_cv_search_opendir+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 ac_func_search_save_LIBS=$LIBS
4157 ac_cv_search_opendir=no
4158 cat >conftest.$ac_ext <<_ACEOF
4159 #line $LINENO "configure"
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4166 /* Override any gcc2 internal prototype to avoid an error. */
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4181 rm -f conftest.$ac_objext conftest$ac_exeext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4183 (eval $ac_link) 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -s conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_search_opendir="none required"
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4200 if test "$ac_cv_search_opendir" = no; then
4202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4203 cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4211 /* Override any gcc2 internal prototype to avoid an error. */
4215 /* We use char because int might match the return type of a gcc2
4216 builtin and then its argument prototype would still apply. */
4226 rm -f conftest.$ac_objext conftest$ac_exeext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4228 (eval $ac_link) 2>&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -s conftest$ac_exeext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 ac_cv_search_opendir="-l$ac_lib"
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4248 LIBS=$ac_func_search_save_LIBS
4250 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4251 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4252 if test "$ac_cv_search_opendir" != no; then
4253 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4259 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4260 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4261 if test "${ac_cv_gettimeofday_args+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4272 #include <sys/time.h>
4276 struct timeval tv; struct timezone tzp;
4277 gettimeofday(&tv, &tzp);
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -s conftest.$ac_objext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 ac_gettimeofday_args=2
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 cat >conftest.$ac_ext <<_ACEOF
4300 #line $LINENO "configure"
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4307 #include <sys/time.h>
4311 struct timeval tv; gettimeofday(&tv);
4316 rm -f conftest.$ac_objext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318 (eval $ac_compile) 2>&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try='test -s conftest.$ac_objext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 ac_gettimeofday_args=1
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4333 ac_gettimeofday_args=0
4335 rm -f conftest.$ac_objext conftest.$ac_ext
4337 rm -f conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4341 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4342 if test "$ac_gettimeofday_args" = 1 ; then
4343 cat >>confdefs.h <<\_ACEOF
4344 #define HAVE_GETTIMEOFDAY 1
4347 echo "$as_me:$LINENO: result: one argument" >&5
4348 echo "${ECHO_T}one argument" >&6
4349 elif test "$ac_gettimeofday_args" = 2 ; then
4350 cat >>confdefs.h <<\_ACEOF
4351 #define HAVE_GETTIMEOFDAY 1
4354 cat >>confdefs.h <<\_ACEOF
4355 #define GETTIMEOFDAY_TWO_ARGS 1
4358 echo "$as_me:$LINENO: result: two arguments" >&5
4359 echo "${ECHO_T}two arguments" >&6
4361 echo "$as_me:$LINENO: result: unknown" >&5
4362 echo "${ECHO_T}unknown" >&6
4374 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4377 echo "$as_me:$LINENO: checking for $ac_func" >&5
4378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4379 if eval "test \"\${$as_ac_var+set}\" = set"; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4383 #line $LINENO "configure"
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4389 /* System header to define __stub macros and hopefully few prototypes,
4390 which can conflict with char $ac_func (); below.
4391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392 <limits.h> exists even on freestanding compilers. */
4394 # include <limits.h>
4396 # include <assert.h>
4398 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4406 /* The GNU C library defines this for functions which it implements
4407 to always fail with ENOSYS. Some functions are actually named
4408 something starting with __ and the normal name is an alias. */
4409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4412 char (*f) () = $ac_func;
4421 return f != $ac_func;
4426 rm -f conftest.$ac_objext conftest$ac_exeext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428 (eval $ac_link) 2>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } &&
4432 { ac_try='test -s conftest$ac_exeext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 eval "$as_ac_var=yes"
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4443 eval "$as_ac_var=no"
4445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4449 if test `eval echo '${'$as_ac_var'}'` = yes; then
4450 cat >>confdefs.h <<_ACEOF
4451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4462 for ac_func in sigaction syslog realpath setrlimit
4464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4465 echo "$as_me:$LINENO: checking for $ac_func" >&5
4466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4467 if eval "test \"\${$as_ac_var+set}\" = set"; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 cat >conftest.$ac_ext <<_ACEOF
4471 #line $LINENO "configure"
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 /* System header to define __stub macros and hopefully few prototypes,
4478 which can conflict with char $ac_func (); below.
4479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480 <limits.h> exists even on freestanding compilers. */
4482 # include <limits.h>
4484 # include <assert.h>
4486 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4494 /* The GNU C library defines this for functions which it implements
4495 to always fail with ENOSYS. Some functions are actually named
4496 something starting with __ and the normal name is an alias. */
4497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4500 char (*f) () = $ac_func;
4509 return f != $ac_func;
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4516 (eval $ac_link) 2>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -s conftest$ac_exeext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 eval "$as_ac_var=yes"
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4531 eval "$as_ac_var=no"
4533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4537 if test `eval echo '${'$as_ac_var'}'` = yes; then
4538 cat >>confdefs.h <<_ACEOF
4539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4545 echo "$as_me:$LINENO: checking for struct icmp" >&5
4546 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
4547 if test "${ac_cv_have_icmp+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 cat >conftest.$ac_ext <<_ACEOF
4551 #line $LINENO "configure"
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4564 #include <sys/types.h>
4565 #include <sys/time.h>
4566 #include <sys/ipc.h>
4567 #include <sys/shm.h>
4568 #include <sys/socket.h>
4569 #include <netinet/in_systm.h>
4570 #include <netinet/in.h>
4571 #include <netinet/ip.h>
4572 #include <netinet/ip_icmp.h>
4573 #include <netinet/udp.h>
4574 #include <arpa/inet.h>
4581 struct sockaddr_in si;
4583 i.icmp_type = ICMP_ECHO;
4588 si.sin_family = AF_INET;
4589 #if defined(__DECC) || defined(_IP_VHL)
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4618 rm -f conftest.$ac_objext conftest.$ac_ext
4620 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
4621 echo "${ECHO_T}$ac_cv_have_icmp" >&6
4622 if test "$ac_cv_have_icmp" = yes ; then
4623 cat >>confdefs.h <<\_ACEOF
4628 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
4629 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
4630 if test "${ac_cv_have_icmphdr+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 cat >conftest.$ac_ext <<_ACEOF
4634 #line $LINENO "configure"
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4647 #include <sys/types.h>
4648 #include <sys/time.h>
4649 #include <sys/ipc.h>
4650 #include <sys/shm.h>
4651 #include <sys/socket.h>
4652 #include <netinet/in_systm.h>
4653 #include <netinet/in.h>
4654 #include <netinet/ip.h>
4655 #include <netinet/ip_icmp.h>
4656 #include <netinet/udp.h>
4657 #include <arpa/inet.h>
4664 struct sockaddr_in si;
4670 i.un.echo.sequence = 0;
4671 si.sin_family = AF_INET;
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_cv_have_icmphdr=yes
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4694 ac_cv_have_icmphdr=no
4696 rm -f conftest.$ac_objext conftest.$ac_ext
4698 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
4699 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
4700 if test "$ac_cv_have_icmphdr" = yes ; then
4701 cat >>confdefs.h <<\_ACEOF
4702 #define HAVE_ICMPHDR 1
4708 for ac_header in crypt.h sys/select.h
4710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4712 echo "$as_me:$LINENO: checking for $ac_header" >&5
4713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4720 # Is the header compilable?
4721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line $LINENO "configure"
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 $ac_includes_default
4731 #include <$ac_header>
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest.$ac_objext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_header_compiler=yes
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 ac_header_compiler=no
4752 rm -f conftest.$ac_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4754 echo "${ECHO_T}$ac_header_compiler" >&6
4756 # Is the header present?
4757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4759 cat >conftest.$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 #include <$ac_header>
4768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null; then
4776 if test -s conftest.err; then
4777 ac_cpp_err=$ac_c_preproc_warn_flag
4784 if test -z "$ac_cpp_err"; then
4785 ac_header_preproc=yes
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4790 ac_header_preproc=no
4792 rm -f conftest.err conftest.$ac_ext
4793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4794 echo "${ECHO_T}$ac_header_preproc" >&6
4796 # So? What about this header?
4797 case $ac_header_compiler:$ac_header_preproc in
4799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4805 ## ------------------------------------ ##
4806 ## Report this to bug-autoconf@gnu.org. ##
4807 ## ------------------------------------ ##
4810 sed "s/^/$as_me: WARNING: /" >&2
4813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4821 ## ------------------------------------ ##
4822 ## Report this to bug-autoconf@gnu.org. ##
4823 ## ------------------------------------ ##
4826 sed "s/^/$as_me: WARNING: /" >&2
4829 echo "$as_me:$LINENO: checking for $ac_header" >&5
4830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 eval "$as_ac_Header=$ac_header_preproc"
4836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4841 cat >>confdefs.h <<_ACEOF
4842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4849 for ac_prog in perl5 perl
4851 # Extract the first word of "$ac_prog", so it can be a program name with args.
4852 set dummy $ac_prog; ac_word=$2
4853 echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4855 if test "${ac_cv_path_PERL+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 PERL=$ac_cv_path_PERL
4882 if test -n "$PERL"; then
4883 echo "$as_me:$LINENO: result: $PERL" >&5
4884 echo "${ECHO_T}$PERL" >&6
4886 echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4890 test -n "$PERL" && break
4893 if test -z "$PERL" ; then
4896 echo "$as_me:$LINENO: checking perl version" >&5
4897 echo $ECHO_N "checking perl version... $ECHO_C" >&6
4898 if test "${ac_cv_perl_version+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
4903 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
4904 echo "${ECHO_T}$ac_cv_perl_version" >&6
4905 PERL_VERSION=$ac_cv_perl_version
4909 if test -z "$PERL" ; then
4910 # don't let it be blank...
4914 echo "$as_me:$LINENO: checking for X" >&5
4915 echo $ECHO_N "checking for X... $ECHO_C" >&6
4918 # Check whether --with-x or --without-x was given.
4919 if test "${with_x+set}" = set; then
4923 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4924 if test "x$with_x" = xno; then
4925 # The user explicitly disabled X.
4928 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4929 # Both variables are already set.
4932 if test "${ac_cv_have_x+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 # One or both of the vars are not set, and there is no cached value.
4936 ac_x_includes=no ac_x_libraries=no
4938 if mkdir conftest.dir; then
4940 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4941 cat >Imakefile <<'_ACEOF'
4943 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4945 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4946 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4947 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4948 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4949 for ac_extension in a so sl; do
4950 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4951 test -f $ac_im_libdir/libX11.$ac_extension; then
4952 ac_im_usrlibdir=$ac_im_libdir; break
4955 # Screen out bogus values from the imake configuration. They are
4956 # bogus both because they are the default anyway, and because
4957 # using them would break gcc on systems where it needs fixed includes.
4958 case $ac_im_incroot in
4960 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4962 case $ac_im_usrlibdir in
4964 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4971 # Standard set of common directories for X headers.
4972 # Check X11 before X11Rn because it is often a symlink to the current release.
4984 /usr/local/X11/include
4985 /usr/local/X11R6/include
4986 /usr/local/X11R5/include
4987 /usr/local/X11R4/include
4989 /usr/local/include/X11
4990 /usr/local/include/X11R6
4991 /usr/local/include/X11R5
4992 /usr/local/include/X11R4
4996 /usr/XFree86/include/X11
5000 /usr/unsupported/include
5002 /usr/local/x11r5/include
5003 /usr/lpp/Xamples/include
5005 /usr/openwin/include
5006 /usr/openwin/share/include'
5008 if test "$ac_x_includes" = no; then
5009 # Guess where to find include files, by looking for Intrinsic.h.
5010 # First, try using that file with no special directory specified.
5011 cat >conftest.$ac_ext <<_ACEOF
5012 #line $LINENO "configure"
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <X11/Intrinsic.h>
5020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5023 grep -v '^ *+' conftest.er1 >conftest.err
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } >/dev/null; then
5028 if test -s conftest.err; then
5029 ac_cpp_err=$ac_c_preproc_warn_flag
5036 if test -z "$ac_cpp_err"; then
5037 # We can compile using X headers with no special include directory.
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 for ac_dir in $ac_x_header_dirs; do
5044 if test -r "$ac_dir/X11/Intrinsic.h"; then
5045 ac_x_includes=$ac_dir
5050 rm -f conftest.err conftest.$ac_ext
5051 fi # $ac_x_includes = no
5053 if test "$ac_x_libraries" = no; then
5054 # Check for the libraries.
5055 # See if we find them without any special options.
5056 # Don't add to $LIBS permanently.
5059 cat >conftest.$ac_ext <<_ACEOF
5060 #line $LINENO "configure"
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 #include <X11/Intrinsic.h>
5075 rm -f conftest.$ac_objext conftest$ac_exeext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5077 (eval $ac_link) 2>&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -s conftest$ac_exeext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5088 # We can link X programs with no special library path.
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5095 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5097 # Don't even attempt the hair of trying to link an X program!
5098 for ac_extension in a so sl; do
5099 if test -r $ac_dir/libXt.$ac_extension; then
5100 ac_x_libraries=$ac_dir
5106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5107 fi # $ac_x_libraries = no
5109 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5110 # Didn't find X anywhere. Cache the known absence of X.
5111 ac_cv_have_x="have_x=no"
5113 # Record where we found X for the cache.
5114 ac_cv_have_x="have_x=yes \
5115 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5120 eval "$ac_cv_have_x"
5123 if test "$have_x" != yes; then
5124 echo "$as_me:$LINENO: result: $have_x" >&5
5125 echo "${ECHO_T}$have_x" >&6
5128 # If each of the values was on the command line, it overrides each guess.
5129 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5130 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5131 # Update the cache value to reflect the command line values.
5132 ac_cv_have_x="have_x=yes \
5133 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5134 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5135 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5138 if test "$no_x" = yes; then
5139 # Not all programs may use this symbol, but it does not hurt to define it.
5141 cat >>confdefs.h <<\_ACEOF
5142 #define X_DISPLAY_MISSING 1
5145 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5147 if test -n "$x_includes"; then
5148 X_CFLAGS="$X_CFLAGS -I$x_includes"
5151 # It would also be nice to do this for all -L options, not just this one.
5152 if test -n "$x_libraries"; then
5153 X_LIBS="$X_LIBS -L$x_libraries"
5154 # For Solaris; some versions of Sun CC require a space after -R and
5155 # others require no space. Words are not sufficient . . . .
5156 case `(uname -sr) 2>/dev/null` in
5158 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5159 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5160 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5161 cat >conftest.$ac_ext <<_ACEOF
5162 #line $LINENO "configure"
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5177 rm -f conftest.$ac_objext conftest$ac_exeext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5179 (eval $ac_link) 2>&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -s conftest$ac_exeext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5197 if test $ac_R_nospace = yes; then
5198 echo "$as_me:$LINENO: result: no" >&5
5199 echo "${ECHO_T}no" >&6
5200 X_LIBS="$X_LIBS -R$x_libraries"
5202 LIBS="$ac_xsave_LIBS -R $x_libraries"
5203 cat >conftest.$ac_ext <<_ACEOF
5204 #line $LINENO "configure"
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5219 rm -f conftest.$ac_objext conftest$ac_exeext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221 (eval $ac_link) 2>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -s conftest$ac_exeext'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; }; then
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5239 if test $ac_R_space = yes; then
5240 echo "$as_me:$LINENO: result: yes" >&5
5241 echo "${ECHO_T}yes" >&6
5242 X_LIBS="$X_LIBS -R $x_libraries"
5244 echo "$as_me:$LINENO: result: neither works" >&5
5245 echo "${ECHO_T}neither works" >&6
5252 # Check for system-dependent libraries X programs must link with.
5253 # Do this before checking for the system-independent R6 libraries
5254 # (-lICE), since we may need -lsocket or whatever for X linking.
5256 if test "$ISC" = yes; then
5257 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5259 # Martyn Johnson says this is needed for Ultrix, if the X
5260 # libraries were built with DECnet support. And Karl Berry says
5261 # the Alpha needs dnet_stub (dnet does not exist).
5262 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5263 cat >conftest.$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5271 /* Override any gcc2 internal prototype to avoid an error. */
5275 /* We use char because int might match the return type of a gcc2
5276 builtin and then its argument prototype would still apply. */
5277 char XOpenDisplay ();
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288 (eval $ac_link) 2>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -s conftest$ac_exeext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5304 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5305 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_check_lib_save_LIBS=$LIBS
5310 cat >conftest.$ac_ext <<_ACEOF
5311 #line $LINENO "configure"
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5318 /* Override any gcc2 internal prototype to avoid an error. */
5322 /* We use char because int might match the return type of a gcc2
5323 builtin and then its argument prototype would still apply. */
5333 rm -f conftest.$ac_objext conftest$ac_exeext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5335 (eval $ac_link) 2>&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -s conftest$ac_exeext'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 ac_cv_lib_dnet_dnet_ntoa=yes
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 ac_cv_lib_dnet_dnet_ntoa=no
5352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5353 LIBS=$ac_check_lib_save_LIBS
5355 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5356 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5357 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5358 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5361 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5362 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5363 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5364 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 ac_check_lib_save_LIBS=$LIBS
5368 LIBS="-ldnet_stub $LIBS"
5369 cat >conftest.$ac_ext <<_ACEOF
5370 #line $LINENO "configure"
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5377 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5392 rm -f conftest.$ac_objext conftest$ac_exeext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5394 (eval $ac_link) 2>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -s conftest$ac_exeext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 ac_cv_lib_dnet_stub_dnet_ntoa=no
5411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5412 LIBS=$ac_check_lib_save_LIBS
5414 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5415 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5416 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5417 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5423 LIBS="$ac_xsave_LIBS"
5425 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5426 # to get the SysV transport functions.
5427 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5429 # The nsl library prevents programs from opening the X display
5430 # on Irix 5.2, according to T.E. Dickey.
5431 # The functions gethostbyname, getservbyname, and inet_addr are
5432 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5433 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5434 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5435 if test "${ac_cv_func_gethostbyname+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 cat >conftest.$ac_ext <<_ACEOF
5439 #line $LINENO "configure"
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 /* System header to define __stub macros and hopefully few prototypes,
5446 which can conflict with char gethostbyname (); below.
5447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5448 <limits.h> exists even on freestanding compilers. */
5450 # include <limits.h>
5452 # include <assert.h>
5454 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5461 char gethostbyname ();
5462 /* The GNU C library defines this for functions which it implements
5463 to always fail with ENOSYS. Some functions are actually named
5464 something starting with __ and the normal name is an alias. */
5465 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5468 char (*f) () = gethostbyname;
5477 return f != gethostbyname;
5482 rm -f conftest.$ac_objext conftest$ac_exeext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5484 (eval $ac_link) 2>&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -s conftest$ac_exeext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 ac_cv_func_gethostbyname=yes
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5499 ac_cv_func_gethostbyname=no
5501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5503 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5504 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5506 if test $ac_cv_func_gethostbyname = no; then
5507 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5508 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5509 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 ac_check_lib_save_LIBS=$LIBS
5514 cat >conftest.$ac_ext <<_ACEOF
5515 #line $LINENO "configure"
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5522 /* Override any gcc2 internal prototype to avoid an error. */
5526 /* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
5528 char gethostbyname ();
5537 rm -f conftest.$ac_objext conftest$ac_exeext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539 (eval $ac_link) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -s conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_cv_lib_nsl_gethostbyname=yes
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 ac_cv_lib_nsl_gethostbyname=no
5556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5557 LIBS=$ac_check_lib_save_LIBS
5559 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5560 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5561 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5562 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5565 if test $ac_cv_lib_nsl_gethostbyname = no; then
5566 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5567 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5568 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 ac_check_lib_save_LIBS=$LIBS
5573 cat >conftest.$ac_ext <<_ACEOF
5574 #line $LINENO "configure"
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5581 /* Override any gcc2 internal prototype to avoid an error. */
5585 /* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
5587 char gethostbyname ();
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -s conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_lib_bsd_gethostbyname=yes
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 ac_cv_lib_bsd_gethostbyname=no
5615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5618 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5619 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5620 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5621 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5627 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5628 # socket/setsockopt and other routines are undefined under SCO ODT
5629 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5630 # on later versions), says Simon Leinen: it contains gethostby*
5631 # variants that don't use the name server (or something). -lsocket
5632 # must be given before -lnsl if both are needed. We assume that
5633 # if connect needs -lnsl, so does gethostbyname.
5634 echo "$as_me:$LINENO: checking for connect" >&5
5635 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5636 if test "${ac_cv_func_connect+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 cat >conftest.$ac_ext <<_ACEOF
5640 #line $LINENO "configure"
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 /* System header to define __stub macros and hopefully few prototypes,
5647 which can conflict with char connect (); below.
5648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649 <limits.h> exists even on freestanding compilers. */
5651 # include <limits.h>
5653 # include <assert.h>
5655 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5663 /* The GNU C library defines this for functions which it implements
5664 to always fail with ENOSYS. Some functions are actually named
5665 something starting with __ and the normal name is an alias. */
5666 #if defined (__stub_connect) || defined (__stub___connect)
5669 char (*f) () = connect;
5678 return f != connect;
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685 (eval $ac_link) 2>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try='test -s conftest$ac_exeext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 ac_cv_func_connect=yes
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 ac_cv_func_connect=no
5702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5704 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5705 echo "${ECHO_T}$ac_cv_func_connect" >&6
5707 if test $ac_cv_func_connect = no; then
5708 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5709 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5710 if test "${ac_cv_lib_socket_connect+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 ac_check_lib_save_LIBS=$LIBS
5714 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5715 cat >conftest.$ac_ext <<_ACEOF
5716 #line $LINENO "configure"
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5723 /* Override any gcc2 internal prototype to avoid an error. */
5727 /* We use char because int might match the return type of a gcc2
5728 builtin and then its argument prototype would still apply. */
5738 rm -f conftest.$ac_objext conftest$ac_exeext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740 (eval $ac_link) 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -s conftest$ac_exeext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_cv_lib_socket_connect=yes
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ac_cv_lib_socket_connect=no
5757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5758 LIBS=$ac_check_lib_save_LIBS
5760 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5761 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5762 if test $ac_cv_lib_socket_connect = yes; then
5763 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5768 # Guillermo Gomez says -lposix is necessary on A/UX.
5769 echo "$as_me:$LINENO: checking for remove" >&5
5770 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5771 if test "${ac_cv_func_remove+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 #line $LINENO "configure"
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 /* System header to define __stub macros and hopefully few prototypes,
5782 which can conflict with char remove (); below.
5783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5784 <limits.h> exists even on freestanding compilers. */
5786 # include <limits.h>
5788 # include <assert.h>
5790 /* Override any gcc2 internal prototype to avoid an error. */
5795 /* We use char because int might match the return type of a gcc2
5796 builtin and then its argument prototype would still apply. */
5798 /* The GNU C library defines this for functions which it implements
5799 to always fail with ENOSYS. Some functions are actually named
5800 something starting with __ and the normal name is an alias. */
5801 #if defined (__stub_remove) || defined (__stub___remove)
5804 char (*f) () = remove;
5818 rm -f conftest.$ac_objext conftest$ac_exeext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5820 (eval $ac_link) 2>&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -s conftest$ac_exeext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_cv_func_remove=yes
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 ac_cv_func_remove=no
5837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5839 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5840 echo "${ECHO_T}$ac_cv_func_remove" >&6
5842 if test $ac_cv_func_remove = no; then
5843 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5844 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5845 if test "${ac_cv_lib_posix_remove+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 ac_check_lib_save_LIBS=$LIBS
5849 LIBS="-lposix $LIBS"
5850 cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5858 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5873 rm -f conftest.$ac_objext conftest$ac_exeext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875 (eval $ac_link) 2>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try='test -s conftest$ac_exeext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_cv_lib_posix_remove=yes
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 ac_cv_lib_posix_remove=no
5892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5893 LIBS=$ac_check_lib_save_LIBS
5895 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5896 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5897 if test $ac_cv_lib_posix_remove = yes; then
5898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5903 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5904 echo "$as_me:$LINENO: checking for shmat" >&5
5905 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5906 if test "${ac_cv_func_shmat+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 cat >conftest.$ac_ext <<_ACEOF
5910 #line $LINENO "configure"
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 /* System header to define __stub macros and hopefully few prototypes,
5917 which can conflict with char shmat (); below.
5918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5919 <limits.h> exists even on freestanding compilers. */
5921 # include <limits.h>
5923 # include <assert.h>
5925 /* Override any gcc2 internal prototype to avoid an error. */
5930 /* We use char because int might match the return type of a gcc2
5931 builtin and then its argument prototype would still apply. */
5933 /* The GNU C library defines this for functions which it implements
5934 to always fail with ENOSYS. Some functions are actually named
5935 something starting with __ and the normal name is an alias. */
5936 #if defined (__stub_shmat) || defined (__stub___shmat)
5939 char (*f) () = shmat;
5953 rm -f conftest.$ac_objext conftest$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955 (eval $ac_link) 2>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -s conftest$ac_exeext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_cv_func_shmat=yes
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5974 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5975 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5977 if test $ac_cv_func_shmat = no; then
5978 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5979 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5980 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 ac_check_lib_save_LIBS=$LIBS
5985 cat >conftest.$ac_ext <<_ACEOF
5986 #line $LINENO "configure"
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5993 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
6008 rm -f conftest.$ac_objext conftest$ac_exeext
6009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6010 (eval $ac_link) 2>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -s conftest$ac_exeext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 ac_cv_lib_ipc_shmat=yes
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 ac_cv_lib_ipc_shmat=no
6027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6028 LIBS=$ac_check_lib_save_LIBS
6030 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6031 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6032 if test $ac_cv_lib_ipc_shmat = yes; then
6033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6039 # Check for libraries that X11R6 Xt/Xaw programs need.
6040 ac_save_LDFLAGS=$LDFLAGS
6041 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6042 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6043 # check for ICE first), but we must link in the order -lSM -lICE or
6044 # we get undefined symbols. So assume we have SM if we have ICE.
6045 # These have to be linked with before -lX11, unlike the other
6046 # libraries we check for below, so use a different variable.
6047 # John Interrante, Karl Berry
6048 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6049 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6050 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_check_lib_save_LIBS=$LIBS
6054 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6063 /* Override any gcc2 internal prototype to avoid an error. */
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6069 char IceConnectionNumber ();
6073 IceConnectionNumber ();
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080 (eval $ac_link) 2>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -s conftest$ac_exeext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_lib_ICE_IceConnectionNumber=yes
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6095 ac_cv_lib_ICE_IceConnectionNumber=no
6097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6098 LIBS=$ac_check_lib_save_LIBS
6100 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6101 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6102 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6103 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6106 LDFLAGS=$ac_save_LDFLAGS
6111 if test "$have_x" != yes; then
6112 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
6113 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
6114 { (exit 1); exit 1; }; }
6118 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
6119 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
6120 if test "${ac_cv_x_app_defaults+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 if mkdir conftestdir; then
6126 cd conftestdir 2>/dev/null
6127 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6128 cat > Imakefile <<'EOF'
6130 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
6132 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
6133 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
6134 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6139 if test x"$ac_x_app_defaults" = x; then
6141 # Look for the directory under a standard set of common directories.
6142 # Check X11 before X11Rn because it's often a symlink to the current release.
6144 /usr/X11/lib/app-defaults \
6145 /usr/X11R6/lib/app-defaults \
6146 /usr/X11R6/lib/X11/app-defaults \
6147 /usr/X11R5/lib/app-defaults \
6148 /usr/X11R5/lib/X11/app-defaults \
6149 /usr/X11R4/lib/app-defaults \
6150 /usr/X11R4/lib/X11/app-defaults \
6152 /usr/lib/X11/app-defaults \
6153 /usr/lib/X11R6/app-defaults \
6154 /usr/lib/X11R5/app-defaults \
6155 /usr/lib/X11R4/app-defaults \
6157 /usr/local/X11/lib/app-defaults \
6158 /usr/local/X11R6/lib/app-defaults \
6159 /usr/local/X11R5/lib/app-defaults \
6160 /usr/local/X11R4/lib/app-defaults \
6162 /usr/local/lib/X11/app-defaults \
6163 /usr/local/lib/X11R6/app-defaults \
6164 /usr/local/lib/X11R6/X11/app-defaults \
6165 /usr/local/lib/X11R5/app-defaults \
6166 /usr/local/lib/X11R5/X11/app-defaults \
6167 /usr/local/lib/X11R4/app-defaults \
6168 /usr/local/lib/X11R4/X11/app-defaults \
6170 /usr/X386/lib/X11/app-defaults \
6171 /usr/x386/lib/X11/app-defaults \
6172 /usr/XFree86/lib/X11/app-defaults \
6174 /usr/lib/X11/app-defaults \
6175 /usr/local/lib/X11/app-defaults \
6176 /usr/unsupported/lib/X11/app-defaults \
6177 /usr/athena/lib/X11/app-defaults \
6178 /usr/local/x11r5/lib/X11/app-defaults \
6179 /usr/lpp/Xamples/lib/X11/app-defaults \
6180 /lib/usr/lib/X11/app-defaults \
6182 /usr/openwin/lib/app-defaults \
6183 /usr/openwin/lib/X11/app-defaults \
6184 /usr/openwin/share/lib/app-defaults \
6185 /usr/openwin/share/lib/X11/app-defaults \
6187 /X11R6/lib/app-defaults \
6188 /X11R5/lib/app-defaults \
6189 /X11R4/lib/app-defaults \
6192 if test -d "$ac_dir"; then
6193 ac_x_app_defaults=$ac_dir
6199 if test x"$ac_x_app_defaults" = x; then
6200 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6202 # Record where we found app-defaults for the cache.
6203 ac_cv_x_app_defaults="$ac_x_app_defaults"
6206 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
6207 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
6208 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6212 # The following arcana was gleaned from conversations with
6213 # Eric Schwartz <erics@col.hp.com>:
6215 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6216 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6217 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6218 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6219 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6220 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6221 # you don't need any -I or -L arguments.
6223 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6224 # are the same division as 10.x. However, there are no symlinks to
6225 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6226 # arguments are always necessary.
6228 # However, X11R6 was available on HPUX 9.x as a patch: if that
6229 # patch was installed, then all of X11R6 went in to
6230 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6232 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6233 # whether R5 was available as a patch; R6 undoubtedly was not.)
6235 # So. We try and use the highest numbered pair of
6236 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6237 # that are available. We do not mix and match different versions
6240 # Question I still don't know the answer to: (do you?)
6242 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6243 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6244 # that contrib directory? Did it contain so-called "standard"
6245 # X11R6, or did it include Xaw and Xmu as well? If the former,
6246 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6247 # be a situation where one had to reach into the R5 headers and
6248 # libs to find Xmu? That is, must both R6 and R5 directories
6249 # be on the -I and -L lists in that case?
6251 for version in X11R6 X11R5 X11R4 ; do
6252 # if either pair of directories exists...
6253 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6255 # if contrib exists, use it...
6256 if test -d /usr/contrib/$version/include ; then
6257 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6258 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6260 # if the "standard" one exists, use it.
6261 if test -d /usr/include/$version ; then
6262 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6263 X_LIBS="$X_LIBS -L/usr/lib/$version"
6265 # since at least one of the pair exists, go no farther.
6270 # Now find Motif. Thanks for not making xmkmf find this by
6271 # default, you losers.
6273 if test -d /usr/include/Motif2.1 ; then
6274 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6275 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6276 elif test -d /usr/include/Motif1.2 ; then
6277 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6278 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6279 elif test -d /usr/include/Motif1.1 ; then
6280 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6281 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6284 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6286 if test -d /opt/graphics/OpenGL/include ; then
6287 # HP-UX 10.20 puts it here
6288 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6289 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6290 elif test -d /opt/Mesa/lib ; then
6291 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6292 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6296 if test -d /opt/xpm/lib/X11 ; then
6297 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6298 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6301 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6302 # in /usr/local/, unless there is already an xscreensaver in
6303 # /usr/local/bin/. This can be overridden with the --prefix arg
6304 # to configure. I'm not sure this is the right thing to do, but
6305 # Richard Lloyd says so...
6307 if test \! -x /usr/local/bin/xscreensaver ; then
6308 ac_default_prefix=/opt/xscreensaver
6314 # Thanks for not making xmkmf find this by default, pinheads.
6315 # And thanks for moving things around again, too. Is this
6316 # really the standard location now? What happened to the
6317 # joke that this kind of thing went in /opt?
6318 # cthomp says "answer: CDE (Common Disorganized Environment)"
6320 if test -f /usr/dt/include/Xm/Xm.h ; then
6321 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6322 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
6324 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6325 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
6326 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
6327 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 ac_check_lib_save_LIBS=$LIBS
6332 cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6340 /* Override any gcc2 internal prototype to avoid an error. */
6344 /* We use char because int might match the return type of a gcc2
6345 builtin and then its argument prototype would still apply. */
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -s conftest$ac_exeext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_lib_gen_regcmp=yes
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ac_cv_lib_gen_regcmp=no
6374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6375 LIBS=$ac_check_lib_save_LIBS
6377 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
6378 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
6379 if test $ac_cv_lib_gen_regcmp = yes; then
6380 MOTIF_LIBS="$MOTIF_LIBS -lgen"
6388 # On MacOS X (10.x with "fink"), many things are under /sw/.
6390 if test -d /sw/include ; then
6391 X_CFLAGS="-I/sw/include $X_CFLAGS"
6392 X_LIBS="-L/sw/lib $X_LIBS"
6396 echo "$as_me:$LINENO: checking for XPointer" >&5
6397 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
6398 if test "${ac_cv_xpointer+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 ac_save_CPPFLAGS="$CPPFLAGS"
6403 if test \! -z "$includedir" ; then
6404 CPPFLAGS="$CPPFLAGS -I$includedir"
6406 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6407 cat >conftest.$ac_ext <<_ACEOF
6408 #line $LINENO "configure"
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <X11/Xlib.h>
6418 XPointer foo = (XPointer) 0;
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -s conftest.$ac_objext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6442 rm -f conftest.$ac_objext conftest.$ac_ext
6443 CPPFLAGS="$ac_save_CPPFLAGS"
6445 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
6446 echo "${ECHO_T}$ac_cv_xpointer" >&6
6447 if test "$ac_cv_xpointer" != yes; then
6448 cat >>confdefs.h <<\_ACEOF
6449 #define XPointer char*
6454 echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
6455 echo $ECHO_N "checking whether this is MacOS X... $ECHO_C" >&6
6462 echo "$as_me:$LINENO: result: $ac_macosx" >&5
6463 echo "${ECHO_T}$ac_macosx" >&6
6467 ###############################################################################
6471 ###############################################################################
6476 echo "$as_me:$LINENO: checking for intltool >= " >&5
6477 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
6479 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
6480 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
6482 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
6485 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
6486 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6487 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
6489 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
6490 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
6495 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'
6496 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'
6497 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'
6498 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
6499 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'
6500 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'
6501 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'
6502 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'
6503 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'
6504 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'
6505 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'
6519 # Use the tools built into the package, not the ones that are installed.
6521 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
6522 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
6523 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
6529 # Extract the first word of "perl", so it can be a program name with args.
6530 set dummy perl; ac_word=$2
6531 echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6533 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 case $INTLTOOL_PERL in
6538 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6560 if test -n "$INTLTOOL_PERL"; then
6561 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6562 echo "${ECHO_T}$INTLTOOL_PERL" >&6
6564 echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6
6568 if test -z "$INTLTOOL_PERL"; then
6569 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
6570 echo "$as_me: error: perl not found; required for intltool" >&2;}
6571 { (exit 1); exit 1; }; }
6573 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
6574 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
6575 echo "$as_me: error: perl 5.x required for intltool" >&2;}
6576 { (exit 1); exit 1; }; }
6579 # Remove file type tags (using []) from po/POTFILES.
6587 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
6589 ac_config_commands="$ac_config_commands default-1"
6593 GETTEXT_PACKAGE=xscreensaver
6594 cat >>confdefs.h <<_ACEOF
6595 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6598 cat >>confdefs.h <<_ACEOF
6599 #define PACKAGE "$GETTEXT_PACKAGE"
6604 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"
6605 if test -n "$ac_tool_prefix"; then
6606 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6607 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6608 echo "$as_me:$LINENO: checking for $ac_word" >&5
6609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6610 if test "${ac_cv_prog_RANLIB+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 if test -n "$RANLIB"; then
6614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6623 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 RANLIB=$ac_cv_prog_RANLIB
6633 if test -n "$RANLIB"; then
6634 echo "$as_me:$LINENO: result: $RANLIB" >&5
6635 echo "${ECHO_T}$RANLIB" >&6
6637 echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6
6642 if test -z "$ac_cv_prog_RANLIB"; then
6643 ac_ct_RANLIB=$RANLIB
6644 # Extract the first word of "ranlib", so it can be a program name with args.
6645 set dummy ranlib; ac_word=$2
6646 echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6648 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 if test -n "$ac_ct_RANLIB"; then
6652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6661 ac_cv_prog_ac_ct_RANLIB="ranlib"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6671 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6672 if test -n "$ac_ct_RANLIB"; then
6673 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6674 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6676 echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6
6680 RANLIB=$ac_ct_RANLIB
6682 RANLIB="$ac_cv_prog_RANLIB"
6685 echo "$as_me:$LINENO: checking for off_t" >&5
6686 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6687 if test "${ac_cv_type_off_t+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 cat >conftest.$ac_ext <<_ACEOF
6691 #line $LINENO "configure"
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6709 rm -f conftest.$ac_objext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } &&
6715 { ac_try='test -s conftest.$ac_objext'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6721 ac_cv_type_off_t=yes
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6728 rm -f conftest.$ac_objext conftest.$ac_ext
6730 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6731 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6732 if test $ac_cv_type_off_t = yes; then
6736 cat >>confdefs.h <<_ACEOF
6742 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6743 # for constant arguments. Useless!
6744 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6745 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6746 if test "${ac_cv_working_alloca_h+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6760 char *p = (char *) alloca (2 * sizeof (int));
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try='test -s conftest$ac_exeext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_cv_working_alloca_h=yes
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_cv_working_alloca_h=no
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6786 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6787 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6788 if test $ac_cv_working_alloca_h = yes; then
6790 cat >>confdefs.h <<\_ACEOF
6791 #define HAVE_ALLOCA_H 1
6796 echo "$as_me:$LINENO: checking for alloca" >&5
6797 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6798 if test "${ac_cv_func_alloca_works+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 cat >conftest.$ac_ext <<_ACEOF
6802 #line $LINENO "configure"
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6809 # define alloca __builtin_alloca
6812 # include <malloc.h>
6813 # define alloca _alloca
6816 # include <alloca.h>
6821 # ifndef alloca /* predefined by HP cc +Olibcalls */
6832 char *p = (char *) alloca (1);
6837 rm -f conftest.$ac_objext conftest$ac_exeext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6839 (eval $ac_link) 2>&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } &&
6843 { ac_try='test -s conftest$ac_exeext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_cv_func_alloca_works=yes
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_cv_func_alloca_works=no
6856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6858 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6859 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6861 if test $ac_cv_func_alloca_works = yes; then
6863 cat >>confdefs.h <<\_ACEOF
6864 #define HAVE_ALLOCA 1
6868 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6869 # that cause trouble. Some versions do not even contain alloca or
6870 # contain a buggy version. If you still want to use their alloca,
6871 # use ar to extract alloca.o from them instead of compiling alloca.c.
6873 ALLOCA=alloca.$ac_objext
6875 cat >>confdefs.h <<\_ACEOF
6880 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6881 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6882 if test "${ac_cv_os_cray+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 cat >conftest.$ac_ext <<_ACEOF
6886 #line $LINENO "configure"
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 #if defined(CRAY) && ! defined(CRAY2)
6899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6900 $EGREP "webecray" >/dev/null 2>&1; then
6908 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6909 echo "${ECHO_T}$ac_cv_os_cray" >&6
6910 if test $ac_cv_os_cray = yes; then
6911 for ac_func in _getb67 GETB67 getb67; do
6912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6913 echo "$as_me:$LINENO: checking for $ac_func" >&5
6914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6915 if eval "test \"\${$as_ac_var+set}\" = set"; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 cat >conftest.$ac_ext <<_ACEOF
6919 #line $LINENO "configure"
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 /* System header to define __stub macros and hopefully few prototypes,
6926 which can conflict with char $ac_func (); below.
6927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6928 <limits.h> exists even on freestanding compilers. */
6930 # include <limits.h>
6932 # include <assert.h>
6934 /* Override any gcc2 internal prototype to avoid an error. */
6939 /* We use char because int might match the return type of a gcc2
6940 builtin and then its argument prototype would still apply. */
6942 /* The GNU C library defines this for functions which it implements
6943 to always fail with ENOSYS. Some functions are actually named
6944 something starting with __ and the normal name is an alias. */
6945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6948 char (*f) () = $ac_func;
6957 return f != $ac_func;
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964 (eval $ac_link) 2>&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -s conftest$ac_exeext'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6974 eval "$as_ac_var=yes"
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 eval "$as_ac_var=no"
6981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6985 if test `eval echo '${'$as_ac_var'}'` = yes; then
6987 cat >>confdefs.h <<_ACEOF
6988 #define CRAY_STACKSEG_END $ac_func
6997 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6998 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6999 if test "${ac_cv_c_stack_direction+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 if test "$cross_compiling" = yes; then
7003 ac_cv_c_stack_direction=0
7005 cat >conftest.$ac_ext <<_ACEOF
7006 #line $LINENO "configure"
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7013 find_stack_direction ()
7015 static char *addr = 0;
7020 return find_stack_direction ();
7023 return (&dummy > addr) ? 1 : -1;
7029 exit (find_stack_direction () < 0);
7032 rm -f conftest$ac_exeext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7034 (eval $ac_link) 2>&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_c_stack_direction=1
7045 echo "$as_me: program exited with status $ac_status" >&5
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7050 ac_cv_c_stack_direction=-1
7052 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7055 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7056 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7058 cat >>confdefs.h <<_ACEOF
7059 #define STACK_DIRECTION $ac_cv_c_stack_direction
7067 for ac_header in stdlib.h unistd.h
7069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7071 echo "$as_me:$LINENO: checking for $ac_header" >&5
7072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7079 # Is the header compilable?
7080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7083 #line $LINENO "configure"
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 $ac_includes_default
7090 #include <$ac_header>
7092 rm -f conftest.$ac_objext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094 (eval $ac_compile) 2>&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } &&
7098 { ac_try='test -s conftest.$ac_objext'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; }; then
7104 ac_header_compiler=yes
7106 echo "$as_me: failed program was:" >&5
7107 sed 's/^/| /' conftest.$ac_ext >&5
7109 ac_header_compiler=no
7111 rm -f conftest.$ac_objext conftest.$ac_ext
7112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7113 echo "${ECHO_T}$ac_header_compiler" >&6
7115 # Is the header present?
7116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7119 #line $LINENO "configure"
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 #include <$ac_header>
7127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7130 grep -v '^ *+' conftest.er1 >conftest.err
7132 cat conftest.err >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } >/dev/null; then
7135 if test -s conftest.err; then
7136 ac_cpp_err=$ac_c_preproc_warn_flag
7143 if test -z "$ac_cpp_err"; then
7144 ac_header_preproc=yes
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 ac_header_preproc=no
7151 rm -f conftest.err conftest.$ac_ext
7152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7153 echo "${ECHO_T}$ac_header_preproc" >&6
7155 # So? What about this header?
7156 case $ac_header_compiler:$ac_header_preproc in
7158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7164 ## ------------------------------------ ##
7165 ## Report this to bug-autoconf@gnu.org. ##
7166 ## ------------------------------------ ##
7169 sed "s/^/$as_me: WARNING: /" >&2
7172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7180 ## ------------------------------------ ##
7181 ## Report this to bug-autoconf@gnu.org. ##
7182 ## ------------------------------------ ##
7185 sed "s/^/$as_me: WARNING: /" >&2
7188 echo "$as_me:$LINENO: checking for $ac_header" >&5
7189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 eval "$as_ac_Header=$ac_header_preproc"
7195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7200 cat >>confdefs.h <<_ACEOF
7201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7209 for ac_func in getpagesize
7211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7212 echo "$as_me:$LINENO: checking for $ac_func" >&5
7213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7214 if eval "test \"\${$as_ac_var+set}\" = set"; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 cat >conftest.$ac_ext <<_ACEOF
7218 #line $LINENO "configure"
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 /* System header to define __stub macros and hopefully few prototypes,
7225 which can conflict with char $ac_func (); below.
7226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7227 <limits.h> exists even on freestanding compilers. */
7229 # include <limits.h>
7231 # include <assert.h>
7233 /* Override any gcc2 internal prototype to avoid an error. */
7238 /* We use char because int might match the return type of a gcc2
7239 builtin and then its argument prototype would still apply. */
7241 /* The GNU C library defines this for functions which it implements
7242 to always fail with ENOSYS. Some functions are actually named
7243 something starting with __ and the normal name is an alias. */
7244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7247 char (*f) () = $ac_func;
7256 return f != $ac_func;
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -s conftest$ac_exeext'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 eval "$as_ac_var=yes"
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 eval "$as_ac_var=no"
7280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7284 if test `eval echo '${'$as_ac_var'}'` = yes; then
7285 cat >>confdefs.h <<_ACEOF
7286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7292 echo "$as_me:$LINENO: checking for working mmap" >&5
7293 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7294 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 if test "$cross_compiling" = yes; then
7298 ac_cv_func_mmap_fixed_mapped=no
7300 cat >conftest.$ac_ext <<_ACEOF
7301 #line $LINENO "configure"
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 $ac_includes_default
7308 /* malloc might have been renamed as rpl_malloc. */
7311 /* Thanks to Mike Haertel and Jim Avera for this test.
7312 Here is a matrix of mmap possibilities:
7313 mmap private not fixed
7314 mmap private fixed at somewhere currently unmapped
7315 mmap private fixed at somewhere already mapped
7316 mmap shared not fixed
7317 mmap shared fixed at somewhere currently unmapped
7318 mmap shared fixed at somewhere already mapped
7319 For private mappings, we should verify that changes cannot be read()
7320 back from the file, nor mmap's back from the file at a different
7321 address. (There have been systems where private was not correctly
7322 implemented like the infamous i386 svr4.0, and systems where the
7323 VM page cache was not coherent with the file system buffer cache
7324 like early versions of FreeBSD and possibly contemporary NetBSD.)
7325 For shared mappings, we should conversely verify that changes get
7326 propagated back to all the places they're supposed to be.
7328 Grep wants private fixed already mapped.
7329 The main things grep needs to know about mmap are:
7330 * does it exist and is it safe to write into the mmap'd area
7331 * how to use it (BSD variants) */
7334 #include <sys/mman.h>
7336 #if !STDC_HEADERS && !HAVE_STDLIB_H
7340 /* This mess was copied from the GNU getpagesize.h. */
7341 #if !HAVE_GETPAGESIZE
7342 /* Assume that all systems that can run configure have sys/param.h. */
7343 # if !HAVE_SYS_PARAM_H
7344 # define HAVE_SYS_PARAM_H 1
7347 # ifdef _SC_PAGESIZE
7348 # define getpagesize() sysconf(_SC_PAGESIZE)
7349 # else /* no _SC_PAGESIZE */
7350 # if HAVE_SYS_PARAM_H
7351 # include <sys/param.h>
7352 # ifdef EXEC_PAGESIZE
7353 # define getpagesize() EXEC_PAGESIZE
7354 # else /* no EXEC_PAGESIZE */
7356 # define getpagesize() NBPG * CLSIZE
7359 # endif /* no CLSIZE */
7360 # else /* no NBPG */
7362 # define getpagesize() NBPC
7363 # else /* no NBPC */
7365 # define getpagesize() PAGESIZE
7366 # endif /* PAGESIZE */
7367 # endif /* no NBPC */
7368 # endif /* no NBPG */
7369 # endif /* no EXEC_PAGESIZE */
7370 # else /* no HAVE_SYS_PARAM_H */
7371 # define getpagesize() 8192 /* punt totally */
7372 # endif /* no HAVE_SYS_PARAM_H */
7373 # endif /* no _SC_PAGESIZE */
7375 #endif /* no HAVE_GETPAGESIZE */
7380 char *data, *data2, *data3;
7384 pagesize = getpagesize ();
7386 /* First, make a file with some known garbage in it. */
7387 data = (char *) malloc (pagesize);
7390 for (i = 0; i < pagesize; ++i)
7391 *(data + i) = rand ();
7393 fd = creat ("conftest.mmap", 0600);
7396 if (write (fd, data, pagesize) != pagesize)
7400 /* Next, try to mmap the file at a fixed address which already has
7401 something else allocated at it. If we can, also make sure that
7402 we see the same garbage. */
7403 fd = open ("conftest.mmap", O_RDWR);
7406 data2 = (char *) malloc (2 * pagesize);
7409 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7410 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7411 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7413 for (i = 0; i < pagesize; ++i)
7414 if (*(data + i) != *(data2 + i))
7417 /* Finally, make sure that changes to the mapped area do not
7418 percolate back to the file as seen by read(). (This is a bug on
7419 some variants of i386 svr4.0.) */
7420 for (i = 0; i < pagesize; ++i)
7421 *(data2 + i) = *(data2 + i) + 1;
7422 data3 = (char *) malloc (pagesize);
7425 if (read (fd, data3, pagesize) != pagesize)
7427 for (i = 0; i < pagesize; ++i)
7428 if (*(data + i) != *(data3 + i))
7434 rm -f conftest$ac_exeext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7436 (eval $ac_link) 2>&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 ac_cv_func_mmap_fixed_mapped=yes
7447 echo "$as_me: program exited with status $ac_status" >&5
7448 echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7452 ac_cv_func_mmap_fixed_mapped=no
7454 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7457 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7458 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7459 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7461 cat >>confdefs.h <<\_ACEOF
7477 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7478 unistd.h sys/param.h
7480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7482 echo "$as_me:$LINENO: checking for $ac_header" >&5
7483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7490 # Is the header compilable?
7491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7493 cat >conftest.$ac_ext <<_ACEOF
7494 #line $LINENO "configure"
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 $ac_includes_default
7501 #include <$ac_header>
7503 rm -f conftest.$ac_objext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -s conftest.$ac_objext'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 ac_header_compiler=yes
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ac_header_compiler=no
7522 rm -f conftest.$ac_objext conftest.$ac_ext
7523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7524 echo "${ECHO_T}$ac_header_compiler" >&6
7526 # Is the header present?
7527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7529 cat >conftest.$ac_ext <<_ACEOF
7530 #line $LINENO "configure"
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 #include <$ac_header>
7538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7541 grep -v '^ *+' conftest.er1 >conftest.err
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } >/dev/null; then
7546 if test -s conftest.err; then
7547 ac_cpp_err=$ac_c_preproc_warn_flag
7554 if test -z "$ac_cpp_err"; then
7555 ac_header_preproc=yes
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 ac_header_preproc=no
7562 rm -f conftest.err conftest.$ac_ext
7563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7564 echo "${ECHO_T}$ac_header_preproc" >&6
7566 # So? What about this header?
7567 case $ac_header_compiler:$ac_header_preproc in
7569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7575 ## ------------------------------------ ##
7576 ## Report this to bug-autoconf@gnu.org. ##
7577 ## ------------------------------------ ##
7580 sed "s/^/$as_me: WARNING: /" >&2
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7591 ## ------------------------------------ ##
7592 ## Report this to bug-autoconf@gnu.org. ##
7593 ## ------------------------------------ ##
7596 sed "s/^/$as_me: WARNING: /" >&2
7599 echo "$as_me:$LINENO: checking for $ac_header" >&5
7600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 eval "$as_ac_Header=$ac_header_preproc"
7606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7611 cat >>confdefs.h <<_ACEOF
7612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7630 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7631 strdup __argz_count __argz_stringify __argz_next
7633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7634 echo "$as_me:$LINENO: checking for $ac_func" >&5
7635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7636 if eval "test \"\${$as_ac_var+set}\" = set"; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 cat >conftest.$ac_ext <<_ACEOF
7640 #line $LINENO "configure"
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 /* System header to define __stub macros and hopefully few prototypes,
7647 which can conflict with char $ac_func (); below.
7648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7649 <limits.h> exists even on freestanding compilers. */
7651 # include <limits.h>
7653 # include <assert.h>
7655 /* Override any gcc2 internal prototype to avoid an error. */
7660 /* We use char because int might match the return type of a gcc2
7661 builtin and then its argument prototype would still apply. */
7663 /* The GNU C library defines this for functions which it implements
7664 to always fail with ENOSYS. Some functions are actually named
7665 something starting with __ and the normal name is an alias. */
7666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7669 char (*f) () = $ac_func;
7678 return f != $ac_func;
7683 rm -f conftest.$ac_objext conftest$ac_exeext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7685 (eval $ac_link) 2>&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -s conftest$ac_exeext'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 eval "$as_ac_var=yes"
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 eval "$as_ac_var=no"
7702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7706 if test `eval echo '${'$as_ac_var'}'` = yes; then
7707 cat >>confdefs.h <<_ACEOF
7708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7715 if test $ac_cv_header_locale_h = yes; then
7716 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7717 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7718 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 cat >conftest.$ac_ext <<_ACEOF
7722 #line $LINENO "configure"
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7737 rm -f conftest.$ac_objext conftest$ac_exeext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739 (eval $ac_link) 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 am_cv_val_LC_MESSAGES=yes
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 am_cv_val_LC_MESSAGES=no
7756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7759 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7760 if test $am_cv_val_LC_MESSAGES = yes; then
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_LC_MESSAGES 1
7771 nls_cv_force_use_gnu_gettext="no"
7773 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7774 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7776 nls_cv_header_libgt=
7779 if test "${ac_cv_header_libintl_h+set}" = set; then
7780 echo "$as_me:$LINENO: checking for libintl.h" >&5
7781 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7782 if test "${ac_cv_header_libintl_h+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7786 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7788 # Is the header compilable?
7789 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7790 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7791 cat >conftest.$ac_ext <<_ACEOF
7792 #line $LINENO "configure"
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7799 #include <libintl.h>
7801 rm -f conftest.$ac_objext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7803 (eval $ac_compile) 2>&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } &&
7807 { ac_try='test -s conftest.$ac_objext'
7808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); }; }; then
7813 ac_header_compiler=yes
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 ac_header_compiler=no
7820 rm -f conftest.$ac_objext conftest.$ac_ext
7821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7822 echo "${ECHO_T}$ac_header_compiler" >&6
7824 # Is the header present?
7825 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7826 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7827 cat >conftest.$ac_ext <<_ACEOF
7828 #line $LINENO "configure"
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 #include <libintl.h>
7836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7839 grep -v '^ *+' conftest.er1 >conftest.err
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } >/dev/null; then
7844 if test -s conftest.err; then
7845 ac_cpp_err=$ac_c_preproc_warn_flag
7852 if test -z "$ac_cpp_err"; then
7853 ac_header_preproc=yes
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7858 ac_header_preproc=no
7860 rm -f conftest.err conftest.$ac_ext
7861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7862 echo "${ECHO_T}$ac_header_preproc" >&6
7864 # So? What about this header?
7865 case $ac_header_compiler:$ac_header_preproc in
7867 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7868 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7869 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7870 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7873 ## ------------------------------------ ##
7874 ## Report this to bug-autoconf@gnu.org. ##
7875 ## ------------------------------------ ##
7878 sed "s/^/$as_me: WARNING: /" >&2
7881 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7882 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7883 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7884 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7885 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7886 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7889 ## ------------------------------------ ##
7890 ## Report this to bug-autoconf@gnu.org. ##
7891 ## ------------------------------------ ##
7894 sed "s/^/$as_me: WARNING: /" >&2
7897 echo "$as_me:$LINENO: checking for libintl.h" >&5
7898 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7899 if test "${ac_cv_header_libintl_h+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 ac_cv_header_libintl_h=$ac_header_preproc
7904 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7905 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7908 if test $ac_cv_header_libintl_h = yes; then
7909 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7910 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
7911 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 #include <libintl.h>
7925 return (int) dgettext ("","")
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7932 (eval $ac_link) 2>&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -s conftest$ac_exeext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 gt_cv_func_dgettext_libc=yes
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7947 gt_cv_func_dgettext_libc=no
7949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7951 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7952 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
7954 if test "$gt_cv_func_dgettext_libc" != "yes"; then
7955 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7956 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7957 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 ac_check_lib_save_LIBS=$LIBS
7962 cat >conftest.$ac_ext <<_ACEOF
7963 #line $LINENO "configure"
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7970 /* Override any gcc2 internal prototype to avoid an error. */
7974 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7976 char bindtextdomain ();
7985 rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7987 (eval $ac_link) 2>&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -s conftest$ac_exeext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_lib_intl_bindtextdomain=yes
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_cv_lib_intl_bindtextdomain=no
8004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8005 LIBS=$ac_check_lib_save_LIBS
8007 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8008 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8009 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8010 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
8011 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
8012 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
8016 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
8017 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 ac_check_lib_save_LIBS=$LIBS
8022 cat >conftest.$ac_ext <<_ACEOF
8023 #line $LINENO "configure"
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8030 /* Override any gcc2 internal prototype to avoid an error. */
8034 /* We use char because int might match the return type of a gcc2
8035 builtin and then its argument prototype would still apply. */
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047 (eval $ac_link) 2>&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -s conftest$ac_exeext'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 ac_cv_lib_intl_dgettext=yes
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 ac_cv_lib_intl_dgettext=no
8064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8065 LIBS=$ac_check_lib_save_LIBS
8067 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
8068 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
8069 if test $ac_cv_lib_intl_dgettext = yes; then
8070 gt_cv_func_dgettext_libintl=yes
8072 gt_cv_func_dgettext_libintl=no
8076 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
8077 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
8082 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8083 LIBS="$LIBS -lintl";
8086 if test "$gt_cv_func_dgettext_libc" = "yes" \
8087 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8089 cat >>confdefs.h <<\_ACEOF
8090 #define HAVE_GETTEXT 1
8093 # Extract the first word of "msgfmt", so it can be a program name with args.
8094 set dummy msgfmt; ac_word=$2
8095 echo "$as_me:$LINENO: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8097 if test "${ac_cv_path_MSGFMT+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8106 for ac_dir in $PATH; do
8107 test -z "$ac_dir" && ac_dir=.
8108 if test -f $ac_dir/$ac_word; then
8109 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8110 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8116 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8120 MSGFMT="$ac_cv_path_MSGFMT"
8121 if test -n "$MSGFMT"; then
8122 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8123 echo "${ECHO_T}$MSGFMT" >&6
8125 echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8128 if test "$MSGFMT" != "no"; then
8130 for ac_func in dcgettext
8132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8133 echo "$as_me:$LINENO: checking for $ac_func" >&5
8134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8135 if eval "test \"\${$as_ac_var+set}\" = set"; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8139 #line $LINENO "configure"
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 /* System header to define __stub macros and hopefully few prototypes,
8146 which can conflict with char $ac_func (); below.
8147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8148 <limits.h> exists even on freestanding compilers. */
8150 # include <limits.h>
8152 # include <assert.h>
8154 /* Override any gcc2 internal prototype to avoid an error. */
8159 /* We use char because int might match the return type of a gcc2
8160 builtin and then its argument prototype would still apply. */
8162 /* The GNU C library defines this for functions which it implements
8163 to always fail with ENOSYS. Some functions are actually named
8164 something starting with __ and the normal name is an alias. */
8165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8168 char (*f) () = $ac_func;
8177 return f != $ac_func;
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184 (eval $ac_link) 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 eval "$as_ac_var=yes"
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 eval "$as_ac_var=no"
8201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8205 if test `eval echo '${'$as_ac_var'}'` = yes; then
8206 cat >>confdefs.h <<_ACEOF
8207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8213 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8214 set dummy gmsgfmt; ac_word=$2
8215 echo "$as_me:$LINENO: checking for $ac_word" >&5
8216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8217 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8243 GMSGFMT=$ac_cv_path_GMSGFMT
8245 if test -n "$GMSGFMT"; then
8246 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8247 echo "${ECHO_T}$GMSGFMT" >&6
8249 echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6
8253 # Extract the first word of "xgettext", so it can be a program name with args.
8254 set dummy xgettext; ac_word=$2
8255 echo "$as_me:$LINENO: checking for $ac_word" >&5
8256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8257 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8266 for ac_dir in $PATH; do
8267 test -z "$ac_dir" && ac_dir=.
8268 if test -f $ac_dir/$ac_word; then
8269 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8270 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8276 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8280 XGETTEXT="$ac_cv_path_XGETTEXT"
8281 if test -n "$XGETTEXT"; then
8282 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8283 echo "${ECHO_T}$XGETTEXT" >&6
8285 echo "$as_me:$LINENO: result: no" >&5
8286 echo "${ECHO_T}no" >&6
8289 cat >conftest.$ac_ext <<_ACEOF
8290 #line $LINENO "configure"
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8300 extern int _nl_msg_cat_cntr;
8301 return _nl_msg_cat_cntr
8306 rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8308 (eval $ac_link) 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8332 # Added by Martin Baulig 12/15/98 for libc5 systems
8333 if test "$gt_cv_func_dgettext_libc" != "yes" \
8334 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
8336 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8343 if test "$CATOBJEXT" = "NONE"; then
8344 nls_cv_use_gnu_gettext=yes
8348 if test "$nls_cv_use_gnu_gettext" != "yes"; then
8350 cat >>confdefs.h <<\_ACEOF
8351 #define ENABLE_NLS 1
8358 if test "$XGETTEXT" != ":"; then
8359 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8362 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8363 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8368 # We need to process the po/ directory.
8371 ac_config_commands="$ac_config_commands default-2"
8374 for lang in $ALL_LINGUAS; do
8375 GMOFILES="$GMOFILES $lang.gmo"
8376 POFILES="$POFILES $lang.po"
8391 if test "x$CATOBJEXT" != "x"; then
8392 if test "x$ALL_LINGUAS" = "x"; then
8395 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8396 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8398 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8399 case "$ALL_LINGUAS" in
8400 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8403 LINGUAS=$NEW_LINGUAS
8404 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8405 echo "${ECHO_T}$LINGUAS" >&6
8408 if test -n "$LINGUAS"; then
8409 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8413 test -d po || mkdir po
8414 if test "$CATOBJEXT" = ".cat"; then
8415 if test "${ac_cv_header_linux_version_h+set}" = set; then
8416 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8417 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8418 if test "${ac_cv_header_linux_version_h+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8422 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8424 # Is the header compilable?
8425 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8426 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8427 cat >conftest.$ac_ext <<_ACEOF
8428 #line $LINENO "configure"
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8435 #include <linux/version.h>
8437 rm -f conftest.$ac_objext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -s conftest.$ac_objext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_header_compiler=yes
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_header_compiler=no
8456 rm -f conftest.$ac_objext conftest.$ac_ext
8457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458 echo "${ECHO_T}$ac_header_compiler" >&6
8460 # Is the header present?
8461 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8462 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 #include <linux/version.h>
8472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8475 grep -v '^ *+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } >/dev/null; then
8480 if test -s conftest.err; then
8481 ac_cpp_err=$ac_c_preproc_warn_flag
8488 if test -z "$ac_cpp_err"; then
8489 ac_header_preproc=yes
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 ac_header_preproc=no
8496 rm -f conftest.err conftest.$ac_ext
8497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8498 echo "${ECHO_T}$ac_header_preproc" >&6
8500 # So? What about this header?
8501 case $ac_header_compiler:$ac_header_preproc in
8503 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8504 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8506 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8509 ## ------------------------------------ ##
8510 ## Report this to bug-autoconf@gnu.org. ##
8511 ## ------------------------------------ ##
8514 sed "s/^/$as_me: WARNING: /" >&2
8517 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8518 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8519 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8520 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8522 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8525 ## ------------------------------------ ##
8526 ## Report this to bug-autoconf@gnu.org. ##
8527 ## ------------------------------------ ##
8530 sed "s/^/$as_me: WARNING: /" >&2
8533 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8534 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8535 if test "${ac_cv_header_linux_version_h+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 ac_cv_header_linux_version_h=$ac_header_preproc
8540 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8541 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8544 if test $ac_cv_header_linux_version_h = yes; then
8552 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
8557 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
8559 # if test -n "$ac_aux_dir"; then
8560 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8562 if test -z "$MKINSTALLDIRS"; then
8563 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8566 # jwz: you know what, screw it. Let's just use the version that I
8567 # already computed in configure.in, instead of this version that came
8568 # with the i18n crud, ok?
8569 MKINSTALLDIRS="$INSTALL_DIRS"
8574 test -d po || mkdir po
8575 if test "x$srcdir" != "x."; then
8576 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8577 posrcprefix="$srcdir/"
8579 posrcprefix="../$srcdir/"
8585 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8586 < $srcdir/po/POTFILES.in > po/POTFILES
8590 ###############################################################################
8592 # Check for -lXmu (some fucked up vendors don't ship it...)
8594 ###############################################################################
8598 ac_save_CPPFLAGS="$CPPFLAGS"
8599 if test \! -z "$includedir" ; then
8600 CPPFLAGS="$CPPFLAGS -I$includedir"
8602 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8603 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
8604 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
8605 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 cat >conftest.$ac_ext <<_ACEOF
8609 #line $LINENO "configure"
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8617 #include <X11/Intrinsic.h>
8619 #include <X11/Xmu/Error.h>
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623 (eval $ac_compile) 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -s conftest.$ac_objext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_header_X11_Xmu_Error_h=yes
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 ac_cv_header_X11_Xmu_Error_h=no
8640 rm -f conftest.$ac_objext conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
8643 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
8644 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
8649 CPPFLAGS="$ac_save_CPPFLAGS"
8650 if test "$have_xmu" = no ; then
8651 XMU_SRCS='$(UTILS_SRC)/xmu.c'
8652 XMU_OBJS='$(UTILS_BIN)/xmu.o'
8658 cat >>confdefs.h <<\_ACEOF
8665 ###############################################################################
8667 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
8668 # See comp.windows.x FAQ question 124. The right fix is to
8669 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
8671 ###############################################################################
8673 if test "$have_xmu" = yes ; then
8676 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
8677 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
8678 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 ac_save_LDFLAGS="$LDFLAGS"
8682 if test \! -z "$x_libraries" ; then
8683 LDFLAGS="$LDFLAGS -L$x_libraries"
8685 # Note: this trick never works! (Generally.)
8686 # We're only getting away with using AC_TRY_LINK
8687 # with X libraries because we know it's SunOS.
8688 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
8689 cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8705 rm -f conftest.$ac_objext conftest$ac_exeext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707 (eval $ac_link) 2>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_sunos_xmu_bug=no
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_cv_sunos_xmu_bug=yes
8724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8725 LDFLAGS="$ac_save_LDFLAGS"
8727 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
8728 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
8729 if test "$ac_cv_sunos_xmu_bug" = yes ; then
8730 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
8731 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
8732 if test "${ac_cv_ld_static+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 ac_save_LDFLAGS="$LDFLAGS"
8736 LDFLAGS="$LDFLAGS -static"
8737 cat >conftest.$ac_ext <<_ACEOF
8738 #line $LINENO "configure"
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8755 (eval $ac_link) 2>&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -s conftest$ac_exeext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8773 LDFLAGS="$ac_save_LDFLAGS"
8775 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
8776 echo "${ECHO_T}$ac_cv_ld_static" >&6
8777 if test "$ac_cv_ld_static" = yes ; then
8778 LDFLAGS="$LDFLAGS -static"
8780 LDFLAGS="$LDFLAGS -Bstatic"
8788 ###############################################################################
8790 # Handle the --with-hackdir option
8792 ###############################################################################
8795 with_hackdir_req=unspecified
8797 # Check whether --with-hackdir or --without-hackdir was given.
8798 if test "${with_hackdir+set}" = set; then
8799 withval="$with_hackdir"
8800 with_hackdir="$withval"; with_hackdir_req="$withval"
8805 if test x"$with_hackdir" = xyes; then
8806 HACKDIR='${exec_prefix}/lib/xscreensaver'
8807 elif test x"$with_hackdir" = xno; then
8810 # there must be a better way than this...
8811 if test -z "`echo $with_hackdir | sed 's@^/.*@@'`" ; then
8813 HACKDIR=$with_hackdir
8816 HACKDIR="\${exec_prefix}$with_hackdir"
8820 # canonicalize slashes.
8821 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
8823 # This option used to be called --enable-subdir; make sure that is no longer
8824 # used, since configure brain-damagedly ignores unknown --enable options.
8827 # Check whether --enable-subdir or --disable-subdir was given.
8828 if test "${enable_subdir+set}" = set; then
8829 enableval="$enable_subdir"
8832 if test -n "$obsolete_enable"; then
8833 echo "error: the --enable-subdir option has been replaced with"
8834 echo " the new --with-hackdir option; see \`configure --help'"
8835 echo " for more information."
8840 ###############################################################################
8842 # Handle the --with-configdir option
8844 ###############################################################################
8847 with_configdir_req=unspecified
8849 # Check whether --with-configdir or --without-configdir was given.
8850 if test "${with_configdir+set}" = set; then
8851 withval="$with_configdir"
8852 with_configdir="$withval"; with_configdir_req="$withval"
8857 if test x"$with_configdir" = xyes; then
8858 # filled in later...
8860 elif test x"$with_configdir" = xno; then
8861 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
8864 # there must be a better way than this...
8865 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
8867 HACK_CONF_DIR=$with_configdir
8870 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
8877 ###############################################################################
8879 # Check for the SGI SCREEN_SAVER server extension.
8881 ###############################################################################
8884 with_sgi_req=unspecified
8886 # Check whether --with-sgi-ext or --without-sgi-ext was given.
8887 if test "${with_sgi_ext+set}" = set; then
8888 withval="$with_sgi_ext"
8889 with_sgi="$withval"; with_sgi_req="$withval"
8900 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
8901 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
8904 X_CFLAGS="-I$d $X_CFLAGS"
8905 echo "$as_me:$LINENO: result: $d" >&5
8906 echo "${ECHO_T}$d" >&6
8908 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8909 echo "${ECHO_T}not found ($d: no such directory)" >&6
8912 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
8913 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
8916 X_LIBS="-L$d $X_LIBS"
8917 echo "$as_me:$LINENO: result: $d" >&5
8918 echo "${ECHO_T}$d" >&6
8920 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8921 echo "${ECHO_T}not found ($d: no such directory)" >&6
8924 # replace the directory string with "yes".
8926 with_sgi=$with_sgi_req
8931 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
8932 echo " If it is a directory, then \`DIR/include' will be added to"
8933 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8939 if test "$with_sgi" = yes; then
8941 ac_save_CPPFLAGS="$CPPFLAGS"
8942 if test \! -z "$includedir" ; then
8943 CPPFLAGS="$CPPFLAGS -I$includedir"
8945 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8946 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
8947 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
8948 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8952 #line $LINENO "configure"
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958 #include <X11/Xlib.h>
8960 #include <X11/extensions/XScreenSaver.h>
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964 (eval $ac_compile) 2>&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -s conftest.$ac_objext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_header_X11_extensions_XScreenSaver_h=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_cv_header_X11_extensions_XScreenSaver_h=no
8981 rm -f conftest.$ac_objext conftest.$ac_ext
8983 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
8984 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
8985 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
8987 cat >>confdefs.h <<\_ACEOF
8988 #define HAVE_SGI_SAVER_EXTENSION 1
8994 CPPFLAGS="$ac_save_CPPFLAGS"
8996 elif test "$with_sgi" != no; then
8997 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
9002 ###############################################################################
9004 # Check for the MIT-SCREEN-SAVER server extension.
9006 ###############################################################################
9009 with_mit_req=unspecified
9011 # Check whether --with-mit-ext or --without-mit-ext was given.
9012 if test "${with_mit_ext+set}" = set; then
9013 withval="$with_mit_ext"
9014 with_mit="$withval"; with_mit_req="$withval"
9025 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER headers" >&5
9026 echo $ECHO_N "checking for MIT-SCREEN-SAVER headers... $ECHO_C" >&6
9029 X_CFLAGS="-I$d $X_CFLAGS"
9030 echo "$as_me:$LINENO: result: $d" >&5
9031 echo "${ECHO_T}$d" >&6
9033 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9034 echo "${ECHO_T}not found ($d: no such directory)" >&6
9037 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER libs" >&5
9038 echo $ECHO_N "checking for MIT-SCREEN-SAVER libs... $ECHO_C" >&6
9041 X_LIBS="-L$d $X_LIBS"
9042 echo "$as_me:$LINENO: result: $d" >&5
9043 echo "${ECHO_T}$d" >&6
9045 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9046 echo "${ECHO_T}not found ($d: no such directory)" >&6
9049 # replace the directory string with "yes".
9051 with_mit=$with_mit_req
9056 echo "error: argument to --with-mit-ext must be \"yes\", \"no\", or a directory."
9057 echo " If it is a directory, then \`DIR/include' will be added to"
9058 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9064 if test "$with_mit" = yes; then
9066 ac_save_CPPFLAGS="$CPPFLAGS"
9067 if test \! -z "$includedir" ; then
9068 CPPFLAGS="$CPPFLAGS -I$includedir"
9070 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9071 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5
9072 echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6
9073 if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 cat >conftest.$ac_ext <<_ACEOF
9077 #line $LINENO "configure"
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 #include <X11/Xlib.h>
9085 #include <X11/extensions/scrnsaver.h>
9087 rm -f conftest.$ac_objext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9089 (eval $ac_compile) 2>&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -s conftest.$ac_objext'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9099 ac_cv_header_X11_extensions_scrnsaver_h=yes
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 ac_cv_header_X11_extensions_scrnsaver_h=no
9106 rm -f conftest.$ac_objext conftest.$ac_ext
9108 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5
9109 echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6
9110 if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then
9115 CPPFLAGS="$ac_save_CPPFLAGS"
9117 # Now check to see if it's really in the library; XF86Free-3.3 ships
9118 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
9120 if test "$have_mit" = yes; then
9122 ac_save_CPPFLAGS="$CPPFLAGS"
9123 ac_save_LDFLAGS="$LDFLAGS"
9124 # ac_save_LIBS="$LIBS"
9126 if test \! -z "$includedir" ; then
9127 CPPFLAGS="$CPPFLAGS -I$includedir"
9129 # note: $X_CFLAGS includes $x_includes
9130 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9132 if test \! -z "$libdir" ; then
9133 LDFLAGS="$LDFLAGS -L$libdir"
9135 # note: $X_LIBS includes $x_libraries
9136 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9138 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXext" >&5
9139 echo $ECHO_N "checking for XScreenSaverRegister in -lXext... $ECHO_C" >&6
9140 if test "${ac_cv_lib_Xext_XScreenSaverRegister+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 ac_check_lib_save_LIBS=$LIBS
9144 LIBS="-lXext -lm $LIBS"
9145 cat >conftest.$ac_ext <<_ACEOF
9146 #line $LINENO "configure"
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9153 /* Override any gcc2 internal prototype to avoid an error. */
9157 /* We use char because int might match the return type of a gcc2
9158 builtin and then its argument prototype would still apply. */
9159 char XScreenSaverRegister ();
9163 XScreenSaverRegister ();
9168 rm -f conftest.$ac_objext conftest$ac_exeext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170 (eval $ac_link) 2>&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } &&
9174 { ac_try='test -s conftest$ac_exeext'
9175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
9180 ac_cv_lib_Xext_XScreenSaverRegister=yes
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9185 ac_cv_lib_Xext_XScreenSaverRegister=no
9187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9188 LIBS=$ac_check_lib_save_LIBS
9190 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverRegister" >&5
9191 echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverRegister" >&6
9192 if test $ac_cv_lib_Xext_XScreenSaverRegister = yes; then
9198 CPPFLAGS="$ac_save_CPPFLAGS"
9199 LDFLAGS="$ac_save_LDFLAGS"
9200 # LIBS="$ac_save_LIBS"
9203 if test "$have_mit" = no; then
9204 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
9205 # of in Xext. Thank you master, may I have another.
9207 ac_save_CPPFLAGS="$CPPFLAGS"
9208 ac_save_LDFLAGS="$LDFLAGS"
9209 # ac_save_LIBS="$LIBS"
9211 if test \! -z "$includedir" ; then
9212 CPPFLAGS="$CPPFLAGS -I$includedir"
9214 # note: $X_CFLAGS includes $x_includes
9215 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9217 if test \! -z "$libdir" ; then
9218 LDFLAGS="$LDFLAGS -L$libdir"
9220 # note: $X_LIBS includes $x_libraries
9221 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9223 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXExExt" >&5
9224 echo $ECHO_N "checking for XScreenSaverRegister in -lXExExt... $ECHO_C" >&6
9225 if test "${ac_cv_lib_XExExt_XScreenSaverRegister+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 ac_check_lib_save_LIBS=$LIBS
9229 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
9230 cat >conftest.$ac_ext <<_ACEOF
9231 #line $LINENO "configure"
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9238 /* Override any gcc2 internal prototype to avoid an error. */
9242 /* We use char because int might match the return type of a gcc2
9243 builtin and then its argument prototype would still apply. */
9244 char XScreenSaverRegister ();
9248 XScreenSaverRegister ();
9253 rm -f conftest.$ac_objext conftest$ac_exeext
9254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255 (eval $ac_link) 2>&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -s conftest$ac_exeext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_cv_lib_XExExt_XScreenSaverRegister=yes
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 ac_cv_lib_XExExt_XScreenSaverRegister=no
9272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9273 LIBS=$ac_check_lib_save_LIBS
9275 echo "$as_me:$LINENO: result: $ac_cv_lib_XExExt_XScreenSaverRegister" >&5
9276 echo "${ECHO_T}$ac_cv_lib_XExExt_XScreenSaverRegister" >&6
9277 if test $ac_cv_lib_XExExt_XScreenSaverRegister = yes; then
9278 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
9283 CPPFLAGS="$ac_save_CPPFLAGS"
9284 LDFLAGS="$ac_save_LDFLAGS"
9285 # LIBS="$ac_save_LIBS"
9289 if test "$have_mit" = no; then
9290 # Double fuck! Looks like some versions of XFree86 (whichever version
9291 # it is that comes with RedHat Linux 2.0 -- I can't find a version
9292 # number) put this garbage in Xss instead of Xext. Thank you master,
9293 # may I have another.
9295 ac_save_CPPFLAGS="$CPPFLAGS"
9296 ac_save_LDFLAGS="$LDFLAGS"
9297 # ac_save_LIBS="$LIBS"
9299 if test \! -z "$includedir" ; then
9300 CPPFLAGS="$CPPFLAGS -I$includedir"
9302 # note: $X_CFLAGS includes $x_includes
9303 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9305 if test \! -z "$libdir" ; then
9306 LDFLAGS="$LDFLAGS -L$libdir"
9308 # note: $X_LIBS includes $x_libraries
9309 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9311 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXss" >&5
9312 echo $ECHO_N "checking for XScreenSaverRegister in -lXss... $ECHO_C" >&6
9313 if test "${ac_cv_lib_Xss_XScreenSaverRegister+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-lXss -lX11 -lXext -lm $LIBS"
9318 cat >conftest.$ac_ext <<_ACEOF
9319 #line $LINENO "configure"
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9326 /* Override any gcc2 internal prototype to avoid an error. */
9330 /* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9332 char XScreenSaverRegister ();
9336 XScreenSaverRegister ();
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343 (eval $ac_link) 2>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -s conftest$ac_exeext'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 ac_cv_lib_Xss_XScreenSaverRegister=yes
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9358 ac_cv_lib_Xss_XScreenSaverRegister=no
9360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9361 LIBS=$ac_check_lib_save_LIBS
9363 echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverRegister" >&5
9364 echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverRegister" >&6
9365 if test $ac_cv_lib_Xss_XScreenSaverRegister = yes; then
9366 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
9371 CPPFLAGS="$ac_save_CPPFLAGS"
9372 LDFLAGS="$ac_save_LDFLAGS"
9373 # LIBS="$ac_save_LIBS"
9377 if test "$have_mit" = yes; then
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_MIT_SAVER_EXTENSION 1
9386 elif test "$with_mit" != no; then
9387 echo "error: must be yes or no: --with-mit-ext=$with_mit"
9392 ###############################################################################
9394 # Check for the XIDLE server extension.
9396 ###############################################################################
9399 with_xidle_req=unspecified
9401 # Check whether --with-xidle-ext or --without-xidle-ext was given.
9402 if test "${with_xidle_ext+set}" = set; then
9403 withval="$with_xidle_ext"
9404 with_xidle="$withval"; with_xidle_req="$withval"
9410 case "$with_xidle" in
9415 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
9416 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
9417 d=$with_xidle/include
9419 X_CFLAGS="-I$d $X_CFLAGS"
9420 echo "$as_me:$LINENO: result: $d" >&5
9421 echo "${ECHO_T}$d" >&6
9423 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9424 echo "${ECHO_T}not found ($d: no such directory)" >&6
9427 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
9428 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
9431 X_LIBS="-L$d $X_LIBS"
9432 echo "$as_me:$LINENO: result: $d" >&5
9433 echo "${ECHO_T}$d" >&6
9435 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9436 echo "${ECHO_T}not found ($d: no such directory)" >&6
9439 # replace the directory string with "yes".
9440 with_xidle_req="yes"
9441 with_xidle=$with_xidle_req
9446 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
9447 echo " If it is a directory, then \`DIR/include' will be added to"
9448 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9454 if test "$with_xidle" = yes; then
9456 ac_save_CPPFLAGS="$CPPFLAGS"
9457 if test \! -z "$includedir" ; then
9458 CPPFLAGS="$CPPFLAGS -I$includedir"
9460 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9461 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
9462 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
9463 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 #include <X11/Xlib.h>
9475 #include <X11/extensions/xidle.h>
9477 rm -f conftest.$ac_objext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9479 (eval $ac_compile) 2>&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -s conftest.$ac_objext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_header_X11_extensions_xidle_h=yes
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ac_cv_header_X11_extensions_xidle_h=no
9496 rm -f conftest.$ac_objext conftest.$ac_ext
9498 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
9499 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
9500 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_XIDLE_EXTENSION 1
9509 CPPFLAGS="$ac_save_CPPFLAGS"
9510 elif test "$with_xidle" != no; then
9511 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
9516 ###############################################################################
9518 # Check for the SGI-VIDEO-CONTROL server extension.
9520 ###############################################################################
9523 with_sgivc_req=unspecified
9525 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
9526 if test "${with_sgivc_ext+set}" = set; then
9527 withval="$with_sgivc_ext"
9528 with_sgivc="$withval"; with_sgivc_req="$withval"
9534 case "$with_sgivc" in
9539 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
9540 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
9541 d=$with_sgivc/include
9543 X_CFLAGS="-I$d $X_CFLAGS"
9544 echo "$as_me:$LINENO: result: $d" >&5
9545 echo "${ECHO_T}$d" >&6
9547 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9548 echo "${ECHO_T}not found ($d: no such directory)" >&6
9551 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
9552 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
9555 X_LIBS="-L$d $X_LIBS"
9556 echo "$as_me:$LINENO: result: $d" >&5
9557 echo "${ECHO_T}$d" >&6
9559 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9560 echo "${ECHO_T}not found ($d: no such directory)" >&6
9563 # replace the directory string with "yes".
9564 with_sgivc_req="yes"
9565 with_sgivc=$with_sgivc_req
9570 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
9571 echo " If it is a directory, then \`DIR/include' will be added to"
9572 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9578 if test "$with_sgivc" = yes; then
9580 # first check for XSGIvc.h
9582 ac_save_CPPFLAGS="$CPPFLAGS"
9583 if test \! -z "$includedir" ; then
9584 CPPFLAGS="$CPPFLAGS -I$includedir"
9586 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9587 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
9588 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
9589 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9593 #line $LINENO "configure"
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599 #include <X11/Xlib.h>
9601 #include <X11/extensions/XSGIvc.h>
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605 (eval $ac_compile) 2>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_header_X11_extensions_XSGIvc_h=yes
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 ac_cv_header_X11_extensions_XSGIvc_h=no
9622 rm -f conftest.$ac_objext conftest.$ac_ext
9624 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
9625 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
9626 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
9631 CPPFLAGS="$ac_save_CPPFLAGS"
9633 # if that succeeded, then check for the -lXsgivc
9634 if test "$have_sgivc" = yes; then
9637 ac_save_CPPFLAGS="$CPPFLAGS"
9638 ac_save_LDFLAGS="$LDFLAGS"
9639 # ac_save_LIBS="$LIBS"
9641 if test \! -z "$includedir" ; then
9642 CPPFLAGS="$CPPFLAGS -I$includedir"
9644 # note: $X_CFLAGS includes $x_includes
9645 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9647 if test \! -z "$libdir" ; then
9648 LDFLAGS="$LDFLAGS -L$libdir"
9650 # note: $X_LIBS includes $x_libraries
9651 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9653 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
9654 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
9655 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 ac_check_lib_save_LIBS=$LIBS
9659 LIBS="-lXsgivc -lXext -lX11 $LIBS"
9660 cat >conftest.$ac_ext <<_ACEOF
9661 #line $LINENO "configure"
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9668 /* Override any gcc2 internal prototype to avoid an error. */
9672 /* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9674 char XSGIvcQueryGammaMap ();
9678 XSGIvcQueryGammaMap ();
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685 (eval $ac_link) 2>&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
9702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9705 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
9706 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
9707 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
9708 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
9713 CPPFLAGS="$ac_save_CPPFLAGS"
9714 LDFLAGS="$ac_save_LDFLAGS"
9715 # LIBS="$ac_save_LIBS"
9719 # if that succeeded, then we've really got it.
9720 if test "$have_sgivc" = yes; then
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_SGI_VC_EXTENSION 1
9727 elif test "$with_sgivc" != no; then
9728 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
9733 ###############################################################################
9735 # Check for the DPMS server extension.
9737 ###############################################################################
9740 with_dpms_req=unspecified
9742 # Check whether --with-dpms-ext or --without-dpms-ext was given.
9743 if test "${with_dpms_ext+set}" = set; then
9744 withval="$with_dpms_ext"
9745 with_dpms="$withval"; with_dpms_req="$withval"
9751 case "$with_dpms" in
9756 echo "$as_me:$LINENO: checking for DPMS headers" >&5
9757 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
9758 d=$with_dpms/include
9760 X_CFLAGS="-I$d $X_CFLAGS"
9761 echo "$as_me:$LINENO: result: $d" >&5
9762 echo "${ECHO_T}$d" >&6
9764 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9765 echo "${ECHO_T}not found ($d: no such directory)" >&6
9768 echo "$as_me:$LINENO: checking for DPMS libs" >&5
9769 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
9772 X_LIBS="-L$d $X_LIBS"
9773 echo "$as_me:$LINENO: result: $d" >&5
9774 echo "${ECHO_T}$d" >&6
9776 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9777 echo "${ECHO_T}not found ($d: no such directory)" >&6
9780 # replace the directory string with "yes".
9782 with_dpms=$with_dpms_req
9787 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
9788 echo " If it is a directory, then \`DIR/include' will be added to"
9789 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9795 if test "$with_dpms" = yes; then
9797 # first check for dpms.h
9799 ac_save_CPPFLAGS="$CPPFLAGS"
9800 if test \! -z "$includedir" ; then
9801 CPPFLAGS="$CPPFLAGS -I$includedir"
9803 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9804 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
9805 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
9806 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 cat >conftest.$ac_ext <<_ACEOF
9810 #line $LINENO "configure"
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 #include <X11/Xlib.h>
9817 #include <X11/Xmd.h>
9819 #include <X11/extensions/dpms.h>
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -s conftest.$ac_objext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_cv_header_X11_extensions_dpms_h=yes
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 ac_cv_header_X11_extensions_dpms_h=no
9840 rm -f conftest.$ac_objext conftest.$ac_ext
9842 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
9843 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
9844 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
9849 CPPFLAGS="$ac_save_CPPFLAGS"
9851 # if that succeeded, then check for the DPMS code in the libraries
9852 if test "$have_dpms" = yes; then
9854 # first look in -lXext (this is where it is with XFree86 4.0)
9857 ac_save_CPPFLAGS="$CPPFLAGS"
9858 ac_save_LDFLAGS="$LDFLAGS"
9859 # ac_save_LIBS="$LIBS"
9861 if test \! -z "$includedir" ; then
9862 CPPFLAGS="$CPPFLAGS -I$includedir"
9864 # note: $X_CFLAGS includes $x_includes
9865 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9867 if test \! -z "$libdir" ; then
9868 LDFLAGS="$LDFLAGS -L$libdir"
9870 # note: $X_LIBS includes $x_libraries
9871 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9873 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
9874 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
9875 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 ac_check_lib_save_LIBS=$LIBS
9879 LIBS="-lXext -lXext -lX11 $LIBS"
9880 cat >conftest.$ac_ext <<_ACEOF
9881 #line $LINENO "configure"
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9888 /* Override any gcc2 internal prototype to avoid an error. */
9892 /* We use char because int might match the return type of a gcc2
9893 builtin and then its argument prototype would still apply. */
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905 (eval $ac_link) 2>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_cv_lib_Xext_DPMSInfo=yes
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_cv_lib_Xext_DPMSInfo=no
9922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9925 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
9926 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
9927 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
9933 CPPFLAGS="$ac_save_CPPFLAGS"
9934 LDFLAGS="$ac_save_LDFLAGS"
9935 # LIBS="$ac_save_LIBS"
9938 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
9939 if test "$have_dpms" = no; then
9941 ac_save_CPPFLAGS="$CPPFLAGS"
9942 ac_save_LDFLAGS="$LDFLAGS"
9943 # ac_save_LIBS="$LIBS"
9945 if test \! -z "$includedir" ; then
9946 CPPFLAGS="$CPPFLAGS -I$includedir"
9948 # note: $X_CFLAGS includes $x_includes
9949 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9951 if test \! -z "$libdir" ; then
9952 LDFLAGS="$LDFLAGS -L$libdir"
9954 # note: $X_LIBS includes $x_libraries
9955 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9957 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
9958 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
9959 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 ac_check_lib_save_LIBS=$LIBS
9963 LIBS="-lXdpms -lXext -lX11 $LIBS"
9964 cat >conftest.$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 ac_cv_lib_Xdpms_DPMSInfo=yes
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_cv_lib_Xdpms_DPMSInfo=no
10006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_lib_save_LIBS
10009 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
10010 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
10011 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
10012 have_dpms=yes; XDPMS_LIBS="-lXdpms"
10017 CPPFLAGS="$ac_save_CPPFLAGS"
10018 LDFLAGS="$ac_save_LDFLAGS"
10019 # LIBS="$ac_save_LIBS"
10025 # if that succeeded, then we've really got it.
10026 if test "$have_dpms" = yes; then
10027 cat >>confdefs.h <<\_ACEOF
10028 #define HAVE_DPMS_EXTENSION 1
10033 elif test "$with_dpms" != no; then
10034 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
10039 ###############################################################################
10041 # Check for the XINERAMA server extension.
10043 ###############################################################################
10046 with_xinerama_req=unspecified
10048 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
10049 if test "${with_xinerama_ext+set}" = set; then
10050 withval="$with_xinerama_ext"
10051 with_xinerama="$withval"; with_xinerama_req="$withval"
10057 case "$with_xinerama" in
10062 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
10063 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
10064 d=$with_xinerama/include
10065 if test -d $d; then
10066 X_CFLAGS="-I$d $X_CFLAGS"
10067 echo "$as_me:$LINENO: result: $d" >&5
10068 echo "${ECHO_T}$d" >&6
10070 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10071 echo "${ECHO_T}not found ($d: no such directory)" >&6
10074 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
10075 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
10076 d=$with_xinerama/lib
10077 if test -d $d; then
10078 X_LIBS="-L$d $X_LIBS"
10079 echo "$as_me:$LINENO: result: $d" >&5
10080 echo "${ECHO_T}$d" >&6
10082 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10083 echo "${ECHO_T}not found ($d: no such directory)" >&6
10086 # replace the directory string with "yes".
10087 with_xinerama_req="yes"
10088 with_xinerama=$with_xinerama_req
10093 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
10094 echo " If it is a directory, then \`DIR/include' will be added to"
10095 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10101 if test "$with_xinerama" = yes; then
10103 # first check for Xinerama.h
10105 ac_save_CPPFLAGS="$CPPFLAGS"
10106 if test \! -z "$includedir" ; then
10107 CPPFLAGS="$CPPFLAGS -I$includedir"
10109 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10110 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
10111 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
10112 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 cat >conftest.$ac_ext <<_ACEOF
10116 #line $LINENO "configure"
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 #include <X11/Xlib.h>
10124 #include <X11/extensions/Xinerama.h>
10126 rm -f conftest.$ac_objext
10127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10128 (eval $ac_compile) 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -s conftest.$ac_objext'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; }; then
10138 ac_cv_header_X11_extensions_Xinerama_h=yes
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_cv_header_X11_extensions_Xinerama_h=no
10145 rm -f conftest.$ac_objext conftest.$ac_ext
10147 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
10148 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
10149 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
10154 CPPFLAGS="$ac_save_CPPFLAGS"
10156 # if that succeeded, then check for the XINERAMA code in the libraries
10157 if test "$have_xinerama" = yes; then
10159 # first look in -lXext
10162 ac_save_CPPFLAGS="$CPPFLAGS"
10163 ac_save_LDFLAGS="$LDFLAGS"
10164 # ac_save_LIBS="$LIBS"
10166 if test \! -z "$includedir" ; then
10167 CPPFLAGS="$CPPFLAGS -I$includedir"
10169 # note: $X_CFLAGS includes $x_includes
10170 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10172 if test \! -z "$libdir" ; then
10173 LDFLAGS="$LDFLAGS -L$libdir"
10175 # note: $X_LIBS includes $x_libraries
10176 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10178 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXext" >&5
10179 echo $ECHO_N "checking for XineramaQueryExtension in -lXext... $ECHO_C" >&6
10180 if test "${ac_cv_lib_Xext_XineramaQueryExtension+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 ac_check_lib_save_LIBS=$LIBS
10184 LIBS="-lXext -lXext -lX11 $LIBS"
10185 cat >conftest.$ac_ext <<_ACEOF
10186 #line $LINENO "configure"
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10193 /* Override any gcc2 internal prototype to avoid an error. */
10197 /* We use char because int might match the return type of a gcc2
10198 builtin and then its argument prototype would still apply. */
10199 char XineramaQueryExtension ();
10203 XineramaQueryExtension ();
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_lib_Xext_XineramaQueryExtension=yes
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10225 ac_cv_lib_Xext_XineramaQueryExtension=no
10227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10230 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryExtension" >&5
10231 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryExtension" >&6
10232 if test $ac_cv_lib_Xext_XineramaQueryExtension = yes; then
10238 CPPFLAGS="$ac_save_CPPFLAGS"
10239 LDFLAGS="$ac_save_LDFLAGS"
10240 # LIBS="$ac_save_LIBS"
10243 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
10244 if test "$have_xinerama" = no; then
10246 ac_save_CPPFLAGS="$CPPFLAGS"
10247 ac_save_LDFLAGS="$LDFLAGS"
10248 # ac_save_LIBS="$LIBS"
10250 if test \! -z "$includedir" ; then
10251 CPPFLAGS="$CPPFLAGS -I$includedir"
10253 # note: $X_CFLAGS includes $x_includes
10254 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10256 if test \! -z "$libdir" ; then
10257 LDFLAGS="$LDFLAGS -L$libdir"
10259 # note: $X_LIBS includes $x_libraries
10260 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10262 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5
10263 echo $ECHO_N "checking for XineramaQueryExtension in -lXinerama... $ECHO_C" >&6
10264 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 ac_check_lib_save_LIBS=$LIBS
10268 LIBS="-lXinerama -lXext -lX11 $LIBS"
10269 cat >conftest.$ac_ext <<_ACEOF
10270 #line $LINENO "configure"
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10277 /* Override any gcc2 internal prototype to avoid an error. */
10281 /* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
10283 char XineramaQueryExtension ();
10287 XineramaQueryExtension ();
10292 rm -f conftest.$ac_objext conftest$ac_exeext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -s conftest$ac_exeext'
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
10304 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_cv_lib_Xinerama_XineramaQueryExtension=no
10311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10312 LIBS=$ac_check_lib_save_LIBS
10314 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
10315 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6
10316 if test $ac_cv_lib_Xinerama_XineramaQueryExtension = yes; then
10317 have_xinerama=yes; SAVER_LIBS="$SAVER_LIBS -lXinerama"
10322 CPPFLAGS="$ac_save_CPPFLAGS"
10323 LDFLAGS="$ac_save_LDFLAGS"
10324 # LIBS="$ac_save_LIBS"
10329 # if that succeeded, then we've really got it.
10330 if test "$have_xinerama" = yes; then
10331 cat >>confdefs.h <<\_ACEOF
10332 #define HAVE_XINERAMA 1
10337 elif test "$with_xinerama" != no; then
10338 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
10343 ###############################################################################
10345 # Check for the XF86VMODE server extension (for virtual screens.)
10347 ###############################################################################
10350 with_xf86vmode_req=unspecified
10352 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
10353 if test "${with_xf86vmode_ext+set}" = set; then
10354 withval="$with_xf86vmode_ext"
10355 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
10361 case "$with_xf86vmode" in
10366 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
10367 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
10368 d=$with_xf86vmode/include
10369 if test -d $d; then
10370 X_CFLAGS="-I$d $X_CFLAGS"
10371 echo "$as_me:$LINENO: result: $d" >&5
10372 echo "${ECHO_T}$d" >&6
10374 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10375 echo "${ECHO_T}not found ($d: no such directory)" >&6
10378 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
10379 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
10380 d=$with_xf86vmode/lib
10381 if test -d $d; then
10382 X_LIBS="-L$d $X_LIBS"
10383 echo "$as_me:$LINENO: result: $d" >&5
10384 echo "${ECHO_T}$d" >&6
10386 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10387 echo "${ECHO_T}not found ($d: no such directory)" >&6
10390 # replace the directory string with "yes".
10391 with_xf86vmode_req="yes"
10392 with_xf86vmode=$with_xf86vmode_req
10397 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
10398 echo " If it is a directory, then \`DIR/include' will be added to"
10399 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10405 if test "$with_xf86vmode" = yes; then
10407 # first check for xf86vmode.h
10409 ac_save_CPPFLAGS="$CPPFLAGS"
10410 if test \! -z "$includedir" ; then
10411 CPPFLAGS="$CPPFLAGS -I$includedir"
10413 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10414 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
10415 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
10416 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 #include <X11/Xlib.h>
10428 #include <X11/extensions/xf86vmode.h>
10430 rm -f conftest.$ac_objext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432 (eval $ac_compile) 2>&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -s conftest.$ac_objext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 ac_cv_header_X11_extensions_xf86vmode_h=yes
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10447 ac_cv_header_X11_extensions_xf86vmode_h=no
10449 rm -f conftest.$ac_objext conftest.$ac_ext
10451 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
10452 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
10453 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
10458 CPPFLAGS="$ac_save_CPPFLAGS"
10460 # if that succeeded, then check for the -lXxf86vm
10461 if test "$have_xf86vmode" = yes; then
10464 ac_save_CPPFLAGS="$CPPFLAGS"
10465 ac_save_LDFLAGS="$LDFLAGS"
10466 # ac_save_LIBS="$LIBS"
10468 if test \! -z "$includedir" ; then
10469 CPPFLAGS="$CPPFLAGS -I$includedir"
10471 # note: $X_CFLAGS includes $x_includes
10472 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10474 if test \! -z "$libdir" ; then
10475 LDFLAGS="$LDFLAGS -L$libdir"
10477 # note: $X_LIBS includes $x_libraries
10478 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10480 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
10481 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
10482 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 ac_check_lib_save_LIBS=$LIBS
10486 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10487 cat >conftest.$ac_ext <<_ACEOF
10488 #line $LINENO "configure"
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10495 /* Override any gcc2 internal prototype to avoid an error. */
10499 /* We use char because int might match the return type of a gcc2
10500 builtin and then its argument prototype would still apply. */
10501 char XF86VidModeGetViewPort ();
10505 XF86VidModeGetViewPort ();
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512 (eval $ac_link) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -s conftest$ac_exeext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
10529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10530 LIBS=$ac_check_lib_save_LIBS
10532 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
10533 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
10534 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
10535 have_xf86vmode=yes; SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10540 CPPFLAGS="$ac_save_CPPFLAGS"
10541 LDFLAGS="$ac_save_LDFLAGS"
10542 # LIBS="$ac_save_LIBS"
10546 # if that succeeded, then we've really got it.
10547 if test "$have_xf86vmode" = yes; then
10548 cat >>confdefs.h <<\_ACEOF
10549 #define HAVE_XF86VMODE 1
10554 elif test "$with_xf86vmode" != no; then
10555 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
10560 ###############################################################################
10562 # Check for the XF86VMODE server extension (for gamma fading.)
10564 ###############################################################################
10567 have_xf86gamma_ramp=no
10568 with_xf86gamma_req=unspecified
10570 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
10571 if test "${with_xf86gamma_ext+set}" = set; then
10572 withval="$with_xf86gamma_ext"
10573 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
10579 case "$with_xf86gamma" in
10584 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
10585 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
10586 d=$with_xf86gamma/include
10587 if test -d $d; then
10588 X_CFLAGS="-I$d $X_CFLAGS"
10589 echo "$as_me:$LINENO: result: $d" >&5
10590 echo "${ECHO_T}$d" >&6
10592 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10593 echo "${ECHO_T}not found ($d: no such directory)" >&6
10596 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
10597 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
10598 d=$with_xf86gamma/lib
10599 if test -d $d; then
10600 X_LIBS="-L$d $X_LIBS"
10601 echo "$as_me:$LINENO: result: $d" >&5
10602 echo "${ECHO_T}$d" >&6
10604 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10605 echo "${ECHO_T}not found ($d: no such directory)" >&6
10608 # replace the directory string with "yes".
10609 with_xf86gamma_req="yes"
10610 with_xf86gamma=$with_xf86gamma_req
10615 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
10616 echo " If it is a directory, then \`DIR/include' will be added to"
10617 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10623 if test "$with_xf86gamma" = yes; then
10625 # first check for xf86vmode.h, if we haven't already
10626 if test "$have_xf86vmode" = yes; then
10630 ac_save_CPPFLAGS="$CPPFLAGS"
10631 if test \! -z "$includedir" ; then
10632 CPPFLAGS="$CPPFLAGS -I$includedir"
10634 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10635 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
10636 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
10637 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 cat >conftest.$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647 #include <X11/Xlib.h>
10649 #include <X11/extensions/xf86vmode.h>
10651 rm -f conftest.$ac_objext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10653 (eval $ac_compile) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } &&
10657 { ac_try='test -s conftest.$ac_objext'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_cv_header_X11_extensions_xf86vmode_h=yes
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10668 ac_cv_header_X11_extensions_xf86vmode_h=no
10670 rm -f conftest.$ac_objext conftest.$ac_ext
10672 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
10673 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
10674 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
10679 CPPFLAGS="$ac_save_CPPFLAGS"
10682 # if that succeeded, then check for the -lXxf86vm
10683 if test "$have_xf86gamma" = yes; then
10686 ac_save_CPPFLAGS="$CPPFLAGS"
10687 ac_save_LDFLAGS="$LDFLAGS"
10688 # ac_save_LIBS="$LIBS"
10690 if test \! -z "$includedir" ; then
10691 CPPFLAGS="$CPPFLAGS -I$includedir"
10693 # note: $X_CFLAGS includes $x_includes
10694 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10696 if test \! -z "$libdir" ; then
10697 LDFLAGS="$LDFLAGS -L$libdir"
10699 # note: $X_LIBS includes $x_libraries
10700 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10702 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
10703 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
10704 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10709 cat >conftest.$ac_ext <<_ACEOF
10710 #line $LINENO "configure"
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10717 /* Override any gcc2 internal prototype to avoid an error. */
10721 /* We use char because int might match the return type of a gcc2
10722 builtin and then its argument prototype would still apply. */
10723 char XF86VidModeSetGamma ();
10727 XF86VidModeSetGamma ();
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734 (eval $ac_link) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
10738 { ac_try='test -s conftest$ac_exeext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
10751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10752 LIBS=$ac_check_lib_save_LIBS
10754 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
10755 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
10756 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
10762 CPPFLAGS="$ac_save_CPPFLAGS"
10763 LDFLAGS="$ac_save_LDFLAGS"
10764 # LIBS="$ac_save_LIBS"
10768 # check for the Ramp versions of the functions too.
10769 if test "$have_xf86gamma" = yes; then
10770 have_xf86gamma_ramp=no
10772 ac_save_CPPFLAGS="$CPPFLAGS"
10773 ac_save_LDFLAGS="$LDFLAGS"
10774 # ac_save_LIBS="$LIBS"
10776 if test \! -z "$includedir" ; then
10777 CPPFLAGS="$CPPFLAGS -I$includedir"
10779 # note: $X_CFLAGS includes $x_includes
10780 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10782 if test \! -z "$libdir" ; then
10783 LDFLAGS="$LDFLAGS -L$libdir"
10785 # note: $X_LIBS includes $x_libraries
10786 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10788 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
10789 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
10790 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 ac_check_lib_save_LIBS=$LIBS
10794 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10795 cat >conftest.$ac_ext <<_ACEOF
10796 #line $LINENO "configure"
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10803 /* Override any gcc2 internal prototype to avoid an error. */
10807 /* We use char because int might match the return type of a gcc2
10808 builtin and then its argument prototype would still apply. */
10809 char XF86VidModeSetGammaRamp ();
10813 XF86VidModeSetGammaRamp ();
10818 rm -f conftest.$ac_objext conftest$ac_exeext
10819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10820 (eval $ac_link) 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -s conftest$ac_exeext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
10837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10840 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
10841 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
10842 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
10843 have_xf86gamma_ramp=yes
10848 CPPFLAGS="$ac_save_CPPFLAGS"
10849 LDFLAGS="$ac_save_LDFLAGS"
10850 # LIBS="$ac_save_LIBS"
10854 # if those tests succeeded, then we've really got the functions.
10855 if test "$have_xf86gamma" = yes; then
10856 cat >>confdefs.h <<\_ACEOF
10857 #define HAVE_XF86VMODE_GAMMA 1
10862 if test "$have_xf86gamma_ramp" = yes; then
10863 cat >>confdefs.h <<\_ACEOF
10864 #define HAVE_XF86VMODE_GAMMA_RAMP 1
10869 # pull in the lib, if we haven't already
10870 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
10871 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10874 elif test "$with_xf86gamma" != no; then
10875 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
10880 ###############################################################################
10882 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
10883 # using other XF86 stuff.)
10885 ###############################################################################
10887 have_xf86miscsetgrabkeysstate=no
10888 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
10890 ac_save_CPPFLAGS="$CPPFLAGS"
10891 ac_save_LDFLAGS="$LDFLAGS"
10892 # ac_save_LIBS="$LIBS"
10894 if test \! -z "$includedir" ; then
10895 CPPFLAGS="$CPPFLAGS -I$includedir"
10897 # note: $X_CFLAGS includes $x_includes
10898 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10900 if test \! -z "$libdir" ; then
10901 LDFLAGS="$LDFLAGS -L$libdir"
10903 # note: $X_LIBS includes $x_libraries
10904 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10906 echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
10907 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6
10908 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 ac_check_lib_save_LIBS=$LIBS
10912 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
10913 cat >conftest.$ac_ext <<_ACEOF
10914 #line $LINENO "configure"
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10921 /* Override any gcc2 internal prototype to avoid an error. */
10925 /* We use char because int might match the return type of a gcc2
10926 builtin and then its argument prototype would still apply. */
10927 char XF86MiscSetGrabKeysState ();
10931 XF86MiscSetGrabKeysState ();
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10938 (eval $ac_link) 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -s conftest$ac_exeext'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10953 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
10955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10958 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
10959 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6
10960 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
10961 have_xf86miscsetgrabkeysstate=yes
10966 CPPFLAGS="$ac_save_CPPFLAGS"
10967 LDFLAGS="$ac_save_LDFLAGS"
10968 # LIBS="$ac_save_LIBS"
10970 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
10971 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
10972 cat >>confdefs.h <<\_ACEOF
10973 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
10980 ###############################################################################
10982 # Check for HP XHPDisableReset and XHPEnableReset.
10984 ###############################################################################
10986 echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
10987 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6
10989 ac_save_CPPFLAGS="$CPPFLAGS"
10990 if test \! -z "$includedir" ; then
10991 CPPFLAGS="$CPPFLAGS -I$includedir"
10993 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10994 cat >conftest.$ac_ext <<_ACEOF
10995 #line $LINENO "configure"
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 #include <X11/XHPlib.h>
11004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11005 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
11006 cat >>confdefs.h <<\_ACEOF
11007 #define HAVE_XHPDISABLERESET 1
11010 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
11011 echo "$as_me:$LINENO: result: yes" >&5
11012 echo "${ECHO_T}yes" >&6
11014 echo "$as_me:$LINENO: result: no" >&5
11015 echo "${ECHO_T}no" >&6
11019 CPPFLAGS="$ac_save_CPPFLAGS"
11022 ###############################################################################
11024 # Check for /proc/interrupts.
11026 ###############################################################################
11028 have_proc_interrupts=no
11029 with_proc_interrupts_req=unspecified
11031 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
11032 if test "${with_proc_interrupts+set}" = set; then
11033 withval="$with_proc_interrupts"
11034 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
11036 with_proc_interrupts=yes
11039 if test "$with_proc_interrupts" = yes; then
11041 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
11042 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
11043 if test "${ac_cv_have_proc_interrupts+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 ac_cv_have_proc_interrupts=no
11047 if grep keyboard /proc/interrupts >/dev/null 2>&1 ; then
11048 ac_cv_have_proc_interrupts=yes
11052 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
11053 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
11054 have_proc_interrupts=$ac_cv_have_proc_interrupts
11056 if test "$have_proc_interrupts" = yes; then
11057 cat >>confdefs.h <<\_ACEOF
11058 #define HAVE_PROC_INTERRUPTS 1
11063 elif test "$with_proc_interrupts" != no; then
11064 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
11069 ###############################################################################
11071 # The --enable-locking option
11073 ###############################################################################
11075 # Check whether --enable-locking or --disable-locking was given.
11076 if test "${enable_locking+set}" = set; then
11077 enableval="$enable_locking"
11078 enable_locking="$enableval"
11082 if test "$enable_locking" = yes; then
11084 elif test "$enable_locking" = no; then
11085 cat >>confdefs.h <<\_ACEOF
11086 #define NO_LOCKING 1
11090 echo "error: must be yes or no: --enable-locking=$enable_locking"
11094 # We can't lock on MacOS X, so don't even bother compiling in support for it.
11096 if test "$ac_macosx" = yes; then
11097 if test "$enable_locking" = yes; then
11098 echo "$as_me:$LINENO: result: locking disabled: it doesn't work on MacOS X" >&5
11099 echo "${ECHO_T}locking disabled: it doesn't work on MacOS X" >&6
11101 cat >>confdefs.h <<\_ACEOF
11102 #define NO_LOCKING 1
11109 ###############################################################################
11111 # The --enable-vt-locking option
11113 ###############################################################################
11115 #ac_vt_lockswitch=no
11116 #AC_ARG_ENABLE(vt-locking,[
11117 # --enable-vt-locking Compile in support for locking Virtual Terminals.
11118 # This is the default if the system supports it, and
11119 # if locking support is included (--enable-locking.)
11120 # --disable-vt-locking Do not allow locking of VTs, even if locking is
11122 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
11123 #if test "$enable_vt_locking" = yes; then
11125 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
11126 # [AC_TRY_COMPILE([#include <fcntl.h>
11127 # #include <sys/ioctl.h>
11128 # #include <sys/vt.h>],
11129 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
11130 # [ac_cv_vt_lockswitch=yes],
11131 # [ac_cv_vt_lockswitch=no])])
11132 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
11134 #elif test "$enable_vt_locking" = no; then
11137 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
11141 #if test "$ac_vt_lockswitch" = yes; then
11142 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
11143 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
11144 # # #### but it doesn't work yet, so don't worry about that for now.
11149 ###############################################################################
11153 ###############################################################################
11157 # Solaris systems tend to come with PAM misconfigured.
11158 # Don't build it by default, even if the headers exist.
11159 with_pam_default=no
11162 # Default to building PAM support on all other systems, if it exists.
11163 with_pam_default=yes
11168 with_pam_req=unspecified
11171 # Check whether --with-pam or --without-pam was given.
11172 if test "${with_pam+set}" = set; then
11173 withval="$with_pam"
11174 with_pam="$withval"; with_pam_req="$withval"
11176 with_pam=$with_pam_default
11180 case "$with_pam" in
11185 echo "$as_me:$LINENO: checking for PAM headers" >&5
11186 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
11187 d=$with_pam/include
11188 if test -d $d; then
11189 X_CFLAGS="-I$d $X_CFLAGS"
11190 echo "$as_me:$LINENO: result: $d" >&5
11191 echo "${ECHO_T}$d" >&6
11193 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11194 echo "${ECHO_T}not found ($d: no such directory)" >&6
11197 echo "$as_me:$LINENO: checking for PAM libs" >&5
11198 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
11200 if test -d $d; then
11201 X_LIBS="-L$d $X_LIBS"
11202 echo "$as_me:$LINENO: result: $d" >&5
11203 echo "${ECHO_T}$d" >&6
11205 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11206 echo "${ECHO_T}not found ($d: no such directory)" >&6
11209 # replace the directory string with "yes".
11211 with_pam=$with_pam_req
11216 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
11217 echo " If it is a directory, then \`DIR/include' will be added to"
11218 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11224 if test "$enable_locking" = yes -a "$with_pam" = yes; then
11225 echo "$as_me:$LINENO: checking for PAM" >&5
11226 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
11227 if test "${ac_cv_pam+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 ac_save_CPPFLAGS="$CPPFLAGS"
11232 if test \! -z "$includedir" ; then
11233 CPPFLAGS="$CPPFLAGS -I$includedir"
11235 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11236 cat >conftest.$ac_ext <<_ACEOF
11237 #line $LINENO "configure"
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 #include <security/pam_appl.h>
11252 rm -f conftest.$ac_objext
11253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11254 (eval $ac_compile) 2>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -s conftest.$ac_objext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11271 rm -f conftest.$ac_objext conftest.$ac_ext
11272 CPPFLAGS="$ac_save_CPPFLAGS"
11274 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
11275 echo "${ECHO_T}$ac_cv_pam" >&6
11276 if test "$ac_cv_pam" = yes ; then
11278 cat >>confdefs.h <<\_ACEOF
11282 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
11284 # libpam typically requires dlopen and dlsym. On FreeBSD,
11285 # those are in libc. On Linux and Solaris, they're in libdl.
11286 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11287 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11288 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 ac_check_lib_save_LIBS=$LIBS
11293 cat >conftest.$ac_ext <<_ACEOF
11294 #line $LINENO "configure"
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11301 /* Override any gcc2 internal prototype to avoid an error. */
11305 /* We use char because int might match the return type of a gcc2
11306 builtin and then its argument prototype would still apply. */
11316 rm -f conftest.$ac_objext conftest$ac_exeext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_cv_lib_dl_dlopen=yes
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11333 ac_cv_lib_dl_dlopen=no
11335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336 LIBS=$ac_check_lib_save_LIBS
11338 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11339 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11340 if test $ac_cv_lib_dl_dlopen = yes; then
11341 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
11345 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
11346 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
11347 if test "${ac_cv_pam_strerror_args+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 cat >conftest.$ac_ext <<_ACEOF
11351 #line $LINENO "configure"
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11358 #include <stdlib.h>
11359 #include <security/pam_appl.h>
11363 pam_handle_t *pamh = 0;
11364 char *s = pam_strerror(pamh, PAM_SUCCESS);
11369 rm -f conftest.$ac_objext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11371 (eval $ac_compile) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_pam_strerror_args=2
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 cat >conftest.$ac_ext <<_ACEOF
11387 #line $LINENO "configure"
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11394 #include <stdlib.h>
11395 #include <security/pam_appl.h>
11400 pam_strerror(PAM_SUCCESS);
11405 rm -f conftest.$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
11411 { ac_try='test -s conftest.$ac_objext'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }; then
11417 ac_pam_strerror_args=1
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11422 ac_pam_strerror_args=0
11424 rm -f conftest.$ac_objext conftest.$ac_ext
11426 rm -f conftest.$ac_objext conftest.$ac_ext
11427 ac_cv_pam_strerror_args=$ac_pam_strerror_args
11430 ac_pam_strerror_args=$ac_cv_pam_strerror_args
11431 if test "$ac_pam_strerror_args" = 1 ; then
11432 echo "$as_me:$LINENO: result: one argument" >&5
11433 echo "${ECHO_T}one argument" >&6
11434 elif test "$ac_pam_strerror_args" = 2 ; then
11435 cat >>confdefs.h <<\_ACEOF
11436 #define PAM_STRERROR_TWO_ARGS 1
11439 echo "$as_me:$LINENO: result: two arguments" >&5
11440 echo "${ECHO_T}two arguments" >&6
11442 echo "$as_me:$LINENO: result: unknown" >&5
11443 echo "${ECHO_T}unknown" >&6
11449 ###############################################################################
11451 # Check for Kerberos.
11453 ###############################################################################
11457 with_kerberos_req=unspecified
11460 # Check whether --with-kerberos or --without-kerberos was given.
11461 if test "${with_kerberos+set}" = set; then
11462 withval="$with_kerberos"
11463 with_kerberos="$withval"; with_kerberos_req="$withval"
11469 case "$with_kerberos" in
11474 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
11475 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
11476 d=$with_kerberos/include
11477 if test -d $d; then
11478 X_CFLAGS="-I$d $X_CFLAGS"
11479 echo "$as_me:$LINENO: result: $d" >&5
11480 echo "${ECHO_T}$d" >&6
11482 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11483 echo "${ECHO_T}not found ($d: no such directory)" >&6
11486 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
11487 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
11488 d=$with_kerberos/lib
11489 if test -d $d; then
11490 X_LIBS="-L$d $X_LIBS"
11491 echo "$as_me:$LINENO: result: $d" >&5
11492 echo "${ECHO_T}$d" >&6
11494 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11495 echo "${ECHO_T}not found ($d: no such directory)" >&6
11498 # replace the directory string with "yes".
11499 with_kerberos_req="yes"
11500 with_kerberos=$with_kerberos_req
11505 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
11506 echo " If it is a directory, then \`DIR/include' will be added to"
11507 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11513 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
11514 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
11515 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
11516 if test "${ac_cv_kerberos+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 ac_save_CPPFLAGS="$CPPFLAGS"
11521 if test \! -z "$includedir" ; then
11522 CPPFLAGS="$CPPFLAGS -I$includedir"
11524 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11525 cat >conftest.$ac_ext <<_ACEOF
11526 #line $LINENO "configure"
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11541 rm -f conftest.$ac_objext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11543 (eval $ac_compile) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11560 rm -f conftest.$ac_objext conftest.$ac_ext
11561 CPPFLAGS="$ac_save_CPPFLAGS"
11563 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
11564 echo "${ECHO_T}$ac_cv_kerberos" >&6
11565 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
11566 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
11567 if test "${ac_cv_kerberos5+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 ac_save_CPPFLAGS="$CPPFLAGS"
11572 if test \! -z "$includedir" ; then
11573 CPPFLAGS="$CPPFLAGS -I$includedir"
11575 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11576 cat >conftest.$ac_ext <<_ACEOF
11577 #line $LINENO "configure"
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11583 #include <kerberosIV/krb.h>
11592 rm -f conftest.$ac_objext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594 (eval $ac_compile) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -s conftest.$ac_objext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 ac_cv_kerberos5=yes
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11611 rm -f conftest.$ac_objext conftest.$ac_ext
11612 CPPFLAGS="$ac_save_CPPFLAGS"
11614 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
11615 echo "${ECHO_T}$ac_cv_kerberos5" >&6
11617 if test "$ac_cv_kerberos" = yes ; then
11619 cat >>confdefs.h <<\_ACEOF
11620 #define HAVE_KERBEROS 1
11625 if test "$ac_cv_kerberos5" = yes ; then
11627 # Andrew Snare <ajs@pigpond.com> wrote:
11629 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
11630 # (krb4) was also available. This turns out not to be the case with
11631 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
11634 # So, disable kerberosV support if libkrb4 can't be found.
11635 # This is not the best solution, but it makes the compile not fail.
11638 ac_save_CPPFLAGS="$CPPFLAGS"
11639 ac_save_LDFLAGS="$LDFLAGS"
11640 # ac_save_LIBS="$LIBS"
11642 if test \! -z "$includedir" ; then
11643 CPPFLAGS="$CPPFLAGS -I$includedir"
11645 # note: $X_CFLAGS includes $x_includes
11646 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11648 if test \! -z "$libdir" ; then
11649 LDFLAGS="$LDFLAGS -L$libdir"
11651 # note: $X_LIBS includes $x_libraries
11652 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11654 echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
11655 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6
11656 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 ac_check_lib_save_LIBS=$LIBS
11660 LIBS="-lkrb4 $LIBS"
11661 cat >conftest.$ac_ext <<_ACEOF
11662 #line $LINENO "configure"
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11669 /* Override any gcc2 internal prototype to avoid an error. */
11673 /* We use char because int might match the return type of a gcc2
11674 builtin and then its argument prototype would still apply. */
11675 char krb_get_tf_realm ();
11679 krb_get_tf_realm ();
11684 rm -f conftest.$ac_objext conftest$ac_exeext
11685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11686 (eval $ac_link) 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 ac_cv_lib_krb4_krb_get_tf_realm=yes
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11701 ac_cv_lib_krb4_krb_get_tf_realm=no
11703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11704 LIBS=$ac_check_lib_save_LIBS
11706 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
11707 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6
11708 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
11714 CPPFLAGS="$ac_save_CPPFLAGS"
11715 LDFLAGS="$ac_save_LDFLAGS"
11716 # LIBS="$ac_save_LIBS"
11718 if test "$have_kerberos" = yes ; then
11720 cat >>confdefs.h <<\_ACEOF
11721 #define HAVE_KERBEROS 1
11724 cat >>confdefs.h <<\_ACEOF
11725 #define HAVE_KERBEROS5 1
11730 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
11731 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
11736 if test "$have_kerberos5" = yes ; then
11737 # from Matt Knopp <mhat@infocalypse.netlag.com>
11738 # (who got it from amu@mit.edu)
11740 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
11742 # jwz: MacOS X uses -lkrb5, but not -lcrypt
11744 ac_save_CPPFLAGS="$CPPFLAGS"
11745 ac_save_LDFLAGS="$LDFLAGS"
11746 # ac_save_LIBS="$LIBS"
11748 if test \! -z "$includedir" ; then
11749 CPPFLAGS="$CPPFLAGS -I$includedir"
11751 # note: $X_CFLAGS includes $x_includes
11752 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11754 if test \! -z "$libdir" ; then
11755 LDFLAGS="$LDFLAGS -L$libdir"
11757 # note: $X_LIBS includes $x_libraries
11758 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11760 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
11761 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
11762 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 ac_check_lib_save_LIBS=$LIBS
11766 LIBS="-lcrypt $LIBS"
11767 cat >conftest.$ac_ext <<_ACEOF
11768 #line $LINENO "configure"
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11775 /* Override any gcc2 internal prototype to avoid an error. */
11779 /* We use char because int might match the return type of a gcc2
11780 builtin and then its argument prototype would still apply. */
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11792 (eval $ac_link) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -s conftest$ac_exeext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_lib_crypt_crypt=yes
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 ac_cv_lib_crypt_crypt=no
11809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11810 LIBS=$ac_check_lib_save_LIBS
11812 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
11813 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
11814 if test $ac_cv_lib_crypt_crypt = yes; then
11815 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
11818 CPPFLAGS="$ac_save_CPPFLAGS"
11819 LDFLAGS="$ac_save_LDFLAGS"
11820 # LIBS="$ac_save_LIBS"
11823 elif test "$have_kerberos" = yes ; then
11824 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
11825 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
11828 if test "$have_kerberos" = yes ; then
11829 echo "$as_me:$LINENO: checking for res_search" >&5
11830 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
11831 if test "${ac_cv_func_res_search+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 cat >conftest.$ac_ext <<_ACEOF
11835 #line $LINENO "configure"
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 /* System header to define __stub macros and hopefully few prototypes,
11842 which can conflict with char res_search (); below.
11843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11844 <limits.h> exists even on freestanding compilers. */
11846 # include <limits.h>
11848 # include <assert.h>
11850 /* Override any gcc2 internal prototype to avoid an error. */
11855 /* We use char because int might match the return type of a gcc2
11856 builtin and then its argument prototype would still apply. */
11857 char res_search ();
11858 /* The GNU C library defines this for functions which it implements
11859 to always fail with ENOSYS. Some functions are actually named
11860 something starting with __ and the normal name is an alias. */
11861 #if defined (__stub_res_search) || defined (__stub___res_search)
11864 char (*f) () = res_search;
11873 return f != res_search;
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -s conftest$ac_exeext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 ac_cv_func_res_search=yes
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11895 ac_cv_func_res_search=no
11897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11899 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
11900 echo "${ECHO_T}$ac_cv_func_res_search" >&6
11901 if test $ac_cv_func_res_search = yes; then
11904 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
11905 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
11906 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 ac_check_lib_save_LIBS=$LIBS
11910 LIBS="-lresolv $LIBS"
11911 cat >conftest.$ac_ext <<_ACEOF
11912 #line $LINENO "configure"
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11919 /* Override any gcc2 internal prototype to avoid an error. */
11923 /* We use char because int might match the return type of a gcc2
11924 builtin and then its argument prototype would still apply. */
11925 char res_search ();
11934 rm -f conftest.$ac_objext conftest$ac_exeext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936 (eval $ac_link) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -s conftest$ac_exeext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_lib_resolv_res_search=yes
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11951 ac_cv_lib_resolv_res_search=no
11953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11954 LIBS=$ac_check_lib_save_LIBS
11956 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
11957 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
11958 if test $ac_cv_lib_resolv_res_search = yes; then
11959 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
11961 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
11962 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
11972 ###############################################################################
11974 # Check for the nine billion variants of shadow passwords...
11976 ###############################################################################
11981 with_shadow_req=unspecified
11984 # Check whether --with-shadow or --without-shadow was given.
11985 if test "${with_shadow+set}" = set; then
11986 withval="$with_shadow"
11987 with_shadow="$withval"; with_shadow_req="$withval"
11993 case "$with_shadow" in
11998 echo "$as_me:$LINENO: checking for shadow password headers" >&5
11999 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
12000 d=$with_shadow/include
12001 if test -d $d; then
12002 X_CFLAGS="-I$d $X_CFLAGS"
12003 echo "$as_me:$LINENO: result: $d" >&5
12004 echo "${ECHO_T}$d" >&6
12006 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12007 echo "${ECHO_T}not found ($d: no such directory)" >&6
12010 echo "$as_me:$LINENO: checking for shadow password libs" >&5
12011 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
12013 if test -d $d; then
12014 X_LIBS="-L$d $X_LIBS"
12015 echo "$as_me:$LINENO: result: $d" >&5
12016 echo "${ECHO_T}$d" >&6
12018 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12019 echo "${ECHO_T}not found ($d: no such directory)" >&6
12022 # replace the directory string with "yes".
12023 with_shadow_req="yes"
12024 with_shadow=$with_shadow_req
12029 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
12030 echo " If it is a directory, then \`DIR/include' will be added to"
12031 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12037 if test "$enable_locking" = no ; then
12043 ###############################################################################
12045 # Check for Sun "adjunct" passwords.
12047 ###############################################################################
12049 if test "$with_shadow" = yes ; then
12050 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
12051 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
12052 if test "${ac_cv_sun_adjunct+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 ac_save_CPPFLAGS="$CPPFLAGS"
12057 if test \! -z "$includedir" ; then
12058 CPPFLAGS="$CPPFLAGS -I$includedir"
12060 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12061 cat >conftest.$ac_ext <<_ACEOF
12062 #line $LINENO "configure"
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 #include <stdlib.h>
12069 #include <unistd.h>
12070 #include <sys/types.h>
12071 #include <sys/label.h>
12072 #include <sys/audit.h>
12073 #include <pwdadj.h>
12077 struct passwd_adjunct *p = getpwanam("nobody");
12078 const char *pw = p->pwa_passwd;
12083 rm -f conftest.$ac_objext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12085 (eval $ac_compile) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_cv_sun_adjunct=yes
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_cv_sun_adjunct=no
12102 rm -f conftest.$ac_objext conftest.$ac_ext
12103 CPPFLAGS="$ac_save_CPPFLAGS"
12105 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
12106 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
12107 if test "$ac_cv_sun_adjunct" = yes; then
12108 have_shadow_adjunct=yes
12115 ###############################################################################
12117 # Check for DEC and SCO so-called "enhanced" security.
12119 ###############################################################################
12121 if test "$with_shadow" = yes ; then
12122 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
12123 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
12124 if test "${ac_cv_enhanced_passwd+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 ac_save_CPPFLAGS="$CPPFLAGS"
12129 if test \! -z "$includedir" ; then
12130 CPPFLAGS="$CPPFLAGS -I$includedir"
12132 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12133 cat >conftest.$ac_ext <<_ACEOF
12134 #line $LINENO "configure"
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 #include <stdlib.h>
12141 #include <unistd.h>
12142 #include <sys/types.h>
12144 #include <sys/security.h>
12149 struct pr_passwd *p;
12151 set_auth_parameters(0, 0);
12152 check_auth_parameters();
12153 p = getprpwnam("nobody");
12154 pw = p->ufld.fd_encrypt;
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_cv_enhanced_passwd=yes
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12176 ac_cv_enhanced_passwd=no
12178 rm -f conftest.$ac_objext conftest.$ac_ext
12179 CPPFLAGS="$ac_save_CPPFLAGS"
12181 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
12182 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
12183 if test $ac_cv_enhanced_passwd = yes; then
12184 have_shadow_enhanced=yes
12188 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
12189 # (I'm told it needs -lcurses too, but I don't understand why.)
12190 # But on DEC, it's in -lsecurity.
12192 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
12193 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
12194 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 ac_check_lib_save_LIBS=$LIBS
12198 LIBS="-lprot -lx $LIBS"
12199 cat >conftest.$ac_ext <<_ACEOF
12200 #line $LINENO "configure"
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12207 /* Override any gcc2 internal prototype to avoid an error. */
12211 /* We use char because int might match the return type of a gcc2
12212 builtin and then its argument prototype would still apply. */
12213 char getprpwnam ();
12222 rm -f conftest.$ac_objext conftest$ac_exeext
12223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12224 (eval $ac_link) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_cv_lib_prot_getprpwnam=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_cv_lib_prot_getprpwnam=no
12241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12244 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
12245 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
12246 if test $ac_cv_lib_prot_getprpwnam = yes; then
12247 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
12249 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
12250 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
12251 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-lsecurity $LIBS"
12256 cat >conftest.$ac_ext <<_ACEOF
12257 #line $LINENO "configure"
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12264 /* Override any gcc2 internal prototype to avoid an error. */
12268 /* We use char because int might match the return type of a gcc2
12269 builtin and then its argument prototype would still apply. */
12270 char getprpwnam ();
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281 (eval $ac_link) 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try='test -s conftest$ac_exeext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 ac_cv_lib_security_getprpwnam=yes
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ac_cv_lib_security_getprpwnam=no
12298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12301 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
12302 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
12303 if test $ac_cv_lib_security_getprpwnam = yes; then
12304 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
12312 ###############################################################################
12314 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
12316 ###############################################################################
12318 if test "$with_shadow" = yes ; then
12319 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
12320 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
12321 if test "${ac_cv_hpux_passwd+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 ac_save_CPPFLAGS="$CPPFLAGS"
12326 if test \! -z "$includedir" ; then
12327 CPPFLAGS="$CPPFLAGS -I$includedir"
12329 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 #include <stdlib.h>
12338 #include <unistd.h>
12339 #include <sys/types.h>
12341 #include <hpsecurity.h>
12346 struct s_passwd *p = getspwnam("nobody");
12347 const char *pw = p->pw_passwd;
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -s conftest.$ac_objext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_hpux_passwd=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_hpux_passwd=no
12371 rm -f conftest.$ac_objext conftest.$ac_ext
12372 CPPFLAGS="$ac_save_CPPFLAGS"
12374 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
12375 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
12376 if test "$ac_cv_hpux_passwd" = yes; then
12377 have_shadow_hpux=yes
12381 # on HPUX, bigcrypt is in -lsec
12382 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
12383 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
12384 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 ac_check_lib_save_LIBS=$LIBS
12389 cat >conftest.$ac_ext <<_ACEOF
12390 #line $LINENO "configure"
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12397 /* Override any gcc2 internal prototype to avoid an error. */
12401 /* We use char because int might match the return type of a gcc2
12402 builtin and then its argument prototype would still apply. */
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12414 (eval $ac_link) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_lib_sec_bigcrypt=yes
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12429 ac_cv_lib_sec_bigcrypt=no
12431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12432 LIBS=$ac_check_lib_save_LIBS
12434 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
12435 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
12436 if test $ac_cv_lib_sec_bigcrypt = yes; then
12437 PASSWD_LIBS="$PASSWD_LIBS -lsec"
12444 ###############################################################################
12446 # Check for FreeBSD-style shadow passwords.
12448 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
12449 # password systems -- except you only get stuff in the pw_passwd field
12450 # if the running program is setuid. So, guess that we've got this
12451 # lossage to contend with if /etc/master.passwd exists, and default to
12452 # a setuid installation.
12454 ###############################################################################
12456 if test "$with_shadow" = yes ; then
12457 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
12458 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
12459 if test "${ac_cv_master_passwd+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 if test -f /etc/master.passwd ; then
12463 ac_cv_master_passwd=yes
12465 ac_cv_master_passwd=no
12468 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
12469 echo "${ECHO_T}$ac_cv_master_passwd" >&6
12470 if test "$ac_cv_master_passwd" = yes; then
12476 ###############################################################################
12478 # Check for traditional (ha!) shadow passwords.
12480 ###############################################################################
12482 if test "$with_shadow" = yes ; then
12483 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
12484 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
12485 if test "${ac_cv_shadow+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 ac_save_CPPFLAGS="$CPPFLAGS"
12490 if test \! -z "$includedir" ; then
12491 CPPFLAGS="$CPPFLAGS -I$includedir"
12493 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12494 cat >conftest.$ac_ext <<_ACEOF
12495 #line $LINENO "configure"
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h. */
12501 #include <stdlib.h>
12502 #include <unistd.h>
12503 #include <sys/types.h>
12505 #include <shadow.h>
12509 struct spwd *p = getspnam("nobody");
12510 const char *pw = p->sp_pwdp;
12515 rm -f conftest.$ac_objext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12517 (eval $ac_compile) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -s conftest.$ac_objext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12534 rm -f conftest.$ac_objext conftest.$ac_ext
12535 CPPFLAGS="$ac_save_CPPFLAGS"
12537 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
12538 echo "${ECHO_T}$ac_cv_shadow" >&6
12539 if test "$ac_cv_shadow" = yes; then
12543 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
12545 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
12546 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
12547 if test "${ac_cv_lib_c_getspnam+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 ac_check_lib_save_LIBS=$LIBS
12552 cat >conftest.$ac_ext <<_ACEOF
12553 #line $LINENO "configure"
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 /* Override any gcc2 internal prototype to avoid an error. */
12564 /* We use char because int might match the return type of a gcc2
12565 builtin and then its argument prototype would still apply. */
12575 rm -f conftest.$ac_objext conftest$ac_exeext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12577 (eval $ac_link) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
12581 { ac_try='test -s conftest$ac_exeext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 ac_cv_lib_c_getspnam=yes
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 ac_cv_lib_c_getspnam=no
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12595 LIBS=$ac_check_lib_save_LIBS
12597 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
12598 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
12599 if test $ac_cv_lib_c_getspnam = yes; then
12603 if test "$have_getspnam" = no ; then
12604 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
12605 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
12606 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 ac_check_lib_save_LIBS=$LIBS
12611 cat >conftest.$ac_ext <<_ACEOF
12612 #line $LINENO "configure"
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12619 /* Override any gcc2 internal prototype to avoid an error. */
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12634 rm -f conftest.$ac_objext conftest$ac_exeext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12636 (eval $ac_link) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -s conftest$ac_exeext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_lib_gen_getspnam=yes
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 ac_cv_lib_gen_getspnam=no
12653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12654 LIBS=$ac_check_lib_save_LIBS
12656 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
12657 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
12658 if test $ac_cv_lib_gen_getspnam = yes; then
12659 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
12667 ###############################################################################
12669 # Check for other libraries needed for non-shadow passwords.
12671 ###############################################################################
12673 if test "$enable_locking" = yes ; then
12675 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
12677 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
12678 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
12679 if test "${ac_cv_lib_c_crypt+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 ac_check_lib_save_LIBS=$LIBS
12684 cat >conftest.$ac_ext <<_ACEOF
12685 #line $LINENO "configure"
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12692 /* Override any gcc2 internal prototype to avoid an error. */
12696 /* We use char because int might match the return type of a gcc2
12697 builtin and then its argument prototype would still apply. */
12707 rm -f conftest.$ac_objext conftest$ac_exeext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12709 (eval $ac_link) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -s conftest$ac_exeext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_lib_c_crypt=yes
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 ac_cv_lib_c_crypt=no
12726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12729 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
12730 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
12731 if test $ac_cv_lib_c_crypt = yes; then
12735 if test "$have_crypt" = no ; then
12736 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
12737 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
12738 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-lcrypt $LIBS"
12743 cat >conftest.$ac_ext <<_ACEOF
12744 #line $LINENO "configure"
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12751 /* Override any gcc2 internal prototype to avoid an error. */
12755 /* We use char because int might match the return type of a gcc2
12756 builtin and then its argument prototype would still apply. */
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -s conftest$ac_exeext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_cv_lib_crypt_crypt=yes
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12783 ac_cv_lib_crypt_crypt=no
12785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12788 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
12789 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
12790 if test $ac_cv_lib_crypt_crypt = yes; then
12791 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
12798 # Most of the above shadow mechanisms will have set need_setuid to yes,
12799 # if they were found. But, on some systems, we need setuid even when
12800 # using plain old vanilla passwords.
12802 if test "$enable_locking" = yes ; then
12804 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
12811 if test "$have_shadow_adjunct" = yes ; then
12812 cat >>confdefs.h <<\_ACEOF
12813 #define HAVE_ADJUNCT_PASSWD 1
12816 elif test "$have_shadow_enhanced" = yes ; then
12817 cat >>confdefs.h <<\_ACEOF
12818 #define HAVE_ENHANCED_PASSWD 1
12821 elif test "$have_shadow_hpux" = yes ; then
12822 cat >>confdefs.h <<\_ACEOF
12823 #define HAVE_HPUX_PASSWD 1
12826 elif test "$have_shadow" = yes ; then
12827 cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_SHADOW_PASSWD 1
12834 ###############################################################################
12838 ###############################################################################
12841 with_motif_req=unspecified
12843 # Check whether --with-motif or --without-motif was given.
12844 if test "${with_motif+set}" = set; then
12845 withval="$with_motif"
12846 with_motif="$withval"; with_motif_req="$withval"
12852 case "$with_motif" in
12857 echo "$as_me:$LINENO: checking for Motif headers" >&5
12858 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
12859 d=$with_motif/include
12860 if test -d $d; then
12861 X_CFLAGS="-I$d $X_CFLAGS"
12862 echo "$as_me:$LINENO: result: $d" >&5
12863 echo "${ECHO_T}$d" >&6
12865 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12866 echo "${ECHO_T}not found ($d: no such directory)" >&6
12869 echo "$as_me:$LINENO: checking for Motif libs" >&5
12870 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
12872 if test -d $d; then
12873 X_LIBS="-L$d $X_LIBS"
12874 echo "$as_me:$LINENO: result: $d" >&5
12875 echo "${ECHO_T}$d" >&6
12877 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12878 echo "${ECHO_T}not found ($d: no such directory)" >&6
12881 # replace the directory string with "yes".
12882 with_motif_req="yes"
12883 with_motif=$with_motif_req
12888 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
12889 echo " If it is a directory, then \`DIR/include' will be added to"
12890 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12896 if test "$with_motif" != yes -a "$with_motif" != no ; then
12897 echo "error: must be yes or no: --with-motif=$with_motif"
12901 if test "$with_motif" = yes; then
12904 ac_save_CPPFLAGS="$CPPFLAGS"
12905 if test \! -z "$includedir" ; then
12906 CPPFLAGS="$CPPFLAGS -I$includedir"
12908 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12909 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
12910 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
12911 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 cat >conftest.$ac_ext <<_ACEOF
12915 #line $LINENO "configure"
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 #include <stdlib.h>
12923 #include <X11/Intrinsic.h>
12927 rm -f conftest.$ac_objext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -s conftest.$ac_objext'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_header_Xm_Xm_h=yes
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12944 ac_cv_header_Xm_Xm_h=no
12946 rm -f conftest.$ac_objext conftest.$ac_ext
12948 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
12949 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
12950 if test $ac_cv_header_Xm_Xm_h = yes; then
12952 cat >>confdefs.h <<\_ACEOF
12953 #define HAVE_MOTIF 1
12956 MOTIF_LIBS="$MOTIF_LIBS -lXm"
12960 CPPFLAGS="$ac_save_CPPFLAGS"
12964 if test "$have_motif" = yes; then
12966 ac_save_CPPFLAGS="$CPPFLAGS"
12967 if test \! -z "$includedir" ; then
12968 CPPFLAGS="$CPPFLAGS -I$includedir"
12970 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12971 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
12972 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
12973 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12977 #line $LINENO "configure"
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 #include <stdlib.h>
12985 #include <X11/Intrinsic.h>
12987 #include <Xm/ComboBox.h>
12989 rm -f conftest.$ac_objext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991 (eval $ac_compile) 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_header_Xm_ComboBox_h=yes
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 ac_cv_header_Xm_ComboBox_h=no
13008 rm -f conftest.$ac_objext conftest.$ac_ext
13010 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
13011 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
13012 if test $ac_cv_header_Xm_ComboBox_h = yes; then
13013 cat >>confdefs.h <<\_ACEOF
13014 #define HAVE_XMCOMBOBOX 1
13020 CPPFLAGS="$ac_save_CPPFLAGS"
13024 ###############################################################################
13026 # Check for -lgtk (and Gnome stuff)
13028 ###############################################################################
13032 with_gtk_req=unspecified
13034 # Check whether --with-gtk or --without-gtk was given.
13035 if test "${with_gtk+set}" = set; then
13036 withval="$with_gtk"
13037 with_gtk="$withval"; with_gtk_req="$withval"
13042 # if --with-gtk=/directory/ was specified, remember that directory so that
13043 # we can also look for the `gtk-config' program in that directory.
13044 case "$with_gtk" in
13046 gtk_dir="$with_gtk"
13054 case "$with_gtk" in
13059 echo "$as_me:$LINENO: checking for Gtk headers" >&5
13060 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
13061 d=$with_gtk/include
13062 if test -d $d; then
13063 X_CFLAGS="-I$d $X_CFLAGS"
13064 echo "$as_me:$LINENO: result: $d" >&5
13065 echo "${ECHO_T}$d" >&6
13067 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13068 echo "${ECHO_T}not found ($d: no such directory)" >&6
13071 echo "$as_me:$LINENO: checking for Gtk libs" >&5
13072 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
13074 if test -d $d; then
13075 X_LIBS="-L$d $X_LIBS"
13076 echo "$as_me:$LINENO: result: $d" >&5
13077 echo "${ECHO_T}$d" >&6
13079 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13080 echo "${ECHO_T}not found ($d: no such directory)" >&6
13083 # replace the directory string with "yes".
13085 with_gtk=$with_gtk_req
13090 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
13091 echo " If it is a directory, then \`DIR/include' will be added to"
13092 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13098 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
13099 echo "error: must be yes or no: --with-gtk=$with_gtk"
13104 with_gnome_req=unspecified
13106 # Check whether --with-gnome or --without-gnome was given.
13107 if test "${with_gnome+set}" = set; then
13108 withval="$with_gnome"
13109 with_gnome="$withval"; with_gnome_req="$withval"
13114 # if --with-gnome=/directory/ was specified, remember that directory so that
13115 # we can also look for the `gnome-config' program in that directory.
13116 case "$with_gnome" in
13118 gnome_dir="$with_gnome"
13126 case "$with_gnome" in
13131 echo "$as_me:$LINENO: checking for Gnome headers" >&5
13132 echo $ECHO_N "checking for Gnome headers... $ECHO_C" >&6
13133 d=$with_gnome/include
13134 if test -d $d; then
13135 X_CFLAGS="-I$d $X_CFLAGS"
13136 echo "$as_me:$LINENO: result: $d" >&5
13137 echo "${ECHO_T}$d" >&6
13139 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13140 echo "${ECHO_T}not found ($d: no such directory)" >&6
13143 echo "$as_me:$LINENO: checking for Gnome libs" >&5
13144 echo $ECHO_N "checking for Gnome libs... $ECHO_C" >&6
13146 if test -d $d; then
13147 X_LIBS="-L$d $X_LIBS"
13148 echo "$as_me:$LINENO: result: $d" >&5
13149 echo "${ECHO_T}$d" >&6
13151 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13152 echo "${ECHO_T}not found ($d: no such directory)" >&6
13155 # replace the directory string with "yes".
13156 with_gnome_req="yes"
13157 with_gnome=$with_gnome_req
13162 echo "error: argument to --with-gnome must be \"yes\", \"no\", or a directory."
13163 echo " If it is a directory, then \`DIR/include' will be added to"
13164 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13170 if test "$with_gnome" != yes -a "$with_gnome" != no ; then
13171 echo "error: must be yes or no: --with-gnome=$with_gnome"
13175 parse_gtk_version_string() {
13178 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
13179 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
13181 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
13182 if test -z "$ac_gtk_version"; then
13183 ac_gtk_version=unknown
13184 ac_gtk_version_string=unknown
13192 if test "$with_gtk" = yes; then
13195 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
13196 # look in /foo/bin/ for glib-config, gtk-config, and gnome-config.
13200 if test ! -z "$gtk_dir"; then
13201 # canonicalize slashes.
13202 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
13203 gtk_path="$foo:$gtk_path"
13206 if test ! -z "$gnome_dir"; then
13207 # canonicalize slashes.
13208 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
13209 gtk_path="$foo:$gtk_path"
13212 for ac_prog in pkg-config
13214 # Extract the first word of "$ac_prog", so it can be a program name with args.
13215 set dummy $ac_prog; ac_word=$2
13216 echo "$as_me:$LINENO: checking for $ac_word" >&5
13217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13218 if test "${ac_cv_path_pkg_config+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 case $pkg_config in
13223 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $gtk_path
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13233 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
13234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 pkg_config=$ac_cv_path_pkg_config
13245 if test -n "$pkg_config"; then
13246 echo "$as_me:$LINENO: result: $pkg_config" >&5
13247 echo "${ECHO_T}$pkg_config" >&6
13249 echo "$as_me:$LINENO: result: no" >&5
13250 echo "${ECHO_T}no" >&6
13253 test -n "$pkg_config" && break
13257 if test -n "$pkg_config" ; then
13260 # run pkg-config based tests.
13263 pkg_check_version() {
13264 if test "$ok" = yes ; then
13267 echo "$as_me:$LINENO: checking for $req" >&5
13268 echo $ECHO_N "checking for $req... $ECHO_C" >&6
13269 if $pkg_config --exists "$req" ; then
13270 vers=`$pkg_config --modversion "$req"`
13271 if $pkg_config --exists "$req >= $min" ; then
13272 echo "$as_me:$LINENO: result: $vers" >&5
13273 echo "${ECHO_T}$vers" >&6
13277 echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
13278 echo "${ECHO_T}$vers (wanted >= $min)" >&6
13283 echo "$as_me:$LINENO: result: no" >&5
13284 echo "${ECHO_T}no" >&6
13291 echo "$as_me:$LINENO: result: checking for GTK 2.x with pkg-config based tests..." >&5
13292 echo "${ECHO_T}checking for GTK 2.x with pkg-config based tests..." >&6
13295 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
13296 pkg_check_version gmodule-2.0 2.0.0
13297 pkg_check_version libxml-2.0 2.4.6
13298 pkg_check_version libglade-2.0 1.99.0
13299 # pkg_check_version gdk_pixbuf 0.1
13302 if test "$have_gtk" = yes; then
13304 cat >>confdefs.h <<\_ACEOF
13305 #define HAVE_GTK2 1
13309 if test -n "$ac_gtk_version_string" ; then
13310 gtk2_halfassed="$ac_gtk_version_string"
13311 gtk2_halfassed_lib="$req"
13315 if test "$have_gtk" = no; then
13317 # we don't have GTK 2. Let's look for GTK 1.
13319 echo "$as_me:$LINENO: result: checking for GTK 1.x with pkg-config based tests..." >&5
13320 echo "${ECHO_T}checking for GTK 1.x with pkg-config based tests..." >&6
13324 pkg_check_version gtk+ 1.2 ; ac_gtk_version_string="$vers"
13325 pkg_check_version glib 1.0
13326 pkg_check_version gdk_pixbuf 0.1
13329 # Now check for Gnome...
13331 if test "$have_gtk" = yes -a "$with_gnome" = yes; then
13334 pkg_check_version capplet 1.0
13335 pkg_check_version gnomeui 1.0
13336 pkg_check_version gdk_pixbuf 0.1
13339 if test "$have_gnome" = no; then
13342 cat >>confdefs.h <<\_ACEOF
13343 #define HAVE_CRAPPLET 1
13350 if test "$have_gtk" = yes; then
13351 parse_gtk_version_string
13357 if test "$have_gtk" = yes; then
13358 echo "$as_me:$LINENO: checking for Gtk includes" >&5
13359 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
13360 if test "${ac_cv_gtk_config_cflags+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
13365 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
13366 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
13367 echo "$as_me:$LINENO: checking for Gtk libs" >&5
13368 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
13369 if test "${ac_cv_gtk_config_libs+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
13374 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
13375 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
13377 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
13378 ac_gtk_config_libs=$ac_cv_gtk_config_libs
13380 ac_gnome_config_cflags=$ac_gtk_config_cflags
13381 ac_gnome_config_libs=$ac_gtk_config_libs
13386 # run {gnome,gtk}-config based tests.
13388 echo "$as_me:$LINENO: result: checking for GTK 1.x with gtk-config based tests..." >&5
13389 echo "${ECHO_T}checking for GTK 1.x with gtk-config based tests..." >&6
13391 for ac_prog in glib12-config glib-config
13393 # Extract the first word of "$ac_prog", so it can be a program name with args.
13394 set dummy $ac_prog; ac_word=$2
13395 echo "$as_me:$LINENO: checking for $ac_word" >&5
13396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13397 if test "${ac_cv_path_glib_config+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 case $glib_config in
13402 ac_cv_path_glib_config="$glib_config" # Let the user override the test with a path.
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $gtk_path
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412 ac_cv_path_glib_config="$as_dir/$ac_word$ac_exec_ext"
13413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13422 glib_config=$ac_cv_path_glib_config
13424 if test -n "$glib_config"; then
13425 echo "$as_me:$LINENO: result: $glib_config" >&5
13426 echo "${ECHO_T}$glib_config" >&6
13428 echo "$as_me:$LINENO: result: no" >&5
13429 echo "${ECHO_T}no" >&6
13432 test -n "$glib_config" && break
13435 for ac_prog in gtk12-config gtk-config
13437 # Extract the first word of "$ac_prog", so it can be a program name with args.
13438 set dummy $ac_prog; ac_word=$2
13439 echo "$as_me:$LINENO: checking for $ac_word" >&5
13440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13441 if test "${ac_cv_path_gtk_config+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 case $gtk_config in
13446 ac_cv_path_gtk_config="$gtk_config" # Let the user override the test with a path.
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $gtk_path
13453 test -z "$as_dir" && as_dir=.
13454 for ac_exec_ext in '' $ac_executable_extensions; do
13455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13456 ac_cv_path_gtk_config="$as_dir/$ac_word$ac_exec_ext"
13457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 gtk_config=$ac_cv_path_gtk_config
13468 if test -n "$gtk_config"; then
13469 echo "$as_me:$LINENO: result: $gtk_config" >&5
13470 echo "${ECHO_T}$gtk_config" >&6
13472 echo "$as_me:$LINENO: result: no" >&5
13473 echo "${ECHO_T}no" >&6
13476 test -n "$gtk_config" && break
13480 if test "$with_gnome" = yes; then
13481 for ac_prog in gnome-config
13483 # Extract the first word of "$ac_prog", so it can be a program name with args.
13484 set dummy $ac_prog; ac_word=$2
13485 echo "$as_me:$LINENO: checking for $ac_word" >&5
13486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13487 if test "${ac_cv_path_gnome_config+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 case $gnome_config in
13492 ac_cv_path_gnome_config="$gnome_config" # Let the user override the test with a path.
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $gtk_path
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
13501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13502 ac_cv_path_gnome_config="$as_dir/$ac_word$ac_exec_ext"
13503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13512 gnome_config=$ac_cv_path_gnome_config
13514 if test -n "$gnome_config"; then
13515 echo "$as_me:$LINENO: result: $gnome_config" >&5
13516 echo "${ECHO_T}$gnome_config" >&6
13518 echo "$as_me:$LINENO: result: no" >&5
13519 echo "${ECHO_T}no" >&6
13522 test -n "$gnome_config" && break
13527 if test -n "$glib_config" -a -n "$gtk_config" ; then
13529 if test "$with_gnome" = yes -a -n "$gnome_config" ; then
13534 if test "$have_gtk" = yes; then
13535 echo "$as_me:$LINENO: checking Gtk version number" >&5
13536 echo $ECHO_N "checking Gtk version number... $ECHO_C" >&6
13537 if test "${ac_cv_gtk_version_string+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 ac_cv_gtk_version_string=`$gtk_config --version`
13542 echo "$as_me:$LINENO: result: $ac_cv_gtk_version_string" >&5
13543 echo "${ECHO_T}$ac_cv_gtk_version_string" >&6
13544 ac_gtk_version_string=$ac_cv_gtk_version_string
13545 parse_gtk_version_string
13548 if test "$have_gtk" = yes; then
13549 if test "$ac_gtk_version" = "unknown" || test "$ac_gtk_version" -lt 1002
13557 if test "$have_gtk" = yes; then
13558 echo "$as_me:$LINENO: checking for Gtk includes" >&5
13559 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
13560 if test "${ac_cv_gtk_config_cflags+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 ac_cv_gtk_config_cflags=`$gtk_config --cflags`
13565 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
13566 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
13567 echo "$as_me:$LINENO: checking for Gtk libs" >&5
13568 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
13569 if test "${ac_cv_gtk_config_libs+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 ac_cv_gtk_config_libs=`$gtk_config --libs`
13574 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
13575 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
13577 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
13578 ac_gtk_config_libs=$ac_cv_gtk_config_libs
13580 # Check for Gnome Capplet support.
13581 # Note that this is only needed with Gnome 1.x, not Gnome 2.x.
13582 # In a Gnome 2.x world, libcapplet will not exist.
13583 # (In fact, this likely won't even be checked, since in a Gnome 2.x
13584 # world, we will probably be up in the "$pkg_config" branch instead
13585 # of here in the "$gnome_config" branch.)
13587 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
13588 gnome_config_libs="gtk capplet gnomeui gdk_pixbuf"
13589 echo "$as_me:$LINENO: checking for Gnome capplet includes" >&5
13590 echo $ECHO_N "checking for Gnome capplet includes... $ECHO_C" >&6
13591 if test "${ac_cv_gnome_config_cflags+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 if ( $gnome_config --cflags $gnome_config_libs 2>&1 | \
13595 grep Unknown >/dev/null ) ; then
13596 ac_cv_gnome_config_cflags=''
13598 ac_cv_gnome_config_cflags=`$gnome_config --cflags $gnome_config_libs`
13602 ac_gnome_config_cflags=$ac_cv_gnome_config_cflags
13603 if test "$ac_gnome_config_cflags" = "" ; then
13605 echo "$as_me:$LINENO: result: no" >&5
13606 echo "${ECHO_T}no" >&6
13608 echo "$as_me:$LINENO: result: $ac_gnome_config_cflags" >&5
13609 echo "${ECHO_T}$ac_gnome_config_cflags" >&6
13613 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
13614 echo "$as_me:$LINENO: checking for Gnome capplet libs" >&5
13615 echo $ECHO_N "checking for Gnome capplet libs... $ECHO_C" >&6
13616 if test "${ac_cv_gnome_config_libs+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 if ( $gnome_config --libs $gnome_config_libs 2>&1 |
13620 grep Unknown >/dev/null ) ; then
13621 ac_cv_gnome_config_libs=''
13623 ac_cv_gnome_config_libs=`$gnome_config --libs $gnome_config_libs`
13627 ac_gnome_config_libs=$ac_cv_gnome_config_libs
13628 if test "$ac_gnome_config_libs" = "" ; then
13630 echo "$as_me:$LINENO: result: no" >&5
13631 echo "${ECHO_T}no" >&6
13633 echo "$as_me:$LINENO: result: $ac_gnome_config_libs" >&5
13634 echo "${ECHO_T}$ac_gnome_config_libs" >&6
13638 # If we have Gnome, then override the gtk-config values with
13639 # the gnome-config values.
13641 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
13642 ac_gtk_config_cflags=$ac_gnome_config_cflags
13643 ac_gtk_config_libs=$ac_gnome_config_libs
13644 cat >>confdefs.h <<\_ACEOF
13645 #define HAVE_CRAPPLET 1
13650 fi # end of {gnome,gtk}-config based tests
13652 if test "$have_gtk" = yes -a "$have_gtk2" = no; then
13653 # check for this function that was not in libcapplet 1.2.
13654 # (only needed in Gnome/Gtk 1.x, not Gnome/Gtk 2.x)
13656 ac_save_CPPFLAGS="$CPPFLAGS"
13657 ac_save_LDFLAGS="$LDFLAGS"
13658 # ac_save_LIBS="$LIBS"
13660 if test \! -z "$includedir" ; then
13661 CPPFLAGS="$CPPFLAGS -I$includedir"
13663 # note: $X_CFLAGS includes $x_includes
13664 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13666 if test \! -z "$libdir" ; then
13667 LDFLAGS="$LDFLAGS -L$libdir"
13669 # note: $X_LIBS includes $x_libraries
13670 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13672 echo "$as_me:$LINENO: checking for capplet_widget_changes_are_immediate in -lcapplet" >&5
13673 echo $ECHO_N "checking for capplet_widget_changes_are_immediate in -lcapplet... $ECHO_C" >&6
13674 if test "${ac_cv_lib_capplet_capplet_widget_changes_are_immediate+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 ac_check_lib_save_LIBS=$LIBS
13678 LIBS="-lcapplet $ac_gnome_config_libs $LIBS"
13679 cat >conftest.$ac_ext <<_ACEOF
13680 #line $LINENO "configure"
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13687 /* Override any gcc2 internal prototype to avoid an error. */
13691 /* We use char because int might match the return type of a gcc2
13692 builtin and then its argument prototype would still apply. */
13693 char capplet_widget_changes_are_immediate ();
13697 capplet_widget_changes_are_immediate ();
13702 rm -f conftest.$ac_objext conftest$ac_exeext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13704 (eval $ac_link) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=yes
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=no
13721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_check_lib_save_LIBS
13724 echo "$as_me:$LINENO: result: $ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&5
13725 echo "${ECHO_T}$ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&6
13726 if test $ac_cv_lib_capplet_capplet_widget_changes_are_immediate = yes; then
13727 cat >>confdefs.h <<\_ACEOF
13728 #define HAVE_CRAPPLET_IMMEDIATE 1
13735 CPPFLAGS="$ac_save_CPPFLAGS"
13736 LDFLAGS="$ac_save_LDFLAGS"
13737 # LIBS="$ac_save_LIBS"
13743 if test "$have_gtk" = yes; then
13744 if test -n "$pkg_config"; then
13745 if test "$have_gtk2" = yes; then
13746 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
13748 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+`
13751 GNOME_DATADIR=`$gtk_config --prefix`
13753 GNOME_DATADIR="$GNOME_DATADIR/share"
13756 # .desktop files go in different places in Gnome 1.x and Gnome 2.x...
13757 if test "$have_gtk2" = yes; then
13758 GNOME_PANELDIR='$(GNOME_PANELDIR2)'
13760 GNOME_PANELDIR='$(GNOME_PANELDIR1)'
13764 if test "$have_gtk" = yes; then
13765 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
13766 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
13767 cat >>confdefs.h <<\_ACEOF
13772 if test "$have_gtk2" = yes; then
13775 GTK_EXTRA_OBJS="\$(GTK_EXTRA_OBJS)"
13782 # Check for the Gnome Help Browser.
13784 if test "$have_gtk" = yes; then
13785 for ac_prog in yelp gnome-help-browser
13787 # Extract the first word of "$ac_prog", so it can be a program name with args.
13788 set dummy $ac_prog; ac_word=$2
13789 echo "$as_me:$LINENO: checking for $ac_word" >&5
13790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13791 if test "${ac_cv_prog_have_gnome_help+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 if test -n "$have_gnome_help"; then
13795 ac_cv_prog_have_gnome_help="$have_gnome_help" # Let the user override the test.
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_have_gnome_help="$ac_prog"
13805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13813 have_gnome_help=$ac_cv_prog_have_gnome_help
13814 if test -n "$have_gnome_help"; then
13815 echo "$as_me:$LINENO: result: $have_gnome_help" >&5
13816 echo "${ECHO_T}$have_gnome_help" >&6
13818 echo "$as_me:$LINENO: result: no" >&5
13819 echo "${ECHO_T}no" >&6
13822 test -n "$have_gnome_help" && break
13824 test -n "$have_gnome_help" || have_gnome_help="no"
13826 if test "$have_gnome_help" != no; then
13827 have_gnome_help=yes
13832 ###############################################################################
13836 ###############################################################################
13839 with_xml_req=unspecified
13842 # Check whether --with-xml or --without-xml was given.
13843 if test "${with_xml+set}" = set; then
13844 withval="$with_xml"
13845 with_xml="$withval"; with_xml_req="$withval"
13850 # if --with-xml=/directory/ was specified, remember that directory so that
13851 # we can also look for the `xml-config' program in that directory.
13852 case "$with_xml" in
13854 xml_dir="$with_xml"
13862 case "$with_xml" in
13867 echo "$as_me:$LINENO: checking for XML headers" >&5
13868 echo $ECHO_N "checking for XML headers... $ECHO_C" >&6
13869 d=$with_xml/include
13870 if test -d $d; then
13871 X_CFLAGS="-I$d $X_CFLAGS"
13872 echo "$as_me:$LINENO: result: $d" >&5
13873 echo "${ECHO_T}$d" >&6
13875 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13876 echo "${ECHO_T}not found ($d: no such directory)" >&6
13879 echo "$as_me:$LINENO: checking for XML libs" >&5
13880 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
13882 if test -d $d; then
13883 X_LIBS="-L$d $X_LIBS"
13884 echo "$as_me:$LINENO: result: $d" >&5
13885 echo "${ECHO_T}$d" >&6
13887 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13888 echo "${ECHO_T}not found ($d: no such directory)" >&6
13891 # replace the directory string with "yes".
13893 with_xml=$with_xml_req
13898 echo "error: argument to --with-xml must be \"yes\", \"no\", or a directory."
13899 echo " If it is a directory, then \`DIR/include' will be added to"
13900 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13906 if test "$with_xml" != yes -a "$with_xml" != no ; then
13907 echo "error: must be yes or no: --with-xml=$with_xml"
13911 if test "$with_xml" = yes; then
13915 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
13916 # look in /foo/bin/ for for xml-config.
13920 if test ! -z "$gtk_dir"; then
13921 # canonicalize slashes.
13922 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
13923 xml_path="$foo:$xml_path"
13926 if test ! -z "$gnome_dir"; then
13927 # canonicalize slashes.
13928 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
13929 xml_path="$foo:$xml_path"
13932 if test -n "$pkg_config" ; then
13935 # run pkg-config based tests.
13940 # If we have Gtk 2.x, then *only* XML 2.x will work.
13941 # If we have Gtk 1.x, or don't have Gtk at all, then
13942 # either XML 1.x or 2.x will work.
13944 # First check for XML 2.x.
13946 pkg_check_version libxml-2.0 2.4.6
13948 # If that didn't work (we don't have XML 2.x) and we *don't* have
13949 # Gtk 2.x, then check to see if we have XML 1.x
13951 if test "$ok" = no -a "$have_gtk2" = no; then
13953 pkg_check_version libxml 1.0
13958 if test "$have_xml" = yes; then
13959 echo "$as_me:$LINENO: checking for XML includes" >&5
13960 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
13961 if test "${ac_cv_xml_config_cflags+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 ac_cv_xml_config_cflags=`$pkg_config --cflags $pkgs`
13966 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
13967 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
13968 echo "$as_me:$LINENO: checking for XML libs" >&5
13969 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
13970 if test "${ac_cv_xml_config_libs+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 ac_cv_xml_config_libs=`$pkg_config --libs $pkgs`
13975 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
13976 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
13977 ac_xml_config_cflags=$ac_cv_xml_config_cflags
13978 ac_xml_config_libs=$ac_cv_xml_config_libs
13984 # run {xml2,xml}-config based tests.
13987 for ac_prog in xml2-config xml-config
13989 # Extract the first word of "$ac_prog", so it can be a program name with args.
13990 set dummy $ac_prog; ac_word=$2
13991 echo "$as_me:$LINENO: checking for $ac_word" >&5
13992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13993 if test "${ac_cv_path_xml_config+set}" = set; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 case $xml_config in
13998 ac_cv_path_xml_config="$xml_config" # Let the user override the test with a path.
14001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14002 for as_dir in $xml_path
14005 test -z "$as_dir" && as_dir=.
14006 for ac_exec_ext in '' $ac_executable_extensions; do
14007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14008 ac_cv_path_xml_config="$as_dir/$ac_word$ac_exec_ext"
14009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 xml_config=$ac_cv_path_xml_config
14020 if test -n "$xml_config"; then
14021 echo "$as_me:$LINENO: result: $xml_config" >&5
14022 echo "${ECHO_T}$xml_config" >&6
14024 echo "$as_me:$LINENO: result: no" >&5
14025 echo "${ECHO_T}no" >&6
14028 test -n "$xml_config" && break
14032 # If we found the xml-config program, run it to get flags.
14034 if test -n "$xml_config" ; then
14035 echo "$as_me:$LINENO: checking for XML includes" >&5
14036 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
14037 if test "${ac_cv_xml_config_cflags+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 ac_cv_xml_config_cflags=`$xml_config --cflags`
14042 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
14043 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
14044 echo "$as_me:$LINENO: checking for XML libs" >&5
14045 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
14046 if test "${ac_cv_xml_config_libs+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 ac_cv_xml_config_libs=`$xml_config --libs`
14051 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
14052 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
14053 ac_xml_config_cflags=$ac_cv_xml_config_cflags
14054 ac_xml_config_libs=$ac_cv_xml_config_libs
14057 ac_save_xml_CPPFLAGS="$CPPFLAGS"
14058 CPPFLAGS="$CPPFLAGS $ac_xml_config_cflags"
14060 # first try <libxml/parser.h> which is the new way...
14063 ac_save_CPPFLAGS="$CPPFLAGS"
14064 if test \! -z "$includedir" ; then
14065 CPPFLAGS="$CPPFLAGS -I$includedir"
14067 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14068 echo "$as_me:$LINENO: checking for libxml/xmlIO.h" >&5
14069 echo $ECHO_N "checking for libxml/xmlIO.h... $ECHO_C" >&6
14070 if test "${ac_cv_header_libxml_xmlIO_h+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 cat >conftest.$ac_ext <<_ACEOF
14074 #line $LINENO "configure"
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 #include <libxml/parser.h>
14082 #include <libxml/xmlIO.h>
14084 rm -f conftest.$ac_objext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14086 (eval $ac_compile) 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -s conftest.$ac_objext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_header_libxml_xmlIO_h=yes
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_cv_header_libxml_xmlIO_h=no
14103 rm -f conftest.$ac_objext conftest.$ac_ext
14105 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_xmlIO_h" >&5
14106 echo "${ECHO_T}$ac_cv_header_libxml_xmlIO_h" >&6
14107 if test $ac_cv_header_libxml_xmlIO_h = yes; then
14112 CPPFLAGS="$ac_save_CPPFLAGS"
14114 # if that didn't work, then try just <parser.h> which is the old way...
14116 if test "$have_xml" = no; then
14118 ac_save_CPPFLAGS="$CPPFLAGS"
14119 if test \! -z "$includedir" ; then
14120 CPPFLAGS="$CPPFLAGS -I$includedir"
14122 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14123 echo "$as_me:$LINENO: checking for xmlIO.h" >&5
14124 echo $ECHO_N "checking for xmlIO.h... $ECHO_C" >&6
14125 if test "${ac_cv_header_xmlIO_h+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 cat >conftest.$ac_ext <<_ACEOF
14129 #line $LINENO "configure"
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135 #include <parser.h>
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141 (eval $ac_compile) 2>&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } &&
14145 { ac_try='test -s conftest.$ac_objext'
14146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; }; then
14151 ac_cv_header_xmlIO_h=yes
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14156 ac_cv_header_xmlIO_h=no
14158 rm -f conftest.$ac_objext conftest.$ac_ext
14160 echo "$as_me:$LINENO: result: $ac_cv_header_xmlIO_h" >&5
14161 echo "${ECHO_T}$ac_cv_header_xmlIO_h" >&6
14162 if test $ac_cv_header_xmlIO_h = yes; then
14163 have_xml=yes; have_old_xml=yes
14167 CPPFLAGS="$ac_save_CPPFLAGS"
14170 CPPFLAGS="$ac_save_xml_CPPFLAGS"
14175 if test "$have_xml" = yes; then
14176 # we have the XML headers; now make sure zlib is around.
14177 # yes, it's stupid we have to do this too, but there is
14178 # dependency screwage in Gnome.
14180 ac_save_CPPFLAGS="$CPPFLAGS"
14181 ac_save_LDFLAGS="$LDFLAGS"
14182 # ac_save_LIBS="$LIBS"
14184 if test \! -z "$includedir" ; then
14185 CPPFLAGS="$CPPFLAGS -I$includedir"
14187 # note: $X_CFLAGS includes $x_includes
14188 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14190 if test \! -z "$libdir" ; then
14191 LDFLAGS="$LDFLAGS -L$libdir"
14193 # note: $X_LIBS includes $x_libraries
14194 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14196 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
14197 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
14198 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 ac_check_lib_save_LIBS=$LIBS
14203 cat >conftest.$ac_ext <<_ACEOF
14204 #line $LINENO "configure"
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14211 /* Override any gcc2 internal prototype to avoid an error. */
14215 /* We use char because int might match the return type of a gcc2
14216 builtin and then its argument prototype would still apply. */
14217 char zlibVersion ();
14226 rm -f conftest.$ac_objext conftest$ac_exeext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14228 (eval $ac_link) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } &&
14232 { ac_try='test -s conftest$ac_exeext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 ac_cv_lib_z_zlibVersion=yes
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ac_cv_lib_z_zlibVersion=no
14245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14246 LIBS=$ac_check_lib_save_LIBS
14248 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
14249 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
14250 if test $ac_cv_lib_z_zlibVersion = yes; then
14254 CPPFLAGS="$ac_save_CPPFLAGS"
14255 LDFLAGS="$ac_save_LDFLAGS"
14256 # LIBS="$ac_save_LIBS"
14258 if test "$have_zlib" = no; then
14264 if test "$have_xml" = yes; then
14265 # we have the header, now check for the library
14269 ac_save_CPPFLAGS="$CPPFLAGS"
14270 ac_save_LDFLAGS="$LDFLAGS"
14271 # ac_save_LIBS="$LIBS"
14273 if test \! -z "$includedir" ; then
14274 CPPFLAGS="$CPPFLAGS -I$includedir"
14276 # note: $X_CFLAGS includes $x_includes
14277 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14279 if test \! -z "$libdir" ; then
14280 LDFLAGS="$LDFLAGS -L$libdir"
14282 # note: $X_LIBS includes $x_libraries
14283 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14285 echo "$as_me:$LINENO: checking for xmlParseChunk in -lc" >&5
14286 echo $ECHO_N "checking for xmlParseChunk in -lc... $ECHO_C" >&6
14287 if test "${ac_cv_lib_c_xmlParseChunk+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 ac_check_lib_save_LIBS=$LIBS
14291 LIBS="-lc $ac_xml_config_libs $LIBS"
14292 cat >conftest.$ac_ext <<_ACEOF
14293 #line $LINENO "configure"
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14300 /* Override any gcc2 internal prototype to avoid an error. */
14304 /* We use char because int might match the return type of a gcc2
14305 builtin and then its argument prototype would still apply. */
14306 char xmlParseChunk ();
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14317 (eval $ac_link) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -s conftest$ac_exeext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_lib_c_xmlParseChunk=yes
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 ac_cv_lib_c_xmlParseChunk=no
14334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14335 LIBS=$ac_check_lib_save_LIBS
14337 echo "$as_me:$LINENO: result: $ac_cv_lib_c_xmlParseChunk" >&5
14338 echo "${ECHO_T}$ac_cv_lib_c_xmlParseChunk" >&6
14339 if test $ac_cv_lib_c_xmlParseChunk = yes; then
14342 XML_LIBS="$ac_xml_config_libs"
14343 cat >>confdefs.h <<\_ACEOF
14351 CPPFLAGS="$ac_save_CPPFLAGS"
14352 LDFLAGS="$ac_save_LDFLAGS"
14353 # LIBS="$ac_save_LIBS"
14357 if test "$have_xml" = yes; then
14358 INCLUDES="$INCLUDES $ac_xml_config_cflags"
14359 GTK_LIBS="$GTK_LIBS $ac_xml_config_libs"
14360 cat >>confdefs.h <<\_ACEOF
14364 if test "$have_old_xml" = yes; then
14365 cat >>confdefs.h <<\_ACEOF
14366 #define HAVE_OLD_XML_HEADERS 1
14375 ###############################################################################
14377 # Checking whether Motif is really Lesstif.
14379 ###############################################################################
14382 if test "$have_motif" = yes ; then
14383 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
14384 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
14385 if test "${ac_cv_have_lesstif+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 ac_save_CPPFLAGS="$CPPFLAGS"
14390 if test \! -z "$includedir" ; then
14391 CPPFLAGS="$CPPFLAGS -I$includedir"
14393 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14394 cat >conftest.$ac_ext <<_ACEOF
14395 #line $LINENO "configure"
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14405 long vers = LesstifVersion;
14410 rm -f conftest.$ac_objext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14412 (eval $ac_compile) 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } &&
14416 { ac_try='test -s conftest.$ac_objext'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_cv_have_lesstif=yes
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_cv_have_lesstif=no
14429 rm -f conftest.$ac_objext conftest.$ac_ext
14430 CPPFLAGS="$ac_save_CPPFLAGS"
14432 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
14433 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
14434 have_lesstif=$ac_cv_have_lesstif
14438 lesstif_version=unknown
14439 lesstif_version_string=unknown
14441 if test "$have_lesstif" = yes ; then
14443 echo unknown > conftest-lt
14444 echo "$as_me:$LINENO: checking LessTif version number" >&5
14445 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
14446 if test "${ac_cv_lesstif_version_string+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 ac_save_CPPFLAGS="$CPPFLAGS"
14451 if test \! -z "$includedir" ; then
14452 CPPFLAGS="$CPPFLAGS -I$includedir"
14454 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14455 if test "$cross_compiling" = yes; then
14456 ac_cv_lesstif_version=unknown
14457 ac_cv_lesstif_version_string=unknown
14459 cat >conftest.$ac_ext <<_ACEOF
14460 #line $LINENO "configure"
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14469 FILE *f = fopen("conftest-lt", "w");
14471 fprintf(f, "%d %d.%d\n", LesstifVersion,
14472 LESSTIF_VERSION, LESSTIF_REVISION);
14477 rm -f conftest$ac_exeext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14479 (eval $ac_link) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488 ltv=`cat conftest-lt`
14489 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
14490 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
14492 echo "$as_me: program exited with status $ac_status" >&5
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 ( exit $ac_status )
14497 ac_cv_lesstif_version=unknown
14498 ac_cv_lesstif_version_string=unknown
14500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14502 CPPFLAGS="$ac_save_CPPFLAGS"
14504 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
14505 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
14507 lesstif_version=$ac_cv_lesstif_version
14508 lesstif_version_string=$ac_cv_lesstif_version_string
14513 if test "$have_motif" = yes ; then
14515 echo unknown > conftest-mt
14516 echo "$as_me:$LINENO: checking Motif version number" >&5
14517 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
14518 if test "${ac_cv_motif_version_string+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 ac_save_CPPFLAGS="$CPPFLAGS"
14523 if test \! -z "$includedir" ; then
14524 CPPFLAGS="$CPPFLAGS -I$includedir"
14526 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14527 if test "$cross_compiling" = yes; then
14528 ac_cv_motif_version=unknown
14529 ac_cv_motif_version_string=unknown
14531 cat >conftest.$ac_ext <<_ACEOF
14532 #line $LINENO "configure"
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14541 FILE *f = fopen("conftest-mt", "w");
14543 fprintf(f, "%d %d.%d\n", XmVersion,
14544 XmVERSION, XmREVISION);
14549 rm -f conftest$ac_exeext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551 (eval $ac_link) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; }; then
14560 mtv=`cat conftest-mt`
14561 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
14562 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
14564 echo "$as_me: program exited with status $ac_status" >&5
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 ( exit $ac_status )
14569 ac_cv_motif_version=unknown
14570 ac_cv_motif_version_string=unknown
14572 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14574 CPPFLAGS="$ac_save_CPPFLAGS"
14576 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
14577 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
14579 motif_version=$ac_cv_motif_version
14580 motif_version_string=$ac_cv_motif_version_string
14585 ###############################################################################
14587 # Checking whether Motif requires -lXpm.
14589 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
14590 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
14591 # of the library whether to build the XPM code into libXm, or whether
14592 # to rely on an external libXm. So the only way to tell whether XPM is
14593 # a link-time requirement is to examine libXm.a, which is very
14594 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
14595 # always link against XPM if the XPM lib exists (and this will be a
14596 # no-op if libXm happens to already have the XPM code in it.)
14598 ###############################################################################
14600 motif_requires_xpm=no
14601 if test "$have_motif" = yes ; then
14602 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
14603 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
14604 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
14606 motif_requires_xpm=yes
14607 echo "$as_me:$LINENO: result: maybe" >&5
14608 echo "${ECHO_T}maybe" >&6
14610 echo "$as_me:$LINENO: result: no" >&5
14611 echo "${ECHO_T}no" >&6
14616 ###############################################################################
14618 # Checking whether Motif requires -lXp.
14620 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
14621 # Extension". Why this extension isn't in -lXext with all the others,
14624 ###############################################################################
14627 if test "$have_motif" = yes ; then
14630 ac_save_CPPFLAGS="$CPPFLAGS"
14631 ac_save_LDFLAGS="$LDFLAGS"
14632 # ac_save_LIBS="$LIBS"
14634 if test \! -z "$includedir" ; then
14635 CPPFLAGS="$CPPFLAGS -I$includedir"
14637 # note: $X_CFLAGS includes $x_includes
14638 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14640 if test \! -z "$libdir" ; then
14641 LDFLAGS="$LDFLAGS -L$libdir"
14643 # note: $X_LIBS includes $x_libraries
14644 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14646 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
14647 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
14648 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 ac_check_lib_save_LIBS=$LIBS
14652 LIBS="-lXp -lX11 -lXext -lm $LIBS"
14653 cat >conftest.$ac_ext <<_ACEOF
14654 #line $LINENO "configure"
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14661 /* Override any gcc2 internal prototype to avoid an error. */
14665 /* We use char because int might match the return type of a gcc2
14666 builtin and then its argument prototype would still apply. */
14667 char XpQueryExtension ();
14671 XpQueryExtension ();
14676 rm -f conftest.$ac_objext conftest$ac_exeext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14678 (eval $ac_link) 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } &&
14682 { ac_try='test -s conftest$ac_exeext'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }; then
14688 ac_cv_lib_Xp_XpQueryExtension=yes
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ac_cv_lib_Xp_XpQueryExtension=no
14695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14696 LIBS=$ac_check_lib_save_LIBS
14698 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
14699 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
14700 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
14701 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
14706 CPPFLAGS="$ac_save_CPPFLAGS"
14707 LDFLAGS="$ac_save_LDFLAGS"
14708 # LIBS="$ac_save_LIBS"
14713 ###############################################################################
14715 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
14717 ###############################################################################
14720 if test "$have_motif" = yes ; then
14722 ac_save_CPPFLAGS="$CPPFLAGS"
14723 ac_save_LDFLAGS="$LDFLAGS"
14724 # ac_save_LIBS="$LIBS"
14726 if test \! -z "$includedir" ; then
14727 CPPFLAGS="$CPPFLAGS -I$includedir"
14729 # note: $X_CFLAGS includes $x_includes
14730 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14732 if test \! -z "$libdir" ; then
14733 LDFLAGS="$LDFLAGS -L$libdir"
14735 # note: $X_LIBS includes $x_libraries
14736 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14738 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
14739 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
14740 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 ac_check_lib_save_LIBS=$LIBS
14744 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
14745 cat >conftest.$ac_ext <<_ACEOF
14746 #line $LINENO "configure"
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14753 /* Override any gcc2 internal prototype to avoid an error. */
14757 /* We use char because int might match the return type of a gcc2
14758 builtin and then its argument prototype would still apply. */
14759 char _Xsetlocale ();
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770 (eval $ac_link) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -s conftest$ac_exeext'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 ac_cv_lib_Xintl__Xsetlocale=yes
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14785 ac_cv_lib_Xintl__Xsetlocale=no
14787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14788 LIBS=$ac_check_lib_save_LIBS
14790 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
14791 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
14792 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
14798 CPPFLAGS="$ac_save_CPPFLAGS"
14799 LDFLAGS="$ac_save_LDFLAGS"
14800 # LIBS="$ac_save_LIBS"
14802 if test "$have_xintl" = yes; then
14803 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
14808 ###############################################################################
14810 # Check for -lGL or -lMesaGL.
14812 ###############################################################################
14816 with_gl_req=unspecified
14819 # Check whether --with-gl or --without-gl was given.
14820 if test "${with_gl+set}" = set; then
14822 with_gl="$withval"; with_gl_req="$withval"
14833 echo "$as_me:$LINENO: checking for GL headers" >&5
14834 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
14836 if test -d $d; then
14837 X_CFLAGS="-I$d $X_CFLAGS"
14838 echo "$as_me:$LINENO: result: $d" >&5
14839 echo "${ECHO_T}$d" >&6
14841 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14842 echo "${ECHO_T}not found ($d: no such directory)" >&6
14845 echo "$as_me:$LINENO: checking for GL libs" >&5
14846 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
14848 if test -d $d; then
14849 X_LIBS="-L$d $X_LIBS"
14850 echo "$as_me:$LINENO: result: $d" >&5
14851 echo "${ECHO_T}$d" >&6
14853 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14854 echo "${ECHO_T}not found ($d: no such directory)" >&6
14857 # replace the directory string with "yes".
14859 with_gl=$with_gl_req
14864 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
14865 echo " If it is a directory, then \`DIR/include' will be added to"
14866 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14872 ac_mesagl_version=unknown
14873 ac_mesagl_version_string=unknown
14875 if test "$with_gl" = yes; then
14877 ac_save_CPPFLAGS="$CPPFLAGS"
14878 if test \! -z "$includedir" ; then
14879 CPPFLAGS="$CPPFLAGS -I$includedir"
14881 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14882 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14883 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
14884 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
14885 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
14889 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
14891 # Is the header compilable?
14892 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
14893 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
14894 cat >conftest.$ac_ext <<_ACEOF
14895 #line $LINENO "configure"
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 $ac_includes_default
14904 rm -f conftest.$ac_objext
14905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14906 (eval $ac_compile) 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -s conftest.$ac_objext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 ac_header_compiler=yes
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ac_header_compiler=no
14923 rm -f conftest.$ac_objext conftest.$ac_ext
14924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14925 echo "${ECHO_T}$ac_header_compiler" >&6
14927 # Is the header present?
14928 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
14929 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
14930 cat >conftest.$ac_ext <<_ACEOF
14931 #line $LINENO "configure"
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14942 grep -v '^ *+' conftest.er1 >conftest.err
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } >/dev/null; then
14947 if test -s conftest.err; then
14948 ac_cpp_err=$ac_c_preproc_warn_flag
14955 if test -z "$ac_cpp_err"; then
14956 ac_header_preproc=yes
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 ac_header_preproc=no
14963 rm -f conftest.err conftest.$ac_ext
14964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14965 echo "${ECHO_T}$ac_header_preproc" >&6
14967 # So? What about this header?
14968 case $ac_header_compiler:$ac_header_preproc in
14970 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14971 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
14973 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
14976 ## ------------------------------------ ##
14977 ## Report this to bug-autoconf@gnu.org. ##
14978 ## ------------------------------------ ##
14981 sed "s/^/$as_me: WARNING: /" >&2
14984 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
14985 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
14987 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
14989 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
14992 ## ------------------------------------ ##
14993 ## Report this to bug-autoconf@gnu.org. ##
14994 ## ------------------------------------ ##
14997 sed "s/^/$as_me: WARNING: /" >&2
15000 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15001 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15002 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 ac_cv_header_GL_gl_h=$ac_header_preproc
15007 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15008 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15011 if test $ac_cv_header_GL_gl_h = yes; then
15018 CPPFLAGS="$ac_save_CPPFLAGS"
15019 if test "$have_gl" = yes ; then
15021 ac_save_CPPFLAGS="$CPPFLAGS"
15022 if test \! -z "$includedir" ; then
15023 CPPFLAGS="$CPPFLAGS -I$includedir"
15025 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15026 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
15027 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
15028 if test "${ac_cv_header_GL_glx_h+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 cat >conftest.$ac_ext <<_ACEOF
15032 #line $LINENO "configure"
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15040 #include <GL/glx.h>
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044 (eval $ac_compile) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -s conftest.$ac_objext'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 ac_cv_header_GL_glx_h=yes
15056 echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15059 ac_cv_header_GL_glx_h=no
15061 rm -f conftest.$ac_objext conftest.$ac_ext
15063 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
15064 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
15065 if test $ac_cv_header_GL_glx_h = yes; then
15072 CPPFLAGS="$ac_save_CPPFLAGS"
15075 # If we have the headers, try and figure out which vendor it's from.
15077 if test "$have_gl" = yes ; then
15079 # We need to know whether it's MesaGL so that we know which libraries
15082 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
15083 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
15084 if test "${ac_cv_have_mesa_gl+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 ac_cv_have_mesa_gl=no
15089 ac_save_CPPFLAGS="$CPPFLAGS"
15090 if test \! -z "$includedir" ; then
15091 CPPFLAGS="$CPPFLAGS -I$includedir"
15093 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15094 cat >conftest.$ac_ext <<_ACEOF
15095 #line $LINENO "configure"
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101 #include <GL/glx.h>
15104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15105 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
15106 ac_cv_have_mesa_gl=yes
15110 CPPFLAGS="$ac_save_CPPFLAGS"
15113 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
15114 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
15115 ac_have_mesa_gl=$ac_cv_have_mesa_gl
15122 # Some versions of MesaGL are compiled to require -lpthread.
15123 # So if the Mesa headers exist, and -lpthread exists, then always
15124 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
15126 if test "$ac_have_mesa_gl" = yes; then
15127 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15128 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
15129 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 ac_check_lib_save_LIBS=$LIBS
15133 LIBS="-lpthread $LIBS"
15134 cat >conftest.$ac_ext <<_ACEOF
15135 #line $LINENO "configure"
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15142 /* Override any gcc2 internal prototype to avoid an error. */
15146 /* We use char because int might match the return type of a gcc2
15147 builtin and then its argument prototype would still apply. */
15148 char pthread_create ();
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159 (eval $ac_link) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } &&
15163 { ac_try='test -s conftest$ac_exeext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_lib_pthread_pthread_create=yes
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 ac_cv_lib_pthread_pthread_create=no
15176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15179 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
15180 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
15181 if test $ac_cv_lib_pthread_pthread_create = yes; then
15182 GL_LIBS="-lpthread"
15188 # If we have Mesa headers, check to see if we can link against -lMesaGL.
15189 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
15190 # Else, warn that GL is busted. (We have the headers, but no libs.)
15193 if test "$ac_have_mesa_gl" = yes ; then
15195 ac_save_CPPFLAGS="$CPPFLAGS"
15196 ac_save_LDFLAGS="$LDFLAGS"
15197 # ac_save_LIBS="$LIBS"
15199 if test \! -z "$includedir" ; then
15200 CPPFLAGS="$CPPFLAGS -I$includedir"
15202 # note: $X_CFLAGS includes $x_includes
15203 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15205 if test \! -z "$libdir" ; then
15206 LDFLAGS="$LDFLAGS -L$libdir"
15208 # note: $X_LIBS includes $x_libraries
15209 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15211 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
15212 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
15213 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 ac_check_lib_save_LIBS=$LIBS
15217 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
15218 cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15226 /* Override any gcc2 internal prototype to avoid an error. */
15230 /* We use char because int might match the return type of a gcc2
15231 builtin and then its argument prototype would still apply. */
15232 char glXCreateContext ();
15236 glXCreateContext ();
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243 (eval $ac_link) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } &&
15247 { ac_try='test -s conftest$ac_exeext'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 ac_cv_lib_MesaGL_glXCreateContext=yes
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15258 ac_cv_lib_MesaGL_glXCreateContext=no
15260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15261 LIBS=$ac_check_lib_save_LIBS
15263 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
15264 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
15265 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
15267 GL_LIBS="-lMesaGL -lMesaGLU $GL_LIBS"
15270 CPPFLAGS="$ac_save_CPPFLAGS"
15271 LDFLAGS="$ac_save_LDFLAGS"
15272 # LIBS="$ac_save_LIBS"
15276 if test "$gl_lib_1" = "" ; then
15278 ac_save_CPPFLAGS="$CPPFLAGS"
15279 ac_save_LDFLAGS="$LDFLAGS"
15280 # ac_save_LIBS="$LIBS"
15282 if test \! -z "$includedir" ; then
15283 CPPFLAGS="$CPPFLAGS -I$includedir"
15285 # note: $X_CFLAGS includes $x_includes
15286 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15288 if test \! -z "$libdir" ; then
15289 LDFLAGS="$LDFLAGS -L$libdir"
15291 # note: $X_LIBS includes $x_libraries
15292 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15294 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
15295 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
15296 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 ac_check_lib_save_LIBS=$LIBS
15300 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
15301 cat >conftest.$ac_ext <<_ACEOF
15302 #line $LINENO "configure"
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15309 /* Override any gcc2 internal prototype to avoid an error. */
15313 /* We use char because int might match the return type of a gcc2
15314 builtin and then its argument prototype would still apply. */
15315 char glXCreateContext ();
15319 glXCreateContext ();
15324 rm -f conftest.$ac_objext conftest$ac_exeext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15326 (eval $ac_link) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try='test -s conftest$ac_exeext'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_cv_lib_GL_glXCreateContext=yes
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 ac_cv_lib_GL_glXCreateContext=no
15343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15346 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
15347 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
15348 if test $ac_cv_lib_GL_glXCreateContext = yes; then
15350 GL_LIBS="-lGL -lGLU $GL_LIBS"
15353 CPPFLAGS="$ac_save_CPPFLAGS"
15354 LDFLAGS="$ac_save_LDFLAGS"
15355 # LIBS="$ac_save_LIBS"
15359 if test "$gl_lib_1" = "" ; then
15360 # we have headers, but no libs -- bail.
15365 # linking works -- we can build the GL hacks.
15366 cat >>confdefs.h <<\_ACEOF
15370 if test "$ac_have_mesa_gl" = yes ; then
15371 cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_MESA_GL 1
15380 # Now that we know we have GL headers and libs, do some more GL testing.
15383 if test "$have_gl" = yes ; then
15384 # If it's MesaGL, we'd like to issue a warning if the version number
15385 # is less than or equal to 2.6, because that version had a security bug.
15387 if test "$ac_have_mesa_gl" = yes; then
15389 echo "$as_me:$LINENO: checking MesaGL version number" >&5
15390 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
15391 if test "${ac_cv_mesagl_version_string+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 cat > conftest.$ac_ext <<EOF
15395 #line 15401 "configure"
15396 #include "confdefs.h"
15398 #ifndef MESA_MAJOR_VERSION
15399 # include <GL/xmesa.h>
15400 # ifdef XMESA_MAJOR_VERSION
15401 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
15402 we have to check the XMesa version number (the number of the X protocol
15403 support, which seems to be the same as the Mesa version number.)
15405 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
15406 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
15408 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
15409 so we have no way of telling what version of Mesa this is at all.
15410 So, we'll guess that the osmesa version (the "offscreen protocol")
15411 is less than or equal to the real mesa version number. Except that
15412 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
15413 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
15415 # include <GL/osmesa.h>
15416 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
15417 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
15418 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
15419 # undef MESA_MINOR_VERSION
15420 # define MESA_MINOR_VERSION 4 or newer, probably?
15424 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
15427 ac_save_CPPFLAGS="$CPPFLAGS"
15428 if test \! -z "$includedir" ; then
15429 CPPFLAGS="$CPPFLAGS -I$includedir"
15431 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15433 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
15437 mglv=`echo "$mglv" | sed -n \
15438 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
15441 rm -f conftest.$ac_ext
15443 CPPFLAGS="$ac_save_CPPFLAGS"
15445 if test "$mglv" = ""; then
15446 ac_mesagl_version=unknown
15447 ac_mesagl_version_string=unknown
15449 ac_mesagl_version_string="$mglv"
15452 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
15453 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
15455 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
15456 if test -z "$ac_mesagl_version"; then
15457 ac_mesagl_version=unknown
15458 ac_mesagl_version_string=unknown
15461 ac_cv_mesagl_version=$ac_mesagl_version
15462 ac_cv_mesagl_version_string=$ac_mesagl_version_string
15465 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
15466 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
15467 ac_mesagl_version=$ac_cv_mesagl_version
15468 ac_mesagl_version_string=$ac_cv_mesagl_version_string
15472 # Check for OpenGL 1.1 features.
15475 ac_save_CPPFLAGS="$CPPFLAGS"
15476 ac_save_LDFLAGS="$LDFLAGS"
15477 # ac_save_LIBS="$LIBS"
15479 if test \! -z "$includedir" ; then
15480 CPPFLAGS="$CPPFLAGS -I$includedir"
15482 # note: $X_CFLAGS includes $x_includes
15483 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15485 if test \! -z "$libdir" ; then
15486 LDFLAGS="$LDFLAGS -L$libdir"
15488 # note: $X_LIBS includes $x_libraries
15489 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15491 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
15492 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
15493 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
15494 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 ac_check_lib_save_LIBS=$LIBS
15498 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
15499 cat >conftest.$ac_ext <<_ACEOF
15500 #line $LINENO "configure"
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15507 /* Override any gcc2 internal prototype to avoid an error. */
15511 /* We use char because int might match the return type of a gcc2
15512 builtin and then its argument prototype would still apply. */
15513 char glBindTexture ();
15522 rm -f conftest.$ac_objext conftest$ac_exeext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15524 (eval $ac_link) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try='test -s conftest$ac_exeext'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 eval "$as_ac_Lib=yes"
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 eval "$as_ac_Lib=no"
15541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15542 LIBS=$ac_check_lib_save_LIBS
15544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15545 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15546 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_GLBINDTEXTURE 1
15555 CPPFLAGS="$ac_save_CPPFLAGS"
15556 LDFLAGS="$ac_save_LDFLAGS"
15557 # LIBS="$ac_save_LIBS"
15561 elif test "$with_gl" != no; then
15562 echo "error: must be yes or no: --with-gl=$with_gl"
15567 ###############################################################################
15571 ###############################################################################
15574 with_gle_req=unspecified
15577 # Check whether --with-gle or --without-gle was given.
15578 if test "${with_gle+set}" = set; then
15579 withval="$with_gle"
15580 with_gle="$withval"; with_gle_req="$withval"
15586 case "$with_gle" in
15591 echo "$as_me:$LINENO: checking for GLE headers" >&5
15592 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
15593 d=$with_gle/include
15594 if test -d $d; then
15595 X_CFLAGS="-I$d $X_CFLAGS"
15596 echo "$as_me:$LINENO: result: $d" >&5
15597 echo "${ECHO_T}$d" >&6
15599 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15600 echo "${ECHO_T}not found ($d: no such directory)" >&6
15603 echo "$as_me:$LINENO: checking for GLE libs" >&5
15604 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
15606 if test -d $d; then
15607 X_LIBS="-L$d $X_LIBS"
15608 echo "$as_me:$LINENO: result: $d" >&5
15609 echo "${ECHO_T}$d" >&6
15611 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15612 echo "${ECHO_T}not found ($d: no such directory)" >&6
15615 # replace the directory string with "yes".
15617 with_gle=$with_gle_req
15622 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
15623 echo " If it is a directory, then \`DIR/include' will be added to"
15624 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15632 if test "$have_gl" = no ; then
15634 elif test "$with_gle" = yes; then
15637 ac_save_CPPFLAGS="$CPPFLAGS"
15638 if test \! -z "$includedir" ; then
15639 CPPFLAGS="$CPPFLAGS -I$includedir"
15641 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15642 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
15643 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
15644 if test "${ac_cv_header_GL_gle_h+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 cat >conftest.$ac_ext <<_ACEOF
15648 #line $LINENO "configure"
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15656 #include <GL/gle.h>
15658 rm -f conftest.$ac_objext
15659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15660 (eval $ac_compile) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try='test -s conftest.$ac_objext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_cv_header_GL_gle_h=yes
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_cv_header_GL_gle_h=no
15677 rm -f conftest.$ac_objext conftest.$ac_ext
15679 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
15680 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
15681 if test $ac_cv_header_GL_gle_h = yes; then
15688 CPPFLAGS="$ac_save_CPPFLAGS"
15689 if test "$have_gle3" = yes ; then
15693 ac_save_CPPFLAGS="$CPPFLAGS"
15694 if test \! -z "$includedir" ; then
15695 CPPFLAGS="$CPPFLAGS -I$includedir"
15697 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15698 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
15699 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
15700 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 cat >conftest.$ac_ext <<_ACEOF
15704 #line $LINENO "configure"
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15712 #include <GL/gutil.h>
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716 (eval $ac_compile) 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } &&
15720 { ac_try='test -s conftest.$ac_objext'
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15726 ac_cv_header_GL_gutil_h=yes
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15731 ac_cv_header_GL_gutil_h=no
15733 rm -f conftest.$ac_objext conftest.$ac_ext
15735 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
15736 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
15737 if test $ac_cv_header_GL_gutil_h = yes; then
15744 CPPFLAGS="$ac_save_CPPFLAGS"
15745 if test "$have_gle" = yes ; then
15747 ac_save_CPPFLAGS="$CPPFLAGS"
15748 if test \! -z "$includedir" ; then
15749 CPPFLAGS="$CPPFLAGS -I$includedir"
15751 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15752 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
15753 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
15754 if test "${ac_cv_header_GL_tube_h+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 cat >conftest.$ac_ext <<_ACEOF
15758 #line $LINENO "configure"
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15766 #include <GL/tube.h>
15768 rm -f conftest.$ac_objext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15770 (eval $ac_compile) 2>&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } &&
15774 { ac_try='test -s conftest.$ac_objext'
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_cv_header_GL_tube_h=yes
15782 echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_cv_header_GL_tube_h=no
15787 rm -f conftest.$ac_objext conftest.$ac_ext
15789 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
15790 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
15791 if test $ac_cv_header_GL_tube_h = yes; then
15798 CPPFLAGS="$ac_save_CPPFLAGS"
15802 if test "$have_gle" = yes ; then
15806 ac_save_CPPFLAGS="$CPPFLAGS"
15807 ac_save_LDFLAGS="$LDFLAGS"
15808 # ac_save_LIBS="$LIBS"
15810 if test \! -z "$includedir" ; then
15811 CPPFLAGS="$CPPFLAGS -I$includedir"
15813 # note: $X_CFLAGS includes $x_includes
15814 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15816 if test \! -z "$libdir" ; then
15817 LDFLAGS="$LDFLAGS -L$libdir"
15819 # note: $X_LIBS includes $x_libraries
15820 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15822 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
15823 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
15824 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 ac_check_lib_save_LIBS=$LIBS
15828 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
15829 cat >conftest.$ac_ext <<_ACEOF
15830 #line $LINENO "configure"
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15837 /* Override any gcc2 internal prototype to avoid an error. */
15841 /* We use char because int might match the return type of a gcc2
15842 builtin and then its argument prototype would still apply. */
15843 char gleCreateGC ();
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15854 (eval $ac_link) 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
15858 { ac_try='test -s conftest$ac_exeext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 ac_cv_lib_gle_gleCreateGC=yes
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 ac_cv_lib_gle_gleCreateGC=no
15871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15872 LIBS=$ac_check_lib_save_LIBS
15874 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
15875 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
15876 if test $ac_cv_lib_gle_gleCreateGC = yes; then
15877 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
15880 CPPFLAGS="$ac_save_CPPFLAGS"
15881 LDFLAGS="$ac_save_LDFLAGS"
15882 # LIBS="$ac_save_LIBS"
15885 if test "$have_gle" = yes ; then
15889 # sometimes the libmatrix stuff is included in libgle. look there first.
15891 # I don't get it. For some reason, this test passes on SGI, as if
15892 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
15893 # Yet the link is succeeding. Why???
15895 # AC_CHECK_X_LIB(gle, uview_direction_d,
15896 # [have_gle=yes; gle_halfassed=no],
15897 # [], $GL_LIBS -lX11 -lXext -lm)
15899 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
15901 if test "$have_gle3" = yes ; then
15903 ac_save_CPPFLAGS="$CPPFLAGS"
15904 ac_save_LDFLAGS="$LDFLAGS"
15905 # ac_save_LIBS="$LIBS"
15907 if test \! -z "$includedir" ; then
15908 CPPFLAGS="$CPPFLAGS -I$includedir"
15910 # note: $X_CFLAGS includes $x_includes
15911 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15913 if test \! -z "$libdir" ; then
15914 LDFLAGS="$LDFLAGS -L$libdir"
15916 # note: $X_LIBS includes $x_libraries
15917 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15919 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
15920 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
15921 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 ac_check_lib_save_LIBS=$LIBS
15925 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
15926 cat >conftest.$ac_ext <<_ACEOF
15927 #line $LINENO "configure"
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15934 /* Override any gcc2 internal prototype to avoid an error. */
15938 /* We use char because int might match the return type of a gcc2
15939 builtin and then its argument prototype would still apply. */
15940 char uview_direction ();
15944 uview_direction ();
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -s conftest$ac_exeext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 ac_cv_lib_gle_uview_direction=yes
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15966 ac_cv_lib_gle_uview_direction=no
15968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15969 LIBS=$ac_check_lib_save_LIBS
15971 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
15972 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
15973 if test $ac_cv_lib_gle_uview_direction = yes; then
15974 have_gle=yes; gle_halfassed=no
15977 CPPFLAGS="$ac_save_CPPFLAGS"
15978 LDFLAGS="$ac_save_LDFLAGS"
15979 # LIBS="$ac_save_LIBS"
15982 # if it wasn't in libgle, then look in libmatrix.
15983 if test "$have_gle" = no ; then
15985 ac_save_CPPFLAGS="$CPPFLAGS"
15986 ac_save_LDFLAGS="$LDFLAGS"
15987 # ac_save_LIBS="$LIBS"
15989 if test \! -z "$includedir" ; then
15990 CPPFLAGS="$CPPFLAGS -I$includedir"
15992 # note: $X_CFLAGS includes $x_includes
15993 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15995 if test \! -z "$libdir" ; then
15996 LDFLAGS="$LDFLAGS -L$libdir"
15998 # note: $X_LIBS includes $x_libraries
15999 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16001 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
16002 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
16003 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 ac_check_lib_save_LIBS=$LIBS
16007 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
16008 cat >conftest.$ac_ext <<_ACEOF
16009 #line $LINENO "configure"
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16016 /* Override any gcc2 internal prototype to avoid an error. */
16020 /* We use char because int might match the return type of a gcc2
16021 builtin and then its argument prototype would still apply. */
16022 char uview_direction_d ();
16026 uview_direction_d ();
16031 rm -f conftest.$ac_objext conftest$ac_exeext
16032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16033 (eval $ac_link) 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } &&
16037 { ac_try='test -s conftest$ac_exeext'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 ac_cv_lib_matrix_uview_direction_d=yes
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 ac_cv_lib_matrix_uview_direction_d=no
16050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16051 LIBS=$ac_check_lib_save_LIBS
16053 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
16054 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
16055 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
16056 have_gle=yes; gle_halfassed=no;
16057 GLE_LIBS="$GLE_LIBS -lmatrix"
16060 CPPFLAGS="$ac_save_CPPFLAGS"
16061 LDFLAGS="$ac_save_LDFLAGS"
16062 # LIBS="$ac_save_LIBS"
16067 if test "$have_gle" = yes ; then
16068 cat >>confdefs.h <<\_ACEOF
16072 if test "$have_gle3" = yes ; then
16073 cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_GLE3 1
16080 elif test "$with_gle" != no; then
16081 echo "error: must be yes or no: --with-gle=$with_gle"
16088 ###############################################################################
16092 ###############################################################################
16095 with_xpm_req=unspecified
16097 # Check whether --with-xpm or --without-xpm was given.
16098 if test "${with_xpm+set}" = set; then
16099 withval="$with_xpm"
16100 with_xpm="$withval"; with_xpm_req="$withval"
16106 case "$with_xpm" in
16111 echo "$as_me:$LINENO: checking for XPM headers" >&5
16112 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
16113 d=$with_xpm/include
16114 if test -d $d; then
16115 X_CFLAGS="-I$d $X_CFLAGS"
16116 echo "$as_me:$LINENO: result: $d" >&5
16117 echo "${ECHO_T}$d" >&6
16119 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16120 echo "${ECHO_T}not found ($d: no such directory)" >&6
16123 echo "$as_me:$LINENO: checking for XPM libs" >&5
16124 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
16126 if test -d $d; then
16127 X_LIBS="-L$d $X_LIBS"
16128 echo "$as_me:$LINENO: result: $d" >&5
16129 echo "${ECHO_T}$d" >&6
16131 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16132 echo "${ECHO_T}not found ($d: no such directory)" >&6
16135 # replace the directory string with "yes".
16137 with_xpm=$with_xpm_req
16142 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
16143 echo " If it is a directory, then \`DIR/include' will be added to"
16144 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16150 if test "$with_xpm" = yes; then
16152 ac_save_CPPFLAGS="$CPPFLAGS"
16153 if test \! -z "$includedir" ; then
16154 CPPFLAGS="$CPPFLAGS -I$includedir"
16156 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16157 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
16158 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
16159 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 cat >conftest.$ac_ext <<_ACEOF
16163 #line $LINENO "configure"
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16169 #include <X11/Xlib.h>
16171 #include <X11/xpm.h>
16173 rm -f conftest.$ac_objext
16174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175 (eval $ac_compile) 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -s conftest.$ac_objext'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_cv_header_X11_xpm_h=yes
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 ac_cv_header_X11_xpm_h=no
16192 rm -f conftest.$ac_objext conftest.$ac_ext
16194 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
16195 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
16196 if test $ac_cv_header_X11_xpm_h = yes; then
16198 cat >>confdefs.h <<\_ACEOF
16206 CPPFLAGS="$ac_save_CPPFLAGS"
16207 elif test "$with_xpm" != no; then
16208 echo "error: must be yes or no: --with-xpm=$with_xpm"
16212 # See comment near $motif_requires_xpm, above.
16213 # Need to do this here, after both Motif and XPM have been checked for.
16215 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
16216 if test "$motif_requires_xpm" = yes ; then
16217 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
16221 ###############################################################################
16223 # Check for -lgdk_pixbuf.
16225 ###############################################################################
16228 with_gdk_pixbuf_req=unspecified
16230 # Check whether --with-pixbuf or --without-pixbuf was given.
16231 if test "${with_pixbuf+set}" = set; then
16232 withval="$with_pixbuf"
16233 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
16235 with_gdk_pixbuf=yes
16238 # if --with-pixbuf=/directory/ was specified, remember that directory so that
16239 # we can also look for the `gdk-pixbuf-config' program in that directory.
16240 case "$with_gdk_pixbuf" in
16242 gdk_pixbuf_dir="$with_gdk_pixbuf"
16250 case "$with_gdk_pixbuf" in
16255 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
16256 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
16257 d=$with_gdk_pixbuf/include
16258 if test -d $d; then
16259 X_CFLAGS="-I$d $X_CFLAGS"
16260 echo "$as_me:$LINENO: result: $d" >&5
16261 echo "${ECHO_T}$d" >&6
16263 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16264 echo "${ECHO_T}not found ($d: no such directory)" >&6
16267 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
16268 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
16269 d=$with_gdk_pixbuf/lib
16270 if test -d $d; then
16271 X_LIBS="-L$d $X_LIBS"
16272 echo "$as_me:$LINENO: result: $d" >&5
16273 echo "${ECHO_T}$d" >&6
16275 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16276 echo "${ECHO_T}not found ($d: no such directory)" >&6
16279 # replace the directory string with "yes".
16280 with_gdk_pixbuf_req="yes"
16281 with_gdk_pixbuf=$with_gdk_pixbuf_req
16286 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
16287 echo " If it is a directory, then \`DIR/include' will be added to"
16288 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16294 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
16295 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
16299 if test "$with_gdk_pixbuf" = yes; then
16301 have_gdk_pixbuf2=no
16303 if test -n "$pkg_config" ; then
16306 # run pkg-config based tests.
16311 # If we have Gtk 2.x, then *only* gdk-pixbuf 2.x will work.
16312 # If we have Gtk 1.x, then *only* gdk-pixbuf 1.x will work.
16313 # If we don't have Gtk at all, then either will work.
16315 if test "$have_gtk" = no -o "$have_gtk2" = yes; then
16317 # we don't have Gtk; or we have Gtk 2.x. Check for pixbuf 2.x.
16319 echo "$as_me:$LINENO: result: checking for gdk_pixbuf 2.x with gtk-config based tests..." >&5
16320 echo "${ECHO_T}checking for gdk_pixbuf 2.x with gtk-config based tests..." >&6
16321 pkg_check_version gdk-pixbuf-2.0 2.0.0
16322 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
16323 have_gdk_pixbuf="$ok"
16324 have_gdk_pixbuf2="$ok"
16327 if test "$have_gtk" = no -o "$have_gtk2" = no; then
16329 # we don't have Gtk; or we have Gtk 1.x.
16330 # If we don't have pixbuf 2.x, then check for pixbuf 1.x.
16332 if test "$have_gdk_pixbuf2" = no; then
16335 echo "$as_me:$LINENO: result: checking for gdk_pixbuf 1.x with gtk-config based tests..." >&5
16336 echo "${ECHO_T}checking for gdk_pixbuf 1.x with gtk-config based tests..." >&6
16337 pkg_check_version gdk_pixbuf 0.0
16338 pkg_check_version gdk_pixbuf_xlib 0.0
16339 have_gdk_pixbuf="$ok"
16343 if test "$have_gdk_pixbuf" = yes; then
16344 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
16345 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
16346 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
16351 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
16352 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
16353 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
16354 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
16355 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
16358 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
16360 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
16361 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
16363 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
16364 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
16368 if test "$have_gdk_pixbuf" = no; then
16371 # run gdk-pixbuf-config based tests.
16372 # note that we can't assume that the existence of "pkg-config" means
16373 # that we don't have to look for gdk-pixbuf-config -- in Gnome 1.4,
16374 # pkg-config exists, but doesn't know about pixbuf.
16377 echo "$as_me:$LINENO: result: checking for gdk_pixbuf with gdk-pixbuf-config based tests..." >&5
16378 echo "${ECHO_T}checking for gdk_pixbuf with gdk-pixbuf-config based tests..." >&6
16380 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
16381 # look in /foo/bin/ for for gdk-pixbuf-config.
16383 gdk_pixbuf_path="$PATH"
16385 if test ! -z "$gtk_dir"; then
16386 # canonicalize slashes.
16387 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
16388 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
16391 if test ! -z "$gnome_dir"; then
16392 # canonicalize slashes.
16393 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
16394 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
16397 for ac_prog in gdk-pixbuf-config
16399 # Extract the first word of "$ac_prog", so it can be a program name with args.
16400 set dummy $ac_prog; ac_word=$2
16401 echo "$as_me:$LINENO: checking for $ac_word" >&5
16402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16403 if test "${ac_cv_path_gdk_pixbuf_config+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 case $gdk_pixbuf_config in
16408 ac_cv_path_gdk_pixbuf_config="$gdk_pixbuf_config" # Let the user override the test with a path.
16411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16412 for as_dir in $gdk_pixbuf_path
16415 test -z "$as_dir" && as_dir=.
16416 for ac_exec_ext in '' $ac_executable_extensions; do
16417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16418 ac_cv_path_gdk_pixbuf_config="$as_dir/$ac_word$ac_exec_ext"
16419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16428 gdk_pixbuf_config=$ac_cv_path_gdk_pixbuf_config
16430 if test -n "$gdk_pixbuf_config"; then
16431 echo "$as_me:$LINENO: result: $gdk_pixbuf_config" >&5
16432 echo "${ECHO_T}$gdk_pixbuf_config" >&6
16434 echo "$as_me:$LINENO: result: no" >&5
16435 echo "${ECHO_T}no" >&6
16438 test -n "$gdk_pixbuf_config" && break
16442 # If we found the gdk-pixbuf-config program, run it to get flags.
16444 if test -n "$gdk_pixbuf_config" ; then
16445 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
16446 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
16447 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 ac_cv_gdk_pixbuf_config_cflags=`$gdk_pixbuf_config --cflags`
16452 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
16453 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
16454 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
16455 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
16456 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16459 ac_cv_gdk_pixbuf_config_libs=`$gdk_pixbuf_config --libs`
16461 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
16462 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
16464 # note that "gdk-pixbuf-config --libs" produces a link line including
16465 # -lgdk_pixbuf, but there's no way to get it to produce one that also
16466 # includes -lgdk_pixbuf_xlib. Since we don't know *exactly* what the
16467 # name of the library will be, construct it with sed...
16470 ac_cv_gdk_pixbuf_config_libs=`echo $ac_cv_gdk_pixbuf_config_libs | \
16471 sed 's@ \(-lgdk_pixbuf\([-_a-zA-Z0-9.]*\)\) @ \1 -lgdk_pixbuf_xlib\2 @'`
16474 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
16475 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
16479 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
16480 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
16482 if test "$have_gdk_pixbuf" = no; then
16484 # we appear to have pixbuf; check for headers/libs to be sure.
16489 # check for header A...
16491 ac_save_CPPFLAGS="$CPPFLAGS"
16492 if test \! -z "$includedir" ; then
16493 CPPFLAGS="$CPPFLAGS -I$includedir"
16495 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16496 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
16497 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
16498 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
16499 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
16503 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
16505 # Is the header compilable?
16506 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
16507 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
16508 cat >conftest.$ac_ext <<_ACEOF
16509 #line $LINENO "configure"
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h. */
16515 $ac_includes_default
16516 #include <gdk-pixbuf/gdk-pixbuf.h>
16518 rm -f conftest.$ac_objext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16520 (eval $ac_compile) 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } &&
16524 { ac_try='test -s conftest.$ac_objext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 ac_header_compiler=yes
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ac_header_compiler=no
16537 rm -f conftest.$ac_objext conftest.$ac_ext
16538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16539 echo "${ECHO_T}$ac_header_compiler" >&6
16541 # Is the header present?
16542 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
16543 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
16544 cat >conftest.$ac_ext <<_ACEOF
16545 #line $LINENO "configure"
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 #include <gdk-pixbuf/gdk-pixbuf.h>
16553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16556 grep -v '^ *+' conftest.er1 >conftest.err
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } >/dev/null; then
16561 if test -s conftest.err; then
16562 ac_cpp_err=$ac_c_preproc_warn_flag
16569 if test -z "$ac_cpp_err"; then
16570 ac_header_preproc=yes
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 ac_header_preproc=no
16577 rm -f conftest.err conftest.$ac_ext
16578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16579 echo "${ECHO_T}$ac_header_preproc" >&6
16581 # So? What about this header?
16582 case $ac_header_compiler:$ac_header_preproc in
16584 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
16585 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16586 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
16587 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
16590 ## ------------------------------------ ##
16591 ## Report this to bug-autoconf@gnu.org. ##
16592 ## ------------------------------------ ##
16595 sed "s/^/$as_me: WARNING: /" >&2
16598 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
16599 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
16601 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
16603 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
16606 ## ------------------------------------ ##
16607 ## Report this to bug-autoconf@gnu.org. ##
16608 ## ------------------------------------ ##
16611 sed "s/^/$as_me: WARNING: /" >&2
16614 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
16615 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
16616 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
16621 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
16622 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
16625 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
16626 have_gdk_pixbuf=yes
16630 CPPFLAGS="$ac_save_CPPFLAGS"
16632 # if that worked, check for header B...
16633 if test "$have_gdk_pixbuf" = yes; then
16635 gdk_pixbuf_halfassed=yes
16637 ac_save_CPPFLAGS="$CPPFLAGS"
16638 if test \! -z "$includedir" ; then
16639 CPPFLAGS="$CPPFLAGS -I$includedir"
16641 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16642 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
16643 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
16644 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16645 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
16649 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
16651 # Is the header compilable?
16652 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
16653 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
16654 cat >conftest.$ac_ext <<_ACEOF
16655 #line $LINENO "configure"
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 $ac_includes_default
16662 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
16664 rm -f conftest.$ac_objext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16666 (eval $ac_compile) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_header_compiler=yes
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 ac_header_compiler=no
16683 rm -f conftest.$ac_objext conftest.$ac_ext
16684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16685 echo "${ECHO_T}$ac_header_compiler" >&6
16687 # Is the header present?
16688 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
16689 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
16690 cat >conftest.$ac_ext <<_ACEOF
16691 #line $LINENO "configure"
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
16699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16702 grep -v '^ *+' conftest.er1 >conftest.err
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } >/dev/null; then
16707 if test -s conftest.err; then
16708 ac_cpp_err=$ac_c_preproc_warn_flag
16715 if test -z "$ac_cpp_err"; then
16716 ac_header_preproc=yes
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 ac_header_preproc=no
16723 rm -f conftest.err conftest.$ac_ext
16724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16725 echo "${ECHO_T}$ac_header_preproc" >&6
16727 # So? What about this header?
16728 case $ac_header_compiler:$ac_header_preproc in
16730 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16731 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16733 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
16736 ## ------------------------------------ ##
16737 ## Report this to bug-autoconf@gnu.org. ##
16738 ## ------------------------------------ ##
16741 sed "s/^/$as_me: WARNING: /" >&2
16744 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
16745 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
16747 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
16748 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16749 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
16752 ## ------------------------------------ ##
16753 ## Report this to bug-autoconf@gnu.org. ##
16754 ## ------------------------------------ ##
16757 sed "s/^/$as_me: WARNING: /" >&2
16760 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
16761 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16762 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
16767 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
16768 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
16771 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
16772 have_gdk_pixbuf=yes
16773 gdk_pixbuf_halfassed=no
16777 CPPFLAGS="$ac_save_CPPFLAGS"
16779 # yay, it has a new name in Gtk 2.x...
16780 if test "$have_gdk_pixbuf" = no; then
16782 gdk_pixbuf_halfassed=yes
16784 ac_save_CPPFLAGS="$CPPFLAGS"
16785 if test \! -z "$includedir" ; then
16786 CPPFLAGS="$CPPFLAGS -I$includedir"
16788 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16789 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
16790 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
16791 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16792 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
16796 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
16798 # Is the header compilable?
16799 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
16800 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
16801 cat >conftest.$ac_ext <<_ACEOF
16802 #line $LINENO "configure"
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 $ac_includes_default
16809 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
16811 rm -f conftest.$ac_objext
16812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16813 (eval $ac_compile) 2>&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -s conftest.$ac_objext'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; }; then
16823 ac_header_compiler=yes
16825 echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16828 ac_header_compiler=no
16830 rm -f conftest.$ac_objext conftest.$ac_ext
16831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16832 echo "${ECHO_T}$ac_header_compiler" >&6
16834 # Is the header present?
16835 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
16836 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
16837 cat >conftest.$ac_ext <<_ACEOF
16838 #line $LINENO "configure"
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
16846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16849 grep -v '^ *+' conftest.er1 >conftest.err
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } >/dev/null; then
16854 if test -s conftest.err; then
16855 ac_cpp_err=$ac_c_preproc_warn_flag
16862 if test -z "$ac_cpp_err"; then
16863 ac_header_preproc=yes
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16868 ac_header_preproc=no
16870 rm -f conftest.err conftest.$ac_ext
16871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16872 echo "${ECHO_T}$ac_header_preproc" >&6
16874 # So? What about this header?
16875 case $ac_header_compiler:$ac_header_preproc in
16877 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16878 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16879 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16880 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
16883 ## ------------------------------------ ##
16884 ## Report this to bug-autoconf@gnu.org. ##
16885 ## ------------------------------------ ##
16888 sed "s/^/$as_me: WARNING: /" >&2
16891 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
16892 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
16893 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
16894 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
16895 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16896 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
16899 ## ------------------------------------ ##
16900 ## Report this to bug-autoconf@gnu.org. ##
16901 ## ------------------------------------ ##
16904 sed "s/^/$as_me: WARNING: /" >&2
16907 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
16908 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16909 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
16914 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
16915 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
16918 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
16919 have_gdk_pixbuf=yes
16920 gdk_pixbuf_halfassed=no
16924 CPPFLAGS="$ac_save_CPPFLAGS"
16929 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
16931 if test "$have_gdk_pixbuf" = yes; then
16932 # we have the headers, now check for the libraries
16934 gdk_pixbuf_halfassed=yes
16938 ac_save_CPPFLAGS="$CPPFLAGS"
16939 ac_save_LDFLAGS="$LDFLAGS"
16940 # ac_save_LIBS="$LIBS"
16942 if test \! -z "$includedir" ; then
16943 CPPFLAGS="$CPPFLAGS -I$includedir"
16945 # note: $X_CFLAGS includes $x_includes
16946 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16948 if test \! -z "$libdir" ; then
16949 LDFLAGS="$LDFLAGS -L$libdir"
16951 # note: $X_LIBS includes $x_libraries
16952 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16954 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
16955 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
16956 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 ac_check_lib_save_LIBS=$LIBS
16960 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
16961 cat >conftest.$ac_ext <<_ACEOF
16962 #line $LINENO "configure"
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16969 /* Override any gcc2 internal prototype to avoid an error. */
16973 /* We use char because int might match the return type of a gcc2
16974 builtin and then its argument prototype would still apply. */
16975 char gdk_pixbuf_new_from_file ();
16979 gdk_pixbuf_new_from_file ();
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986 (eval $ac_link) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -s conftest$ac_exeext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
17003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17006 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
17007 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
17008 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
17009 have_gdk_pixbuf=yes
17012 CPPFLAGS="$ac_save_CPPFLAGS"
17013 LDFLAGS="$ac_save_LDFLAGS"
17014 # LIBS="$ac_save_LIBS"
17017 if test "$have_gdk_pixbuf" = yes; then
17020 ac_save_CPPFLAGS="$CPPFLAGS"
17021 ac_save_LDFLAGS="$LDFLAGS"
17022 # ac_save_LIBS="$LIBS"
17024 if test \! -z "$includedir" ; then
17025 CPPFLAGS="$CPPFLAGS -I$includedir"
17027 # note: $X_CFLAGS includes $x_includes
17028 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17030 if test \! -z "$libdir" ; then
17031 LDFLAGS="$LDFLAGS -L$libdir"
17033 # note: $X_LIBS includes $x_libraries
17034 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17036 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
17037 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
17038 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 ac_check_lib_save_LIBS=$LIBS
17042 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17043 cat >conftest.$ac_ext <<_ACEOF
17044 #line $LINENO "configure"
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17051 /* Override any gcc2 internal prototype to avoid an error. */
17055 /* We use char because int might match the return type of a gcc2
17056 builtin and then its argument prototype would still apply. */
17057 char gdk_pixbuf_xlib_init ();
17061 gdk_pixbuf_xlib_init ();
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17068 (eval $ac_link) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try='test -s conftest$ac_exeext'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
17078 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17083 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
17085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17086 LIBS=$ac_check_lib_save_LIBS
17088 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
17089 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
17090 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
17091 have_gdk_pixbuf=yes
17092 gdk_pixbuf_halfassed=no
17095 CPPFLAGS="$ac_save_CPPFLAGS"
17096 LDFLAGS="$ac_save_LDFLAGS"
17097 # LIBS="$ac_save_LIBS"
17102 if test "$have_gdk_pixbuf" = yes; then
17103 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
17104 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
17105 cat >>confdefs.h <<\_ACEOF
17106 #define HAVE_GDK_PIXBUF 1
17110 have_gdk_pixbuf2=no
17115 ###############################################################################
17119 ###############################################################################
17122 with_jpeg_req=unspecified
17125 # Check whether --with-jpeg or --without-jpeg was given.
17126 if test "${with_jpeg+set}" = set; then
17127 withval="$with_jpeg"
17128 with_jpeg="$withval"; with_jpeg_req="$withval"
17134 case "$with_jpeg" in
17139 echo "$as_me:$LINENO: checking for JPEG headers" >&5
17140 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
17141 d=$with_jpeg/include
17142 if test -d $d; then
17143 X_CFLAGS="-I$d $X_CFLAGS"
17144 echo "$as_me:$LINENO: result: $d" >&5
17145 echo "${ECHO_T}$d" >&6
17147 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17148 echo "${ECHO_T}not found ($d: no such directory)" >&6
17151 echo "$as_me:$LINENO: checking for JPEG libs" >&5
17152 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
17154 if test -d $d; then
17155 X_LIBS="-L$d $X_LIBS"
17156 echo "$as_me:$LINENO: result: $d" >&5
17157 echo "${ECHO_T}$d" >&6
17159 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17160 echo "${ECHO_T}not found ($d: no such directory)" >&6
17163 # replace the directory string with "yes".
17164 with_jpeg_req="yes"
17165 with_jpeg=$with_jpeg_req
17170 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
17171 echo " If it is a directory, then \`DIR/include' will be added to"
17172 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17178 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
17179 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
17183 if test "$with_jpeg" = yes; then
17187 ac_save_CPPFLAGS="$CPPFLAGS"
17188 if test \! -z "$includedir" ; then
17189 CPPFLAGS="$CPPFLAGS -I$includedir"
17191 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17192 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17193 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17194 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17195 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17199 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17201 # Is the header compilable?
17202 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
17203 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
17204 cat >conftest.$ac_ext <<_ACEOF
17205 #line $LINENO "configure"
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 $ac_includes_default
17212 #include <jpeglib.h>
17214 rm -f conftest.$ac_objext
17215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17216 (eval $ac_compile) 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -s conftest.$ac_objext'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_header_compiler=yes
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_header_compiler=no
17233 rm -f conftest.$ac_objext conftest.$ac_ext
17234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17235 echo "${ECHO_T}$ac_header_compiler" >&6
17237 # Is the header present?
17238 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
17239 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
17240 cat >conftest.$ac_ext <<_ACEOF
17241 #line $LINENO "configure"
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 #include <jpeglib.h>
17249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17252 grep -v '^ *+' conftest.er1 >conftest.err
17254 cat conftest.err >&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } >/dev/null; then
17257 if test -s conftest.err; then
17258 ac_cpp_err=$ac_c_preproc_warn_flag
17265 if test -z "$ac_cpp_err"; then
17266 ac_header_preproc=yes
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_header_preproc=no
17273 rm -f conftest.err conftest.$ac_ext
17274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17275 echo "${ECHO_T}$ac_header_preproc" >&6
17277 # So? What about this header?
17278 case $ac_header_compiler:$ac_header_preproc in
17280 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17281 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
17283 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
17286 ## ------------------------------------ ##
17287 ## Report this to bug-autoconf@gnu.org. ##
17288 ## ------------------------------------ ##
17291 sed "s/^/$as_me: WARNING: /" >&2
17294 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
17295 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
17296 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
17297 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
17298 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
17299 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
17302 ## ------------------------------------ ##
17303 ## Report this to bug-autoconf@gnu.org. ##
17304 ## ------------------------------------ ##
17307 sed "s/^/$as_me: WARNING: /" >&2
17310 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17311 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17312 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 ac_cv_header_jpeglib_h=$ac_header_preproc
17317 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17318 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17321 if test $ac_cv_header_jpeglib_h = yes; then
17326 CPPFLAGS="$ac_save_CPPFLAGS"
17328 if test "$have_jpeg" = yes; then
17329 # we have the header, now check for the library
17333 ac_save_CPPFLAGS="$CPPFLAGS"
17334 ac_save_LDFLAGS="$LDFLAGS"
17335 # ac_save_LIBS="$LIBS"
17337 if test \! -z "$includedir" ; then
17338 CPPFLAGS="$CPPFLAGS -I$includedir"
17340 # note: $X_CFLAGS includes $x_includes
17341 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17343 if test \! -z "$libdir" ; then
17344 LDFLAGS="$LDFLAGS -L$libdir"
17346 # note: $X_LIBS includes $x_libraries
17347 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17349 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
17350 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
17351 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17354 ac_check_lib_save_LIBS=$LIBS
17355 LIBS="-ljpeg $LIBS"
17356 cat >conftest.$ac_ext <<_ACEOF
17357 #line $LINENO "configure"
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17364 /* Override any gcc2 internal prototype to avoid an error. */
17368 /* We use char because int might match the return type of a gcc2
17369 builtin and then its argument prototype would still apply. */
17370 char jpeg_start_compress ();
17374 jpeg_start_compress ();
17379 rm -f conftest.$ac_objext conftest$ac_exeext
17380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381 (eval $ac_link) 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
17385 { ac_try='test -s conftest$ac_exeext'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 ac_cv_lib_jpeg_jpeg_start_compress=yes
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 ac_cv_lib_jpeg_jpeg_start_compress=no
17398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17399 LIBS=$ac_check_lib_save_LIBS
17401 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
17402 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
17403 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
17407 cat >>confdefs.h <<\_ACEOF
17408 #define HAVE_JPEGLIB 1
17413 CPPFLAGS="$ac_save_CPPFLAGS"
17414 LDFLAGS="$ac_save_LDFLAGS"
17415 # LIBS="$ac_save_LIBS"
17421 ###############################################################################
17423 # Check for the XSHM server extension.
17425 ###############################################################################
17428 with_xshm_req=unspecified
17430 # Check whether --with-xshm-ext or --without-xshm-ext was given.
17431 if test "${with_xshm_ext+set}" = set; then
17432 withval="$with_xshm_ext"
17433 with_xshm="$withval"; with_xshm_req="$withval"
17439 case "$with_xshm" in
17444 echo "$as_me:$LINENO: checking for XSHM headers" >&5
17445 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
17446 d=$with_xshm/include
17447 if test -d $d; then
17448 X_CFLAGS="-I$d $X_CFLAGS"
17449 echo "$as_me:$LINENO: result: $d" >&5
17450 echo "${ECHO_T}$d" >&6
17452 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17453 echo "${ECHO_T}not found ($d: no such directory)" >&6
17456 echo "$as_me:$LINENO: checking for XSHM libs" >&5
17457 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
17459 if test -d $d; then
17460 X_LIBS="-L$d $X_LIBS"
17461 echo "$as_me:$LINENO: result: $d" >&5
17462 echo "${ECHO_T}$d" >&6
17464 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17465 echo "${ECHO_T}not found ($d: no such directory)" >&6
17468 # replace the directory string with "yes".
17469 with_xshm_req="yes"
17470 with_xshm=$with_xshm_req
17475 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
17476 echo " If it is a directory, then \`DIR/include' will be added to"
17477 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17483 if test "$with_xshm" = yes; then
17485 # first check for Xshm.h.
17487 ac_save_CPPFLAGS="$CPPFLAGS"
17488 if test \! -z "$includedir" ; then
17489 CPPFLAGS="$CPPFLAGS -I$includedir"
17491 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17492 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
17493 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
17494 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 cat >conftest.$ac_ext <<_ACEOF
17498 #line $LINENO "configure"
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 #include <X11/Xlib.h>
17506 #include <X11/extensions/XShm.h>
17508 rm -f conftest.$ac_objext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } &&
17514 { ac_try='test -s conftest.$ac_objext'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_cv_header_X11_extensions_XShm_h=yes
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 ac_cv_header_X11_extensions_XShm_h=no
17527 rm -f conftest.$ac_objext conftest.$ac_ext
17529 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
17530 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
17531 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
17536 CPPFLAGS="$ac_save_CPPFLAGS"
17538 # if that succeeded, then check for sys/ipc.h.
17539 if test "$have_xshm" = yes; then
17542 ac_save_CPPFLAGS="$CPPFLAGS"
17543 if test \! -z "$includedir" ; then
17544 CPPFLAGS="$CPPFLAGS -I$includedir"
17546 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17547 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
17548 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
17549 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
17550 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17553 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
17554 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
17556 # Is the header compilable?
17557 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
17558 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
17559 cat >conftest.$ac_ext <<_ACEOF
17560 #line $LINENO "configure"
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 $ac_includes_default
17567 #include <sys/ipc.h>
17569 rm -f conftest.$ac_objext
17570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17571 (eval $ac_compile) 2>&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -s conftest.$ac_objext'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_header_compiler=yes
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17586 ac_header_compiler=no
17588 rm -f conftest.$ac_objext conftest.$ac_ext
17589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17590 echo "${ECHO_T}$ac_header_compiler" >&6
17592 # Is the header present?
17593 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
17594 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
17595 cat >conftest.$ac_ext <<_ACEOF
17596 #line $LINENO "configure"
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 #include <sys/ipc.h>
17604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17607 grep -v '^ *+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } >/dev/null; then
17612 if test -s conftest.err; then
17613 ac_cpp_err=$ac_c_preproc_warn_flag
17620 if test -z "$ac_cpp_err"; then
17621 ac_header_preproc=yes
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 ac_header_preproc=no
17628 rm -f conftest.err conftest.$ac_ext
17629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17630 echo "${ECHO_T}$ac_header_preproc" >&6
17632 # So? What about this header?
17633 case $ac_header_compiler:$ac_header_preproc in
17635 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
17636 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17637 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
17638 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
17641 ## ------------------------------------ ##
17642 ## Report this to bug-autoconf@gnu.org. ##
17643 ## ------------------------------------ ##
17646 sed "s/^/$as_me: WARNING: /" >&2
17649 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
17650 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
17651 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
17652 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
17653 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
17654 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
17657 ## ------------------------------------ ##
17658 ## Report this to bug-autoconf@gnu.org. ##
17659 ## ------------------------------------ ##
17662 sed "s/^/$as_me: WARNING: /" >&2
17665 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
17666 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
17667 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 ac_cv_header_sys_ipc_h=$ac_header_preproc
17672 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
17673 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
17676 if test $ac_cv_header_sys_ipc_h = yes; then
17681 CPPFLAGS="$ac_save_CPPFLAGS"
17684 # if that succeeded, then check for sys/shm.h.
17685 if test "$have_xshm" = yes; then
17688 ac_save_CPPFLAGS="$CPPFLAGS"
17689 if test \! -z "$includedir" ; then
17690 CPPFLAGS="$CPPFLAGS -I$includedir"
17692 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17693 if test "${ac_cv_header_sys_shm_h+set}" = set; then
17694 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
17695 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
17696 if test "${ac_cv_header_sys_shm_h+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
17700 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
17702 # Is the header compilable?
17703 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
17704 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
17705 cat >conftest.$ac_ext <<_ACEOF
17706 #line $LINENO "configure"
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 $ac_includes_default
17713 #include <sys/shm.h>
17715 rm -f conftest.$ac_objext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17717 (eval $ac_compile) 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 ac_header_compiler=yes
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_header_compiler=no
17734 rm -f conftest.$ac_objext conftest.$ac_ext
17735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17736 echo "${ECHO_T}$ac_header_compiler" >&6
17738 # Is the header present?
17739 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
17740 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
17741 cat >conftest.$ac_ext <<_ACEOF
17742 #line $LINENO "configure"
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748 #include <sys/shm.h>
17750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17753 grep -v '^ *+' conftest.er1 >conftest.err
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } >/dev/null; then
17758 if test -s conftest.err; then
17759 ac_cpp_err=$ac_c_preproc_warn_flag
17766 if test -z "$ac_cpp_err"; then
17767 ac_header_preproc=yes
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ac_header_preproc=no
17774 rm -f conftest.err conftest.$ac_ext
17775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17776 echo "${ECHO_T}$ac_header_preproc" >&6
17778 # So? What about this header?
17779 case $ac_header_compiler:$ac_header_preproc in
17781 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17782 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17783 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
17784 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
17787 ## ------------------------------------ ##
17788 ## Report this to bug-autoconf@gnu.org. ##
17789 ## ------------------------------------ ##
17792 sed "s/^/$as_me: WARNING: /" >&2
17795 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
17796 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
17797 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
17798 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
17799 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
17800 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
17803 ## ------------------------------------ ##
17804 ## Report this to bug-autoconf@gnu.org. ##
17805 ## ------------------------------------ ##
17808 sed "s/^/$as_me: WARNING: /" >&2
17811 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
17812 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
17813 if test "${ac_cv_header_sys_shm_h+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 ac_cv_header_sys_shm_h=$ac_header_preproc
17818 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
17819 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
17822 if test $ac_cv_header_sys_shm_h = yes; then
17827 CPPFLAGS="$ac_save_CPPFLAGS"
17830 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
17831 # to exist, but the library code to not exist. And even better, the library
17832 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
17833 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
17834 # that's not quite right, but close enough.)
17838 if `uname -v` -eq 3 ; then
17841 ac_save_CPPFLAGS="$CPPFLAGS"
17842 ac_save_LDFLAGS="$LDFLAGS"
17843 # ac_save_LIBS="$LIBS"
17845 if test \! -z "$includedir" ; then
17846 CPPFLAGS="$CPPFLAGS -I$includedir"
17848 # note: $X_CFLAGS includes $x_includes
17849 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17851 if test \! -z "$libdir" ; then
17852 LDFLAGS="$LDFLAGS -L$libdir"
17854 # note: $X_LIBS includes $x_libraries
17855 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17857 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
17858 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
17859 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17862 ac_check_lib_save_LIBS=$LIBS
17863 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
17864 cat >conftest.$ac_ext <<_ACEOF
17865 #line $LINENO "configure"
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17872 /* Override any gcc2 internal prototype to avoid an error. */
17876 /* We use char because int might match the return type of a gcc2
17877 builtin and then its argument prototype would still apply. */
17878 char XShmQueryExtension ();
17882 XShmQueryExtension ();
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -s conftest$ac_exeext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 ac_cv_lib_XextSam_XShmQueryExtension=yes
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 ac_cv_lib_XextSam_XShmQueryExtension=no
17906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17907 LIBS=$ac_check_lib_save_LIBS
17909 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
17910 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
17911 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
17912 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
17917 CPPFLAGS="$ac_save_CPPFLAGS"
17918 LDFLAGS="$ac_save_LDFLAGS"
17919 # LIBS="$ac_save_LIBS"
17925 # if that succeeded, then we've really got it.
17926 if test "$have_xshm" = yes; then
17927 cat >>confdefs.h <<\_ACEOF
17928 #define HAVE_XSHM_EXTENSION 1
17933 elif test "$with_xshm" != no; then
17934 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
17939 ###############################################################################
17941 # Check for the DOUBLE-BUFFER server extension.
17943 ###############################################################################
17946 with_xdbe_req=unspecified
17948 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
17949 if test "${with_xdbe_ext+set}" = set; then
17950 withval="$with_xdbe_ext"
17951 with_xdbe="$withval"; with_xdbe_req="$withval"
17957 case "$with_xdbe" in
17962 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
17963 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
17964 d=$with_xdbe/include
17965 if test -d $d; then
17966 X_CFLAGS="-I$d $X_CFLAGS"
17967 echo "$as_me:$LINENO: result: $d" >&5
17968 echo "${ECHO_T}$d" >&6
17970 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17971 echo "${ECHO_T}not found ($d: no such directory)" >&6
17974 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
17975 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
17977 if test -d $d; then
17978 X_LIBS="-L$d $X_LIBS"
17979 echo "$as_me:$LINENO: result: $d" >&5
17980 echo "${ECHO_T}$d" >&6
17982 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17983 echo "${ECHO_T}not found ($d: no such directory)" >&6
17986 # replace the directory string with "yes".
17987 with_xdbe_req="yes"
17988 with_xdbe=$with_xdbe_req
17993 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
17994 echo " If it is a directory, then \`DIR/include' will be added to"
17995 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18001 if test "$with_xdbe" = yes; then
18004 ac_save_CPPFLAGS="$CPPFLAGS"
18005 if test \! -z "$includedir" ; then
18006 CPPFLAGS="$CPPFLAGS -I$includedir"
18008 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18009 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
18010 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
18011 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 cat >conftest.$ac_ext <<_ACEOF
18015 #line $LINENO "configure"
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 #include <X11/Xlib.h>
18023 #include <X11/extensions/Xdbe.h>
18025 rm -f conftest.$ac_objext
18026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18027 (eval $ac_compile) 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
18031 { ac_try='test -s conftest.$ac_objext'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 ac_cv_header_X11_extensions_Xdbe_h=yes
18039 echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18042 ac_cv_header_X11_extensions_Xdbe_h=no
18044 rm -f conftest.$ac_objext conftest.$ac_ext
18046 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
18047 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
18048 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
18053 CPPFLAGS="$ac_save_CPPFLAGS"
18054 if test "$have_xdbe" = yes; then
18055 cat >>confdefs.h <<\_ACEOF
18056 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
18061 elif test "$with_xdbe" != no; then
18062 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
18067 ###############################################################################
18069 # Check for the SGI XReadDisplay server extension.
18071 # Note: this has to be down here, rather than up with the other server
18072 # extension tests, so that the output of `configure --help' is in the
18073 # right order. Arrgh!
18075 ###############################################################################
18077 have_readdisplay=no
18078 with_readdisplay_req=unspecified
18080 # Check whether --with-readdisplay or --without-readdisplay was given.
18081 if test "${with_readdisplay+set}" = set; then
18082 withval="$with_readdisplay"
18083 with_readdisplay="$withval"; with_readdisplay_req="$withval"
18085 with_readdisplay=yes
18089 case "$with_readdisplay" in
18094 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
18095 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
18096 d=$with_readdisplay/include
18097 if test -d $d; then
18098 X_CFLAGS="-I$d $X_CFLAGS"
18099 echo "$as_me:$LINENO: result: $d" >&5
18100 echo "${ECHO_T}$d" >&6
18102 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18103 echo "${ECHO_T}not found ($d: no such directory)" >&6
18106 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
18107 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
18108 d=$with_readdisplay/lib
18109 if test -d $d; then
18110 X_LIBS="-L$d $X_LIBS"
18111 echo "$as_me:$LINENO: result: $d" >&5
18112 echo "${ECHO_T}$d" >&6
18114 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18115 echo "${ECHO_T}not found ($d: no such directory)" >&6
18118 # replace the directory string with "yes".
18119 with_readdisplay_req="yes"
18120 with_readdisplay=$with_readdisplay_req
18125 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
18126 echo " If it is a directory, then \`DIR/include' will be added to"
18127 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18133 if test "$with_readdisplay" = yes; then
18135 ac_save_CPPFLAGS="$CPPFLAGS"
18136 if test \! -z "$includedir" ; then
18137 CPPFLAGS="$CPPFLAGS -I$includedir"
18139 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18140 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
18141 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
18142 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 cat >conftest.$ac_ext <<_ACEOF
18146 #line $LINENO "configure"
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 #include <X11/Xlib.h>
18154 #include <X11/extensions/readdisplay.h>
18156 rm -f conftest.$ac_objext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18158 (eval $ac_compile) 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try='test -s conftest.$ac_objext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 ac_cv_header_X11_extensions_readdisplay_h=yes
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 ac_cv_header_X11_extensions_readdisplay_h=no
18175 rm -f conftest.$ac_objext conftest.$ac_ext
18177 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
18178 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
18179 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
18180 cat >>confdefs.h <<\_ACEOF
18181 #define HAVE_READ_DISPLAY_EXTENSION 1
18187 CPPFLAGS="$ac_save_CPPFLAGS"
18188 elif test "$with_readdisplay" != no; then
18189 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
18194 ###############################################################################
18196 # Check for a program to generate random text.
18198 # Zippy is funnier than the idiocy generally spat out by `fortune',
18199 # so first see if "fortune zippy" works. Else, use plain "fortune".
18201 # We used to dig around in Emacs to look for the "yow" program, but
18202 # most people who have Emacs also have "fortune zippy", so nevermind.
18204 ###############################################################################
18206 with_fortune_req=""
18208 # Check whether --with-fortune or --without-fortune was given.
18209 if test "${with_fortune+set}" = set; then
18210 withval="$with_fortune"
18211 with_fortune_req="$withval"; with_fortune="$withval"
18216 if test "$with_fortune" = no || test "$with_fortune" = yes ; then
18218 with_fortune_req=""
18221 if test -n "$with_fortune_req" ; then
18222 ac_cv_fortune_program=""
18223 case "$with_fortune_req" in
18226 set dummy $with_fortune_req ; fortune_tmp=$2
18227 echo "$as_me:$LINENO: checking for $fortune_tmp" >&5
18228 echo $ECHO_N "checking for $fortune_tmp... $ECHO_C" >&6
18229 if test -x "$fortune_tmp" ; then
18230 echo "$as_me:$LINENO: result: yes" >&5
18231 echo "${ECHO_T}yes" >&6
18233 echo "$as_me:$LINENO: result: no" >&5
18234 echo "${ECHO_T}no" >&6
18239 set dummy $with_fortune_req ; fortune_tmp=$2
18241 unset ac_cv_path_fortune_tmp
18242 # Extract the first word of "$fortune_tmp", so it can be a program name with args.
18243 set dummy $fortune_tmp; ac_word=$2
18244 echo "$as_me:$LINENO: checking for $ac_word" >&5
18245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18246 if test "${ac_cv_path_fortune_tmp+set}" = set; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 case $fortune_tmp in
18251 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
18254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18255 for as_dir in $PATH
18258 test -z "$as_dir" && as_dir=.
18259 for ac_exec_ext in '' $ac_executable_extensions; do
18260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18261 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
18262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18271 fortune_tmp=$ac_cv_path_fortune_tmp
18273 if test -n "$fortune_tmp"; then
18274 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
18275 echo "${ECHO_T}$fortune_tmp" >&6
18277 echo "$as_me:$LINENO: result: no" >&5
18278 echo "${ECHO_T}no" >&6
18281 if test -z "$fortune_tmp" ; then
18286 ac_cv_fortune_program="$with_fortune"
18288 elif test -n "$ac_cv_fortune_program"; then
18289 echo "$as_me:$LINENO: result: checking for fortune... (cached) $ac_cv_fortune_program" >&5
18290 echo "${ECHO_T}checking for fortune... (cached) $ac_cv_fortune_program" >&6
18293 unset ac_cv_path_fortune_tmp
18296 if test -z "$ac_cv_fortune_program" ; then
18298 # first look for fortune in /usr/games/ (and use absolute path)
18299 for ac_prog in fortune
18301 # Extract the first word of "$ac_prog", so it can be a program name with args.
18302 set dummy $ac_prog; ac_word=$2
18303 echo "$as_me:$LINENO: checking for $ac_word" >&5
18304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18305 if test "${ac_cv_path_fortune_tmp+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 case $fortune_tmp in
18310 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
18313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18314 for as_dir in "/usr/games"
18317 test -z "$as_dir" && as_dir=.
18318 for ac_exec_ext in '' $ac_executable_extensions; do
18319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18320 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
18321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18330 fortune_tmp=$ac_cv_path_fortune_tmp
18332 if test -n "$fortune_tmp"; then
18333 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
18334 echo "${ECHO_T}$fortune_tmp" >&6
18336 echo "$as_me:$LINENO: result: no" >&5
18337 echo "${ECHO_T}no" >&6
18340 test -n "$fortune_tmp" && break
18344 # if it's not there, look on $PATH (and don't use absolute path)
18345 if test -z "$fortune_tmp" ; then
18346 for ac_prog in fortune
18348 # Extract the first word of "$ac_prog", so it can be a program name with args.
18349 set dummy $ac_prog; ac_word=$2
18350 echo "$as_me:$LINENO: checking for $ac_word" >&5
18351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18352 if test "${ac_cv_prog_fortune_tmp+set}" = set; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
18355 if test -n "$fortune_tmp"; then
18356 ac_cv_prog_fortune_tmp="$fortune_tmp" # Let the user override the test.
18358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18359 for as_dir in $PATH
18362 test -z "$as_dir" && as_dir=.
18363 for ac_exec_ext in '' $ac_executable_extensions; do
18364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18365 ac_cv_prog_fortune_tmp="$ac_prog"
18366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18374 fortune_tmp=$ac_cv_prog_fortune_tmp
18375 if test -n "$fortune_tmp"; then
18376 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
18377 echo "${ECHO_T}$fortune_tmp" >&6
18379 echo "$as_me:$LINENO: result: no" >&5
18380 echo "${ECHO_T}no" >&6
18383 test -n "$fortune_tmp" && break
18388 # if we didn't find anything, then just assume /usr/games/
18389 if test -z "$fortune_tmp" ; then
18390 fortune_tmp="/usr/games/fortune"
18393 ac_cv_fortune_program="$fortune_tmp"
18395 # now check to see whether "fortune zippy" works.
18397 fortune_tmp="$fortune_tmp zippy"
18398 echo "$as_me:$LINENO: checking for zippy quotes" >&5
18399 echo $ECHO_N "checking for zippy quotes... $ECHO_C" >&6
18400 if ( $fortune_tmp >/dev/null 2>&1 ); then
18401 ac_cv_fortune_program="$fortune_tmp"
18402 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
18403 echo "${ECHO_T}$fortune_tmp" >&6
18405 echo "$as_me:$LINENO: result: no" >&5
18406 echo "${ECHO_T}no" >&6
18411 unset ac_cv_path_fortune_tmp
18414 cat >>confdefs.h <<_ACEOF
18415 #define FORTUNE_PROGRAM "$ac_cv_fortune_program"
18420 ###############################################################################
18422 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
18423 # This should be safe, but let's give people the option.
18425 ###############################################################################
18427 setuid_hacks_default=no
18428 setuid_hacks="$setuid_hacks_default"
18430 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
18431 if test "${with_setuid_hacks+set}" = set; then
18432 withval="$with_setuid_hacks"
18433 setuid_hacks="$withval"
18435 setuid_hacks="$setuid_hacks_default"
18439 case "$setuid_hacks" in
18444 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
18445 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
18446 d=$setuid_hacks/include
18447 if test -d $d; then
18448 X_CFLAGS="-I$d $X_CFLAGS"
18449 echo "$as_me:$LINENO: result: $d" >&5
18450 echo "${ECHO_T}$d" >&6
18452 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18453 echo "${ECHO_T}not found ($d: no such directory)" >&6
18456 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
18457 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
18458 d=$setuid_hacks/lib
18459 if test -d $d; then
18460 X_LIBS="-L$d $X_LIBS"
18461 echo "$as_me:$LINENO: result: $d" >&5
18462 echo "${ECHO_T}$d" >&6
18464 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18465 echo "${ECHO_T}not found ($d: no such directory)" >&6
18468 # replace the directory string with "yes".
18469 setuid_hacks_req="yes"
18470 setuid_hacks=$setuid_hacks_req
18475 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
18476 echo " If it is a directory, then \`DIR/include' will be added to"
18477 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18483 if test "$setuid_hacks" = yes; then
18485 elif test "$setuid_hacks" != no; then
18486 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
18491 ###############################################################################
18493 # Done testing. Now, set up the various -I and -L variables,
18494 # and decide which GUI program to build by default.
18496 ###############################################################################
18503 if test \! -z "$includedir" ; then
18504 INCLUDES="$INCLUDES -I$includedir"
18507 if test \! -z "$libdir" ; then
18508 LDFLAGS="$LDFLAGS -L$libdir"
18512 PREFERRED_DEMO_PROGRAM=''
18514 if test "$have_motif" = yes; then
18515 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
18516 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
18518 if test "$have_gtk" = yes; then
18519 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
18520 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
18524 if test "$have_kerberos" = yes; then
18525 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
18526 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
18528 if test "$have_pam" = yes; then
18529 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
18530 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
18531 INSTALL_PAM="install-pam"
18533 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
18534 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
18537 if test "$enable_locking" = yes; then
18538 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
18539 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
18541 LOCK_SRCS='$(NOLOCK_SRCS_1)'
18542 LOCK_OBJS='$(NOLOCK_OBJS_1)'
18545 if test "$ac_macosx" = yes; then
18546 EXES_OSX='$(EXES_OSX)'
18547 SCRIPTS_OSX='$(SCRIPTS_OSX)'
18548 MEN_OSX='$(MEN_OSX)'
18556 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
18558 if test "$need_setuid" = yes; then
18564 if test "$setuid_hacks" = yes; then
18571 if test "$have_gl" = yes; then
18572 GL_EXES='$(GL_EXES)'
18573 GL_UTIL_EXES='$(GL_UTIL_EXES)'
18575 GL_KLUDGE="${tab} "
18577 GL_KLUDGE="-${tab} "
18580 if test "$have_gle" = yes; then
18581 GLE_EXES='$(GLE_EXES)'
18582 GLE_KLUDGE="${tab} "
18584 GLE_KLUDGE="-${tab} "
18587 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
18588 JPEG_EXES='$(JPEG_EXES)'
18592 # Another substitution in the XScreenSaver.ad.in file:
18594 if test "$have_gnome_help" = yes; then
18603 # Now that we know whether we have Gnome, we can decide where the XML
18604 # config files get installed.
18606 if test -z "$HACK_CONF_DIR" ; then
18607 if test -n "$GNOME_DATADIR" ; then
18608 HACK_CONF_DIR='${GNOME_DATADIR}/control-center/screensavers'
18610 HACK_CONF_DIR='${prefix}/lib/xscreensaver/config'
18616 # After computing $HACK_CONF_DIR, make sure $GLADE_DATADIR has a value
18617 # so that we know where to install the Gtk pixmaps.
18619 # It should usually be "/usr/share/pixmaps/", but we can't just use
18620 # "$(prefix)/share/pixmaps" because that would usually result in
18621 # "/usr/X11R6/share/pixmaps/", which is wrong. It needs to be the
18622 # Gnome/Gtk prefix, not the overall prefix.
18624 if test -n "$GNOME_DATADIR" ; then
18625 GLADE_DATADIR='$(GNOME_DATADIR)/xscreensaver'
18626 elif test "$have_gtk" = yes; then
18627 if test -n "$pkg_config"; then
18628 if test "$have_gtk2" = yes; then
18629 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
18631 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+`
18634 GLADE_DATADIR=`$gtk_config --prefix`
18636 GLADE_DATADIR="$GLADE_DATADIR/share/xscreensaver"
18642 # Set PO_DATADIR to something sensible.
18644 echo "$as_me:$LINENO: checking for locale directory" >&5
18645 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6
18646 if test -n "$GNOME_DATADIR" ; then
18647 PO_DATADIR="$GNOME_DATADIR"
18648 elif test "$have_gtk" = yes; then
18649 if test -n "$pkg_config"; then
18650 if test "$have_gtk2" = yes; then
18651 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
18653 PO_DATADIR=`$pkg_config --variable=prefix gtk+`
18656 PO_DATADIR=`$gtk_config --prefix`
18658 PO_DATADIR="$PO_DATADIR/share"
18661 if test -z "$PO_DATADIR" ; then
18663 # #### Total fucking kludge --
18664 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
18665 # but of course we need to expand all the nested variables to do that...
18673 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
18676 echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
18677 echo "${ECHO_T}$PO_DATADIR/locale" >&6
18680 # canonicalize slashes.
18681 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
18683 # gcc 3.0 likes to issue this warning for every file:
18685 # cc1: warning: changing search order for system directory "/usr/local/include"
18686 # cc1: warning: as it has already been specified as a non-system directory
18688 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
18689 # Which *should* be totally redundant, and thus an ok thing to delete?
18691 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
18694 ###############################################################################
18696 # Perform substitutions and write Makefiles.
18698 ###############################################################################
18753 APPDEFAULTS=$ac_x_app_defaults
18761 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"
18762 cat >confcache <<\_ACEOF
18763 # This file is a shell script that caches the results of configure
18764 # tests run on this system so they can be shared between configure
18765 # scripts and configure runs, see configure's option --config-cache.
18766 # It is not useful on other systems. If it contains results you don't
18767 # want to keep, you may remove or edit it.
18769 # config.status only pays attention to the cache file if you give it
18770 # the --recheck option to rerun configure.
18772 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18773 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18774 # following values.
18778 # The following way of writing the cache mishandles newlines in values,
18779 # but we know of no workaround that is simple, portable, and efficient.
18780 # So, don't put newlines in cache variables' values.
18781 # Ultrix sh set writes to stderr and can't be redirected directly,
18782 # and sets the high bit in the cache file unless we assign to the vars.
18785 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18787 # `set' does not quote correctly, so add quotes (double-quote
18788 # substitution turns \\\\ into \\, and sed turns \\ into \).
18791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18794 # `set' quotes correctly as required by POSIX, so do not add quotes.
18796 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18805 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18807 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18808 if test -w $cache_file; then
18809 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18810 cat confcache >$cache_file
18812 echo "not updating unwritable cache $cache_file"
18817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18818 # Let make expand exec_prefix.
18819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18821 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18822 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18823 # trailing colons and then remove the whole line if VPATH becomes empty
18824 # (actually we leave an empty line to preserve line numbers).
18825 if test "x$srcdir" = x.; then
18826 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18827 s/:*\$(srcdir):*/:/;
18828 s/:*\${srcdir}:*/:/;
18830 s/^\([^=]*=[ ]*\):*/\1/;
18836 DEFS=-DHAVE_CONFIG_H
18840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18841 # 1. Remove the extension, and $U if already installed.
18842 ac_i=`echo "$ac_i" |
18843 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18845 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18846 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18848 LIBOBJS=$ac_libobjs
18850 LTLIBOBJS=$ac_ltlibobjs
18855 mv -f po/POTFILES po/POTFILES.tmp
18856 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
18857 rm -f po/POTFILES.tmp
18861 : ${CONFIG_STATUS=./config.status}
18862 ac_clean_files_save=$ac_clean_files
18863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18864 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18865 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18866 cat >$CONFIG_STATUS <<_ACEOF
18868 # Generated by $as_me.
18869 # Run this file to recreate the current configuration.
18870 # Compiler output produced by configure, useful for debugging
18871 # configure, is in config.log if it exists.
18874 ac_cs_recheck=false
18876 SHELL=\${CONFIG_SHELL-$SHELL}
18879 cat >>$CONFIG_STATUS <<\_ACEOF
18880 ## --------------------- ##
18881 ## M4sh Initialization. ##
18882 ## --------------------- ##
18884 # Be Bourne compatible
18885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18888 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18889 # is contrary to our usage. Disable this feature.
18890 alias -g '${1+"$@"}'='"$@"'
18891 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18895 # Support unset when possible.
18896 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18903 # Work around bugs in pre-3.0 UWIN ksh.
18904 $as_unset ENV MAIL MAILPATH
18911 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18912 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18913 LC_TELEPHONE LC_TIME
18915 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18916 eval $as_var=C; export $as_var
18922 # Required to use basename.
18923 if expr a : '\(a\)' >/dev/null 2>&1; then
18929 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18930 as_basename=basename
18936 # Name of the executable.
18937 as_me=`$as_basename "$0" ||
18938 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18939 X"$0" : 'X\(//\)$' \| \
18940 X"$0" : 'X\(/\)$' \| \
18941 . : '\(.\)' 2>/dev/null ||
18943 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18944 /^X\/\(\/\/\)$/{ s//\1/; q; }
18945 /^X\/\(\/\).*/{ s//\1/; q; }
18949 # PATH needs CR, and LINENO needs CR and PATH.
18950 # Avoid depending upon Character Ranges.
18951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18954 as_cr_digits='0123456789'
18955 as_cr_alnum=$as_cr_Letters$as_cr_digits
18957 # The user is always right.
18958 if test "${PATH_SEPARATOR+set}" != set; then
18959 echo "#! /bin/sh" >conf$$.sh
18960 echo "exit 0" >>conf$$.sh
18962 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18971 as_lineno_1=$LINENO
18972 as_lineno_2=$LINENO
18973 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18974 test "x$as_lineno_1" != "x$as_lineno_2" &&
18975 test "x$as_lineno_3" = "x$as_lineno_2" || {
18976 # Find who we are. Look in the path if we contain no path at all
18979 *[\\/]* ) as_myself=$0 ;;
18980 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18981 for as_dir in $PATH
18984 test -z "$as_dir" && as_dir=.
18985 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18990 # We did not find ourselves, most probably we were run as `sh COMMAND'
18991 # in which case we are not to be found in the path.
18992 if test "x$as_myself" = x; then
18995 if test ! -f "$as_myself"; then
18996 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18997 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18998 { (exit 1); exit 1; }; }
19000 case $CONFIG_SHELL in
19002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19003 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19006 test -z "$as_dir" && as_dir=.
19007 for as_base in sh bash ksh sh5; do
19010 if ("$as_dir/$as_base" -c '
19011 as_lineno_1=$LINENO
19012 as_lineno_2=$LINENO
19013 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19014 test "x$as_lineno_1" != "x$as_lineno_2" &&
19015 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19016 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19017 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19018 CONFIG_SHELL=$as_dir/$as_base
19019 export CONFIG_SHELL
19020 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19028 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19029 # uniformly replaced by the line number. The first 'sed' inserts a
19030 # line-number line before each line; the second 'sed' does the real
19031 # work. The second script uses 'N' to pair each line-number line
19032 # with the numbered line, and appends trailing '-' during
19033 # substitution so that $LINENO is not a special case at line end.
19034 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19035 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19036 sed '=' <$as_myself |
19041 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19044 s,^['$as_cr_digits']*\n,,
19045 ' >$as_me.lineno &&
19046 chmod +x $as_me.lineno ||
19047 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19048 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19049 { (exit 1); exit 1; }; }
19051 # Don't try to exec as it changes $[0], causing all sort of problems
19052 # (the dirname of $[0] is not the place where we might find the
19053 # original and so on. Autoconf is especially sensible to this).
19055 # Exit status is that of the last command.
19060 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19061 *c*,-n*) ECHO_N= ECHO_C='
19063 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19064 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19067 if expr a : '\(a\)' >/dev/null 2>&1; then
19073 rm -f conf$$ conf$$.exe conf$$.file
19075 if ln -s conf$$.file conf$$ 2>/dev/null; then
19076 # We could just check for DJGPP; but this test a) works b) is more generic
19077 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19078 if test -f conf$$.exe; then
19079 # Don't use ln at all; we don't have any links
19084 elif ln conf$$.file conf$$ 2>/dev/null; then
19089 rm -f conf$$ conf$$.exe conf$$.file
19091 if mkdir -p . 2>/dev/null; then
19097 as_executable_p="test -f"
19099 # Sed expression to map a string onto a valid CPP name.
19100 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19102 # Sed expression to map a string onto a valid variable name.
19103 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19107 # We need space, tab and new line, in precisely that order.
19117 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19118 # report actual input values of CONFIG_FILES etc. instead of their
19119 # values after options handling. Logging --version etc. is OK.
19123 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19124 ## Running $as_me. ##
19129 This file was extended by $as_me, which was
19130 generated by GNU Autoconf 2.57. Invocation command line was
19132 CONFIG_FILES = $CONFIG_FILES
19133 CONFIG_HEADERS = $CONFIG_HEADERS
19134 CONFIG_LINKS = $CONFIG_LINKS
19135 CONFIG_COMMANDS = $CONFIG_COMMANDS
19139 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19143 # Files that config.status was made for.
19144 if test -n "$ac_config_files"; then
19145 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19148 if test -n "$ac_config_headers"; then
19149 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19152 if test -n "$ac_config_links"; then
19153 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19156 if test -n "$ac_config_commands"; then
19157 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19160 cat >>$CONFIG_STATUS <<\_ACEOF
19163 \`$as_me' instantiates files from templates according to the
19164 current configuration.
19166 Usage: $0 [OPTIONS] [FILE]...
19168 -h, --help print this help, then exit
19169 -V, --version print version number, then exit
19170 -q, --quiet do not print progress messages
19171 -d, --debug don't remove temporary files
19172 --recheck update $as_me by reconfiguring in the same conditions
19173 --file=FILE[:TEMPLATE]
19174 instantiate the configuration file FILE
19175 --header=FILE[:TEMPLATE]
19176 instantiate the configuration header FILE
19178 Configuration files:
19181 Configuration headers:
19184 Configuration commands:
19187 Report bugs to <bug-autoconf@gnu.org>."
19190 cat >>$CONFIG_STATUS <<_ACEOF
19193 configured by $0, generated by GNU Autoconf 2.57,
19194 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19196 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19197 Free Software Foundation, Inc.
19198 This config.status script is free software; the Free Software Foundation
19199 gives unlimited permission to copy, distribute and modify it."
19204 cat >>$CONFIG_STATUS <<\_ACEOF
19205 # If no file are specified by the user, then we need to provide default
19206 # value. By we need to know if files were specified by the user.
19212 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19213 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19221 *) # This is not an option, so the user has probably given explicit
19224 ac_need_defaults=false;;
19228 # Handling of the options.
19230 cat >>$CONFIG_STATUS <<\_ACEOF
19231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19233 --version | --vers* | -V )
19234 echo "$ac_cs_version"; exit 0 ;;
19236 # Conflict between --help and --header
19237 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19238 Try \`$0 --help' for more information." >&5
19239 echo "$as_me: error: ambiguous option: $1
19240 Try \`$0 --help' for more information." >&2;}
19241 { (exit 1); exit 1; }; };;
19242 --help | --hel | -h )
19243 echo "$ac_cs_usage"; exit 0 ;;
19244 --debug | --d* | -d )
19246 --file | --fil | --fi | --f )
19248 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19249 ac_need_defaults=false;;
19250 --header | --heade | --head | --hea )
19252 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19253 ac_need_defaults=false;;
19254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19255 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19258 # This is an error.
19259 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19260 Try \`$0 --help' for more information." >&5
19261 echo "$as_me: error: unrecognized option: $1
19262 Try \`$0 --help' for more information." >&2;}
19263 { (exit 1); exit 1; }; } ;;
19265 *) ac_config_targets="$ac_config_targets $1" ;;
19271 ac_configure_extra_args=
19273 if $ac_cs_silent; then
19275 ac_configure_extra_args="$ac_configure_extra_args --silent"
19279 cat >>$CONFIG_STATUS <<_ACEOF
19280 if \$ac_cs_recheck; then
19281 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19282 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19287 cat >>$CONFIG_STATUS <<_ACEOF
19289 # INIT-COMMANDS section.
19292 INTLTOOL_PERL=${INTLTOOL_PERL}
19299 cat >>$CONFIG_STATUS <<\_ACEOF
19300 for ac_config_target in $ac_config_targets
19302 case "$ac_config_target" in
19303 # Handling of arguments.
19304 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19305 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19306 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
19307 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
19308 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
19309 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19310 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
19311 "driver/xscreensaver.kss" ) CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.kss" ;;
19312 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19313 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
19314 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19315 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19316 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19317 { (exit 1); exit 1; }; };;
19321 # If the user did not use the arguments to specify the items to instantiate,
19322 # then the envvar interface is used. Set only those that are not.
19323 # We use the long form for the default assignment because of an extremely
19324 # bizarre bug on SunOS 4.1.3.
19325 if $ac_need_defaults; then
19326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19331 # Have a temporary directory for convenience. Make it in the build tree
19332 # simply because there is no reason to put it here, and in addition,
19333 # creating and moving files from /tmp can sometimes cause problems.
19334 # Create a temporary directory, and hook for its removal unless debugging.
19337 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19338 trap '{ (exit 1); exit 1; }' 1 2 13 15
19341 # Create a (secure) tmp directory for tmp files.
19344 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19345 test -n "$tmp" && test -d "$tmp"
19348 tmp=./confstat$$-$RANDOM
19349 (umask 077 && mkdir $tmp)
19352 echo "$me: cannot create a temporary directory in ." >&2
19353 { (exit 1); exit 1; }
19358 cat >>$CONFIG_STATUS <<_ACEOF
19361 # CONFIG_FILES section.
19364 # No need to generate the scripts if there are no CONFIG_FILES.
19365 # This happens for instance when ./config.status config.h
19366 if test -n "\$CONFIG_FILES"; then
19367 # Protect against being on the right side of a sed subst in config.status.
19368 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19369 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19370 s,@SHELL@,$SHELL,;t t
19371 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19372 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19373 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19374 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19375 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19376 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19377 s,@exec_prefix@,$exec_prefix,;t t
19378 s,@prefix@,$prefix,;t t
19379 s,@program_transform_name@,$program_transform_name,;t t
19380 s,@bindir@,$bindir,;t t
19381 s,@sbindir@,$sbindir,;t t
19382 s,@libexecdir@,$libexecdir,;t t
19383 s,@datadir@,$datadir,;t t
19384 s,@sysconfdir@,$sysconfdir,;t t
19385 s,@sharedstatedir@,$sharedstatedir,;t t
19386 s,@localstatedir@,$localstatedir,;t t
19387 s,@libdir@,$libdir,;t t
19388 s,@includedir@,$includedir,;t t
19389 s,@oldincludedir@,$oldincludedir,;t t
19390 s,@infodir@,$infodir,;t t
19391 s,@mandir@,$mandir,;t t
19392 s,@build_alias@,$build_alias,;t t
19393 s,@host_alias@,$host_alias,;t t
19394 s,@target_alias@,$target_alias,;t t
19395 s,@DEFS@,$DEFS,;t t
19396 s,@ECHO_C@,$ECHO_C,;t t
19397 s,@ECHO_N@,$ECHO_N,;t t
19398 s,@ECHO_T@,$ECHO_T,;t t
19399 s,@LIBS@,$LIBS,;t t
19400 s,@build@,$build,;t t
19401 s,@build_cpu@,$build_cpu,;t t
19402 s,@build_vendor@,$build_vendor,;t t
19403 s,@build_os@,$build_os,;t t
19404 s,@host@,$host,;t t
19405 s,@host_cpu@,$host_cpu,;t t
19406 s,@host_vendor@,$host_vendor,;t t
19407 s,@host_os@,$host_os,;t t
19409 s,@CFLAGS@,$CFLAGS,;t t
19410 s,@LDFLAGS@,$LDFLAGS,;t t
19411 s,@CPPFLAGS@,$CPPFLAGS,;t t
19412 s,@ac_ct_CC@,$ac_ct_CC,;t t
19413 s,@EXEEXT@,$EXEEXT,;t t
19414 s,@OBJEXT@,$OBJEXT,;t t
19416 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19417 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19418 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19419 s,@SET_MAKE@,$SET_MAKE,;t t
19420 s,@EGREP@,$EGREP,;t t
19421 s,@PERL@,$PERL,;t t
19422 s,@X_CFLAGS@,$X_CFLAGS,;t t
19423 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19424 s,@X_LIBS@,$X_LIBS,;t t
19425 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19426 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
19427 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
19428 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
19429 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
19430 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
19431 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
19432 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
19433 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
19434 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
19435 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
19436 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
19437 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
19438 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
19439 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
19440 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
19441 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
19442 s,@RANLIB@,$RANLIB,;t t
19443 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19444 s,@ALLOCA@,$ALLOCA,;t t
19445 s,@USE_NLS@,$USE_NLS,;t t
19446 s,@MSGFMT@,$MSGFMT,;t t
19447 s,@GMSGFMT@,$GMSGFMT,;t t
19448 s,@XGETTEXT@,$XGETTEXT,;t t
19449 s,@CATALOGS@,$CATALOGS,;t t
19450 s,@CATOBJEXT@,$CATOBJEXT,;t t
19451 s,@DATADIRNAME@,$DATADIRNAME,;t t
19452 s,@GMOFILES@,$GMOFILES,;t t
19453 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19454 s,@INTLDEPS@,$INTLDEPS,;t t
19455 s,@INTLLIBS@,$INTLLIBS,;t t
19456 s,@INTLOBJS@,$INTLOBJS,;t t
19457 s,@POFILES@,$POFILES,;t t
19458 s,@POSUB@,$POSUB,;t t
19459 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19460 s,@pkg_config@,$pkg_config,;t t
19461 s,@glib_config@,$glib_config,;t t
19462 s,@gtk_config@,$gtk_config,;t t
19463 s,@gnome_config@,$gnome_config,;t t
19464 s,@have_gnome_help@,$have_gnome_help,;t t
19465 s,@xml_config@,$xml_config,;t t
19466 s,@gdk_pixbuf_config@,$gdk_pixbuf_config,;t t
19467 s,@fortune_tmp@,$fortune_tmp,;t t
19468 s,@INCLUDES@,$INCLUDES,;t t
19469 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
19470 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
19471 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
19472 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
19473 s,@GTK_LIBS@,$GTK_LIBS,;t t
19474 s,@XML_LIBS@,$XML_LIBS,;t t
19475 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
19476 s,@HACK_LIBS@,$HACK_LIBS,;t t
19477 s,@XPM_LIBS@,$XPM_LIBS,;t t
19478 s,@GL_LIBS@,$GL_LIBS,;t t
19479 s,@GLE_LIBS@,$GLE_LIBS,;t t
19480 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
19481 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
19482 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
19483 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
19484 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
19485 s,@NEED_SETUID@,$NEED_SETUID,;t t
19486 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
19487 s,@OBJCC@,$OBJCC,;t t
19488 s,@EXES_OSX@,$EXES_OSX,;t t
19489 s,@SCRIPTS_OSX@,$SCRIPTS_OSX,;t t
19490 s,@MEN_OSX@,$MEN_OSX,;t t
19491 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
19492 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
19493 s,@XMU_SRCS@,$XMU_SRCS,;t t
19494 s,@XMU_OBJS@,$XMU_OBJS,;t t
19495 s,@XMU_LIBS@,$XMU_LIBS,;t t
19496 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
19497 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
19498 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
19499 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
19500 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
19501 s,@JPEG_EXES@,$JPEG_EXES,;t t
19502 s,@GL_EXES@,$GL_EXES,;t t
19503 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
19504 s,@GL_MEN@,$GL_MEN,;t t
19505 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
19506 s,@GLE_EXES@,$GLE_EXES,;t t
19507 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
19508 s,@GNOMEHELP_Y@,$GNOMEHELP_Y,;t t
19509 s,@GNOMEHELP_N@,$GNOMEHELP_N,;t t
19510 s,@HACKDIR@,$HACKDIR,;t t
19511 s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t
19512 s,@GLADE_DATADIR@,$GLADE_DATADIR,;t t
19513 s,@PO_DATADIR@,$PO_DATADIR,;t t
19514 s,@GNOME_PANELDIR@,$GNOME_PANELDIR,;t t
19515 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
19516 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
19517 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
19518 s,@DEPEND@,$DEPEND,;t t
19519 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
19520 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
19521 s,@LIBOBJS@,$LIBOBJS,;t t
19522 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19527 cat >>$CONFIG_STATUS <<\_ACEOF
19528 # Split the substitutions into bite-sized pieces for seds with
19529 # small command number limits, like on Digital OSF/1 and HP-UX.
19530 ac_max_sed_lines=48
19531 ac_sed_frag=1 # Number of current file.
19532 ac_beg=1 # First line for current file.
19533 ac_end=$ac_max_sed_lines # Line after last line for current file.
19536 while $ac_more_lines; do
19537 if test $ac_beg -gt 1; then
19538 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19540 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19542 if test ! -s $tmp/subs.frag; then
19543 ac_more_lines=false
19545 # The purpose of the label and of the branching condition is to
19546 # speed up the sed processing (if there are no `@' at all, there
19547 # is no need to browse any of the substitutions).
19548 # These are the two extra sed commands mentioned above.
19550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19551 if test -z "$ac_sed_cmds"; then
19552 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19554 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19556 ac_sed_frag=`expr $ac_sed_frag + 1`
19558 ac_end=`expr $ac_end + $ac_max_sed_lines`
19561 if test -z "$ac_sed_cmds"; then
19564 fi # test -n "$CONFIG_FILES"
19567 cat >>$CONFIG_STATUS <<\_ACEOF
19568 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19569 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19571 - | *:- | *:-:* ) # input from stdin
19573 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19574 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19575 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19577 * ) ac_file_in=$ac_file.in ;;
19580 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19581 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19582 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19583 X"$ac_file" : 'X\(//\)[^/]' \| \
19584 X"$ac_file" : 'X\(//\)$' \| \
19585 X"$ac_file" : 'X\(/\)' \| \
19586 . : '\(.\)' 2>/dev/null ||
19588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19590 /^X\(\/\/\)$/{ s//\1/; q; }
19591 /^X\(\/\).*/{ s//\1/; q; }
19593 { if $as_mkdir_p; then
19598 while test ! -d "$as_dir"; do
19599 as_dirs="$as_dir $as_dirs"
19600 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19602 X"$as_dir" : 'X\(//\)[^/]' \| \
19603 X"$as_dir" : 'X\(//\)$' \| \
19604 X"$as_dir" : 'X\(/\)' \| \
19605 . : '\(.\)' 2>/dev/null ||
19607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19609 /^X\(\/\/\)$/{ s//\1/; q; }
19610 /^X\(\/\).*/{ s//\1/; q; }
19613 test ! -n "$as_dirs" || mkdir $as_dirs
19614 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19615 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19616 { (exit 1); exit 1; }; }; }
19620 if test "$ac_dir" != .; then
19621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19622 # A "../" for each directory in $ac_dir_suffix.
19623 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19625 ac_dir_suffix= ac_top_builddir=
19629 .) # No --srcdir option. We are building in place.
19631 if test -z "$ac_top_builddir"; then
19634 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19636 [\\/]* | ?:[\\/]* ) # Absolute path.
19637 ac_srcdir=$srcdir$ac_dir_suffix;
19638 ac_top_srcdir=$srcdir ;;
19639 *) # Relative path.
19640 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19641 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19643 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19645 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19646 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19647 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19648 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19652 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19653 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19656 if test x"$ac_file" != x-; then
19657 { echo "$as_me:$LINENO: creating $ac_file" >&5
19658 echo "$as_me: creating $ac_file" >&6;}
19661 # Let's still pretend it is `configure' which instantiates (i.e., don't
19662 # use $as_me), people would be surprised to read:
19663 # /* config.h. Generated by config.status. */
19664 if test x"$ac_file" = x-; then
19667 configure_input="$ac_file. "
19669 configure_input=$configure_input"Generated from `echo $ac_file_in |
19670 sed 's,.*/,,'` by configure."
19672 # First look for the input files in the build tree, otherwise in the
19674 ac_file_inputs=`IFS=:
19675 for f in $ac_file_in; do
19677 -) echo $tmp/stdin ;;
19679 # Absolute (can't be DOS-style, as IFS=:)
19680 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19681 echo "$as_me: error: cannot find input file: $f" >&2;}
19682 { (exit 1); exit 1; }; }
19685 if test -f "$f"; then
19688 elif test -f "$srcdir/$f"; then
19693 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19694 echo "$as_me: error: cannot find input file: $f" >&2;}
19695 { (exit 1); exit 1; }; }
19698 done` || { (exit 1); exit 1; }
19700 cat >>$CONFIG_STATUS <<_ACEOF
19704 cat >>$CONFIG_STATUS <<\_ACEOF
19706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19707 s,@configure_input@,$configure_input,;t t
19708 s,@srcdir@,$ac_srcdir,;t t
19709 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19710 s,@top_srcdir@,$ac_top_srcdir,;t t
19711 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19712 s,@builddir@,$ac_builddir,;t t
19713 s,@abs_builddir@,$ac_abs_builddir,;t t
19714 s,@top_builddir@,$ac_top_builddir,;t t
19715 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19716 s,@INSTALL@,$ac_INSTALL,;t t
19717 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19719 if test x"$ac_file" != x-; then
19720 mv $tmp/out $ac_file
19728 cat >>$CONFIG_STATUS <<\_ACEOF
19731 # CONFIG_HEADER section.
19734 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19735 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19737 # ac_d sets the value in "#define NAME VALUE" lines.
19738 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19739 ac_dB='[ ].*$,\1#\2'
19742 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19743 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19744 ac_uB='$,\1#\2define\3'
19748 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19749 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19751 - | *:- | *:-:* ) # input from stdin
19753 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19754 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19755 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19757 * ) ac_file_in=$ac_file.in ;;
19760 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19761 echo "$as_me: creating $ac_file" >&6;}
19763 # First look for the input files in the build tree, otherwise in the
19765 ac_file_inputs=`IFS=:
19766 for f in $ac_file_in; do
19768 -) echo $tmp/stdin ;;
19770 # Absolute (can't be DOS-style, as IFS=:)
19771 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19772 echo "$as_me: error: cannot find input file: $f" >&2;}
19773 { (exit 1); exit 1; }; }
19776 if test -f "$f"; then
19779 elif test -f "$srcdir/$f"; then
19784 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19785 echo "$as_me: error: cannot find input file: $f" >&2;}
19786 { (exit 1); exit 1; }; }
19789 done` || { (exit 1); exit 1; }
19790 # Remove the trailing spaces.
19791 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19795 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19796 # `conftest.undefs', that substitutes the proper values into
19797 # config.h.in to produce config.h. The first handles `#define'
19798 # templates, and the second `#undef' templates.
19799 # And first: Protect against being on the right side of a sed subst in
19800 # config.status. Protect against being in an unquoted here document
19801 # in config.status.
19802 rm -f conftest.defines conftest.undefs
19803 # Using a here document instead of a string reduces the quoting nightmare.
19804 # Putting comments in sed scripts is not portable.
19806 # `end' is used to avoid that the second main sed command (meant for
19807 # 0-ary CPP macros) applies to n-ary macro definitions.
19808 # See the Autoconf documentation for `clear'.
19809 cat >confdef2sed.sed <<\_ACEOF
19814 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19816 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19819 # If some macros were called several times there might be several times
19820 # the same #defines, which is useless. Nevertheless, we may not want to
19821 # sort them, since we want the *last* AC-DEFINE to be honored.
19822 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19823 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19824 rm -f confdef2sed.sed
19826 # This sed command replaces #undef with comments. This is necessary, for
19827 # example, in the case of _POSIX_SOURCE, which is predefined and required
19828 # on some systems where configure will not decide to define it.
19829 cat >>conftest.undefs <<\_ACEOF
19830 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19833 # Break up conftest.defines because some shells have a limit on the size
19834 # of here documents, and old seds have small limits too (100 cmds).
19835 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19836 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19837 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19838 echo ' :' >>$CONFIG_STATUS
19839 rm -f conftest.tail
19840 while grep . conftest.defines >/dev/null
19842 # Write a limited-size here document to $tmp/defines.sed.
19843 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19844 # Speed up: don't consider the non `#define' lines.
19845 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19846 # Work around the forget-to-reset-the-flag bug.
19847 echo 't clr' >>$CONFIG_STATUS
19848 echo ': clr' >>$CONFIG_STATUS
19849 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19851 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19853 mv $tmp/out $tmp/in
19855 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19856 rm -f conftest.defines
19857 mv conftest.tail conftest.defines
19859 rm -f conftest.defines
19860 echo ' fi # grep' >>$CONFIG_STATUS
19861 echo >>$CONFIG_STATUS
19863 # Break up conftest.undefs because some shells have a limit on the size
19864 # of here documents, and old seds have small limits too (100 cmds).
19865 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19866 rm -f conftest.tail
19867 while grep . conftest.undefs >/dev/null
19869 # Write a limited-size here document to $tmp/undefs.sed.
19870 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19871 # Speed up: don't consider the non `#undef'
19872 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19873 # Work around the forget-to-reset-the-flag bug.
19874 echo 't clr' >>$CONFIG_STATUS
19875 echo ': clr' >>$CONFIG_STATUS
19876 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19878 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19880 mv $tmp/out $tmp/in
19882 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19883 rm -f conftest.undefs
19884 mv conftest.tail conftest.undefs
19886 rm -f conftest.undefs
19888 cat >>$CONFIG_STATUS <<\_ACEOF
19889 # Let's still pretend it is `configure' which instantiates (i.e., don't
19890 # use $as_me), people would be surprised to read:
19891 # /* config.h. Generated by config.status. */
19892 if test x"$ac_file" = x-; then
19893 echo "/* Generated by configure. */" >$tmp/config.h
19895 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19897 cat $tmp/in >>$tmp/config.h
19899 if test x"$ac_file" != x-; then
19900 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19901 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19902 echo "$as_me: $ac_file is unchanged" >&6;}
19904 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19905 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19906 X"$ac_file" : 'X\(//\)[^/]' \| \
19907 X"$ac_file" : 'X\(//\)$' \| \
19908 X"$ac_file" : 'X\(/\)' \| \
19909 . : '\(.\)' 2>/dev/null ||
19911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19913 /^X\(\/\/\)$/{ s//\1/; q; }
19914 /^X\(\/\).*/{ s//\1/; q; }
19916 { if $as_mkdir_p; then
19921 while test ! -d "$as_dir"; do
19922 as_dirs="$as_dir $as_dirs"
19923 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19925 X"$as_dir" : 'X\(//\)[^/]' \| \
19926 X"$as_dir" : 'X\(//\)$' \| \
19927 X"$as_dir" : 'X\(/\)' \| \
19928 . : '\(.\)' 2>/dev/null ||
19930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19932 /^X\(\/\/\)$/{ s//\1/; q; }
19933 /^X\(\/\).*/{ s//\1/; q; }
19936 test ! -n "$as_dirs" || mkdir $as_dirs
19937 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19938 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19939 { (exit 1); exit 1; }; }; }
19942 mv $tmp/config.h $ac_file
19946 rm -f $tmp/config.h
19950 cat >>$CONFIG_STATUS <<\_ACEOF
19953 # CONFIG_COMMANDS section.
19955 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19956 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19957 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19958 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19959 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19960 X"$ac_dest" : 'X\(//\)[^/]' \| \
19961 X"$ac_dest" : 'X\(//\)$' \| \
19962 X"$ac_dest" : 'X\(/\)' \| \
19963 . : '\(.\)' 2>/dev/null ||
19965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19967 /^X\(\/\/\)$/{ s//\1/; q; }
19968 /^X\(\/\).*/{ s//\1/; q; }
19972 if test "$ac_dir" != .; then
19973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19974 # A "../" for each directory in $ac_dir_suffix.
19975 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19977 ac_dir_suffix= ac_top_builddir=
19981 .) # No --srcdir option. We are building in place.
19983 if test -z "$ac_top_builddir"; then
19986 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19988 [\\/]* | ?:[\\/]* ) # Absolute path.
19989 ac_srcdir=$srcdir$ac_dir_suffix;
19990 ac_top_srcdir=$srcdir ;;
19991 *) # Relative path.
19992 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19993 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19995 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19997 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19998 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19999 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20000 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20003 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20004 echo "$as_me: executing $ac_dest commands" >&6;}
20008 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
20009 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
20010 rm -f intltool-extract.out
20012 mv -f intltool-extract.out intltool-extract
20014 chmod ugo+x intltool-extract
20015 chmod u+w intltool-extract
20017 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
20018 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
20019 rm -f intltool-merge.out
20021 mv -f intltool-merge.out intltool-merge
20023 chmod ugo+x intltool-merge
20024 chmod u+w intltool-merge
20026 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
20027 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
20028 rm -f intltool-update.out
20030 mv -f intltool-update.out intltool-update
20032 chmod ugo+x intltool-update
20033 chmod u+w intltool-update
20036 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
20037 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
20043 cat >>$CONFIG_STATUS <<\_ACEOF
20045 { (exit 0); exit 0; }
20047 chmod +x $CONFIG_STATUS
20048 ac_clean_files=$ac_clean_files_save
20051 # configure is writing to config.log, and then calls config.status.
20052 # config.status does its own redirection, appending to config.log.
20053 # Unfortunately, on DOS this fails, as config.log is still kept open
20054 # by configure, so config.status won't be able to write to it; its
20055 # output is simply discarded. So we exec the FD to /dev/null,
20056 # effectively closing config.log, so it can be properly (re)opened and
20057 # appended to by config.status. When coming back to configure, we
20058 # need to make the FD available again.
20059 if test "$no_create" != yes; then
20061 ac_config_status_args=
20062 test "$silent" = yes &&
20063 ac_config_status_args="$ac_config_status_args --quiet"
20065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20068 # would make configure fail if this is the last instruction.
20069 $ac_cs_success || { (exit 1); exit 1; }
20073 ###############################################################################
20075 # Print some warnings at the end.
20077 ###############################################################################
20079 warn_prefix_1=" Warning:"
20080 warn_prefix_2=" Note:"
20081 warn_prefix="$warn_prefix_1"
20084 warnsep=' #################################################################'
20087 if test "$warning" = no ; then
20088 echo '' ; echo "$warnsep" ; echo ''
20095 if test "$warning" = long ; then echo '' ; fi
20098 echo "$warn_prefix $rest"
20105 if test "$was" != no ; then echo '' ; fi
20107 echo "$warn_prefix $rest"
20117 warn_prefix="$warn_prefix_2"
20119 warn_prefix="$warn_prefix_1"
20123 warn_prefix="$warn_prefix_2"
20125 warn_prefix="$warn_prefix_1"
20129 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
20130 warn 'The SGI saver extension was requested, but was not found.'
20133 if test "$with_mit_req" = yes -a "$have_mit" = no ; then
20134 warn 'The MIT saver extension was requested, but was not found.'
20137 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
20138 warn 'The XIdle extension was requested, but was not found.'
20141 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
20142 warn 'The XSHM extension was requested, but was not found.'
20145 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
20146 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
20149 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
20150 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
20153 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
20154 warn 'The DPMS extension was requested, but was not found.'
20157 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
20158 warn 'The Xinerama extension was requested, but was not found.'
20161 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
20162 warn 'The XF86VMODE extension was requested, but was not found.'
20165 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
20166 warn "Checking of /proc/interrupts was requested, but it's bogus."
20170 warn2 'Though the Motif front-end to xscreensaver is still'
20171 warn2 'maintained, it is no longer being updated with new'
20172 warn2 'features: all new development on the xscreensaver-demo'
20173 warn2 'program is happening in the GTK version, and not in the'
20174 warn2 'Motif version. It is recommended that you build against'
20175 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
20178 if test "$have_motif" = no -a "$have_gtk" = no; then
20180 if test "$with_motif" = yes; then
20181 warnL "Neither the GTK nor Motif libraries were found; the"
20182 warn2 "\`xscreensaver-demo' program requires one of these."
20186 warnL "The GTK libraries do not seem to be available; the"
20187 warn2 "\`xscreensaver-demo' program requires them."
20189 warn2 'You can use Motif or Lesstif instead of GTK (use the'
20190 warn2 "\`--with-motif' option) but that is NOT recommended."
20194 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
20195 warnL "Use of Motif was requested, but it wasn't found;"
20196 warn2 "Gtk will be used instead."
20198 elif test "$jurassic_gtk" = yes ; then
20202 v="$ac_gtk_version_string"
20203 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
20204 warnL "Use of Gtk was requested, but its version number is unknown;"
20205 elif test "$with_gtk_req" = yes ; then
20206 warnL "Use of Gtk was requested, but it is version $v;"
20208 warnL "Gtk was found on this system, but it is version $v;"
20211 warn2 "Gtk $pref_gtk or newer is required."
20213 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
20214 warnL "Use of Gtk was requested, but it wasn't found."
20217 if test "$gtk2_halfassed" != no ; then
20218 warnL "GTK version $gtk2_halfassed was found, but at least one supporting"
20219 warn2 "library ($gtk2_halfassed_lib) was not, so GTK 2.x can't be used."
20220 if test "$have_gtk" = yes ; then
20221 v="$ac_gtk_version_string"
20222 warn2 "GTK $v is also installed, so it will be used instead."
20223 warn2 "Please read the above output and the \`config.log' file"
20224 warn2 "for more details."
20229 if test "$with_gnome_req" = yes -a "$have_gnome" = no \
20230 -a "$have_gtk2" = no; then
20231 # don't issue this warning if we have GTK2 -- in that case, the
20232 # Gnome-specific code isn't needed.
20233 warn 'Use of the Gnome Control Panel was requested, but the necessary'
20234 warn2 'headers and/or libraries were not found.'
20237 if test "$have_gtk" = yes ; then
20238 if test "$have_xml" = no ; then
20239 if test "$with_xml_req" = yes ; then
20240 warn 'Use of the XML library was requested, but the necessary'
20241 warn2 'headers and/or libraries were not found.'
20243 warn 'GTK is being used, but the XML library was not found.'
20246 if test "$xml_halfassed" = yes ; then
20248 if test "$have_zlib" = yes ; then
20249 which="XML libraries"
20251 which="\`zlib' library"
20255 warn2 'More specifically, we found the headers, but not the'
20256 warn2 "$which; so either XML is half-installed on this"
20257 warn2 "system, or something else went wrong. The \`config.log'"
20258 warn2 'file might contain some clues.'
20262 warn2 "Without XML, the per-display-mode \`Settings' dialogs"
20263 warn2 'will not be available. Specify the location of the XML'
20264 warn2 'library through the --with-xml option to configure.'
20268 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
20269 warn "GTK is being used, but the GDK-Pixbuf library and/or"
20270 warn2 "headers were not found. That can't be good. Please"
20271 warn2 "install the GDK-Pixbuf development kit and re-configure."
20274 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
20276 preferred_lesstif=0.92
20278 if test "$lesstif_version" = unknown; then
20279 warnL "Unable to determine the LessTif version number!"
20280 warn2 "Make sure you are using version $preferred_lesstif or newer."
20281 warn2 "See <http://www.lesstif.org/>."
20283 elif test \! $lesstif_version -gt 82; then
20284 warnL "LessTif version $lesstif_version_string is being used."
20285 warn2 "LessTif versions 0.82 and earlier are too buggy to"
20286 warn2 "use with XScreenSaver; it is strongly recommended"
20287 warn2 "that you upgrade to at least version $preferred_lesstif!"
20288 warn2 "See <http://www.lesstif.org/>."
20293 if test "$have_motif" = yes -a "$have_gtk" = no ; then
20294 warn 'Motif is being used, and GTK is not.'
20300 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
20301 warnL 'Use of XPM was requested, but it was not found.'
20304 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
20305 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
20308 if test "$have_xpm" = no -a "$have_gdk_pixbuf" = no || \
20309 test "$gdk_pixbuf_halfassed" = yes; then
20311 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
20313 elif test "$with_xpm_req" = no ; then
20314 warnL 'The XPM library is not being used.'
20316 warnL 'The XPM library was not found.'
20319 if test "$with_gdk_pixbuf_req" = yes ; then
20321 elif test "$with_gdk_pixbuf_req" = no ; then
20322 warnL 'The GDK-Pixbuf library is not being used.'
20324 warnL 'The GDK-Pixbuf library was not found.'
20327 if test "$gdk_pixbuf_halfassed" = yes ; then
20329 warn2 'More specifically, we found the headers, but not the'
20330 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
20331 warn2 "system, or something else went wrong. The \`config.log'"
20332 warn2 'file might contain some clues.'
20336 warn2 'Some of the demos will not be as colorful as they'
20337 warn2 'could be. You should consider installing Pixbuf or'
20338 warn2 'XPM and re-running configure. The Pixbuf library is'
20339 warn2 'a part of GNOME. The XPM library comes with most'
20340 warn2 'X11 installations; you can also find it at the X11'
20341 warn2 'archive sites, such as <http://sunsite.unc.edu/>.'
20343 warn2 'GDK-Pixbuf is recommended over XPM, as it provides'
20344 warn2 'support for more image formats.'
20348 if test "$have_jpeg" = no ; then
20349 if test "$with_jpeg_req" = yes ; then
20350 warnL 'Use of libjpeg was requested, but it was not found.'
20351 elif test "$with_jpeg_req" = no ; then
20352 noteL 'The JPEG library is not being used.'
20354 noteL 'The JPEG library was not found.'
20357 if test "$jpeg_halfassed" = yes ; then
20359 warn2 'More specifically, we found the headers, but not the'
20360 warn2 'library; so either JPEG is half-installed on this'
20361 warn2 "system, or something else went wrong. The \`config.log'"
20362 warn2 'file might contain some clues.'
20366 if test "$have_gdk_pixbuf" = no ; then
20367 warn2 "This means that it won't be possible for the image-manipulating"
20368 warn2 "display modes to load files from disk; and it also means that"
20369 warn2 "the \`webcollage' program will be much slower."
20371 warn2 "This means the \`webcollage' program will be much slower."
20376 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
20377 preferred_mesagl=3.4
20378 mgv="$ac_mesagl_version_string"
20379 pgl="$preferred_mesagl"
20381 if test "$ac_mesagl_version" = unknown; then
20382 warnL "Unable to determine the MesaGL version number!"
20383 warn2 "Make sure you are using version $preferred_mesagl or newer."
20385 elif test \! "$ac_mesagl_version" -gt 2006; then
20386 warnL "MesaGL version number is $mgv --"
20387 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
20388 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
20390 elif test \! "$ac_mesagl_version" -gt 3003; then
20391 warnL "MesaGL version number is $mgv --"
20392 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
20393 warn2 "that you upgrade to $pgl or newer."
20397 if test "$have_gl" = no ; then
20398 if test "$with_gl_req" = yes ; then
20399 warnL 'Use of GL was requested, but it was not found.'
20400 elif test "$with_gl_req" = no ; then
20401 noteL 'The OpenGL 3D library is not being used.'
20403 noteL 'The OpenGL 3D library was not found.'
20406 if test "$gl_halfassed" = yes ; then
20408 warn2 'More specifically, we found the headers, but not the'
20409 warn2 'libraries; so either GL is half-installed on this'
20410 warn2 "system, or something else went wrong. The \`config.log'"
20411 warn2 'file might contain some clues.'
20415 warn2 'Those demos which use 3D will not be built or installed.'
20416 warn2 'You might want to consider installing OpenGL and'
20417 warn2 "re-running configure. If your vendor doesn't ship"
20418 warn2 'their own implementation of OpenGL, you can get a free'
20419 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
20420 warn2 'info, see <http://www.opengl.org/>.'
20425 if test "$have_gl" = yes -a "$have_gle" = no ; then
20427 # nobody cares about this; don't print the warning unless it was
20428 # requested and not found, or halfway-found.
20429 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
20431 if test "$with_gle_req" = yes ; then
20432 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
20433 warn2 'it was not found (though the OpenGL library was found, and'
20434 warn2 'is being used.)'
20435 elif test "$with_gle_req" = no ; then
20436 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
20437 warn2 'library is not.'
20439 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
20443 if test "$gle_halfassed" = yes ; then
20445 warn2 'More specifically, we found the headers, but not the'
20446 warn2 'libraries; so either GLE is half-installed on this'
20447 warn2 "system, or something else went wrong. The \`config.log'"
20448 warn2 'file might contain some clues.'
20452 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
20453 warn2 'will not be built or installed. You might want to consider'
20454 warn2 'installing GLE and re-running configure. You can find the'
20455 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
20456 warn2 'OpenGL info, see <http://www.opengl.org/>.'
20462 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
20463 warn 'Use of XReadDisplay was requested, but it was not found.'
20466 if test -n "$with_fortune_req"; then
20467 if test "$with_fortune_req" != "$ac_cv_fortune_program" ; then
20468 warnL "$with_fortune_req was requested as the Fortune program,"
20469 warn2 "but was not found. The default will be used instead."
20473 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
20474 warn 'Use of Kerberos was requested, but it was not found.'
20477 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
20478 warn 'Use of PAM was requested, but it was not found.'
20481 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
20482 warn 'Use of shadow passwords was requested, but they were not found.'
20486 # You are in a twisty maze of namespaces and syntaxes, all alike.
20487 # Fuck the skull of Unix.
20489 eval bindir=${bindir}
20490 eval bindir=${bindir}
20491 eval bindir=${bindir}
20492 eval bindir=${bindir}
20493 eval bindir=${bindir}
20494 eval bindir=${bindir}
20495 eval HACKDIR=${HACKDIR}
20496 eval HACKDIR=${HACKDIR}
20497 eval HACKDIR=${HACKDIR}
20498 eval HACKDIR=${HACKDIR}
20499 eval HACKDIR=${HACKDIR}
20500 eval HACKDIR=${HACKDIR}
20501 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20502 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20503 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20504 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20505 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20506 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20508 # canonicalize slashes.
20509 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
20510 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
20511 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
20514 # Sanity check the hackdir
20515 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
20516 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
20518 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
20519 There will be an executable installed with that name, so
20520 that can't be the name of a directory as well. Please
20521 re-configure with a different directory name." >&5
20522 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
20523 There will be an executable installed with that name, so
20524 that can't be the name of a directory as well. Please
20525 re-configure with a different directory name." >&2;}
20526 { (exit 1); exit 1; }; }
20533 # Now let's see if there's a previous RPM version already installed. Blargh!
20537 rpmv=`(rpm -qv xscreensaver) 2>/dev/null | \
20538 sed -n 's/^xscreensaver-\([0-9][0-9]*[.][0-9][0-9]*\)-.*$/\1/p'`
20541 if test \! -z "$rpmv" ; then
20542 rpmbdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
20543 rpmhdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/attraction$@\1@p'`
20546 warnL "There is already an installed RPM of xscreensaver $rpmv"
20547 warn2 "on this system. You might want to remove it (with"
20548 warn2 '"rpm -ve xscreensaver") before running "make install"'
20549 warn2 "from this directory."
20551 warn2 "Alternately, you could build this version of xscreensaver"
20552 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
20553 warn2 "file is included. See the RPM documentation for more info."
20556 if test "$rpmbdir" = "$rpmhdir" ; then
20557 warn2 "The RPM version was installed in $rpmbdir/."
20559 warn2 "The RPM version was installed in $rpmbdir/,"
20560 warn2 "with demos in $rpmhdir/."
20567 if test "${bindir}" = "${HACKDIR}" ; then
20571 if test "$do_dir_warning" = yes; then
20575 echo ' When you run "make install", the "xscreensaver",'
20576 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
20577 echo " will be installed in ${bindir}/."
20579 echo " The various graphics demos (175+ different executables) will"
20580 echo " be installed in ${HACKDIR}/."
20582 echo " If you would prefer the demos to be installed elsewhere,"
20583 echo " you should re-run configure with the --with-hackdir=DIR"
20584 echo " option. For more information, run \`./configure --help'."
20588 if test "$warning" != no; then
20589 echo '' ; echo "$warnsep" ; echo ''
20592 if test "$do_dir_warning" = no; then
20593 if test "$warning" = no; then
20596 echo "User programs will be installed in ${bindir}/"
20597 echo "Screen savers will be installed in ${HACKDIR}/"
20598 echo "Configuration will be installed in ${HACK_CONF_DIR}/"