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 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
2526 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2527 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2528 if test "$cross_compiling" = yes; then
2529 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2530 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2531 { (exit 1); exit 1; }; }
2533 cat >conftest.$ac_ext <<_ACEOF
2534 #line $LINENO "configure"
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2540 main(int ac, char **av) { return 0; }
2542 rm -f conftest$ac_exeext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2544 (eval $ac_link) 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 echo "$as_me:$LINENO: result: yes" >&5
2554 echo "${ECHO_T}yes" >&6
2556 echo "$as_me: program exited with status $ac_status" >&5
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2561 echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6
2563 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2564 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2565 { (exit 1); exit 1; }; }
2567 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2570 if test -n "$GCC"; then
2571 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2572 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2573 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs"
2574 # supposedly gcc 3.4 will have "-Wdeclaration-after-statement"
2575 # and then perhaps we can do without -pedantic?
2578 *-irix5* |*-irix6.0-3* )
2579 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2580 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2581 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2584 # if test -z "$GCC"; then
2585 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2586 # CC="$CC -migrate -w0 -verbose -warnprotos"
2592 if test -n "$GCC"; then
2593 if test -n "$GCC"; then
2594 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2595 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2596 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 if ( ( gcc -E -std=c89 - </dev/null >/dev/null ) 2>&1 | \
2600 grep unrecognized >/dev/null ); then
2601 ac_cv_gcc_accepts_std=no
2603 ac_cv_gcc_accepts_std=yes
2606 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2607 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2608 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2611 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2612 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2614 # The reason that // comments are banned from xscreensaver is that gcc is
2615 # basically the only compiler in the world that supports them in C code.
2616 # All other vendors support them only in their C++ compilers, not in their
2617 # ANSI C compilers. This means that it's a portability problem: every time
2618 # these comments have snuck into the xscreensaver source code, I've gotten
2619 # complaints about it the next day. So we turn off support for them in gcc
2620 # as well to prevent them from accidentially slipping in.
2622 if test "$ac_gcc_accepts_std" = yes ; then
2624 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2625 # (That appears to be the only additional preprocessor symbol
2626 # it defines, in addition to the syntax changes it makes.)
2628 # -std=gnu89 is no good, because // comments were a GNU extension
2629 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2630 # with -std=gnu89 but not with -std=c89.)
2632 CC="$CC -std=c89 -U__STRICT_ANSI__"
2635 CC="$CC -Wp,-lang-c89"
2639 if test -n "$GCC"; then
2640 if test -n "$GCC"; then
2641 echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
2642 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6
2643 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if ( ( gcc -E -no-cpp-precomp - </dev/null >/dev/null ) 2>&1 | \
2647 grep unrecognized >/dev/null ); then
2648 ac_cv_gcc_accepts_no_cpp_precomp=no
2650 ac_cv_gcc_accepts_no_cpp_precomp=yes
2653 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
2654 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6
2655 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
2658 if test "$ac_gcc_accepts_no_cpp_precomp" = yes ; then
2659 echo "$as_me:$LINENO: result: Disabling Objective C extensions in ANSI C code." >&5
2660 echo "${ECHO_T}Disabling Objective C extensions in ANSI C code." >&6
2661 CC="$CC -no-cpp-precomp"
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2671 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2672 # On Suns, sometimes $CPP names a directory.
2673 if test -n "$CPP" && test -d "$CPP"; then
2676 if test -z "$CPP"; then
2677 if test "${ac_cv_prog_CPP+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 # Double quotes because CPP needs to be expanded
2681 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2684 for ac_c_preproc_warn_flag in '' yes
2686 # Use a header file that comes with gcc, so configuring glibc
2687 # with a fresh cross-compiler works.
2688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2689 # <limits.h> exists even on freestanding compilers.
2690 # On the NeXT, cc -E runs the code through the compiler's parser,
2691 # not just through cpp. "Syntax error" is here to catch this case.
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2700 # include <limits.h>
2702 # include <assert.h>
2706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } >/dev/null; then
2714 if test -s conftest.err; then
2715 ac_cpp_err=$ac_c_preproc_warn_flag
2722 if test -z "$ac_cpp_err"; then
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 # Broken: fails on valid input.
2731 rm -f conftest.err conftest.$ac_ext
2733 # OK, works on sane cases. Now check whether non-existent headers
2734 # can be detected and how.
2735 cat >conftest.$ac_ext <<_ACEOF
2736 #line $LINENO "configure"
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2742 #include <ac_nonexistent.h>
2744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2747 grep -v '^ *+' conftest.er1 >conftest.err
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } >/dev/null; then
2752 if test -s conftest.err; then
2753 ac_cpp_err=$ac_c_preproc_warn_flag
2760 if test -z "$ac_cpp_err"; then
2761 # Broken: success on invalid input.
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 # Passes both tests.
2771 rm -f conftest.err conftest.$ac_ext
2774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2775 rm -f conftest.err conftest.$ac_ext
2776 if $ac_preproc_ok; then
2788 echo "$as_me:$LINENO: result: $CPP" >&5
2789 echo "${ECHO_T}$CPP" >&6
2791 for ac_c_preproc_warn_flag in '' yes
2793 # Use a header file that comes with gcc, so configuring glibc
2794 # with a fresh cross-compiler works.
2795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2796 # <limits.h> exists even on freestanding compilers.
2797 # On the NeXT, cc -E runs the code through the compiler's parser,
2798 # not just through cpp. "Syntax error" is here to catch this case.
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2807 # include <limits.h>
2809 # include <assert.h>
2813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2816 grep -v '^ *+' conftest.er1 >conftest.err
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } >/dev/null; then
2821 if test -s conftest.err; then
2822 ac_cpp_err=$ac_c_preproc_warn_flag
2829 if test -z "$ac_cpp_err"; then
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2835 # Broken: fails on valid input.
2838 rm -f conftest.err conftest.$ac_ext
2840 # OK, works on sane cases. Now check whether non-existent headers
2841 # can be detected and how.
2842 cat >conftest.$ac_ext <<_ACEOF
2843 #line $LINENO "configure"
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2849 #include <ac_nonexistent.h>
2851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2854 grep -v '^ *+' conftest.er1 >conftest.err
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } >/dev/null; then
2859 if test -s conftest.err; then
2860 ac_cpp_err=$ac_c_preproc_warn_flag
2867 if test -z "$ac_cpp_err"; then
2868 # Broken: success on invalid input.
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 # Passes both tests.
2878 rm -f conftest.err conftest.$ac_ext
2881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2882 rm -f conftest.err conftest.$ac_ext
2883 if $ac_preproc_ok; then
2886 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2889 See \`config.log' for more details." >&2;}
2890 { (exit 1); exit 1; }; }
2894 ac_cpp='$CPP $CPPFLAGS'
2895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2900 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2901 if test "${ac_cv_c_const+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 cat >conftest.$ac_ext <<_ACEOF
2905 #line $LINENO "configure"
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2915 /* FIXME: Include the comments suggested by Paul. */
2917 /* Ultrix mips cc rejects this. */
2918 typedef int charset[2];
2920 /* SunOS 4.1.1 cc rejects this. */
2921 char const *const *ccp;
2923 /* NEC SVR4.0.2 mips cc rejects this. */
2924 struct point {int x, y;};
2925 static struct point const zero = {0,0};
2926 /* AIX XL C 1.02.0.0 rejects this.
2927 It does not let you subtract one const X* pointer from another in
2928 an arm of an if-expression whose if-part is not a constant
2930 const char *g = "string";
2931 ccp = &g + (g ? g-g : 0);
2932 /* HPUX 7.0 cc rejects these. */
2935 ccp = (char const *const *) p;
2936 { /* SCO 3.2v4 cc rejects this. */
2938 char const *s = 0 ? (char *) 0 : (char const *) 0;
2942 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2944 const int *foo = &x[0];
2947 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2948 typedef const int *iptr;
2952 { /* AIX XL C 1.02.0.0 rejects this saying
2953 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2954 struct s { int j; const int *ap[3]; };
2955 struct s *b; b->j = 5;
2957 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2966 rm -f conftest.$ac_objext
2967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2968 (eval $ac_compile) 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -s conftest.$ac_objext'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2985 rm -f conftest.$ac_objext conftest.$ac_ext
2987 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2988 echo "${ECHO_T}$ac_cv_c_const" >&6
2989 if test $ac_cv_c_const = no; then
2991 cat >>confdefs.h <<\_ACEOF
2997 echo "$as_me:$LINENO: checking for inline" >&5
2998 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2999 if test "${ac_cv_c_inline+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 for ac_kw in inline __inline__ __inline; do
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3013 static $ac_kw foo_t static_foo () {return 0; }
3014 $ac_kw foo_t foo () {return 0; }
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 ac_cv_c_inline=$ac_kw; break
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3036 rm -f conftest.$ac_objext conftest.$ac_ext
3040 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3041 echo "${ECHO_T}$ac_cv_c_inline" >&6
3042 case $ac_cv_c_inline in
3045 cat >>confdefs.h <<\_ACEOF
3049 *) cat >>confdefs.h <<_ACEOF
3050 #define inline $ac_cv_c_inline
3056 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3057 echo "$as_me:$LINENO: checking for bc" >&5
3058 echo $ECHO_N "checking for bc... $ECHO_C" >&6
3059 if test "$ac_bc_result" = "15" ; then
3060 echo "$as_me:$LINENO: result: yes" >&5
3061 echo "${ECHO_T}yes" >&6
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3066 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3067 part of Unix since the 1970s. Come back when your vendor
3068 has grown a clue." >&5
3069 echo "$as_me: 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." >&2;}
3072 { (exit 1); exit 1; }; }
3076 # stuff for Makefiles
3077 # Find a good install program. We prefer a C program (faster),
3078 # so one script is as good as another. But avoid the broken or
3079 # incompatible versions:
3080 # SysV /etc/install, /usr/sbin/install
3081 # SunOS /usr/etc/install
3082 # IRIX /sbin/install
3084 # AmigaOS /C/install, which installs bootblocks on floppy discs
3085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3088 # ./install, which can be erroneously created by make from ./install.sh.
3089 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3090 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3091 if test -z "$INSTALL"; then
3092 if test "${ac_cv_path_install+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 # Account for people who put trailing slashes in PATH elements.
3102 ./ | .// | /cC/* | \
3103 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3106 # OSF1 and SCO ODT 3.0 have their own names for install.
3107 # Don't use installbsd from OSF since it installs stuff as root
3109 for ac_prog in ginstall scoinst install; do
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3112 if test $ac_prog = install &&
3113 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3114 # AIX install. It has an incompatible calling convention.
3116 elif test $ac_prog = install &&
3117 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3118 # program-specific install script used by HP pwplus--don't use.
3121 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3133 if test "${ac_cv_path_install+set}" = set; then
3134 INSTALL=$ac_cv_path_install
3136 # As a last resort, use the slow shell script. We don't cache a
3137 # path for INSTALL within a source directory, because that will
3138 # break other packages using the cache if that directory is
3139 # removed, or if the path is relative.
3140 INSTALL=$ac_install_sh
3143 echo "$as_me:$LINENO: result: $INSTALL" >&5
3144 echo "${ECHO_T}$INSTALL" >&6
3146 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3147 # It thinks the first close brace ends the variable substitution.
3148 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3150 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3152 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3154 echo "$as_me:$LINENO: checking whether \\"\${INSTALL} -d\\" creates intermediate directories" >&5
3155 echo $ECHO_N "checking whether \\"\${INSTALL} -d\\" creates intermediate directories... $ECHO_C" >&6
3156 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 ac_cv_install_d_creates_dirs=no
3161 if mkdir conftestdir; then
3162 cd conftestdir 2>/dev/null
3163 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
3164 if test -d dir1/dir2/. ; then
3165 ac_cv_install_d_creates_dirs=yes
3172 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
3173 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
3175 if test "$ac_cv_install_d_creates_dirs" = no ; then
3176 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
3177 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
3178 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 ac_cv_mkdir_p_creates_dirs=no
3183 if mkdir conftestdir; then
3184 cd conftestdir 2>/dev/null
3185 mkdir -p dir1/dir2 >/dev/null 2>&1
3186 if test -d dir1/dir2/. ; then
3187 ac_cv_mkdir_p_creates_dirs=yes
3194 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3195 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3198 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3199 INSTALL_DIRS='${INSTALL} -d'
3200 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3201 INSTALL_DIRS='mkdir -p'
3204 INSTALL_DIRS='${INSTALL} -d'
3207 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3208 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3209 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3210 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 cat >conftest.make <<\_ACEOF
3215 @echo 'ac_maketemp="$(MAKE)"'
3217 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3218 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3219 if test -n "$ac_maketemp"; then
3220 eval ac_cv_prog_make_${ac_make}_set=yes
3222 eval ac_cv_prog_make_${ac_make}_set=no
3226 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3227 echo "$as_me:$LINENO: result: yes" >&5
3228 echo "${ECHO_T}yes" >&6
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3233 SET_MAKE="MAKE=${MAKE-make}"
3237 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3238 # That's wrong: it should be set to '${INSTALL}', so that one can
3239 # implement the "install-strip" target properly (strip executables,
3240 # but do not try to strip scripts.)
3242 INSTALL_SCRIPT='${INSTALL}'
3246 echo "$as_me:$LINENO: checking for egrep" >&5
3247 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3248 if test "${ac_cv_prog_egrep+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3252 then ac_cv_prog_egrep='grep -E'
3253 else ac_cv_prog_egrep='egrep'
3256 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3257 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3258 EGREP=$ac_cv_prog_egrep
3261 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3262 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3263 if test "${ac_cv_header_stdc+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 cat >conftest.$ac_ext <<_ACEOF
3267 #line $LINENO "configure"
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3286 rm -f conftest.$ac_objext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288 (eval $ac_compile) 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 ac_cv_header_stdc=yes
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 ac_cv_header_stdc=no
3305 rm -f conftest.$ac_objext conftest.$ac_ext
3307 if test $ac_cv_header_stdc = yes; then
3308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3309 cat >conftest.$ac_ext <<_ACEOF
3310 #line $LINENO "configure"
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3320 $EGREP "memchr" >/dev/null 2>&1; then
3323 ac_cv_header_stdc=no
3329 if test $ac_cv_header_stdc = yes; then
3330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3331 cat >conftest.$ac_ext <<_ACEOF
3332 #line $LINENO "configure"
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3342 $EGREP "free" >/dev/null 2>&1; then
3345 ac_cv_header_stdc=no
3351 if test $ac_cv_header_stdc = yes; then
3352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3353 if test "$cross_compiling" = yes; then
3356 cat >conftest.$ac_ext <<_ACEOF
3357 #line $LINENO "configure"
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3364 #if ((' ' & 0x0FF) == 0x020)
3365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3368 # define ISLOWER(c) \
3369 (('a' <= (c) && (c) <= 'i') \
3370 || ('j' <= (c) && (c) <= 'r') \
3371 || ('s' <= (c) && (c) <= 'z'))
3372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3380 for (i = 0; i < 256; i++)
3381 if (XOR (islower (i), ISLOWER (i))
3382 || toupper (i) != TOUPPER (i))
3387 rm -f conftest$ac_exeext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3389 (eval $ac_link) 2>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3400 echo "$as_me: program exited with status $ac_status" >&5
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3405 ac_cv_header_stdc=no
3407 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3411 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3412 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3413 if test $ac_cv_header_stdc = yes; then
3415 cat >>confdefs.h <<\_ACEOF
3416 #define STDC_HEADERS 1
3421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3432 inttypes.h stdint.h unistd.h
3434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3435 echo "$as_me:$LINENO: checking for $ac_header" >&5
3436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 $ac_includes_default
3449 #include <$ac_header>
3451 rm -f conftest.$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3463 eval "$as_ac_Header=yes"
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 eval "$as_ac_Header=no"
3470 rm -f conftest.$ac_objext conftest.$ac_ext
3472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3475 cat >>confdefs.h <<_ACEOF
3476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3485 for ac_header in unistd.h
3487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3489 echo "$as_me:$LINENO: checking for $ac_header" >&5
3490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3497 # Is the header compilable?
3498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3501 #line $LINENO "configure"
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3507 $ac_includes_default
3508 #include <$ac_header>
3510 rm -f conftest.$ac_objext
3511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3512 (eval $ac_compile) 2>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 ac_header_compiler=yes
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 ac_header_compiler=no
3529 rm -f conftest.$ac_objext conftest.$ac_ext
3530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3531 echo "${ECHO_T}$ac_header_compiler" >&6
3533 # Is the header present?
3534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3537 #line $LINENO "configure"
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #include <$ac_header>
3545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } >/dev/null; then
3553 if test -s conftest.err; then
3554 ac_cpp_err=$ac_c_preproc_warn_flag
3561 if test -z "$ac_cpp_err"; then
3562 ac_header_preproc=yes
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 ac_header_preproc=no
3569 rm -f conftest.err conftest.$ac_ext
3570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3571 echo "${ECHO_T}$ac_header_preproc" >&6
3573 # So? What about this header?
3574 case $ac_header_compiler:$ac_header_preproc in
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3582 ## ------------------------------------ ##
3583 ## Report this to bug-autoconf@gnu.org. ##
3584 ## ------------------------------------ ##
3587 sed "s/^/$as_me: WARNING: /" >&2
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3598 ## ------------------------------------ ##
3599 ## Report this to bug-autoconf@gnu.org. ##
3600 ## ------------------------------------ ##
3603 sed "s/^/$as_me: WARNING: /" >&2
3606 echo "$as_me:$LINENO: checking for $ac_header" >&5
3607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 eval "$as_ac_Header=$ac_header_preproc"
3613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3618 cat >>confdefs.h <<_ACEOF
3619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3626 echo "$as_me:$LINENO: checking for mode_t" >&5
3627 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3628 if test "${ac_cv_type_mode_t+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 cat >conftest.$ac_ext <<_ACEOF
3632 #line $LINENO "configure"
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638 $ac_includes_default
3644 if (sizeof (mode_t))
3650 rm -f conftest.$ac_objext
3651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } &&
3656 { ac_try='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_cv_type_mode_t=yes
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 ac_cv_type_mode_t=no
3669 rm -f conftest.$ac_objext conftest.$ac_ext
3671 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3672 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3673 if test $ac_cv_type_mode_t = yes; then
3677 cat >>confdefs.h <<_ACEOF
3683 echo "$as_me:$LINENO: checking for pid_t" >&5
3684 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3685 if test "${ac_cv_type_pid_t+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 cat >conftest.$ac_ext <<_ACEOF
3689 #line $LINENO "configure"
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 $ac_includes_default
3707 rm -f conftest.$ac_objext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709 (eval $ac_compile) 2>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -s conftest.$ac_objext'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 ac_cv_type_pid_t=yes
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3726 rm -f conftest.$ac_objext conftest.$ac_ext
3728 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3729 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3730 if test $ac_cv_type_pid_t = yes; then
3734 cat >>confdefs.h <<_ACEOF
3740 echo "$as_me:$LINENO: checking for size_t" >&5
3741 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3742 if test "${ac_cv_type_size_t+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 cat >conftest.$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 $ac_includes_default
3758 if (sizeof (size_t))
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -s conftest.$ac_objext'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 ac_cv_type_size_t=yes
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3781 ac_cv_type_size_t=no
3783 rm -f conftest.$ac_objext conftest.$ac_ext
3785 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3786 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3787 if test $ac_cv_type_size_t = yes; then
3791 cat >>confdefs.h <<_ACEOF
3792 #define size_t unsigned
3797 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3798 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3799 if test "${ac_cv_type_signal+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 cat >conftest.$ac_ext <<_ACEOF
3803 #line $LINENO "configure"
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3809 #include <sys/types.h>
3815 extern "C" void (*signal (int, void (*)(int)))(int);
3817 void (*signal ()) ();
3828 rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -s conftest.$ac_objext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 ac_cv_type_signal=void
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 ac_cv_type_signal=int
3847 rm -f conftest.$ac_objext conftest.$ac_ext
3849 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3850 echo "${ECHO_T}$ac_cv_type_signal" >&6
3852 cat >>confdefs.h <<_ACEOF
3853 #define RETSIGTYPE $ac_cv_type_signal
3857 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3858 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3859 if test "${ac_cv_header_time+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3863 #line $LINENO "configure"
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <sys/types.h>
3870 #include <sys/time.h>
3876 if ((struct tm *) 0)
3882 rm -f conftest.$ac_objext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
3888 { ac_try='test -s conftest.$ac_objext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 ac_cv_header_time=yes
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 ac_cv_header_time=no
3901 rm -f conftest.$ac_objext conftest.$ac_ext
3903 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3904 echo "${ECHO_T}$ac_cv_header_time" >&6
3905 if test $ac_cv_header_time = yes; then
3907 cat >>confdefs.h <<\_ACEOF
3908 #define TIME_WITH_SYS_TIME 1
3913 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3914 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3915 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 cat >conftest.$ac_ext <<_ACEOF
3919 #line $LINENO "configure"
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 #include <sys/types.h>
3926 #include <sys/wait.h>
3928 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3931 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3939 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3944 rm -f conftest.$ac_objext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946 (eval $ac_compile) 2>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -s conftest.$ac_objext'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_cv_header_sys_wait_h=yes
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 ac_cv_header_sys_wait_h=no
3963 rm -f conftest.$ac_objext conftest.$ac_ext
3965 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3966 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3967 if test $ac_cv_header_sys_wait_h = yes; then
3969 cat >>confdefs.h <<\_ACEOF
3970 #define HAVE_SYS_WAIT_H 1
3981 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3982 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3983 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3984 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 cat >conftest.$ac_ext <<_ACEOF
3989 #line $LINENO "configure"
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 #include <sys/types.h>
4007 rm -f conftest.$ac_objext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -s conftest.$ac_objext'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4019 eval "$as_ac_Header=yes"
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 eval "$as_ac_Header=no"
4026 rm -f conftest.$ac_objext conftest.$ac_ext
4028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4031 cat >>confdefs.h <<_ACEOF
4032 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4035 ac_header_dirent=$ac_hdr; break
4039 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4040 if test $ac_header_dirent = dirent.h; then
4041 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4042 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4043 if test "${ac_cv_search_opendir+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 ac_func_search_save_LIBS=$LIBS
4047 ac_cv_search_opendir=no
4048 cat >conftest.$ac_ext <<_ACEOF
4049 #line $LINENO "configure"
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4056 /* Override any gcc2 internal prototype to avoid an error. */
4060 /* We use char because int might match the return type of a gcc2
4061 builtin and then its argument prototype would still apply. */
4071 rm -f conftest.$ac_objext conftest$ac_exeext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4073 (eval $ac_link) 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_search_opendir="none required"
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4090 if test "$ac_cv_search_opendir" = no; then
4091 for ac_lib in dir; do
4092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4093 cat >conftest.$ac_ext <<_ACEOF
4094 #line $LINENO "configure"
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4101 /* Override any gcc2 internal prototype to avoid an error. */
4105 /* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4116 rm -f conftest.$ac_objext conftest$ac_exeext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4118 (eval $ac_link) 2>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -s conftest$ac_exeext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_search_opendir="-l$ac_lib"
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4138 LIBS=$ac_func_search_save_LIBS
4140 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4141 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4142 if test "$ac_cv_search_opendir" != no; then
4143 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4148 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4149 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4150 if test "${ac_cv_search_opendir+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 ac_func_search_save_LIBS=$LIBS
4154 ac_cv_search_opendir=no
4155 cat >conftest.$ac_ext <<_ACEOF
4156 #line $LINENO "configure"
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4163 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 ac_cv_search_opendir="none required"
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4197 if test "$ac_cv_search_opendir" = no; then
4199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4200 cat >conftest.$ac_ext <<_ACEOF
4201 #line $LINENO "configure"
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4208 /* Override any gcc2 internal prototype to avoid an error. */
4212 /* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4223 rm -f conftest.$ac_objext conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } &&
4229 { ac_try='test -s conftest$ac_exeext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 ac_cv_search_opendir="-l$ac_lib"
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4245 LIBS=$ac_func_search_save_LIBS
4247 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4248 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4249 if test "$ac_cv_search_opendir" != no; then
4250 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4256 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4257 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4258 if test "${ac_cv_gettimeofday_args+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 cat >conftest.$ac_ext <<_ACEOF
4262 #line $LINENO "configure"
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4269 #include <sys/time.h>
4273 struct timeval tv; struct timezone tzp;
4274 gettimeofday(&tv, &tzp);
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -s conftest.$ac_objext'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 ac_gettimeofday_args=2
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4304 #include <sys/time.h>
4308 struct timeval tv; gettimeofday(&tv);
4313 rm -f conftest.$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -s conftest.$ac_objext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 ac_gettimeofday_args=1
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 ac_gettimeofday_args=0
4332 rm -f conftest.$ac_objext conftest.$ac_ext
4334 rm -f conftest.$ac_objext conftest.$ac_ext
4335 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4338 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4339 if test "$ac_gettimeofday_args" = 1 ; then
4340 cat >>confdefs.h <<\_ACEOF
4341 #define HAVE_GETTIMEOFDAY 1
4344 echo "$as_me:$LINENO: result: one argument" >&5
4345 echo "${ECHO_T}one argument" >&6
4346 elif test "$ac_gettimeofday_args" = 2 ; then
4347 cat >>confdefs.h <<\_ACEOF
4348 #define HAVE_GETTIMEOFDAY 1
4351 cat >>confdefs.h <<\_ACEOF
4352 #define GETTIMEOFDAY_TWO_ARGS 1
4355 echo "$as_me:$LINENO: result: two arguments" >&5
4356 echo "${ECHO_T}two arguments" >&6
4358 echo "$as_me:$LINENO: result: unknown" >&5
4359 echo "${ECHO_T}unknown" >&6
4371 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4374 echo "$as_me:$LINENO: checking for $ac_func" >&5
4375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4376 if eval "test \"\${$as_ac_var+set}\" = set"; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 cat >conftest.$ac_ext <<_ACEOF
4380 #line $LINENO "configure"
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 /* System header to define __stub macros and hopefully few prototypes,
4387 which can conflict with char $ac_func (); below.
4388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4389 <limits.h> exists even on freestanding compilers. */
4391 # include <limits.h>
4393 # include <assert.h>
4395 /* Override any gcc2 internal prototype to avoid an error. */
4400 /* We use char because int might match the return type of a gcc2
4401 builtin and then its argument prototype would still apply. */
4403 /* The GNU C library defines this for functions which it implements
4404 to always fail with ENOSYS. Some functions are actually named
4405 something starting with __ and the normal name is an alias. */
4406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4409 char (*f) () = $ac_func;
4418 return f != $ac_func;
4423 rm -f conftest.$ac_objext conftest$ac_exeext
4424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4425 (eval $ac_link) 2>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -s conftest$ac_exeext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 eval "$as_ac_var=yes"
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 eval "$as_ac_var=no"
4442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4446 if test `eval echo '${'$as_ac_var'}'` = yes; then
4447 cat >>confdefs.h <<_ACEOF
4448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4459 for ac_func in sigaction syslog realpath setrlimit
4461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4462 echo "$as_me:$LINENO: checking for $ac_func" >&5
4463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4464 if eval "test \"\${$as_ac_var+set}\" = set"; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 /* System header to define __stub macros and hopefully few prototypes,
4475 which can conflict with char $ac_func (); below.
4476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4477 <limits.h> exists even on freestanding compilers. */
4479 # include <limits.h>
4481 # include <assert.h>
4483 /* Override any gcc2 internal prototype to avoid an error. */
4488 /* We use char because int might match the return type of a gcc2
4489 builtin and then its argument prototype would still apply. */
4491 /* The GNU C library defines this for functions which it implements
4492 to always fail with ENOSYS. Some functions are actually named
4493 something starting with __ and the normal name is an alias. */
4494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4497 char (*f) () = $ac_func;
4506 return f != $ac_func;
4511 rm -f conftest.$ac_objext conftest$ac_exeext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -s conftest$ac_exeext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 eval "$as_ac_var=yes"
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 eval "$as_ac_var=no"
4530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4534 if test `eval echo '${'$as_ac_var'}'` = yes; then
4535 cat >>confdefs.h <<_ACEOF
4536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4542 echo "$as_me:$LINENO: checking for struct icmp" >&5
4543 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
4544 if test "${ac_cv_have_icmp+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 cat >conftest.$ac_ext <<_ACEOF
4548 #line $LINENO "configure"
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4561 #include <sys/types.h>
4562 #include <sys/time.h>
4563 #include <sys/ipc.h>
4564 #include <sys/shm.h>
4565 #include <sys/socket.h>
4566 #include <netinet/in_systm.h>
4567 #include <netinet/in.h>
4568 #include <netinet/ip.h>
4569 #include <netinet/ip_icmp.h>
4570 #include <netinet/udp.h>
4571 #include <arpa/inet.h>
4578 struct sockaddr_in si;
4580 i.icmp_type = ICMP_ECHO;
4585 si.sin_family = AF_INET;
4586 #if defined(__DECC) || defined(_IP_VHL)
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4615 rm -f conftest.$ac_objext conftest.$ac_ext
4617 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
4618 echo "${ECHO_T}$ac_cv_have_icmp" >&6
4619 if test "$ac_cv_have_icmp" = yes ; then
4620 cat >>confdefs.h <<\_ACEOF
4625 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
4626 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
4627 if test "${ac_cv_have_icmphdr+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 cat >conftest.$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4644 #include <sys/types.h>
4645 #include <sys/time.h>
4646 #include <sys/ipc.h>
4647 #include <sys/shm.h>
4648 #include <sys/socket.h>
4649 #include <netinet/in_systm.h>
4650 #include <netinet/in.h>
4651 #include <netinet/ip.h>
4652 #include <netinet/ip_icmp.h>
4653 #include <netinet/udp.h>
4654 #include <arpa/inet.h>
4661 struct sockaddr_in si;
4667 i.un.echo.sequence = 0;
4668 si.sin_family = AF_INET;
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_have_icmphdr=yes
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 ac_cv_have_icmphdr=no
4693 rm -f conftest.$ac_objext conftest.$ac_ext
4695 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
4696 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
4697 if test "$ac_cv_have_icmphdr" = yes ; then
4698 cat >>confdefs.h <<\_ACEOF
4699 #define HAVE_ICMPHDR 1
4705 for ac_header in crypt.h sys/select.h
4707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4709 echo "$as_me:$LINENO: checking for $ac_header" >&5
4710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4717 # Is the header compilable?
4718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4720 cat >conftest.$ac_ext <<_ACEOF
4721 #line $LINENO "configure"
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 $ac_includes_default
4728 #include <$ac_header>
4730 rm -f conftest.$ac_objext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try='test -s conftest.$ac_objext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_header_compiler=yes
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 ac_header_compiler=no
4749 rm -f conftest.$ac_objext conftest.$ac_ext
4750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4751 echo "${ECHO_T}$ac_header_compiler" >&6
4753 # Is the header present?
4754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4756 cat >conftest.$ac_ext <<_ACEOF
4757 #line $LINENO "configure"
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <$ac_header>
4765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4768 grep -v '^ *+' conftest.er1 >conftest.err
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } >/dev/null; then
4773 if test -s conftest.err; then
4774 ac_cpp_err=$ac_c_preproc_warn_flag
4781 if test -z "$ac_cpp_err"; then
4782 ac_header_preproc=yes
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 ac_header_preproc=no
4789 rm -f conftest.err conftest.$ac_ext
4790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4791 echo "${ECHO_T}$ac_header_preproc" >&6
4793 # So? What about this header?
4794 case $ac_header_compiler:$ac_header_preproc in
4796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4802 ## ------------------------------------ ##
4803 ## Report this to bug-autoconf@gnu.org. ##
4804 ## ------------------------------------ ##
4807 sed "s/^/$as_me: WARNING: /" >&2
4810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4818 ## ------------------------------------ ##
4819 ## Report this to bug-autoconf@gnu.org. ##
4820 ## ------------------------------------ ##
4823 sed "s/^/$as_me: WARNING: /" >&2
4826 echo "$as_me:$LINENO: checking for $ac_header" >&5
4827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 eval "$as_ac_Header=$ac_header_preproc"
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4838 cat >>confdefs.h <<_ACEOF
4839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4846 for ac_prog in perl5 perl
4848 # Extract the first word of "$ac_prog", so it can be a program name with args.
4849 set dummy $ac_prog; ac_word=$2
4850 echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852 if test "${ac_cv_path_PERL+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 PERL=$ac_cv_path_PERL
4879 if test -n "$PERL"; then
4880 echo "$as_me:$LINENO: result: $PERL" >&5
4881 echo "${ECHO_T}$PERL" >&6
4883 echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6
4887 test -n "$PERL" && break
4890 if test -z "$PERL" ; then
4893 echo "$as_me:$LINENO: checking perl version" >&5
4894 echo $ECHO_N "checking perl version... $ECHO_C" >&6
4895 if test "${ac_cv_perl_version+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
4900 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
4901 echo "${ECHO_T}$ac_cv_perl_version" >&6
4902 PERL_VERSION=$ac_cv_perl_version
4906 if test -z "$PERL" ; then
4907 # don't let it be blank...
4911 echo "$as_me:$LINENO: checking for X" >&5
4912 echo $ECHO_N "checking for X... $ECHO_C" >&6
4915 # Check whether --with-x or --without-x was given.
4916 if test "${with_x+set}" = set; then
4920 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4921 if test "x$with_x" = xno; then
4922 # The user explicitly disabled X.
4925 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4926 # Both variables are already set.
4929 if test "${ac_cv_have_x+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 # One or both of the vars are not set, and there is no cached value.
4933 ac_x_includes=no ac_x_libraries=no
4935 if mkdir conftest.dir; then
4937 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4938 cat >Imakefile <<'_ACEOF'
4940 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4942 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4944 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4945 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4946 for ac_extension in a so sl; do
4947 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4948 test -f $ac_im_libdir/libX11.$ac_extension; then
4949 ac_im_usrlibdir=$ac_im_libdir; break
4952 # Screen out bogus values from the imake configuration. They are
4953 # bogus both because they are the default anyway, and because
4954 # using them would break gcc on systems where it needs fixed includes.
4955 case $ac_im_incroot in
4957 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4959 case $ac_im_usrlibdir in
4961 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4968 # Standard set of common directories for X headers.
4969 # Check X11 before X11Rn because it is often a symlink to the current release.
4981 /usr/local/X11/include
4982 /usr/local/X11R6/include
4983 /usr/local/X11R5/include
4984 /usr/local/X11R4/include
4986 /usr/local/include/X11
4987 /usr/local/include/X11R6
4988 /usr/local/include/X11R5
4989 /usr/local/include/X11R4
4993 /usr/XFree86/include/X11
4997 /usr/unsupported/include
4999 /usr/local/x11r5/include
5000 /usr/lpp/Xamples/include
5002 /usr/openwin/include
5003 /usr/openwin/share/include'
5005 if test "$ac_x_includes" = no; then
5006 # Guess where to find include files, by looking for Intrinsic.h.
5007 # First, try using that file with no special directory specified.
5008 cat >conftest.$ac_ext <<_ACEOF
5009 #line $LINENO "configure"
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 #include <X11/Intrinsic.h>
5017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5020 grep -v '^ *+' conftest.er1 >conftest.err
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } >/dev/null; then
5025 if test -s conftest.err; then
5026 ac_cpp_err=$ac_c_preproc_warn_flag
5033 if test -z "$ac_cpp_err"; then
5034 # We can compile using X headers with no special include directory.
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 for ac_dir in $ac_x_header_dirs; do
5041 if test -r "$ac_dir/X11/Intrinsic.h"; then
5042 ac_x_includes=$ac_dir
5047 rm -f conftest.err conftest.$ac_ext
5048 fi # $ac_x_includes = no
5050 if test "$ac_x_libraries" = no; then
5051 # Check for the libraries.
5052 # See if we find them without any special options.
5053 # Don't add to $LIBS permanently.
5056 cat >conftest.$ac_ext <<_ACEOF
5057 #line $LINENO "configure"
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5063 #include <X11/Intrinsic.h>
5072 rm -f conftest.$ac_objext conftest$ac_exeext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5074 (eval $ac_link) 2>&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try='test -s conftest$ac_exeext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5085 # We can link X programs with no special library path.
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5092 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5094 # Don't even attempt the hair of trying to link an X program!
5095 for ac_extension in a so sl; do
5096 if test -r $ac_dir/libXt.$ac_extension; then
5097 ac_x_libraries=$ac_dir
5103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5104 fi # $ac_x_libraries = no
5106 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5107 # Didn't find X anywhere. Cache the known absence of X.
5108 ac_cv_have_x="have_x=no"
5110 # Record where we found X for the cache.
5111 ac_cv_have_x="have_x=yes \
5112 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5117 eval "$ac_cv_have_x"
5120 if test "$have_x" != yes; then
5121 echo "$as_me:$LINENO: result: $have_x" >&5
5122 echo "${ECHO_T}$have_x" >&6
5125 # If each of the values was on the command line, it overrides each guess.
5126 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5127 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5128 # Update the cache value to reflect the command line values.
5129 ac_cv_have_x="have_x=yes \
5130 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5131 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5132 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5135 if test "$no_x" = yes; then
5136 # Not all programs may use this symbol, but it does not hurt to define it.
5138 cat >>confdefs.h <<\_ACEOF
5139 #define X_DISPLAY_MISSING 1
5142 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5144 if test -n "$x_includes"; then
5145 X_CFLAGS="$X_CFLAGS -I$x_includes"
5148 # It would also be nice to do this for all -L options, not just this one.
5149 if test -n "$x_libraries"; then
5150 X_LIBS="$X_LIBS -L$x_libraries"
5151 # For Solaris; some versions of Sun CC require a space after -R and
5152 # others require no space. Words are not sufficient . . . .
5153 case `(uname -sr) 2>/dev/null` in
5155 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5156 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5157 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5158 cat >conftest.$ac_ext <<_ACEOF
5159 #line $LINENO "configure"
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5174 rm -f conftest.$ac_objext conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176 (eval $ac_link) 2>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -s conftest$ac_exeext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5194 if test $ac_R_nospace = yes; then
5195 echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6
5197 X_LIBS="$X_LIBS -R$x_libraries"
5199 LIBS="$ac_xsave_LIBS -R $x_libraries"
5200 cat >conftest.$ac_ext <<_ACEOF
5201 #line $LINENO "configure"
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5216 rm -f conftest.$ac_objext conftest$ac_exeext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5218 (eval $ac_link) 2>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -s conftest$ac_exeext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5236 if test $ac_R_space = yes; then
5237 echo "$as_me:$LINENO: result: yes" >&5
5238 echo "${ECHO_T}yes" >&6
5239 X_LIBS="$X_LIBS -R $x_libraries"
5241 echo "$as_me:$LINENO: result: neither works" >&5
5242 echo "${ECHO_T}neither works" >&6
5249 # Check for system-dependent libraries X programs must link with.
5250 # Do this before checking for the system-independent R6 libraries
5251 # (-lICE), since we may need -lsocket or whatever for X linking.
5253 if test "$ISC" = yes; then
5254 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5256 # Martyn Johnson says this is needed for Ultrix, if the X
5257 # libraries were built with DECnet support. And Karl Berry says
5258 # the Alpha needs dnet_stub (dnet does not exist).
5259 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5260 cat >conftest.$ac_ext <<_ACEOF
5261 #line $LINENO "configure"
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5268 /* Override any gcc2 internal prototype to avoid an error. */
5272 /* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5274 char XOpenDisplay ();
5283 rm -f conftest.$ac_objext conftest$ac_exeext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285 (eval $ac_link) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -s conftest$ac_exeext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5301 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5302 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 ac_check_lib_save_LIBS=$LIBS
5307 cat >conftest.$ac_ext <<_ACEOF
5308 #line $LINENO "configure"
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5315 /* Override any gcc2 internal prototype to avoid an error. */
5319 /* We use char because int might match the return type of a gcc2
5320 builtin and then its argument prototype would still apply. */
5330 rm -f conftest.$ac_objext conftest$ac_exeext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5332 (eval $ac_link) 2>&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try='test -s conftest$ac_exeext'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; }; then
5342 ac_cv_lib_dnet_dnet_ntoa=yes
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5347 ac_cv_lib_dnet_dnet_ntoa=no
5349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5350 LIBS=$ac_check_lib_save_LIBS
5352 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5353 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5354 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5355 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5358 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5359 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5360 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5361 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 ac_check_lib_save_LIBS=$LIBS
5365 LIBS="-ldnet_stub $LIBS"
5366 cat >conftest.$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5374 /* Override any gcc2 internal prototype to avoid an error. */
5378 /* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5391 (eval $ac_link) 2>&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -s conftest$ac_exeext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 ac_cv_lib_dnet_stub_dnet_ntoa=no
5408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5409 LIBS=$ac_check_lib_save_LIBS
5411 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5412 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5413 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5414 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5420 LIBS="$ac_xsave_LIBS"
5422 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5423 # to get the SysV transport functions.
5424 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5426 # The nsl library prevents programs from opening the X display
5427 # on Irix 5.2, according to T.E. Dickey.
5428 # The functions gethostbyname, getservbyname, and inet_addr are
5429 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5430 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5431 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5432 if test "${ac_cv_func_gethostbyname+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 cat >conftest.$ac_ext <<_ACEOF
5436 #line $LINENO "configure"
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 /* System header to define __stub macros and hopefully few prototypes,
5443 which can conflict with char gethostbyname (); below.
5444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 <limits.h> exists even on freestanding compilers. */
5447 # include <limits.h>
5449 # include <assert.h>
5451 /* Override any gcc2 internal prototype to avoid an error. */
5456 /* We use char because int might match the return type of a gcc2
5457 builtin and then its argument prototype would still apply. */
5458 char gethostbyname ();
5459 /* The GNU C library defines this for functions which it implements
5460 to always fail with ENOSYS. Some functions are actually named
5461 something starting with __ and the normal name is an alias. */
5462 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5465 char (*f) () = gethostbyname;
5474 return f != gethostbyname;
5479 rm -f conftest.$ac_objext conftest$ac_exeext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5481 (eval $ac_link) 2>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_func_gethostbyname=yes
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_cv_func_gethostbyname=no
5498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5501 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5503 if test $ac_cv_func_gethostbyname = no; then
5504 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5505 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5506 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 ac_check_lib_save_LIBS=$LIBS
5511 cat >conftest.$ac_ext <<_ACEOF
5512 #line $LINENO "configure"
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5519 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5525 char gethostbyname ();
5534 rm -f conftest.$ac_objext conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try='test -s conftest$ac_exeext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 ac_cv_lib_nsl_gethostbyname=yes
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 ac_cv_lib_nsl_gethostbyname=no
5553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5554 LIBS=$ac_check_lib_save_LIBS
5556 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5557 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5558 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5562 if test $ac_cv_lib_nsl_gethostbyname = no; then
5563 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5564 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5565 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 ac_check_lib_save_LIBS=$LIBS
5570 cat >conftest.$ac_ext <<_ACEOF
5571 #line $LINENO "configure"
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5578 /* Override any gcc2 internal prototype to avoid an error. */
5582 /* We use char because int might match the return type of a gcc2
5583 builtin and then its argument prototype would still apply. */
5584 char gethostbyname ();
5593 rm -f conftest.$ac_objext conftest$ac_exeext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595 (eval $ac_link) 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -s conftest$ac_exeext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_lib_bsd_gethostbyname=yes
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ac_cv_lib_bsd_gethostbyname=no
5612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5613 LIBS=$ac_check_lib_save_LIBS
5615 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5616 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5617 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5618 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5624 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5625 # socket/setsockopt and other routines are undefined under SCO ODT
5626 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5627 # on later versions), says Simon Leinen: it contains gethostby*
5628 # variants that don't use the name server (or something). -lsocket
5629 # must be given before -lnsl if both are needed. We assume that
5630 # if connect needs -lnsl, so does gethostbyname.
5631 echo "$as_me:$LINENO: checking for connect" >&5
5632 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5633 if test "${ac_cv_func_connect+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5637 #line $LINENO "configure"
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 /* System header to define __stub macros and hopefully few prototypes,
5644 which can conflict with char connect (); below.
5645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5646 <limits.h> exists even on freestanding compilers. */
5648 # include <limits.h>
5650 # include <assert.h>
5652 /* Override any gcc2 internal prototype to avoid an error. */
5657 /* We use char because int might match the return type of a gcc2
5658 builtin and then its argument prototype would still apply. */
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_connect) || defined (__stub___connect)
5666 char (*f) () = connect;
5675 return f != connect;
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682 (eval $ac_link) 2>&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_func_connect=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_func_connect=no
5699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5701 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5702 echo "${ECHO_T}$ac_cv_func_connect" >&6
5704 if test $ac_cv_func_connect = no; then
5705 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5706 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5707 if test "${ac_cv_lib_socket_connect+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 ac_check_lib_save_LIBS=$LIBS
5711 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5712 cat >conftest.$ac_ext <<_ACEOF
5713 #line $LINENO "configure"
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5720 /* Override any gcc2 internal prototype to avoid an error. */
5724 /* We use char because int might match the return type of a gcc2
5725 builtin and then its argument prototype would still apply. */
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5737 (eval $ac_link) 2>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try='test -s conftest$ac_exeext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 ac_cv_lib_socket_connect=yes
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5752 ac_cv_lib_socket_connect=no
5754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5755 LIBS=$ac_check_lib_save_LIBS
5757 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5758 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5759 if test $ac_cv_lib_socket_connect = yes; then
5760 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5765 # Guillermo Gomez says -lposix is necessary on A/UX.
5766 echo "$as_me:$LINENO: checking for remove" >&5
5767 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5768 if test "${ac_cv_func_remove+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 /* System header to define __stub macros and hopefully few prototypes,
5779 which can conflict with char remove (); below.
5780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5781 <limits.h> exists even on freestanding compilers. */
5783 # include <limits.h>
5785 # include <assert.h>
5787 /* Override any gcc2 internal prototype to avoid an error. */
5792 /* We use char because int might match the return type of a gcc2
5793 builtin and then its argument prototype would still apply. */
5795 /* The GNU C library defines this for functions which it implements
5796 to always fail with ENOSYS. Some functions are actually named
5797 something starting with __ and the normal name is an alias. */
5798 #if defined (__stub_remove) || defined (__stub___remove)
5801 char (*f) () = remove;
5815 rm -f conftest.$ac_objext conftest$ac_exeext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5817 (eval $ac_link) 2>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -s conftest$ac_exeext'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 ac_cv_func_remove=yes
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5832 ac_cv_func_remove=no
5834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5836 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5837 echo "${ECHO_T}$ac_cv_func_remove" >&6
5839 if test $ac_cv_func_remove = no; then
5840 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5841 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5842 if test "${ac_cv_lib_posix_remove+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_check_lib_save_LIBS=$LIBS
5846 LIBS="-lposix $LIBS"
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line $LINENO "configure"
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5855 /* Override any gcc2 internal prototype to avoid an error. */
5859 /* We use char because int might match the return type of a gcc2
5860 builtin and then its argument prototype would still apply. */
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872 (eval $ac_link) 2>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -s conftest$ac_exeext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_cv_lib_posix_remove=yes
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 ac_cv_lib_posix_remove=no
5889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5892 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5893 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5894 if test $ac_cv_lib_posix_remove = yes; then
5895 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5900 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5901 echo "$as_me:$LINENO: checking for shmat" >&5
5902 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5903 if test "${ac_cv_func_shmat+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 cat >conftest.$ac_ext <<_ACEOF
5907 #line $LINENO "configure"
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 /* System header to define __stub macros and hopefully few prototypes,
5914 which can conflict with char shmat (); below.
5915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5916 <limits.h> exists even on freestanding compilers. */
5918 # include <limits.h>
5920 # include <assert.h>
5922 /* Override any gcc2 internal prototype to avoid an error. */
5927 /* We use char because int might match the return type of a gcc2
5928 builtin and then its argument prototype would still apply. */
5930 /* The GNU C library defines this for functions which it implements
5931 to always fail with ENOSYS. Some functions are actually named
5932 something starting with __ and the normal name is an alias. */
5933 #if defined (__stub_shmat) || defined (__stub___shmat)
5936 char (*f) () = shmat;
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952 (eval $ac_link) 2>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -s conftest$ac_exeext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 ac_cv_func_shmat=yes
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5971 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5972 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5974 if test $ac_cv_func_shmat = no; then
5975 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5976 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5977 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 ac_check_lib_save_LIBS=$LIBS
5982 cat >conftest.$ac_ext <<_ACEOF
5983 #line $LINENO "configure"
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5990 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -s conftest$ac_exeext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 ac_cv_lib_ipc_shmat=yes
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_cv_lib_ipc_shmat=no
6024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6025 LIBS=$ac_check_lib_save_LIBS
6027 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6028 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6029 if test $ac_cv_lib_ipc_shmat = yes; then
6030 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6036 # Check for libraries that X11R6 Xt/Xaw programs need.
6037 ac_save_LDFLAGS=$LDFLAGS
6038 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6039 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6040 # check for ICE first), but we must link in the order -lSM -lICE or
6041 # we get undefined symbols. So assume we have SM if we have ICE.
6042 # These have to be linked with before -lX11, unlike the other
6043 # libraries we check for below, so use a different variable.
6044 # John Interrante, Karl Berry
6045 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6046 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6047 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6053 #line $LINENO "configure"
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6060 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6066 char IceConnectionNumber ();
6070 IceConnectionNumber ();
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -s conftest$ac_exeext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_lib_ICE_IceConnectionNumber=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_lib_ICE_IceConnectionNumber=no
6094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6095 LIBS=$ac_check_lib_save_LIBS
6097 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6098 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6099 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6100 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6103 LDFLAGS=$ac_save_LDFLAGS
6108 if test "$have_x" != yes; then
6109 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
6110 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
6111 { (exit 1); exit 1; }; }
6115 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
6116 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
6117 if test "${ac_cv_x_app_defaults+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 if mkdir conftestdir; then
6123 cd conftestdir 2>/dev/null
6124 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6125 cat > Imakefile <<'EOF'
6127 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
6129 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
6130 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
6131 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6136 if test x"$ac_x_app_defaults" = x; then
6138 # Look for the directory under a standard set of common directories.
6139 # Check X11 before X11Rn because it's often a symlink to the current release.
6141 /usr/X11/lib/app-defaults \
6142 /usr/X11R6/lib/app-defaults \
6143 /usr/X11R6/lib/X11/app-defaults \
6144 /usr/X11R5/lib/app-defaults \
6145 /usr/X11R5/lib/X11/app-defaults \
6146 /usr/X11R4/lib/app-defaults \
6147 /usr/X11R4/lib/X11/app-defaults \
6149 /usr/lib/X11/app-defaults \
6150 /usr/lib/X11R6/app-defaults \
6151 /usr/lib/X11R5/app-defaults \
6152 /usr/lib/X11R4/app-defaults \
6154 /usr/local/X11/lib/app-defaults \
6155 /usr/local/X11R6/lib/app-defaults \
6156 /usr/local/X11R5/lib/app-defaults \
6157 /usr/local/X11R4/lib/app-defaults \
6159 /usr/local/lib/X11/app-defaults \
6160 /usr/local/lib/X11R6/app-defaults \
6161 /usr/local/lib/X11R6/X11/app-defaults \
6162 /usr/local/lib/X11R5/app-defaults \
6163 /usr/local/lib/X11R5/X11/app-defaults \
6164 /usr/local/lib/X11R4/app-defaults \
6165 /usr/local/lib/X11R4/X11/app-defaults \
6167 /usr/X386/lib/X11/app-defaults \
6168 /usr/x386/lib/X11/app-defaults \
6169 /usr/XFree86/lib/X11/app-defaults \
6171 /usr/lib/X11/app-defaults \
6172 /usr/local/lib/X11/app-defaults \
6173 /usr/unsupported/lib/X11/app-defaults \
6174 /usr/athena/lib/X11/app-defaults \
6175 /usr/local/x11r5/lib/X11/app-defaults \
6176 /usr/lpp/Xamples/lib/X11/app-defaults \
6177 /lib/usr/lib/X11/app-defaults \
6179 /usr/openwin/lib/app-defaults \
6180 /usr/openwin/lib/X11/app-defaults \
6181 /usr/openwin/share/lib/app-defaults \
6182 /usr/openwin/share/lib/X11/app-defaults \
6184 /X11R6/lib/app-defaults \
6185 /X11R5/lib/app-defaults \
6186 /X11R4/lib/app-defaults \
6189 if test -d "$ac_dir"; then
6190 ac_x_app_defaults=$ac_dir
6196 if test x"$ac_x_app_defaults" = x; then
6197 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6199 # Record where we found app-defaults for the cache.
6200 ac_cv_x_app_defaults="$ac_x_app_defaults"
6203 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
6204 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
6205 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6209 # The following arcana was gleaned from conversations with
6210 # Eric Schwartz <erics@col.hp.com>:
6212 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6213 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6214 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6215 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6216 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6217 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6218 # you don't need any -I or -L arguments.
6220 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6221 # are the same division as 10.x. However, there are no symlinks to
6222 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6223 # arguments are always necessary.
6225 # However, X11R6 was available on HPUX 9.x as a patch: if that
6226 # patch was installed, then all of X11R6 went in to
6227 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6229 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6230 # whether R5 was available as a patch; R6 undoubtedly was not.)
6232 # So. We try and use the highest numbered pair of
6233 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6234 # that are available. We do not mix and match different versions
6237 # Question I still don't know the answer to: (do you?)
6239 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6240 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6241 # that contrib directory? Did it contain so-called "standard"
6242 # X11R6, or did it include Xaw and Xmu as well? If the former,
6243 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6244 # be a situation where one had to reach into the R5 headers and
6245 # libs to find Xmu? That is, must both R6 and R5 directories
6246 # be on the -I and -L lists in that case?
6248 for version in X11R6 X11R5 X11R4 ; do
6249 # if either pair of directories exists...
6250 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6252 # if contrib exists, use it...
6253 if test -d /usr/contrib/$version/include ; then
6254 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6255 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6257 # if the "standard" one exists, use it.
6258 if test -d /usr/include/$version ; then
6259 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6260 X_LIBS="$X_LIBS -L/usr/lib/$version"
6262 # since at least one of the pair exists, go no farther.
6267 # Now find Motif. Thanks for not making xmkmf find this by
6268 # default, you losers.
6270 if test -d /usr/include/Motif2.1 ; then
6271 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6272 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6273 elif test -d /usr/include/Motif1.2 ; then
6274 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6275 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6276 elif test -d /usr/include/Motif1.1 ; then
6277 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6278 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6281 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6283 if test -d /opt/graphics/OpenGL/include ; then
6284 # HP-UX 10.20 puts it here
6285 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6286 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6287 elif test -d /opt/Mesa/lib ; then
6288 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6289 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6293 if test -d /opt/xpm/lib/X11 ; then
6294 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6295 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6298 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6299 # in /usr/local/, unless there is already an xscreensaver in
6300 # /usr/local/bin/. This can be overridden with the --prefix arg
6301 # to configure. I'm not sure this is the right thing to do, but
6302 # Richard Lloyd says so...
6304 if test \! -x /usr/local/bin/xscreensaver ; then
6305 ac_default_prefix=/opt/xscreensaver
6311 # Thanks for not making xmkmf find this by default, pinheads.
6312 # And thanks for moving things around again, too. Is this
6313 # really the standard location now? What happened to the
6314 # joke that this kind of thing went in /opt?
6315 # cthomp says "answer: CDE (Common Disorganized Environment)"
6317 if test -f /usr/dt/include/Xm/Xm.h ; then
6318 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6319 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
6321 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6322 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
6323 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
6324 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 ac_check_lib_save_LIBS=$LIBS
6329 cat >conftest.$ac_ext <<_ACEOF
6330 #line $LINENO "configure"
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6337 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6352 rm -f conftest.$ac_objext conftest$ac_exeext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try='test -s conftest$ac_exeext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_lib_gen_regcmp=yes
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 ac_cv_lib_gen_regcmp=no
6371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6372 LIBS=$ac_check_lib_save_LIBS
6374 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
6375 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
6376 if test $ac_cv_lib_gen_regcmp = yes; then
6377 MOTIF_LIBS="$MOTIF_LIBS -lgen"
6385 # On MacOS X (10.x with "fink"), many things are under /sw/.
6387 if test -d /sw/include ; then
6388 X_CFLAGS="-I/sw/include $X_CFLAGS"
6389 X_LIBS="-L/sw/lib $X_LIBS"
6393 echo "$as_me:$LINENO: checking for XPointer" >&5
6394 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
6395 if test "${ac_cv_xpointer+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 ac_save_CPPFLAGS="$CPPFLAGS"
6400 if test \! -z "$includedir" ; then
6401 CPPFLAGS="$CPPFLAGS -I$includedir"
6403 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6404 cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <X11/Xlib.h>
6415 XPointer foo = (XPointer) 0;
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6439 rm -f conftest.$ac_objext conftest.$ac_ext
6440 CPPFLAGS="$ac_save_CPPFLAGS"
6442 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
6443 echo "${ECHO_T}$ac_cv_xpointer" >&6
6444 if test "$ac_cv_xpointer" != yes; then
6445 cat >>confdefs.h <<\_ACEOF
6446 #define XPointer char*
6452 ###############################################################################
6456 ###############################################################################
6461 echo "$as_me:$LINENO: checking for intltool >= " >&5
6462 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
6464 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
6465 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
6467 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
6470 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
6471 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6472 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
6474 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
6475 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
6480 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'
6481 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'
6482 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'
6483 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
6484 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'
6485 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'
6486 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'
6487 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'
6488 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'
6489 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'
6490 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'
6504 # Use the tools built into the package, not the ones that are installed.
6506 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
6507 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
6508 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
6514 # Extract the first word of "perl", so it can be a program name with args.
6515 set dummy perl; ac_word=$2
6516 echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6518 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 case $INTLTOOL_PERL in
6523 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6545 if test -n "$INTLTOOL_PERL"; then
6546 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6547 echo "${ECHO_T}$INTLTOOL_PERL" >&6
6549 echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6
6553 if test -z "$INTLTOOL_PERL"; then
6554 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
6555 echo "$as_me: error: perl not found; required for intltool" >&2;}
6556 { (exit 1); exit 1; }; }
6558 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
6559 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
6560 echo "$as_me: error: perl 5.x required for intltool" >&2;}
6561 { (exit 1); exit 1; }; }
6564 # Remove file type tags (using []) from po/POTFILES.
6572 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
6574 ac_config_commands="$ac_config_commands default-1"
6578 GETTEXT_PACKAGE=xscreensaver
6579 cat >>confdefs.h <<_ACEOF
6580 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6583 cat >>confdefs.h <<_ACEOF
6584 #define PACKAGE "$GETTEXT_PACKAGE"
6589 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"
6590 if test -n "$ac_tool_prefix"; then
6591 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6592 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6593 echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595 if test "${ac_cv_prog_RANLIB+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 if test -n "$RANLIB"; then
6599 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 RANLIB=$ac_cv_prog_RANLIB
6618 if test -n "$RANLIB"; then
6619 echo "$as_me:$LINENO: result: $RANLIB" >&5
6620 echo "${ECHO_T}$RANLIB" >&6
6622 echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6
6627 if test -z "$ac_cv_prog_RANLIB"; then
6628 ac_ct_RANLIB=$RANLIB
6629 # Extract the first word of "ranlib", so it can be a program name with args.
6630 set dummy ranlib; ac_word=$2
6631 echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6633 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 if test -n "$ac_ct_RANLIB"; then
6637 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_ac_ct_RANLIB="ranlib"
6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6656 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6657 if test -n "$ac_ct_RANLIB"; then
6658 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6659 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6661 echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6
6665 RANLIB=$ac_ct_RANLIB
6667 RANLIB="$ac_cv_prog_RANLIB"
6670 echo "$as_me:$LINENO: checking for off_t" >&5
6671 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6672 if test "${ac_cv_type_off_t+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 cat >conftest.$ac_ext <<_ACEOF
6676 #line $LINENO "configure"
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 $ac_includes_default
6694 rm -f conftest.$ac_objext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696 (eval $ac_compile) 2>&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -s conftest.$ac_objext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 ac_cv_type_off_t=yes
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6713 rm -f conftest.$ac_objext conftest.$ac_ext
6715 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6716 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6717 if test $ac_cv_type_off_t = yes; then
6721 cat >>confdefs.h <<_ACEOF
6727 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6728 # for constant arguments. Useless!
6729 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6730 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6731 if test "${ac_cv_working_alloca_h+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 cat >conftest.$ac_ext <<_ACEOF
6735 #line $LINENO "configure"
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6745 char *p = (char *) alloca (2 * sizeof (int));
6750 rm -f conftest.$ac_objext conftest$ac_exeext
6751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6752 (eval $ac_link) 2>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
6756 { ac_try='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 ac_cv_working_alloca_h=yes
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_cv_working_alloca_h=no
6769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6771 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6772 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6773 if test $ac_cv_working_alloca_h = yes; then
6775 cat >>confdefs.h <<\_ACEOF
6776 #define HAVE_ALLOCA_H 1
6781 echo "$as_me:$LINENO: checking for alloca" >&5
6782 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6783 if test "${ac_cv_func_alloca_works+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6794 # define alloca __builtin_alloca
6797 # include <malloc.h>
6798 # define alloca _alloca
6801 # include <alloca.h>
6806 # ifndef alloca /* predefined by HP cc +Olibcalls */
6817 char *p = (char *) alloca (1);
6822 rm -f conftest.$ac_objext conftest$ac_exeext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -s conftest$ac_exeext'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834 ac_cv_func_alloca_works=yes
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_cv_func_alloca_works=no
6841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6843 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6844 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6846 if test $ac_cv_func_alloca_works = yes; then
6848 cat >>confdefs.h <<\_ACEOF
6849 #define HAVE_ALLOCA 1
6853 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6854 # that cause trouble. Some versions do not even contain alloca or
6855 # contain a buggy version. If you still want to use their alloca,
6856 # use ar to extract alloca.o from them instead of compiling alloca.c.
6858 ALLOCA=alloca.$ac_objext
6860 cat >>confdefs.h <<\_ACEOF
6865 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6866 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6867 if test "${ac_cv_os_cray+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 cat >conftest.$ac_ext <<_ACEOF
6871 #line $LINENO "configure"
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 #if defined(CRAY) && ! defined(CRAY2)
6884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6885 $EGREP "webecray" >/dev/null 2>&1; then
6893 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6894 echo "${ECHO_T}$ac_cv_os_cray" >&6
6895 if test $ac_cv_os_cray = yes; then
6896 for ac_func in _getb67 GETB67 getb67; do
6897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6898 echo "$as_me:$LINENO: checking for $ac_func" >&5
6899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6900 if eval "test \"\${$as_ac_var+set}\" = set"; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 cat >conftest.$ac_ext <<_ACEOF
6904 #line $LINENO "configure"
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6910 /* System header to define __stub macros and hopefully few prototypes,
6911 which can conflict with char $ac_func (); below.
6912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6913 <limits.h> exists even on freestanding compilers. */
6915 # include <limits.h>
6917 # include <assert.h>
6919 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6933 char (*f) () = $ac_func;
6942 return f != $ac_func;
6947 rm -f conftest.$ac_objext conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949 (eval $ac_link) 2>&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -s conftest$ac_exeext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 eval "$as_ac_var=yes"
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6964 eval "$as_ac_var=no"
6966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6970 if test `eval echo '${'$as_ac_var'}'` = yes; then
6972 cat >>confdefs.h <<_ACEOF
6973 #define CRAY_STACKSEG_END $ac_func
6982 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6983 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6984 if test "${ac_cv_c_stack_direction+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 if test "$cross_compiling" = yes; then
6988 ac_cv_c_stack_direction=0
6990 cat >conftest.$ac_ext <<_ACEOF
6991 #line $LINENO "configure"
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6998 find_stack_direction ()
7000 static char *addr = 0;
7005 return find_stack_direction ();
7008 return (&dummy > addr) ? 1 : -1;
7014 exit (find_stack_direction () < 0);
7017 rm -f conftest$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 ac_cv_c_stack_direction=1
7030 echo "$as_me: program exited with status $ac_status" >&5
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7035 ac_cv_c_stack_direction=-1
7037 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7040 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7041 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7043 cat >>confdefs.h <<_ACEOF
7044 #define STACK_DIRECTION $ac_cv_c_stack_direction
7052 for ac_header in stdlib.h unistd.h
7054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7056 echo "$as_me:$LINENO: checking for $ac_header" >&5
7057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7064 # Is the header compilable?
7065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7067 cat >conftest.$ac_ext <<_ACEOF
7068 #line $LINENO "configure"
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 #include <$ac_header>
7077 rm -f conftest.$ac_objext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079 (eval $ac_compile) 2>&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } &&
7083 { ac_try='test -s conftest.$ac_objext'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 ac_header_compiler=yes
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7094 ac_header_compiler=no
7096 rm -f conftest.$ac_objext conftest.$ac_ext
7097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7098 echo "${ECHO_T}$ac_header_compiler" >&6
7100 # Is the header present?
7101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7103 cat >conftest.$ac_ext <<_ACEOF
7104 #line $LINENO "configure"
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 #include <$ac_header>
7112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7115 grep -v '^ *+' conftest.er1 >conftest.err
7117 cat conftest.err >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } >/dev/null; then
7120 if test -s conftest.err; then
7121 ac_cpp_err=$ac_c_preproc_warn_flag
7128 if test -z "$ac_cpp_err"; then
7129 ac_header_preproc=yes
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 ac_header_preproc=no
7136 rm -f conftest.err conftest.$ac_ext
7137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7138 echo "${ECHO_T}$ac_header_preproc" >&6
7140 # So? What about this header?
7141 case $ac_header_compiler:$ac_header_preproc in
7143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7149 ## ------------------------------------ ##
7150 ## Report this to bug-autoconf@gnu.org. ##
7151 ## ------------------------------------ ##
7154 sed "s/^/$as_me: WARNING: /" >&2
7157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7165 ## ------------------------------------ ##
7166 ## Report this to bug-autoconf@gnu.org. ##
7167 ## ------------------------------------ ##
7170 sed "s/^/$as_me: WARNING: /" >&2
7173 echo "$as_me:$LINENO: checking for $ac_header" >&5
7174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 eval "$as_ac_Header=$ac_header_preproc"
7180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7185 cat >>confdefs.h <<_ACEOF
7186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7194 for ac_func in getpagesize
7196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7197 echo "$as_me:$LINENO: checking for $ac_func" >&5
7198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7199 if eval "test \"\${$as_ac_var+set}\" = set"; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 cat >conftest.$ac_ext <<_ACEOF
7203 #line $LINENO "configure"
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7209 /* System header to define __stub macros and hopefully few prototypes,
7210 which can conflict with char $ac_func (); below.
7211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7212 <limits.h> exists even on freestanding compilers. */
7214 # include <limits.h>
7216 # include <assert.h>
7218 /* Override any gcc2 internal prototype to avoid an error. */
7223 /* We use char because int might match the return type of a gcc2
7224 builtin and then its argument prototype would still apply. */
7226 /* The GNU C library defines this for functions which it implements
7227 to always fail with ENOSYS. Some functions are actually named
7228 something starting with __ and the normal name is an alias. */
7229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7232 char (*f) () = $ac_func;
7241 return f != $ac_func;
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7248 (eval $ac_link) 2>&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -s conftest$ac_exeext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 eval "$as_ac_var=yes"
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7263 eval "$as_ac_var=no"
7265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7269 if test `eval echo '${'$as_ac_var'}'` = yes; then
7270 cat >>confdefs.h <<_ACEOF
7271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7277 echo "$as_me:$LINENO: checking for working mmap" >&5
7278 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7279 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 if test "$cross_compiling" = yes; then
7283 ac_cv_func_mmap_fixed_mapped=no
7285 cat >conftest.$ac_ext <<_ACEOF
7286 #line $LINENO "configure"
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 $ac_includes_default
7293 /* malloc might have been renamed as rpl_malloc. */
7296 /* Thanks to Mike Haertel and Jim Avera for this test.
7297 Here is a matrix of mmap possibilities:
7298 mmap private not fixed
7299 mmap private fixed at somewhere currently unmapped
7300 mmap private fixed at somewhere already mapped
7301 mmap shared not fixed
7302 mmap shared fixed at somewhere currently unmapped
7303 mmap shared fixed at somewhere already mapped
7304 For private mappings, we should verify that changes cannot be read()
7305 back from the file, nor mmap's back from the file at a different
7306 address. (There have been systems where private was not correctly
7307 implemented like the infamous i386 svr4.0, and systems where the
7308 VM page cache was not coherent with the file system buffer cache
7309 like early versions of FreeBSD and possibly contemporary NetBSD.)
7310 For shared mappings, we should conversely verify that changes get
7311 propagated back to all the places they're supposed to be.
7313 Grep wants private fixed already mapped.
7314 The main things grep needs to know about mmap are:
7315 * does it exist and is it safe to write into the mmap'd area
7316 * how to use it (BSD variants) */
7319 #include <sys/mman.h>
7321 #if !STDC_HEADERS && !HAVE_STDLIB_H
7325 /* This mess was copied from the GNU getpagesize.h. */
7326 #if !HAVE_GETPAGESIZE
7327 /* Assume that all systems that can run configure have sys/param.h. */
7328 # if !HAVE_SYS_PARAM_H
7329 # define HAVE_SYS_PARAM_H 1
7332 # ifdef _SC_PAGESIZE
7333 # define getpagesize() sysconf(_SC_PAGESIZE)
7334 # else /* no _SC_PAGESIZE */
7335 # if HAVE_SYS_PARAM_H
7336 # include <sys/param.h>
7337 # ifdef EXEC_PAGESIZE
7338 # define getpagesize() EXEC_PAGESIZE
7339 # else /* no EXEC_PAGESIZE */
7341 # define getpagesize() NBPG * CLSIZE
7344 # endif /* no CLSIZE */
7345 # else /* no NBPG */
7347 # define getpagesize() NBPC
7348 # else /* no NBPC */
7350 # define getpagesize() PAGESIZE
7351 # endif /* PAGESIZE */
7352 # endif /* no NBPC */
7353 # endif /* no NBPG */
7354 # endif /* no EXEC_PAGESIZE */
7355 # else /* no HAVE_SYS_PARAM_H */
7356 # define getpagesize() 8192 /* punt totally */
7357 # endif /* no HAVE_SYS_PARAM_H */
7358 # endif /* no _SC_PAGESIZE */
7360 #endif /* no HAVE_GETPAGESIZE */
7365 char *data, *data2, *data3;
7369 pagesize = getpagesize ();
7371 /* First, make a file with some known garbage in it. */
7372 data = (char *) malloc (pagesize);
7375 for (i = 0; i < pagesize; ++i)
7376 *(data + i) = rand ();
7378 fd = creat ("conftest.mmap", 0600);
7381 if (write (fd, data, pagesize) != pagesize)
7385 /* Next, try to mmap the file at a fixed address which already has
7386 something else allocated at it. If we can, also make sure that
7387 we see the same garbage. */
7388 fd = open ("conftest.mmap", O_RDWR);
7391 data2 = (char *) malloc (2 * pagesize);
7394 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7398 for (i = 0; i < pagesize; ++i)
7399 if (*(data + i) != *(data2 + i))
7402 /* Finally, make sure that changes to the mapped area do not
7403 percolate back to the file as seen by read(). (This is a bug on
7404 some variants of i386 svr4.0.) */
7405 for (i = 0; i < pagesize; ++i)
7406 *(data2 + i) = *(data2 + i) + 1;
7407 data3 = (char *) malloc (pagesize);
7410 if (read (fd, data3, pagesize) != pagesize)
7412 for (i = 0; i < pagesize; ++i)
7413 if (*(data + i) != *(data3 + i))
7419 rm -f conftest$ac_exeext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421 (eval $ac_link) 2>&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 ac_cv_func_mmap_fixed_mapped=yes
7432 echo "$as_me: program exited with status $ac_status" >&5
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7437 ac_cv_func_mmap_fixed_mapped=no
7439 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7442 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7443 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7444 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7446 cat >>confdefs.h <<\_ACEOF
7462 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7463 unistd.h sys/param.h
7465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7467 echo "$as_me:$LINENO: checking for $ac_header" >&5
7468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7475 # Is the header compilable?
7476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7478 cat >conftest.$ac_ext <<_ACEOF
7479 #line $LINENO "configure"
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7485 $ac_includes_default
7486 #include <$ac_header>
7488 rm -f conftest.$ac_objext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7490 (eval $ac_compile) 2>&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
7494 { ac_try='test -s conftest.$ac_objext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7500 ac_header_compiler=yes
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7505 ac_header_compiler=no
7507 rm -f conftest.$ac_objext conftest.$ac_ext
7508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7509 echo "${ECHO_T}$ac_header_compiler" >&6
7511 # Is the header present?
7512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7514 cat >conftest.$ac_ext <<_ACEOF
7515 #line $LINENO "configure"
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 #include <$ac_header>
7523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7526 grep -v '^ *+' conftest.er1 >conftest.err
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } >/dev/null; then
7531 if test -s conftest.err; then
7532 ac_cpp_err=$ac_c_preproc_warn_flag
7539 if test -z "$ac_cpp_err"; then
7540 ac_header_preproc=yes
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7545 ac_header_preproc=no
7547 rm -f conftest.err conftest.$ac_ext
7548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7549 echo "${ECHO_T}$ac_header_preproc" >&6
7551 # So? What about this header?
7552 case $ac_header_compiler:$ac_header_preproc in
7554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7560 ## ------------------------------------ ##
7561 ## Report this to bug-autoconf@gnu.org. ##
7562 ## ------------------------------------ ##
7565 sed "s/^/$as_me: WARNING: /" >&2
7568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7576 ## ------------------------------------ ##
7577 ## Report this to bug-autoconf@gnu.org. ##
7578 ## ------------------------------------ ##
7581 sed "s/^/$as_me: WARNING: /" >&2
7584 echo "$as_me:$LINENO: checking for $ac_header" >&5
7585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 eval "$as_ac_Header=$ac_header_preproc"
7591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7596 cat >>confdefs.h <<_ACEOF
7597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7615 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7616 strdup __argz_count __argz_stringify __argz_next
7618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7619 echo "$as_me:$LINENO: checking for $ac_func" >&5
7620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7621 if eval "test \"\${$as_ac_var+set}\" = set"; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 cat >conftest.$ac_ext <<_ACEOF
7625 #line $LINENO "configure"
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 /* System header to define __stub macros and hopefully few prototypes,
7632 which can conflict with char $ac_func (); below.
7633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7634 <limits.h> exists even on freestanding compilers. */
7636 # include <limits.h>
7638 # include <assert.h>
7640 /* Override any gcc2 internal prototype to avoid an error. */
7645 /* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7648 /* The GNU C library defines this for functions which it implements
7649 to always fail with ENOSYS. Some functions are actually named
7650 something starting with __ and the normal name is an alias. */
7651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7654 char (*f) () = $ac_func;
7663 return f != $ac_func;
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670 (eval $ac_link) 2>&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -s conftest$ac_exeext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 eval "$as_ac_var=yes"
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 eval "$as_ac_var=no"
7687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7691 if test `eval echo '${'$as_ac_var'}'` = yes; then
7692 cat >>confdefs.h <<_ACEOF
7693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7700 if test $ac_cv_header_locale_h = yes; then
7701 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7702 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7703 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 cat >conftest.$ac_ext <<_ACEOF
7707 #line $LINENO "configure"
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724 (eval $ac_link) 2>&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -s conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 am_cv_val_LC_MESSAGES=yes
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7739 am_cv_val_LC_MESSAGES=no
7741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7743 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7744 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7745 if test $am_cv_val_LC_MESSAGES = yes; then
7747 cat >>confdefs.h <<\_ACEOF
7748 #define HAVE_LC_MESSAGES 1
7756 nls_cv_force_use_gnu_gettext="no"
7758 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7759 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7761 nls_cv_header_libgt=
7764 if test "${ac_cv_header_libintl_h+set}" = set; then
7765 echo "$as_me:$LINENO: checking for libintl.h" >&5
7766 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7767 if test "${ac_cv_header_libintl_h+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7771 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7773 # Is the header compilable?
7774 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7775 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7776 cat >conftest.$ac_ext <<_ACEOF
7777 #line $LINENO "configure"
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 $ac_includes_default
7784 #include <libintl.h>
7786 rm -f conftest.$ac_objext
7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788 (eval $ac_compile) 2>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -s conftest.$ac_objext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_header_compiler=yes
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7803 ac_header_compiler=no
7805 rm -f conftest.$ac_objext conftest.$ac_ext
7806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7807 echo "${ECHO_T}$ac_header_compiler" >&6
7809 # Is the header present?
7810 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7811 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7812 cat >conftest.$ac_ext <<_ACEOF
7813 #line $LINENO "configure"
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #include <libintl.h>
7821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } >/dev/null; then
7829 if test -s conftest.err; then
7830 ac_cpp_err=$ac_c_preproc_warn_flag
7837 if test -z "$ac_cpp_err"; then
7838 ac_header_preproc=yes
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_header_preproc=no
7845 rm -f conftest.err conftest.$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7847 echo "${ECHO_T}$ac_header_preproc" >&6
7849 # So? What about this header?
7850 case $ac_header_compiler:$ac_header_preproc in
7852 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7853 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7854 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7855 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7858 ## ------------------------------------ ##
7859 ## Report this to bug-autoconf@gnu.org. ##
7860 ## ------------------------------------ ##
7863 sed "s/^/$as_me: WARNING: /" >&2
7866 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7867 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7868 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7869 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7871 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7874 ## ------------------------------------ ##
7875 ## Report this to bug-autoconf@gnu.org. ##
7876 ## ------------------------------------ ##
7879 sed "s/^/$as_me: WARNING: /" >&2
7882 echo "$as_me:$LINENO: checking for libintl.h" >&5
7883 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7884 if test "${ac_cv_header_libintl_h+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 ac_cv_header_libintl_h=$ac_header_preproc
7889 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7890 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7893 if test $ac_cv_header_libintl_h = yes; then
7894 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7895 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
7896 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 #include <libintl.h>
7910 return (int) dgettext ("","")
7915 rm -f conftest.$ac_objext conftest$ac_exeext
7916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7917 (eval $ac_link) 2>&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 gt_cv_func_dgettext_libc=yes
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 gt_cv_func_dgettext_libc=no
7934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7936 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7937 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
7939 if test "$gt_cv_func_dgettext_libc" != "yes"; then
7940 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7941 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7942 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 ac_check_lib_save_LIBS=$LIBS
7947 cat >conftest.$ac_ext <<_ACEOF
7948 #line $LINENO "configure"
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7955 /* Override any gcc2 internal prototype to avoid an error. */
7959 /* We use char because int might match the return type of a gcc2
7960 builtin and then its argument prototype would still apply. */
7961 char bindtextdomain ();
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972 (eval $ac_link) 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_cv_lib_intl_bindtextdomain=yes
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 ac_cv_lib_intl_bindtextdomain=no
7989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7990 LIBS=$ac_check_lib_save_LIBS
7992 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7993 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7994 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7995 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
7996 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
7997 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
8001 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
8002 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 ac_check_lib_save_LIBS=$LIBS
8007 cat >conftest.$ac_ext <<_ACEOF
8008 #line $LINENO "configure"
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8015 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8030 rm -f conftest.$ac_objext conftest$ac_exeext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032 (eval $ac_link) 2>&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try='test -s conftest$ac_exeext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 ac_cv_lib_intl_dgettext=yes
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 ac_cv_lib_intl_dgettext=no
8049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8050 LIBS=$ac_check_lib_save_LIBS
8052 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
8053 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
8054 if test $ac_cv_lib_intl_dgettext = yes; then
8055 gt_cv_func_dgettext_libintl=yes
8057 gt_cv_func_dgettext_libintl=no
8061 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
8062 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
8067 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8068 LIBS="$LIBS -lintl";
8071 if test "$gt_cv_func_dgettext_libc" = "yes" \
8072 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8074 cat >>confdefs.h <<\_ACEOF
8075 #define HAVE_GETTEXT 1
8078 # Extract the first word of "msgfmt", so it can be a program name with args.
8079 set dummy msgfmt; ac_word=$2
8080 echo "$as_me:$LINENO: checking for $ac_word" >&5
8081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8082 if test "${ac_cv_path_MSGFMT+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8091 for ac_dir in $PATH; do
8092 test -z "$ac_dir" && ac_dir=.
8093 if test -f $ac_dir/$ac_word; then
8094 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8095 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8101 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8105 MSGFMT="$ac_cv_path_MSGFMT"
8106 if test -n "$MSGFMT"; then
8107 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8108 echo "${ECHO_T}$MSGFMT" >&6
8110 echo "$as_me:$LINENO: result: no" >&5
8111 echo "${ECHO_T}no" >&6
8113 if test "$MSGFMT" != "no"; then
8115 for ac_func in dcgettext
8117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8118 echo "$as_me:$LINENO: checking for $ac_func" >&5
8119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8120 if eval "test \"\${$as_ac_var+set}\" = set"; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 cat >conftest.$ac_ext <<_ACEOF
8124 #line $LINENO "configure"
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 /* System header to define __stub macros and hopefully few prototypes,
8131 which can conflict with char $ac_func (); below.
8132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8133 <limits.h> exists even on freestanding compilers. */
8135 # include <limits.h>
8137 # include <assert.h>
8139 /* Override any gcc2 internal prototype to avoid an error. */
8144 /* We use char because int might match the return type of a gcc2
8145 builtin and then its argument prototype would still apply. */
8147 /* The GNU C library defines this for functions which it implements
8148 to always fail with ENOSYS. Some functions are actually named
8149 something starting with __ and the normal name is an alias. */
8150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8153 char (*f) () = $ac_func;
8162 return f != $ac_func;
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -s conftest$ac_exeext'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 eval "$as_ac_var=yes"
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 eval "$as_ac_var=no"
8186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8190 if test `eval echo '${'$as_ac_var'}'` = yes; then
8191 cat >>confdefs.h <<_ACEOF
8192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8198 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8199 set dummy gmsgfmt; ac_word=$2
8200 echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8202 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8228 GMSGFMT=$ac_cv_path_GMSGFMT
8230 if test -n "$GMSGFMT"; then
8231 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8232 echo "${ECHO_T}$GMSGFMT" >&6
8234 echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8238 # Extract the first word of "xgettext", so it can be a program name with args.
8239 set dummy xgettext; ac_word=$2
8240 echo "$as_me:$LINENO: checking for $ac_word" >&5
8241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8242 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8251 for ac_dir in $PATH; do
8252 test -z "$ac_dir" && ac_dir=.
8253 if test -f $ac_dir/$ac_word; then
8254 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8255 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8261 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8265 XGETTEXT="$ac_cv_path_XGETTEXT"
8266 if test -n "$XGETTEXT"; then
8267 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8268 echo "${ECHO_T}$XGETTEXT" >&6
8270 echo "$as_me:$LINENO: result: no" >&5
8271 echo "${ECHO_T}no" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8275 #line $LINENO "configure"
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8285 extern int _nl_msg_cat_cntr;
8286 return _nl_msg_cat_cntr
8291 rm -f conftest.$ac_objext conftest$ac_exeext
8292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8293 (eval $ac_link) 2>&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8317 # Added by Martin Baulig 12/15/98 for libc5 systems
8318 if test "$gt_cv_func_dgettext_libc" != "yes" \
8319 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
8321 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8328 if test "$CATOBJEXT" = "NONE"; then
8329 nls_cv_use_gnu_gettext=yes
8333 if test "$nls_cv_use_gnu_gettext" != "yes"; then
8335 cat >>confdefs.h <<\_ACEOF
8336 #define ENABLE_NLS 1
8343 if test "$XGETTEXT" != ":"; then
8344 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8347 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8348 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8353 # We need to process the po/ directory.
8356 ac_config_commands="$ac_config_commands default-2"
8359 for lang in $ALL_LINGUAS; do
8360 GMOFILES="$GMOFILES $lang.gmo"
8361 POFILES="$POFILES $lang.po"
8376 if test "x$CATOBJEXT" != "x"; then
8377 if test "x$ALL_LINGUAS" = "x"; then
8380 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8381 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8383 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8384 case "$ALL_LINGUAS" in
8385 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8388 LINGUAS=$NEW_LINGUAS
8389 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8390 echo "${ECHO_T}$LINGUAS" >&6
8393 if test -n "$LINGUAS"; then
8394 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8398 test -d po || mkdir po
8399 if test "$CATOBJEXT" = ".cat"; then
8400 if test "${ac_cv_header_linux_version_h+set}" = set; then
8401 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8402 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8403 if test "${ac_cv_header_linux_version_h+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8407 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8409 # Is the header compilable?
8410 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8411 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8412 cat >conftest.$ac_ext <<_ACEOF
8413 #line $LINENO "configure"
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 $ac_includes_default
8420 #include <linux/version.h>
8422 rm -f conftest.$ac_objext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8424 (eval $ac_compile) 2>&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
8428 { ac_try='test -s conftest.$ac_objext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_header_compiler=yes
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 ac_header_compiler=no
8441 rm -f conftest.$ac_objext conftest.$ac_ext
8442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8443 echo "${ECHO_T}$ac_header_compiler" >&6
8445 # Is the header present?
8446 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8447 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8448 cat >conftest.$ac_ext <<_ACEOF
8449 #line $LINENO "configure"
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 #include <linux/version.h>
8457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8460 grep -v '^ *+' conftest.er1 >conftest.err
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } >/dev/null; then
8465 if test -s conftest.err; then
8466 ac_cpp_err=$ac_c_preproc_warn_flag
8473 if test -z "$ac_cpp_err"; then
8474 ac_header_preproc=yes
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 ac_header_preproc=no
8481 rm -f conftest.err conftest.$ac_ext
8482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8483 echo "${ECHO_T}$ac_header_preproc" >&6
8485 # So? What about this header?
8486 case $ac_header_compiler:$ac_header_preproc in
8488 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8489 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8491 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8494 ## ------------------------------------ ##
8495 ## Report this to bug-autoconf@gnu.org. ##
8496 ## ------------------------------------ ##
8499 sed "s/^/$as_me: WARNING: /" >&2
8502 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8503 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8504 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8505 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8506 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8507 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8510 ## ------------------------------------ ##
8511 ## Report this to bug-autoconf@gnu.org. ##
8512 ## ------------------------------------ ##
8515 sed "s/^/$as_me: WARNING: /" >&2
8518 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8519 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8520 if test "${ac_cv_header_linux_version_h+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 ac_cv_header_linux_version_h=$ac_header_preproc
8525 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8526 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8529 if test $ac_cv_header_linux_version_h = yes; then
8537 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
8542 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
8544 # if test -n "$ac_aux_dir"; then
8545 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8547 if test -z "$MKINSTALLDIRS"; then
8548 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8551 # jwz: you know what, screw it. Let's just use the version that I
8552 # already computed in configure.in, instead of this version that came
8553 # with the i18n crud, ok?
8554 MKINSTALLDIRS="$INSTALL_DIRS"
8559 test -d po || mkdir po
8560 if test "x$srcdir" != "x."; then
8561 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8562 posrcprefix="$srcdir/"
8564 posrcprefix="../$srcdir/"
8570 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8571 < $srcdir/po/POTFILES.in > po/POTFILES
8575 ###############################################################################
8577 # Check for -lXmu (some fucked up vendors don't ship it...)
8579 ###############################################################################
8583 ac_save_CPPFLAGS="$CPPFLAGS"
8584 if test \! -z "$includedir" ; then
8585 CPPFLAGS="$CPPFLAGS -I$includedir"
8587 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8588 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
8589 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
8590 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 cat >conftest.$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8602 #include <X11/Intrinsic.h>
8604 #include <X11/Xmu/Error.h>
8606 rm -f conftest.$ac_objext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608 (eval $ac_compile) 2>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -s conftest.$ac_objext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_header_X11_Xmu_Error_h=yes
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_header_X11_Xmu_Error_h=no
8625 rm -f conftest.$ac_objext conftest.$ac_ext
8627 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
8628 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
8629 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
8634 CPPFLAGS="$ac_save_CPPFLAGS"
8635 if test "$have_xmu" = no ; then
8636 XMU_SRCS='$(UTILS_SRC)/xmu.c'
8637 XMU_OBJS='$(UTILS_BIN)/xmu.o'
8643 cat >>confdefs.h <<\_ACEOF
8650 ###############################################################################
8652 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
8653 # See comp.windows.x FAQ question 124. The right fix is to
8654 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
8656 ###############################################################################
8658 if test "$have_xmu" = yes ; then
8661 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
8662 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
8663 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 ac_save_LDFLAGS="$LDFLAGS"
8667 if test \! -z "$x_libraries" ; then
8668 LDFLAGS="$LDFLAGS -L$x_libraries"
8670 # Note: this trick never works! (Generally.)
8671 # We're only getting away with using AC_TRY_LINK
8672 # with X libraries because we know it's SunOS.
8673 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
8674 cat >conftest.$ac_ext <<_ACEOF
8675 #line $LINENO "configure"
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_cv_sunos_xmu_bug=no
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_cv_sunos_xmu_bug=yes
8709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8710 LDFLAGS="$ac_save_LDFLAGS"
8712 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
8713 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
8714 if test "$ac_cv_sunos_xmu_bug" = yes ; then
8715 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
8716 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
8717 if test "${ac_cv_ld_static+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 ac_save_LDFLAGS="$LDFLAGS"
8721 LDFLAGS="$LDFLAGS -static"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740 (eval $ac_link) 2>&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } &&
8744 { ac_try='test -s conftest$ac_exeext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8758 LDFLAGS="$ac_save_LDFLAGS"
8760 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
8761 echo "${ECHO_T}$ac_cv_ld_static" >&6
8762 if test "$ac_cv_ld_static" = yes ; then
8763 LDFLAGS="$LDFLAGS -static"
8765 LDFLAGS="$LDFLAGS -Bstatic"
8773 ###############################################################################
8775 # Handle the --with-hackdir option
8777 ###############################################################################
8780 with_hackdir_req=unspecified
8782 # Check whether --with-hackdir or --without-hackdir was given.
8783 if test "${with_hackdir+set}" = set; then
8784 withval="$with_hackdir"
8785 with_hackdir="$withval"; with_hackdir_req="$withval"
8790 if test x"$with_hackdir" = xyes; then
8791 HACKDIR='${exec_prefix}/lib/xscreensaver'
8792 elif test x"$with_hackdir" = xno; then
8795 # there must be a better way than this...
8796 if test -z "`echo $with_hackdir | sed 's@^/.*@@'`" ; then
8798 HACKDIR=$with_hackdir
8801 HACKDIR="\${exec_prefix}$with_hackdir"
8805 # canonicalize slashes.
8806 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
8808 # This option used to be called --enable-subdir; make sure that is no longer
8809 # used, since configure brain-damagedly ignores unknown --enable options.
8812 # Check whether --enable-subdir or --disable-subdir was given.
8813 if test "${enable_subdir+set}" = set; then
8814 enableval="$enable_subdir"
8817 if test -n "$obsolete_enable"; then
8818 echo "error: the --enable-subdir option has been replaced with"
8819 echo " the new --with-hackdir option; see \`configure --help'"
8820 echo " for more information."
8825 ###############################################################################
8827 # Handle the --with-configdir option
8829 ###############################################################################
8832 with_configdir_req=unspecified
8834 # Check whether --with-configdir or --without-configdir was given.
8835 if test "${with_configdir+set}" = set; then
8836 withval="$with_configdir"
8837 with_configdir="$withval"; with_configdir_req="$withval"
8842 if test x"$with_configdir" = xyes; then
8843 # filled in later...
8845 elif test x"$with_configdir" = xno; then
8846 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
8849 # there must be a better way than this...
8850 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
8852 HACK_CONF_DIR=$with_configdir
8855 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
8862 ###############################################################################
8864 # Check for the SGI SCREEN_SAVER server extension.
8866 ###############################################################################
8869 with_sgi_req=unspecified
8871 # Check whether --with-sgi-ext or --without-sgi-ext was given.
8872 if test "${with_sgi_ext+set}" = set; then
8873 withval="$with_sgi_ext"
8874 with_sgi="$withval"; with_sgi_req="$withval"
8885 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
8886 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
8889 X_CFLAGS="-I$d $X_CFLAGS"
8890 echo "$as_me:$LINENO: result: $d" >&5
8891 echo "${ECHO_T}$d" >&6
8893 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8894 echo "${ECHO_T}not found ($d: no such directory)" >&6
8897 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
8898 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
8901 X_LIBS="-L$d $X_LIBS"
8902 echo "$as_me:$LINENO: result: $d" >&5
8903 echo "${ECHO_T}$d" >&6
8905 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8906 echo "${ECHO_T}not found ($d: no such directory)" >&6
8909 # replace the directory string with "yes".
8911 with_sgi=$with_sgi_req
8916 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
8917 echo " If it is a directory, then \`DIR/include' will be added to"
8918 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8924 if test "$with_sgi" = yes; then
8926 ac_save_CPPFLAGS="$CPPFLAGS"
8927 if test \! -z "$includedir" ; then
8928 CPPFLAGS="$CPPFLAGS -I$includedir"
8930 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8931 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
8932 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
8933 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 cat >conftest.$ac_ext <<_ACEOF
8937 #line $LINENO "configure"
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8943 #include <X11/Xlib.h>
8945 #include <X11/extensions/XScreenSaver.h>
8947 rm -f conftest.$ac_objext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949 (eval $ac_compile) 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -s conftest.$ac_objext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 ac_cv_header_X11_extensions_XScreenSaver_h=yes
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8964 ac_cv_header_X11_extensions_XScreenSaver_h=no
8966 rm -f conftest.$ac_objext conftest.$ac_ext
8968 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
8969 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
8970 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
8972 cat >>confdefs.h <<\_ACEOF
8973 #define HAVE_SGI_SAVER_EXTENSION 1
8979 CPPFLAGS="$ac_save_CPPFLAGS"
8981 elif test "$with_sgi" != no; then
8982 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
8987 ###############################################################################
8989 # Check for the MIT-SCREEN-SAVER server extension.
8991 ###############################################################################
8994 with_mit_req=unspecified
8996 # Check whether --with-mit-ext or --without-mit-ext was given.
8997 if test "${with_mit_ext+set}" = set; then
8998 withval="$with_mit_ext"
8999 with_mit="$withval"; with_mit_req="$withval"
9010 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER headers" >&5
9011 echo $ECHO_N "checking for MIT-SCREEN-SAVER headers... $ECHO_C" >&6
9014 X_CFLAGS="-I$d $X_CFLAGS"
9015 echo "$as_me:$LINENO: result: $d" >&5
9016 echo "${ECHO_T}$d" >&6
9018 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9019 echo "${ECHO_T}not found ($d: no such directory)" >&6
9022 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER libs" >&5
9023 echo $ECHO_N "checking for MIT-SCREEN-SAVER libs... $ECHO_C" >&6
9026 X_LIBS="-L$d $X_LIBS"
9027 echo "$as_me:$LINENO: result: $d" >&5
9028 echo "${ECHO_T}$d" >&6
9030 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9031 echo "${ECHO_T}not found ($d: no such directory)" >&6
9034 # replace the directory string with "yes".
9036 with_mit=$with_mit_req
9041 echo "error: argument to --with-mit-ext must be \"yes\", \"no\", or a directory."
9042 echo " If it is a directory, then \`DIR/include' will be added to"
9043 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9049 if test "$with_mit" = yes; then
9051 ac_save_CPPFLAGS="$CPPFLAGS"
9052 if test \! -z "$includedir" ; then
9053 CPPFLAGS="$CPPFLAGS -I$includedir"
9055 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9056 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5
9057 echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6
9058 if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 cat >conftest.$ac_ext <<_ACEOF
9062 #line $LINENO "configure"
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 #include <X11/Xlib.h>
9070 #include <X11/extensions/scrnsaver.h>
9072 rm -f conftest.$ac_objext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074 (eval $ac_compile) 2>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_cv_header_X11_extensions_scrnsaver_h=yes
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_cv_header_X11_extensions_scrnsaver_h=no
9091 rm -f conftest.$ac_objext conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5
9094 echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6
9095 if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then
9100 CPPFLAGS="$ac_save_CPPFLAGS"
9102 # Now check to see if it's really in the library; XF86Free-3.3 ships
9103 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
9105 if test "$have_mit" = yes; then
9107 ac_save_CPPFLAGS="$CPPFLAGS"
9108 ac_save_LDFLAGS="$LDFLAGS"
9109 # ac_save_LIBS="$LIBS"
9111 if test \! -z "$includedir" ; then
9112 CPPFLAGS="$CPPFLAGS -I$includedir"
9114 # note: $X_CFLAGS includes $x_includes
9115 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9117 if test \! -z "$libdir" ; then
9118 LDFLAGS="$LDFLAGS -L$libdir"
9120 # note: $X_LIBS includes $x_libraries
9121 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9123 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXext" >&5
9124 echo $ECHO_N "checking for XScreenSaverRegister in -lXext... $ECHO_C" >&6
9125 if test "${ac_cv_lib_Xext_XScreenSaverRegister+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 ac_check_lib_save_LIBS=$LIBS
9129 LIBS="-lXext -lm $LIBS"
9130 cat >conftest.$ac_ext <<_ACEOF
9131 #line $LINENO "configure"
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9138 /* Override any gcc2 internal prototype to avoid an error. */
9142 /* We use char because int might match the return type of a gcc2
9143 builtin and then its argument prototype would still apply. */
9144 char XScreenSaverRegister ();
9148 XScreenSaverRegister ();
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155 (eval $ac_link) 2>&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -s conftest$ac_exeext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_cv_lib_Xext_XScreenSaverRegister=yes
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9170 ac_cv_lib_Xext_XScreenSaverRegister=no
9172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9173 LIBS=$ac_check_lib_save_LIBS
9175 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverRegister" >&5
9176 echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverRegister" >&6
9177 if test $ac_cv_lib_Xext_XScreenSaverRegister = yes; then
9183 CPPFLAGS="$ac_save_CPPFLAGS"
9184 LDFLAGS="$ac_save_LDFLAGS"
9185 # LIBS="$ac_save_LIBS"
9188 if test "$have_mit" = no; then
9189 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
9190 # of in Xext. Thank you master, may I have another.
9192 ac_save_CPPFLAGS="$CPPFLAGS"
9193 ac_save_LDFLAGS="$LDFLAGS"
9194 # ac_save_LIBS="$LIBS"
9196 if test \! -z "$includedir" ; then
9197 CPPFLAGS="$CPPFLAGS -I$includedir"
9199 # note: $X_CFLAGS includes $x_includes
9200 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9202 if test \! -z "$libdir" ; then
9203 LDFLAGS="$LDFLAGS -L$libdir"
9205 # note: $X_LIBS includes $x_libraries
9206 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9208 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXExExt" >&5
9209 echo $ECHO_N "checking for XScreenSaverRegister in -lXExExt... $ECHO_C" >&6
9210 if test "${ac_cv_lib_XExExt_XScreenSaverRegister+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 ac_check_lib_save_LIBS=$LIBS
9214 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
9215 cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9223 /* Override any gcc2 internal prototype to avoid an error. */
9227 /* We use char because int might match the return type of a gcc2
9228 builtin and then its argument prototype would still apply. */
9229 char XScreenSaverRegister ();
9233 XScreenSaverRegister ();
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_cv_lib_XExExt_XScreenSaverRegister=yes
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9255 ac_cv_lib_XExExt_XScreenSaverRegister=no
9257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9258 LIBS=$ac_check_lib_save_LIBS
9260 echo "$as_me:$LINENO: result: $ac_cv_lib_XExExt_XScreenSaverRegister" >&5
9261 echo "${ECHO_T}$ac_cv_lib_XExExt_XScreenSaverRegister" >&6
9262 if test $ac_cv_lib_XExExt_XScreenSaverRegister = yes; then
9263 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
9268 CPPFLAGS="$ac_save_CPPFLAGS"
9269 LDFLAGS="$ac_save_LDFLAGS"
9270 # LIBS="$ac_save_LIBS"
9274 if test "$have_mit" = no; then
9275 # Double fuck! Looks like some versions of XFree86 (whichever version
9276 # it is that comes with RedHat Linux 2.0 -- I can't find a version
9277 # number) put this garbage in Xss instead of Xext. Thank you master,
9278 # may I have another.
9280 ac_save_CPPFLAGS="$CPPFLAGS"
9281 ac_save_LDFLAGS="$LDFLAGS"
9282 # ac_save_LIBS="$LIBS"
9284 if test \! -z "$includedir" ; then
9285 CPPFLAGS="$CPPFLAGS -I$includedir"
9287 # note: $X_CFLAGS includes $x_includes
9288 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9290 if test \! -z "$libdir" ; then
9291 LDFLAGS="$LDFLAGS -L$libdir"
9293 # note: $X_LIBS includes $x_libraries
9294 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9296 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXss" >&5
9297 echo $ECHO_N "checking for XScreenSaverRegister in -lXss... $ECHO_C" >&6
9298 if test "${ac_cv_lib_Xss_XScreenSaverRegister+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 ac_check_lib_save_LIBS=$LIBS
9302 LIBS="-lXss -lX11 -lXext -lm $LIBS"
9303 cat >conftest.$ac_ext <<_ACEOF
9304 #line $LINENO "configure"
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9311 /* Override any gcc2 internal prototype to avoid an error. */
9315 /* We use char because int might match the return type of a gcc2
9316 builtin and then its argument prototype would still apply. */
9317 char XScreenSaverRegister ();
9321 XScreenSaverRegister ();
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9328 (eval $ac_link) 2>&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } &&
9332 { ac_try='test -s conftest$ac_exeext'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; }; then
9338 ac_cv_lib_Xss_XScreenSaverRegister=yes
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9343 ac_cv_lib_Xss_XScreenSaverRegister=no
9345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9346 LIBS=$ac_check_lib_save_LIBS
9348 echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverRegister" >&5
9349 echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverRegister" >&6
9350 if test $ac_cv_lib_Xss_XScreenSaverRegister = yes; then
9351 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
9356 CPPFLAGS="$ac_save_CPPFLAGS"
9357 LDFLAGS="$ac_save_LDFLAGS"
9358 # LIBS="$ac_save_LIBS"
9362 if test "$have_mit" = yes; then
9363 cat >>confdefs.h <<\_ACEOF
9364 #define HAVE_MIT_SAVER_EXTENSION 1
9371 elif test "$with_mit" != no; then
9372 echo "error: must be yes or no: --with-mit-ext=$with_mit"
9377 ###############################################################################
9379 # Check for the XIDLE server extension.
9381 ###############################################################################
9384 with_xidle_req=unspecified
9386 # Check whether --with-xidle-ext or --without-xidle-ext was given.
9387 if test "${with_xidle_ext+set}" = set; then
9388 withval="$with_xidle_ext"
9389 with_xidle="$withval"; with_xidle_req="$withval"
9395 case "$with_xidle" in
9400 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
9401 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
9402 d=$with_xidle/include
9404 X_CFLAGS="-I$d $X_CFLAGS"
9405 echo "$as_me:$LINENO: result: $d" >&5
9406 echo "${ECHO_T}$d" >&6
9408 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9409 echo "${ECHO_T}not found ($d: no such directory)" >&6
9412 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
9413 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
9416 X_LIBS="-L$d $X_LIBS"
9417 echo "$as_me:$LINENO: result: $d" >&5
9418 echo "${ECHO_T}$d" >&6
9420 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9421 echo "${ECHO_T}not found ($d: no such directory)" >&6
9424 # replace the directory string with "yes".
9425 with_xidle_req="yes"
9426 with_xidle=$with_xidle_req
9431 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
9432 echo " If it is a directory, then \`DIR/include' will be added to"
9433 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9439 if test "$with_xidle" = yes; then
9441 ac_save_CPPFLAGS="$CPPFLAGS"
9442 if test \! -z "$includedir" ; then
9443 CPPFLAGS="$CPPFLAGS -I$includedir"
9445 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9446 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
9447 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
9448 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 cat >conftest.$ac_ext <<_ACEOF
9452 #line $LINENO "configure"
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 #include <X11/Xlib.h>
9460 #include <X11/extensions/xidle.h>
9462 rm -f conftest.$ac_objext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9464 (eval $ac_compile) 2>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -s conftest.$ac_objext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 ac_cv_header_X11_extensions_xidle_h=yes
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9479 ac_cv_header_X11_extensions_xidle_h=no
9481 rm -f conftest.$ac_objext conftest.$ac_ext
9483 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
9484 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
9485 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
9487 cat >>confdefs.h <<\_ACEOF
9488 #define HAVE_XIDLE_EXTENSION 1
9494 CPPFLAGS="$ac_save_CPPFLAGS"
9495 elif test "$with_xidle" != no; then
9496 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
9501 ###############################################################################
9503 # Check for the SGI-VIDEO-CONTROL server extension.
9505 ###############################################################################
9508 with_sgivc_req=unspecified
9510 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
9511 if test "${with_sgivc_ext+set}" = set; then
9512 withval="$with_sgivc_ext"
9513 with_sgivc="$withval"; with_sgivc_req="$withval"
9519 case "$with_sgivc" in
9524 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
9525 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
9526 d=$with_sgivc/include
9528 X_CFLAGS="-I$d $X_CFLAGS"
9529 echo "$as_me:$LINENO: result: $d" >&5
9530 echo "${ECHO_T}$d" >&6
9532 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9533 echo "${ECHO_T}not found ($d: no such directory)" >&6
9536 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
9537 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
9540 X_LIBS="-L$d $X_LIBS"
9541 echo "$as_me:$LINENO: result: $d" >&5
9542 echo "${ECHO_T}$d" >&6
9544 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9545 echo "${ECHO_T}not found ($d: no such directory)" >&6
9548 # replace the directory string with "yes".
9549 with_sgivc_req="yes"
9550 with_sgivc=$with_sgivc_req
9555 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
9556 echo " If it is a directory, then \`DIR/include' will be added to"
9557 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9563 if test "$with_sgivc" = yes; then
9565 # first check for XSGIvc.h
9567 ac_save_CPPFLAGS="$CPPFLAGS"
9568 if test \! -z "$includedir" ; then
9569 CPPFLAGS="$CPPFLAGS -I$includedir"
9571 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9572 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
9573 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
9574 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 cat >conftest.$ac_ext <<_ACEOF
9578 #line $LINENO "configure"
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9584 #include <X11/Xlib.h>
9586 #include <X11/extensions/XSGIvc.h>
9588 rm -f conftest.$ac_objext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590 (eval $ac_compile) 2>&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -s conftest.$ac_objext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_header_X11_extensions_XSGIvc_h=yes
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_cv_header_X11_extensions_XSGIvc_h=no
9607 rm -f conftest.$ac_objext conftest.$ac_ext
9609 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
9610 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
9611 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
9616 CPPFLAGS="$ac_save_CPPFLAGS"
9618 # if that succeeded, then check for the -lXsgivc
9619 if test "$have_sgivc" = yes; then
9622 ac_save_CPPFLAGS="$CPPFLAGS"
9623 ac_save_LDFLAGS="$LDFLAGS"
9624 # ac_save_LIBS="$LIBS"
9626 if test \! -z "$includedir" ; then
9627 CPPFLAGS="$CPPFLAGS -I$includedir"
9629 # note: $X_CFLAGS includes $x_includes
9630 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9632 if test \! -z "$libdir" ; then
9633 LDFLAGS="$LDFLAGS -L$libdir"
9635 # note: $X_LIBS includes $x_libraries
9636 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9638 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
9639 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
9640 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 ac_check_lib_save_LIBS=$LIBS
9644 LIBS="-lXsgivc -lXext -lX11 $LIBS"
9645 cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9653 /* Override any gcc2 internal prototype to avoid an error. */
9657 /* We use char because int might match the return type of a gcc2
9658 builtin and then its argument prototype would still apply. */
9659 char XSGIvcQueryGammaMap ();
9663 XSGIvcQueryGammaMap ();
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -s conftest$ac_exeext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
9687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9690 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
9691 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
9692 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
9693 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
9698 CPPFLAGS="$ac_save_CPPFLAGS"
9699 LDFLAGS="$ac_save_LDFLAGS"
9700 # LIBS="$ac_save_LIBS"
9704 # if that succeeded, then we've really got it.
9705 if test "$have_sgivc" = yes; then
9706 cat >>confdefs.h <<\_ACEOF
9707 #define HAVE_SGI_VC_EXTENSION 1
9712 elif test "$with_sgivc" != no; then
9713 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
9718 ###############################################################################
9720 # Check for the DPMS server extension.
9722 ###############################################################################
9725 with_dpms_req=unspecified
9727 # Check whether --with-dpms-ext or --without-dpms-ext was given.
9728 if test "${with_dpms_ext+set}" = set; then
9729 withval="$with_dpms_ext"
9730 with_dpms="$withval"; with_dpms_req="$withval"
9736 case "$with_dpms" in
9741 echo "$as_me:$LINENO: checking for DPMS headers" >&5
9742 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
9743 d=$with_dpms/include
9745 X_CFLAGS="-I$d $X_CFLAGS"
9746 echo "$as_me:$LINENO: result: $d" >&5
9747 echo "${ECHO_T}$d" >&6
9749 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9750 echo "${ECHO_T}not found ($d: no such directory)" >&6
9753 echo "$as_me:$LINENO: checking for DPMS libs" >&5
9754 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
9757 X_LIBS="-L$d $X_LIBS"
9758 echo "$as_me:$LINENO: result: $d" >&5
9759 echo "${ECHO_T}$d" >&6
9761 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9762 echo "${ECHO_T}not found ($d: no such directory)" >&6
9765 # replace the directory string with "yes".
9767 with_dpms=$with_dpms_req
9772 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
9773 echo " If it is a directory, then \`DIR/include' will be added to"
9774 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9780 if test "$with_dpms" = yes; then
9782 # first check for dpms.h
9784 ac_save_CPPFLAGS="$CPPFLAGS"
9785 if test \! -z "$includedir" ; then
9786 CPPFLAGS="$CPPFLAGS -I$includedir"
9788 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9789 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
9790 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
9791 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 cat >conftest.$ac_ext <<_ACEOF
9795 #line $LINENO "configure"
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 #include <X11/Xlib.h>
9802 #include <X11/Xmd.h>
9804 #include <X11/extensions/dpms.h>
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808 (eval $ac_compile) 2>&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -s conftest.$ac_objext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_header_X11_extensions_dpms_h=yes
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_cv_header_X11_extensions_dpms_h=no
9825 rm -f conftest.$ac_objext conftest.$ac_ext
9827 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
9828 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
9829 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
9834 CPPFLAGS="$ac_save_CPPFLAGS"
9836 # if that succeeded, then check for the DPMS code in the libraries
9837 if test "$have_dpms" = yes; then
9839 # first look in -lXext (this is where it is with XFree86 4.0)
9842 ac_save_CPPFLAGS="$CPPFLAGS"
9843 ac_save_LDFLAGS="$LDFLAGS"
9844 # ac_save_LIBS="$LIBS"
9846 if test \! -z "$includedir" ; then
9847 CPPFLAGS="$CPPFLAGS -I$includedir"
9849 # note: $X_CFLAGS includes $x_includes
9850 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9852 if test \! -z "$libdir" ; then
9853 LDFLAGS="$LDFLAGS -L$libdir"
9855 # note: $X_LIBS includes $x_libraries
9856 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9858 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
9859 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
9860 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 ac_check_lib_save_LIBS=$LIBS
9864 LIBS="-lXext -lXext -lX11 $LIBS"
9865 cat >conftest.$ac_ext <<_ACEOF
9866 #line $LINENO "configure"
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9873 /* Override any gcc2 internal prototype to avoid an error. */
9877 /* We use char because int might match the return type of a gcc2
9878 builtin and then its argument prototype would still apply. */
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9890 (eval $ac_link) 2>&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -s conftest$ac_exeext'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9900 ac_cv_lib_Xext_DPMSInfo=yes
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_cv_lib_Xext_DPMSInfo=no
9907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9910 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
9911 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
9912 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
9918 CPPFLAGS="$ac_save_CPPFLAGS"
9919 LDFLAGS="$ac_save_LDFLAGS"
9920 # LIBS="$ac_save_LIBS"
9923 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
9924 if test "$have_dpms" = no; then
9926 ac_save_CPPFLAGS="$CPPFLAGS"
9927 ac_save_LDFLAGS="$LDFLAGS"
9928 # ac_save_LIBS="$LIBS"
9930 if test \! -z "$includedir" ; then
9931 CPPFLAGS="$CPPFLAGS -I$includedir"
9933 # note: $X_CFLAGS includes $x_includes
9934 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9936 if test \! -z "$libdir" ; then
9937 LDFLAGS="$LDFLAGS -L$libdir"
9939 # note: $X_LIBS includes $x_libraries
9940 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9942 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
9943 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
9944 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 ac_check_lib_save_LIBS=$LIBS
9948 LIBS="-lXdpms -lXext -lX11 $LIBS"
9949 cat >conftest.$ac_ext <<_ACEOF
9950 #line $LINENO "configure"
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9957 /* Override any gcc2 internal prototype to avoid an error. */
9961 /* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */
9972 rm -f conftest.$ac_objext conftest$ac_exeext
9973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9974 (eval $ac_link) 2>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 ac_cv_lib_Xdpms_DPMSInfo=yes
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 ac_cv_lib_Xdpms_DPMSInfo=no
9991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9994 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
9995 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
9996 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
9997 have_dpms=yes; XDPMS_LIBS="-lXdpms"
10002 CPPFLAGS="$ac_save_CPPFLAGS"
10003 LDFLAGS="$ac_save_LDFLAGS"
10004 # LIBS="$ac_save_LIBS"
10010 # if that succeeded, then we've really got it.
10011 if test "$have_dpms" = yes; then
10012 cat >>confdefs.h <<\_ACEOF
10013 #define HAVE_DPMS_EXTENSION 1
10018 elif test "$with_dpms" != no; then
10019 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
10024 ###############################################################################
10026 # Check for the XINERAMA server extension.
10028 ###############################################################################
10031 with_xinerama_req=unspecified
10033 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
10034 if test "${with_xinerama_ext+set}" = set; then
10035 withval="$with_xinerama_ext"
10036 with_xinerama="$withval"; with_xinerama_req="$withval"
10042 case "$with_xinerama" in
10047 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
10048 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
10049 d=$with_xinerama/include
10050 if test -d $d; then
10051 X_CFLAGS="-I$d $X_CFLAGS"
10052 echo "$as_me:$LINENO: result: $d" >&5
10053 echo "${ECHO_T}$d" >&6
10055 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10056 echo "${ECHO_T}not found ($d: no such directory)" >&6
10059 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
10060 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
10061 d=$with_xinerama/lib
10062 if test -d $d; then
10063 X_LIBS="-L$d $X_LIBS"
10064 echo "$as_me:$LINENO: result: $d" >&5
10065 echo "${ECHO_T}$d" >&6
10067 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10068 echo "${ECHO_T}not found ($d: no such directory)" >&6
10071 # replace the directory string with "yes".
10072 with_xinerama_req="yes"
10073 with_xinerama=$with_xinerama_req
10078 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
10079 echo " If it is a directory, then \`DIR/include' will be added to"
10080 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10086 if test "$with_xinerama" = yes; then
10088 # first check for Xinerama.h
10090 ac_save_CPPFLAGS="$CPPFLAGS"
10091 if test \! -z "$includedir" ; then
10092 CPPFLAGS="$CPPFLAGS -I$includedir"
10094 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10095 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
10096 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
10097 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 cat >conftest.$ac_ext <<_ACEOF
10101 #line $LINENO "configure"
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10107 #include <X11/Xlib.h>
10109 #include <X11/extensions/Xinerama.h>
10111 rm -f conftest.$ac_objext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try='test -s conftest.$ac_objext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_cv_header_X11_extensions_Xinerama_h=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_cv_header_X11_extensions_Xinerama_h=no
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
10133 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
10134 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
10139 CPPFLAGS="$ac_save_CPPFLAGS"
10141 # if that succeeded, then check for the XINERAMA code in the libraries
10142 if test "$have_xinerama" = yes; then
10144 # first look in -lXext
10147 ac_save_CPPFLAGS="$CPPFLAGS"
10148 ac_save_LDFLAGS="$LDFLAGS"
10149 # ac_save_LIBS="$LIBS"
10151 if test \! -z "$includedir" ; then
10152 CPPFLAGS="$CPPFLAGS -I$includedir"
10154 # note: $X_CFLAGS includes $x_includes
10155 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10157 if test \! -z "$libdir" ; then
10158 LDFLAGS="$LDFLAGS -L$libdir"
10160 # note: $X_LIBS includes $x_libraries
10161 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10163 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXext" >&5
10164 echo $ECHO_N "checking for XineramaQueryExtension in -lXext... $ECHO_C" >&6
10165 if test "${ac_cv_lib_Xext_XineramaQueryExtension+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 ac_check_lib_save_LIBS=$LIBS
10169 LIBS="-lXext -lXext -lX11 $LIBS"
10170 cat >conftest.$ac_ext <<_ACEOF
10171 #line $LINENO "configure"
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10178 /* Override any gcc2 internal prototype to avoid an error. */
10182 /* We use char because int might match the return type of a gcc2
10183 builtin and then its argument prototype would still apply. */
10184 char XineramaQueryExtension ();
10188 XineramaQueryExtension ();
10193 rm -f conftest.$ac_objext conftest$ac_exeext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10195 (eval $ac_link) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -s conftest$ac_exeext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_lib_Xext_XineramaQueryExtension=yes
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_cv_lib_Xext_XineramaQueryExtension=no
10212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10215 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryExtension" >&5
10216 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryExtension" >&6
10217 if test $ac_cv_lib_Xext_XineramaQueryExtension = yes; then
10223 CPPFLAGS="$ac_save_CPPFLAGS"
10224 LDFLAGS="$ac_save_LDFLAGS"
10225 # LIBS="$ac_save_LIBS"
10228 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
10229 if test "$have_xinerama" = no; then
10231 ac_save_CPPFLAGS="$CPPFLAGS"
10232 ac_save_LDFLAGS="$LDFLAGS"
10233 # ac_save_LIBS="$LIBS"
10235 if test \! -z "$includedir" ; then
10236 CPPFLAGS="$CPPFLAGS -I$includedir"
10238 # note: $X_CFLAGS includes $x_includes
10239 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10241 if test \! -z "$libdir" ; then
10242 LDFLAGS="$LDFLAGS -L$libdir"
10244 # note: $X_LIBS includes $x_libraries
10245 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10247 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5
10248 echo $ECHO_N "checking for XineramaQueryExtension in -lXinerama... $ECHO_C" >&6
10249 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-lXinerama -lXext -lX11 $LIBS"
10254 cat >conftest.$ac_ext <<_ACEOF
10255 #line $LINENO "configure"
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10262 /* Override any gcc2 internal prototype to avoid an error. */
10266 /* We use char because int might match the return type of a gcc2
10267 builtin and then its argument prototype would still apply. */
10268 char XineramaQueryExtension ();
10272 XineramaQueryExtension ();
10277 rm -f conftest.$ac_objext conftest$ac_exeext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279 (eval $ac_link) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -s conftest$ac_exeext'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; }; then
10289 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ac_cv_lib_Xinerama_XineramaQueryExtension=no
10296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10297 LIBS=$ac_check_lib_save_LIBS
10299 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
10300 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6
10301 if test $ac_cv_lib_Xinerama_XineramaQueryExtension = yes; then
10302 have_xinerama=yes; SAVER_LIBS="$SAVER_LIBS -lXinerama"
10307 CPPFLAGS="$ac_save_CPPFLAGS"
10308 LDFLAGS="$ac_save_LDFLAGS"
10309 # LIBS="$ac_save_LIBS"
10314 # if that succeeded, then we've really got it.
10315 if test "$have_xinerama" = yes; then
10316 cat >>confdefs.h <<\_ACEOF
10317 #define HAVE_XINERAMA 1
10322 elif test "$with_xinerama" != no; then
10323 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
10328 ###############################################################################
10330 # Check for the XF86VMODE server extension (for virtual screens.)
10332 ###############################################################################
10335 with_xf86vmode_req=unspecified
10337 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
10338 if test "${with_xf86vmode_ext+set}" = set; then
10339 withval="$with_xf86vmode_ext"
10340 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
10346 case "$with_xf86vmode" in
10351 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
10352 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
10353 d=$with_xf86vmode/include
10354 if test -d $d; then
10355 X_CFLAGS="-I$d $X_CFLAGS"
10356 echo "$as_me:$LINENO: result: $d" >&5
10357 echo "${ECHO_T}$d" >&6
10359 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10360 echo "${ECHO_T}not found ($d: no such directory)" >&6
10363 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
10364 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
10365 d=$with_xf86vmode/lib
10366 if test -d $d; then
10367 X_LIBS="-L$d $X_LIBS"
10368 echo "$as_me:$LINENO: result: $d" >&5
10369 echo "${ECHO_T}$d" >&6
10371 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10372 echo "${ECHO_T}not found ($d: no such directory)" >&6
10375 # replace the directory string with "yes".
10376 with_xf86vmode_req="yes"
10377 with_xf86vmode=$with_xf86vmode_req
10382 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
10383 echo " If it is a directory, then \`DIR/include' will be added to"
10384 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10390 if test "$with_xf86vmode" = yes; then
10392 # first check for xf86vmode.h
10394 ac_save_CPPFLAGS="$CPPFLAGS"
10395 if test \! -z "$includedir" ; then
10396 CPPFLAGS="$CPPFLAGS -I$includedir"
10398 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10399 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
10400 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
10401 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 cat >conftest.$ac_ext <<_ACEOF
10405 #line $LINENO "configure"
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 #include <X11/Xlib.h>
10413 #include <X11/extensions/xf86vmode.h>
10415 rm -f conftest.$ac_objext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417 (eval $ac_compile) 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -s conftest.$ac_objext'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10427 ac_cv_header_X11_extensions_xf86vmode_h=yes
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 ac_cv_header_X11_extensions_xf86vmode_h=no
10434 rm -f conftest.$ac_objext conftest.$ac_ext
10436 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
10437 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
10438 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
10443 CPPFLAGS="$ac_save_CPPFLAGS"
10445 # if that succeeded, then check for the -lXxf86vm
10446 if test "$have_xf86vmode" = yes; then
10449 ac_save_CPPFLAGS="$CPPFLAGS"
10450 ac_save_LDFLAGS="$LDFLAGS"
10451 # ac_save_LIBS="$LIBS"
10453 if test \! -z "$includedir" ; then
10454 CPPFLAGS="$CPPFLAGS -I$includedir"
10456 # note: $X_CFLAGS includes $x_includes
10457 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10459 if test \! -z "$libdir" ; then
10460 LDFLAGS="$LDFLAGS -L$libdir"
10462 # note: $X_LIBS includes $x_libraries
10463 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10465 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
10466 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
10467 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 ac_check_lib_save_LIBS=$LIBS
10471 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10472 cat >conftest.$ac_ext <<_ACEOF
10473 #line $LINENO "configure"
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10480 /* Override any gcc2 internal prototype to avoid an error. */
10484 /* We use char because int might match the return type of a gcc2
10485 builtin and then its argument prototype would still apply. */
10486 char XF86VidModeGetViewPort ();
10490 XF86VidModeGetViewPort ();
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497 (eval $ac_link) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -s conftest$ac_exeext'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10512 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
10514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10515 LIBS=$ac_check_lib_save_LIBS
10517 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
10518 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
10519 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
10520 have_xf86vmode=yes; SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10525 CPPFLAGS="$ac_save_CPPFLAGS"
10526 LDFLAGS="$ac_save_LDFLAGS"
10527 # LIBS="$ac_save_LIBS"
10531 # if that succeeded, then we've really got it.
10532 if test "$have_xf86vmode" = yes; then
10533 cat >>confdefs.h <<\_ACEOF
10534 #define HAVE_XF86VMODE 1
10539 elif test "$with_xf86vmode" != no; then
10540 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
10545 ###############################################################################
10547 # Check for the XF86VMODE server extension (for gamma fading.)
10549 ###############################################################################
10552 have_xf86gamma_ramp=no
10553 with_xf86gamma_req=unspecified
10555 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
10556 if test "${with_xf86gamma_ext+set}" = set; then
10557 withval="$with_xf86gamma_ext"
10558 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
10564 case "$with_xf86gamma" in
10569 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
10570 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
10571 d=$with_xf86gamma/include
10572 if test -d $d; then
10573 X_CFLAGS="-I$d $X_CFLAGS"
10574 echo "$as_me:$LINENO: result: $d" >&5
10575 echo "${ECHO_T}$d" >&6
10577 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10578 echo "${ECHO_T}not found ($d: no such directory)" >&6
10581 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
10582 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
10583 d=$with_xf86gamma/lib
10584 if test -d $d; then
10585 X_LIBS="-L$d $X_LIBS"
10586 echo "$as_me:$LINENO: result: $d" >&5
10587 echo "${ECHO_T}$d" >&6
10589 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10590 echo "${ECHO_T}not found ($d: no such directory)" >&6
10593 # replace the directory string with "yes".
10594 with_xf86gamma_req="yes"
10595 with_xf86gamma=$with_xf86gamma_req
10600 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
10601 echo " If it is a directory, then \`DIR/include' will be added to"
10602 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10608 if test "$with_xf86gamma" = yes; then
10610 # first check for xf86vmode.h, if we haven't already
10611 if test "$have_xf86vmode" = yes; then
10615 ac_save_CPPFLAGS="$CPPFLAGS"
10616 if test \! -z "$includedir" ; then
10617 CPPFLAGS="$CPPFLAGS -I$includedir"
10619 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10620 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
10621 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
10622 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 #include <X11/Xlib.h>
10634 #include <X11/extensions/xf86vmode.h>
10636 rm -f conftest.$ac_objext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10638 (eval $ac_compile) 2>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -s conftest.$ac_objext'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ac_cv_header_X11_extensions_xf86vmode_h=yes
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 ac_cv_header_X11_extensions_xf86vmode_h=no
10655 rm -f conftest.$ac_objext conftest.$ac_ext
10657 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
10658 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
10659 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
10664 CPPFLAGS="$ac_save_CPPFLAGS"
10667 # if that succeeded, then check for the -lXxf86vm
10668 if test "$have_xf86gamma" = yes; then
10671 ac_save_CPPFLAGS="$CPPFLAGS"
10672 ac_save_LDFLAGS="$LDFLAGS"
10673 # ac_save_LIBS="$LIBS"
10675 if test \! -z "$includedir" ; then
10676 CPPFLAGS="$CPPFLAGS -I$includedir"
10678 # note: $X_CFLAGS includes $x_includes
10679 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10681 if test \! -z "$libdir" ; then
10682 LDFLAGS="$LDFLAGS -L$libdir"
10684 # note: $X_LIBS includes $x_libraries
10685 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10687 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
10688 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
10689 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10694 cat >conftest.$ac_ext <<_ACEOF
10695 #line $LINENO "configure"
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10702 /* Override any gcc2 internal prototype to avoid an error. */
10706 /* We use char because int might match the return type of a gcc2
10707 builtin and then its argument prototype would still apply. */
10708 char XF86VidModeSetGamma ();
10712 XF86VidModeSetGamma ();
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10719 (eval $ac_link) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -s conftest$ac_exeext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
10736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10737 LIBS=$ac_check_lib_save_LIBS
10739 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
10740 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
10741 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
10747 CPPFLAGS="$ac_save_CPPFLAGS"
10748 LDFLAGS="$ac_save_LDFLAGS"
10749 # LIBS="$ac_save_LIBS"
10753 # check for the Ramp versions of the functions too.
10754 if test "$have_xf86gamma" = yes; then
10755 have_xf86gamma_ramp=no
10757 ac_save_CPPFLAGS="$CPPFLAGS"
10758 ac_save_LDFLAGS="$LDFLAGS"
10759 # ac_save_LIBS="$LIBS"
10761 if test \! -z "$includedir" ; then
10762 CPPFLAGS="$CPPFLAGS -I$includedir"
10764 # note: $X_CFLAGS includes $x_includes
10765 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10767 if test \! -z "$libdir" ; then
10768 LDFLAGS="$LDFLAGS -L$libdir"
10770 # note: $X_LIBS includes $x_libraries
10771 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10773 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
10774 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
10775 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 ac_check_lib_save_LIBS=$LIBS
10779 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10780 cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10788 /* Override any gcc2 internal prototype to avoid an error. */
10792 /* We use char because int might match the return type of a gcc2
10793 builtin and then its argument prototype would still apply. */
10794 char XF86VidModeSetGammaRamp ();
10798 XF86VidModeSetGammaRamp ();
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
10822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10823 LIBS=$ac_check_lib_save_LIBS
10825 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
10826 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
10827 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
10828 have_xf86gamma_ramp=yes
10833 CPPFLAGS="$ac_save_CPPFLAGS"
10834 LDFLAGS="$ac_save_LDFLAGS"
10835 # LIBS="$ac_save_LIBS"
10839 # if those tests succeeded, then we've really got the functions.
10840 if test "$have_xf86gamma" = yes; then
10841 cat >>confdefs.h <<\_ACEOF
10842 #define HAVE_XF86VMODE_GAMMA 1
10847 if test "$have_xf86gamma_ramp" = yes; then
10848 cat >>confdefs.h <<\_ACEOF
10849 #define HAVE_XF86VMODE_GAMMA_RAMP 1
10854 # pull in the lib, if we haven't already
10855 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
10856 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10859 elif test "$with_xf86gamma" != no; then
10860 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
10865 ###############################################################################
10867 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
10868 # using other XF86 stuff.)
10870 ###############################################################################
10872 have_xf86miscsetgrabkeysstate=no
10873 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
10875 ac_save_CPPFLAGS="$CPPFLAGS"
10876 ac_save_LDFLAGS="$LDFLAGS"
10877 # ac_save_LIBS="$LIBS"
10879 if test \! -z "$includedir" ; then
10880 CPPFLAGS="$CPPFLAGS -I$includedir"
10882 # note: $X_CFLAGS includes $x_includes
10883 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10885 if test \! -z "$libdir" ; then
10886 LDFLAGS="$LDFLAGS -L$libdir"
10888 # note: $X_LIBS includes $x_libraries
10889 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10891 echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
10892 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6
10893 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 ac_check_lib_save_LIBS=$LIBS
10897 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
10898 cat >conftest.$ac_ext <<_ACEOF
10899 #line $LINENO "configure"
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10906 /* Override any gcc2 internal prototype to avoid an error. */
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10912 char XF86MiscSetGrabKeysState ();
10916 XF86MiscSetGrabKeysState ();
10921 rm -f conftest.$ac_objext conftest$ac_exeext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923 (eval $ac_link) 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try='test -s conftest$ac_exeext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
10940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10941 LIBS=$ac_check_lib_save_LIBS
10943 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
10944 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6
10945 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
10946 have_xf86miscsetgrabkeysstate=yes
10951 CPPFLAGS="$ac_save_CPPFLAGS"
10952 LDFLAGS="$ac_save_LDFLAGS"
10953 # LIBS="$ac_save_LIBS"
10955 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
10956 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
10957 cat >>confdefs.h <<\_ACEOF
10958 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
10965 ###############################################################################
10967 # Check for HP XHPDisableReset and XHPEnableReset.
10969 ###############################################################################
10971 echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
10972 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6
10974 ac_save_CPPFLAGS="$CPPFLAGS"
10975 if test \! -z "$includedir" ; then
10976 CPPFLAGS="$CPPFLAGS -I$includedir"
10978 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10979 cat >conftest.$ac_ext <<_ACEOF
10980 #line $LINENO "configure"
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 #include <X11/XHPlib.h>
10989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10990 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_XHPDISABLERESET 1
10995 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
10996 echo "$as_me:$LINENO: result: yes" >&5
10997 echo "${ECHO_T}yes" >&6
10999 echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6
11004 CPPFLAGS="$ac_save_CPPFLAGS"
11007 ###############################################################################
11009 # Check for /proc/interrupts.
11011 ###############################################################################
11013 have_proc_interrupts=no
11014 with_proc_interrupts_req=unspecified
11016 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
11017 if test "${with_proc_interrupts+set}" = set; then
11018 withval="$with_proc_interrupts"
11019 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
11021 with_proc_interrupts=yes
11024 if test "$with_proc_interrupts" = yes; then
11026 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
11027 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
11028 if test "${ac_cv_have_proc_interrupts+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 ac_cv_have_proc_interrupts=no
11032 if grep keyboard /proc/interrupts >/dev/null 2>&1 ; then
11033 ac_cv_have_proc_interrupts=yes
11037 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
11038 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
11039 have_proc_interrupts=$ac_cv_have_proc_interrupts
11041 if test "$have_proc_interrupts" = yes; then
11042 cat >>confdefs.h <<\_ACEOF
11043 #define HAVE_PROC_INTERRUPTS 1
11048 elif test "$with_proc_interrupts" != no; then
11049 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
11054 ###############################################################################
11056 # The --enable-locking option
11058 ###############################################################################
11060 # Check whether --enable-locking or --disable-locking was given.
11061 if test "${enable_locking+set}" = set; then
11062 enableval="$enable_locking"
11063 enable_locking="$enableval"
11067 if test "$enable_locking" = yes; then
11069 elif test "$enable_locking" = no; then
11070 cat >>confdefs.h <<\_ACEOF
11071 #define NO_LOCKING 1
11075 echo "error: must be yes or no: --enable-locking=$enable_locking"
11081 ###############################################################################
11083 # The --enable-vt-locking option
11085 ###############################################################################
11087 #ac_vt_lockswitch=no
11088 #AC_ARG_ENABLE(vt-locking,[
11089 # --enable-vt-locking Compile in support for locking Virtual Terminals.
11090 # This is the default if the system supports it, and
11091 # if locking support is included (--enable-locking.)
11092 # --disable-vt-locking Do not allow locking of VTs, even if locking is
11094 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
11095 #if test "$enable_vt_locking" = yes; then
11097 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
11098 # [AC_TRY_COMPILE([#include <fcntl.h>
11099 # #include <sys/ioctl.h>
11100 # #include <sys/vt.h>],
11101 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
11102 # [ac_cv_vt_lockswitch=yes],
11103 # [ac_cv_vt_lockswitch=no])])
11104 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
11106 #elif test "$enable_vt_locking" = no; then
11109 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
11113 #if test "$ac_vt_lockswitch" = yes; then
11114 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
11115 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
11116 # # #### but it doesn't work yet, so don't worry about that for now.
11121 ###############################################################################
11125 ###############################################################################
11129 # Solaris systems tend to come with PAM misconfigured.
11130 # Don't build it by default, even if the headers exist.
11131 with_pam_default=no
11134 # Default to building PAM support on all other systems, if it exists.
11135 with_pam_default=yes
11140 with_pam_req=unspecified
11143 # Check whether --with-pam or --without-pam was given.
11144 if test "${with_pam+set}" = set; then
11145 withval="$with_pam"
11146 with_pam="$withval"; with_pam_req="$withval"
11148 with_pam=$with_pam_default
11152 case "$with_pam" in
11157 echo "$as_me:$LINENO: checking for PAM headers" >&5
11158 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
11159 d=$with_pam/include
11160 if test -d $d; then
11161 X_CFLAGS="-I$d $X_CFLAGS"
11162 echo "$as_me:$LINENO: result: $d" >&5
11163 echo "${ECHO_T}$d" >&6
11165 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11166 echo "${ECHO_T}not found ($d: no such directory)" >&6
11169 echo "$as_me:$LINENO: checking for PAM libs" >&5
11170 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
11172 if test -d $d; then
11173 X_LIBS="-L$d $X_LIBS"
11174 echo "$as_me:$LINENO: result: $d" >&5
11175 echo "${ECHO_T}$d" >&6
11177 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11178 echo "${ECHO_T}not found ($d: no such directory)" >&6
11181 # replace the directory string with "yes".
11183 with_pam=$with_pam_req
11188 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
11189 echo " If it is a directory, then \`DIR/include' will be added to"
11190 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11196 if test "$enable_locking" = yes -a "$with_pam" = yes; then
11197 echo "$as_me:$LINENO: checking for PAM" >&5
11198 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
11199 if test "${ac_cv_pam+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 ac_save_CPPFLAGS="$CPPFLAGS"
11204 if test \! -z "$includedir" ; then
11205 CPPFLAGS="$CPPFLAGS -I$includedir"
11207 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11208 cat >conftest.$ac_ext <<_ACEOF
11209 #line $LINENO "configure"
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 #include <security/pam_appl.h>
11224 rm -f conftest.$ac_objext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226 (eval $ac_compile) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -s conftest.$ac_objext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11243 rm -f conftest.$ac_objext conftest.$ac_ext
11244 CPPFLAGS="$ac_save_CPPFLAGS"
11246 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
11247 echo "${ECHO_T}$ac_cv_pam" >&6
11248 if test "$ac_cv_pam" = yes ; then
11250 cat >>confdefs.h <<\_ACEOF
11254 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
11256 # libpam typically requires dlopen and dlsym. On FreeBSD,
11257 # those are in libc. On Linux and Solaris, they're in libdl.
11258 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 ac_check_lib_save_LIBS=$LIBS
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11273 /* Override any gcc2 internal prototype to avoid an error. */
11277 /* We use char because int might match the return type of a gcc2
11278 builtin and then its argument prototype would still apply. */
11288 rm -f conftest.$ac_objext conftest$ac_exeext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -s conftest$ac_exeext'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 ac_cv_lib_dl_dlopen=yes
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 ac_cv_lib_dl_dlopen=no
11307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11312 if test $ac_cv_lib_dl_dlopen = yes; then
11313 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
11317 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
11318 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
11319 if test "${ac_cv_pam_strerror_args+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 cat >conftest.$ac_ext <<_ACEOF
11323 #line $LINENO "configure"
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11330 #include <stdlib.h>
11331 #include <security/pam_appl.h>
11335 pam_handle_t *pamh = 0;
11336 char *s = pam_strerror(pamh, PAM_SUCCESS);
11341 rm -f conftest.$ac_objext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11343 (eval $ac_compile) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } &&
11347 { ac_try='test -s conftest.$ac_objext'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 ac_pam_strerror_args=2
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 cat >conftest.$ac_ext <<_ACEOF
11359 #line $LINENO "configure"
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11366 #include <stdlib.h>
11367 #include <security/pam_appl.h>
11372 pam_strerror(PAM_SUCCESS);
11377 rm -f conftest.$ac_objext
11378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11379 (eval $ac_compile) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try='test -s conftest.$ac_objext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_pam_strerror_args=1
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 ac_pam_strerror_args=0
11396 rm -f conftest.$ac_objext conftest.$ac_ext
11398 rm -f conftest.$ac_objext conftest.$ac_ext
11399 ac_cv_pam_strerror_args=$ac_pam_strerror_args
11402 ac_pam_strerror_args=$ac_cv_pam_strerror_args
11403 if test "$ac_pam_strerror_args" = 1 ; then
11404 echo "$as_me:$LINENO: result: one argument" >&5
11405 echo "${ECHO_T}one argument" >&6
11406 elif test "$ac_pam_strerror_args" = 2 ; then
11407 cat >>confdefs.h <<\_ACEOF
11408 #define PAM_STRERROR_TWO_ARGS 1
11411 echo "$as_me:$LINENO: result: two arguments" >&5
11412 echo "${ECHO_T}two arguments" >&6
11414 echo "$as_me:$LINENO: result: unknown" >&5
11415 echo "${ECHO_T}unknown" >&6
11421 ###############################################################################
11423 # Check for Kerberos.
11425 ###############################################################################
11429 with_kerberos_req=unspecified
11432 # Check whether --with-kerberos or --without-kerberos was given.
11433 if test "${with_kerberos+set}" = set; then
11434 withval="$with_kerberos"
11435 with_kerberos="$withval"; with_kerberos_req="$withval"
11441 case "$with_kerberos" in
11446 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
11447 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
11448 d=$with_kerberos/include
11449 if test -d $d; then
11450 X_CFLAGS="-I$d $X_CFLAGS"
11451 echo "$as_me:$LINENO: result: $d" >&5
11452 echo "${ECHO_T}$d" >&6
11454 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11455 echo "${ECHO_T}not found ($d: no such directory)" >&6
11458 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
11459 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
11460 d=$with_kerberos/lib
11461 if test -d $d; then
11462 X_LIBS="-L$d $X_LIBS"
11463 echo "$as_me:$LINENO: result: $d" >&5
11464 echo "${ECHO_T}$d" >&6
11466 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11467 echo "${ECHO_T}not found ($d: no such directory)" >&6
11470 # replace the directory string with "yes".
11471 with_kerberos_req="yes"
11472 with_kerberos=$with_kerberos_req
11477 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
11478 echo " If it is a directory, then \`DIR/include' will be added to"
11479 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11485 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
11486 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
11487 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
11488 if test "${ac_cv_kerberos+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 ac_save_CPPFLAGS="$CPPFLAGS"
11493 if test \! -z "$includedir" ; then
11494 CPPFLAGS="$CPPFLAGS -I$includedir"
11496 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11497 cat >conftest.$ac_ext <<_ACEOF
11498 #line $LINENO "configure"
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11513 rm -f conftest.$ac_objext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11515 (eval $ac_compile) 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -s conftest.$ac_objext'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11532 rm -f conftest.$ac_objext conftest.$ac_ext
11533 CPPFLAGS="$ac_save_CPPFLAGS"
11535 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
11536 echo "${ECHO_T}$ac_cv_kerberos" >&6
11537 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
11538 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
11539 if test "${ac_cv_kerberos5+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 ac_save_CPPFLAGS="$CPPFLAGS"
11544 if test \! -z "$includedir" ; then
11545 CPPFLAGS="$CPPFLAGS -I$includedir"
11547 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11548 cat >conftest.$ac_ext <<_ACEOF
11549 #line $LINENO "configure"
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 #include <kerberosIV/krb.h>
11564 rm -f conftest.$ac_objext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566 (eval $ac_compile) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -s conftest.$ac_objext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_kerberos5=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11583 rm -f conftest.$ac_objext conftest.$ac_ext
11584 CPPFLAGS="$ac_save_CPPFLAGS"
11586 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
11587 echo "${ECHO_T}$ac_cv_kerberos5" >&6
11589 if test "$ac_cv_kerberos" = yes ; then
11591 cat >>confdefs.h <<\_ACEOF
11592 #define HAVE_KERBEROS 1
11597 if test "$ac_cv_kerberos5" = yes ; then
11599 # Andrew Snare <ajs@pigpond.com> wrote:
11601 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
11602 # (krb4) was also available. This turns out not to be the case with
11603 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
11606 # So, disable kerberosV support if libkrb4 can't be found.
11607 # This is not the best solution, but it makes the compile not fail.
11610 ac_save_CPPFLAGS="$CPPFLAGS"
11611 ac_save_LDFLAGS="$LDFLAGS"
11612 # ac_save_LIBS="$LIBS"
11614 if test \! -z "$includedir" ; then
11615 CPPFLAGS="$CPPFLAGS -I$includedir"
11617 # note: $X_CFLAGS includes $x_includes
11618 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11620 if test \! -z "$libdir" ; then
11621 LDFLAGS="$LDFLAGS -L$libdir"
11623 # note: $X_LIBS includes $x_libraries
11624 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11626 echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
11627 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6
11628 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-lkrb4 $LIBS"
11633 cat >conftest.$ac_ext <<_ACEOF
11634 #line $LINENO "configure"
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11641 /* Override any gcc2 internal prototype to avoid an error. */
11645 /* We use char because int might match the return type of a gcc2
11646 builtin and then its argument prototype would still apply. */
11647 char krb_get_tf_realm ();
11651 krb_get_tf_realm ();
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_lib_krb4_krb_get_tf_realm=yes
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11673 ac_cv_lib_krb4_krb_get_tf_realm=no
11675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
11679 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6
11680 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
11686 CPPFLAGS="$ac_save_CPPFLAGS"
11687 LDFLAGS="$ac_save_LDFLAGS"
11688 # LIBS="$ac_save_LIBS"
11690 if test "$have_kerberos" = yes ; then
11692 cat >>confdefs.h <<\_ACEOF
11693 #define HAVE_KERBEROS 1
11696 cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_KERBEROS5 1
11702 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
11703 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
11708 if test "$have_kerberos5" = yes ; then
11709 # from Matt Knopp <mhat@infocalypse.netlag.com>
11710 # (who got it from amu@mit.edu)
11712 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
11714 # jwz: MacOS X uses -lkrb5, but not -lcrypt
11716 ac_save_CPPFLAGS="$CPPFLAGS"
11717 ac_save_LDFLAGS="$LDFLAGS"
11718 # ac_save_LIBS="$LIBS"
11720 if test \! -z "$includedir" ; then
11721 CPPFLAGS="$CPPFLAGS -I$includedir"
11723 # note: $X_CFLAGS includes $x_includes
11724 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11726 if test \! -z "$libdir" ; then
11727 LDFLAGS="$LDFLAGS -L$libdir"
11729 # note: $X_LIBS includes $x_libraries
11730 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11732 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
11733 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
11734 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 ac_check_lib_save_LIBS=$LIBS
11738 LIBS="-lcrypt $LIBS"
11739 cat >conftest.$ac_ext <<_ACEOF
11740 #line $LINENO "configure"
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11747 /* Override any gcc2 internal prototype to avoid an error. */
11751 /* We use char because int might match the return type of a gcc2
11752 builtin and then its argument prototype would still apply. */
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764 (eval $ac_link) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -s conftest$ac_exeext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 ac_cv_lib_crypt_crypt=yes
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11779 ac_cv_lib_crypt_crypt=no
11781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11784 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
11785 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
11786 if test $ac_cv_lib_crypt_crypt = yes; then
11787 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
11790 CPPFLAGS="$ac_save_CPPFLAGS"
11791 LDFLAGS="$ac_save_LDFLAGS"
11792 # LIBS="$ac_save_LIBS"
11795 elif test "$have_kerberos" = yes ; then
11796 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
11797 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
11800 if test "$have_kerberos" = yes ; then
11801 echo "$as_me:$LINENO: checking for res_search" >&5
11802 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
11803 if test "${ac_cv_func_res_search+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 cat >conftest.$ac_ext <<_ACEOF
11807 #line $LINENO "configure"
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 /* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char res_search (); below.
11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816 <limits.h> exists even on freestanding compilers. */
11818 # include <limits.h>
11820 # include <assert.h>
11822 /* Override any gcc2 internal prototype to avoid an error. */
11827 /* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11829 char res_search ();
11830 /* The GNU C library defines this for functions which it implements
11831 to always fail with ENOSYS. Some functions are actually named
11832 something starting with __ and the normal name is an alias. */
11833 #if defined (__stub_res_search) || defined (__stub___res_search)
11836 char (*f) () = res_search;
11845 return f != res_search;
11850 rm -f conftest.$ac_objext conftest$ac_exeext
11851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852 (eval $ac_link) 2>&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -s conftest$ac_exeext'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 ac_cv_func_res_search=yes
11864 echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11867 ac_cv_func_res_search=no
11869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11871 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
11872 echo "${ECHO_T}$ac_cv_func_res_search" >&6
11873 if test $ac_cv_func_res_search = yes; then
11876 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
11877 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
11878 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-lresolv $LIBS"
11883 cat >conftest.$ac_ext <<_ACEOF
11884 #line $LINENO "configure"
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11891 /* Override any gcc2 internal prototype to avoid an error. */
11895 /* We use char because int might match the return type of a gcc2
11896 builtin and then its argument prototype would still apply. */
11897 char res_search ();
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 ac_cv_lib_resolv_res_search=yes
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_cv_lib_resolv_res_search=no
11925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11928 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
11929 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
11930 if test $ac_cv_lib_resolv_res_search = yes; then
11931 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
11933 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
11934 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
11944 ###############################################################################
11946 # Check for the nine billion variants of shadow passwords...
11948 ###############################################################################
11953 with_shadow_req=unspecified
11956 # Check whether --with-shadow or --without-shadow was given.
11957 if test "${with_shadow+set}" = set; then
11958 withval="$with_shadow"
11959 with_shadow="$withval"; with_shadow_req="$withval"
11965 case "$with_shadow" in
11970 echo "$as_me:$LINENO: checking for shadow password headers" >&5
11971 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
11972 d=$with_shadow/include
11973 if test -d $d; then
11974 X_CFLAGS="-I$d $X_CFLAGS"
11975 echo "$as_me:$LINENO: result: $d" >&5
11976 echo "${ECHO_T}$d" >&6
11978 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11979 echo "${ECHO_T}not found ($d: no such directory)" >&6
11982 echo "$as_me:$LINENO: checking for shadow password libs" >&5
11983 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
11985 if test -d $d; then
11986 X_LIBS="-L$d $X_LIBS"
11987 echo "$as_me:$LINENO: result: $d" >&5
11988 echo "${ECHO_T}$d" >&6
11990 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11991 echo "${ECHO_T}not found ($d: no such directory)" >&6
11994 # replace the directory string with "yes".
11995 with_shadow_req="yes"
11996 with_shadow=$with_shadow_req
12001 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
12002 echo " If it is a directory, then \`DIR/include' will be added to"
12003 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12009 if test "$enable_locking" = no ; then
12015 ###############################################################################
12017 # Check for Sun "adjunct" passwords.
12019 ###############################################################################
12021 if test "$with_shadow" = yes ; then
12022 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
12023 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
12024 if test "${ac_cv_sun_adjunct+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 ac_save_CPPFLAGS="$CPPFLAGS"
12029 if test \! -z "$includedir" ; then
12030 CPPFLAGS="$CPPFLAGS -I$includedir"
12032 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12033 cat >conftest.$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 #include <stdlib.h>
12041 #include <unistd.h>
12042 #include <sys/types.h>
12043 #include <sys/label.h>
12044 #include <sys/audit.h>
12045 #include <pwdadj.h>
12049 struct passwd_adjunct *p = getpwanam("nobody");
12050 const char *pw = p->pwa_passwd;
12055 rm -f conftest.$ac_objext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12057 (eval $ac_compile) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -s conftest.$ac_objext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_cv_sun_adjunct=yes
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 ac_cv_sun_adjunct=no
12074 rm -f conftest.$ac_objext conftest.$ac_ext
12075 CPPFLAGS="$ac_save_CPPFLAGS"
12077 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
12078 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
12079 if test "$ac_cv_sun_adjunct" = yes; then
12080 have_shadow_adjunct=yes
12087 ###############################################################################
12089 # Check for DEC and SCO so-called "enhanced" security.
12091 ###############################################################################
12093 if test "$with_shadow" = yes ; then
12094 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
12095 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
12096 if test "${ac_cv_enhanced_passwd+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 ac_save_CPPFLAGS="$CPPFLAGS"
12101 if test \! -z "$includedir" ; then
12102 CPPFLAGS="$CPPFLAGS -I$includedir"
12104 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12105 cat >conftest.$ac_ext <<_ACEOF
12106 #line $LINENO "configure"
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #include <stdlib.h>
12113 #include <unistd.h>
12114 #include <sys/types.h>
12116 #include <sys/security.h>
12121 struct pr_passwd *p;
12123 set_auth_parameters(0, 0);
12124 check_auth_parameters();
12125 p = getprpwnam("nobody");
12126 pw = p->ufld.fd_encrypt;
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -s conftest.$ac_objext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 ac_cv_enhanced_passwd=yes
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ac_cv_enhanced_passwd=no
12150 rm -f conftest.$ac_objext conftest.$ac_ext
12151 CPPFLAGS="$ac_save_CPPFLAGS"
12153 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
12154 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
12155 if test $ac_cv_enhanced_passwd = yes; then
12156 have_shadow_enhanced=yes
12160 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
12161 # (I'm told it needs -lcurses too, but I don't understand why.)
12162 # But on DEC, it's in -lsecurity.
12164 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
12165 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
12166 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-lprot -lx $LIBS"
12171 cat >conftest.$ac_ext <<_ACEOF
12172 #line $LINENO "configure"
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12179 /* Override any gcc2 internal prototype to avoid an error. */
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12185 char getprpwnam ();
12194 rm -f conftest.$ac_objext conftest$ac_exeext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -s conftest$ac_exeext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_cv_lib_prot_getprpwnam=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 ac_cv_lib_prot_getprpwnam=no
12213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12216 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
12217 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
12218 if test $ac_cv_lib_prot_getprpwnam = yes; then
12219 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
12221 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
12222 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
12223 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 ac_check_lib_save_LIBS=$LIBS
12227 LIBS="-lsecurity $LIBS"
12228 cat >conftest.$ac_ext <<_ACEOF
12229 #line $LINENO "configure"
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12236 /* Override any gcc2 internal prototype to avoid an error. */
12240 /* We use char because int might match the return type of a gcc2
12241 builtin and then its argument prototype would still apply. */
12242 char getprpwnam ();
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12253 (eval $ac_link) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_lib_security_getprpwnam=yes
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_cv_lib_security_getprpwnam=no
12270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12273 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
12274 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
12275 if test $ac_cv_lib_security_getprpwnam = yes; then
12276 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
12284 ###############################################################################
12286 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
12288 ###############################################################################
12290 if test "$with_shadow" = yes ; then
12291 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
12292 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
12293 if test "${ac_cv_hpux_passwd+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 ac_save_CPPFLAGS="$CPPFLAGS"
12298 if test \! -z "$includedir" ; then
12299 CPPFLAGS="$CPPFLAGS -I$includedir"
12301 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12302 cat >conftest.$ac_ext <<_ACEOF
12303 #line $LINENO "configure"
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 #include <stdlib.h>
12310 #include <unistd.h>
12311 #include <sys/types.h>
12313 #include <hpsecurity.h>
12318 struct s_passwd *p = getspwnam("nobody");
12319 const char *pw = p->pw_passwd;
12324 rm -f conftest.$ac_objext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326 (eval $ac_compile) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -s conftest.$ac_objext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 ac_cv_hpux_passwd=yes
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 ac_cv_hpux_passwd=no
12343 rm -f conftest.$ac_objext conftest.$ac_ext
12344 CPPFLAGS="$ac_save_CPPFLAGS"
12346 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
12347 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
12348 if test "$ac_cv_hpux_passwd" = yes; then
12349 have_shadow_hpux=yes
12353 # on HPUX, bigcrypt is in -lsec
12354 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
12355 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
12356 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12359 ac_check_lib_save_LIBS=$LIBS
12361 cat >conftest.$ac_ext <<_ACEOF
12362 #line $LINENO "configure"
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12369 /* Override any gcc2 internal prototype to avoid an error. */
12373 /* We use char because int might match the return type of a gcc2
12374 builtin and then its argument prototype would still apply. */
12384 rm -f conftest.$ac_objext conftest$ac_exeext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12386 (eval $ac_link) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -s conftest$ac_exeext'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_cv_lib_sec_bigcrypt=yes
12398 echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12401 ac_cv_lib_sec_bigcrypt=no
12403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_lib_save_LIBS
12406 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
12407 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
12408 if test $ac_cv_lib_sec_bigcrypt = yes; then
12409 PASSWD_LIBS="$PASSWD_LIBS -lsec"
12416 ###############################################################################
12418 # Check for FreeBSD-style shadow passwords.
12420 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
12421 # password systems -- except you only get stuff in the pw_passwd field
12422 # if the running program is setuid. So, guess that we've got this
12423 # lossage to contend with if /etc/master.passwd exists, and default to
12424 # a setuid installation.
12426 ###############################################################################
12428 if test "$with_shadow" = yes ; then
12429 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
12430 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
12431 if test "${ac_cv_master_passwd+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 if test -f /etc/master.passwd ; then
12435 ac_cv_master_passwd=yes
12437 ac_cv_master_passwd=no
12440 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
12441 echo "${ECHO_T}$ac_cv_master_passwd" >&6
12442 if test "$ac_cv_master_passwd" = yes; then
12448 ###############################################################################
12450 # Check for traditional (ha!) shadow passwords.
12452 ###############################################################################
12454 if test "$with_shadow" = yes ; then
12455 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
12456 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
12457 if test "${ac_cv_shadow+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 ac_save_CPPFLAGS="$CPPFLAGS"
12462 if test \! -z "$includedir" ; then
12463 CPPFLAGS="$CPPFLAGS -I$includedir"
12465 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12466 cat >conftest.$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 #include <stdlib.h>
12474 #include <unistd.h>
12475 #include <sys/types.h>
12477 #include <shadow.h>
12481 struct spwd *p = getspnam("nobody");
12482 const char *pw = p->sp_pwdp;
12487 rm -f conftest.$ac_objext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12489 (eval $ac_compile) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -s conftest.$ac_objext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12506 rm -f conftest.$ac_objext conftest.$ac_ext
12507 CPPFLAGS="$ac_save_CPPFLAGS"
12509 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
12510 echo "${ECHO_T}$ac_cv_shadow" >&6
12511 if test "$ac_cv_shadow" = yes; then
12515 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
12517 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
12518 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
12519 if test "${ac_cv_lib_c_getspnam+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 ac_check_lib_save_LIBS=$LIBS
12524 cat >conftest.$ac_ext <<_ACEOF
12525 #line $LINENO "configure"
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12532 /* Override any gcc2 internal prototype to avoid an error. */
12536 /* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12547 rm -f conftest.$ac_objext conftest$ac_exeext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12549 (eval $ac_link) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } &&
12553 { ac_try='test -s conftest$ac_exeext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_lib_c_getspnam=yes
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12564 ac_cv_lib_c_getspnam=no
12566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12567 LIBS=$ac_check_lib_save_LIBS
12569 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
12570 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
12571 if test $ac_cv_lib_c_getspnam = yes; then
12575 if test "$have_getspnam" = no ; then
12576 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
12577 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
12578 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 ac_check_lib_save_LIBS=$LIBS
12583 cat >conftest.$ac_ext <<_ACEOF
12584 #line $LINENO "configure"
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12591 /* Override any gcc2 internal prototype to avoid an error. */
12595 /* We use char because int might match the return type of a gcc2
12596 builtin and then its argument prototype would still apply. */
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12608 (eval $ac_link) 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -s conftest$ac_exeext'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 ac_cv_lib_gen_getspnam=yes
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 ac_cv_lib_gen_getspnam=no
12625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12628 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
12629 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
12630 if test $ac_cv_lib_gen_getspnam = yes; then
12631 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
12639 ###############################################################################
12641 # Check for other libraries needed for non-shadow passwords.
12643 ###############################################################################
12645 if test "$enable_locking" = yes ; then
12647 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
12649 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
12650 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
12651 if test "${ac_cv_lib_c_crypt+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 ac_check_lib_save_LIBS=$LIBS
12656 cat >conftest.$ac_ext <<_ACEOF
12657 #line $LINENO "configure"
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12664 /* Override any gcc2 internal prototype to avoid an error. */
12668 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12681 (eval $ac_link) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_cv_lib_c_crypt=yes
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 ac_cv_lib_c_crypt=no
12698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12699 LIBS=$ac_check_lib_save_LIBS
12701 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
12702 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
12703 if test $ac_cv_lib_c_crypt = yes; then
12707 if test "$have_crypt" = no ; then
12708 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
12709 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
12710 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 ac_check_lib_save_LIBS=$LIBS
12714 LIBS="-lcrypt $LIBS"
12715 cat >conftest.$ac_ext <<_ACEOF
12716 #line $LINENO "configure"
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12723 /* Override any gcc2 internal prototype to avoid an error. */
12727 /* We use char because int might match the return type of a gcc2
12728 builtin and then its argument prototype would still apply. */
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740 (eval $ac_link) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -s conftest$ac_exeext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 ac_cv_lib_crypt_crypt=yes
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ac_cv_lib_crypt_crypt=no
12757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12758 LIBS=$ac_check_lib_save_LIBS
12760 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
12761 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
12762 if test $ac_cv_lib_crypt_crypt = yes; then
12763 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
12770 # Most of the above shadow mechanisms will have set need_setuid to yes,
12771 # if they were found. But, on some systems, we need setuid even when
12772 # using plain old vanilla passwords.
12774 if test "$enable_locking" = yes ; then
12776 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
12783 if test "$have_shadow_adjunct" = yes ; then
12784 cat >>confdefs.h <<\_ACEOF
12785 #define HAVE_ADJUNCT_PASSWD 1
12788 elif test "$have_shadow_enhanced" = yes ; then
12789 cat >>confdefs.h <<\_ACEOF
12790 #define HAVE_ENHANCED_PASSWD 1
12793 elif test "$have_shadow_hpux" = yes ; then
12794 cat >>confdefs.h <<\_ACEOF
12795 #define HAVE_HPUX_PASSWD 1
12798 elif test "$have_shadow" = yes ; then
12799 cat >>confdefs.h <<\_ACEOF
12800 #define HAVE_SHADOW_PASSWD 1
12806 ###############################################################################
12810 ###############################################################################
12813 with_motif_req=unspecified
12815 # Check whether --with-motif or --without-motif was given.
12816 if test "${with_motif+set}" = set; then
12817 withval="$with_motif"
12818 with_motif="$withval"; with_motif_req="$withval"
12824 case "$with_motif" in
12829 echo "$as_me:$LINENO: checking for Motif headers" >&5
12830 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
12831 d=$with_motif/include
12832 if test -d $d; then
12833 X_CFLAGS="-I$d $X_CFLAGS"
12834 echo "$as_me:$LINENO: result: $d" >&5
12835 echo "${ECHO_T}$d" >&6
12837 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12838 echo "${ECHO_T}not found ($d: no such directory)" >&6
12841 echo "$as_me:$LINENO: checking for Motif libs" >&5
12842 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
12844 if test -d $d; then
12845 X_LIBS="-L$d $X_LIBS"
12846 echo "$as_me:$LINENO: result: $d" >&5
12847 echo "${ECHO_T}$d" >&6
12849 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12850 echo "${ECHO_T}not found ($d: no such directory)" >&6
12853 # replace the directory string with "yes".
12854 with_motif_req="yes"
12855 with_motif=$with_motif_req
12860 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
12861 echo " If it is a directory, then \`DIR/include' will be added to"
12862 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12868 if test "$with_motif" != yes -a "$with_motif" != no ; then
12869 echo "error: must be yes or no: --with-motif=$with_motif"
12873 if test "$with_motif" = yes; then
12876 ac_save_CPPFLAGS="$CPPFLAGS"
12877 if test \! -z "$includedir" ; then
12878 CPPFLAGS="$CPPFLAGS -I$includedir"
12880 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12881 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
12882 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
12883 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 cat >conftest.$ac_ext <<_ACEOF
12887 #line $LINENO "configure"
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12893 #include <stdlib.h>
12895 #include <X11/Intrinsic.h>
12899 rm -f conftest.$ac_objext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901 (eval $ac_compile) 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -s conftest.$ac_objext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_header_Xm_Xm_h=yes
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_cv_header_Xm_Xm_h=no
12918 rm -f conftest.$ac_objext conftest.$ac_ext
12920 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
12921 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
12922 if test $ac_cv_header_Xm_Xm_h = yes; then
12924 cat >>confdefs.h <<\_ACEOF
12925 #define HAVE_MOTIF 1
12928 MOTIF_LIBS="$MOTIF_LIBS -lXm"
12932 CPPFLAGS="$ac_save_CPPFLAGS"
12936 if test "$have_motif" = yes; then
12938 ac_save_CPPFLAGS="$CPPFLAGS"
12939 if test \! -z "$includedir" ; then
12940 CPPFLAGS="$CPPFLAGS -I$includedir"
12942 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12943 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
12944 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
12945 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 cat >conftest.$ac_ext <<_ACEOF
12949 #line $LINENO "configure"
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 #include <stdlib.h>
12957 #include <X11/Intrinsic.h>
12959 #include <Xm/ComboBox.h>
12961 rm -f conftest.$ac_objext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_header_Xm_ComboBox_h=yes
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 ac_cv_header_Xm_ComboBox_h=no
12980 rm -f conftest.$ac_objext conftest.$ac_ext
12982 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
12983 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
12984 if test $ac_cv_header_Xm_ComboBox_h = yes; then
12985 cat >>confdefs.h <<\_ACEOF
12986 #define HAVE_XMCOMBOBOX 1
12992 CPPFLAGS="$ac_save_CPPFLAGS"
12996 ###############################################################################
12998 # Check for -lgtk (and Gnome stuff)
13000 ###############################################################################
13004 with_gtk_req=unspecified
13006 # Check whether --with-gtk or --without-gtk was given.
13007 if test "${with_gtk+set}" = set; then
13008 withval="$with_gtk"
13009 with_gtk="$withval"; with_gtk_req="$withval"
13014 # if --with-gtk=/directory/ was specified, remember that directory so that
13015 # we can also look for the `gtk-config' program in that directory.
13016 case "$with_gtk" in
13018 gtk_dir="$with_gtk"
13026 case "$with_gtk" in
13031 echo "$as_me:$LINENO: checking for Gtk headers" >&5
13032 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
13033 d=$with_gtk/include
13034 if test -d $d; then
13035 X_CFLAGS="-I$d $X_CFLAGS"
13036 echo "$as_me:$LINENO: result: $d" >&5
13037 echo "${ECHO_T}$d" >&6
13039 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13040 echo "${ECHO_T}not found ($d: no such directory)" >&6
13043 echo "$as_me:$LINENO: checking for Gtk libs" >&5
13044 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
13046 if test -d $d; then
13047 X_LIBS="-L$d $X_LIBS"
13048 echo "$as_me:$LINENO: result: $d" >&5
13049 echo "${ECHO_T}$d" >&6
13051 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13052 echo "${ECHO_T}not found ($d: no such directory)" >&6
13055 # replace the directory string with "yes".
13057 with_gtk=$with_gtk_req
13062 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
13063 echo " If it is a directory, then \`DIR/include' will be added to"
13064 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13070 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
13071 echo "error: must be yes or no: --with-gtk=$with_gtk"
13076 with_gnome_req=unspecified
13078 # Check whether --with-gnome or --without-gnome was given.
13079 if test "${with_gnome+set}" = set; then
13080 withval="$with_gnome"
13081 with_gnome="$withval"; with_gnome_req="$withval"
13086 # if --with-gnome=/directory/ was specified, remember that directory so that
13087 # we can also look for the `gnome-config' program in that directory.
13088 case "$with_gnome" in
13090 gnome_dir="$with_gnome"
13098 case "$with_gnome" in
13103 echo "$as_me:$LINENO: checking for Gnome headers" >&5
13104 echo $ECHO_N "checking for Gnome headers... $ECHO_C" >&6
13105 d=$with_gnome/include
13106 if test -d $d; then
13107 X_CFLAGS="-I$d $X_CFLAGS"
13108 echo "$as_me:$LINENO: result: $d" >&5
13109 echo "${ECHO_T}$d" >&6
13111 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13112 echo "${ECHO_T}not found ($d: no such directory)" >&6
13115 echo "$as_me:$LINENO: checking for Gnome libs" >&5
13116 echo $ECHO_N "checking for Gnome libs... $ECHO_C" >&6
13118 if test -d $d; then
13119 X_LIBS="-L$d $X_LIBS"
13120 echo "$as_me:$LINENO: result: $d" >&5
13121 echo "${ECHO_T}$d" >&6
13123 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13124 echo "${ECHO_T}not found ($d: no such directory)" >&6
13127 # replace the directory string with "yes".
13128 with_gnome_req="yes"
13129 with_gnome=$with_gnome_req
13134 echo "error: argument to --with-gnome must be \"yes\", \"no\", or a directory."
13135 echo " If it is a directory, then \`DIR/include' will be added to"
13136 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13142 if test "$with_gnome" != yes -a "$with_gnome" != no ; then
13143 echo "error: must be yes or no: --with-gnome=$with_gnome"
13147 parse_gtk_version_string() {
13150 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
13151 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
13153 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
13154 if test -z "$ac_gtk_version"; then
13155 ac_gtk_version=unknown
13156 ac_gtk_version_string=unknown
13164 if test "$with_gtk" = yes; then
13167 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
13168 # look in /foo/bin/ for glib-config, gtk-config, and gnome-config.
13172 if test ! -z "$gtk_dir"; then
13173 # canonicalize slashes.
13174 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
13175 gtk_path="$foo:$gtk_path"
13178 if test ! -z "$gnome_dir"; then
13179 # canonicalize slashes.
13180 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
13181 gtk_path="$foo:$gtk_path"
13184 for ac_prog in pkg-config
13186 # Extract the first word of "$ac_prog", so it can be a program name with args.
13187 set dummy $ac_prog; ac_word=$2
13188 echo "$as_me:$LINENO: checking for $ac_word" >&5
13189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13190 if test "${ac_cv_path_pkg_config+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 case $pkg_config in
13195 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $gtk_path
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13205 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
13206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 pkg_config=$ac_cv_path_pkg_config
13217 if test -n "$pkg_config"; then
13218 echo "$as_me:$LINENO: result: $pkg_config" >&5
13219 echo "${ECHO_T}$pkg_config" >&6
13221 echo "$as_me:$LINENO: result: no" >&5
13222 echo "${ECHO_T}no" >&6
13225 test -n "$pkg_config" && break
13229 if test -n "$pkg_config" ; then
13232 # run pkg-config based tests.
13235 pkg_check_version() {
13236 if test "$ok" = yes ; then
13239 echo "$as_me:$LINENO: checking for $req" >&5
13240 echo $ECHO_N "checking for $req... $ECHO_C" >&6
13241 if $pkg_config --exists "$req" ; then
13242 vers=`$pkg_config --modversion "$req"`
13243 if $pkg_config --exists "$req >= $min" ; then
13244 echo "$as_me:$LINENO: result: $vers" >&5
13245 echo "${ECHO_T}$vers" >&6
13249 echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
13250 echo "${ECHO_T}$vers (wanted >= $min)" >&6
13255 echo "$as_me:$LINENO: result: no" >&5
13256 echo "${ECHO_T}no" >&6
13263 echo "$as_me:$LINENO: result: checking for GTK 2.x with pkg-config based tests..." >&5
13264 echo "${ECHO_T}checking for GTK 2.x with pkg-config based tests..." >&6
13267 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
13268 pkg_check_version gmodule-2.0 2.0.0
13269 pkg_check_version libxml-2.0 2.4.6
13270 pkg_check_version libglade-2.0 1.99.0
13271 # pkg_check_version gdk_pixbuf 0.1
13274 if test "$have_gtk" = yes; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_GTK2 1
13281 if test -n "$ac_gtk_version_string" ; then
13282 gtk2_halfassed="$ac_gtk_version_string"
13283 gtk2_halfassed_lib="$req"
13287 if test "$have_gtk" = no; then
13289 # we don't have GTK 2. Let's look for GTK 1.
13291 echo "$as_me:$LINENO: result: checking for GTK 1.x with pkg-config based tests..." >&5
13292 echo "${ECHO_T}checking for GTK 1.x with pkg-config based tests..." >&6
13296 pkg_check_version gtk+ 1.2 ; ac_gtk_version_string="$vers"
13297 pkg_check_version glib 1.0
13298 pkg_check_version gdk_pixbuf 0.1
13301 # Now check for Gnome...
13303 if test "$have_gtk" = yes -a "$with_gnome" = yes; then
13306 pkg_check_version capplet 1.0
13307 pkg_check_version gnomeui 1.0
13308 pkg_check_version gdk_pixbuf 0.1
13311 if test "$have_gnome" = no; then
13314 cat >>confdefs.h <<\_ACEOF
13315 #define HAVE_CRAPPLET 1
13322 if test "$have_gtk" = yes; then
13323 parse_gtk_version_string
13329 if test "$have_gtk" = yes; then
13330 echo "$as_me:$LINENO: checking for Gtk includes" >&5
13331 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
13332 if test "${ac_cv_gtk_config_cflags+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
13337 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
13338 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
13339 echo "$as_me:$LINENO: checking for Gtk libs" >&5
13340 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
13341 if test "${ac_cv_gtk_config_libs+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
13346 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
13347 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
13349 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
13350 ac_gtk_config_libs=$ac_cv_gtk_config_libs
13352 ac_gnome_config_cflags=$ac_gtk_config_cflags
13353 ac_gnome_config_libs=$ac_gtk_config_libs
13358 # run {gnome,gtk}-config based tests.
13360 echo "$as_me:$LINENO: result: checking for GTK 1.x with gtk-config based tests..." >&5
13361 echo "${ECHO_T}checking for GTK 1.x with gtk-config based tests..." >&6
13363 for ac_prog in glib12-config glib-config
13365 # Extract the first word of "$ac_prog", so it can be a program name with args.
13366 set dummy $ac_prog; ac_word=$2
13367 echo "$as_me:$LINENO: checking for $ac_word" >&5
13368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13369 if test "${ac_cv_path_glib_config+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 case $glib_config in
13374 ac_cv_path_glib_config="$glib_config" # Let the user override the test with a path.
13377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378 for as_dir in $gtk_path
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
13383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13384 ac_cv_path_glib_config="$as_dir/$ac_word$ac_exec_ext"
13385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13394 glib_config=$ac_cv_path_glib_config
13396 if test -n "$glib_config"; then
13397 echo "$as_me:$LINENO: result: $glib_config" >&5
13398 echo "${ECHO_T}$glib_config" >&6
13400 echo "$as_me:$LINENO: result: no" >&5
13401 echo "${ECHO_T}no" >&6
13404 test -n "$glib_config" && break
13407 for ac_prog in gtk12-config gtk-config
13409 # Extract the first word of "$ac_prog", so it can be a program name with args.
13410 set dummy $ac_prog; ac_word=$2
13411 echo "$as_me:$LINENO: checking for $ac_word" >&5
13412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13413 if test "${ac_cv_path_gtk_config+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 case $gtk_config in
13418 ac_cv_path_gtk_config="$gtk_config" # Let the user override the test with a path.
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $gtk_path
13425 test -z "$as_dir" && as_dir=.
13426 for ac_exec_ext in '' $ac_executable_extensions; do
13427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13428 ac_cv_path_gtk_config="$as_dir/$ac_word$ac_exec_ext"
13429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13438 gtk_config=$ac_cv_path_gtk_config
13440 if test -n "$gtk_config"; then
13441 echo "$as_me:$LINENO: result: $gtk_config" >&5
13442 echo "${ECHO_T}$gtk_config" >&6
13444 echo "$as_me:$LINENO: result: no" >&5
13445 echo "${ECHO_T}no" >&6
13448 test -n "$gtk_config" && break
13452 if test "$with_gnome" = yes; then
13453 for ac_prog in gnome-config
13455 # Extract the first word of "$ac_prog", so it can be a program name with args.
13456 set dummy $ac_prog; ac_word=$2
13457 echo "$as_me:$LINENO: checking for $ac_word" >&5
13458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13459 if test "${ac_cv_path_gnome_config+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 case $gnome_config in
13464 ac_cv_path_gnome_config="$gnome_config" # Let the user override the test with a path.
13467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468 for as_dir in $gtk_path
13471 test -z "$as_dir" && as_dir=.
13472 for ac_exec_ext in '' $ac_executable_extensions; do
13473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13474 ac_cv_path_gnome_config="$as_dir/$ac_word$ac_exec_ext"
13475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13484 gnome_config=$ac_cv_path_gnome_config
13486 if test -n "$gnome_config"; then
13487 echo "$as_me:$LINENO: result: $gnome_config" >&5
13488 echo "${ECHO_T}$gnome_config" >&6
13490 echo "$as_me:$LINENO: result: no" >&5
13491 echo "${ECHO_T}no" >&6
13494 test -n "$gnome_config" && break
13499 if test -n "$glib_config" -a -n "$gtk_config" ; then
13501 if test "$with_gnome" = yes -a -n "$gnome_config" ; then
13506 if test "$have_gtk" = yes; then
13507 echo "$as_me:$LINENO: checking Gtk version number" >&5
13508 echo $ECHO_N "checking Gtk version number... $ECHO_C" >&6
13509 if test "${ac_cv_gtk_version_string+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 ac_cv_gtk_version_string=`$gtk_config --version`
13514 echo "$as_me:$LINENO: result: $ac_cv_gtk_version_string" >&5
13515 echo "${ECHO_T}$ac_cv_gtk_version_string" >&6
13516 ac_gtk_version_string=$ac_cv_gtk_version_string
13517 parse_gtk_version_string
13520 if test "$have_gtk" = yes; then
13521 if test "$ac_gtk_version" = "unknown" || test "$ac_gtk_version" -lt 1002
13529 if test "$have_gtk" = yes; then
13530 echo "$as_me:$LINENO: checking for Gtk includes" >&5
13531 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
13532 if test "${ac_cv_gtk_config_cflags+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 ac_cv_gtk_config_cflags=`$gtk_config --cflags`
13537 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
13538 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
13539 echo "$as_me:$LINENO: checking for Gtk libs" >&5
13540 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
13541 if test "${ac_cv_gtk_config_libs+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 ac_cv_gtk_config_libs=`$gtk_config --libs`
13546 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
13547 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
13549 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
13550 ac_gtk_config_libs=$ac_cv_gtk_config_libs
13552 # Check for Gnome Capplet support.
13553 # Note that this is only needed with Gnome 1.x, not Gnome 2.x.
13554 # In a Gnome 2.x world, libcapplet will not exist.
13555 # (In fact, this likely won't even be checked, since in a Gnome 2.x
13556 # world, we will probably be up in the "$pkg_config" branch instead
13557 # of here in the "$gnome_config" branch.)
13559 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
13560 gnome_config_libs="gtk capplet gnomeui gdk_pixbuf"
13561 echo "$as_me:$LINENO: checking for Gnome capplet includes" >&5
13562 echo $ECHO_N "checking for Gnome capplet includes... $ECHO_C" >&6
13563 if test "${ac_cv_gnome_config_cflags+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 if ( $gnome_config --cflags $gnome_config_libs 2>&1 | \
13567 grep Unknown >/dev/null ) ; then
13568 ac_cv_gnome_config_cflags=''
13570 ac_cv_gnome_config_cflags=`$gnome_config --cflags $gnome_config_libs`
13574 ac_gnome_config_cflags=$ac_cv_gnome_config_cflags
13575 if test "$ac_gnome_config_cflags" = "" ; then
13577 echo "$as_me:$LINENO: result: no" >&5
13578 echo "${ECHO_T}no" >&6
13580 echo "$as_me:$LINENO: result: $ac_gnome_config_cflags" >&5
13581 echo "${ECHO_T}$ac_gnome_config_cflags" >&6
13585 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
13586 echo "$as_me:$LINENO: checking for Gnome capplet libs" >&5
13587 echo $ECHO_N "checking for Gnome capplet libs... $ECHO_C" >&6
13588 if test "${ac_cv_gnome_config_libs+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 if ( $gnome_config --libs $gnome_config_libs 2>&1 |
13592 grep Unknown >/dev/null ) ; then
13593 ac_cv_gnome_config_libs=''
13595 ac_cv_gnome_config_libs=`$gnome_config --libs $gnome_config_libs`
13599 ac_gnome_config_libs=$ac_cv_gnome_config_libs
13600 if test "$ac_gnome_config_libs" = "" ; then
13602 echo "$as_me:$LINENO: result: no" >&5
13603 echo "${ECHO_T}no" >&6
13605 echo "$as_me:$LINENO: result: $ac_gnome_config_libs" >&5
13606 echo "${ECHO_T}$ac_gnome_config_libs" >&6
13610 # If we have Gnome, then override the gtk-config values with
13611 # the gnome-config values.
13613 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
13614 ac_gtk_config_cflags=$ac_gnome_config_cflags
13615 ac_gtk_config_libs=$ac_gnome_config_libs
13616 cat >>confdefs.h <<\_ACEOF
13617 #define HAVE_CRAPPLET 1
13622 fi # end of {gnome,gtk}-config based tests
13624 if test "$have_gtk" = yes -a "$have_gtk2" = no; then
13625 # check for this function that was not in libcapplet 1.2.
13626 # (only needed in Gnome/Gtk 1.x, not Gnome/Gtk 2.x)
13628 ac_save_CPPFLAGS="$CPPFLAGS"
13629 ac_save_LDFLAGS="$LDFLAGS"
13630 # ac_save_LIBS="$LIBS"
13632 if test \! -z "$includedir" ; then
13633 CPPFLAGS="$CPPFLAGS -I$includedir"
13635 # note: $X_CFLAGS includes $x_includes
13636 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13638 if test \! -z "$libdir" ; then
13639 LDFLAGS="$LDFLAGS -L$libdir"
13641 # note: $X_LIBS includes $x_libraries
13642 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13644 echo "$as_me:$LINENO: checking for capplet_widget_changes_are_immediate in -lcapplet" >&5
13645 echo $ECHO_N "checking for capplet_widget_changes_are_immediate in -lcapplet... $ECHO_C" >&6
13646 if test "${ac_cv_lib_capplet_capplet_widget_changes_are_immediate+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 ac_check_lib_save_LIBS=$LIBS
13650 LIBS="-lcapplet $ac_gnome_config_libs $LIBS"
13651 cat >conftest.$ac_ext <<_ACEOF
13652 #line $LINENO "configure"
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13659 /* Override any gcc2 internal prototype to avoid an error. */
13663 /* We use char because int might match the return type of a gcc2
13664 builtin and then its argument prototype would still apply. */
13665 char capplet_widget_changes_are_immediate ();
13669 capplet_widget_changes_are_immediate ();
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13676 (eval $ac_link) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -s conftest$ac_exeext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=yes
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=no
13693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13694 LIBS=$ac_check_lib_save_LIBS
13696 echo "$as_me:$LINENO: result: $ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&5
13697 echo "${ECHO_T}$ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&6
13698 if test $ac_cv_lib_capplet_capplet_widget_changes_are_immediate = yes; then
13699 cat >>confdefs.h <<\_ACEOF
13700 #define HAVE_CRAPPLET_IMMEDIATE 1
13707 CPPFLAGS="$ac_save_CPPFLAGS"
13708 LDFLAGS="$ac_save_LDFLAGS"
13709 # LIBS="$ac_save_LIBS"
13715 if test "$have_gtk" = yes; then
13716 if test -n "$pkg_config"; then
13717 if test "$have_gtk2" = yes; then
13718 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
13720 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+`
13723 GNOME_DATADIR=`$gtk_config --prefix`
13725 GNOME_DATADIR="$GNOME_DATADIR/share"
13728 # .desktop files go in different places in Gnome 1.x and Gnome 2.x...
13729 if test "$have_gtk2" = yes; then
13730 GNOME_PANELDIR='$(GNOME_PANELDIR2)'
13732 GNOME_PANELDIR='$(GNOME_PANELDIR1)'
13736 if test "$have_gtk" = yes; then
13737 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
13738 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
13739 cat >>confdefs.h <<\_ACEOF
13744 if test "$have_gtk2" = yes; then
13747 GTK_EXTRA_OBJS="\$(GTK_EXTRA_OBJS)"
13754 # Check for the Gnome Help Browser.
13756 if test "$have_gtk" = yes; then
13757 for ac_prog in yelp gnome-help-browser
13759 # Extract the first word of "$ac_prog", so it can be a program name with args.
13760 set dummy $ac_prog; ac_word=$2
13761 echo "$as_me:$LINENO: checking for $ac_word" >&5
13762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13763 if test "${ac_cv_prog_have_gnome_help+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 if test -n "$have_gnome_help"; then
13767 ac_cv_prog_have_gnome_help="$have_gnome_help" # Let the user override the test.
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13773 test -z "$as_dir" && as_dir=.
13774 for ac_exec_ext in '' $ac_executable_extensions; do
13775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13776 ac_cv_prog_have_gnome_help="$ac_prog"
13777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13785 have_gnome_help=$ac_cv_prog_have_gnome_help
13786 if test -n "$have_gnome_help"; then
13787 echo "$as_me:$LINENO: result: $have_gnome_help" >&5
13788 echo "${ECHO_T}$have_gnome_help" >&6
13790 echo "$as_me:$LINENO: result: no" >&5
13791 echo "${ECHO_T}no" >&6
13794 test -n "$have_gnome_help" && break
13796 test -n "$have_gnome_help" || have_gnome_help="no"
13798 if test "$have_gnome_help" != no; then
13799 have_gnome_help=yes
13804 ###############################################################################
13808 ###############################################################################
13811 with_xml_req=unspecified
13814 # Check whether --with-xml or --without-xml was given.
13815 if test "${with_xml+set}" = set; then
13816 withval="$with_xml"
13817 with_xml="$withval"; with_xml_req="$withval"
13822 # if --with-xml=/directory/ was specified, remember that directory so that
13823 # we can also look for the `xml-config' program in that directory.
13824 case "$with_xml" in
13826 xml_dir="$with_xml"
13834 case "$with_xml" in
13839 echo "$as_me:$LINENO: checking for XML headers" >&5
13840 echo $ECHO_N "checking for XML headers... $ECHO_C" >&6
13841 d=$with_xml/include
13842 if test -d $d; then
13843 X_CFLAGS="-I$d $X_CFLAGS"
13844 echo "$as_me:$LINENO: result: $d" >&5
13845 echo "${ECHO_T}$d" >&6
13847 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13848 echo "${ECHO_T}not found ($d: no such directory)" >&6
13851 echo "$as_me:$LINENO: checking for XML libs" >&5
13852 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
13854 if test -d $d; then
13855 X_LIBS="-L$d $X_LIBS"
13856 echo "$as_me:$LINENO: result: $d" >&5
13857 echo "${ECHO_T}$d" >&6
13859 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13860 echo "${ECHO_T}not found ($d: no such directory)" >&6
13863 # replace the directory string with "yes".
13865 with_xml=$with_xml_req
13870 echo "error: argument to --with-xml must be \"yes\", \"no\", or a directory."
13871 echo " If it is a directory, then \`DIR/include' will be added to"
13872 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13878 if test "$with_xml" != yes -a "$with_xml" != no ; then
13879 echo "error: must be yes or no: --with-xml=$with_xml"
13883 if test "$with_xml" = yes; then
13887 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
13888 # look in /foo/bin/ for for xml-config.
13892 if test ! -z "$gtk_dir"; then
13893 # canonicalize slashes.
13894 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
13895 xml_path="$foo:$xml_path"
13898 if test ! -z "$gnome_dir"; then
13899 # canonicalize slashes.
13900 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
13901 xml_path="$foo:$xml_path"
13904 if test -n "$pkg_config" ; then
13907 # run pkg-config based tests.
13912 # If we have Gtk 2.x, then *only* XML 2.x will work.
13913 # If we have Gtk 1.x, or don't have Gtk at all, then
13914 # either XML 1.x or 2.x will work.
13916 # First check for XML 2.x.
13918 pkg_check_version libxml-2.0 2.4.6
13920 # If that didn't work (we don't have XML 2.x) and we *don't* have
13921 # Gtk 2.x, then check to see if we have XML 1.x
13923 if test "$ok" = no -a "$have_gtk2" = no; then
13925 pkg_check_version libxml 1.0
13930 if test "$have_xml" = yes; then
13931 echo "$as_me:$LINENO: checking for XML includes" >&5
13932 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
13933 if test "${ac_cv_xml_config_cflags+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 ac_cv_xml_config_cflags=`$pkg_config --cflags $pkgs`
13938 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
13939 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
13940 echo "$as_me:$LINENO: checking for XML libs" >&5
13941 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
13942 if test "${ac_cv_xml_config_libs+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 ac_cv_xml_config_libs=`$pkg_config --libs $pkgs`
13947 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
13948 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
13949 ac_xml_config_cflags=$ac_cv_xml_config_cflags
13950 ac_xml_config_libs=$ac_cv_xml_config_libs
13956 # run {xml2,xml}-config based tests.
13959 for ac_prog in xml2-config xml-config
13961 # Extract the first word of "$ac_prog", so it can be a program name with args.
13962 set dummy $ac_prog; ac_word=$2
13963 echo "$as_me:$LINENO: checking for $ac_word" >&5
13964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13965 if test "${ac_cv_path_xml_config+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 case $xml_config in
13970 ac_cv_path_xml_config="$xml_config" # Let the user override the test with a path.
13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $xml_path
13977 test -z "$as_dir" && as_dir=.
13978 for ac_exec_ext in '' $ac_executable_extensions; do
13979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13980 ac_cv_path_xml_config="$as_dir/$ac_word$ac_exec_ext"
13981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13990 xml_config=$ac_cv_path_xml_config
13992 if test -n "$xml_config"; then
13993 echo "$as_me:$LINENO: result: $xml_config" >&5
13994 echo "${ECHO_T}$xml_config" >&6
13996 echo "$as_me:$LINENO: result: no" >&5
13997 echo "${ECHO_T}no" >&6
14000 test -n "$xml_config" && break
14004 # If we found the xml-config program, run it to get flags.
14006 if test -n "$xml_config" ; then
14007 echo "$as_me:$LINENO: checking for XML includes" >&5
14008 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
14009 if test "${ac_cv_xml_config_cflags+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 ac_cv_xml_config_cflags=`$xml_config --cflags`
14014 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
14015 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
14016 echo "$as_me:$LINENO: checking for XML libs" >&5
14017 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
14018 if test "${ac_cv_xml_config_libs+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 ac_cv_xml_config_libs=`$xml_config --libs`
14023 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
14024 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
14025 ac_xml_config_cflags=$ac_cv_xml_config_cflags
14026 ac_xml_config_libs=$ac_cv_xml_config_libs
14029 ac_save_xml_CPPFLAGS="$CPPFLAGS"
14030 CPPFLAGS="$CPPFLAGS $ac_xml_config_cflags"
14032 # first try <libxml/parser.h> which is the new way...
14035 ac_save_CPPFLAGS="$CPPFLAGS"
14036 if test \! -z "$includedir" ; then
14037 CPPFLAGS="$CPPFLAGS -I$includedir"
14039 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14040 echo "$as_me:$LINENO: checking for libxml/xmlIO.h" >&5
14041 echo $ECHO_N "checking for libxml/xmlIO.h... $ECHO_C" >&6
14042 if test "${ac_cv_header_libxml_xmlIO_h+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 cat >conftest.$ac_ext <<_ACEOF
14046 #line $LINENO "configure"
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 #include <libxml/parser.h>
14054 #include <libxml/xmlIO.h>
14056 rm -f conftest.$ac_objext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058 (eval $ac_compile) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } &&
14062 { ac_try='test -s conftest.$ac_objext'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 ac_cv_header_libxml_xmlIO_h=yes
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 ac_cv_header_libxml_xmlIO_h=no
14075 rm -f conftest.$ac_objext conftest.$ac_ext
14077 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_xmlIO_h" >&5
14078 echo "${ECHO_T}$ac_cv_header_libxml_xmlIO_h" >&6
14079 if test $ac_cv_header_libxml_xmlIO_h = yes; then
14084 CPPFLAGS="$ac_save_CPPFLAGS"
14086 # if that didn't work, then try just <parser.h> which is the old way...
14088 if test "$have_xml" = no; then
14090 ac_save_CPPFLAGS="$CPPFLAGS"
14091 if test \! -z "$includedir" ; then
14092 CPPFLAGS="$CPPFLAGS -I$includedir"
14094 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14095 echo "$as_me:$LINENO: checking for xmlIO.h" >&5
14096 echo $ECHO_N "checking for xmlIO.h... $ECHO_C" >&6
14097 if test "${ac_cv_header_xmlIO_h+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<_ACEOF
14101 #line $LINENO "configure"
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <parser.h>
14111 rm -f conftest.$ac_objext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14113 (eval $ac_compile) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -s conftest.$ac_objext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_header_xmlIO_h=yes
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ac_cv_header_xmlIO_h=no
14130 rm -f conftest.$ac_objext conftest.$ac_ext
14132 echo "$as_me:$LINENO: result: $ac_cv_header_xmlIO_h" >&5
14133 echo "${ECHO_T}$ac_cv_header_xmlIO_h" >&6
14134 if test $ac_cv_header_xmlIO_h = yes; then
14135 have_xml=yes; have_old_xml=yes
14139 CPPFLAGS="$ac_save_CPPFLAGS"
14142 CPPFLAGS="$ac_save_xml_CPPFLAGS"
14147 if test "$have_xml" = yes; then
14148 # we have the XML headers; now make sure zlib is around.
14149 # yes, it's stupid we have to do this too, but there is
14150 # dependency screwage in Gnome.
14152 ac_save_CPPFLAGS="$CPPFLAGS"
14153 ac_save_LDFLAGS="$LDFLAGS"
14154 # ac_save_LIBS="$LIBS"
14156 if test \! -z "$includedir" ; then
14157 CPPFLAGS="$CPPFLAGS -I$includedir"
14159 # note: $X_CFLAGS includes $x_includes
14160 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14162 if test \! -z "$libdir" ; then
14163 LDFLAGS="$LDFLAGS -L$libdir"
14165 # note: $X_LIBS includes $x_libraries
14166 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14168 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
14169 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
14170 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 ac_check_lib_save_LIBS=$LIBS
14175 cat >conftest.$ac_ext <<_ACEOF
14176 #line $LINENO "configure"
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14183 /* Override any gcc2 internal prototype to avoid an error. */
14187 /* We use char because int might match the return type of a gcc2
14188 builtin and then its argument prototype would still apply. */
14189 char zlibVersion ();
14198 rm -f conftest.$ac_objext conftest$ac_exeext
14199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14200 (eval $ac_link) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -s conftest$ac_exeext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 ac_cv_lib_z_zlibVersion=yes
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14215 ac_cv_lib_z_zlibVersion=no
14217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14218 LIBS=$ac_check_lib_save_LIBS
14220 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
14221 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
14222 if test $ac_cv_lib_z_zlibVersion = yes; then
14226 CPPFLAGS="$ac_save_CPPFLAGS"
14227 LDFLAGS="$ac_save_LDFLAGS"
14228 # LIBS="$ac_save_LIBS"
14230 if test "$have_zlib" = no; then
14236 if test "$have_xml" = yes; then
14237 # we have the header, now check for the library
14241 ac_save_CPPFLAGS="$CPPFLAGS"
14242 ac_save_LDFLAGS="$LDFLAGS"
14243 # ac_save_LIBS="$LIBS"
14245 if test \! -z "$includedir" ; then
14246 CPPFLAGS="$CPPFLAGS -I$includedir"
14248 # note: $X_CFLAGS includes $x_includes
14249 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14251 if test \! -z "$libdir" ; then
14252 LDFLAGS="$LDFLAGS -L$libdir"
14254 # note: $X_LIBS includes $x_libraries
14255 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14257 echo "$as_me:$LINENO: checking for xmlParseChunk in -lc" >&5
14258 echo $ECHO_N "checking for xmlParseChunk in -lc... $ECHO_C" >&6
14259 if test "${ac_cv_lib_c_xmlParseChunk+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 ac_check_lib_save_LIBS=$LIBS
14263 LIBS="-lc $ac_xml_config_libs $LIBS"
14264 cat >conftest.$ac_ext <<_ACEOF
14265 #line $LINENO "configure"
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14272 /* Override any gcc2 internal prototype to avoid an error. */
14276 /* We use char because int might match the return type of a gcc2
14277 builtin and then its argument prototype would still apply. */
14278 char xmlParseChunk ();
14287 rm -f conftest.$ac_objext conftest$ac_exeext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14289 (eval $ac_link) 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -s conftest$ac_exeext'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_cv_lib_c_xmlParseChunk=yes
14301 echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14304 ac_cv_lib_c_xmlParseChunk=no
14306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14307 LIBS=$ac_check_lib_save_LIBS
14309 echo "$as_me:$LINENO: result: $ac_cv_lib_c_xmlParseChunk" >&5
14310 echo "${ECHO_T}$ac_cv_lib_c_xmlParseChunk" >&6
14311 if test $ac_cv_lib_c_xmlParseChunk = yes; then
14314 XML_LIBS="$ac_xml_config_libs"
14315 cat >>confdefs.h <<\_ACEOF
14323 CPPFLAGS="$ac_save_CPPFLAGS"
14324 LDFLAGS="$ac_save_LDFLAGS"
14325 # LIBS="$ac_save_LIBS"
14329 if test "$have_xml" = yes; then
14330 INCLUDES="$INCLUDES $ac_xml_config_cflags"
14331 GTK_LIBS="$GTK_LIBS $ac_xml_config_libs"
14332 cat >>confdefs.h <<\_ACEOF
14336 if test "$have_old_xml" = yes; then
14337 cat >>confdefs.h <<\_ACEOF
14338 #define HAVE_OLD_XML_HEADERS 1
14347 ###############################################################################
14349 # Checking whether Motif is really Lesstif.
14351 ###############################################################################
14354 if test "$have_motif" = yes ; then
14355 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
14356 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
14357 if test "${ac_cv_have_lesstif+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 ac_save_CPPFLAGS="$CPPFLAGS"
14362 if test \! -z "$includedir" ; then
14363 CPPFLAGS="$CPPFLAGS -I$includedir"
14365 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14366 cat >conftest.$ac_ext <<_ACEOF
14367 #line $LINENO "configure"
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14377 long vers = LesstifVersion;
14382 rm -f conftest.$ac_objext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 ac_cv_have_lesstif=yes
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 ac_cv_have_lesstif=no
14401 rm -f conftest.$ac_objext conftest.$ac_ext
14402 CPPFLAGS="$ac_save_CPPFLAGS"
14404 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
14405 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
14406 have_lesstif=$ac_cv_have_lesstif
14410 lesstif_version=unknown
14411 lesstif_version_string=unknown
14413 if test "$have_lesstif" = yes ; then
14415 echo unknown > conftest-lt
14416 echo "$as_me:$LINENO: checking LessTif version number" >&5
14417 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
14418 if test "${ac_cv_lesstif_version_string+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 ac_save_CPPFLAGS="$CPPFLAGS"
14423 if test \! -z "$includedir" ; then
14424 CPPFLAGS="$CPPFLAGS -I$includedir"
14426 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14427 if test "$cross_compiling" = yes; then
14428 ac_cv_lesstif_version=unknown
14429 ac_cv_lesstif_version_string=unknown
14431 cat >conftest.$ac_ext <<_ACEOF
14432 #line $LINENO "configure"
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14441 FILE *f = fopen("conftest-lt", "w");
14443 fprintf(f, "%d %d.%d\n", LesstifVersion,
14444 LESSTIF_VERSION, LESSTIF_REVISION);
14449 rm -f conftest$ac_exeext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451 (eval $ac_link) 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ltv=`cat conftest-lt`
14461 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
14462 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
14464 echo "$as_me: program exited with status $ac_status" >&5
14465 echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14468 ( exit $ac_status )
14469 ac_cv_lesstif_version=unknown
14470 ac_cv_lesstif_version_string=unknown
14472 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14474 CPPFLAGS="$ac_save_CPPFLAGS"
14476 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
14477 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
14479 lesstif_version=$ac_cv_lesstif_version
14480 lesstif_version_string=$ac_cv_lesstif_version_string
14485 if test "$have_motif" = yes ; then
14487 echo unknown > conftest-mt
14488 echo "$as_me:$LINENO: checking Motif version number" >&5
14489 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
14490 if test "${ac_cv_motif_version_string+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 ac_save_CPPFLAGS="$CPPFLAGS"
14495 if test \! -z "$includedir" ; then
14496 CPPFLAGS="$CPPFLAGS -I$includedir"
14498 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14499 if test "$cross_compiling" = yes; then
14500 ac_cv_motif_version=unknown
14501 ac_cv_motif_version_string=unknown
14503 cat >conftest.$ac_ext <<_ACEOF
14504 #line $LINENO "configure"
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14513 FILE *f = fopen("conftest-mt", "w");
14515 fprintf(f, "%d %d.%d\n", XmVersion,
14516 XmVERSION, XmREVISION);
14521 rm -f conftest$ac_exeext
14522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14523 (eval $ac_link) 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 mtv=`cat conftest-mt`
14533 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
14534 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
14536 echo "$as_me: program exited with status $ac_status" >&5
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ( exit $ac_status )
14541 ac_cv_motif_version=unknown
14542 ac_cv_motif_version_string=unknown
14544 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14546 CPPFLAGS="$ac_save_CPPFLAGS"
14548 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
14549 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
14551 motif_version=$ac_cv_motif_version
14552 motif_version_string=$ac_cv_motif_version_string
14557 ###############################################################################
14559 # Checking whether Motif requires -lXpm.
14561 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
14562 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
14563 # of the library whether to build the XPM code into libXm, or whether
14564 # to rely on an external libXm. So the only way to tell whether XPM is
14565 # a link-time requirement is to examine libXm.a, which is very
14566 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
14567 # always link against XPM if the XPM lib exists (and this will be a
14568 # no-op if libXm happens to already have the XPM code in it.)
14570 ###############################################################################
14572 motif_requires_xpm=no
14573 if test "$have_motif" = yes ; then
14574 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
14575 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
14576 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
14578 motif_requires_xpm=yes
14579 echo "$as_me:$LINENO: result: maybe" >&5
14580 echo "${ECHO_T}maybe" >&6
14582 echo "$as_me:$LINENO: result: no" >&5
14583 echo "${ECHO_T}no" >&6
14588 ###############################################################################
14590 # Checking whether Motif requires -lXp.
14592 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
14593 # Extension". Why this extension isn't in -lXext with all the others,
14596 ###############################################################################
14599 if test "$have_motif" = yes ; then
14602 ac_save_CPPFLAGS="$CPPFLAGS"
14603 ac_save_LDFLAGS="$LDFLAGS"
14604 # ac_save_LIBS="$LIBS"
14606 if test \! -z "$includedir" ; then
14607 CPPFLAGS="$CPPFLAGS -I$includedir"
14609 # note: $X_CFLAGS includes $x_includes
14610 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14612 if test \! -z "$libdir" ; then
14613 LDFLAGS="$LDFLAGS -L$libdir"
14615 # note: $X_LIBS includes $x_libraries
14616 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14618 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
14619 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
14620 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14623 ac_check_lib_save_LIBS=$LIBS
14624 LIBS="-lXp -lX11 -lXext -lm $LIBS"
14625 cat >conftest.$ac_ext <<_ACEOF
14626 #line $LINENO "configure"
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14633 /* Override any gcc2 internal prototype to avoid an error. */
14637 /* We use char because int might match the return type of a gcc2
14638 builtin and then its argument prototype would still apply. */
14639 char XpQueryExtension ();
14643 XpQueryExtension ();
14648 rm -f conftest.$ac_objext conftest$ac_exeext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14650 (eval $ac_link) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try='test -s conftest$ac_exeext'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_cv_lib_Xp_XpQueryExtension=yes
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 ac_cv_lib_Xp_XpQueryExtension=no
14667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14668 LIBS=$ac_check_lib_save_LIBS
14670 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
14671 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
14672 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
14673 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
14678 CPPFLAGS="$ac_save_CPPFLAGS"
14679 LDFLAGS="$ac_save_LDFLAGS"
14680 # LIBS="$ac_save_LIBS"
14685 ###############################################################################
14687 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
14689 ###############################################################################
14692 if test "$have_motif" = yes ; then
14694 ac_save_CPPFLAGS="$CPPFLAGS"
14695 ac_save_LDFLAGS="$LDFLAGS"
14696 # ac_save_LIBS="$LIBS"
14698 if test \! -z "$includedir" ; then
14699 CPPFLAGS="$CPPFLAGS -I$includedir"
14701 # note: $X_CFLAGS includes $x_includes
14702 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14704 if test \! -z "$libdir" ; then
14705 LDFLAGS="$LDFLAGS -L$libdir"
14707 # note: $X_LIBS includes $x_libraries
14708 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14710 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
14711 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
14712 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 ac_check_lib_save_LIBS=$LIBS
14716 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
14717 cat >conftest.$ac_ext <<_ACEOF
14718 #line $LINENO "configure"
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14725 /* Override any gcc2 internal prototype to avoid an error. */
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14731 char _Xsetlocale ();
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_cv_lib_Xintl__Xsetlocale=yes
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 ac_cv_lib_Xintl__Xsetlocale=no
14759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14760 LIBS=$ac_check_lib_save_LIBS
14762 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
14763 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
14764 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
14770 CPPFLAGS="$ac_save_CPPFLAGS"
14771 LDFLAGS="$ac_save_LDFLAGS"
14772 # LIBS="$ac_save_LIBS"
14774 if test "$have_xintl" = yes; then
14775 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
14780 ###############################################################################
14782 # Check for -lGL or -lMesaGL.
14784 ###############################################################################
14788 with_gl_req=unspecified
14791 # Check whether --with-gl or --without-gl was given.
14792 if test "${with_gl+set}" = set; then
14794 with_gl="$withval"; with_gl_req="$withval"
14805 echo "$as_me:$LINENO: checking for GL headers" >&5
14806 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
14808 if test -d $d; then
14809 X_CFLAGS="-I$d $X_CFLAGS"
14810 echo "$as_me:$LINENO: result: $d" >&5
14811 echo "${ECHO_T}$d" >&6
14813 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14814 echo "${ECHO_T}not found ($d: no such directory)" >&6
14817 echo "$as_me:$LINENO: checking for GL libs" >&5
14818 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
14820 if test -d $d; then
14821 X_LIBS="-L$d $X_LIBS"
14822 echo "$as_me:$LINENO: result: $d" >&5
14823 echo "${ECHO_T}$d" >&6
14825 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14826 echo "${ECHO_T}not found ($d: no such directory)" >&6
14829 # replace the directory string with "yes".
14831 with_gl=$with_gl_req
14836 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
14837 echo " If it is a directory, then \`DIR/include' will be added to"
14838 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14844 ac_mesagl_version=unknown
14845 ac_mesagl_version_string=unknown
14847 if test "$with_gl" = yes; then
14849 ac_save_CPPFLAGS="$CPPFLAGS"
14850 if test \! -z "$includedir" ; then
14851 CPPFLAGS="$CPPFLAGS -I$includedir"
14853 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14854 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14855 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
14856 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
14857 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
14861 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
14863 # Is the header compilable?
14864 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
14865 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
14866 cat >conftest.$ac_ext <<_ACEOF
14867 #line $LINENO "configure"
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 $ac_includes_default
14876 rm -f conftest.$ac_objext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14878 (eval $ac_compile) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } &&
14882 { ac_try='test -s conftest.$ac_objext'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_header_compiler=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_header_compiler=no
14895 rm -f conftest.$ac_objext conftest.$ac_ext
14896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14897 echo "${ECHO_T}$ac_header_compiler" >&6
14899 # Is the header present?
14900 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
14901 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
14902 cat >conftest.$ac_ext <<_ACEOF
14903 #line $LINENO "configure"
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14914 grep -v '^ *+' conftest.er1 >conftest.err
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } >/dev/null; then
14919 if test -s conftest.err; then
14920 ac_cpp_err=$ac_c_preproc_warn_flag
14927 if test -z "$ac_cpp_err"; then
14928 ac_header_preproc=yes
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 ac_header_preproc=no
14935 rm -f conftest.err conftest.$ac_ext
14936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14937 echo "${ECHO_T}$ac_header_preproc" >&6
14939 # So? What about this header?
14940 case $ac_header_compiler:$ac_header_preproc in
14942 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14943 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
14945 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
14948 ## ------------------------------------ ##
14949 ## Report this to bug-autoconf@gnu.org. ##
14950 ## ------------------------------------ ##
14953 sed "s/^/$as_me: WARNING: /" >&2
14956 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
14957 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
14959 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
14961 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
14964 ## ------------------------------------ ##
14965 ## Report this to bug-autoconf@gnu.org. ##
14966 ## ------------------------------------ ##
14969 sed "s/^/$as_me: WARNING: /" >&2
14972 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
14973 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
14974 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 ac_cv_header_GL_gl_h=$ac_header_preproc
14979 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
14980 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
14983 if test $ac_cv_header_GL_gl_h = yes; then
14990 CPPFLAGS="$ac_save_CPPFLAGS"
14991 if test "$have_gl" = yes ; then
14993 ac_save_CPPFLAGS="$CPPFLAGS"
14994 if test \! -z "$includedir" ; then
14995 CPPFLAGS="$CPPFLAGS -I$includedir"
14997 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14998 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
14999 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
15000 if test "${ac_cv_header_GL_glx_h+set}" = set; then
15001 echo $ECHO_N "(cached) $ECHO_C" >&6
15003 cat >conftest.$ac_ext <<_ACEOF
15004 #line $LINENO "configure"
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15012 #include <GL/glx.h>
15014 rm -f conftest.$ac_objext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15016 (eval $ac_compile) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -s conftest.$ac_objext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_header_GL_glx_h=yes
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_cv_header_GL_glx_h=no
15033 rm -f conftest.$ac_objext conftest.$ac_ext
15035 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
15036 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
15037 if test $ac_cv_header_GL_glx_h = yes; then
15044 CPPFLAGS="$ac_save_CPPFLAGS"
15047 # If we have the headers, try and figure out which vendor it's from.
15049 if test "$have_gl" = yes ; then
15051 # We need to know whether it's MesaGL so that we know which libraries
15054 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
15055 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
15056 if test "${ac_cv_have_mesa_gl+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 ac_cv_have_mesa_gl=no
15061 ac_save_CPPFLAGS="$CPPFLAGS"
15062 if test \! -z "$includedir" ; then
15063 CPPFLAGS="$CPPFLAGS -I$includedir"
15065 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15066 cat >conftest.$ac_ext <<_ACEOF
15067 #line $LINENO "configure"
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 #include <GL/glx.h>
15076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15077 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
15078 ac_cv_have_mesa_gl=yes
15082 CPPFLAGS="$ac_save_CPPFLAGS"
15085 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
15086 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
15087 ac_have_mesa_gl=$ac_cv_have_mesa_gl
15094 # Some versions of MesaGL are compiled to require -lpthread.
15095 # So if the Mesa headers exist, and -lpthread exists, then always
15096 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
15098 if test "$ac_have_mesa_gl" = yes; then
15099 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15100 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
15101 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 ac_check_lib_save_LIBS=$LIBS
15105 LIBS="-lpthread $LIBS"
15106 cat >conftest.$ac_ext <<_ACEOF
15107 #line $LINENO "configure"
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15114 /* Override any gcc2 internal prototype to avoid an error. */
15118 /* We use char because int might match the return type of a gcc2
15119 builtin and then its argument prototype would still apply. */
15120 char pthread_create ();
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15131 (eval $ac_link) 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try='test -s conftest$ac_exeext'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15141 ac_cv_lib_pthread_pthread_create=yes
15143 echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 ac_cv_lib_pthread_pthread_create=no
15148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15149 LIBS=$ac_check_lib_save_LIBS
15151 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
15152 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
15153 if test $ac_cv_lib_pthread_pthread_create = yes; then
15154 GL_LIBS="-lpthread"
15160 # If we have Mesa headers, check to see if we can link against -lMesaGL.
15161 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
15162 # Else, warn that GL is busted. (We have the headers, but no libs.)
15165 if test "$ac_have_mesa_gl" = yes ; then
15167 ac_save_CPPFLAGS="$CPPFLAGS"
15168 ac_save_LDFLAGS="$LDFLAGS"
15169 # ac_save_LIBS="$LIBS"
15171 if test \! -z "$includedir" ; then
15172 CPPFLAGS="$CPPFLAGS -I$includedir"
15174 # note: $X_CFLAGS includes $x_includes
15175 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15177 if test \! -z "$libdir" ; then
15178 LDFLAGS="$LDFLAGS -L$libdir"
15180 # note: $X_LIBS includes $x_libraries
15181 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15183 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
15184 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
15185 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 ac_check_lib_save_LIBS=$LIBS
15189 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
15190 cat >conftest.$ac_ext <<_ACEOF
15191 #line $LINENO "configure"
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15198 /* Override any gcc2 internal prototype to avoid an error. */
15202 /* We use char because int might match the return type of a gcc2
15203 builtin and then its argument prototype would still apply. */
15204 char glXCreateContext ();
15208 glXCreateContext ();
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15215 (eval $ac_link) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -s conftest$ac_exeext'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15225 ac_cv_lib_MesaGL_glXCreateContext=yes
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 ac_cv_lib_MesaGL_glXCreateContext=no
15232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15233 LIBS=$ac_check_lib_save_LIBS
15235 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
15236 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
15237 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
15239 GL_LIBS="-lMesaGL -lMesaGLU $GL_LIBS"
15242 CPPFLAGS="$ac_save_CPPFLAGS"
15243 LDFLAGS="$ac_save_LDFLAGS"
15244 # LIBS="$ac_save_LIBS"
15248 if test "$gl_lib_1" = "" ; then
15250 ac_save_CPPFLAGS="$CPPFLAGS"
15251 ac_save_LDFLAGS="$LDFLAGS"
15252 # ac_save_LIBS="$LIBS"
15254 if test \! -z "$includedir" ; then
15255 CPPFLAGS="$CPPFLAGS -I$includedir"
15257 # note: $X_CFLAGS includes $x_includes
15258 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15260 if test \! -z "$libdir" ; then
15261 LDFLAGS="$LDFLAGS -L$libdir"
15263 # note: $X_LIBS includes $x_libraries
15264 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15266 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
15267 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
15268 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
15273 cat >conftest.$ac_ext <<_ACEOF
15274 #line $LINENO "configure"
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15281 /* Override any gcc2 internal prototype to avoid an error. */
15285 /* We use char because int might match the return type of a gcc2
15286 builtin and then its argument prototype would still apply. */
15287 char glXCreateContext ();
15291 glXCreateContext ();
15296 rm -f conftest.$ac_objext conftest$ac_exeext
15297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15298 (eval $ac_link) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } &&
15302 { ac_try='test -s conftest$ac_exeext'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_cv_lib_GL_glXCreateContext=yes
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_cv_lib_GL_glXCreateContext=no
15315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15316 LIBS=$ac_check_lib_save_LIBS
15318 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
15319 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
15320 if test $ac_cv_lib_GL_glXCreateContext = yes; then
15322 GL_LIBS="-lGL -lGLU $GL_LIBS"
15325 CPPFLAGS="$ac_save_CPPFLAGS"
15326 LDFLAGS="$ac_save_LDFLAGS"
15327 # LIBS="$ac_save_LIBS"
15331 if test "$gl_lib_1" = "" ; then
15332 # we have headers, but no libs -- bail.
15337 # linking works -- we can build the GL hacks.
15338 cat >>confdefs.h <<\_ACEOF
15342 if test "$ac_have_mesa_gl" = yes ; then
15343 cat >>confdefs.h <<\_ACEOF
15344 #define HAVE_MESA_GL 1
15352 # Now that we know we have GL headers and libs, do some more GL testing.
15355 if test "$have_gl" = yes ; then
15356 # If it's MesaGL, we'd like to issue a warning if the version number
15357 # is less than or equal to 2.6, because that version had a security bug.
15359 if test "$ac_have_mesa_gl" = yes; then
15361 echo "$as_me:$LINENO: checking MesaGL version number" >&5
15362 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
15363 if test "${ac_cv_mesagl_version_string+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 cat > conftest.$ac_ext <<EOF
15367 #line 15373 "configure"
15368 #include "confdefs.h"
15370 #ifndef MESA_MAJOR_VERSION
15371 # include <GL/xmesa.h>
15372 # ifdef XMESA_MAJOR_VERSION
15373 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
15374 we have to check the XMesa version number (the number of the X protocol
15375 support, which seems to be the same as the Mesa version number.)
15377 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
15378 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
15380 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
15381 so we have no way of telling what version of Mesa this is at all.
15382 So, we'll guess that the osmesa version (the "offscreen protocol")
15383 is less than or equal to the real mesa version number. Except that
15384 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
15385 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
15387 # include <GL/osmesa.h>
15388 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
15389 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
15390 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
15391 # undef MESA_MINOR_VERSION
15392 # define MESA_MINOR_VERSION 4 or newer, probably?
15396 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
15399 ac_save_CPPFLAGS="$CPPFLAGS"
15400 if test \! -z "$includedir" ; then
15401 CPPFLAGS="$CPPFLAGS -I$includedir"
15403 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15405 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
15409 mglv=`echo "$mglv" | sed -n \
15410 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
15413 rm -f conftest.$ac_ext
15415 CPPFLAGS="$ac_save_CPPFLAGS"
15417 if test "$mglv" = ""; then
15418 ac_mesagl_version=unknown
15419 ac_mesagl_version_string=unknown
15421 ac_mesagl_version_string="$mglv"
15424 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
15425 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
15427 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
15428 if test -z "$ac_mesagl_version"; then
15429 ac_mesagl_version=unknown
15430 ac_mesagl_version_string=unknown
15433 ac_cv_mesagl_version=$ac_mesagl_version
15434 ac_cv_mesagl_version_string=$ac_mesagl_version_string
15437 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
15438 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
15439 ac_mesagl_version=$ac_cv_mesagl_version
15440 ac_mesagl_version_string=$ac_cv_mesagl_version_string
15444 # Check for OpenGL 1.1 features.
15447 ac_save_CPPFLAGS="$CPPFLAGS"
15448 ac_save_LDFLAGS="$LDFLAGS"
15449 # ac_save_LIBS="$LIBS"
15451 if test \! -z "$includedir" ; then
15452 CPPFLAGS="$CPPFLAGS -I$includedir"
15454 # note: $X_CFLAGS includes $x_includes
15455 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15457 if test \! -z "$libdir" ; then
15458 LDFLAGS="$LDFLAGS -L$libdir"
15460 # note: $X_LIBS includes $x_libraries
15461 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15463 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
15464 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
15465 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
15466 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 ac_check_lib_save_LIBS=$LIBS
15470 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
15471 cat >conftest.$ac_ext <<_ACEOF
15472 #line $LINENO "configure"
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15479 /* Override any gcc2 internal prototype to avoid an error. */
15483 /* We use char because int might match the return type of a gcc2
15484 builtin and then its argument prototype would still apply. */
15485 char glBindTexture ();
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15496 (eval $ac_link) 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -s conftest$ac_exeext'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 eval "$as_ac_Lib=yes"
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 eval "$as_ac_Lib=no"
15513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15514 LIBS=$ac_check_lib_save_LIBS
15516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15517 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15518 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15519 cat >>confdefs.h <<\_ACEOF
15520 #define HAVE_GLBINDTEXTURE 1
15527 CPPFLAGS="$ac_save_CPPFLAGS"
15528 LDFLAGS="$ac_save_LDFLAGS"
15529 # LIBS="$ac_save_LIBS"
15533 elif test "$with_gl" != no; then
15534 echo "error: must be yes or no: --with-gl=$with_gl"
15539 ###############################################################################
15543 ###############################################################################
15546 with_gle_req=unspecified
15549 # Check whether --with-gle or --without-gle was given.
15550 if test "${with_gle+set}" = set; then
15551 withval="$with_gle"
15552 with_gle="$withval"; with_gle_req="$withval"
15558 case "$with_gle" in
15563 echo "$as_me:$LINENO: checking for GLE headers" >&5
15564 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
15565 d=$with_gle/include
15566 if test -d $d; then
15567 X_CFLAGS="-I$d $X_CFLAGS"
15568 echo "$as_me:$LINENO: result: $d" >&5
15569 echo "${ECHO_T}$d" >&6
15571 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15572 echo "${ECHO_T}not found ($d: no such directory)" >&6
15575 echo "$as_me:$LINENO: checking for GLE libs" >&5
15576 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
15578 if test -d $d; then
15579 X_LIBS="-L$d $X_LIBS"
15580 echo "$as_me:$LINENO: result: $d" >&5
15581 echo "${ECHO_T}$d" >&6
15583 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15584 echo "${ECHO_T}not found ($d: no such directory)" >&6
15587 # replace the directory string with "yes".
15589 with_gle=$with_gle_req
15594 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
15595 echo " If it is a directory, then \`DIR/include' will be added to"
15596 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15604 if test "$have_gl" = no ; then
15606 elif test "$with_gle" = yes; then
15609 ac_save_CPPFLAGS="$CPPFLAGS"
15610 if test \! -z "$includedir" ; then
15611 CPPFLAGS="$CPPFLAGS -I$includedir"
15613 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15614 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
15615 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
15616 if test "${ac_cv_header_GL_gle_h+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 cat >conftest.$ac_ext <<_ACEOF
15620 #line $LINENO "configure"
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15628 #include <GL/gle.h>
15630 rm -f conftest.$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -s conftest.$ac_objext'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 ac_cv_header_GL_gle_h=yes
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 ac_cv_header_GL_gle_h=no
15649 rm -f conftest.$ac_objext conftest.$ac_ext
15651 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
15652 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
15653 if test $ac_cv_header_GL_gle_h = yes; then
15660 CPPFLAGS="$ac_save_CPPFLAGS"
15661 if test "$have_gle3" = yes ; then
15665 ac_save_CPPFLAGS="$CPPFLAGS"
15666 if test \! -z "$includedir" ; then
15667 CPPFLAGS="$CPPFLAGS -I$includedir"
15669 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15670 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
15671 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
15672 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 cat >conftest.$ac_ext <<_ACEOF
15676 #line $LINENO "configure"
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15684 #include <GL/gutil.h>
15686 rm -f conftest.$ac_objext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15688 (eval $ac_compile) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_cv_header_GL_gutil_h=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 ac_cv_header_GL_gutil_h=no
15705 rm -f conftest.$ac_objext conftest.$ac_ext
15707 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
15708 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
15709 if test $ac_cv_header_GL_gutil_h = yes; then
15716 CPPFLAGS="$ac_save_CPPFLAGS"
15717 if test "$have_gle" = yes ; then
15719 ac_save_CPPFLAGS="$CPPFLAGS"
15720 if test \! -z "$includedir" ; then
15721 CPPFLAGS="$CPPFLAGS -I$includedir"
15723 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15724 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
15725 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
15726 if test "${ac_cv_header_GL_tube_h+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 cat >conftest.$ac_ext <<_ACEOF
15730 #line $LINENO "configure"
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15738 #include <GL/tube.h>
15740 rm -f conftest.$ac_objext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15742 (eval $ac_compile) 2>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try='test -s conftest.$ac_objext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_cv_header_GL_tube_h=yes
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 ac_cv_header_GL_tube_h=no
15759 rm -f conftest.$ac_objext conftest.$ac_ext
15761 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
15762 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
15763 if test $ac_cv_header_GL_tube_h = yes; then
15770 CPPFLAGS="$ac_save_CPPFLAGS"
15774 if test "$have_gle" = yes ; then
15778 ac_save_CPPFLAGS="$CPPFLAGS"
15779 ac_save_LDFLAGS="$LDFLAGS"
15780 # ac_save_LIBS="$LIBS"
15782 if test \! -z "$includedir" ; then
15783 CPPFLAGS="$CPPFLAGS -I$includedir"
15785 # note: $X_CFLAGS includes $x_includes
15786 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15788 if test \! -z "$libdir" ; then
15789 LDFLAGS="$LDFLAGS -L$libdir"
15791 # note: $X_LIBS includes $x_libraries
15792 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15794 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
15795 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
15796 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 ac_check_lib_save_LIBS=$LIBS
15800 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
15801 cat >conftest.$ac_ext <<_ACEOF
15802 #line $LINENO "configure"
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15809 /* Override any gcc2 internal prototype to avoid an error. */
15813 /* We use char because int might match the return type of a gcc2
15814 builtin and then its argument prototype would still apply. */
15815 char gleCreateGC ();
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15826 (eval $ac_link) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -s conftest$ac_exeext'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_cv_lib_gle_gleCreateGC=yes
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_cv_lib_gle_gleCreateGC=no
15843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15844 LIBS=$ac_check_lib_save_LIBS
15846 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
15847 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
15848 if test $ac_cv_lib_gle_gleCreateGC = yes; then
15849 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
15852 CPPFLAGS="$ac_save_CPPFLAGS"
15853 LDFLAGS="$ac_save_LDFLAGS"
15854 # LIBS="$ac_save_LIBS"
15857 if test "$have_gle" = yes ; then
15861 # sometimes the libmatrix stuff is included in libgle. look there first.
15863 # I don't get it. For some reason, this test passes on SGI, as if
15864 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
15865 # Yet the link is succeeding. Why???
15867 # AC_CHECK_X_LIB(gle, uview_direction_d,
15868 # [have_gle=yes; gle_halfassed=no],
15869 # [], $GL_LIBS -lX11 -lXext -lm)
15871 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
15873 if test "$have_gle3" = yes ; then
15875 ac_save_CPPFLAGS="$CPPFLAGS"
15876 ac_save_LDFLAGS="$LDFLAGS"
15877 # ac_save_LIBS="$LIBS"
15879 if test \! -z "$includedir" ; then
15880 CPPFLAGS="$CPPFLAGS -I$includedir"
15882 # note: $X_CFLAGS includes $x_includes
15883 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15885 if test \! -z "$libdir" ; then
15886 LDFLAGS="$LDFLAGS -L$libdir"
15888 # note: $X_LIBS includes $x_libraries
15889 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15891 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
15892 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
15893 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 ac_check_lib_save_LIBS=$LIBS
15897 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
15898 cat >conftest.$ac_ext <<_ACEOF
15899 #line $LINENO "configure"
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15906 /* Override any gcc2 internal prototype to avoid an error. */
15910 /* We use char because int might match the return type of a gcc2
15911 builtin and then its argument prototype would still apply. */
15912 char uview_direction ();
15916 uview_direction ();
15921 rm -f conftest.$ac_objext conftest$ac_exeext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15923 (eval $ac_link) 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -s conftest$ac_exeext'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 ac_cv_lib_gle_uview_direction=yes
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 ac_cv_lib_gle_uview_direction=no
15940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15941 LIBS=$ac_check_lib_save_LIBS
15943 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
15944 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
15945 if test $ac_cv_lib_gle_uview_direction = yes; then
15946 have_gle=yes; gle_halfassed=no
15949 CPPFLAGS="$ac_save_CPPFLAGS"
15950 LDFLAGS="$ac_save_LDFLAGS"
15951 # LIBS="$ac_save_LIBS"
15954 # if it wasn't in libgle, then look in libmatrix.
15955 if test "$have_gle" = no ; then
15957 ac_save_CPPFLAGS="$CPPFLAGS"
15958 ac_save_LDFLAGS="$LDFLAGS"
15959 # ac_save_LIBS="$LIBS"
15961 if test \! -z "$includedir" ; then
15962 CPPFLAGS="$CPPFLAGS -I$includedir"
15964 # note: $X_CFLAGS includes $x_includes
15965 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15967 if test \! -z "$libdir" ; then
15968 LDFLAGS="$LDFLAGS -L$libdir"
15970 # note: $X_LIBS includes $x_libraries
15971 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15973 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
15974 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
15975 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 ac_check_lib_save_LIBS=$LIBS
15979 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
15980 cat >conftest.$ac_ext <<_ACEOF
15981 #line $LINENO "configure"
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15988 /* Override any gcc2 internal prototype to avoid an error. */
15992 /* We use char because int might match the return type of a gcc2
15993 builtin and then its argument prototype would still apply. */
15994 char uview_direction_d ();
15998 uview_direction_d ();
16003 rm -f conftest.$ac_objext conftest$ac_exeext
16004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16005 (eval $ac_link) 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
16009 { ac_try='test -s conftest$ac_exeext'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_cv_lib_matrix_uview_direction_d=yes
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_cv_lib_matrix_uview_direction_d=no
16022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16023 LIBS=$ac_check_lib_save_LIBS
16025 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
16026 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
16027 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
16028 have_gle=yes; gle_halfassed=no;
16029 GLE_LIBS="$GLE_LIBS -lmatrix"
16032 CPPFLAGS="$ac_save_CPPFLAGS"
16033 LDFLAGS="$ac_save_LDFLAGS"
16034 # LIBS="$ac_save_LIBS"
16039 if test "$have_gle" = yes ; then
16040 cat >>confdefs.h <<\_ACEOF
16044 if test "$have_gle3" = yes ; then
16045 cat >>confdefs.h <<\_ACEOF
16046 #define HAVE_GLE3 1
16052 elif test "$with_gle" != no; then
16053 echo "error: must be yes or no: --with-gle=$with_gle"
16060 ###############################################################################
16064 ###############################################################################
16067 with_xpm_req=unspecified
16069 # Check whether --with-xpm or --without-xpm was given.
16070 if test "${with_xpm+set}" = set; then
16071 withval="$with_xpm"
16072 with_xpm="$withval"; with_xpm_req="$withval"
16078 case "$with_xpm" in
16083 echo "$as_me:$LINENO: checking for XPM headers" >&5
16084 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
16085 d=$with_xpm/include
16086 if test -d $d; then
16087 X_CFLAGS="-I$d $X_CFLAGS"
16088 echo "$as_me:$LINENO: result: $d" >&5
16089 echo "${ECHO_T}$d" >&6
16091 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16092 echo "${ECHO_T}not found ($d: no such directory)" >&6
16095 echo "$as_me:$LINENO: checking for XPM libs" >&5
16096 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
16098 if test -d $d; then
16099 X_LIBS="-L$d $X_LIBS"
16100 echo "$as_me:$LINENO: result: $d" >&5
16101 echo "${ECHO_T}$d" >&6
16103 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16104 echo "${ECHO_T}not found ($d: no such directory)" >&6
16107 # replace the directory string with "yes".
16109 with_xpm=$with_xpm_req
16114 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
16115 echo " If it is a directory, then \`DIR/include' will be added to"
16116 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16122 if test "$with_xpm" = yes; then
16124 ac_save_CPPFLAGS="$CPPFLAGS"
16125 if test \! -z "$includedir" ; then
16126 CPPFLAGS="$CPPFLAGS -I$includedir"
16128 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16129 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
16130 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
16131 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 cat >conftest.$ac_ext <<_ACEOF
16135 #line $LINENO "configure"
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 #include <X11/Xlib.h>
16143 #include <X11/xpm.h>
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -s conftest.$ac_objext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_cv_header_X11_xpm_h=yes
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_cv_header_X11_xpm_h=no
16164 rm -f conftest.$ac_objext conftest.$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
16167 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
16168 if test $ac_cv_header_X11_xpm_h = yes; then
16170 cat >>confdefs.h <<\_ACEOF
16178 CPPFLAGS="$ac_save_CPPFLAGS"
16179 elif test "$with_xpm" != no; then
16180 echo "error: must be yes or no: --with-xpm=$with_xpm"
16184 # See comment near $motif_requires_xpm, above.
16185 # Need to do this here, after both Motif and XPM have been checked for.
16187 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
16188 if test "$motif_requires_xpm" = yes ; then
16189 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
16193 ###############################################################################
16195 # Check for -lgdk_pixbuf.
16197 ###############################################################################
16200 with_gdk_pixbuf_req=unspecified
16202 # Check whether --with-pixbuf or --without-pixbuf was given.
16203 if test "${with_pixbuf+set}" = set; then
16204 withval="$with_pixbuf"
16205 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
16207 with_gdk_pixbuf=yes
16210 # if --with-pixbuf=/directory/ was specified, remember that directory so that
16211 # we can also look for the `gdk-pixbuf-config' program in that directory.
16212 case "$with_gdk_pixbuf" in
16214 gdk_pixbuf_dir="$with_gdk_pixbuf"
16222 case "$with_gdk_pixbuf" in
16227 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
16228 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
16229 d=$with_gdk_pixbuf/include
16230 if test -d $d; then
16231 X_CFLAGS="-I$d $X_CFLAGS"
16232 echo "$as_me:$LINENO: result: $d" >&5
16233 echo "${ECHO_T}$d" >&6
16235 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16236 echo "${ECHO_T}not found ($d: no such directory)" >&6
16239 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
16240 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
16241 d=$with_gdk_pixbuf/lib
16242 if test -d $d; then
16243 X_LIBS="-L$d $X_LIBS"
16244 echo "$as_me:$LINENO: result: $d" >&5
16245 echo "${ECHO_T}$d" >&6
16247 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16248 echo "${ECHO_T}not found ($d: no such directory)" >&6
16251 # replace the directory string with "yes".
16252 with_gdk_pixbuf_req="yes"
16253 with_gdk_pixbuf=$with_gdk_pixbuf_req
16258 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
16259 echo " If it is a directory, then \`DIR/include' will be added to"
16260 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16266 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
16267 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
16271 if test "$with_gdk_pixbuf" = yes; then
16273 have_gdk_pixbuf2=no
16275 if test -n "$pkg_config" ; then
16278 # run pkg-config based tests.
16283 # If we have Gtk 2.x, then *only* gdk-pixbuf 2.x will work.
16284 # If we have Gtk 1.x, then *only* gdk-pixbuf 1.x will work.
16285 # If we don't have Gtk at all, then either will work.
16287 if test "$have_gtk" = no -o "$have_gtk2" = yes; then
16289 # we don't have Gtk; or we have Gtk 2.x. Check for pixbuf 2.x.
16291 echo "$as_me:$LINENO: result: checking for gdk_pixbuf 2.x with gtk-config based tests..." >&5
16292 echo "${ECHO_T}checking for gdk_pixbuf 2.x with gtk-config based tests..." >&6
16293 pkg_check_version gdk-pixbuf-2.0 2.0.0
16294 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
16295 have_gdk_pixbuf="$ok"
16296 have_gdk_pixbuf2="$ok"
16299 if test "$have_gtk" = no -o "$have_gtk2" = no; then
16301 # we don't have Gtk; or we have Gtk 1.x.
16302 # If we don't have pixbuf 2.x, then check for pixbuf 1.x.
16304 if test "$have_gdk_pixbuf2" = no; then
16307 echo "$as_me:$LINENO: result: checking for gdk_pixbuf 1.x with gtk-config based tests..." >&5
16308 echo "${ECHO_T}checking for gdk_pixbuf 1.x with gtk-config based tests..." >&6
16309 pkg_check_version gdk_pixbuf 0.0
16310 pkg_check_version gdk_pixbuf_xlib 0.0
16311 have_gdk_pixbuf="$ok"
16315 if test "$have_gdk_pixbuf" = yes; then
16316 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
16317 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
16318 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
16323 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
16324 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
16325 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
16326 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
16327 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
16332 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
16333 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
16335 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
16336 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
16340 if test "$have_gdk_pixbuf" = no; then
16343 # run gdk-pixbuf-config based tests.
16344 # note that we can't assume that the existence of "pkg-config" means
16345 # that we don't have to look for gdk-pixbuf-config -- in Gnome 1.4,
16346 # pkg-config exists, but doesn't know about pixbuf.
16349 echo "$as_me:$LINENO: result: checking for gdk_pixbuf with gdk-pixbuf-config based tests..." >&5
16350 echo "${ECHO_T}checking for gdk_pixbuf with gdk-pixbuf-config based tests..." >&6
16352 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
16353 # look in /foo/bin/ for for gdk-pixbuf-config.
16355 gdk_pixbuf_path="$PATH"
16357 if test ! -z "$gtk_dir"; then
16358 # canonicalize slashes.
16359 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
16360 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
16363 if test ! -z "$gnome_dir"; then
16364 # canonicalize slashes.
16365 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
16366 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
16369 for ac_prog in gdk-pixbuf-config
16371 # Extract the first word of "$ac_prog", so it can be a program name with args.
16372 set dummy $ac_prog; ac_word=$2
16373 echo "$as_me:$LINENO: checking for $ac_word" >&5
16374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16375 if test "${ac_cv_path_gdk_pixbuf_config+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 case $gdk_pixbuf_config in
16380 ac_cv_path_gdk_pixbuf_config="$gdk_pixbuf_config" # Let the user override the test with a path.
16383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16384 for as_dir in $gdk_pixbuf_path
16387 test -z "$as_dir" && as_dir=.
16388 for ac_exec_ext in '' $ac_executable_extensions; do
16389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16390 ac_cv_path_gdk_pixbuf_config="$as_dir/$ac_word$ac_exec_ext"
16391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16400 gdk_pixbuf_config=$ac_cv_path_gdk_pixbuf_config
16402 if test -n "$gdk_pixbuf_config"; then
16403 echo "$as_me:$LINENO: result: $gdk_pixbuf_config" >&5
16404 echo "${ECHO_T}$gdk_pixbuf_config" >&6
16406 echo "$as_me:$LINENO: result: no" >&5
16407 echo "${ECHO_T}no" >&6
16410 test -n "$gdk_pixbuf_config" && break
16414 # If we found the gdk-pixbuf-config program, run it to get flags.
16416 if test -n "$gdk_pixbuf_config" ; then
16417 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
16418 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
16419 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 ac_cv_gdk_pixbuf_config_cflags=`$gdk_pixbuf_config --cflags`
16424 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
16425 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
16426 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
16427 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
16428 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
16429 echo $ECHO_N "(cached) $ECHO_C" >&6
16431 ac_cv_gdk_pixbuf_config_libs=`$gdk_pixbuf_config --libs`
16433 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
16434 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
16436 # note that "gdk-pixbuf-config --libs" produces a link line including
16437 # -lgdk_pixbuf, but there's no way to get it to produce one that also
16438 # includes -lgdk_pixbuf_xlib. Since we don't know *exactly* what the
16439 # name of the library will be, construct it with sed...
16442 ac_cv_gdk_pixbuf_config_libs=`echo $ac_cv_gdk_pixbuf_config_libs | \
16443 sed 's@ \(-lgdk_pixbuf\([-_a-zA-Z0-9.]*\)\) @ \1 -lgdk_pixbuf_xlib\2 @'`
16446 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
16447 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
16451 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
16452 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
16454 if test "$have_gdk_pixbuf" = no; then
16456 # we appear to have pixbuf; check for headers/libs to be sure.
16461 # check for header A...
16463 ac_save_CPPFLAGS="$CPPFLAGS"
16464 if test \! -z "$includedir" ; then
16465 CPPFLAGS="$CPPFLAGS -I$includedir"
16467 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16468 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
16469 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
16470 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
16471 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
16475 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
16477 # Is the header compilable?
16478 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
16479 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
16480 cat >conftest.$ac_ext <<_ACEOF
16481 #line $LINENO "configure"
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16487 $ac_includes_default
16488 #include <gdk-pixbuf/gdk-pixbuf.h>
16490 rm -f conftest.$ac_objext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492 (eval $ac_compile) 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -s conftest.$ac_objext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_header_compiler=yes
16504 echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16507 ac_header_compiler=no
16509 rm -f conftest.$ac_objext conftest.$ac_ext
16510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16511 echo "${ECHO_T}$ac_header_compiler" >&6
16513 # Is the header present?
16514 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
16515 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
16516 cat >conftest.$ac_ext <<_ACEOF
16517 #line $LINENO "configure"
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 #include <gdk-pixbuf/gdk-pixbuf.h>
16525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } >/dev/null; then
16533 if test -s conftest.err; then
16534 ac_cpp_err=$ac_c_preproc_warn_flag
16541 if test -z "$ac_cpp_err"; then
16542 ac_header_preproc=yes
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ac_header_preproc=no
16549 rm -f conftest.err conftest.$ac_ext
16550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16551 echo "${ECHO_T}$ac_header_preproc" >&6
16553 # So? What about this header?
16554 case $ac_header_compiler:$ac_header_preproc in
16556 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
16557 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
16559 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
16562 ## ------------------------------------ ##
16563 ## Report this to bug-autoconf@gnu.org. ##
16564 ## ------------------------------------ ##
16567 sed "s/^/$as_me: WARNING: /" >&2
16570 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
16571 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
16573 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
16575 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
16578 ## ------------------------------------ ##
16579 ## Report this to bug-autoconf@gnu.org. ##
16580 ## ------------------------------------ ##
16583 sed "s/^/$as_me: WARNING: /" >&2
16586 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
16587 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
16588 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
16593 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
16594 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
16597 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
16598 have_gdk_pixbuf=yes
16602 CPPFLAGS="$ac_save_CPPFLAGS"
16604 # if that worked, check for header B...
16605 if test "$have_gdk_pixbuf" = yes; then
16607 gdk_pixbuf_halfassed=yes
16609 ac_save_CPPFLAGS="$CPPFLAGS"
16610 if test \! -z "$includedir" ; then
16611 CPPFLAGS="$CPPFLAGS -I$includedir"
16613 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16614 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
16615 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
16616 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16617 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
16621 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
16623 # Is the header compilable?
16624 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
16625 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
16626 cat >conftest.$ac_ext <<_ACEOF
16627 #line $LINENO "configure"
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633 $ac_includes_default
16634 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
16636 rm -f conftest.$ac_objext
16637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16638 (eval $ac_compile) 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_header_compiler=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_header_compiler=no
16655 rm -f conftest.$ac_objext conftest.$ac_ext
16656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16657 echo "${ECHO_T}$ac_header_compiler" >&6
16659 # Is the header present?
16660 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
16661 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
16662 cat >conftest.$ac_ext <<_ACEOF
16663 #line $LINENO "configure"
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16669 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
16671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16674 grep -v '^ *+' conftest.er1 >conftest.err
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } >/dev/null; then
16679 if test -s conftest.err; then
16680 ac_cpp_err=$ac_c_preproc_warn_flag
16687 if test -z "$ac_cpp_err"; then
16688 ac_header_preproc=yes
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 ac_header_preproc=no
16695 rm -f conftest.err conftest.$ac_ext
16696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16697 echo "${ECHO_T}$ac_header_preproc" >&6
16699 # So? What about this header?
16700 case $ac_header_compiler:$ac_header_preproc in
16702 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16703 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16704 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16705 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
16708 ## ------------------------------------ ##
16709 ## Report this to bug-autoconf@gnu.org. ##
16710 ## ------------------------------------ ##
16713 sed "s/^/$as_me: WARNING: /" >&2
16716 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
16717 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
16719 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
16720 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16721 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
16724 ## ------------------------------------ ##
16725 ## Report this to bug-autoconf@gnu.org. ##
16726 ## ------------------------------------ ##
16729 sed "s/^/$as_me: WARNING: /" >&2
16732 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
16733 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16734 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
16739 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
16740 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
16743 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
16744 have_gdk_pixbuf=yes
16745 gdk_pixbuf_halfassed=no
16749 CPPFLAGS="$ac_save_CPPFLAGS"
16751 # yay, it has a new name in Gtk 2.x...
16752 if test "$have_gdk_pixbuf" = no; then
16754 gdk_pixbuf_halfassed=yes
16756 ac_save_CPPFLAGS="$CPPFLAGS"
16757 if test \! -z "$includedir" ; then
16758 CPPFLAGS="$CPPFLAGS -I$includedir"
16760 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16761 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
16762 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
16763 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16764 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
16768 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
16770 # Is the header compilable?
16771 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
16772 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
16773 cat >conftest.$ac_ext <<_ACEOF
16774 #line $LINENO "configure"
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 $ac_includes_default
16781 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
16783 rm -f conftest.$ac_objext
16784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16785 (eval $ac_compile) 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
16789 { ac_try='test -s conftest.$ac_objext'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; }; then
16795 ac_header_compiler=yes
16797 echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 ac_header_compiler=no
16802 rm -f conftest.$ac_objext conftest.$ac_ext
16803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16804 echo "${ECHO_T}$ac_header_compiler" >&6
16806 # Is the header present?
16807 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
16808 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
16809 cat >conftest.$ac_ext <<_ACEOF
16810 #line $LINENO "configure"
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
16818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16821 grep -v '^ *+' conftest.er1 >conftest.err
16823 cat conftest.err >&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } >/dev/null; then
16826 if test -s conftest.err; then
16827 ac_cpp_err=$ac_c_preproc_warn_flag
16834 if test -z "$ac_cpp_err"; then
16835 ac_header_preproc=yes
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 ac_header_preproc=no
16842 rm -f conftest.err conftest.$ac_ext
16843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16844 echo "${ECHO_T}$ac_header_preproc" >&6
16846 # So? What about this header?
16847 case $ac_header_compiler:$ac_header_preproc in
16849 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16850 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16851 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16852 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
16855 ## ------------------------------------ ##
16856 ## Report this to bug-autoconf@gnu.org. ##
16857 ## ------------------------------------ ##
16860 sed "s/^/$as_me: WARNING: /" >&2
16863 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
16864 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
16866 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16868 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
16871 ## ------------------------------------ ##
16872 ## Report this to bug-autoconf@gnu.org. ##
16873 ## ------------------------------------ ##
16876 sed "s/^/$as_me: WARNING: /" >&2
16879 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
16880 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16881 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
16886 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
16887 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
16890 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
16891 have_gdk_pixbuf=yes
16892 gdk_pixbuf_halfassed=no
16896 CPPFLAGS="$ac_save_CPPFLAGS"
16901 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
16903 if test "$have_gdk_pixbuf" = yes; then
16904 # we have the headers, now check for the libraries
16906 gdk_pixbuf_halfassed=yes
16910 ac_save_CPPFLAGS="$CPPFLAGS"
16911 ac_save_LDFLAGS="$LDFLAGS"
16912 # ac_save_LIBS="$LIBS"
16914 if test \! -z "$includedir" ; then
16915 CPPFLAGS="$CPPFLAGS -I$includedir"
16917 # note: $X_CFLAGS includes $x_includes
16918 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16920 if test \! -z "$libdir" ; then
16921 LDFLAGS="$LDFLAGS -L$libdir"
16923 # note: $X_LIBS includes $x_libraries
16924 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16926 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
16927 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
16928 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 ac_check_lib_save_LIBS=$LIBS
16932 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
16933 cat >conftest.$ac_ext <<_ACEOF
16934 #line $LINENO "configure"
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16941 /* Override any gcc2 internal prototype to avoid an error. */
16945 /* We use char because int might match the return type of a gcc2
16946 builtin and then its argument prototype would still apply. */
16947 char gdk_pixbuf_new_from_file ();
16951 gdk_pixbuf_new_from_file ();
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16958 (eval $ac_link) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -s conftest$ac_exeext'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
16975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16976 LIBS=$ac_check_lib_save_LIBS
16978 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
16979 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
16980 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
16981 have_gdk_pixbuf=yes
16984 CPPFLAGS="$ac_save_CPPFLAGS"
16985 LDFLAGS="$ac_save_LDFLAGS"
16986 # LIBS="$ac_save_LIBS"
16989 if test "$have_gdk_pixbuf" = yes; then
16992 ac_save_CPPFLAGS="$CPPFLAGS"
16993 ac_save_LDFLAGS="$LDFLAGS"
16994 # ac_save_LIBS="$LIBS"
16996 if test \! -z "$includedir" ; then
16997 CPPFLAGS="$CPPFLAGS -I$includedir"
16999 # note: $X_CFLAGS includes $x_includes
17000 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17002 if test \! -z "$libdir" ; then
17003 LDFLAGS="$LDFLAGS -L$libdir"
17005 # note: $X_LIBS includes $x_libraries
17006 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17008 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
17009 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
17010 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 ac_check_lib_save_LIBS=$LIBS
17014 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17015 cat >conftest.$ac_ext <<_ACEOF
17016 #line $LINENO "configure"
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17023 /* Override any gcc2 internal prototype to avoid an error. */
17027 /* We use char because int might match the return type of a gcc2
17028 builtin and then its argument prototype would still apply. */
17029 char gdk_pixbuf_xlib_init ();
17033 gdk_pixbuf_xlib_init ();
17038 rm -f conftest.$ac_objext conftest$ac_exeext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040 (eval $ac_link) 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -s conftest$ac_exeext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
17057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17058 LIBS=$ac_check_lib_save_LIBS
17060 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
17061 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
17062 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
17063 have_gdk_pixbuf=yes
17064 gdk_pixbuf_halfassed=no
17067 CPPFLAGS="$ac_save_CPPFLAGS"
17068 LDFLAGS="$ac_save_LDFLAGS"
17069 # LIBS="$ac_save_LIBS"
17074 if test "$have_gdk_pixbuf" = yes; then
17075 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
17076 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
17077 cat >>confdefs.h <<\_ACEOF
17078 #define HAVE_GDK_PIXBUF 1
17082 have_gdk_pixbuf2=no
17087 ###############################################################################
17091 ###############################################################################
17094 with_jpeg_req=unspecified
17097 # Check whether --with-jpeg or --without-jpeg was given.
17098 if test "${with_jpeg+set}" = set; then
17099 withval="$with_jpeg"
17100 with_jpeg="$withval"; with_jpeg_req="$withval"
17106 case "$with_jpeg" in
17111 echo "$as_me:$LINENO: checking for JPEG headers" >&5
17112 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
17113 d=$with_jpeg/include
17114 if test -d $d; then
17115 X_CFLAGS="-I$d $X_CFLAGS"
17116 echo "$as_me:$LINENO: result: $d" >&5
17117 echo "${ECHO_T}$d" >&6
17119 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17120 echo "${ECHO_T}not found ($d: no such directory)" >&6
17123 echo "$as_me:$LINENO: checking for JPEG libs" >&5
17124 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
17126 if test -d $d; then
17127 X_LIBS="-L$d $X_LIBS"
17128 echo "$as_me:$LINENO: result: $d" >&5
17129 echo "${ECHO_T}$d" >&6
17131 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17132 echo "${ECHO_T}not found ($d: no such directory)" >&6
17135 # replace the directory string with "yes".
17136 with_jpeg_req="yes"
17137 with_jpeg=$with_jpeg_req
17142 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
17143 echo " If it is a directory, then \`DIR/include' will be added to"
17144 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17150 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
17151 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
17155 if test "$with_jpeg" = yes; then
17159 ac_save_CPPFLAGS="$CPPFLAGS"
17160 if test \! -z "$includedir" ; then
17161 CPPFLAGS="$CPPFLAGS -I$includedir"
17163 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17164 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17165 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17166 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17167 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17171 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17173 # Is the header compilable?
17174 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
17175 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
17176 cat >conftest.$ac_ext <<_ACEOF
17177 #line $LINENO "configure"
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 $ac_includes_default
17184 #include <jpeglib.h>
17186 rm -f conftest.$ac_objext
17187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17188 (eval $ac_compile) 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -s conftest.$ac_objext'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_header_compiler=yes
17200 echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17203 ac_header_compiler=no
17205 rm -f conftest.$ac_objext conftest.$ac_ext
17206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17207 echo "${ECHO_T}$ac_header_compiler" >&6
17209 # Is the header present?
17210 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
17211 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
17212 cat >conftest.$ac_ext <<_ACEOF
17213 #line $LINENO "configure"
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219 #include <jpeglib.h>
17221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17224 grep -v '^ *+' conftest.er1 >conftest.err
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } >/dev/null; then
17229 if test -s conftest.err; then
17230 ac_cpp_err=$ac_c_preproc_warn_flag
17237 if test -z "$ac_cpp_err"; then
17238 ac_header_preproc=yes
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17243 ac_header_preproc=no
17245 rm -f conftest.err conftest.$ac_ext
17246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17247 echo "${ECHO_T}$ac_header_preproc" >&6
17249 # So? What about this header?
17250 case $ac_header_compiler:$ac_header_preproc in
17252 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17253 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
17255 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
17258 ## ------------------------------------ ##
17259 ## Report this to bug-autoconf@gnu.org. ##
17260 ## ------------------------------------ ##
17263 sed "s/^/$as_me: WARNING: /" >&2
17266 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
17267 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
17269 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
17270 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
17271 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
17274 ## ------------------------------------ ##
17275 ## Report this to bug-autoconf@gnu.org. ##
17276 ## ------------------------------------ ##
17279 sed "s/^/$as_me: WARNING: /" >&2
17282 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17283 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17284 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17287 ac_cv_header_jpeglib_h=$ac_header_preproc
17289 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17290 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17293 if test $ac_cv_header_jpeglib_h = yes; then
17298 CPPFLAGS="$ac_save_CPPFLAGS"
17300 if test "$have_jpeg" = yes; then
17301 # we have the header, now check for the library
17305 ac_save_CPPFLAGS="$CPPFLAGS"
17306 ac_save_LDFLAGS="$LDFLAGS"
17307 # ac_save_LIBS="$LIBS"
17309 if test \! -z "$includedir" ; then
17310 CPPFLAGS="$CPPFLAGS -I$includedir"
17312 # note: $X_CFLAGS includes $x_includes
17313 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17315 if test \! -z "$libdir" ; then
17316 LDFLAGS="$LDFLAGS -L$libdir"
17318 # note: $X_LIBS includes $x_libraries
17319 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17321 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
17322 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
17323 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 ac_check_lib_save_LIBS=$LIBS
17327 LIBS="-ljpeg $LIBS"
17328 cat >conftest.$ac_ext <<_ACEOF
17329 #line $LINENO "configure"
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17336 /* Override any gcc2 internal prototype to avoid an error. */
17340 /* We use char because int might match the return type of a gcc2
17341 builtin and then its argument prototype would still apply. */
17342 char jpeg_start_compress ();
17346 jpeg_start_compress ();
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17353 (eval $ac_link) 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -s conftest$ac_exeext'
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; }; then
17363 ac_cv_lib_jpeg_jpeg_start_compress=yes
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 ac_cv_lib_jpeg_jpeg_start_compress=no
17370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17371 LIBS=$ac_check_lib_save_LIBS
17373 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
17374 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
17375 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
17379 cat >>confdefs.h <<\_ACEOF
17380 #define HAVE_JPEGLIB 1
17385 CPPFLAGS="$ac_save_CPPFLAGS"
17386 LDFLAGS="$ac_save_LDFLAGS"
17387 # LIBS="$ac_save_LIBS"
17393 ###############################################################################
17395 # Check for the XSHM server extension.
17397 ###############################################################################
17400 with_xshm_req=unspecified
17402 # Check whether --with-xshm-ext or --without-xshm-ext was given.
17403 if test "${with_xshm_ext+set}" = set; then
17404 withval="$with_xshm_ext"
17405 with_xshm="$withval"; with_xshm_req="$withval"
17411 case "$with_xshm" in
17416 echo "$as_me:$LINENO: checking for XSHM headers" >&5
17417 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
17418 d=$with_xshm/include
17419 if test -d $d; then
17420 X_CFLAGS="-I$d $X_CFLAGS"
17421 echo "$as_me:$LINENO: result: $d" >&5
17422 echo "${ECHO_T}$d" >&6
17424 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17425 echo "${ECHO_T}not found ($d: no such directory)" >&6
17428 echo "$as_me:$LINENO: checking for XSHM libs" >&5
17429 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
17431 if test -d $d; then
17432 X_LIBS="-L$d $X_LIBS"
17433 echo "$as_me:$LINENO: result: $d" >&5
17434 echo "${ECHO_T}$d" >&6
17436 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17437 echo "${ECHO_T}not found ($d: no such directory)" >&6
17440 # replace the directory string with "yes".
17441 with_xshm_req="yes"
17442 with_xshm=$with_xshm_req
17447 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
17448 echo " If it is a directory, then \`DIR/include' will be added to"
17449 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17455 if test "$with_xshm" = yes; then
17457 # first check for Xshm.h.
17459 ac_save_CPPFLAGS="$CPPFLAGS"
17460 if test \! -z "$includedir" ; then
17461 CPPFLAGS="$CPPFLAGS -I$includedir"
17463 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17464 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
17465 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
17466 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17469 cat >conftest.$ac_ext <<_ACEOF
17470 #line $LINENO "configure"
17473 cat confdefs.h >>conftest.$ac_ext
17474 cat >>conftest.$ac_ext <<_ACEOF
17475 /* end confdefs.h. */
17476 #include <X11/Xlib.h>
17478 #include <X11/extensions/XShm.h>
17480 rm -f conftest.$ac_objext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17482 (eval $ac_compile) 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -s conftest.$ac_objext'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 ac_cv_header_X11_extensions_XShm_h=yes
17494 echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17497 ac_cv_header_X11_extensions_XShm_h=no
17499 rm -f conftest.$ac_objext conftest.$ac_ext
17501 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
17502 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
17503 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
17508 CPPFLAGS="$ac_save_CPPFLAGS"
17510 # if that succeeded, then check for sys/ipc.h.
17511 if test "$have_xshm" = yes; then
17514 ac_save_CPPFLAGS="$CPPFLAGS"
17515 if test \! -z "$includedir" ; then
17516 CPPFLAGS="$CPPFLAGS -I$includedir"
17518 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17519 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
17520 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
17521 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
17522 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
17526 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
17528 # Is the header compilable?
17529 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
17530 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
17531 cat >conftest.$ac_ext <<_ACEOF
17532 #line $LINENO "configure"
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538 $ac_includes_default
17539 #include <sys/ipc.h>
17541 rm -f conftest.$ac_objext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17543 (eval $ac_compile) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
17547 { ac_try='test -s conftest.$ac_objext'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
17553 ac_header_compiler=yes
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 ac_header_compiler=no
17560 rm -f conftest.$ac_objext conftest.$ac_ext
17561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17562 echo "${ECHO_T}$ac_header_compiler" >&6
17564 # Is the header present?
17565 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
17566 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
17567 cat >conftest.$ac_ext <<_ACEOF
17568 #line $LINENO "configure"
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 #include <sys/ipc.h>
17576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17579 grep -v '^ *+' conftest.er1 >conftest.err
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } >/dev/null; then
17584 if test -s conftest.err; then
17585 ac_cpp_err=$ac_c_preproc_warn_flag
17592 if test -z "$ac_cpp_err"; then
17593 ac_header_preproc=yes
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ac_header_preproc=no
17600 rm -f conftest.err conftest.$ac_ext
17601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17602 echo "${ECHO_T}$ac_header_preproc" >&6
17604 # So? What about this header?
17605 case $ac_header_compiler:$ac_header_preproc in
17607 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
17608 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17609 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
17610 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
17613 ## ------------------------------------ ##
17614 ## Report this to bug-autoconf@gnu.org. ##
17615 ## ------------------------------------ ##
17618 sed "s/^/$as_me: WARNING: /" >&2
17621 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
17622 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
17623 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
17624 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
17625 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
17626 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
17629 ## ------------------------------------ ##
17630 ## Report this to bug-autoconf@gnu.org. ##
17631 ## ------------------------------------ ##
17634 sed "s/^/$as_me: WARNING: /" >&2
17637 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
17638 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
17639 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17642 ac_cv_header_sys_ipc_h=$ac_header_preproc
17644 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
17645 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
17648 if test $ac_cv_header_sys_ipc_h = yes; then
17653 CPPFLAGS="$ac_save_CPPFLAGS"
17656 # if that succeeded, then check for sys/shm.h.
17657 if test "$have_xshm" = yes; then
17660 ac_save_CPPFLAGS="$CPPFLAGS"
17661 if test \! -z "$includedir" ; then
17662 CPPFLAGS="$CPPFLAGS -I$includedir"
17664 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17665 if test "${ac_cv_header_sys_shm_h+set}" = set; then
17666 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
17667 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
17668 if test "${ac_cv_header_sys_shm_h+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
17672 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
17674 # Is the header compilable?
17675 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
17676 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
17677 cat >conftest.$ac_ext <<_ACEOF
17678 #line $LINENO "configure"
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 $ac_includes_default
17685 #include <sys/shm.h>
17687 rm -f conftest.$ac_objext
17688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689 (eval $ac_compile) 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -s conftest.$ac_objext'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; }; then
17699 ac_header_compiler=yes
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 ac_header_compiler=no
17706 rm -f conftest.$ac_objext conftest.$ac_ext
17707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17708 echo "${ECHO_T}$ac_header_compiler" >&6
17710 # Is the header present?
17711 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
17712 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
17713 cat >conftest.$ac_ext <<_ACEOF
17714 #line $LINENO "configure"
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 #include <sys/shm.h>
17722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17725 grep -v '^ *+' conftest.er1 >conftest.err
17727 cat conftest.err >&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } >/dev/null; then
17730 if test -s conftest.err; then
17731 ac_cpp_err=$ac_c_preproc_warn_flag
17738 if test -z "$ac_cpp_err"; then
17739 ac_header_preproc=yes
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 ac_header_preproc=no
17746 rm -f conftest.err conftest.$ac_ext
17747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17748 echo "${ECHO_T}$ac_header_preproc" >&6
17750 # So? What about this header?
17751 case $ac_header_compiler:$ac_header_preproc in
17753 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17754 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
17756 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
17759 ## ------------------------------------ ##
17760 ## Report this to bug-autoconf@gnu.org. ##
17761 ## ------------------------------------ ##
17764 sed "s/^/$as_me: WARNING: /" >&2
17767 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
17768 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
17769 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
17770 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
17771 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
17772 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
17775 ## ------------------------------------ ##
17776 ## Report this to bug-autoconf@gnu.org. ##
17777 ## ------------------------------------ ##
17780 sed "s/^/$as_me: WARNING: /" >&2
17783 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
17784 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
17785 if test "${ac_cv_header_sys_shm_h+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 ac_cv_header_sys_shm_h=$ac_header_preproc
17790 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
17791 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
17794 if test $ac_cv_header_sys_shm_h = yes; then
17799 CPPFLAGS="$ac_save_CPPFLAGS"
17802 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
17803 # to exist, but the library code to not exist. And even better, the library
17804 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
17805 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
17806 # that's not quite right, but close enough.)
17810 if `uname -v` -eq 3 ; then
17813 ac_save_CPPFLAGS="$CPPFLAGS"
17814 ac_save_LDFLAGS="$LDFLAGS"
17815 # ac_save_LIBS="$LIBS"
17817 if test \! -z "$includedir" ; then
17818 CPPFLAGS="$CPPFLAGS -I$includedir"
17820 # note: $X_CFLAGS includes $x_includes
17821 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17823 if test \! -z "$libdir" ; then
17824 LDFLAGS="$LDFLAGS -L$libdir"
17826 # note: $X_LIBS includes $x_libraries
17827 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17829 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
17830 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
17831 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17834 ac_check_lib_save_LIBS=$LIBS
17835 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
17836 cat >conftest.$ac_ext <<_ACEOF
17837 #line $LINENO "configure"
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17844 /* Override any gcc2 internal prototype to avoid an error. */
17848 /* We use char because int might match the return type of a gcc2
17849 builtin and then its argument prototype would still apply. */
17850 char XShmQueryExtension ();
17854 XShmQueryExtension ();
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17861 (eval $ac_link) 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -s conftest$ac_exeext'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; }; then
17871 ac_cv_lib_XextSam_XShmQueryExtension=yes
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 ac_cv_lib_XextSam_XShmQueryExtension=no
17878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17879 LIBS=$ac_check_lib_save_LIBS
17881 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
17882 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
17883 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
17884 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
17889 CPPFLAGS="$ac_save_CPPFLAGS"
17890 LDFLAGS="$ac_save_LDFLAGS"
17891 # LIBS="$ac_save_LIBS"
17897 # if that succeeded, then we've really got it.
17898 if test "$have_xshm" = yes; then
17899 cat >>confdefs.h <<\_ACEOF
17900 #define HAVE_XSHM_EXTENSION 1
17905 elif test "$with_xshm" != no; then
17906 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
17911 ###############################################################################
17913 # Check for the DOUBLE-BUFFER server extension.
17915 ###############################################################################
17918 with_xdbe_req=unspecified
17920 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
17921 if test "${with_xdbe_ext+set}" = set; then
17922 withval="$with_xdbe_ext"
17923 with_xdbe="$withval"; with_xdbe_req="$withval"
17929 case "$with_xdbe" in
17934 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
17935 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
17936 d=$with_xdbe/include
17937 if test -d $d; then
17938 X_CFLAGS="-I$d $X_CFLAGS"
17939 echo "$as_me:$LINENO: result: $d" >&5
17940 echo "${ECHO_T}$d" >&6
17942 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17943 echo "${ECHO_T}not found ($d: no such directory)" >&6
17946 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
17947 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
17949 if test -d $d; then
17950 X_LIBS="-L$d $X_LIBS"
17951 echo "$as_me:$LINENO: result: $d" >&5
17952 echo "${ECHO_T}$d" >&6
17954 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17955 echo "${ECHO_T}not found ($d: no such directory)" >&6
17958 # replace the directory string with "yes".
17959 with_xdbe_req="yes"
17960 with_xdbe=$with_xdbe_req
17965 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
17966 echo " If it is a directory, then \`DIR/include' will be added to"
17967 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17973 if test "$with_xdbe" = yes; then
17976 ac_save_CPPFLAGS="$CPPFLAGS"
17977 if test \! -z "$includedir" ; then
17978 CPPFLAGS="$CPPFLAGS -I$includedir"
17980 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17981 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
17982 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
17983 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 cat >conftest.$ac_ext <<_ACEOF
17987 #line $LINENO "configure"
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 #include <X11/Xlib.h>
17995 #include <X11/extensions/Xdbe.h>
17997 rm -f conftest.$ac_objext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17999 (eval $ac_compile) 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -s conftest.$ac_objext'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_cv_header_X11_extensions_Xdbe_h=yes
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_cv_header_X11_extensions_Xdbe_h=no
18016 rm -f conftest.$ac_objext conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
18019 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
18020 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
18025 CPPFLAGS="$ac_save_CPPFLAGS"
18026 if test "$have_xdbe" = yes; then
18027 cat >>confdefs.h <<\_ACEOF
18028 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
18033 elif test "$with_xdbe" != no; then
18034 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
18039 ###############################################################################
18041 # Check for the SGI XReadDisplay server extension.
18043 # Note: this has to be down here, rather than up with the other server
18044 # extension tests, so that the output of `configure --help' is in the
18045 # right order. Arrgh!
18047 ###############################################################################
18049 have_readdisplay=no
18050 with_readdisplay_req=unspecified
18052 # Check whether --with-readdisplay or --without-readdisplay was given.
18053 if test "${with_readdisplay+set}" = set; then
18054 withval="$with_readdisplay"
18055 with_readdisplay="$withval"; with_readdisplay_req="$withval"
18057 with_readdisplay=yes
18061 case "$with_readdisplay" in
18066 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
18067 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
18068 d=$with_readdisplay/include
18069 if test -d $d; then
18070 X_CFLAGS="-I$d $X_CFLAGS"
18071 echo "$as_me:$LINENO: result: $d" >&5
18072 echo "${ECHO_T}$d" >&6
18074 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18075 echo "${ECHO_T}not found ($d: no such directory)" >&6
18078 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
18079 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
18080 d=$with_readdisplay/lib
18081 if test -d $d; then
18082 X_LIBS="-L$d $X_LIBS"
18083 echo "$as_me:$LINENO: result: $d" >&5
18084 echo "${ECHO_T}$d" >&6
18086 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18087 echo "${ECHO_T}not found ($d: no such directory)" >&6
18090 # replace the directory string with "yes".
18091 with_readdisplay_req="yes"
18092 with_readdisplay=$with_readdisplay_req
18097 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
18098 echo " If it is a directory, then \`DIR/include' will be added to"
18099 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18105 if test "$with_readdisplay" = yes; then
18107 ac_save_CPPFLAGS="$CPPFLAGS"
18108 if test \! -z "$includedir" ; then
18109 CPPFLAGS="$CPPFLAGS -I$includedir"
18111 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18112 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
18113 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
18114 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 cat >conftest.$ac_ext <<_ACEOF
18118 #line $LINENO "configure"
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 #include <X11/Xlib.h>
18126 #include <X11/extensions/readdisplay.h>
18128 rm -f conftest.$ac_objext
18129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18130 (eval $ac_compile) 2>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -s conftest.$ac_objext'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 ac_cv_header_X11_extensions_readdisplay_h=yes
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 ac_cv_header_X11_extensions_readdisplay_h=no
18147 rm -f conftest.$ac_objext conftest.$ac_ext
18149 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
18150 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
18151 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
18152 cat >>confdefs.h <<\_ACEOF
18153 #define HAVE_READ_DISPLAY_EXTENSION 1
18159 CPPFLAGS="$ac_save_CPPFLAGS"
18160 elif test "$with_readdisplay" != no; then
18161 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
18166 ###############################################################################
18168 # Check for a program to generate random text.
18170 # Zippy is funnier than the idiocy generally spat out by `fortune',
18171 # so first see if "fortune zippy" works. Else, use plain "fortune".
18173 # We used to dig around in Emacs to look for the "yow" program, but
18174 # most people who have Emacs also have "fortune zippy", so nevermind.
18176 ###############################################################################
18178 with_fortune_req=""
18180 # Check whether --with-fortune or --without-fortune was given.
18181 if test "${with_fortune+set}" = set; then
18182 withval="$with_fortune"
18183 with_fortune_req="$withval"; with_fortune="$withval"
18188 if test "$with_fortune" = no || test "$with_fortune" = yes ; then
18190 with_fortune_req=""
18193 if test -n "$with_fortune_req" ; then
18194 ac_cv_fortune_program=""
18195 case "$with_fortune_req" in
18198 set dummy $with_fortune_req ; fortune_tmp=$2
18199 echo "$as_me:$LINENO: checking for $fortune_tmp" >&5
18200 echo $ECHO_N "checking for $fortune_tmp... $ECHO_C" >&6
18201 if test -x "$fortune_tmp" ; then
18202 echo "$as_me:$LINENO: result: yes" >&5
18203 echo "${ECHO_T}yes" >&6
18205 echo "$as_me:$LINENO: result: no" >&5
18206 echo "${ECHO_T}no" >&6
18211 set dummy $with_fortune_req ; fortune_tmp=$2
18213 unset ac_cv_path_fortune_tmp
18214 # Extract the first word of "$fortune_tmp", so it can be a program name with args.
18215 set dummy $fortune_tmp; ac_word=$2
18216 echo "$as_me:$LINENO: checking for $ac_word" >&5
18217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18218 if test "${ac_cv_path_fortune_tmp+set}" = set; then
18219 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 case $fortune_tmp in
18223 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
18226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18227 for as_dir in $PATH
18230 test -z "$as_dir" && as_dir=.
18231 for ac_exec_ext in '' $ac_executable_extensions; do
18232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18233 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
18234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18243 fortune_tmp=$ac_cv_path_fortune_tmp
18245 if test -n "$fortune_tmp"; then
18246 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
18247 echo "${ECHO_T}$fortune_tmp" >&6
18249 echo "$as_me:$LINENO: result: no" >&5
18250 echo "${ECHO_T}no" >&6
18253 if test -z "$fortune_tmp" ; then
18258 ac_cv_fortune_program="$with_fortune"
18260 elif test -n "$ac_cv_fortune_program"; then
18261 echo "$as_me:$LINENO: result: checking for fortune... (cached) $ac_cv_fortune_program" >&5
18262 echo "${ECHO_T}checking for fortune... (cached) $ac_cv_fortune_program" >&6
18265 unset ac_cv_path_fortune_tmp
18268 if test -z "$ac_cv_fortune_program" ; then
18270 # first look for fortune in /usr/games/ (and use absolute path)
18271 for ac_prog in fortune
18273 # Extract the first word of "$ac_prog", so it can be a program name with args.
18274 set dummy $ac_prog; ac_word=$2
18275 echo "$as_me:$LINENO: checking for $ac_word" >&5
18276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18277 if test "${ac_cv_path_fortune_tmp+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 case $fortune_tmp in
18282 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
18285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18286 for as_dir in "/usr/games"
18289 test -z "$as_dir" && as_dir=.
18290 for ac_exec_ext in '' $ac_executable_extensions; do
18291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18292 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
18293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18302 fortune_tmp=$ac_cv_path_fortune_tmp
18304 if test -n "$fortune_tmp"; then
18305 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
18306 echo "${ECHO_T}$fortune_tmp" >&6
18308 echo "$as_me:$LINENO: result: no" >&5
18309 echo "${ECHO_T}no" >&6
18312 test -n "$fortune_tmp" && break
18316 # if it's not there, look on $PATH (and don't use absolute path)
18317 if test -z "$fortune_tmp" ; then
18318 for ac_prog in fortune
18320 # Extract the first word of "$ac_prog", so it can be a program name with args.
18321 set dummy $ac_prog; ac_word=$2
18322 echo "$as_me:$LINENO: checking for $ac_word" >&5
18323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18324 if test "${ac_cv_prog_fortune_tmp+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18327 if test -n "$fortune_tmp"; then
18328 ac_cv_prog_fortune_tmp="$fortune_tmp" # Let the user override the test.
18330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18331 for as_dir in $PATH
18334 test -z "$as_dir" && as_dir=.
18335 for ac_exec_ext in '' $ac_executable_extensions; do
18336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18337 ac_cv_prog_fortune_tmp="$ac_prog"
18338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18346 fortune_tmp=$ac_cv_prog_fortune_tmp
18347 if test -n "$fortune_tmp"; then
18348 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
18349 echo "${ECHO_T}$fortune_tmp" >&6
18351 echo "$as_me:$LINENO: result: no" >&5
18352 echo "${ECHO_T}no" >&6
18355 test -n "$fortune_tmp" && break
18360 # if we didn't find anything, then just assume /usr/games/
18361 if test -z "$fortune_tmp" ; then
18362 fortune_tmp="/usr/games/fortune"
18365 ac_cv_fortune_program="$fortune_tmp"
18367 # now check to see whether "fortune zippy" works.
18369 fortune_tmp="$fortune_tmp zippy"
18370 echo "$as_me:$LINENO: checking for zippy quotes" >&5
18371 echo $ECHO_N "checking for zippy quotes... $ECHO_C" >&6
18372 if ( $fortune_tmp >/dev/null 2>&1 ); then
18373 ac_cv_fortune_program="$fortune_tmp"
18374 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
18375 echo "${ECHO_T}$fortune_tmp" >&6
18377 echo "$as_me:$LINENO: result: no" >&5
18378 echo "${ECHO_T}no" >&6
18383 unset ac_cv_path_fortune_tmp
18386 cat >>confdefs.h <<_ACEOF
18387 #define FORTUNE_PROGRAM "$ac_cv_fortune_program"
18392 ###############################################################################
18394 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
18395 # This should be safe, but let's give people the option.
18397 ###############################################################################
18399 setuid_hacks_default=no
18400 setuid_hacks="$setuid_hacks_default"
18402 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
18403 if test "${with_setuid_hacks+set}" = set; then
18404 withval="$with_setuid_hacks"
18405 setuid_hacks="$withval"
18407 setuid_hacks="$setuid_hacks_default"
18411 case "$setuid_hacks" in
18416 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
18417 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
18418 d=$setuid_hacks/include
18419 if test -d $d; then
18420 X_CFLAGS="-I$d $X_CFLAGS"
18421 echo "$as_me:$LINENO: result: $d" >&5
18422 echo "${ECHO_T}$d" >&6
18424 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18425 echo "${ECHO_T}not found ($d: no such directory)" >&6
18428 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
18429 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
18430 d=$setuid_hacks/lib
18431 if test -d $d; then
18432 X_LIBS="-L$d $X_LIBS"
18433 echo "$as_me:$LINENO: result: $d" >&5
18434 echo "${ECHO_T}$d" >&6
18436 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18437 echo "${ECHO_T}not found ($d: no such directory)" >&6
18440 # replace the directory string with "yes".
18441 setuid_hacks_req="yes"
18442 setuid_hacks=$setuid_hacks_req
18447 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
18448 echo " If it is a directory, then \`DIR/include' will be added to"
18449 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18455 if test "$setuid_hacks" = yes; then
18457 elif test "$setuid_hacks" != no; then
18458 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
18463 ###############################################################################
18465 # Done testing. Now, set up the various -I and -L variables,
18466 # and decide which GUI program to build by default.
18468 ###############################################################################
18475 if test \! -z "$includedir" ; then
18476 INCLUDES="$INCLUDES -I$includedir"
18479 if test \! -z "$libdir" ; then
18480 LDFLAGS="$LDFLAGS -L$libdir"
18484 PREFERRED_DEMO_PROGRAM=''
18486 if test "$have_motif" = yes; then
18487 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
18488 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
18490 if test "$have_gtk" = yes; then
18491 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
18492 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
18496 if test "$have_kerberos" = yes; then
18497 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
18498 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
18500 if test "$have_pam" = yes; then
18501 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
18502 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
18503 INSTALL_PAM="install-pam"
18505 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
18506 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
18509 if test "$enable_locking" = yes; then
18510 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
18511 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
18513 LOCK_SRCS='$(NOLOCK_SRCS_1)'
18514 LOCK_OBJS='$(NOLOCK_OBJS_1)'
18517 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
18519 if test "$need_setuid" = yes; then
18525 if test "$setuid_hacks" = yes; then
18532 if test "$have_gl" = yes; then
18533 GL_EXES='$(GL_EXES)'
18534 GL_UTIL_EXES='$(GL_UTIL_EXES)'
18536 GL_KLUDGE="${tab} "
18538 GL_KLUDGE="-${tab} "
18541 if test "$have_gle" = yes; then
18542 GLE_EXES='$(GLE_EXES)'
18543 GLE_KLUDGE="${tab} "
18545 GLE_KLUDGE="-${tab} "
18548 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
18549 JPEG_EXES='$(JPEG_EXES)'
18553 # Another substitution in the XScreenSaver.ad.in file:
18555 if test "$have_gnome_help" = yes; then
18564 # Now that we know whether we have Gnome, we can decide where the XML
18565 # config files get installed.
18567 if test -z "$HACK_CONF_DIR" ; then
18568 if test -n "$GNOME_DATADIR" ; then
18569 HACK_CONF_DIR='${GNOME_DATADIR}/control-center/screensavers'
18571 HACK_CONF_DIR='${prefix}/lib/xscreensaver/config'
18577 # After computing $HACK_CONF_DIR, make sure $GLADE_DATADIR has a value
18578 # so that we know where to install the Gtk pixmaps.
18580 # It should usually be "/usr/share/pixmaps/", but we can't just use
18581 # "$(prefix)/share/pixmaps" because that would usually result in
18582 # "/usr/X11R6/share/pixmaps/", which is wrong. It needs to be the
18583 # Gnome/Gtk prefix, not the overall prefix.
18585 if test -n "$GNOME_DATADIR" ; then
18586 GLADE_DATADIR='$(GNOME_DATADIR)/xscreensaver'
18587 elif test "$have_gtk" = yes; then
18588 if test -n "$pkg_config"; then
18589 if test "$have_gtk2" = yes; then
18590 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
18592 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+`
18595 GLADE_DATADIR=`$gtk_config --prefix`
18597 GLADE_DATADIR="$GLADE_DATADIR/share/xscreensaver"
18603 # Set PO_DATADIR to something sensible.
18605 echo "$as_me:$LINENO: checking for locale directory" >&5
18606 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6
18607 if test -n "$GNOME_DATADIR" ; then
18608 PO_DATADIR="$GNOME_DATADIR"
18609 elif test "$have_gtk" = yes; then
18610 if test -n "$pkg_config"; then
18611 if test "$have_gtk2" = yes; then
18612 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
18614 PO_DATADIR=`$pkg_config --variable=prefix gtk+`
18617 PO_DATADIR=`$gtk_config --prefix`
18619 PO_DATADIR="$PO_DATADIR/share"
18622 if test -z "$PO_DATADIR" ; then
18624 # #### Total fucking kludge --
18625 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
18626 # but of course we need to expand all the nested variables to do that...
18634 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
18637 echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
18638 echo "${ECHO_T}$PO_DATADIR/locale" >&6
18641 # canonicalize slashes.
18642 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
18644 # gcc 3.0 likes to issue this warning for every file:
18646 # cc1: warning: changing search order for system directory "/usr/local/include"
18647 # cc1: warning: as it has already been specified as a non-system directory
18649 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
18650 # Which *should* be totally redundant, and thus an ok thing to delete?
18652 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
18655 ###############################################################################
18657 # Perform substitutions and write Makefiles.
18659 ###############################################################################
18709 APPDEFAULTS=$ac_x_app_defaults
18717 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"
18718 cat >confcache <<\_ACEOF
18719 # This file is a shell script that caches the results of configure
18720 # tests run on this system so they can be shared between configure
18721 # scripts and configure runs, see configure's option --config-cache.
18722 # It is not useful on other systems. If it contains results you don't
18723 # want to keep, you may remove or edit it.
18725 # config.status only pays attention to the cache file if you give it
18726 # the --recheck option to rerun configure.
18728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18730 # following values.
18734 # The following way of writing the cache mishandles newlines in values,
18735 # but we know of no workaround that is simple, portable, and efficient.
18736 # So, don't put newlines in cache variables' values.
18737 # Ultrix sh set writes to stderr and can't be redirected directly,
18738 # and sets the high bit in the cache file unless we assign to the vars.
18741 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18743 # `set' does not quote correctly, so add quotes (double-quote
18744 # substitution turns \\\\ into \\, and sed turns \\ into \).
18747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18750 # `set' quotes correctly as required by POSIX, so do not add quotes.
18752 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18761 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18763 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18764 if test -w $cache_file; then
18765 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18766 cat confcache >$cache_file
18768 echo "not updating unwritable cache $cache_file"
18773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18774 # Let make expand exec_prefix.
18775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18777 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18778 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18779 # trailing colons and then remove the whole line if VPATH becomes empty
18780 # (actually we leave an empty line to preserve line numbers).
18781 if test "x$srcdir" = x.; then
18782 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18783 s/:*\$(srcdir):*/:/;
18784 s/:*\${srcdir}:*/:/;
18786 s/^\([^=]*=[ ]*\):*/\1/;
18792 DEFS=-DHAVE_CONFIG_H
18796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18797 # 1. Remove the extension, and $U if already installed.
18798 ac_i=`echo "$ac_i" |
18799 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18801 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18802 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18804 LIBOBJS=$ac_libobjs
18806 LTLIBOBJS=$ac_ltlibobjs
18811 mv -f po/POTFILES po/POTFILES.tmp
18812 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
18813 rm -f po/POTFILES.tmp
18817 : ${CONFIG_STATUS=./config.status}
18818 ac_clean_files_save=$ac_clean_files
18819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18820 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18821 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18822 cat >$CONFIG_STATUS <<_ACEOF
18824 # Generated by $as_me.
18825 # Run this file to recreate the current configuration.
18826 # Compiler output produced by configure, useful for debugging
18827 # configure, is in config.log if it exists.
18830 ac_cs_recheck=false
18832 SHELL=\${CONFIG_SHELL-$SHELL}
18835 cat >>$CONFIG_STATUS <<\_ACEOF
18836 ## --------------------- ##
18837 ## M4sh Initialization. ##
18838 ## --------------------- ##
18840 # Be Bourne compatible
18841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18844 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18845 # is contrary to our usage. Disable this feature.
18846 alias -g '${1+"$@"}'='"$@"'
18847 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18851 # Support unset when possible.
18852 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18859 # Work around bugs in pre-3.0 UWIN ksh.
18860 $as_unset ENV MAIL MAILPATH
18867 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18868 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18869 LC_TELEPHONE LC_TIME
18871 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18872 eval $as_var=C; export $as_var
18878 # Required to use basename.
18879 if expr a : '\(a\)' >/dev/null 2>&1; then
18885 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18886 as_basename=basename
18892 # Name of the executable.
18893 as_me=`$as_basename "$0" ||
18894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18895 X"$0" : 'X\(//\)$' \| \
18896 X"$0" : 'X\(/\)$' \| \
18897 . : '\(.\)' 2>/dev/null ||
18899 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18900 /^X\/\(\/\/\)$/{ s//\1/; q; }
18901 /^X\/\(\/\).*/{ s//\1/; q; }
18905 # PATH needs CR, and LINENO needs CR and PATH.
18906 # Avoid depending upon Character Ranges.
18907 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18908 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18909 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18910 as_cr_digits='0123456789'
18911 as_cr_alnum=$as_cr_Letters$as_cr_digits
18913 # The user is always right.
18914 if test "${PATH_SEPARATOR+set}" != set; then
18915 echo "#! /bin/sh" >conf$$.sh
18916 echo "exit 0" >>conf$$.sh
18918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18927 as_lineno_1=$LINENO
18928 as_lineno_2=$LINENO
18929 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18930 test "x$as_lineno_1" != "x$as_lineno_2" &&
18931 test "x$as_lineno_3" = "x$as_lineno_2" || {
18932 # Find who we are. Look in the path if we contain no path at all
18935 *[\\/]* ) as_myself=$0 ;;
18936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18937 for as_dir in $PATH
18940 test -z "$as_dir" && as_dir=.
18941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18946 # We did not find ourselves, most probably we were run as `sh COMMAND'
18947 # in which case we are not to be found in the path.
18948 if test "x$as_myself" = x; then
18951 if test ! -f "$as_myself"; then
18952 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18953 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18954 { (exit 1); exit 1; }; }
18956 case $CONFIG_SHELL in
18958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18959 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18962 test -z "$as_dir" && as_dir=.
18963 for as_base in sh bash ksh sh5; do
18966 if ("$as_dir/$as_base" -c '
18967 as_lineno_1=$LINENO
18968 as_lineno_2=$LINENO
18969 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18970 test "x$as_lineno_1" != "x$as_lineno_2" &&
18971 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18972 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18973 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18974 CONFIG_SHELL=$as_dir/$as_base
18975 export CONFIG_SHELL
18976 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18984 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18985 # uniformly replaced by the line number. The first 'sed' inserts a
18986 # line-number line before each line; the second 'sed' does the real
18987 # work. The second script uses 'N' to pair each line-number line
18988 # with the numbered line, and appends trailing '-' during
18989 # substitution so that $LINENO is not a special case at line end.
18990 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18991 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18992 sed '=' <$as_myself |
18997 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19000 s,^['$as_cr_digits']*\n,,
19001 ' >$as_me.lineno &&
19002 chmod +x $as_me.lineno ||
19003 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19004 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19005 { (exit 1); exit 1; }; }
19007 # Don't try to exec as it changes $[0], causing all sort of problems
19008 # (the dirname of $[0] is not the place where we might find the
19009 # original and so on. Autoconf is especially sensible to this).
19011 # Exit status is that of the last command.
19016 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19017 *c*,-n*) ECHO_N= ECHO_C='
19019 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19020 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19023 if expr a : '\(a\)' >/dev/null 2>&1; then
19029 rm -f conf$$ conf$$.exe conf$$.file
19031 if ln -s conf$$.file conf$$ 2>/dev/null; then
19032 # We could just check for DJGPP; but this test a) works b) is more generic
19033 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19034 if test -f conf$$.exe; then
19035 # Don't use ln at all; we don't have any links
19040 elif ln conf$$.file conf$$ 2>/dev/null; then
19045 rm -f conf$$ conf$$.exe conf$$.file
19047 if mkdir -p . 2>/dev/null; then
19053 as_executable_p="test -f"
19055 # Sed expression to map a string onto a valid CPP name.
19056 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19058 # Sed expression to map a string onto a valid variable name.
19059 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19063 # We need space, tab and new line, in precisely that order.
19073 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19074 # report actual input values of CONFIG_FILES etc. instead of their
19075 # values after options handling. Logging --version etc. is OK.
19079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19080 ## Running $as_me. ##
19085 This file was extended by $as_me, which was
19086 generated by GNU Autoconf 2.57. Invocation command line was
19088 CONFIG_FILES = $CONFIG_FILES
19089 CONFIG_HEADERS = $CONFIG_HEADERS
19090 CONFIG_LINKS = $CONFIG_LINKS
19091 CONFIG_COMMANDS = $CONFIG_COMMANDS
19095 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19099 # Files that config.status was made for.
19100 if test -n "$ac_config_files"; then
19101 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19104 if test -n "$ac_config_headers"; then
19105 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19108 if test -n "$ac_config_links"; then
19109 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19112 if test -n "$ac_config_commands"; then
19113 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19116 cat >>$CONFIG_STATUS <<\_ACEOF
19119 \`$as_me' instantiates files from templates according to the
19120 current configuration.
19122 Usage: $0 [OPTIONS] [FILE]...
19124 -h, --help print this help, then exit
19125 -V, --version print version number, then exit
19126 -q, --quiet do not print progress messages
19127 -d, --debug don't remove temporary files
19128 --recheck update $as_me by reconfiguring in the same conditions
19129 --file=FILE[:TEMPLATE]
19130 instantiate the configuration file FILE
19131 --header=FILE[:TEMPLATE]
19132 instantiate the configuration header FILE
19134 Configuration files:
19137 Configuration headers:
19140 Configuration commands:
19143 Report bugs to <bug-autoconf@gnu.org>."
19146 cat >>$CONFIG_STATUS <<_ACEOF
19149 configured by $0, generated by GNU Autoconf 2.57,
19150 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19152 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19153 Free Software Foundation, Inc.
19154 This config.status script is free software; the Free Software Foundation
19155 gives unlimited permission to copy, distribute and modify it."
19160 cat >>$CONFIG_STATUS <<\_ACEOF
19161 # If no file are specified by the user, then we need to provide default
19162 # value. By we need to know if files were specified by the user.
19168 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19169 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19177 *) # This is not an option, so the user has probably given explicit
19180 ac_need_defaults=false;;
19184 # Handling of the options.
19186 cat >>$CONFIG_STATUS <<\_ACEOF
19187 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19189 --version | --vers* | -V )
19190 echo "$ac_cs_version"; exit 0 ;;
19192 # Conflict between --help and --header
19193 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19194 Try \`$0 --help' for more information." >&5
19195 echo "$as_me: error: ambiguous option: $1
19196 Try \`$0 --help' for more information." >&2;}
19197 { (exit 1); exit 1; }; };;
19198 --help | --hel | -h )
19199 echo "$ac_cs_usage"; exit 0 ;;
19200 --debug | --d* | -d )
19202 --file | --fil | --fi | --f )
19204 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19205 ac_need_defaults=false;;
19206 --header | --heade | --head | --hea )
19208 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19209 ac_need_defaults=false;;
19210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19211 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19214 # This is an error.
19215 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19216 Try \`$0 --help' for more information." >&5
19217 echo "$as_me: error: unrecognized option: $1
19218 Try \`$0 --help' for more information." >&2;}
19219 { (exit 1); exit 1; }; } ;;
19221 *) ac_config_targets="$ac_config_targets $1" ;;
19227 ac_configure_extra_args=
19229 if $ac_cs_silent; then
19231 ac_configure_extra_args="$ac_configure_extra_args --silent"
19235 cat >>$CONFIG_STATUS <<_ACEOF
19236 if \$ac_cs_recheck; then
19237 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19238 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19243 cat >>$CONFIG_STATUS <<_ACEOF
19245 # INIT-COMMANDS section.
19248 INTLTOOL_PERL=${INTLTOOL_PERL}
19255 cat >>$CONFIG_STATUS <<\_ACEOF
19256 for ac_config_target in $ac_config_targets
19258 case "$ac_config_target" in
19259 # Handling of arguments.
19260 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19261 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19262 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
19263 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
19264 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
19265 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19266 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
19267 "driver/xscreensaver.kss" ) CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.kss" ;;
19268 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19269 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
19270 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19271 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19272 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19273 { (exit 1); exit 1; }; };;
19277 # If the user did not use the arguments to specify the items to instantiate,
19278 # then the envvar interface is used. Set only those that are not.
19279 # We use the long form for the default assignment because of an extremely
19280 # bizarre bug on SunOS 4.1.3.
19281 if $ac_need_defaults; then
19282 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19283 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19284 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19287 # Have a temporary directory for convenience. Make it in the build tree
19288 # simply because there is no reason to put it here, and in addition,
19289 # creating and moving files from /tmp can sometimes cause problems.
19290 # Create a temporary directory, and hook for its removal unless debugging.
19293 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19294 trap '{ (exit 1); exit 1; }' 1 2 13 15
19297 # Create a (secure) tmp directory for tmp files.
19300 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19301 test -n "$tmp" && test -d "$tmp"
19304 tmp=./confstat$$-$RANDOM
19305 (umask 077 && mkdir $tmp)
19308 echo "$me: cannot create a temporary directory in ." >&2
19309 { (exit 1); exit 1; }
19314 cat >>$CONFIG_STATUS <<_ACEOF
19317 # CONFIG_FILES section.
19320 # No need to generate the scripts if there are no CONFIG_FILES.
19321 # This happens for instance when ./config.status config.h
19322 if test -n "\$CONFIG_FILES"; then
19323 # Protect against being on the right side of a sed subst in config.status.
19324 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19325 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19326 s,@SHELL@,$SHELL,;t t
19327 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19328 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19329 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19330 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19331 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19332 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19333 s,@exec_prefix@,$exec_prefix,;t t
19334 s,@prefix@,$prefix,;t t
19335 s,@program_transform_name@,$program_transform_name,;t t
19336 s,@bindir@,$bindir,;t t
19337 s,@sbindir@,$sbindir,;t t
19338 s,@libexecdir@,$libexecdir,;t t
19339 s,@datadir@,$datadir,;t t
19340 s,@sysconfdir@,$sysconfdir,;t t
19341 s,@sharedstatedir@,$sharedstatedir,;t t
19342 s,@localstatedir@,$localstatedir,;t t
19343 s,@libdir@,$libdir,;t t
19344 s,@includedir@,$includedir,;t t
19345 s,@oldincludedir@,$oldincludedir,;t t
19346 s,@infodir@,$infodir,;t t
19347 s,@mandir@,$mandir,;t t
19348 s,@build_alias@,$build_alias,;t t
19349 s,@host_alias@,$host_alias,;t t
19350 s,@target_alias@,$target_alias,;t t
19351 s,@DEFS@,$DEFS,;t t
19352 s,@ECHO_C@,$ECHO_C,;t t
19353 s,@ECHO_N@,$ECHO_N,;t t
19354 s,@ECHO_T@,$ECHO_T,;t t
19355 s,@LIBS@,$LIBS,;t t
19356 s,@build@,$build,;t t
19357 s,@build_cpu@,$build_cpu,;t t
19358 s,@build_vendor@,$build_vendor,;t t
19359 s,@build_os@,$build_os,;t t
19360 s,@host@,$host,;t t
19361 s,@host_cpu@,$host_cpu,;t t
19362 s,@host_vendor@,$host_vendor,;t t
19363 s,@host_os@,$host_os,;t t
19365 s,@CFLAGS@,$CFLAGS,;t t
19366 s,@LDFLAGS@,$LDFLAGS,;t t
19367 s,@CPPFLAGS@,$CPPFLAGS,;t t
19368 s,@ac_ct_CC@,$ac_ct_CC,;t t
19369 s,@EXEEXT@,$EXEEXT,;t t
19370 s,@OBJEXT@,$OBJEXT,;t t
19372 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19373 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19374 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19375 s,@SET_MAKE@,$SET_MAKE,;t t
19376 s,@EGREP@,$EGREP,;t t
19377 s,@PERL@,$PERL,;t t
19378 s,@X_CFLAGS@,$X_CFLAGS,;t t
19379 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19380 s,@X_LIBS@,$X_LIBS,;t t
19381 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19382 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
19383 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
19384 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
19385 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
19386 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
19387 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
19388 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
19389 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
19390 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
19391 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
19392 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
19393 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
19394 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
19395 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
19396 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
19397 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
19398 s,@RANLIB@,$RANLIB,;t t
19399 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19400 s,@ALLOCA@,$ALLOCA,;t t
19401 s,@USE_NLS@,$USE_NLS,;t t
19402 s,@MSGFMT@,$MSGFMT,;t t
19403 s,@GMSGFMT@,$GMSGFMT,;t t
19404 s,@XGETTEXT@,$XGETTEXT,;t t
19405 s,@CATALOGS@,$CATALOGS,;t t
19406 s,@CATOBJEXT@,$CATOBJEXT,;t t
19407 s,@DATADIRNAME@,$DATADIRNAME,;t t
19408 s,@GMOFILES@,$GMOFILES,;t t
19409 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19410 s,@INTLDEPS@,$INTLDEPS,;t t
19411 s,@INTLLIBS@,$INTLLIBS,;t t
19412 s,@INTLOBJS@,$INTLOBJS,;t t
19413 s,@POFILES@,$POFILES,;t t
19414 s,@POSUB@,$POSUB,;t t
19415 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19416 s,@pkg_config@,$pkg_config,;t t
19417 s,@glib_config@,$glib_config,;t t
19418 s,@gtk_config@,$gtk_config,;t t
19419 s,@gnome_config@,$gnome_config,;t t
19420 s,@have_gnome_help@,$have_gnome_help,;t t
19421 s,@xml_config@,$xml_config,;t t
19422 s,@gdk_pixbuf_config@,$gdk_pixbuf_config,;t t
19423 s,@fortune_tmp@,$fortune_tmp,;t t
19424 s,@INCLUDES@,$INCLUDES,;t t
19425 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
19426 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
19427 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
19428 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
19429 s,@GTK_LIBS@,$GTK_LIBS,;t t
19430 s,@XML_LIBS@,$XML_LIBS,;t t
19431 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
19432 s,@HACK_LIBS@,$HACK_LIBS,;t t
19433 s,@XPM_LIBS@,$XPM_LIBS,;t t
19434 s,@GL_LIBS@,$GL_LIBS,;t t
19435 s,@GLE_LIBS@,$GLE_LIBS,;t t
19436 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
19437 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
19438 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
19439 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
19440 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
19441 s,@NEED_SETUID@,$NEED_SETUID,;t t
19442 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
19443 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
19444 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
19445 s,@XMU_SRCS@,$XMU_SRCS,;t t
19446 s,@XMU_OBJS@,$XMU_OBJS,;t t
19447 s,@XMU_LIBS@,$XMU_LIBS,;t t
19448 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
19449 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
19450 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
19451 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
19452 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
19453 s,@JPEG_EXES@,$JPEG_EXES,;t t
19454 s,@GL_EXES@,$GL_EXES,;t t
19455 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
19456 s,@GL_MEN@,$GL_MEN,;t t
19457 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
19458 s,@GLE_EXES@,$GLE_EXES,;t t
19459 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
19460 s,@GNOMEHELP_Y@,$GNOMEHELP_Y,;t t
19461 s,@GNOMEHELP_N@,$GNOMEHELP_N,;t t
19462 s,@HACKDIR@,$HACKDIR,;t t
19463 s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t
19464 s,@GLADE_DATADIR@,$GLADE_DATADIR,;t t
19465 s,@PO_DATADIR@,$PO_DATADIR,;t t
19466 s,@GNOME_PANELDIR@,$GNOME_PANELDIR,;t t
19467 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
19468 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
19469 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
19470 s,@DEPEND@,$DEPEND,;t t
19471 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
19472 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
19473 s,@LIBOBJS@,$LIBOBJS,;t t
19474 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19479 cat >>$CONFIG_STATUS <<\_ACEOF
19480 # Split the substitutions into bite-sized pieces for seds with
19481 # small command number limits, like on Digital OSF/1 and HP-UX.
19482 ac_max_sed_lines=48
19483 ac_sed_frag=1 # Number of current file.
19484 ac_beg=1 # First line for current file.
19485 ac_end=$ac_max_sed_lines # Line after last line for current file.
19488 while $ac_more_lines; do
19489 if test $ac_beg -gt 1; then
19490 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19492 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19494 if test ! -s $tmp/subs.frag; then
19495 ac_more_lines=false
19497 # The purpose of the label and of the branching condition is to
19498 # speed up the sed processing (if there are no `@' at all, there
19499 # is no need to browse any of the substitutions).
19500 # These are the two extra sed commands mentioned above.
19502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19503 if test -z "$ac_sed_cmds"; then
19504 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19506 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19508 ac_sed_frag=`expr $ac_sed_frag + 1`
19510 ac_end=`expr $ac_end + $ac_max_sed_lines`
19513 if test -z "$ac_sed_cmds"; then
19516 fi # test -n "$CONFIG_FILES"
19519 cat >>$CONFIG_STATUS <<\_ACEOF
19520 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19521 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19523 - | *:- | *:-:* ) # input from stdin
19525 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19527 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19528 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19529 * ) ac_file_in=$ac_file.in ;;
19532 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19533 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19535 X"$ac_file" : 'X\(//\)[^/]' \| \
19536 X"$ac_file" : 'X\(//\)$' \| \
19537 X"$ac_file" : 'X\(/\)' \| \
19538 . : '\(.\)' 2>/dev/null ||
19540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19542 /^X\(\/\/\)$/{ s//\1/; q; }
19543 /^X\(\/\).*/{ s//\1/; q; }
19545 { if $as_mkdir_p; then
19550 while test ! -d "$as_dir"; do
19551 as_dirs="$as_dir $as_dirs"
19552 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19554 X"$as_dir" : 'X\(//\)[^/]' \| \
19555 X"$as_dir" : 'X\(//\)$' \| \
19556 X"$as_dir" : 'X\(/\)' \| \
19557 . : '\(.\)' 2>/dev/null ||
19559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19561 /^X\(\/\/\)$/{ s//\1/; q; }
19562 /^X\(\/\).*/{ s//\1/; q; }
19565 test ! -n "$as_dirs" || mkdir $as_dirs
19566 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19567 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19568 { (exit 1); exit 1; }; }; }
19572 if test "$ac_dir" != .; then
19573 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19574 # A "../" for each directory in $ac_dir_suffix.
19575 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19577 ac_dir_suffix= ac_top_builddir=
19581 .) # No --srcdir option. We are building in place.
19583 if test -z "$ac_top_builddir"; then
19586 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19588 [\\/]* | ?:[\\/]* ) # Absolute path.
19589 ac_srcdir=$srcdir$ac_dir_suffix;
19590 ac_top_srcdir=$srcdir ;;
19591 *) # Relative path.
19592 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19593 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19595 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19597 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19598 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19599 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19600 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19604 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19605 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19608 if test x"$ac_file" != x-; then
19609 { echo "$as_me:$LINENO: creating $ac_file" >&5
19610 echo "$as_me: creating $ac_file" >&6;}
19613 # Let's still pretend it is `configure' which instantiates (i.e., don't
19614 # use $as_me), people would be surprised to read:
19615 # /* config.h. Generated by config.status. */
19616 if test x"$ac_file" = x-; then
19619 configure_input="$ac_file. "
19621 configure_input=$configure_input"Generated from `echo $ac_file_in |
19622 sed 's,.*/,,'` by configure."
19624 # First look for the input files in the build tree, otherwise in the
19626 ac_file_inputs=`IFS=:
19627 for f in $ac_file_in; do
19629 -) echo $tmp/stdin ;;
19631 # Absolute (can't be DOS-style, as IFS=:)
19632 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19633 echo "$as_me: error: cannot find input file: $f" >&2;}
19634 { (exit 1); exit 1; }; }
19637 if test -f "$f"; then
19640 elif test -f "$srcdir/$f"; then
19645 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19646 echo "$as_me: error: cannot find input file: $f" >&2;}
19647 { (exit 1); exit 1; }; }
19650 done` || { (exit 1); exit 1; }
19652 cat >>$CONFIG_STATUS <<_ACEOF
19656 cat >>$CONFIG_STATUS <<\_ACEOF
19658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19659 s,@configure_input@,$configure_input,;t t
19660 s,@srcdir@,$ac_srcdir,;t t
19661 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19662 s,@top_srcdir@,$ac_top_srcdir,;t t
19663 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19664 s,@builddir@,$ac_builddir,;t t
19665 s,@abs_builddir@,$ac_abs_builddir,;t t
19666 s,@top_builddir@,$ac_top_builddir,;t t
19667 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19668 s,@INSTALL@,$ac_INSTALL,;t t
19669 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19671 if test x"$ac_file" != x-; then
19672 mv $tmp/out $ac_file
19680 cat >>$CONFIG_STATUS <<\_ACEOF
19683 # CONFIG_HEADER section.
19686 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19687 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19689 # ac_d sets the value in "#define NAME VALUE" lines.
19690 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19691 ac_dB='[ ].*$,\1#\2'
19694 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19695 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19696 ac_uB='$,\1#\2define\3'
19700 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19701 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19703 - | *:- | *:-:* ) # input from stdin
19705 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19706 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19707 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19708 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19709 * ) ac_file_in=$ac_file.in ;;
19712 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19713 echo "$as_me: creating $ac_file" >&6;}
19715 # First look for the input files in the build tree, otherwise in the
19717 ac_file_inputs=`IFS=:
19718 for f in $ac_file_in; do
19720 -) echo $tmp/stdin ;;
19722 # Absolute (can't be DOS-style, as IFS=:)
19723 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19724 echo "$as_me: error: cannot find input file: $f" >&2;}
19725 { (exit 1); exit 1; }; }
19728 if test -f "$f"; then
19731 elif test -f "$srcdir/$f"; then
19736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19737 echo "$as_me: error: cannot find input file: $f" >&2;}
19738 { (exit 1); exit 1; }; }
19741 done` || { (exit 1); exit 1; }
19742 # Remove the trailing spaces.
19743 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19748 # `conftest.undefs', that substitutes the proper values into
19749 # config.h.in to produce config.h. The first handles `#define'
19750 # templates, and the second `#undef' templates.
19751 # And first: Protect against being on the right side of a sed subst in
19752 # config.status. Protect against being in an unquoted here document
19753 # in config.status.
19754 rm -f conftest.defines conftest.undefs
19755 # Using a here document instead of a string reduces the quoting nightmare.
19756 # Putting comments in sed scripts is not portable.
19758 # `end' is used to avoid that the second main sed command (meant for
19759 # 0-ary CPP macros) applies to n-ary macro definitions.
19760 # See the Autoconf documentation for `clear'.
19761 cat >confdef2sed.sed <<\_ACEOF
19766 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19768 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19771 # If some macros were called several times there might be several times
19772 # the same #defines, which is useless. Nevertheless, we may not want to
19773 # sort them, since we want the *last* AC-DEFINE to be honored.
19774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19776 rm -f confdef2sed.sed
19778 # This sed command replaces #undef with comments. This is necessary, for
19779 # example, in the case of _POSIX_SOURCE, which is predefined and required
19780 # on some systems where configure will not decide to define it.
19781 cat >>conftest.undefs <<\_ACEOF
19782 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19785 # Break up conftest.defines because some shells have a limit on the size
19786 # of here documents, and old seds have small limits too (100 cmds).
19787 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19788 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19789 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19790 echo ' :' >>$CONFIG_STATUS
19791 rm -f conftest.tail
19792 while grep . conftest.defines >/dev/null
19794 # Write a limited-size here document to $tmp/defines.sed.
19795 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19796 # Speed up: don't consider the non `#define' lines.
19797 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19798 # Work around the forget-to-reset-the-flag bug.
19799 echo 't clr' >>$CONFIG_STATUS
19800 echo ': clr' >>$CONFIG_STATUS
19801 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19803 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19805 mv $tmp/out $tmp/in
19807 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19808 rm -f conftest.defines
19809 mv conftest.tail conftest.defines
19811 rm -f conftest.defines
19812 echo ' fi # grep' >>$CONFIG_STATUS
19813 echo >>$CONFIG_STATUS
19815 # Break up conftest.undefs because some shells have a limit on the size
19816 # of here documents, and old seds have small limits too (100 cmds).
19817 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19818 rm -f conftest.tail
19819 while grep . conftest.undefs >/dev/null
19821 # Write a limited-size here document to $tmp/undefs.sed.
19822 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19823 # Speed up: don't consider the non `#undef'
19824 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19825 # Work around the forget-to-reset-the-flag bug.
19826 echo 't clr' >>$CONFIG_STATUS
19827 echo ': clr' >>$CONFIG_STATUS
19828 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19830 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19832 mv $tmp/out $tmp/in
19834 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19835 rm -f conftest.undefs
19836 mv conftest.tail conftest.undefs
19838 rm -f conftest.undefs
19840 cat >>$CONFIG_STATUS <<\_ACEOF
19841 # Let's still pretend it is `configure' which instantiates (i.e., don't
19842 # use $as_me), people would be surprised to read:
19843 # /* config.h. Generated by config.status. */
19844 if test x"$ac_file" = x-; then
19845 echo "/* Generated by configure. */" >$tmp/config.h
19847 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19849 cat $tmp/in >>$tmp/config.h
19851 if test x"$ac_file" != x-; then
19852 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19854 echo "$as_me: $ac_file is unchanged" >&6;}
19856 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19858 X"$ac_file" : 'X\(//\)[^/]' \| \
19859 X"$ac_file" : 'X\(//\)$' \| \
19860 X"$ac_file" : 'X\(/\)' \| \
19861 . : '\(.\)' 2>/dev/null ||
19863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19865 /^X\(\/\/\)$/{ s//\1/; q; }
19866 /^X\(\/\).*/{ s//\1/; q; }
19868 { if $as_mkdir_p; then
19873 while test ! -d "$as_dir"; do
19874 as_dirs="$as_dir $as_dirs"
19875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19877 X"$as_dir" : 'X\(//\)[^/]' \| \
19878 X"$as_dir" : 'X\(//\)$' \| \
19879 X"$as_dir" : 'X\(/\)' \| \
19880 . : '\(.\)' 2>/dev/null ||
19882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19884 /^X\(\/\/\)$/{ s//\1/; q; }
19885 /^X\(\/\).*/{ s//\1/; q; }
19888 test ! -n "$as_dirs" || mkdir $as_dirs
19889 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19891 { (exit 1); exit 1; }; }; }
19894 mv $tmp/config.h $ac_file
19898 rm -f $tmp/config.h
19902 cat >>$CONFIG_STATUS <<\_ACEOF
19905 # CONFIG_COMMANDS section.
19907 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19908 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19909 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19910 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19912 X"$ac_dest" : 'X\(//\)[^/]' \| \
19913 X"$ac_dest" : 'X\(//\)$' \| \
19914 X"$ac_dest" : 'X\(/\)' \| \
19915 . : '\(.\)' 2>/dev/null ||
19917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19919 /^X\(\/\/\)$/{ s//\1/; q; }
19920 /^X\(\/\).*/{ s//\1/; q; }
19924 if test "$ac_dir" != .; then
19925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19926 # A "../" for each directory in $ac_dir_suffix.
19927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19929 ac_dir_suffix= ac_top_builddir=
19933 .) # No --srcdir option. We are building in place.
19935 if test -z "$ac_top_builddir"; then
19938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19940 [\\/]* | ?:[\\/]* ) # Absolute path.
19941 ac_srcdir=$srcdir$ac_dir_suffix;
19942 ac_top_srcdir=$srcdir ;;
19943 *) # Relative path.
19944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19947 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19949 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19950 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19951 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19952 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19955 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19956 echo "$as_me: executing $ac_dest commands" >&6;}
19960 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
19961 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
19962 rm -f intltool-extract.out
19964 mv -f intltool-extract.out intltool-extract
19966 chmod ugo+x intltool-extract
19967 chmod u+w intltool-extract
19969 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
19970 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
19971 rm -f intltool-merge.out
19973 mv -f intltool-merge.out intltool-merge
19975 chmod ugo+x intltool-merge
19976 chmod u+w intltool-merge
19978 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
19979 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
19980 rm -f intltool-update.out
19982 mv -f intltool-update.out intltool-update
19984 chmod ugo+x intltool-update
19985 chmod u+w intltool-update
19988 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
19989 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
19995 cat >>$CONFIG_STATUS <<\_ACEOF
19997 { (exit 0); exit 0; }
19999 chmod +x $CONFIG_STATUS
20000 ac_clean_files=$ac_clean_files_save
20003 # configure is writing to config.log, and then calls config.status.
20004 # config.status does its own redirection, appending to config.log.
20005 # Unfortunately, on DOS this fails, as config.log is still kept open
20006 # by configure, so config.status won't be able to write to it; its
20007 # output is simply discarded. So we exec the FD to /dev/null,
20008 # effectively closing config.log, so it can be properly (re)opened and
20009 # appended to by config.status. When coming back to configure, we
20010 # need to make the FD available again.
20011 if test "$no_create" != yes; then
20013 ac_config_status_args=
20014 test "$silent" = yes &&
20015 ac_config_status_args="$ac_config_status_args --quiet"
20017 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20019 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20020 # would make configure fail if this is the last instruction.
20021 $ac_cs_success || { (exit 1); exit 1; }
20025 ###############################################################################
20027 # Print some warnings at the end.
20029 ###############################################################################
20031 warn_prefix_1=" Warning:"
20032 warn_prefix_2=" Note:"
20033 warn_prefix="$warn_prefix_1"
20036 warnsep=' #################################################################'
20039 if test "$warning" = no ; then
20040 echo '' ; echo "$warnsep" ; echo ''
20047 if test "$warning" = long ; then echo '' ; fi
20050 echo "$warn_prefix $rest"
20057 if test "$was" != no ; then echo '' ; fi
20059 echo "$warn_prefix $rest"
20069 warn_prefix="$warn_prefix_2"
20071 warn_prefix="$warn_prefix_1"
20075 warn_prefix="$warn_prefix_2"
20077 warn_prefix="$warn_prefix_1"
20081 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
20082 warn 'The SGI saver extension was requested, but was not found.'
20085 if test "$with_mit_req" = yes -a "$have_mit" = no ; then
20086 warn 'The MIT saver extension was requested, but was not found.'
20089 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
20090 warn 'The XIdle extension was requested, but was not found.'
20093 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
20094 warn 'The XSHM extension was requested, but was not found.'
20097 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
20098 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
20101 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
20102 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
20105 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
20106 warn 'The DPMS extension was requested, but was not found.'
20109 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
20110 warn 'The Xinerama extension was requested, but was not found.'
20113 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
20114 warn 'The XF86VMODE extension was requested, but was not found.'
20117 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
20118 warn "Checking of /proc/interrupts was requested, but it's bogus."
20122 warn2 'Though the Motif front-end to xscreensaver is still'
20123 warn2 'maintained, it is no longer being updated with new'
20124 warn2 'features: all new development on the xscreensaver-demo'
20125 warn2 'program is happening in the GTK version, and not in the'
20126 warn2 'Motif version. It is recommended that you build against'
20127 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
20130 if test "$have_motif" = no -a "$have_gtk" = no; then
20132 if test "$with_motif" = yes; then
20133 warnL "Neither the GTK nor Motif libraries were found; the"
20134 warn2 "\`xscreensaver-demo' program requires one of these."
20138 warnL "The GTK libraries do not seem to be available; the"
20139 warn2 "\`xscreensaver-demo' program requires them."
20141 warn2 'You can use Motif or Lesstif instead of GTK (use the'
20142 warn2 "\`--with-motif' option) but that is NOT recommended."
20146 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
20147 warnL "Use of Motif was requested, but it wasn't found;"
20148 warn2 "Gtk will be used instead."
20150 elif test "$jurassic_gtk" = yes ; then
20154 v="$ac_gtk_version_string"
20155 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
20156 warnL "Use of Gtk was requested, but its version number is unknown;"
20157 elif test "$with_gtk_req" = yes ; then
20158 warnL "Use of Gtk was requested, but it is version $v;"
20160 warnL "Gtk was found on this system, but it is version $v;"
20163 warn2 "Gtk $pref_gtk or newer is required."
20165 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
20166 warnL "Use of Gtk was requested, but it wasn't found."
20169 if test "$gtk2_halfassed" != no ; then
20170 warnL "GTK version $gtk2_halfassed was found, but at least one supporting"
20171 warn2 "library ($gtk2_halfassed_lib) was not, so GTK 2.x can't be used."
20172 v="$ac_gtk_version_string"
20173 warn2 "GTK $v is also installed, so it will be used instead."
20174 warn2 "Please read the above output and the \`config.log' file"
20175 warn2 "for more details."
20179 if test "$with_gnome_req" = yes -a "$have_gnome" = no \
20180 -a "$have_gtk2" = no; then
20181 # don't issue this warning if we have GTK2 -- in that case, the
20182 # Gnome-specific code isn't needed.
20183 warn 'Use of the Gnome Control Panel was requested, but the necessary'
20184 warn2 'headers and/or libraries were not found.'
20187 if test "$have_gtk" = yes ; then
20188 if test "$have_xml" = no ; then
20189 if test "$with_xml_req" = yes ; then
20190 warn 'Use of the XML library was requested, but the necessary'
20191 warn2 'headers and/or libraries were not found.'
20193 warn 'GTK is being used, but the XML library was not found.'
20196 if test "$xml_halfassed" = yes ; then
20198 if test "$have_zlib" = yes ; then
20199 which="XML libraries"
20201 which="\`zlib' library"
20205 warn2 'More specifically, we found the headers, but not the'
20206 warn2 "$which; so either XML is half-installed on this"
20207 warn2 "system, or something else went wrong. The \`config.log'"
20208 warn2 'file might contain some clues.'
20212 warn2 "Without XML, the per-display-mode \`Settings' dialogs"
20213 warn2 'will not be available. Specify the location of the XML'
20214 warn2 'library through the --with-xml option to configure.'
20218 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
20219 warn "GTK is being used, but the GDK-Pixbuf library and/or"
20220 warn2 "headers were not found. That can't be good. Please"
20221 warn2 "install the GDK-Pixbuf development kit and re-configure."
20224 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
20226 preferred_lesstif=0.92
20228 if test "$lesstif_version" = unknown; then
20229 warnL "Unable to determine the LessTif version number!"
20230 warn2 "Make sure you are using version $preferred_lesstif or newer."
20231 warn2 "See <http://www.lesstif.org/>."
20233 elif test \! $lesstif_version -gt 82; then
20234 warnL "LessTif version $lesstif_version_string is being used."
20235 warn2 "LessTif versions 0.82 and earlier are too buggy to"
20236 warn2 "use with XScreenSaver; it is strongly recommended"
20237 warn2 "that you upgrade to at least version $preferred_lesstif!"
20238 warn2 "See <http://www.lesstif.org/>."
20243 if test "$have_motif" = yes -a "$have_gtk" = no ; then
20244 warn 'Motif is being used, and GTK is not.'
20250 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
20251 warnL 'Use of XPM was requested, but it was not found.'
20254 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
20255 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
20258 if test "$have_xpm" = no -a "$have_gdk_pixbuf" = no || \
20259 test "$gdk_pixbuf_halfassed" = yes; then
20261 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
20263 elif test "$with_xpm_req" = no ; then
20264 warnL 'The XPM library is not being used.'
20266 warnL 'The XPM library was not found.'
20269 if test "$with_gdk_pixbuf_req" = yes ; then
20271 elif test "$with_gdk_pixbuf_req" = no ; then
20272 warnL 'The GDK-Pixbuf library is not being used.'
20274 warnL 'The GDK-Pixbuf library was not found.'
20277 if test "$gdk_pixbuf_halfassed" = yes ; then
20279 warn2 'More specifically, we found the headers, but not the'
20280 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
20281 warn2 "system, or something else went wrong. The \`config.log'"
20282 warn2 'file might contain some clues.'
20286 warn2 'Some of the demos will not be as colorful as they'
20287 warn2 'could be. You should consider installing Pixbuf or'
20288 warn2 'XPM and re-running configure. The Pixbuf library is'
20289 warn2 'a part of GNOME. The XPM library comes with most'
20290 warn2 'X11 installations; you can also find it at the X11'
20291 warn2 'archive sites, such as <http://sunsite.unc.edu/>.'
20293 warn2 'GDK-Pixbuf is recommended over XPM, as it provides'
20294 warn2 'support for more image formats.'
20298 if test "$have_jpeg" = no ; then
20299 if test "$with_jpeg_req" = yes ; then
20300 warnL 'Use of libjpeg was requested, but it was not found.'
20301 elif test "$with_jpeg_req" = no ; then
20302 noteL 'The JPEG library is not being used.'
20304 noteL 'The JPEG library was not found.'
20307 if test "$jpeg_halfassed" = yes ; then
20309 warn2 'More specifically, we found the headers, but not the'
20310 warn2 'library; so either JPEG is half-installed on this'
20311 warn2 "system, or something else went wrong. The \`config.log'"
20312 warn2 'file might contain some clues.'
20316 if test "$have_gdk_pixbuf" = no ; then
20317 warn2 "This means that it won't be possible for the image-manipulating"
20318 warn2 "display modes to load files from disk; and it also means that"
20319 warn2 "the \`webcollage' program will be much slower."
20321 warn2 "This means the \`webcollage' program will be much slower."
20326 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
20327 preferred_mesagl=3.4
20328 mgv="$ac_mesagl_version_string"
20329 pgl="$preferred_mesagl"
20331 if test "$ac_mesagl_version" = unknown; then
20332 warnL "Unable to determine the MesaGL version number!"
20333 warn2 "Make sure you are using version $preferred_mesagl or newer."
20335 elif test \! "$ac_mesagl_version" -gt 2006; then
20336 warnL "MesaGL version number is $mgv --"
20337 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
20338 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
20340 elif test \! "$ac_mesagl_version" -gt 3003; then
20341 warnL "MesaGL version number is $mgv --"
20342 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
20343 warn2 "that you upgrade to $pgl or newer."
20347 if test "$have_gl" = no ; then
20348 if test "$with_gl_req" = yes ; then
20349 warnL 'Use of GL was requested, but it was not found.'
20350 elif test "$with_gl_req" = no ; then
20351 noteL 'The OpenGL 3D library is not being used.'
20353 noteL 'The OpenGL 3D library was not found.'
20356 if test "$gl_halfassed" = yes ; then
20358 warn2 'More specifically, we found the headers, but not the'
20359 warn2 'libraries; so either GL is half-installed on this'
20360 warn2 "system, or something else went wrong. The \`config.log'"
20361 warn2 'file might contain some clues.'
20365 warn2 'Those demos which use 3D will not be built or installed.'
20366 warn2 'You might want to consider installing OpenGL and'
20367 warn2 "re-running configure. If your vendor doesn't ship"
20368 warn2 'their own implementation of OpenGL, you can get a free'
20369 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
20370 warn2 'info, see <http://www.opengl.org/>.'
20375 if test "$have_gl" = yes -a "$have_gle" = no ; then
20377 # nobody cares about this; don't print the warning unless it was
20378 # requested and not found, or halfway-found.
20379 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
20381 if test "$with_gle_req" = yes ; then
20382 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
20383 warn2 'it was not found (though the OpenGL library was found, and'
20384 warn2 'is being used.)'
20385 elif test "$with_gle_req" = no ; then
20386 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
20387 warn2 'library is not.'
20389 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
20393 if test "$gle_halfassed" = yes ; then
20395 warn2 'More specifically, we found the headers, but not the'
20396 warn2 'libraries; so either GLE is half-installed on this'
20397 warn2 "system, or something else went wrong. The \`config.log'"
20398 warn2 'file might contain some clues.'
20402 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
20403 warn2 'will not be built or installed. You might want to consider'
20404 warn2 'installing GLE and re-running configure. You can find the'
20405 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
20406 warn2 'OpenGL info, see <http://www.opengl.org/>.'
20412 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
20413 warn 'Use of XReadDisplay was requested, but it was not found.'
20416 if test -n "$with_fortune_req"; then
20417 if test "$with_fortune_req" != "$ac_cv_fortune_program" ; then
20418 warnL "$with_fortune_req was requested as the Fortune program,"
20419 warn2 "but was not found. The default will be used instead."
20423 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
20424 warn 'Use of Kerberos was requested, but it was not found.'
20427 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
20428 warn 'Use of PAM was requested, but it was not found.'
20431 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
20432 warn 'Use of shadow passwords was requested, but they were not found.'
20436 # You are in a twisty maze of namespaces and syntaxes, all alike.
20437 # Fuck the skull of Unix.
20439 eval bindir=${bindir}
20440 eval bindir=${bindir}
20441 eval bindir=${bindir}
20442 eval bindir=${bindir}
20443 eval bindir=${bindir}
20444 eval bindir=${bindir}
20445 eval HACKDIR=${HACKDIR}
20446 eval HACKDIR=${HACKDIR}
20447 eval HACKDIR=${HACKDIR}
20448 eval HACKDIR=${HACKDIR}
20449 eval HACKDIR=${HACKDIR}
20450 eval HACKDIR=${HACKDIR}
20451 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20452 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20453 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20454 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20455 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20456 eval HACK_CONF_DIR=${HACK_CONF_DIR}
20458 # canonicalize slashes.
20459 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
20460 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
20461 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
20464 # Sanity check the hackdir
20465 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
20466 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
20468 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
20469 There will be an executable installed with that name, so
20470 that can't be the name of a directory as well. Please
20471 re-configure with a different directory name." >&5
20472 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
20473 There will be an executable installed with that name, so
20474 that can't be the name of a directory as well. Please
20475 re-configure with a different directory name." >&2;}
20476 { (exit 1); exit 1; }; }
20483 # Now let's see if there's a previous RPM version already installed. Blargh!
20487 rpmv=`(rpm -qv xscreensaver) 2>/dev/null | \
20488 sed -n 's/^xscreensaver-\([0-9][0-9]*[.][0-9][0-9]*\)-.*$/\1/p'`
20491 if test \! -z "$rpmv" ; then
20492 rpmbdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
20493 rpmhdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/attraction$@\1@p'`
20496 warnL "There is already an installed RPM of xscreensaver $rpmv"
20497 warn2 "on this system. You might want to remove it (with"
20498 warn2 '"rpm -ve xscreensaver") before running "make install"'
20499 warn2 "from this directory."
20501 warn2 "Alternately, you could build this version of xscreensaver"
20502 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
20503 warn2 "file is included. See the RPM documentation for more info."
20506 if test "$rpmbdir" = "$rpmhdir" ; then
20507 warn2 "The RPM version was installed in $rpmbdir/."
20509 warn2 "The RPM version was installed in $rpmbdir/,"
20510 warn2 "with demos in $rpmhdir/."
20517 if test "${bindir}" = "${HACKDIR}" ; then
20521 if test "$do_dir_warning" = yes; then
20525 echo ' When you run "make install", the "xscreensaver",'
20526 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
20527 echo " will be installed in ${bindir}/."
20529 echo " The various graphics demos (160+ different executables) will"
20530 echo " be installed in ${HACKDIR}/."
20532 echo " If you would prefer the demos to be installed elsewhere,"
20533 echo " you should re-run configure with the --with-hackdir=DIR"
20534 echo " option. For more information, run \`./configure --help'."
20538 if test "$warning" != no; then
20539 echo '' ; echo "$warnsep" ; echo ''
20542 if test "$do_dir_warning" = no; then
20543 if test "$warning" = no; then
20546 echo "User programs will be installed in ${bindir}/"
20547 echo "Screen savers will be installed in ${HACKDIR}/"
20548 echo "Configuration will be installed in ${HACK_CONF_DIR}/"