Forced checkin with no changes due to missed log entry from in commit
[geda-pcb/gde.git] / configure
blob949eb36881536a8e9a59b35258fab65123a3a8ca
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/draw.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 am__isrc
657 CYGPATH_W
658 PACKAGE
659 VERSION
660 ACLOCAL
661 AUTOCONF
662 AUTOMAKE
663 AUTOHEADER
664 MAKEINFO
665 install_sh
666 STRIP
667 INSTALL_STRIP_PROGRAM
668 mkdir_p
670 SET_MAKE
671 am__leading_dot
672 AMTAR
673 am__tar
674 am__untar
675 MAINTAINER_MODE_TRUE
676 MAINTAINER_MODE_FALSE
677 MAINT
678 build
679 build_cpu
680 build_vendor
681 build_os
682 host
683 host_cpu
684 host_vendor
685 host_os
686 WIN32
687 WIN32_TRUE
688 WIN32_FALSE
690 CFLAGS
691 LDFLAGS
692 CPPFLAGS
693 ac_ct_CC
694 EXEEXT
695 OBJEXT
696 DEPDIR
697 am__include
698 am__quote
699 AMDEP_TRUE
700 AMDEP_FALSE
701 AMDEPBACKSLASH
702 CCDEPMODE
703 am__fastdepCC_TRUE
704 am__fastdepCC_FALSE
707 LEX_OUTPUT_ROOT
708 LEXLIB
709 LEX_PATH
710 YACC
711 YFLAGS
712 YACC_PATH
713 RANLIB
714 TGIF
715 MISSING_TGIF_TRUE
716 MISSING_TGIF_FALSE
717 XPMTOPPM
718 PPMTOWINICON
719 MISSING_XPMTOPPM_TRUE
720 MISSING_XPMTOPPM_FALSE
721 CONVERT
722 MISSING_CONVERT_TRUE
723 MISSING_CONVERT_FALSE
725 MKINFO
726 PERL
727 WITH_DBUS_TRUE
728 WITH_DBUS_FALSE
729 PKG_CONFIG
730 DBUS_CFLAGS
731 DBUS_LIBS
732 HIDLIST
733 HIDLIBS
735 WISH
736 GNUM4
737 LATEX
738 MISSING_LATEX_TRUE
739 MISSING_LATEX_FALSE
740 PDFLATEX
741 MISSING_PDFLATEX_TRUE
742 MISSING_PDFLATEX_FALSE
743 DVIPS
744 MISSING_DVIPS_TRUE
745 MISSING_DVIPS_FALSE
746 PS2PDF
747 MISSING_PS2PDF_TRUE
748 MISSING_PS2PDF_FALSE
749 GREP
750 EGREP
751 XMKMF
752 X_CFLAGS
753 X_PRE_LIBS
754 X_LIBS
755 X_EXTRA_LIBS
756 GTK_CFLAGS
757 GTK_LIBS
758 GLIB_CFLAGS
759 GLIB_LIBS
760 GDLIB_CONFIG
761 PNG_TRUE
762 PNG_FALSE
763 GIF_TRUE
764 GIF_FALSE
765 FONTFILENAME
766 PCBLIBDIR
767 LIBRARYFILENAME
768 PCBTREEDIR
769 PCBTREEPATH
770 BTNMOD
771 TOPDIRS
772 LIBOBJS
773 LTLIBOBJS'
774 ac_subst_files=''
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
784 YACC
785 YFLAGS
786 PKG_CONFIG
787 DBUS_CFLAGS
788 DBUS_LIBS
789 XMKMF
790 GTK_CFLAGS
791 GTK_LIBS
792 GLIB_CFLAGS
793 GLIB_LIBS'
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
842 ac_prev=
843 ac_dashdash=
844 for ac_option
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
849 ac_prev=
850 continue
853 case $ac_option in
854 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *) ac_optarg=yes ;;
856 esac
858 # Accept the important Cygnus configure options, so we can diagnose typos.
860 case $ac_dashdash$ac_option in
862 ac_dashdash=yes ;;
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
881 --config-cache | -C)
882 cache_file=config.cache ;;
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
896 -disable-* | --disable-*)
897 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
900 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
901 { (exit 1); exit 1; }; }
902 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
903 eval enable_$ac_feature=no ;;
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
915 -enable-* | --enable-*)
916 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
919 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
920 { (exit 1); exit 1; }; }
921 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
922 eval enable_$ac_feature=\$ac_optarg ;;
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
1071 sbindir=$ac_optarg ;;
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
1082 sharedstatedir=$ac_optarg ;;
1084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
1087 site=$ac_optarg ;;
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1112 -with-* | --with-*)
1113 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1116 { echo "$as_me: error: invalid package name: $ac_package" >&2
1117 { (exit 1); exit 1; }; }
1118 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1119 eval with_$ac_package=\$ac_optarg ;;
1121 -without-* | --without-*)
1122 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 { echo "$as_me: error: invalid package name: $ac_package" >&2
1126 { (exit 1); exit 1; }; }
1127 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1128 eval with_$ac_package=no ;;
1130 --x)
1131 # Obsolete; use --with-x.
1132 with_x=yes ;;
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1148 -*) { echo "$as_me: error: unrecognized option: $ac_option
1149 Try \`$0 --help' for more information." >&2
1150 { (exit 1); exit 1; }; }
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1157 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1158 { (exit 1); exit 1; }; }
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1163 # FIXME: should be removed in autoconf 3.0.
1164 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170 esac
1171 done
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 { echo "$as_me: error: missing argument to $ac_option" >&2
1176 { (exit 1); exit 1; }; }
1179 # Be sure to have absolute directory names.
1180 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1185 eval ac_val=\$$ac_var
1186 case $ac_val in
1187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 esac
1190 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1191 { (exit 1); exit 1; }; }
1192 done
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used." >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1212 ac_tool_prefix=
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215 test "$silent" = yes && exec 6>/dev/null
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 { echo "$as_me: error: Working directory cannot be determined" >&2
1222 { (exit 1); exit 1; }; }
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 { echo "$as_me: error: pwd does not report name of working directory" >&2
1225 { (exit 1); exit 1; }; }
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir=`$as_dirname -- "$0" ||
1233 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$0" : 'X\(//\)[^/]' \| \
1235 X"$0" : 'X\(//\)$' \| \
1236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237 echo X"$0" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239 s//\1/
1242 /^X\(\/\/\)[^/].*/{
1243 s//\1/
1246 /^X\(\/\/\)$/{
1247 s//\1/
1250 /^X\(\/\).*/{
1251 s//\1/
1254 s/.*/./; q'`
1255 srcdir=$ac_confdir
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 srcdir=..
1259 else
1260 ac_srcdir_defaulted=no
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1265 { (exit 1); exit 1; }; }
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 ac_abs_confdir=`(
1269 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1270 { (exit 1); exit 1; }; }
1271 pwd)`
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 srcdir=.
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1279 case $srcdir in
1280 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 esac
1282 for ac_var in $ac_precious_vars; do
1283 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_env_${ac_var}_value=\$${ac_var}
1285 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 done
1290 # Report the --help message.
1292 if test "$ac_init_help" = "long"; then
1293 # Omit some internal or obsolete options to make the list less imposing.
1294 # This message is too long to be a string in the A/UX 3.1 sh.
1295 cat <<_ACEOF
1296 \`configure' configures this package to adapt to many kinds of systems.
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE. See below for descriptions of some of the useful variables.
1303 Defaults for the options are specified in brackets.
1305 Configuration:
1306 -h, --help display this help and exit
1307 --help=short display options specific to this package
1308 --help=recursive display the short help of all the included packages
1309 -V, --version display version information and exit
1310 -q, --quiet, --silent do not print \`checking...' messages
1311 --cache-file=FILE cache test results in FILE [disabled]
1312 -C, --config-cache alias for \`--cache-file=config.cache'
1313 -n, --no-create do not create output files
1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1316 Installation directories:
1317 --prefix=PREFIX install architecture-independent files in PREFIX
1318 [$ac_default_prefix]
1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 [PREFIX]
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1327 For better control, use the options below.
1329 Fine tuning of the installation directories:
1330 --bindir=DIR user executables [EPREFIX/bin]
1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1336 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1344 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1345 --htmldir=DIR html documentation [DOCDIR]
1346 --dvidir=DIR dvi documentation [DOCDIR]
1347 --pdfdir=DIR pdf documentation [DOCDIR]
1348 --psdir=DIR ps documentation [DOCDIR]
1349 _ACEOF
1351 cat <<\_ACEOF
1353 Program names:
1354 --program-prefix=PREFIX prepend PREFIX to installed program names
1355 --program-suffix=SUFFIX append SUFFIX to installed program names
1356 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1358 X features:
1359 --x-includes=DIR X include files are in DIR
1360 --x-libraries=DIR X library files are in DIR
1362 System types:
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 _ACEOF
1368 if test -n "$ac_init_help"; then
1370 cat <<\_ACEOF
1372 Optional Features:
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-maintainer-mode enable make rules and dependencies not useful
1376 (and sometimes confusing) to the casual installer
1377 --disable-dependency-tracking speeds up one-time build
1378 --enable-dependency-tracking do not reject slow dependency extractors
1379 --enable-doc Build and install the documentation [default=yes]
1380 --enable-dbus Enable DBUS IPC
1381 --disable-gif Disable support for gif output when the png HID is used [default=include gif support]
1382 --disable-jpeg Disable support for JPEG output when the png HID is used [default=include JPEG support]
1383 --disable-png Disable support for PNG output when the png HID is used [default=include PNG support]
1384 --disable-xrender Compile and link with Xrender default=yes
1385 --enable-dmalloc Compile and link with dmalloc for malloc debugging default=no
1386 --enable-efence Link with ElectricFence for malloc debugging default=no
1388 Optional Packages:
1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1391 --with-gui= Specify the GUI to use: batch gtk lesstif [default=gtk]
1392 --with-printer= Specify the printer: lpr [default=lpr]
1393 --with-exporters= Enable export devices: bom gerber nelma png ps [default=bom gerber nelma png ps]
1394 --with-x use the X Window System
1396 Some influential environment variables:
1397 CC C compiler command
1398 CFLAGS C compiler flags
1399 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1400 nonstandard directory <lib dir>
1401 LIBS libraries to pass to the linker, e.g. -l<library>
1402 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1403 you have headers in a nonstandard directory <include dir>
1404 CPP C preprocessor
1405 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1406 the first program found out of: `bison -y', `byacc', `yacc'.
1407 YFLAGS The list of arguments that will be passed by default to $YACC.
1408 This script will default YFLAGS to the empty string to avoid a
1409 default value of `-d' given by some make applications.
1410 PKG_CONFIG path to pkg-config utility
1411 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1412 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1413 XMKMF Path to xmkmf, Makefile generator for X Window System
1414 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1415 GTK_LIBS linker flags for GTK, overriding pkg-config
1416 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1417 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1422 _ACEOF
1423 ac_status=$?
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" || continue
1430 ac_builddir=.
1432 case "$ac_dir" in
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442 esac
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1448 case $srcdir in
1449 .) # We are building in place.
1450 ac_srcdir=.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 esac
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1472 else
1473 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 fi || ac_status=$?
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1476 done
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1481 cat <<\_ACEOF
1482 configure
1483 generated by GNU Autoconf 2.61
1485 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1486 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1489 _ACEOF
1490 exit
1492 cat >config.log <<_ACEOF
1493 This file contains any messages produced by compilers while
1494 running configure, to aid debugging if configure makes a mistake.
1496 It was created by $as_me, which was
1497 generated by GNU Autoconf 2.61. Invocation command line was
1499 $ $0 $@
1501 _ACEOF
1502 exec 5>>config.log
1504 cat <<_ASUNAME
1505 ## --------- ##
1506 ## Platform. ##
1507 ## --------- ##
1509 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1510 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1511 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1512 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1513 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1515 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1516 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1518 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1519 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1520 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1521 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1522 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1523 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1524 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1526 _ASUNAME
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 echo "PATH: $as_dir"
1534 done
1535 IFS=$as_save_IFS
1537 } >&5
1539 cat >&5 <<_ACEOF
1542 ## ----------- ##
1543 ## Core tests. ##
1544 ## ----------- ##
1546 _ACEOF
1549 # Keep a trace of the command line.
1550 # Strip out --no-create and --no-recursion so they do not pile up.
1551 # Strip out --silent because we don't want to record it for future runs.
1552 # Also quote any args containing shell meta-characters.
1553 # Make two passes to allow for proper duplicate-argument suppression.
1554 ac_configure_args=
1555 ac_configure_args0=
1556 ac_configure_args1=
1557 ac_must_keep_next=false
1558 for ac_pass in 1 2
1560 for ac_arg
1562 case $ac_arg in
1563 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565 | -silent | --silent | --silen | --sile | --sil)
1566 continue ;;
1567 *\'*)
1568 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1569 esac
1570 case $ac_pass in
1571 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1573 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1574 if test $ac_must_keep_next = true; then
1575 ac_must_keep_next=false # Got value, back to normal.
1576 else
1577 case $ac_arg in
1578 *=* | --config-cache | -C | -disable-* | --disable-* \
1579 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1580 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1581 | -with-* | --with-* | -without-* | --without-* | --x)
1582 case "$ac_configure_args0 " in
1583 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1584 esac
1586 -* ) ac_must_keep_next=true ;;
1587 esac
1589 ac_configure_args="$ac_configure_args '$ac_arg'"
1591 esac
1592 done
1593 done
1594 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1595 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1597 # When interrupted or exit'd, cleanup temporary files, and complete
1598 # config.log. We remove comments because anyway the quotes in there
1599 # would cause problems or look ugly.
1600 # WARNING: Use '\'' to represent an apostrophe within the trap.
1601 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1602 trap 'exit_status=$?
1603 # Save into config.log some information that might help in debugging.
1605 echo
1607 cat <<\_ASBOX
1608 ## ---------------- ##
1609 ## Cache variables. ##
1610 ## ---------------- ##
1611 _ASBOX
1612 echo
1613 # The following way of writing the cache mishandles newlines in values,
1615 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1616 eval ac_val=\$$ac_var
1617 case $ac_val in #(
1618 *${as_nl}*)
1619 case $ac_var in #(
1620 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1621 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1622 esac
1623 case $ac_var in #(
1624 _ | IFS | as_nl) ;; #(
1625 *) $as_unset $ac_var ;;
1626 esac ;;
1627 esac
1628 done
1629 (set) 2>&1 |
1630 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1631 *${as_nl}ac_space=\ *)
1632 sed -n \
1633 "s/'\''/'\''\\\\'\'''\''/g;
1634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1635 ;; #(
1637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639 esac |
1640 sort
1642 echo
1644 cat <<\_ASBOX
1645 ## ----------------- ##
1646 ## Output variables. ##
1647 ## ----------------- ##
1648 _ASBOX
1649 echo
1650 for ac_var in $ac_subst_vars
1652 eval ac_val=\$$ac_var
1653 case $ac_val in
1654 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 esac
1656 echo "$ac_var='\''$ac_val'\''"
1657 done | sort
1658 echo
1660 if test -n "$ac_subst_files"; then
1661 cat <<\_ASBOX
1662 ## ------------------- ##
1663 ## File substitutions. ##
1664 ## ------------------- ##
1665 _ASBOX
1666 echo
1667 for ac_var in $ac_subst_files
1669 eval ac_val=\$$ac_var
1670 case $ac_val in
1671 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1672 esac
1673 echo "$ac_var='\''$ac_val'\''"
1674 done | sort
1675 echo
1678 if test -s confdefs.h; then
1679 cat <<\_ASBOX
1680 ## ----------- ##
1681 ## confdefs.h. ##
1682 ## ----------- ##
1683 _ASBOX
1684 echo
1685 cat confdefs.h
1686 echo
1688 test "$ac_signal" != 0 &&
1689 echo "$as_me: caught signal $ac_signal"
1690 echo "$as_me: exit $exit_status"
1691 } >&5
1692 rm -f core *.core core.conftest.* &&
1693 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1694 exit $exit_status
1696 for ac_signal in 1 2 13 15; do
1697 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1698 done
1699 ac_signal=0
1701 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1702 rm -f -r conftest* confdefs.h
1704 # Predefined preprocessor variables.
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_NAME "$PACKAGE_NAME"
1708 _ACEOF
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1713 _ACEOF
1716 cat >>confdefs.h <<_ACEOF
1717 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1718 _ACEOF
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_STRING "$PACKAGE_STRING"
1723 _ACEOF
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1728 _ACEOF
1731 # Let the site file select an alternate cache file if it wants to.
1732 # Prefer explicitly selected file to automatically selected ones.
1733 if test -n "$CONFIG_SITE"; then
1734 set x "$CONFIG_SITE"
1735 elif test "x$prefix" != xNONE; then
1736 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1737 else
1738 set x "$ac_default_prefix/share/config.site" \
1739 "$ac_default_prefix/etc/config.site"
1741 shift
1742 for ac_site_file
1744 if test -r "$ac_site_file"; then
1745 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1746 echo "$as_me: loading site script $ac_site_file" >&6;}
1747 sed 's/^/| /' "$ac_site_file" >&5
1748 . "$ac_site_file"
1750 done
1752 if test -r "$cache_file"; then
1753 # Some versions of bash will fail to source /dev/null (special
1754 # files actually), so we avoid doing that.
1755 if test -f "$cache_file"; then
1756 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1757 echo "$as_me: loading cache $cache_file" >&6;}
1758 case $cache_file in
1759 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1760 *) . "./$cache_file";;
1761 esac
1763 else
1764 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1765 echo "$as_me: creating cache $cache_file" >&6;}
1766 >$cache_file
1769 # Check that the precious variables saved in the cache have kept the same
1770 # value.
1771 ac_cache_corrupted=false
1772 for ac_var in $ac_precious_vars; do
1773 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1774 eval ac_new_set=\$ac_env_${ac_var}_set
1775 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1776 eval ac_new_val=\$ac_env_${ac_var}_value
1777 case $ac_old_set,$ac_new_set in
1778 set,)
1779 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1780 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1782 ,set)
1783 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1784 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1785 ac_cache_corrupted=: ;;
1786 ,);;
1788 if test "x$ac_old_val" != "x$ac_new_val"; then
1789 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1790 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1791 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1792 echo "$as_me: former value: $ac_old_val" >&2;}
1793 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1794 echo "$as_me: current value: $ac_new_val" >&2;}
1795 ac_cache_corrupted=:
1796 fi;;
1797 esac
1798 # Pass precious variables to config.status.
1799 if test "$ac_new_set" = set; then
1800 case $ac_new_val in
1801 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1802 *) ac_arg=$ac_var=$ac_new_val ;;
1803 esac
1804 case " $ac_configure_args " in
1805 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1806 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1807 esac
1809 done
1810 if $ac_cache_corrupted; then
1811 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1812 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1813 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1814 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1815 { (exit 1); exit 1; }; }
1834 ac_ext=c
1835 ac_cpp='$CPP $CPPFLAGS'
1836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1841 am__api_version='1.10'
1843 ac_aux_dir=
1844 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1845 if test -f "$ac_dir/install-sh"; then
1846 ac_aux_dir=$ac_dir
1847 ac_install_sh="$ac_aux_dir/install-sh -c"
1848 break
1849 elif test -f "$ac_dir/install.sh"; then
1850 ac_aux_dir=$ac_dir
1851 ac_install_sh="$ac_aux_dir/install.sh -c"
1852 break
1853 elif test -f "$ac_dir/shtool"; then
1854 ac_aux_dir=$ac_dir
1855 ac_install_sh="$ac_aux_dir/shtool install -c"
1856 break
1858 done
1859 if test -z "$ac_aux_dir"; then
1860 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1861 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1862 { (exit 1); exit 1; }; }
1865 # These three variables are undocumented and unsupported,
1866 # and are intended to be withdrawn in a future Autoconf release.
1867 # They can cause serious problems if a builder's source tree is in a directory
1868 # whose full name contains unusual characters.
1869 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1870 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1871 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1874 # Find a good install program. We prefer a C program (faster),
1875 # so one script is as good as another. But avoid the broken or
1876 # incompatible versions:
1877 # SysV /etc/install, /usr/sbin/install
1878 # SunOS /usr/etc/install
1879 # IRIX /sbin/install
1880 # AIX /bin/install
1881 # AmigaOS /C/install, which installs bootblocks on floppy discs
1882 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1883 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1884 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1885 # OS/2's system install, which has a completely different semantic
1886 # ./install, which can be erroneously created by make from ./install.sh.
1887 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1888 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1889 if test -z "$INSTALL"; then
1890 if test "${ac_cv_path_install+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 # Account for people who put trailing slashes in PATH elements.
1899 case $as_dir/ in
1900 ./ | .// | /cC/* | \
1901 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1902 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1903 /usr/ucb/* ) ;;
1905 # OSF1 and SCO ODT 3.0 have their own names for install.
1906 # Don't use installbsd from OSF since it installs stuff as root
1907 # by default.
1908 for ac_prog in ginstall scoinst install; do
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1911 if test $ac_prog = install &&
1912 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1913 # AIX install. It has an incompatible calling convention.
1915 elif test $ac_prog = install &&
1916 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1917 # program-specific install script used by HP pwplus--don't use.
1919 else
1920 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1921 break 3
1924 done
1925 done
1927 esac
1928 done
1929 IFS=$as_save_IFS
1933 if test "${ac_cv_path_install+set}" = set; then
1934 INSTALL=$ac_cv_path_install
1935 else
1936 # As a last resort, use the slow shell script. Don't cache a
1937 # value for INSTALL within a source directory, because that will
1938 # break other packages using the cache if that directory is
1939 # removed, or if the value is a relative name.
1940 INSTALL=$ac_install_sh
1943 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1944 echo "${ECHO_T}$INSTALL" >&6; }
1946 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1947 # It thinks the first close brace ends the variable substitution.
1948 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1950 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1952 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1954 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1955 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1956 # Just in case
1957 sleep 1
1958 echo timestamp > conftest.file
1959 # Do `set' in a subshell so we don't clobber the current shell's
1960 # arguments. Must try -L first in case configure is actually a
1961 # symlink; some systems play weird games with the mod time of symlinks
1962 # (eg FreeBSD returns the mod time of the symlink's containing
1963 # directory).
1964 if (
1965 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1966 if test "$*" = "X"; then
1967 # -L didn't work.
1968 set X `ls -t $srcdir/configure conftest.file`
1970 rm -f conftest.file
1971 if test "$*" != "X $srcdir/configure conftest.file" \
1972 && test "$*" != "X conftest.file $srcdir/configure"; then
1974 # If neither matched, then we have a broken ls. This can happen
1975 # if, for instance, CONFIG_SHELL is bash and it inherits a
1976 # broken ls alias from the environment. This has actually
1977 # happened. Such a system could not be considered "sane".
1978 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1979 alias in your environment" >&5
1980 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1981 alias in your environment" >&2;}
1982 { (exit 1); exit 1; }; }
1985 test "$2" = conftest.file
1987 then
1988 # Ok.
1990 else
1991 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1992 Check your system clock" >&5
1993 echo "$as_me: error: newly created file is older than distributed files!
1994 Check your system clock" >&2;}
1995 { (exit 1); exit 1; }; }
1997 { echo "$as_me:$LINENO: result: yes" >&5
1998 echo "${ECHO_T}yes" >&6; }
1999 test "$program_prefix" != NONE &&
2000 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2001 # Use a double $ so make ignores it.
2002 test "$program_suffix" != NONE &&
2003 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2004 # Double any \ or $. echo might interpret backslashes.
2005 # By default was `s,x,x', remove it if useless.
2006 cat <<\_ACEOF >conftest.sed
2007 s/[\\$]/&&/g;s/;s,x,x,$//
2008 _ACEOF
2009 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2010 rm -f conftest.sed
2012 # expand $ac_aux_dir to an absolute path
2013 am_aux_dir=`cd $ac_aux_dir && pwd`
2015 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2016 # Use eval to expand $SHELL
2017 if eval "$MISSING --run true"; then
2018 am_missing_run="$MISSING --run "
2019 else
2020 am_missing_run=
2021 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2022 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2025 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2026 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2027 if test -z "$MKDIR_P"; then
2028 if test "${ac_cv_path_mkdir+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_prog in mkdir gmkdir; do
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2039 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2040 'mkdir (GNU coreutils) '* | \
2041 'mkdir (coreutils) '* | \
2042 'mkdir (fileutils) '4.1*)
2043 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2044 break 3;;
2045 esac
2046 done
2047 done
2048 done
2049 IFS=$as_save_IFS
2053 if test "${ac_cv_path_mkdir+set}" = set; then
2054 MKDIR_P="$ac_cv_path_mkdir -p"
2055 else
2056 # As a last resort, use the slow shell script. Don't cache a
2057 # value for MKDIR_P within a source directory, because that will
2058 # break other packages using the cache if that directory is
2059 # removed, or if the value is a relative name.
2060 test -d ./--version && rmdir ./--version
2061 MKDIR_P="$ac_install_sh -d"
2064 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2065 echo "${ECHO_T}$MKDIR_P" >&6; }
2067 mkdir_p="$MKDIR_P"
2068 case $mkdir_p in
2069 [\\/$]* | ?:[\\/]*) ;;
2070 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2071 esac
2073 for ac_prog in gawk mawk nawk awk
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_AWK+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082 if test -n "$AWK"; then
2083 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 ac_cv_prog_AWK="$ac_prog"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2096 done
2097 done
2098 IFS=$as_save_IFS
2102 AWK=$ac_cv_prog_AWK
2103 if test -n "$AWK"; then
2104 { echo "$as_me:$LINENO: result: $AWK" >&5
2105 echo "${ECHO_T}$AWK" >&6; }
2106 else
2107 { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2112 test -n "$AWK" && break
2113 done
2115 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2116 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2117 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2118 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 cat >conftest.make <<\_ACEOF
2122 SHELL = /bin/sh
2123 all:
2124 @echo '@@@%%%=$(MAKE)=@@@%%%'
2125 _ACEOF
2126 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2127 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2128 *@@@%%%=?*=@@@%%%*)
2129 eval ac_cv_prog_make_${ac_make}_set=yes;;
2131 eval ac_cv_prog_make_${ac_make}_set=no;;
2132 esac
2133 rm -f conftest.make
2135 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2136 { echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6; }
2138 SET_MAKE=
2139 else
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2142 SET_MAKE="MAKE=${MAKE-make}"
2145 rm -rf .tst 2>/dev/null
2146 mkdir .tst 2>/dev/null
2147 if test -d .tst; then
2148 am__leading_dot=.
2149 else
2150 am__leading_dot=_
2152 rmdir .tst 2>/dev/null
2154 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2155 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2156 # is not polluted with repeated "-I."
2157 am__isrc=' -I$(srcdir)'
2158 # test to see if srcdir already configured
2159 if test -f $srcdir/config.status; then
2160 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2161 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2162 { (exit 1); exit 1; }; }
2166 # test whether we have cygpath
2167 if test -z "$CYGPATH_W"; then
2168 if (cygpath --version) >/dev/null 2>/dev/null; then
2169 CYGPATH_W='cygpath -w'
2170 else
2171 CYGPATH_W=echo
2176 # Define the identity of the package.
2177 PACKAGE=pcb
2178 VERSION=1.99w
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE "$PACKAGE"
2183 _ACEOF
2186 cat >>confdefs.h <<_ACEOF
2187 #define VERSION "$VERSION"
2188 _ACEOF
2190 # Some tools Automake needs.
2192 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2195 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2198 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2201 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2204 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2206 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2208 # Installed binaries are usually stripped using `strip' when the user
2209 # run `make install-strip'. However `strip' might not be the right
2210 # tool to use in cross-compilation environments, therefore Automake
2211 # will honor the `STRIP' environment variable to overrule this program.
2212 if test "$cross_compiling" != no; then
2213 if test -n "$ac_tool_prefix"; then
2214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2215 set dummy ${ac_tool_prefix}strip; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_STRIP+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 if test -n "$STRIP"; then
2222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 break 2
2235 done
2236 done
2237 IFS=$as_save_IFS
2241 STRIP=$ac_cv_prog_STRIP
2242 if test -n "$STRIP"; then
2243 { echo "$as_me:$LINENO: result: $STRIP" >&5
2244 echo "${ECHO_T}$STRIP" >&6; }
2245 else
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2252 if test -z "$ac_cv_prog_STRIP"; then
2253 ac_ct_STRIP=$STRIP
2254 # Extract the first word of "strip", so it can be a program name with args.
2255 set dummy strip; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 if test -n "$ac_ct_STRIP"; then
2262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271 ac_cv_prog_ac_ct_STRIP="strip"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 break 2
2275 done
2276 done
2277 IFS=$as_save_IFS
2281 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2282 if test -n "$ac_ct_STRIP"; then
2283 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2284 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2285 else
2286 { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2290 if test "x$ac_ct_STRIP" = x; then
2291 STRIP=":"
2292 else
2293 case $cross_compiling:$ac_tool_warned in
2294 yes:)
2295 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2296 whose name does not start with the host triplet. If you think this
2297 configuration is useful to you, please write to autoconf@gnu.org." >&5
2298 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2299 whose name does not start with the host triplet. If you think this
2300 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2301 ac_tool_warned=yes ;;
2302 esac
2303 STRIP=$ac_ct_STRIP
2305 else
2306 STRIP="$ac_cv_prog_STRIP"
2310 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2312 # We need awk for the "check" target. The system "awk" is bad on
2313 # some platforms.
2314 # Always define AMTAR for backward compatibility.
2316 AMTAR=${AMTAR-"${am_missing_run}tar"}
2318 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2324 ac_config_headers="$ac_config_headers config.h"
2327 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2328 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2329 # Check whether --enable-maintainer-mode was given.
2330 if test "${enable_maintainer_mode+set}" = set; then
2331 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2332 else
2333 USE_MAINTAINER_MODE=no
2336 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2337 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2338 if test $USE_MAINTAINER_MODE = yes; then
2339 MAINTAINER_MODE_TRUE=
2340 MAINTAINER_MODE_FALSE='#'
2341 else
2342 MAINTAINER_MODE_TRUE='#'
2343 MAINTAINER_MODE_FALSE=
2346 MAINT=$MAINTAINER_MODE_TRUE
2350 # Make sure we can run config.sub.
2351 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2352 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2353 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2354 { (exit 1); exit 1; }; }
2356 { echo "$as_me:$LINENO: checking build system type" >&5
2357 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2358 if test "${ac_cv_build+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 ac_build_alias=$build_alias
2362 test "x$ac_build_alias" = x &&
2363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2364 test "x$ac_build_alias" = x &&
2365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2366 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2367 { (exit 1); exit 1; }; }
2368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2369 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2370 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2371 { (exit 1); exit 1; }; }
2374 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2375 echo "${ECHO_T}$ac_cv_build" >&6; }
2376 case $ac_cv_build in
2377 *-*-*) ;;
2378 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2379 echo "$as_me: error: invalid value of canonical build" >&2;}
2380 { (exit 1); exit 1; }; };;
2381 esac
2382 build=$ac_cv_build
2383 ac_save_IFS=$IFS; IFS='-'
2384 set x $ac_cv_build
2385 shift
2386 build_cpu=$1
2387 build_vendor=$2
2388 shift; shift
2389 # Remember, the first character of IFS is used to create $*,
2390 # except with old shells:
2391 build_os=$*
2392 IFS=$ac_save_IFS
2393 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2396 { echo "$as_me:$LINENO: checking host system type" >&5
2397 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2398 if test "${ac_cv_host+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401 if test "x$host_alias" = x; then
2402 ac_cv_host=$ac_cv_build
2403 else
2404 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2405 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2406 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2407 { (exit 1); exit 1; }; }
2411 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2412 echo "${ECHO_T}$ac_cv_host" >&6; }
2413 case $ac_cv_host in
2414 *-*-*) ;;
2415 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2416 echo "$as_me: error: invalid value of canonical host" >&2;}
2417 { (exit 1); exit 1; }; };;
2418 esac
2419 host=$ac_cv_host
2420 ac_save_IFS=$IFS; IFS='-'
2421 set x $ac_cv_host
2422 shift
2423 host_cpu=$1
2424 host_vendor=$2
2425 shift; shift
2426 # Remember, the first character of IFS is used to create $*,
2427 # except with old shells:
2428 host_os=$*
2429 IFS=$ac_save_IFS
2430 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2433 { echo "$as_me:$LINENO: checking for windows" >&5
2434 echo $ECHO_N "checking for windows... $ECHO_C" >&6; }
2435 PCB_PATH_DELIMETER=":"
2436 PCB_DIR_SEPARATOR_S="/"
2437 PCB_DIR_SEPARATOR_C='/'
2438 case $host in
2439 *-*-cygwin* )
2440 CFLAGS="$CFLAGS ${CYGWIN_CFLAGS}"
2441 CPPFLAGS="$CPPFLAGS ${CYGWIN_CPPFLAGS}"
2444 *-*-mingw* )
2445 WIN32=yes
2446 CFLAGS="$CFLAGS ${MINGW_CFLAGS:--mms-bitfields -mwindows}"
2447 CPPFLAGS="$CPPFLAGS ${MINGW_CPPFLAGS:--mms-bitfields -mwindows}"
2451 WIN32=no
2453 esac
2455 { echo "$as_me:$LINENO: result: $WIN32" >&5
2456 echo "${ECHO_T}$WIN32" >&6; }
2458 if test x$WIN32 = xyes; then
2459 WIN32_TRUE=
2460 WIN32_FALSE='#'
2461 else
2462 WIN32_TRUE='#'
2463 WIN32_FALSE=
2466 if test "x$WIN32" = "xyes" ; then
2467 PCB_PATH_DELIMETER=";"
2468 PCB_DIR_SEPARATOR_S="\\\\"
2469 PCB_DIR_SEPARATOR_C='\\'
2473 cat >>confdefs.h <<_ACEOF
2474 #define PCB_DIR_SEPARATOR_C '$PCB_DIR_SEPARATOR_C'
2475 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 #define PCB_DIR_SEPARATOR_S "$PCB_DIR_SEPARATOR_S"
2480 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PCB_PATH_DELIMETER "$PCB_PATH_DELIMETER"
2485 _ACEOF
2489 ac_ext=c
2490 ac_cpp='$CPP $CPPFLAGS'
2491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2516 done
2517 done
2518 IFS=$as_save_IFS
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2533 if test -z "$ac_cv_prog_CC"; then
2534 ac_ct_CC=$CC
2535 # Extract the first word of "gcc", so it can be a program name with args.
2536 set dummy gcc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542 if test -n "$ac_ct_CC"; then
2543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_ac_ct_CC="gcc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2556 done
2557 done
2558 IFS=$as_save_IFS
2562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2563 if test -n "$ac_ct_CC"; then
2564 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2565 echo "${ECHO_T}$ac_ct_CC" >&6; }
2566 else
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2571 if test "x$ac_ct_CC" = x; then
2572 CC=""
2573 else
2574 case $cross_compiling:$ac_tool_warned in
2575 yes:)
2576 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2577 whose name does not start with the host triplet. If you think this
2578 configuration is useful to you, please write to autoconf@gnu.org." >&5
2579 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2580 whose name does not start with the host triplet. If you think this
2581 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2582 ac_tool_warned=yes ;;
2583 esac
2584 CC=$ac_ct_CC
2586 else
2587 CC="$ac_cv_prog_CC"
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}cc; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="${ac_tool_prefix}cc"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2613 done
2614 done
2615 IFS=$as_save_IFS
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621 { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2623 else
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2631 if test -z "$CC"; then
2632 # Extract the first word of "cc", so it can be a program name with args.
2633 set dummy cc; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 ac_prog_rejected=no
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2651 ac_prog_rejected=yes
2652 continue
2654 ac_cv_prog_CC="cc"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2658 done
2659 done
2660 IFS=$as_save_IFS
2662 if test $ac_prog_rejected = yes; then
2663 # We found a bogon in the path, so make sure we never use it.
2664 set dummy $ac_cv_prog_CC
2665 shift
2666 if test $# != 0; then
2667 # We chose a different compiler from the bogus one.
2668 # However, it has the same basename, so the bogon will be chosen
2669 # first if we set CC to just the basename; use the full file name.
2670 shift
2671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2676 CC=$ac_cv_prog_CC
2677 if test -n "$CC"; then
2678 { echo "$as_me:$LINENO: result: $CC" >&5
2679 echo "${ECHO_T}$CC" >&6; }
2680 else
2681 { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 for ac_prog in cl.exe
2691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2714 IFS=$as_save_IFS
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720 { echo "$as_me:$LINENO: result: $CC" >&5
2721 echo "${ECHO_T}$CC" >&6; }
2722 else
2723 { echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6; }
2728 test -n "$CC" && break
2729 done
2731 if test -z "$CC"; then
2732 ac_ct_CC=$CC
2733 for ac_prog in cl.exe
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 if test -n "$ac_ct_CC"; then
2743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_ac_ct_CC="$ac_prog"
2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2756 done
2757 done
2758 IFS=$as_save_IFS
2762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763 if test -n "$ac_ct_CC"; then
2764 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2765 echo "${ECHO_T}$ac_ct_CC" >&6; }
2766 else
2767 { echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6; }
2772 test -n "$ac_ct_CC" && break
2773 done
2775 if test "x$ac_ct_CC" = x; then
2776 CC=""
2777 else
2778 case $cross_compiling:$ac_tool_warned in
2779 yes:)
2780 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2781 whose name does not start with the host triplet. If you think this
2782 configuration is useful to you, please write to autoconf@gnu.org." >&5
2783 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2784 whose name does not start with the host triplet. If you think this
2785 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2786 ac_tool_warned=yes ;;
2787 esac
2788 CC=$ac_ct_CC
2795 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2796 See \`config.log' for more details." >&5
2797 echo "$as_me: error: no acceptable C compiler found in \$PATH
2798 See \`config.log' for more details." >&2;}
2799 { (exit 1); exit 1; }; }
2801 # Provide some information about the compiler.
2802 echo "$as_me:$LINENO: checking for C compiler version" >&5
2803 ac_compiler=`set X $ac_compile; echo $2`
2804 { (ac_try="$ac_compiler --version >&5"
2805 case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_compiler --version >&5") 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }
2814 { (ac_try="$ac_compiler -v >&5"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_compiler -v >&5") 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }
2824 { (ac_try="$ac_compiler -V >&5"
2825 case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_compiler -V >&5") 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2843 main ()
2847 return 0;
2849 _ACEOF
2850 ac_clean_files_save=$ac_clean_files
2851 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2852 # Try to create an executable without -o first, disregard a.out.
2853 # It will help us diagnose broken compilers, and finding out an intuition
2854 # of exeext.
2855 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2856 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2857 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2859 # List of possible output files, starting from the most likely.
2860 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2861 # only as a last resort. b.out is created by i960 compilers.
2862 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2864 # The IRIX 6 linker writes into existing files which may not be
2865 # executable, retaining their permissions. Remove them first so a
2866 # subsequent execution test works.
2867 ac_rmfiles=
2868 for ac_file in $ac_files
2870 case $ac_file in
2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2872 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2873 esac
2874 done
2875 rm -f $ac_rmfiles
2877 if { (ac_try="$ac_link_default"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link_default") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2888 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2889 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2890 # so that the user can short-circuit this test for compilers unknown to
2891 # Autoconf.
2892 for ac_file in $ac_files ''
2894 test -f "$ac_file" || continue
2895 case $ac_file in
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2898 [ab].out )
2899 # We found the default executable, but exeext='' is most
2900 # certainly right.
2901 break;;
2902 *.* )
2903 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2904 then :; else
2905 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 # We set ac_cv_exeext here because the later test for it is not
2908 # safe: cross compilers may not add the suffix if given an `-o'
2909 # argument, so we may need to know it at that point already.
2910 # Even if this section looks crufty: it has the advantage of
2911 # actually working.
2912 break;;
2914 break;;
2915 esac
2916 done
2917 test "$ac_cv_exeext" = no && ac_cv_exeext=
2919 else
2920 ac_file=''
2923 { echo "$as_me:$LINENO: result: $ac_file" >&5
2924 echo "${ECHO_T}$ac_file" >&6; }
2925 if test -z "$ac_file"; then
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: C compiler cannot create executables
2932 See \`config.log' for more details." >&2;}
2933 { (exit 77); exit 77; }; }
2936 ac_exeext=$ac_cv_exeext
2938 # Check that the compiler produces executables we can run. If not, either
2939 # the compiler is broken, or we cross compile.
2940 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2941 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2942 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2943 # If not cross compiling, check that we can run a simple program.
2944 if test "$cross_compiling" != yes; then
2945 if { ac_try='./$ac_file'
2946 { (case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_try") 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 cross_compiling=no
2956 else
2957 if test "$cross_compiling" = maybe; then
2958 cross_compiling=yes
2959 else
2960 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2961 If you meant to cross compile, use \`--host'.
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'.
2965 See \`config.log' for more details." >&2;}
2966 { (exit 1); exit 1; }; }
2970 { echo "$as_me:$LINENO: result: yes" >&5
2971 echo "${ECHO_T}yes" >&6; }
2973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2974 ac_clean_files=$ac_clean_files_save
2975 # Check that the compiler produces executables we can run. If not, either
2976 # the compiler is broken, or we cross compile.
2977 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2979 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2980 echo "${ECHO_T}$cross_compiling" >&6; }
2982 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2984 if { (ac_try="$ac_link"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_link") 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2995 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2996 # work properly (i.e., refer to `conftest.exe'), while it won't with
2997 # `rm'.
2998 for ac_file in conftest.exe conftest conftest.*; do
2999 test -f "$ac_file" || continue
3000 case $ac_file in
3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003 break;;
3004 * ) break;;
3005 esac
3006 done
3007 else
3008 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3011 See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
3015 rm -f conftest$ac_cv_exeext
3016 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3017 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3019 rm -f conftest.$ac_ext
3020 EXEEXT=$ac_cv_exeext
3021 ac_exeext=$EXEEXT
3022 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3023 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3024 if test "${ac_cv_objext+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h. */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3035 main ()
3039 return 0;
3041 _ACEOF
3042 rm -f conftest.o conftest.obj
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; then
3053 for ac_file in conftest.o conftest.obj conftest.*; do
3054 test -f "$ac_file" || continue;
3055 case $ac_file in
3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3057 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3058 break;;
3059 esac
3060 done
3061 else
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3068 See \`config.log' for more details." >&2;}
3069 { (exit 1); exit 1; }; }
3072 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3074 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3075 echo "${ECHO_T}$ac_cv_objext" >&6; }
3076 OBJEXT=$ac_cv_objext
3077 ac_objext=$OBJEXT
3078 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3079 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3080 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h. */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3091 main ()
3093 #ifndef __GNUC__
3094 choke me
3095 #endif
3098 return 0;
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } && {
3115 test -z "$ac_c_werror_flag" ||
3116 test ! -s conftest.err
3117 } && test -s conftest.$ac_objext; then
3118 ac_compiler_gnu=yes
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 ac_compiler_gnu=no
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3130 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3131 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3132 GCC=`test $ac_compiler_gnu = yes && echo yes`
3133 ac_test_CFLAGS=${CFLAGS+set}
3134 ac_save_CFLAGS=$CFLAGS
3135 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3136 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3137 if test "${ac_cv_prog_cc_g+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140 ac_save_c_werror_flag=$ac_c_werror_flag
3141 ac_c_werror_flag=yes
3142 ac_cv_prog_cc_g=no
3143 CFLAGS="-g"
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3152 main ()
3156 return 0;
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3176 ac_cv_prog_cc_g=yes
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 CFLAGS=""
3182 cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h. */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3190 main ()
3194 return 0;
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3219 ac_c_werror_flag=$ac_save_c_werror_flag
3220 CFLAGS="-g"
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3229 main ()
3233 return 0;
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3253 ac_cv_prog_cc_g=yes
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_c_werror_flag=$ac_save_c_werror_flag
3270 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3271 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3272 if test "$ac_test_CFLAGS" = set; then
3273 CFLAGS=$ac_save_CFLAGS
3274 elif test $ac_cv_prog_cc_g = yes; then
3275 if test "$GCC" = yes; then
3276 CFLAGS="-g -O2"
3277 else
3278 CFLAGS="-g"
3280 else
3281 if test "$GCC" = yes; then
3282 CFLAGS="-O2"
3283 else
3284 CFLAGS=
3287 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3288 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_cc_c89+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 ac_cv_prog_cc_c89=no
3293 ac_save_CC=$CC
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 #include <stdarg.h>
3301 #include <stdio.h>
3302 #include <sys/types.h>
3303 #include <sys/stat.h>
3304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3305 struct buf { int x; };
3306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3307 static char *e (p, i)
3308 char **p;
3309 int i;
3311 return p[i];
3313 static char *f (char * (*g) (char **, int), char **p, ...)
3315 char *s;
3316 va_list v;
3317 va_start (v,p);
3318 s = g (p, va_arg (v,int));
3319 va_end (v);
3320 return s;
3323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3324 function prototypes and stuff, but not '\xHH' hex character constants.
3325 These don't provoke an error unfortunately, instead are silently treated
3326 as 'x'. The following induces an error, until -std is added to get
3327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3328 array size at least. It's necessary to write '\x00'==0 to get something
3329 that's true only with -std. */
3330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3333 inside strings and character constants. */
3334 #define FOO(x) 'x'
3335 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3337 int test (int i, double x);
3338 struct s1 {int (*f) (int a);};
3339 struct s2 {int (*f) (double a);};
3340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3341 int argc;
3342 char **argv;
3344 main ()
3346 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3348 return 0;
3350 _ACEOF
3351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3354 CC="$ac_save_CC $ac_arg"
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_compile") 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } && {
3369 test -z "$ac_c_werror_flag" ||
3370 test ! -s conftest.err
3371 } && test -s conftest.$ac_objext; then
3372 ac_cv_prog_cc_c89=$ac_arg
3373 else
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3380 rm -f core conftest.err conftest.$ac_objext
3381 test "x$ac_cv_prog_cc_c89" != "xno" && break
3382 done
3383 rm -f conftest.$ac_ext
3384 CC=$ac_save_CC
3387 # AC_CACHE_VAL
3388 case "x$ac_cv_prog_cc_c89" in
3390 { echo "$as_me:$LINENO: result: none needed" >&5
3391 echo "${ECHO_T}none needed" >&6; } ;;
3392 xno)
3393 { echo "$as_me:$LINENO: result: unsupported" >&5
3394 echo "${ECHO_T}unsupported" >&6; } ;;
3396 CC="$CC $ac_cv_prog_cc_c89"
3397 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3398 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3399 esac
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 DEPDIR="${am__leading_dot}deps"
3409 ac_config_commands="$ac_config_commands depfiles"
3412 am_make=${MAKE-make}
3413 cat > confinc << 'END'
3414 am__doit:
3415 @echo done
3416 .PHONY: am__doit
3418 # If we don't find an include directive, just comment out the code.
3419 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3420 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3421 am__include="#"
3422 am__quote=
3423 _am_result=none
3424 # First try GNU make style include.
3425 echo "include confinc" > confmf
3426 # We grep out `Entering directory' and `Leaving directory'
3427 # messages which can occur if `w' ends up in MAKEFLAGS.
3428 # In particular we don't look at `^make:' because GNU make might
3429 # be invoked under some other name (usually "gmake"), in which
3430 # case it prints its new name instead of `make'.
3431 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3432 am__include=include
3433 am__quote=
3434 _am_result=GNU
3436 # Now try BSD make style include.
3437 if test "$am__include" = "#"; then
3438 echo '.include "confinc"' > confmf
3439 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3440 am__include=.include
3441 am__quote="\""
3442 _am_result=BSD
3447 { echo "$as_me:$LINENO: result: $_am_result" >&5
3448 echo "${ECHO_T}$_am_result" >&6; }
3449 rm -f confinc confmf
3451 # Check whether --enable-dependency-tracking was given.
3452 if test "${enable_dependency_tracking+set}" = set; then
3453 enableval=$enable_dependency_tracking;
3456 if test "x$enable_dependency_tracking" != xno; then
3457 am_depcomp="$ac_aux_dir/depcomp"
3458 AMDEPBACKSLASH='\'
3460 if test "x$enable_dependency_tracking" != xno; then
3461 AMDEP_TRUE=
3462 AMDEP_FALSE='#'
3463 else
3464 AMDEP_TRUE='#'
3465 AMDEP_FALSE=
3470 depcc="$CC" am_compiler_list=
3472 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3473 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3474 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3478 # We make a subdir and do the tests there. Otherwise we can end up
3479 # making bogus files that we don't know about and never remove. For
3480 # instance it was reported that on HP-UX the gcc test will end up
3481 # making a dummy file named `D' -- because `-MD' means `put the output
3482 # in D'.
3483 mkdir conftest.dir
3484 # Copy depcomp to subdir because otherwise we won't find it if we're
3485 # using a relative directory.
3486 cp "$am_depcomp" conftest.dir
3487 cd conftest.dir
3488 # We will build objects and dependencies in a subdirectory because
3489 # it helps to detect inapplicable dependency modes. For instance
3490 # both Tru64's cc and ICC support -MD to output dependencies as a
3491 # side effect of compilation, but ICC will put the dependencies in
3492 # the current directory while Tru64 will put them in the object
3493 # directory.
3494 mkdir sub
3496 am_cv_CC_dependencies_compiler_type=none
3497 if test "$am_compiler_list" = ""; then
3498 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3500 for depmode in $am_compiler_list; do
3501 # Setup a source with many dependencies, because some compilers
3502 # like to wrap large dependency lists on column 80 (with \), and
3503 # we should not choose a depcomp mode which is confused by this.
3505 # We need to recreate these files for each test, as the compiler may
3506 # overwrite some of them when testing with obscure command lines.
3507 # This happens at least with the AIX C compiler.
3508 : > sub/conftest.c
3509 for i in 1 2 3 4 5 6; do
3510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3512 # Solaris 8's {/usr,}/bin/sh.
3513 touch sub/conftst$i.h
3514 done
3515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3517 case $depmode in
3518 nosideeffect)
3519 # after this tag, mechanisms are not by side-effect, so they'll
3520 # only be used when explicitly requested
3521 if test "x$enable_dependency_tracking" = xyes; then
3522 continue
3523 else
3524 break
3527 none) break ;;
3528 esac
3529 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3530 # mode. It turns out that the SunPro C++ compiler does not properly
3531 # handle `-M -o', and we need to detect this.
3532 if depmode=$depmode \
3533 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3534 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3535 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3536 >/dev/null 2>conftest.err &&
3537 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3539 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3541 # icc doesn't choke on unknown options, it will just issue warnings
3542 # or remarks (even with -Werror). So we grep stderr for any message
3543 # that says an option was ignored or not supported.
3544 # When given -MP, icc 7.0 and 7.1 complain thusly:
3545 # icc: Command line warning: ignoring option '-M'; no argument required
3546 # The diagnosis changed in icc 8.0:
3547 # icc: Command line remark: option '-MP' not supported
3548 if (grep 'ignoring option' conftest.err ||
3549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3550 am_cv_CC_dependencies_compiler_type=$depmode
3551 break
3554 done
3556 cd ..
3557 rm -rf conftest.dir
3558 else
3559 am_cv_CC_dependencies_compiler_type=none
3563 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3564 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3565 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3568 test "x$enable_dependency_tracking" != xno \
3569 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3570 am__fastdepCC_TRUE=
3571 am__fastdepCC_FALSE='#'
3572 else
3573 am__fastdepCC_TRUE='#'
3574 am__fastdepCC_FALSE=
3579 { echo "$as_me:$LINENO: checking for inline" >&5
3580 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3581 if test "${ac_cv_c_inline+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 ac_cv_c_inline=no
3585 for ac_kw in inline __inline__ __inline; do
3586 cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h. */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #ifndef __cplusplus
3593 typedef int foo_t;
3594 static $ac_kw foo_t static_foo () {return 0; }
3595 $ac_kw foo_t foo () {return 0; }
3596 #endif
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3616 ac_cv_c_inline=$ac_kw
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 test "$ac_cv_c_inline" != no && break
3626 done
3629 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3630 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3633 case $ac_cv_c_inline in
3634 inline | yes) ;;
3636 case $ac_cv_c_inline in
3637 no) ac_val=;;
3638 *) ac_val=$ac_cv_c_inline;;
3639 esac
3640 cat >>confdefs.h <<_ACEOF
3641 #ifndef __cplusplus
3642 #define inline $ac_val
3643 #endif
3644 _ACEOF
3646 esac
3648 case $ac_cv_prog_cc_stdc in
3649 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3650 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3651 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3652 if test "${ac_cv_prog_cc_c99+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 ac_cv_prog_cc_c99=no
3656 ac_save_CC=$CC
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 #include <stdarg.h>
3664 #include <stdbool.h>
3665 #include <stdlib.h>
3666 #include <wchar.h>
3667 #include <stdio.h>
3669 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3670 #define debug(...) fprintf (stderr, __VA_ARGS__)
3671 #define showlist(...) puts (#__VA_ARGS__)
3672 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3673 static void
3674 test_varargs_macros (void)
3676 int x = 1234;
3677 int y = 5678;
3678 debug ("Flag");
3679 debug ("X = %d\n", x);
3680 showlist (The first, second, and third items.);
3681 report (x>y, "x is %d but y is %d", x, y);
3684 // Check long long types.
3685 #define BIG64 18446744073709551615ull
3686 #define BIG32 4294967295ul
3687 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3688 #if !BIG_OK
3689 your preprocessor is broken;
3690 #endif
3691 #if BIG_OK
3692 #else
3693 your preprocessor is broken;
3694 #endif
3695 static long long int bignum = -9223372036854775807LL;
3696 static unsigned long long int ubignum = BIG64;
3698 struct incomplete_array
3700 int datasize;
3701 double data[];
3704 struct named_init {
3705 int number;
3706 const wchar_t *name;
3707 double average;
3710 typedef const char *ccp;
3712 static inline int
3713 test_restrict (ccp restrict text)
3715 // See if C++-style comments work.
3716 // Iterate through items via the restricted pointer.
3717 // Also check for declarations in for loops.
3718 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3719 continue;
3720 return 0;
3723 // Check varargs and va_copy.
3724 static void
3725 test_varargs (const char *format, ...)
3727 va_list args;
3728 va_start (args, format);
3729 va_list args_copy;
3730 va_copy (args_copy, args);
3732 const char *str;
3733 int number;
3734 float fnumber;
3736 while (*format)
3738 switch (*format++)
3740 case 's': // string
3741 str = va_arg (args_copy, const char *);
3742 break;
3743 case 'd': // int
3744 number = va_arg (args_copy, int);
3745 break;
3746 case 'f': // float
3747 fnumber = va_arg (args_copy, double);
3748 break;
3749 default:
3750 break;
3753 va_end (args_copy);
3754 va_end (args);
3758 main ()
3761 // Check bool.
3762 _Bool success = false;
3764 // Check restrict.
3765 if (test_restrict ("String literal") == 0)
3766 success = true;
3767 char *restrict newvar = "Another string";
3769 // Check varargs.
3770 test_varargs ("s, d' f .", "string", 65, 34.234);
3771 test_varargs_macros ();
3773 // Check flexible array members.
3774 struct incomplete_array *ia =
3775 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3776 ia->datasize = 10;
3777 for (int i = 0; i < ia->datasize; ++i)
3778 ia->data[i] = i * 1.234;
3780 // Check named initializers.
3781 struct named_init ni = {
3782 .number = 34,
3783 .name = L"Test wide string",
3784 .average = 543.34343,
3787 ni.number = 58;
3789 int dynamic_array[ni.number];
3790 dynamic_array[ni.number - 1] = 543;
3792 // work around unused variable warnings
3793 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3794 || dynamic_array[ni.number - 1] != 543);
3797 return 0;
3799 _ACEOF
3800 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3802 CC="$ac_save_CC $ac_arg"
3803 rm -f conftest.$ac_objext
3804 if { (ac_try="$ac_compile"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_compile") 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } && {
3817 test -z "$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 } && test -s conftest.$ac_objext; then
3820 ac_cv_prog_cc_c99=$ac_arg
3821 else
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3828 rm -f core conftest.err conftest.$ac_objext
3829 test "x$ac_cv_prog_cc_c99" != "xno" && break
3830 done
3831 rm -f conftest.$ac_ext
3832 CC=$ac_save_CC
3835 # AC_CACHE_VAL
3836 case "x$ac_cv_prog_cc_c99" in
3838 { echo "$as_me:$LINENO: result: none needed" >&5
3839 echo "${ECHO_T}none needed" >&6; } ;;
3840 xno)
3841 { echo "$as_me:$LINENO: result: unsupported" >&5
3842 echo "${ECHO_T}unsupported" >&6; } ;;
3844 CC="$CC $ac_cv_prog_cc_c99"
3845 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3846 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3847 esac
3848 if test "x$ac_cv_prog_cc_c99" != xno; then
3849 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3850 else
3851 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3852 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3853 if test "${ac_cv_prog_cc_c89+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 ac_cv_prog_cc_c89=no
3857 ac_save_CC=$CC
3858 cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h. */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 #include <stdarg.h>
3865 #include <stdio.h>
3866 #include <sys/types.h>
3867 #include <sys/stat.h>
3868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3869 struct buf { int x; };
3870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3871 static char *e (p, i)
3872 char **p;
3873 int i;
3875 return p[i];
3877 static char *f (char * (*g) (char **, int), char **p, ...)
3879 char *s;
3880 va_list v;
3881 va_start (v,p);
3882 s = g (p, va_arg (v,int));
3883 va_end (v);
3884 return s;
3887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3888 function prototypes and stuff, but not '\xHH' hex character constants.
3889 These don't provoke an error unfortunately, instead are silently treated
3890 as 'x'. The following induces an error, until -std is added to get
3891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3892 array size at least. It's necessary to write '\x00'==0 to get something
3893 that's true only with -std. */
3894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3897 inside strings and character constants. */
3898 #define FOO(x) 'x'
3899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3901 int test (int i, double x);
3902 struct s1 {int (*f) (int a);};
3903 struct s2 {int (*f) (double a);};
3904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905 int argc;
3906 char **argv;
3908 main ()
3910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3912 return 0;
3914 _ACEOF
3915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3918 CC="$ac_save_CC $ac_arg"
3919 rm -f conftest.$ac_objext
3920 if { (ac_try="$ac_compile"
3921 case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_compile") 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && {
3933 test -z "$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 } && test -s conftest.$ac_objext; then
3936 ac_cv_prog_cc_c89=$ac_arg
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3944 rm -f core conftest.err conftest.$ac_objext
3945 test "x$ac_cv_prog_cc_c89" != "xno" && break
3946 done
3947 rm -f conftest.$ac_ext
3948 CC=$ac_save_CC
3951 # AC_CACHE_VAL
3952 case "x$ac_cv_prog_cc_c89" in
3954 { echo "$as_me:$LINENO: result: none needed" >&5
3955 echo "${ECHO_T}none needed" >&6; } ;;
3956 xno)
3957 { echo "$as_me:$LINENO: result: unsupported" >&5
3958 echo "${ECHO_T}unsupported" >&6; } ;;
3960 CC="$CC $ac_cv_prog_cc_c89"
3961 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3962 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3963 esac
3964 if test "x$ac_cv_prog_cc_c89" != xno; then
3965 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3966 else
3967 ac_cv_prog_cc_stdc=no
3974 esac
3975 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3976 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3977 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 case $ac_cv_prog_cc_stdc in
3982 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3983 echo "${ECHO_T}unsupported" >&6; } ;;
3984 '') { echo "$as_me:$LINENO: result: none needed" >&5
3985 echo "${ECHO_T}none needed" >&6; } ;;
3986 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3987 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3988 esac
3991 if test "x$CC" != xcc; then
3992 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3993 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3994 else
3995 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3996 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3998 set dummy $CC; ac_cc=`echo $2 |
3999 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4000 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4011 main ()
4015 return 0;
4017 _ACEOF
4018 # Make sure it works both with $CC and with simple cc.
4019 # We do the test twice because some compilers refuse to overwrite an
4020 # existing .o file with -o, though they will create one.
4021 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4022 rm -f conftest2.*
4023 if { (case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_try") 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037 (eval "$ac_try") 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); };
4041 then
4042 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4043 if test "x$CC" != xcc; then
4044 # Test first that cc exists at all.
4045 if { ac_try='cc -c conftest.$ac_ext >&5'
4046 { (case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4056 rm -f conftest2.*
4057 if { (case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_try") 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_try") 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); };
4075 then
4076 # cc works too.
4078 else
4079 # cc exists but doesn't like -o.
4080 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4084 else
4085 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4087 rm -f core conftest*
4090 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4091 { echo "$as_me:$LINENO: result: yes" >&5
4092 echo "${ECHO_T}yes" >&6; }
4093 else
4094 { echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6; }
4097 cat >>confdefs.h <<\_ACEOF
4098 #define NO_MINUS_C_MINUS_O 1
4099 _ACEOF
4103 # FIXME: we rely on the cache variable name because
4104 # there is no other way.
4105 set dummy $CC
4106 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4107 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4108 # Losing compiler, so override with the script.
4109 # FIXME: It is wrong to rewrite CC.
4110 # But if we don't then we get into trouble of one sort or another.
4111 # A longer-term fix would be to have automake use am__CC in this case,
4112 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4113 CC="$am_aux_dir/compile $CC"
4117 ac_ext=c
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4123 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4124 # On Suns, sometimes $CPP names a directory.
4125 if test -n "$CPP" && test -d "$CPP"; then
4126 CPP=
4128 if test -z "$CPP"; then
4129 if test "${ac_cv_prog_CPP+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 # Double quotes because CPP needs to be expanded
4133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4135 ac_preproc_ok=false
4136 for ac_c_preproc_warn_flag in '' yes
4138 # Use a header file that comes with gcc, so configuring glibc
4139 # with a fresh cross-compiler works.
4140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141 # <limits.h> exists even on freestanding compilers.
4142 # On the NeXT, cc -E runs the code through the compiler's parser,
4143 # not just through cpp. "Syntax error" is here to catch this case.
4144 cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h. */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4150 #ifdef __STDC__
4151 # include <limits.h>
4152 #else
4153 # include <assert.h>
4154 #endif
4155 Syntax error
4156 _ACEOF
4157 if { (ac_try="$ac_cpp conftest.$ac_ext"
4158 case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161 esac
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } >/dev/null && {
4170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4171 test ! -s conftest.err
4172 }; then
4174 else
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4178 # Broken: fails on valid input.
4179 continue
4182 rm -f conftest.err conftest.$ac_ext
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 #include <ac_nonexistent.h>
4193 _ACEOF
4194 if { (ac_try="$ac_cpp conftest.$ac_ext"
4195 case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198 esac
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } >/dev/null && {
4207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 }; then
4210 # Broken: success on invalid input.
4211 continue
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4221 rm -f conftest.err conftest.$ac_ext
4223 done
4224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4225 rm -f conftest.err conftest.$ac_ext
4226 if $ac_preproc_ok; then
4227 break
4230 done
4231 ac_cv_prog_CPP=$CPP
4234 CPP=$ac_cv_prog_CPP
4235 else
4236 ac_cv_prog_CPP=$CPP
4238 { echo "$as_me:$LINENO: result: $CPP" >&5
4239 echo "${ECHO_T}$CPP" >&6; }
4240 ac_preproc_ok=false
4241 for ac_c_preproc_warn_flag in '' yes
4243 # Use a header file that comes with gcc, so configuring glibc
4244 # with a fresh cross-compiler works.
4245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4246 # <limits.h> exists even on freestanding compilers.
4247 # On the NeXT, cc -E runs the code through the compiler's parser,
4248 # not just through cpp. "Syntax error" is here to catch this case.
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 #ifdef __STDC__
4256 # include <limits.h>
4257 #else
4258 # include <assert.h>
4259 #endif
4260 Syntax error
4261 _ACEOF
4262 if { (ac_try="$ac_cpp conftest.$ac_ext"
4263 case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4269 ac_status=$?
4270 grep -v '^ *+' conftest.er1 >conftest.err
4271 rm -f conftest.er1
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } >/dev/null && {
4275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4276 test ! -s conftest.err
4277 }; then
4279 else
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 # Broken: fails on valid input.
4284 continue
4287 rm -f conftest.err conftest.$ac_ext
4289 # OK, works on sane cases. Now check whether nonexistent headers
4290 # can be detected and how.
4291 cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h. */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 #include <ac_nonexistent.h>
4298 _ACEOF
4299 if { (ac_try="$ac_cpp conftest.$ac_ext"
4300 case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } >/dev/null && {
4312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4313 test ! -s conftest.err
4314 }; then
4315 # Broken: success on invalid input.
4316 continue
4317 else
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 # Passes both tests.
4322 ac_preproc_ok=:
4323 break
4326 rm -f conftest.err conftest.$ac_ext
4328 done
4329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4330 rm -f conftest.err conftest.$ac_ext
4331 if $ac_preproc_ok; then
4333 else
4334 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4335 See \`config.log' for more details." >&5
4336 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4337 See \`config.log' for more details." >&2;}
4338 { (exit 1); exit 1; }; }
4341 ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 for ac_prog in gawk mawk nawk awk
4349 # Extract the first word of "$ac_prog", so it can be a program name with args.
4350 set dummy $ac_prog; ac_word=$2
4351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4353 if test "${ac_cv_prog_AWK+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 if test -n "$AWK"; then
4357 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_AWK="$ac_prog"
4367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4372 IFS=$as_save_IFS
4376 AWK=$ac_cv_prog_AWK
4377 if test -n "$AWK"; then
4378 { echo "$as_me:$LINENO: result: $AWK" >&5
4379 echo "${ECHO_T}$AWK" >&6; }
4380 else
4381 { echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6; }
4386 test -n "$AWK" && break
4387 done
4390 for ac_prog in flex lex
4392 # Extract the first word of "$ac_prog", so it can be a program name with args.
4393 set dummy $ac_prog; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_LEX+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 if test -n "$LEX"; then
4400 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_LEX="$ac_prog"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4413 done
4414 done
4415 IFS=$as_save_IFS
4419 LEX=$ac_cv_prog_LEX
4420 if test -n "$LEX"; then
4421 { echo "$as_me:$LINENO: result: $LEX" >&5
4422 echo "${ECHO_T}$LEX" >&6; }
4423 else
4424 { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4429 test -n "$LEX" && break
4430 done
4431 test -n "$LEX" || LEX=":"
4433 if test "x$LEX" != "x:"; then
4434 cat >conftest.l <<_ACEOF
4436 a { ECHO; }
4437 b { REJECT; }
4438 c { yymore (); }
4439 d { yyless (1); }
4440 e { yyless (input () != 0); }
4441 f { unput (yytext[0]); }
4442 . { BEGIN INITIAL; }
4444 #ifdef YYTEXT_POINTER
4445 extern char *yytext;
4446 #endif
4448 main (void)
4450 return ! yylex () + ! yywrap ();
4452 _ACEOF
4453 { (ac_try="$LEX conftest.l"
4454 case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$LEX conftest.l") 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }
4463 { echo "$as_me:$LINENO: checking lex output file root" >&5
4464 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_lex_root+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4469 if test -f lex.yy.c; then
4470 ac_cv_prog_lex_root=lex.yy
4471 elif test -f lexyy.c; then
4472 ac_cv_prog_lex_root=lexyy
4473 else
4474 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4475 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4476 { (exit 1); exit 1; }; }
4479 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4480 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4481 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4483 if test -z "${LEXLIB+set}"; then
4484 { echo "$as_me:$LINENO: checking lex library" >&5
4485 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4486 if test "${ac_cv_lib_lex+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4490 ac_save_LIBS=$LIBS
4491 ac_cv_lib_lex='none needed'
4492 for ac_lib in '' -lfl -ll; do
4493 LIBS="$ac_lib $ac_save_LIBS"
4494 cat >conftest.$ac_ext <<_ACEOF
4495 `cat $LEX_OUTPUT_ROOT.c`
4496 _ACEOF
4497 rm -f conftest.$ac_objext conftest$ac_exeext
4498 if { (ac_try="$ac_link"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_link") 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } && {
4511 test -z "$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4513 } && test -s conftest$ac_exeext &&
4514 $as_test_x conftest$ac_exeext; then
4515 ac_cv_lib_lex=$ac_lib
4516 else
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4524 conftest$ac_exeext conftest.$ac_ext
4525 test "$ac_cv_lib_lex" != 'none needed' && break
4526 done
4527 LIBS=$ac_save_LIBS
4530 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4531 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4532 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4536 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4537 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4538 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 # POSIX says lex can declare yytext either as a pointer or an array; the
4542 # default is implementation-dependent. Figure out which it is, since
4543 # not all implementations provide the %pointer and %array declarations.
4544 ac_cv_prog_lex_yytext_pointer=no
4545 ac_save_LIBS=$LIBS
4546 LIBS="$LEXLIB $ac_save_LIBS"
4547 cat >conftest.$ac_ext <<_ACEOF
4548 #define YYTEXT_POINTER 1
4549 `cat $LEX_OUTPUT_ROOT.c`
4550 _ACEOF
4551 rm -f conftest.$ac_objext conftest$ac_exeext
4552 if { (ac_try="$ac_link"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_link") 2>conftest.er1
4559 ac_status=$?
4560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } && {
4565 test -z "$ac_c_werror_flag" ||
4566 test ! -s conftest.err
4567 } && test -s conftest$ac_exeext &&
4568 $as_test_x conftest$ac_exeext; then
4569 ac_cv_prog_lex_yytext_pointer=yes
4570 else
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4578 conftest$ac_exeext conftest.$ac_ext
4579 LIBS=$ac_save_LIBS
4582 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4583 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4584 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4586 cat >>confdefs.h <<\_ACEOF
4587 #define YYTEXT_POINTER 1
4588 _ACEOF
4591 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4594 if test "$LEX" = :; then
4595 LEX=${am_missing_run}flex
4597 # Extract the first word of "$LEX", so it can be a program name with args.
4598 set dummy $LEX; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_path_LEX_PATH+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 case $LEX_PATH in
4605 [\\/]* | ?:[\\/]*)
4606 ac_cv_path_LEX_PATH="$LEX_PATH" # Let the user override the test with a path.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_path_LEX_PATH="$as_dir/$ac_word$ac_exec_ext"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4622 IFS=$as_save_IFS
4624 test -z "$ac_cv_path_LEX_PATH" && ac_cv_path_LEX_PATH="notfound"
4626 esac
4628 LEX_PATH=$ac_cv_path_LEX_PATH
4629 if test -n "$LEX_PATH"; then
4630 { echo "$as_me:$LINENO: result: $LEX_PATH" >&5
4631 echo "${ECHO_T}$LEX_PATH" >&6; }
4632 else
4633 { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4638 if test "$LEX_PATH" = "notfound" ; then
4639 { { echo "$as_me:$LINENO: error: Couldn't find a usable lex program.
4640 Please install flex which is available from
4641 ftp://ftp.gnu.org/pub/non-gnu/flex/
4642 " >&5
4643 echo "$as_me: error: Couldn't find a usable lex program.
4644 Please install flex which is available from
4645 ftp://ftp.gnu.org/pub/non-gnu/flex/
4646 " >&2;}
4647 { (exit 1); exit 1; }; }
4651 for ac_prog in 'bison -y' byacc
4653 # Extract the first word of "$ac_prog", so it can be a program name with args.
4654 set dummy $ac_prog; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_prog_YACC+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660 if test -n "$YACC"; then
4661 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_YACC="$ac_prog"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4674 done
4675 done
4676 IFS=$as_save_IFS
4680 YACC=$ac_cv_prog_YACC
4681 if test -n "$YACC"; then
4682 { echo "$as_me:$LINENO: result: $YACC" >&5
4683 echo "${ECHO_T}$YACC" >&6; }
4684 else
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4690 test -n "$YACC" && break
4691 done
4692 test -n "$YACC" || YACC="yacc"
4694 # Extract the first word of "$YACC", so it can be a program name with args.
4695 set dummy $YACC; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_path_YACC_PATH+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 case $YACC_PATH in
4702 [\\/]* | ?:[\\/]*)
4703 ac_cv_path_YACC_PATH="$YACC_PATH" # Let the user override the test with a path.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_path_YACC_PATH="$as_dir/$ac_word$ac_exec_ext"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4717 done
4718 done
4719 IFS=$as_save_IFS
4721 test -z "$ac_cv_path_YACC_PATH" && ac_cv_path_YACC_PATH="notfound"
4723 esac
4725 YACC_PATH=$ac_cv_path_YACC_PATH
4726 if test -n "$YACC_PATH"; then
4727 { echo "$as_me:$LINENO: result: $YACC_PATH" >&5
4728 echo "${ECHO_T}$YACC_PATH" >&6; }
4729 else
4730 { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4735 if test "$YACC_PATH" = "notfound" ; then
4736 { { echo "$as_me:$LINENO: error: Couldn't find a usable yacc program.
4737 Please install bison which is available from
4738 ftp://ftp.gnu.org/pub/gnu/bison/
4739 " >&5
4740 echo "$as_me: error: Couldn't find a usable yacc program.
4741 Please install bison which is available from
4742 ftp://ftp.gnu.org/pub/gnu/bison/
4743 " >&2;}
4744 { (exit 1); exit 1; }; }
4747 # Find a good install program. We prefer a C program (faster),
4748 # so one script is as good as another. But avoid the broken or
4749 # incompatible versions:
4750 # SysV /etc/install, /usr/sbin/install
4751 # SunOS /usr/etc/install
4752 # IRIX /sbin/install
4753 # AIX /bin/install
4754 # AmigaOS /C/install, which installs bootblocks on floppy discs
4755 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4756 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4757 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4758 # OS/2's system install, which has a completely different semantic
4759 # ./install, which can be erroneously created by make from ./install.sh.
4760 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4761 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4762 if test -z "$INSTALL"; then
4763 if test "${ac_cv_path_install+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 # Account for people who put trailing slashes in PATH elements.
4772 case $as_dir/ in
4773 ./ | .// | /cC/* | \
4774 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4775 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4776 /usr/ucb/* ) ;;
4778 # OSF1 and SCO ODT 3.0 have their own names for install.
4779 # Don't use installbsd from OSF since it installs stuff as root
4780 # by default.
4781 for ac_prog in ginstall scoinst install; do
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4784 if test $ac_prog = install &&
4785 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4786 # AIX install. It has an incompatible calling convention.
4788 elif test $ac_prog = install &&
4789 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4790 # program-specific install script used by HP pwplus--don't use.
4792 else
4793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4794 break 3
4797 done
4798 done
4800 esac
4801 done
4802 IFS=$as_save_IFS
4806 if test "${ac_cv_path_install+set}" = set; then
4807 INSTALL=$ac_cv_path_install
4808 else
4809 # As a last resort, use the slow shell script. Don't cache a
4810 # value for INSTALL within a source directory, because that will
4811 # break other packages using the cache if that directory is
4812 # removed, or if the value is a relative name.
4813 INSTALL=$ac_install_sh
4816 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4817 echo "${ECHO_T}$INSTALL" >&6; }
4819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4820 # It thinks the first close brace ends the variable substitution.
4821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_prog_RANLIB+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 if test -n "$RANLIB"; then
4836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 RANLIB=$ac_cv_prog_RANLIB
4856 if test -n "$RANLIB"; then
4857 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4858 echo "${ECHO_T}$RANLIB" >&6; }
4859 else
4860 { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4866 if test -z "$ac_cv_prog_RANLIB"; then
4867 ac_ct_RANLIB=$RANLIB
4868 # Extract the first word of "ranlib", so it can be a program name with args.
4869 set dummy ranlib; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 if test -n "$ac_ct_RANLIB"; then
4876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_RANLIB="ranlib"
4886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4896 if test -n "$ac_ct_RANLIB"; then
4897 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4898 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4899 else
4900 { echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6; }
4904 if test "x$ac_ct_RANLIB" = x; then
4905 RANLIB=":"
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4910 whose name does not start with the host triplet. If you think this
4911 configuration is useful to you, please write to autoconf@gnu.org." >&5
4912 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4913 whose name does not start with the host triplet. If you think this
4914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4915 ac_tool_warned=yes ;;
4916 esac
4917 RANLIB=$ac_ct_RANLIB
4919 else
4920 RANLIB="$ac_cv_prog_RANLIB"
4925 # Used for building the win32 icons.
4927 # Extract the first word of "tgif", so it can be a program name with args.
4928 set dummy tgif; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_path_TGIF+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 case $TGIF in
4935 [\\/]* | ?:[\\/]*)
4936 ac_cv_path_TGIF="$TGIF" # Let the user override the test with a path.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_path_TGIF="$as_dir/$ac_word$ac_exec_ext"
4947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4950 done
4951 done
4952 IFS=$as_save_IFS
4954 test -z "$ac_cv_path_TGIF" && ac_cv_path_TGIF="notfound"
4956 esac
4958 TGIF=$ac_cv_path_TGIF
4959 if test -n "$TGIF"; then
4960 { echo "$as_me:$LINENO: result: $TGIF" >&5
4961 echo "${ECHO_T}$TGIF" >&6; }
4962 else
4963 { echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6; }
4968 if test x$TGIF = xnotfound; then
4969 MISSING_TGIF_TRUE=
4970 MISSING_TGIF_FALSE='#'
4971 else
4972 MISSING_TGIF_TRUE='#'
4973 MISSING_TGIF_FALSE=
4976 # Extract the first word of "xpmtoppm", so it can be a program name with args.
4977 set dummy xpmtoppm; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_XPMTOPPM+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 case $XPMTOPPM in
4984 [\\/]* | ?:[\\/]*)
4985 ac_cv_path_XPMTOPPM="$XPMTOPPM" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_XPMTOPPM="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4999 done
5000 done
5001 IFS=$as_save_IFS
5003 test -z "$ac_cv_path_XPMTOPPM" && ac_cv_path_XPMTOPPM="notfound"
5005 esac
5007 XPMTOPPM=$ac_cv_path_XPMTOPPM
5008 if test -n "$XPMTOPPM"; then
5009 { echo "$as_me:$LINENO: result: $XPMTOPPM" >&5
5010 echo "${ECHO_T}$XPMTOPPM" >&6; }
5011 else
5012 { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5017 # Extract the first word of "ppmtowinicon", so it can be a program name with args.
5018 set dummy ppmtowinicon; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_path_PPMTOWINICON+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 case $PPMTOWINICON in
5025 [\\/]* | ?:[\\/]*)
5026 ac_cv_path_PPMTOWINICON="$PPMTOWINICON" # Let the user override the test with a path.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_path_PPMTOWINICON="$as_dir/$ac_word$ac_exec_ext"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5040 done
5041 done
5042 IFS=$as_save_IFS
5044 test -z "$ac_cv_path_PPMTOWINICON" && ac_cv_path_PPMTOWINICON="notfound"
5046 esac
5048 PPMTOWINICON=$ac_cv_path_PPMTOWINICON
5049 if test -n "$PPMTOWINICON"; then
5050 { echo "$as_me:$LINENO: result: $PPMTOWINICON" >&5
5051 echo "${ECHO_T}$PPMTOWINICON" >&6; }
5052 else
5053 { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5058 if test x$PPMTOWINICON = xnotfound -o x$XPMTOPPM = xnotfound; then
5059 MISSING_XPMTOPPM_TRUE=
5060 MISSING_XPMTOPPM_FALSE='#'
5061 else
5062 MISSING_XPMTOPPM_TRUE='#'
5063 MISSING_XPMTOPPM_FALSE=
5066 # Extract the first word of "convert", so it can be a program name with args.
5067 set dummy convert; ac_word=$2
5068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5070 if test "${ac_cv_path_CONVERT+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 case $CONVERT in
5074 [\\/]* | ?:[\\/]*)
5075 ac_cv_path_CONVERT="$CONVERT" # Let the user override the test with a path.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_path_CONVERT="$as_dir/$ac_word$ac_exec_ext"
5086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5089 done
5090 done
5091 IFS=$as_save_IFS
5093 test -z "$ac_cv_path_CONVERT" && ac_cv_path_CONVERT="notfound"
5095 esac
5097 CONVERT=$ac_cv_path_CONVERT
5098 if test -n "$CONVERT"; then
5099 { echo "$as_me:$LINENO: result: $CONVERT" >&5
5100 echo "${ECHO_T}$CONVERT" >&6; }
5101 else
5102 { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5107 if test x$CONVERT = xnotfound; then
5108 MISSING_CONVERT_TRUE=
5109 MISSING_CONVERT_FALSE='#'
5110 else
5111 MISSING_CONVERT_TRUE='#'
5112 MISSING_CONVERT_FALSE=
5116 docs_yesno=yes
5118 { echo "$as_me:$LINENO: checking if the documentation should be built" >&5
5119 echo $ECHO_N "checking if the documentation should be built... $ECHO_C" >&6; }
5120 # Check whether --enable-doc was given.
5121 if test "${enable_doc+set}" = set; then
5122 enableval=$enable_doc;
5123 if test "X$enable_doc" = "Xno" ; then
5124 DOC=""
5125 { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5127 docs_yesno=no
5128 else
5129 DOC=doc
5130 { echo "$as_me:$LINENO: result: yes" >&5
5131 echo "${ECHO_T}yes" >&6; }
5132 docs_yesno=yes
5135 else
5137 DOC=doc
5138 { echo "$as_me:$LINENO: result: yes" >&5
5139 echo "${ECHO_T}yes" >&6; }
5140 docs_yesno=yes
5146 if test "X$docs_yesno" = "Xyes" -a "X$USE_MAINTAINER_MODE" = "Xyes" ; then
5147 for ac_prog in makeinfo
5149 # Extract the first word of "$ac_prog", so it can be a program name with args.
5150 set dummy $ac_prog; ac_word=$2
5151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5153 if test "${ac_cv_prog_MKINFO+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 if test -n "$MKINFO"; then
5157 ac_cv_prog_MKINFO="$MKINFO" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_MKINFO="$ac_prog"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5170 done
5171 done
5172 IFS=$as_save_IFS
5176 MKINFO=$ac_cv_prog_MKINFO
5177 if test -n "$MKINFO"; then
5178 { echo "$as_me:$LINENO: result: $MKINFO" >&5
5179 echo "${ECHO_T}$MKINFO" >&6; }
5180 else
5181 { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5186 test -n "$MKINFO" && break
5187 done
5188 test -n "$MKINFO" || MKINFO="no"
5190 if test "X$MKINFO" != "Xno"; then
5191 { echo "$as_me:$LINENO: checking for GNU makeinfo version >= 4.6" >&5
5192 echo $ECHO_N "checking for GNU makeinfo version >= 4.6... $ECHO_C" >&6; }
5193 v=`$MKINFO --version | grep "GNU texinfo"`
5194 if test $? -ne 0; then
5195 { echo "$as_me:$LINENO: result: non-GNU" >&5
5196 echo "${ECHO_T}non-GNU" >&6; }
5197 MKINFO="no"
5200 if test "X$MKINFO" != "Xno"; then
5201 vmajor=`echo "$v" | sed 's/.* \([0-9]*\)\.\([0-9]*\)$/\1/'`
5202 vminor=`echo "$v" | sed 's/.* \([0-9]*\)\.\([0-9]*\)$/\2/'`
5203 { echo "$as_me:$LINENO: result: $vmajor.$vminor" >&5
5204 echo "${ECHO_T}$vmajor.$vminor" >&6; }
5205 if test "$vmajor" -lt 4 \
5206 || (test "$vmajor" -eq 4 && test "$vminor" -lt 6); then
5207 MKINFO=no
5210 if test "X$MKINFO" = "Xno"; then
5211 { { echo "$as_me:$LINENO: error: You have requested a maintainer-mode build and a build
5212 of the documentation. For this to work, you must have version 4.6 or newer of
5213 the GNU texinfo package. You seem to have
5217 " >&5
5218 echo "$as_me: error: You have requested a maintainer-mode build and a build
5219 of the documentation. For this to work, you must have version 4.6 or newer of
5220 the GNU texinfo package. You seem to have
5224 " >&2;}
5225 { (exit 1); exit 1; }; }
5228 # Extract the first word of "perl", so it can be a program name with args.
5229 set dummy perl; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_PERL+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 case $PERL in
5236 [\\/]* | ?:[\\/]*)
5237 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5251 done
5252 done
5253 IFS=$as_save_IFS
5255 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="notfound"
5257 esac
5259 PERL=$ac_cv_path_PERL
5260 if test -n "$PERL"; then
5261 { echo "$as_me:$LINENO: result: $PERL" >&5
5262 echo "${ECHO_T}$PERL" >&6; }
5263 else
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5269 if test "X$PERL" = "Xnotfound"; then
5270 { { echo "$as_me:$LINENO: error: You have requested a maintainer-mode build and a build
5271 of the documentation. For this to work, you must have perl installed.
5272 " >&5
5273 echo "$as_me: error: You have requested a maintainer-mode build and a build
5274 of the documentation. For this to work, you must have perl installed.
5275 " >&2;}
5276 { (exit 1); exit 1; }; }
5280 # FIXME: for now, only try to add -rdynamic if we're using gcc. We really
5281 # need to figure out what the correct test is here. In the mean time, this
5282 # should let things build with SunPRO again.
5283 if test "x$GCC" = "xyes"; then
5284 { echo "$as_me:$LINENO: checking If the compiler accepts -rdynamic" >&5
5285 echo $ECHO_N "checking If the compiler accepts -rdynamic... $ECHO_C" >&6; }
5286 old_LDFLAGS="$LDFLAGS"
5287 LDFLAGS="$LDFLAGS -rdynamic"
5288 cat >conftest.$ac_ext <<_ACEOF
5289 int main(){}
5290 _ACEOF
5291 rm -f conftest.$ac_objext conftest$ac_exeext
5292 if { (ac_try="$ac_link"
5293 case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296 esac
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_link") 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } && {
5305 test -z "$ac_c_werror_flag" ||
5306 test ! -s conftest.err
5307 } && test -s conftest$ac_exeext &&
5308 $as_test_x conftest$ac_exeext; then
5309 { echo "$as_me:$LINENO: result: yes" >&5
5310 echo "${ECHO_T}yes" >&6; }
5311 else
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 LDFLAGS="$old_LDFLAGS"
5316 { echo "$as_me:$LINENO: result: no" >&5
5317 echo "${ECHO_T}no" >&6; }
5321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5322 conftest$ac_exeext conftest.$ac_ext
5325 # ------------- HID config -------------------
5327 hid_guis=""
5328 hid_printers=""
5329 hid_exporters=""
5330 hid_always=""
5332 for hid in `cd $srcdir/src/hid; echo *`; do
5333 F=$srcdir/src/hid/$hid/hid.conf
5334 if test -f $F
5335 then
5336 echo checking $F
5337 . $F
5338 case $type in
5339 gui ) hid_guis="$hid_guis $hid" ;;
5340 printer ) hid_printers="$hid_printers $hid" ;;
5341 export ) hid_exporters="$hid_exporters $hid" ;;
5342 always ) hid_always="$hid_always $hid" ;;
5343 esac
5345 done
5347 { echo "$as_me:$LINENO: checking for which gui to use" >&5
5348 echo $ECHO_N "checking for which gui to use... $ECHO_C" >&6; }
5350 # Check whether --with-gui was given.
5351 if test "${with_gui+set}" = set; then
5352 withval=$with_gui;
5353 else
5354 with_gui=gtk
5358 { echo "$as_me:$LINENO: result: $with_gui" >&5
5359 echo "${ECHO_T}$with_gui" >&6; }
5360 case " $hid_guis no none " in
5361 *\ $with_gui\ * ) HIDLIST="$with_gui" ;;
5362 * ) { { echo "$as_me:$LINENO: error: $with_gui is not a valid gui" >&5
5363 echo "$as_me: error: $with_gui is not a valid gui" >&2;}
5364 { (exit 1); exit 1; }; } ;;
5365 esac
5367 if test x"$with_gui" = x"none" -o x"$with_gui" = x"no"
5368 then
5369 HIDLIST=
5372 { echo "$as_me:$LINENO: checking for whether to use DBUS" >&5
5373 echo $ECHO_N "checking for whether to use DBUS... $ECHO_C" >&6; }
5374 # Check whether --enable-dbus was given.
5375 if test "${enable_dbus+set}" = set; then
5376 enableval=$enable_dbus;
5377 else
5378 enable_dbus=no
5382 { echo "$as_me:$LINENO: result: $enable_dbus" >&5
5383 echo "${ECHO_T}$enable_dbus" >&6; }
5384 if test x$enable_dbus = xyes; then
5385 WITH_DBUS_TRUE=
5386 WITH_DBUS_FALSE='#'
5387 else
5388 WITH_DBUS_TRUE='#'
5389 WITH_DBUS_FALSE=
5393 if test "x$enable_dbus" = "xyes"; then
5394 case " $with_gui " in
5395 *\ gtk\ *) ;;
5396 *\ lesstif\ *) ;;
5397 * ) { { echo "$as_me:$LINENO: error: DBUS enabled but only works with a mainloop capable GUI HID.
5398 Either do not use --enable-dbus or enable the gtk or lesstif GUI HID." >&5
5399 echo "$as_me: error: DBUS enabled but only works with a mainloop capable GUI HID.
5400 Either do not use --enable-dbus or enable the gtk or lesstif GUI HID." >&2;}
5401 { (exit 1); exit 1; }; }
5402 esac
5404 # Check for pkg-config
5405 # Extract the first word of "pkg-config", so it can be a program name with args.
5406 set dummy pkg-config; ac_word=$2
5407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5409 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412 case $PKG_CONFIG in
5413 [\\/]* | ?:[\\/]*)
5414 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5428 done
5429 done
5430 IFS=$as_save_IFS
5432 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5434 esac
5436 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5437 if test -n "$PKG_CONFIG"; then
5438 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5439 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5440 else
5441 { echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6; }
5446 if test "$PKG_CONFIG" = "no"; then
5447 { { echo "$as_me:$LINENO: error: Cannot find pkg-config, make sure it is installed and in your PATH" >&5
5448 echo "$as_me: error: Cannot find pkg-config, make sure it is installed and in your PATH" >&2;}
5449 { (exit 1); exit 1; }; }
5454 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5455 if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5457 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5460 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463 case $PKG_CONFIG in
5464 [\\/]* | ?:[\\/]*)
5465 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5475 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 break 2
5479 done
5480 done
5481 IFS=$as_save_IFS
5484 esac
5486 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5487 if test -n "$PKG_CONFIG"; then
5488 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5489 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5490 else
5491 { echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6; }
5497 if test -z "$ac_cv_path_PKG_CONFIG"; then
5498 ac_pt_PKG_CONFIG=$PKG_CONFIG
5499 # Extract the first word of "pkg-config", so it can be a program name with args.
5500 set dummy pkg-config; ac_word=$2
5501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5503 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506 case $ac_pt_PKG_CONFIG in
5507 [\\/]* | ?:[\\/]*)
5508 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5522 done
5523 done
5524 IFS=$as_save_IFS
5527 esac
5529 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5530 if test -n "$ac_pt_PKG_CONFIG"; then
5531 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5532 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5533 else
5534 { echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6; }
5538 if test "x$ac_pt_PKG_CONFIG" = x; then
5539 PKG_CONFIG=""
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5544 whose name does not start with the host triplet. If you think this
5545 configuration is useful to you, please write to autoconf@gnu.org." >&5
5546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5547 whose name does not start with the host triplet. If you think this
5548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5549 ac_tool_warned=yes ;;
5550 esac
5551 PKG_CONFIG=$ac_pt_PKG_CONFIG
5553 else
5554 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5558 if test -n "$PKG_CONFIG"; then
5559 _pkg_min_version=0.9.0
5560 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5561 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5562 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5563 { echo "$as_me:$LINENO: result: yes" >&5
5564 echo "${ECHO_T}yes" >&6; }
5565 else
5566 { echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6; }
5568 PKG_CONFIG=""
5573 pkg_failed=no
5574 { echo "$as_me:$LINENO: checking for DBUS" >&5
5575 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
5577 if test -n "$PKG_CONFIG"; then
5578 if test -n "$DBUS_CFLAGS"; then
5579 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
5580 else
5581 if test -n "$PKG_CONFIG" && \
5582 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.61\"") >&5
5583 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.61") 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; then
5587 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.61" 2>/dev/null`
5588 else
5589 pkg_failed=yes
5592 else
5593 pkg_failed=untried
5595 if test -n "$PKG_CONFIG"; then
5596 if test -n "$DBUS_LIBS"; then
5597 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
5598 else
5599 if test -n "$PKG_CONFIG" && \
5600 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.61\"") >&5
5601 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.61") 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; then
5605 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.61" 2>/dev/null`
5606 else
5607 pkg_failed=yes
5610 else
5611 pkg_failed=untried
5616 if test $pkg_failed = yes; then
5618 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5619 _pkg_short_errors_supported=yes
5620 else
5621 _pkg_short_errors_supported=no
5623 if test $_pkg_short_errors_supported = yes; then
5624 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1 >= 0.61"`
5625 else
5626 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 0.61"`
5628 # Put the nasty error message in config.log where it belongs
5629 echo "$DBUS_PKG_ERRORS" >&5
5631 { echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6; }
5633 { { echo "$as_me:$LINENO: error: Cannot find dbus-1 >= 0.61, install it and rerun ./configure
5634 Please review the following errors:
5635 $DBUS_PKG_ERRORS" >&5
5636 echo "$as_me: error: Cannot find dbus-1 >= 0.61, install it and rerun ./configure
5637 Please review the following errors:
5638 $DBUS_PKG_ERRORS" >&2;}
5639 { (exit 1); exit 1; }; }
5641 elif test $pkg_failed = untried; then
5642 { { echo "$as_me:$LINENO: error: Cannot find dbus-1 >= 0.61, install it and rerun ./configure
5643 Please review the following errors:
5644 $DBUS_PKG_ERRORS" >&5
5645 echo "$as_me: error: Cannot find dbus-1 >= 0.61, install it and rerun ./configure
5646 Please review the following errors:
5647 $DBUS_PKG_ERRORS" >&2;}
5648 { (exit 1); exit 1; }; }
5650 else
5651 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
5652 DBUS_LIBS=$pkg_cv_DBUS_LIBS
5653 { echo "$as_me:$LINENO: result: yes" >&5
5654 echo "${ECHO_T}yes" >&6; }
5657 DBUS_VERSION=`$PKG_CONFIG dbus-1 --modversion`
5660 cat >>confdefs.h <<\_ACEOF
5661 #define HAVE_DBUS 1
5662 _ACEOF
5667 { echo "$as_me:$LINENO: checking for which printer to use" >&5
5668 echo $ECHO_N "checking for which printer to use... $ECHO_C" >&6; }
5670 # Check whether --with-printer was given.
5671 if test "${with_printer+set}" = set; then
5672 withval=$with_printer;
5673 else
5674 with_printer=lpr
5677 { echo "$as_me:$LINENO: result: $with_printer" >&5
5678 echo "${ECHO_T}$with_printer" >&6; }
5679 case " $hid_printers " in
5680 *\ $with_printer\ * )
5681 HIDLIST="$HIDLIST $with_printer"
5683 * ) { { echo "$as_me:$LINENO: error: $with_printer is not a valid printer" >&5
5684 echo "$as_me: error: $with_printer is not a valid printer" >&2;}
5685 { (exit 1); exit 1; }; } ;;
5686 esac
5688 { echo "$as_me:$LINENO: checking for which exporters to use" >&5
5689 echo $ECHO_N "checking for which exporters to use... $ECHO_C" >&6; }
5691 # Check whether --with-exporters was given.
5692 if test "${with_exporters+set}" = set; then
5693 withval=$with_exporters;
5694 else
5695 with_exporters=$hid_exporters
5698 { echo "$as_me:$LINENO: result: $with_exporters" >&5
5699 echo "${ECHO_T}$with_exporters" >&6; }
5700 for e in `echo $with_exporters | sed 's/,/ /g'`; do
5701 case " $hid_exporters " in
5702 *\ $e\ * )
5703 HIDLIST="$HIDLIST $e"
5705 * ) { { echo "$as_me:$LINENO: error: $e is not a valid exporter" >&5
5706 echo "$as_me: error: $e is not a valid exporter" >&2;}
5707 { (exit 1); exit 1; }; } ;;
5708 esac
5709 done
5711 if test "X$enable_jpeg" = "Xno" -a "X$enable_gif" = "Xno" -a "X$enable_png" = "Xno" ; then
5712 case " ${HIDLIST} " in
5713 *\ png\ *)
5714 { { echo "$as_me:$LINENO: error: you have requested the png HID but turned off all output
5715 formats! If you do not want gif/jpeg/png output, use --with-exporters to list
5716 which exporters you want and do not list png there." >&5
5717 echo "$as_me: error: you have requested the png HID but turned off all output
5718 formats! If you do not want gif/jpeg/png output, use --with-exporters to list
5719 which exporters you want and do not list png there." >&2;}
5720 { (exit 1); exit 1; }; }
5725 esac
5728 for e in $HIDLIST; do
5729 HIDLIBS="$HIDLIBS lib$e.a"
5730 done
5735 # ------------- end HID config -------------------
5737 for ac_prog in gm4 m4
5739 # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5743 if test "${ac_cv_path_M4+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746 case $M4 in
5747 [\\/]* | ?:[\\/]*)
5748 ac_cv_path_M4="$M4" # Let the user override the test with a path.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5762 done
5763 done
5764 IFS=$as_save_IFS
5767 esac
5769 M4=$ac_cv_path_M4
5770 if test -n "$M4"; then
5771 { echo "$as_me:$LINENO: result: $M4" >&5
5772 echo "${ECHO_T}$M4" >&6; }
5773 else
5774 { echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6; }
5779 test -n "$M4" && break
5780 done
5781 test -n "$M4" || M4="none"
5783 if test "X$M4" = "Xnone" ; then
5784 { { echo "$as_me:$LINENO: error: Did not find a m4 executible. You need to make sure
5785 that m4 is installed on your system and that m4 is in your path" >&5
5786 echo "$as_me: error: Did not find a m4 executible. You need to make sure
5787 that m4 is installed on your system and that m4 is in your path" >&2;}
5788 { (exit 1); exit 1; }; }
5790 { echo "$as_me:$LINENO: checking if $M4 has the division involving negative numbers bug" >&5
5791 echo $ECHO_N "checking if $M4 has the division involving negative numbers bug... $ECHO_C" >&6; }
5792 pcb_m4_r=`echo "eval(-2/2)" | $M4`
5793 if test "$pcb_m4_r" != "-1" ; then
5794 { echo "$as_me:$LINENO: result: yes" >&5
5795 echo "${ECHO_T}yes" >&6; }
5796 { { echo "$as_me:$LINENO: error: It appears that $M4 has a bug involving division
5797 with negative numbers. In particular it just returned the result that
5798 -2/2 = $pcb_m4_r instead of -1. This is a known bug in GNU m4-1.4.9. Please
5799 install a non-broken m4." >&5
5800 echo "$as_me: error: It appears that $M4 has a bug involving division
5801 with negative numbers. In particular it just returned the result that
5802 -2/2 = $pcb_m4_r instead of -1. This is a known bug in GNU m4-1.4.9. Please
5803 install a non-broken m4." >&2;}
5804 { (exit 1); exit 1; }; }
5805 else
5806 { echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6; }
5811 for ac_prog in wish wish83 wish8.3 wish80 wish8.0 cygwish83 cygwish80
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814 set dummy $ac_prog; ac_word=$2
5815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817 if test "${ac_cv_path_WISH+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 case $WISH in
5821 [\\/]* | ?:[\\/]*)
5822 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
5833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5836 done
5837 done
5838 IFS=$as_save_IFS
5841 esac
5843 WISH=$ac_cv_path_WISH
5844 if test -n "$WISH"; then
5845 { echo "$as_me:$LINENO: result: $WISH" >&5
5846 echo "${ECHO_T}$WISH" >&6; }
5847 else
5848 { echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6; }
5853 test -n "$WISH" && break
5854 done
5855 test -n "$WISH" || WISH="none"
5857 if test "X$WISH" = "Xnone" ; then
5858 { { echo "$as_me:$LINENO: error: Did not find the wish executible. You need to make sure
5859 that tcl is installed on your system and that wish is in your path" >&5
5860 echo "$as_me: error: Did not find the wish executible. You need to make sure
5861 that tcl is installed on your system and that wish is in your path" >&2;}
5862 { (exit 1); exit 1; }; }
5866 cat >>confdefs.h <<_ACEOF
5867 #define M4 $M4
5868 _ACEOF
5870 GNUM4=$M4
5873 cat >>confdefs.h <<_ACEOF
5874 #define GNUM4 "$M4"
5875 _ACEOF
5878 for ac_prog in latex
5880 # Extract the first word of "$ac_prog", so it can be a program name with args.
5881 set dummy $ac_prog; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_prog_LATEX+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887 if test -n "$LATEX"; then
5888 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_LATEX="$ac_prog"
5898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5901 done
5902 done
5903 IFS=$as_save_IFS
5907 LATEX=$ac_cv_prog_LATEX
5908 if test -n "$LATEX"; then
5909 { echo "$as_me:$LINENO: result: $LATEX" >&5
5910 echo "${ECHO_T}$LATEX" >&6; }
5911 else
5912 { echo "$as_me:$LINENO: result: no" >&5
5913 echo "${ECHO_T}no" >&6; }
5917 test -n "$LATEX" && break
5918 done
5919 test -n "$LATEX" || LATEX="notfound"
5921 if test x$LATEX = xnotfound; then
5922 MISSING_LATEX_TRUE=
5923 MISSING_LATEX_FALSE='#'
5924 else
5925 MISSING_LATEX_TRUE='#'
5926 MISSING_LATEX_FALSE=
5930 for ac_prog in pdflatex
5932 # Extract the first word of "$ac_prog", so it can be a program name with args.
5933 set dummy $ac_prog; ac_word=$2
5934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5936 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939 if test -n "$PDFLATEX"; then
5940 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949 ac_cv_prog_PDFLATEX="$ac_prog"
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5953 done
5954 done
5955 IFS=$as_save_IFS
5959 PDFLATEX=$ac_cv_prog_PDFLATEX
5960 if test -n "$PDFLATEX"; then
5961 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
5962 echo "${ECHO_T}$PDFLATEX" >&6; }
5963 else
5964 { echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6; }
5969 test -n "$PDFLATEX" && break
5970 done
5971 test -n "$PDFLATEX" || PDFLATEX="notfound"
5973 if test x$PDFLATEX = xnotfound; then
5974 MISSING_PDFLATEX_TRUE=
5975 MISSING_PDFLATEX_FALSE='#'
5976 else
5977 MISSING_PDFLATEX_TRUE='#'
5978 MISSING_PDFLATEX_FALSE=
5982 for ac_prog in dvips
5984 # Extract the first word of "$ac_prog", so it can be a program name with args.
5985 set dummy $ac_prog; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_prog_DVIPS+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991 if test -n "$DVIPS"; then
5992 ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_DVIPS="$ac_prog"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6005 done
6006 done
6007 IFS=$as_save_IFS
6011 DVIPS=$ac_cv_prog_DVIPS
6012 if test -n "$DVIPS"; then
6013 { echo "$as_me:$LINENO: result: $DVIPS" >&5
6014 echo "${ECHO_T}$DVIPS" >&6; }
6015 else
6016 { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6021 test -n "$DVIPS" && break
6022 done
6023 test -n "$DVIPS" || DVIPS="notfound"
6025 if test x$DVIPS = xnotfound; then
6026 MISSING_DVIPS_TRUE=
6027 MISSING_DVIPS_FALSE='#'
6028 else
6029 MISSING_DVIPS_TRUE='#'
6030 MISSING_DVIPS_FALSE=
6034 for ac_prog in ps2pdf
6036 # Extract the first word of "$ac_prog", so it can be a program name with args.
6037 set dummy $ac_prog; ac_word=$2
6038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6040 if test "${ac_cv_prog_PS2PDF+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 if test -n "$PS2PDF"; then
6044 ac_cv_prog_PS2PDF="$PS2PDF" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_PS2PDF="$ac_prog"
6054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6057 done
6058 done
6059 IFS=$as_save_IFS
6063 PS2PDF=$ac_cv_prog_PS2PDF
6064 if test -n "$PS2PDF"; then
6065 { echo "$as_me:$LINENO: result: $PS2PDF" >&5
6066 echo "${ECHO_T}$PS2PDF" >&6; }
6067 else
6068 { echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6; }
6073 test -n "$PS2PDF" && break
6074 done
6075 test -n "$PS2PDF" || PS2PDF="notfound"
6077 if test x$PS2PDF = xnotfound; then
6078 MISSING_PS2PDF_TRUE=
6079 MISSING_PS2PDF_FALSE='#'
6080 else
6081 MISSING_PS2PDF_TRUE='#'
6082 MISSING_PS2PDF_FALSE=
6087 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
6088 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
6089 if test "${ac_cv_lib_m_sqrt+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092 ac_check_lib_save_LIBS=$LIBS
6093 LIBS="-lm $LIBS"
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6101 /* Override any GCC internal prototype to avoid an error.
6102 Use char because int might match the return type of a GCC
6103 builtin and then its argument prototype would still apply. */
6104 #ifdef __cplusplus
6105 extern "C"
6106 #endif
6107 char sqrt ();
6109 main ()
6111 return sqrt ();
6113 return 0;
6115 _ACEOF
6116 rm -f conftest.$ac_objext conftest$ac_exeext
6117 if { (ac_try="$ac_link"
6118 case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121 esac
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_link") 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest$ac_exeext &&
6133 $as_test_x conftest$ac_exeext; then
6134 ac_cv_lib_m_sqrt=yes
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 ac_cv_lib_m_sqrt=no
6142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6143 conftest$ac_exeext conftest.$ac_ext
6144 LIBS=$ac_check_lib_save_LIBS
6146 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
6147 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
6148 if test $ac_cv_lib_m_sqrt = yes; then
6149 cat >>confdefs.h <<_ACEOF
6150 #define HAVE_LIBM 1
6151 _ACEOF
6153 LIBS="-lm $LIBS"
6158 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6159 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
6160 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 ac_check_lib_save_LIBS=$LIBS
6164 LIBS="-ldl $LIBS"
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6172 /* Override any GCC internal prototype to avoid an error.
6173 Use char because int might match the return type of a GCC
6174 builtin and then its argument prototype would still apply. */
6175 #ifdef __cplusplus
6176 extern "C"
6177 #endif
6178 char dlopen ();
6180 main ()
6182 return dlopen ();
6184 return 0;
6186 _ACEOF
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (ac_try="$ac_link"
6189 case "(($ac_try" in
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6192 esac
6193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194 (eval "$ac_link") 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } && {
6201 test -z "$ac_c_werror_flag" ||
6202 test ! -s conftest.err
6203 } && test -s conftest$ac_exeext &&
6204 $as_test_x conftest$ac_exeext; then
6205 ac_cv_lib_dl_dlopen=yes
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_cv_lib_dl_dlopen=no
6213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6214 conftest$ac_exeext conftest.$ac_ext
6215 LIBS=$ac_check_lib_save_LIBS
6217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6218 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
6219 if test $ac_cv_lib_dl_dlopen = yes; then
6220 cat >>confdefs.h <<_ACEOF
6221 #define HAVE_LIBDL 1
6222 _ACEOF
6224 LIBS="-ldl $LIBS"
6229 { echo "$as_me:$LINENO: checking for gethostbyname in -lxnet" >&5
6230 echo $ECHO_N "checking for gethostbyname in -lxnet... $ECHO_C" >&6; }
6231 if test "${ac_cv_lib_xnet_gethostbyname+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 ac_check_lib_save_LIBS=$LIBS
6235 LIBS="-lxnet $LIBS"
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6243 /* Override any GCC internal prototype to avoid an error.
6244 Use char because int might match the return type of a GCC
6245 builtin and then its argument prototype would still apply. */
6246 #ifdef __cplusplus
6247 extern "C"
6248 #endif
6249 char gethostbyname ();
6251 main ()
6253 return gethostbyname ();
6255 return 0;
6257 _ACEOF
6258 rm -f conftest.$ac_objext conftest$ac_exeext
6259 if { (ac_try="$ac_link"
6260 case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_link") 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_c_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest$ac_exeext &&
6275 $as_test_x conftest$ac_exeext; then
6276 ac_cv_lib_xnet_gethostbyname=yes
6277 else
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 ac_cv_lib_xnet_gethostbyname=no
6284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6285 conftest$ac_exeext conftest.$ac_ext
6286 LIBS=$ac_check_lib_save_LIBS
6288 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_gethostbyname" >&5
6289 echo "${ECHO_T}$ac_cv_lib_xnet_gethostbyname" >&6; }
6290 if test $ac_cv_lib_xnet_gethostbyname = yes; then
6291 cat >>confdefs.h <<_ACEOF
6292 #define HAVE_LIBXNET 1
6293 _ACEOF
6295 LIBS="-lxnet $LIBS"
6300 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6301 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6302 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 ac_check_lib_save_LIBS=$LIBS
6306 LIBS="-lfl $LIBS"
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6314 /* Override any GCC internal prototype to avoid an error.
6315 Use char because int might match the return type of a GCC
6316 builtin and then its argument prototype would still apply. */
6317 #ifdef __cplusplus
6318 extern "C"
6319 #endif
6320 char yywrap ();
6322 main ()
6324 return yywrap ();
6326 return 0;
6328 _ACEOF
6329 rm -f conftest.$ac_objext conftest$ac_exeext
6330 if { (ac_try="$ac_link"
6331 case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334 esac
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_link") 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } && {
6343 test -z "$ac_c_werror_flag" ||
6344 test ! -s conftest.err
6345 } && test -s conftest$ac_exeext &&
6346 $as_test_x conftest$ac_exeext; then
6347 ac_cv_lib_fl_yywrap=yes
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_cv_lib_fl_yywrap=no
6355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6356 conftest$ac_exeext conftest.$ac_ext
6357 LIBS=$ac_check_lib_save_LIBS
6359 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6360 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6361 if test $ac_cv_lib_fl_yywrap = yes; then
6362 cat >>confdefs.h <<_ACEOF
6363 #define HAVE_LIBFL 1
6364 _ACEOF
6366 LIBS="-lfl $LIBS"
6371 for ac_func in strerror
6373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h. */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6387 #define $ac_func innocuous_$ac_func
6389 /* System header to define __stub macros and hopefully few prototypes,
6390 which can conflict with char $ac_func (); below.
6391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6392 <limits.h> exists even on freestanding compilers. */
6394 #ifdef __STDC__
6395 # include <limits.h>
6396 #else
6397 # include <assert.h>
6398 #endif
6400 #undef $ac_func
6402 /* Override any GCC internal prototype to avoid an error.
6403 Use char because int might match the return type of a GCC
6404 builtin and then its argument prototype would still apply. */
6405 #ifdef __cplusplus
6406 extern "C"
6407 #endif
6408 char $ac_func ();
6409 /* The GNU C library defines this for functions which it implements
6410 to always fail with ENOSYS. Some functions are actually named
6411 something starting with __ and the normal name is an alias. */
6412 #if defined __stub_$ac_func || defined __stub___$ac_func
6413 choke me
6414 #endif
6417 main ()
6419 return $ac_func ();
6421 return 0;
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (ac_try="$ac_link"
6426 case "(($ac_try" in
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6429 esac
6430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6431 (eval "$ac_link") 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } && {
6438 test -z "$ac_c_werror_flag" ||
6439 test ! -s conftest.err
6440 } && test -s conftest$ac_exeext &&
6441 $as_test_x conftest$ac_exeext; then
6442 eval "$as_ac_var=yes"
6443 else
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6447 eval "$as_ac_var=no"
6450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6451 conftest$ac_exeext conftest.$ac_ext
6453 ac_res=`eval echo '${'$as_ac_var'}'`
6454 { echo "$as_me:$LINENO: result: $ac_res" >&5
6455 echo "${ECHO_T}$ac_res" >&6; }
6456 if test `eval echo '${'$as_ac_var'}'` = yes; then
6457 cat >>confdefs.h <<_ACEOF
6458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6459 _ACEOF
6462 done
6466 for ac_func in regcomp re_comp
6468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6482 #define $ac_func innocuous_$ac_func
6484 /* System header to define __stub macros and hopefully few prototypes,
6485 which can conflict with char $ac_func (); below.
6486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6487 <limits.h> exists even on freestanding compilers. */
6489 #ifdef __STDC__
6490 # include <limits.h>
6491 #else
6492 # include <assert.h>
6493 #endif
6495 #undef $ac_func
6497 /* Override any GCC internal prototype to avoid an error.
6498 Use char because int might match the return type of a GCC
6499 builtin and then its argument prototype would still apply. */
6500 #ifdef __cplusplus
6501 extern "C"
6502 #endif
6503 char $ac_func ();
6504 /* The GNU C library defines this for functions which it implements
6505 to always fail with ENOSYS. Some functions are actually named
6506 something starting with __ and the normal name is an alias. */
6507 #if defined __stub_$ac_func || defined __stub___$ac_func
6508 choke me
6509 #endif
6512 main ()
6514 return $ac_func ();
6516 return 0;
6518 _ACEOF
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (ac_try="$ac_link"
6521 case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524 esac
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_link") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest$ac_exeext &&
6536 $as_test_x conftest$ac_exeext; then
6537 eval "$as_ac_var=yes"
6538 else
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6542 eval "$as_ac_var=no"
6545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6546 conftest$ac_exeext conftest.$ac_ext
6548 ac_res=`eval echo '${'$as_ac_var'}'`
6549 { echo "$as_me:$LINENO: result: $ac_res" >&5
6550 echo "${ECHO_T}$ac_res" >&6; }
6551 if test `eval echo '${'$as_ac_var'}'` = yes; then
6552 cat >>confdefs.h <<_ACEOF
6553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6554 _ACEOF
6557 done
6562 for ac_func in logf expf rint
6564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6578 #define $ac_func innocuous_$ac_func
6580 /* System header to define __stub macros and hopefully few prototypes,
6581 which can conflict with char $ac_func (); below.
6582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6583 <limits.h> exists even on freestanding compilers. */
6585 #ifdef __STDC__
6586 # include <limits.h>
6587 #else
6588 # include <assert.h>
6589 #endif
6591 #undef $ac_func
6593 /* Override any GCC internal prototype to avoid an error.
6594 Use char because int might match the return type of a GCC
6595 builtin and then its argument prototype would still apply. */
6596 #ifdef __cplusplus
6597 extern "C"
6598 #endif
6599 char $ac_func ();
6600 /* The GNU C library defines this for functions which it implements
6601 to always fail with ENOSYS. Some functions are actually named
6602 something starting with __ and the normal name is an alias. */
6603 #if defined __stub_$ac_func || defined __stub___$ac_func
6604 choke me
6605 #endif
6608 main ()
6610 return $ac_func ();
6612 return 0;
6614 _ACEOF
6615 rm -f conftest.$ac_objext conftest$ac_exeext
6616 if { (ac_try="$ac_link"
6617 case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620 esac
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_link") 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest$ac_exeext &&
6632 $as_test_x conftest$ac_exeext; then
6633 eval "$as_ac_var=yes"
6634 else
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6638 eval "$as_ac_var=no"
6641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6642 conftest$ac_exeext conftest.$ac_ext
6644 ac_res=`eval echo '${'$as_ac_var'}'`
6645 { echo "$as_me:$LINENO: result: $ac_res" >&5
6646 echo "${ECHO_T}$ac_res" >&6; }
6647 if test `eval echo '${'$as_ac_var'}'` = yes; then
6648 cat >>confdefs.h <<_ACEOF
6649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6650 _ACEOF
6653 done
6656 for ac_func in vsnprintf
6658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6672 #define $ac_func innocuous_$ac_func
6674 /* System header to define __stub macros and hopefully few prototypes,
6675 which can conflict with char $ac_func (); below.
6676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6677 <limits.h> exists even on freestanding compilers. */
6679 #ifdef __STDC__
6680 # include <limits.h>
6681 #else
6682 # include <assert.h>
6683 #endif
6685 #undef $ac_func
6687 /* Override any GCC internal prototype to avoid an error.
6688 Use char because int might match the return type of a GCC
6689 builtin and then its argument prototype would still apply. */
6690 #ifdef __cplusplus
6691 extern "C"
6692 #endif
6693 char $ac_func ();
6694 /* The GNU C library defines this for functions which it implements
6695 to always fail with ENOSYS. Some functions are actually named
6696 something starting with __ and the normal name is an alias. */
6697 #if defined __stub_$ac_func || defined __stub___$ac_func
6698 choke me
6699 #endif
6702 main ()
6704 return $ac_func ();
6706 return 0;
6708 _ACEOF
6709 rm -f conftest.$ac_objext conftest$ac_exeext
6710 if { (ac_try="$ac_link"
6711 case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714 esac
6715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716 (eval "$ac_link") 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && {
6723 test -z "$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 } && test -s conftest$ac_exeext &&
6726 $as_test_x conftest$ac_exeext; then
6727 eval "$as_ac_var=yes"
6728 else
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6732 eval "$as_ac_var=no"
6735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6736 conftest$ac_exeext conftest.$ac_ext
6738 ac_res=`eval echo '${'$as_ac_var'}'`
6739 { echo "$as_me:$LINENO: result: $ac_res" >&5
6740 echo "${ECHO_T}$ac_res" >&6; }
6741 if test `eval echo '${'$as_ac_var'}'` = yes; then
6742 cat >>confdefs.h <<_ACEOF
6743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6744 _ACEOF
6747 done
6752 for ac_func in getpwuid gethostname getcwd
6754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760 cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6768 #define $ac_func innocuous_$ac_func
6770 /* System header to define __stub macros and hopefully few prototypes,
6771 which can conflict with char $ac_func (); below.
6772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6773 <limits.h> exists even on freestanding compilers. */
6775 #ifdef __STDC__
6776 # include <limits.h>
6777 #else
6778 # include <assert.h>
6779 #endif
6781 #undef $ac_func
6783 /* Override any GCC internal prototype to avoid an error.
6784 Use char because int might match the return type of a GCC
6785 builtin and then its argument prototype would still apply. */
6786 #ifdef __cplusplus
6787 extern "C"
6788 #endif
6789 char $ac_func ();
6790 /* The GNU C library defines this for functions which it implements
6791 to always fail with ENOSYS. Some functions are actually named
6792 something starting with __ and the normal name is an alias. */
6793 #if defined __stub_$ac_func || defined __stub___$ac_func
6794 choke me
6795 #endif
6798 main ()
6800 return $ac_func ();
6802 return 0;
6804 _ACEOF
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (ac_try="$ac_link"
6807 case "(($ac_try" in
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6810 esac
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_link") 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } && {
6819 test -z "$ac_c_werror_flag" ||
6820 test ! -s conftest.err
6821 } && test -s conftest$ac_exeext &&
6822 $as_test_x conftest$ac_exeext; then
6823 eval "$as_ac_var=yes"
6824 else
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6828 eval "$as_ac_var=no"
6831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6834 ac_res=`eval echo '${'$as_ac_var'}'`
6835 { echo "$as_me:$LINENO: result: $ac_res" >&5
6836 echo "${ECHO_T}$ac_res" >&6; }
6837 if test `eval echo '${'$as_ac_var'}'` = yes; then
6838 cat >>confdefs.h <<_ACEOF
6839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6840 _ACEOF
6843 done
6846 for ac_func in random
6848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6862 #define $ac_func innocuous_$ac_func
6864 /* System header to define __stub macros and hopefully few prototypes,
6865 which can conflict with char $ac_func (); below.
6866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6867 <limits.h> exists even on freestanding compilers. */
6869 #ifdef __STDC__
6870 # include <limits.h>
6871 #else
6872 # include <assert.h>
6873 #endif
6875 #undef $ac_func
6877 /* Override any GCC internal prototype to avoid an error.
6878 Use char because int might match the return type of a GCC
6879 builtin and then its argument prototype would still apply. */
6880 #ifdef __cplusplus
6881 extern "C"
6882 #endif
6883 char $ac_func ();
6884 /* The GNU C library defines this for functions which it implements
6885 to always fail with ENOSYS. Some functions are actually named
6886 something starting with __ and the normal name is an alias. */
6887 #if defined __stub_$ac_func || defined __stub___$ac_func
6888 choke me
6889 #endif
6892 main ()
6894 return $ac_func ();
6896 return 0;
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6901 case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_link") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest$ac_exeext &&
6916 $as_test_x conftest$ac_exeext; then
6917 eval "$as_ac_var=yes"
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 eval "$as_ac_var=no"
6925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6926 conftest$ac_exeext conftest.$ac_ext
6928 ac_res=`eval echo '${'$as_ac_var'}'`
6929 { echo "$as_me:$LINENO: result: $ac_res" >&5
6930 echo "${ECHO_T}$ac_res" >&6; }
6931 if test `eval echo '${'$as_ac_var'}'` = yes; then
6932 cat >>confdefs.h <<_ACEOF
6933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6934 _ACEOF
6937 done
6940 for ac_func in stat
6942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h. */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6956 #define $ac_func innocuous_$ac_func
6958 /* System header to define __stub macros and hopefully few prototypes,
6959 which can conflict with char $ac_func (); below.
6960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6961 <limits.h> exists even on freestanding compilers. */
6963 #ifdef __STDC__
6964 # include <limits.h>
6965 #else
6966 # include <assert.h>
6967 #endif
6969 #undef $ac_func
6971 /* Override any GCC internal prototype to avoid an error.
6972 Use char because int might match the return type of a GCC
6973 builtin and then its argument prototype would still apply. */
6974 #ifdef __cplusplus
6975 extern "C"
6976 #endif
6977 char $ac_func ();
6978 /* The GNU C library defines this for functions which it implements
6979 to always fail with ENOSYS. Some functions are actually named
6980 something starting with __ and the normal name is an alias. */
6981 #if defined __stub_$ac_func || defined __stub___$ac_func
6982 choke me
6983 #endif
6986 main ()
6988 return $ac_func ();
6990 return 0;
6992 _ACEOF
6993 rm -f conftest.$ac_objext conftest$ac_exeext
6994 if { (ac_try="$ac_link"
6995 case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998 esac
6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000 (eval "$ac_link") 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7009 } && test -s conftest$ac_exeext &&
7010 $as_test_x conftest$ac_exeext; then
7011 eval "$as_ac_var=yes"
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 eval "$as_ac_var=no"
7019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7020 conftest$ac_exeext conftest.$ac_ext
7022 ac_res=`eval echo '${'$as_ac_var'}'`
7023 { echo "$as_me:$LINENO: result: $ac_res" >&5
7024 echo "${ECHO_T}$ac_res" >&6; }
7025 if test `eval echo '${'$as_ac_var'}'` = yes; then
7026 cat >>confdefs.h <<_ACEOF
7027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7028 _ACEOF
7031 done
7034 # normally used for all file i/o
7036 for ac_func in popen
7038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 cat >conftest.$ac_ext <<_ACEOF
7045 /* confdefs.h. */
7046 _ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7052 #define $ac_func innocuous_$ac_func
7054 /* System header to define __stub macros and hopefully few prototypes,
7055 which can conflict with char $ac_func (); below.
7056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7057 <limits.h> exists even on freestanding compilers. */
7059 #ifdef __STDC__
7060 # include <limits.h>
7061 #else
7062 # include <assert.h>
7063 #endif
7065 #undef $ac_func
7067 /* Override any GCC internal prototype to avoid an error.
7068 Use char because int might match the return type of a GCC
7069 builtin and then its argument prototype would still apply. */
7070 #ifdef __cplusplus
7071 extern "C"
7072 #endif
7073 char $ac_func ();
7074 /* The GNU C library defines this for functions which it implements
7075 to always fail with ENOSYS. Some functions are actually named
7076 something starting with __ and the normal name is an alias. */
7077 #if defined __stub_$ac_func || defined __stub___$ac_func
7078 choke me
7079 #endif
7082 main ()
7084 return $ac_func ();
7086 return 0;
7088 _ACEOF
7089 rm -f conftest.$ac_objext conftest$ac_exeext
7090 if { (ac_try="$ac_link"
7091 case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7094 esac
7095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7096 (eval "$ac_link") 2>conftest.er1
7097 ac_status=$?
7098 grep -v '^ *+' conftest.er1 >conftest.err
7099 rm -f conftest.er1
7100 cat conftest.err >&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && {
7103 test -z "$ac_c_werror_flag" ||
7104 test ! -s conftest.err
7105 } && test -s conftest$ac_exeext &&
7106 $as_test_x conftest$ac_exeext; then
7107 eval "$as_ac_var=yes"
7108 else
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 eval "$as_ac_var=no"
7115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7116 conftest$ac_exeext conftest.$ac_ext
7118 ac_res=`eval echo '${'$as_ac_var'}'`
7119 { echo "$as_me:$LINENO: result: $ac_res" >&5
7120 echo "${ECHO_T}$ac_res" >&6; }
7121 if test `eval echo '${'$as_ac_var'}'` = yes; then
7122 cat >>confdefs.h <<_ACEOF
7123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7124 _ACEOF
7127 done
7130 # for lrealpath.c
7133 for ac_func in realpath canonicalize_file_name
7135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7149 #define $ac_func innocuous_$ac_func
7151 /* System header to define __stub macros and hopefully few prototypes,
7152 which can conflict with char $ac_func (); below.
7153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7154 <limits.h> exists even on freestanding compilers. */
7156 #ifdef __STDC__
7157 # include <limits.h>
7158 #else
7159 # include <assert.h>
7160 #endif
7162 #undef $ac_func
7164 /* Override any GCC internal prototype to avoid an error.
7165 Use char because int might match the return type of a GCC
7166 builtin and then its argument prototype would still apply. */
7167 #ifdef __cplusplus
7168 extern "C"
7169 #endif
7170 char $ac_func ();
7171 /* The GNU C library defines this for functions which it implements
7172 to always fail with ENOSYS. Some functions are actually named
7173 something starting with __ and the normal name is an alias. */
7174 #if defined __stub_$ac_func || defined __stub___$ac_func
7175 choke me
7176 #endif
7179 main ()
7181 return $ac_func ();
7183 return 0;
7185 _ACEOF
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (ac_try="$ac_link"
7188 case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_link") 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest$ac_exeext &&
7203 $as_test_x conftest$ac_exeext; then
7204 eval "$as_ac_var=yes"
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 eval "$as_ac_var=no"
7212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7213 conftest$ac_exeext conftest.$ac_ext
7215 ac_res=`eval echo '${'$as_ac_var'}'`
7216 { echo "$as_me:$LINENO: result: $ac_res" >&5
7217 echo "${ECHO_T}$ac_res" >&6; }
7218 if test `eval echo '${'$as_ac_var'}'` = yes; then
7219 cat >>confdefs.h <<_ACEOF
7220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7221 _ACEOF
7224 done
7226 { echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
7227 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6; }
7228 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231 cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h. */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7238 #include "confdefs.h"
7239 #include <stdio.h>
7240 #ifdef HAVE_STRING_H
7241 #include <string.h>
7242 #else
7243 #ifdef HAVE_STRINGS_H
7244 #include <strings.h>
7245 #endif
7246 #endif
7247 #ifdef HAVE_STDLIB_H
7248 #include <stdlib.h>
7249 #endif
7250 #ifdef HAVE_UNISTD_H
7251 #include <unistd.h>
7252 #endif
7254 main ()
7256 char *(*pfn) = (char *(*)) canonicalize_file_name
7258 return 0;
7260 _ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7263 case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7278 libiberty_cv_decl_needed_canonicalize_file_name=no
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 libiberty_cv_decl_needed_canonicalize_file_name=yes
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 { echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
7290 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6; }
7291 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
7293 cat >>confdefs.h <<\_ACEOF
7294 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7295 _ACEOF
7301 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7302 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_GREP+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 # Extract the first word of "grep ggrep" to use in msg output
7307 if test -z "$GREP"; then
7308 set dummy grep ggrep; ac_prog_name=$2
7309 if test "${ac_cv_path_GREP+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312 ac_path_GREP_found=false
7313 # Loop through the user's path and test for each of PROGNAME-LIST
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_prog in grep ggrep; do
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7322 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7323 # Check for GNU ac_path_GREP and select it if it is found.
7324 # Check for GNU $ac_path_GREP
7325 case `"$ac_path_GREP" --version 2>&1` in
7326 *GNU*)
7327 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7329 ac_count=0
7330 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7331 while :
7333 cat "conftest.in" "conftest.in" >"conftest.tmp"
7334 mv "conftest.tmp" "conftest.in"
7335 cp "conftest.in" "conftest.nl"
7336 echo 'GREP' >> "conftest.nl"
7337 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7339 ac_count=`expr $ac_count + 1`
7340 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7341 # Best one so far, save it but keep looking for a better one
7342 ac_cv_path_GREP="$ac_path_GREP"
7343 ac_path_GREP_max=$ac_count
7345 # 10*(2^10) chars as input seems more than enough
7346 test $ac_count -gt 10 && break
7347 done
7348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7349 esac
7352 $ac_path_GREP_found && break 3
7353 done
7354 done
7356 done
7357 IFS=$as_save_IFS
7362 GREP="$ac_cv_path_GREP"
7363 if test -z "$GREP"; then
7364 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7365 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7366 { (exit 1); exit 1; }; }
7369 else
7370 ac_cv_path_GREP=$GREP
7375 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7376 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7377 GREP="$ac_cv_path_GREP"
7380 { echo "$as_me:$LINENO: checking for egrep" >&5
7381 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7382 if test "${ac_cv_path_EGREP+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7386 then ac_cv_path_EGREP="$GREP -E"
7387 else
7388 # Extract the first word of "egrep" to use in msg output
7389 if test -z "$EGREP"; then
7390 set dummy egrep; ac_prog_name=$2
7391 if test "${ac_cv_path_EGREP+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394 ac_path_EGREP_found=false
7395 # Loop through the user's path and test for each of PROGNAME-LIST
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_prog in egrep; do
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7404 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7405 # Check for GNU ac_path_EGREP and select it if it is found.
7406 # Check for GNU $ac_path_EGREP
7407 case `"$ac_path_EGREP" --version 2>&1` in
7408 *GNU*)
7409 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7411 ac_count=0
7412 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7413 while :
7415 cat "conftest.in" "conftest.in" >"conftest.tmp"
7416 mv "conftest.tmp" "conftest.in"
7417 cp "conftest.in" "conftest.nl"
7418 echo 'EGREP' >> "conftest.nl"
7419 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7421 ac_count=`expr $ac_count + 1`
7422 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7423 # Best one so far, save it but keep looking for a better one
7424 ac_cv_path_EGREP="$ac_path_EGREP"
7425 ac_path_EGREP_max=$ac_count
7427 # 10*(2^10) chars as input seems more than enough
7428 test $ac_count -gt 10 && break
7429 done
7430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7431 esac
7434 $ac_path_EGREP_found && break 3
7435 done
7436 done
7438 done
7439 IFS=$as_save_IFS
7444 EGREP="$ac_cv_path_EGREP"
7445 if test -z "$EGREP"; then
7446 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7447 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7448 { (exit 1); exit 1; }; }
7451 else
7452 ac_cv_path_EGREP=$EGREP
7458 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7459 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7460 EGREP="$ac_cv_path_EGREP"
7463 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7464 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7465 if test "${ac_cv_header_stdc+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 #include <stdlib.h>
7475 #include <stdarg.h>
7476 #include <string.h>
7477 #include <float.h>
7480 main ()
7484 return 0;
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7489 case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492 esac
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_cv_header_stdc=yes
7505 else
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_cv_header_stdc=no
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 if test $ac_cv_header_stdc = yes; then
7515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7516 cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h. */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7522 #include <string.h>
7524 _ACEOF
7525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7526 $EGREP "memchr" >/dev/null 2>&1; then
7528 else
7529 ac_cv_header_stdc=no
7531 rm -f conftest*
7535 if test $ac_cv_header_stdc = yes; then
7536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 #include <stdlib.h>
7545 _ACEOF
7546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7547 $EGREP "free" >/dev/null 2>&1; then
7549 else
7550 ac_cv_header_stdc=no
7552 rm -f conftest*
7556 if test $ac_cv_header_stdc = yes; then
7557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7558 if test "$cross_compiling" = yes; then
7560 else
7561 cat >conftest.$ac_ext <<_ACEOF
7562 /* confdefs.h. */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7567 #include <ctype.h>
7568 #include <stdlib.h>
7569 #if ((' ' & 0x0FF) == 0x020)
7570 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7571 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7572 #else
7573 # define ISLOWER(c) \
7574 (('a' <= (c) && (c) <= 'i') \
7575 || ('j' <= (c) && (c) <= 'r') \
7576 || ('s' <= (c) && (c) <= 'z'))
7577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7578 #endif
7580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7582 main ()
7584 int i;
7585 for (i = 0; i < 256; i++)
7586 if (XOR (islower (i), ISLOWER (i))
7587 || toupper (i) != TOUPPER (i))
7588 return 2;
7589 return 0;
7591 _ACEOF
7592 rm -f conftest$ac_exeext
7593 if { (ac_try="$ac_link"
7594 case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597 esac
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_link") 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7603 { (case "(($ac_try" in
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7606 esac
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 (eval "$ac_try") 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7613 else
7614 echo "$as_me: program exited with status $ac_status" >&5
7615 echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7618 ( exit $ac_status )
7619 ac_cv_header_stdc=no
7621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7627 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7628 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7629 if test $ac_cv_header_stdc = yes; then
7631 cat >>confdefs.h <<\_ACEOF
7632 #define STDC_HEADERS 1
7633 _ACEOF
7637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7647 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7648 inttypes.h stdint.h unistd.h
7650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 $ac_includes_default
7664 #include <$ac_header>
7665 _ACEOF
7666 rm -f conftest.$ac_objext
7667 if { (ac_try="$ac_compile"
7668 case "(($ac_try" in
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7683 eval "$as_ac_Header=yes"
7684 else
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 eval "$as_ac_Header=no"
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 ac_res=`eval echo '${'$as_ac_Header'}'`
7694 { echo "$as_me:$LINENO: result: $ac_res" >&5
7695 echo "${ECHO_T}$ac_res" >&6; }
7696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7697 cat >>confdefs.h <<_ACEOF
7698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7699 _ACEOF
7703 done
7711 for ac_header in limits.h string.h sys/types.h regex.h pwd.h
7713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 ac_res=`eval echo '${'$as_ac_Header'}'`
7721 { echo "$as_me:$LINENO: result: $ac_res" >&5
7722 echo "${ECHO_T}$ac_res" >&6; }
7723 else
7724 # Is the header compilable?
7725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7733 $ac_includes_default
7734 #include <$ac_header>
7735 _ACEOF
7736 rm -f conftest.$ac_objext
7737 if { (ac_try="$ac_compile"
7738 case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_compile") 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && {
7750 test -z "$ac_c_werror_flag" ||
7751 test ! -s conftest.err
7752 } && test -s conftest.$ac_objext; then
7753 ac_header_compiler=yes
7754 else
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7758 ac_header_compiler=no
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7763 echo "${ECHO_T}$ac_header_compiler" >&6; }
7765 # Is the header present?
7766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 #include <$ac_header>
7775 _ACEOF
7776 if { (ac_try="$ac_cpp conftest.$ac_ext"
7777 case "(($ac_try" in
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7780 esac
7781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7783 ac_status=$?
7784 grep -v '^ *+' conftest.er1 >conftest.err
7785 rm -f conftest.er1
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } >/dev/null && {
7789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7790 test ! -s conftest.err
7791 }; then
7792 ac_header_preproc=yes
7793 else
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 ac_header_preproc=no
7800 rm -f conftest.err conftest.$ac_ext
7801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7802 echo "${ECHO_T}$ac_header_preproc" >&6; }
7804 # So? What about this header?
7805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7806 yes:no: )
7807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7811 ac_header_preproc=yes
7813 no:yes:* )
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7828 esac
7829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834 eval "$as_ac_Header=\$ac_header_preproc"
7836 ac_res=`eval echo '${'$as_ac_Header'}'`
7837 { echo "$as_me:$LINENO: result: $ac_res" >&5
7838 echo "${ECHO_T}$ac_res" >&6; }
7841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7842 cat >>confdefs.h <<_ACEOF
7843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7844 _ACEOF
7848 done
7855 for ac_header in sys/socket.h netinet/in.h netdb.h sys/param.h sys/times.h
7857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 ac_res=`eval echo '${'$as_ac_Header'}'`
7865 { echo "$as_me:$LINENO: result: $ac_res" >&5
7866 echo "${ECHO_T}$ac_res" >&6; }
7867 else
7868 # Is the header compilable?
7869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h. */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 $ac_includes_default
7878 #include <$ac_header>
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7882 case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.$ac_objext; then
7897 ac_header_compiler=yes
7898 else
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_header_compiler=no
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7907 echo "${ECHO_T}$ac_header_compiler" >&6; }
7909 # Is the header present?
7910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7912 cat >conftest.$ac_ext <<_ACEOF
7913 /* confdefs.h. */
7914 _ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7918 #include <$ac_header>
7919 _ACEOF
7920 if { (ac_try="$ac_cpp conftest.$ac_ext"
7921 case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } >/dev/null && {
7933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 }; then
7936 ac_header_preproc=yes
7937 else
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 ac_header_preproc=no
7944 rm -f conftest.err conftest.$ac_ext
7945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7946 echo "${ECHO_T}$ac_header_preproc" >&6; }
7948 # So? What about this header?
7949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7950 yes:no: )
7951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7955 ac_header_preproc=yes
7957 no:yes:* )
7958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7972 esac
7973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978 eval "$as_ac_Header=\$ac_header_preproc"
7980 ac_res=`eval echo '${'$as_ac_Header'}'`
7981 { echo "$as_me:$LINENO: result: $ac_res" >&5
7982 echo "${ECHO_T}$ac_res" >&6; }
7985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7986 cat >>confdefs.h <<_ACEOF
7987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7988 _ACEOF
7992 done
7995 for ac_header in dlfcn.h
7997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 ac_res=`eval echo '${'$as_ac_Header'}'`
8005 { echo "$as_me:$LINENO: result: $ac_res" >&5
8006 echo "${ECHO_T}$ac_res" >&6; }
8007 else
8008 # Is the header compilable?
8009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8011 cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h. */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8017 $ac_includes_default
8018 #include <$ac_header>
8019 _ACEOF
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8022 case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
8037 ac_header_compiler=yes
8038 else
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_header_compiler=no
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8047 echo "${ECHO_T}$ac_header_compiler" >&6; }
8049 # Is the header present?
8050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h. */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 #include <$ac_header>
8059 _ACEOF
8060 if { (ac_try="$ac_cpp conftest.$ac_ext"
8061 case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } >/dev/null && {
8073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8075 }; then
8076 ac_header_preproc=yes
8077 else
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_header_preproc=no
8084 rm -f conftest.err conftest.$ac_ext
8085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8086 echo "${ECHO_T}$ac_header_preproc" >&6; }
8088 # So? What about this header?
8089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8090 yes:no: )
8091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8095 ac_header_preproc=yes
8097 no:yes:* )
8098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8112 esac
8113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118 eval "$as_ac_Header=\$ac_header_preproc"
8120 ac_res=`eval echo '${'$as_ac_Header'}'`
8121 { echo "$as_me:$LINENO: result: $ac_res" >&5
8122 echo "${ECHO_T}$ac_res" >&6; }
8125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8126 cat >>confdefs.h <<_ACEOF
8127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8128 _ACEOF
8132 done
8135 if test "x${WIN32}" = "xyes" ; then
8137 for ac_header in windows.h
8139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 ac_res=`eval echo '${'$as_ac_Header'}'`
8147 { echo "$as_me:$LINENO: result: $ac_res" >&5
8148 echo "${ECHO_T}$ac_res" >&6; }
8149 else
8150 # Is the header compilable?
8151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h. */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 $ac_includes_default
8160 #include <$ac_header>
8161 _ACEOF
8162 rm -f conftest.$ac_objext
8163 if { (ac_try="$ac_compile"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_header_compiler=yes
8180 else
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 ac_header_compiler=no
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8189 echo "${ECHO_T}$ac_header_compiler" >&6; }
8191 # Is the header present?
8192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 #include <$ac_header>
8201 _ACEOF
8202 if { (ac_try="$ac_cpp conftest.$ac_ext"
8203 case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8206 esac
8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } >/dev/null && {
8215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8216 test ! -s conftest.err
8217 }; then
8218 ac_header_preproc=yes
8219 else
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 ac_header_preproc=no
8226 rm -f conftest.err conftest.$ac_ext
8227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8228 echo "${ECHO_T}$ac_header_preproc" >&6; }
8230 # So? What about this header?
8231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8232 yes:no: )
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8237 ac_header_preproc=yes
8239 no:yes:* )
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8254 esac
8255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260 eval "$as_ac_Header=\$ac_header_preproc"
8262 ac_res=`eval echo '${'$as_ac_Header'}'`
8263 { echo "$as_me:$LINENO: result: $ac_res" >&5
8264 echo "${ECHO_T}$ac_res" >&6; }
8267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8268 cat >>confdefs.h <<_ACEOF
8269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8270 _ACEOF
8274 done
8278 for e in $HIDLIST; do
8279 case $e in
8280 lesstif )
8281 { echo "$as_me:$LINENO: checking for X" >&5
8282 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8285 # Check whether --with-x was given.
8286 if test "${with_x+set}" = set; then
8287 withval=$with_x;
8290 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8291 if test "x$with_x" = xno; then
8292 # The user explicitly disabled X.
8293 have_x=disabled
8294 else
8295 case $x_includes,$x_libraries in #(
8296 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8297 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8298 { (exit 1); exit 1; }; };; #(
8299 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302 # One or both of the vars are not set, and there is no cached value.
8303 ac_x_includes=no ac_x_libraries=no
8304 rm -f -r conftest.dir
8305 if mkdir conftest.dir; then
8306 cd conftest.dir
8307 cat >Imakefile <<'_ACEOF'
8308 incroot:
8309 @echo incroot='${INCROOT}'
8310 usrlibdir:
8311 @echo usrlibdir='${USRLIBDIR}'
8312 libdir:
8313 @echo libdir='${LIBDIR}'
8314 _ACEOF
8315 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8316 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8317 for ac_var in incroot usrlibdir libdir; do
8318 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8319 done
8320 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8321 for ac_extension in a so sl; do
8322 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8323 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8324 ac_im_usrlibdir=$ac_im_libdir; break
8326 done
8327 # Screen out bogus values from the imake configuration. They are
8328 # bogus both because they are the default anyway, and because
8329 # using them would break gcc on systems where it needs fixed includes.
8330 case $ac_im_incroot in
8331 /usr/include) ac_x_includes= ;;
8332 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8333 esac
8334 case $ac_im_usrlibdir in
8335 /usr/lib | /lib) ;;
8336 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8337 esac
8339 cd ..
8340 rm -f -r conftest.dir
8343 # Standard set of common directories for X headers.
8344 # Check X11 before X11Rn because it is often a symlink to the current release.
8345 ac_x_header_dirs='
8346 /usr/X11/include
8347 /usr/X11R6/include
8348 /usr/X11R5/include
8349 /usr/X11R4/include
8351 /usr/include/X11
8352 /usr/include/X11R6
8353 /usr/include/X11R5
8354 /usr/include/X11R4
8356 /usr/local/X11/include
8357 /usr/local/X11R6/include
8358 /usr/local/X11R5/include
8359 /usr/local/X11R4/include
8361 /usr/local/include/X11
8362 /usr/local/include/X11R6
8363 /usr/local/include/X11R5
8364 /usr/local/include/X11R4
8366 /usr/X386/include
8367 /usr/x386/include
8368 /usr/XFree86/include/X11
8370 /usr/include
8371 /usr/local/include
8372 /usr/unsupported/include
8373 /usr/athena/include
8374 /usr/local/x11r5/include
8375 /usr/lpp/Xamples/include
8377 /usr/openwin/include
8378 /usr/openwin/share/include'
8380 if test "$ac_x_includes" = no; then
8381 # Guess where to find include files, by looking for Xlib.h.
8382 # First, try using that file with no special directory specified.
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 #include <X11/Xlib.h>
8390 _ACEOF
8391 if { (ac_try="$ac_cpp conftest.$ac_ext"
8392 case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } >/dev/null && {
8404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 }; then
8407 # We can compile using X headers with no special include directory.
8408 ac_x_includes=
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 for ac_dir in $ac_x_header_dirs; do
8414 if test -r "$ac_dir/X11/Xlib.h"; then
8415 ac_x_includes=$ac_dir
8416 break
8418 done
8421 rm -f conftest.err conftest.$ac_ext
8422 fi # $ac_x_includes = no
8424 if test "$ac_x_libraries" = no; then
8425 # Check for the libraries.
8426 # See if we find them without any special options.
8427 # Don't add to $LIBS permanently.
8428 ac_save_LIBS=$LIBS
8429 LIBS="-lX11 $LIBS"
8430 cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h. */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 #include <X11/Xlib.h>
8438 main ()
8440 XrmInitialize ()
8442 return 0;
8444 _ACEOF
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (ac_try="$ac_link"
8447 case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_link") 2>conftest.er1
8453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest$ac_exeext &&
8462 $as_test_x conftest$ac_exeext; then
8463 LIBS=$ac_save_LIBS
8464 # We can link X programs with no special library path.
8465 ac_x_libraries=
8466 else
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 LIBS=$ac_save_LIBS
8471 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8473 # Don't even attempt the hair of trying to link an X program!
8474 for ac_extension in a so sl; do
8475 if test -r "$ac_dir/libX11.$ac_extension"; then
8476 ac_x_libraries=$ac_dir
8477 break 2
8479 done
8480 done
8483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8484 conftest$ac_exeext conftest.$ac_ext
8485 fi # $ac_x_libraries = no
8487 case $ac_x_includes,$ac_x_libraries in #(
8488 no,* | *,no | *\'*)
8489 # Didn't find X, or a directory has "'" in its name.
8490 ac_cv_have_x="have_x=no";; #(
8492 # Record where we found X for the cache.
8493 ac_cv_have_x="have_x=yes\
8494 ac_x_includes='$ac_x_includes'\
8495 ac_x_libraries='$ac_x_libraries'"
8496 esac
8498 ;; #(
8499 *) have_x=yes;;
8500 esac
8501 eval "$ac_cv_have_x"
8502 fi # $with_x != no
8504 if test "$have_x" != yes; then
8505 { echo "$as_me:$LINENO: result: $have_x" >&5
8506 echo "${ECHO_T}$have_x" >&6; }
8507 no_x=yes
8508 else
8509 # If each of the values was on the command line, it overrides each guess.
8510 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8511 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8512 # Update the cache value to reflect the command line values.
8513 ac_cv_have_x="have_x=yes\
8514 ac_x_includes='$x_includes'\
8515 ac_x_libraries='$x_libraries'"
8516 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8517 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
8520 if test "$no_x" = yes; then
8521 # Not all programs may use this symbol, but it does not hurt to define it.
8523 cat >>confdefs.h <<\_ACEOF
8524 #define X_DISPLAY_MISSING 1
8525 _ACEOF
8527 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8528 else
8529 if test -n "$x_includes"; then
8530 X_CFLAGS="$X_CFLAGS -I$x_includes"
8533 # It would also be nice to do this for all -L options, not just this one.
8534 if test -n "$x_libraries"; then
8535 X_LIBS="$X_LIBS -L$x_libraries"
8536 # For Solaris; some versions of Sun CC require a space after -R and
8537 # others require no space. Words are not sufficient . . . .
8538 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8539 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
8540 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8541 ac_xsave_c_werror_flag=$ac_c_werror_flag
8542 ac_c_werror_flag=yes
8543 cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h. */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8551 main ()
8555 return 0;
8557 _ACEOF
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (ac_try="$ac_link"
8560 case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563 esac
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_link") 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } && {
8572 test -z "$ac_c_werror_flag" ||
8573 test ! -s conftest.err
8574 } && test -s conftest$ac_exeext &&
8575 $as_test_x conftest$ac_exeext; then
8576 { echo "$as_me:$LINENO: result: no" >&5
8577 echo "${ECHO_T}no" >&6; }
8578 X_LIBS="$X_LIBS -R$x_libraries"
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 LIBS="$ac_xsave_LIBS -R $x_libraries"
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h. */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8592 main ()
8596 return 0;
8598 _ACEOF
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (ac_try="$ac_link"
8601 case "(($ac_try" in
8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603 *) ac_try_echo=$ac_try;;
8604 esac
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606 (eval "$ac_link") 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && {
8613 test -z "$ac_c_werror_flag" ||
8614 test ! -s conftest.err
8615 } && test -s conftest$ac_exeext &&
8616 $as_test_x conftest$ac_exeext; then
8617 { echo "$as_me:$LINENO: result: yes" >&5
8618 echo "${ECHO_T}yes" >&6; }
8619 X_LIBS="$X_LIBS -R $x_libraries"
8620 else
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 { echo "$as_me:$LINENO: result: neither works" >&5
8625 echo "${ECHO_T}neither works" >&6; }
8628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8629 conftest$ac_exeext conftest.$ac_ext
8632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8633 conftest$ac_exeext conftest.$ac_ext
8634 ac_c_werror_flag=$ac_xsave_c_werror_flag
8635 LIBS=$ac_xsave_LIBS
8638 # Check for system-dependent libraries X programs must link with.
8639 # Do this before checking for the system-independent R6 libraries
8640 # (-lICE), since we may need -lsocket or whatever for X linking.
8642 if test "$ISC" = yes; then
8643 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8644 else
8645 # Martyn Johnson says this is needed for Ultrix, if the X
8646 # libraries were built with DECnet support. And Karl Berry says
8647 # the Alpha needs dnet_stub (dnet does not exist).
8648 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8649 cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8656 /* Override any GCC internal prototype to avoid an error.
8657 Use char because int might match the return type of a GCC
8658 builtin and then its argument prototype would still apply. */
8659 #ifdef __cplusplus
8660 extern "C"
8661 #endif
8662 char XOpenDisplay ();
8664 main ()
8666 return XOpenDisplay ();
8668 return 0;
8670 _ACEOF
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (ac_try="$ac_link"
8673 case "(($ac_try" in
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8676 esac
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678 (eval "$ac_link") 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } && {
8685 test -z "$ac_c_werror_flag" ||
8686 test ! -s conftest.err
8687 } && test -s conftest$ac_exeext &&
8688 $as_test_x conftest$ac_exeext; then
8690 else
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8695 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
8696 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699 ac_check_lib_save_LIBS=$LIBS
8700 LIBS="-ldnet $LIBS"
8701 cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h. */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8708 /* Override any GCC internal prototype to avoid an error.
8709 Use char because int might match the return type of a GCC
8710 builtin and then its argument prototype would still apply. */
8711 #ifdef __cplusplus
8712 extern "C"
8713 #endif
8714 char dnet_ntoa ();
8716 main ()
8718 return dnet_ntoa ();
8720 return 0;
8722 _ACEOF
8723 rm -f conftest.$ac_objext conftest$ac_exeext
8724 if { (ac_try="$ac_link"
8725 case "(($ac_try" in
8726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8728 esac
8729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_link") 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest$ac_exeext &&
8740 $as_test_x conftest$ac_exeext; then
8741 ac_cv_lib_dnet_dnet_ntoa=yes
8742 else
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 ac_cv_lib_dnet_dnet_ntoa=no
8749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8750 conftest$ac_exeext conftest.$ac_ext
8751 LIBS=$ac_check_lib_save_LIBS
8753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8754 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8755 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8756 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8759 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8760 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8761 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
8762 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 ac_check_lib_save_LIBS=$LIBS
8766 LIBS="-ldnet_stub $LIBS"
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h. */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8774 /* Override any GCC internal prototype to avoid an error.
8775 Use char because int might match the return type of a GCC
8776 builtin and then its argument prototype would still apply. */
8777 #ifdef __cplusplus
8778 extern "C"
8779 #endif
8780 char dnet_ntoa ();
8782 main ()
8784 return dnet_ntoa ();
8786 return 0;
8788 _ACEOF
8789 rm -f conftest.$ac_objext conftest$ac_exeext
8790 if { (ac_try="$ac_link"
8791 case "(($ac_try" in
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8794 esac
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_link") 2>conftest.er1
8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } && {
8803 test -z "$ac_c_werror_flag" ||
8804 test ! -s conftest.err
8805 } && test -s conftest$ac_exeext &&
8806 $as_test_x conftest$ac_exeext; then
8807 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8808 else
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 ac_cv_lib_dnet_stub_dnet_ntoa=no
8815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8816 conftest$ac_exeext conftest.$ac_ext
8817 LIBS=$ac_check_lib_save_LIBS
8819 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8820 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8821 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8822 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8829 conftest$ac_exeext conftest.$ac_ext
8830 LIBS="$ac_xsave_LIBS"
8832 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8833 # to get the SysV transport functions.
8834 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8835 # needs -lnsl.
8836 # The nsl library prevents programs from opening the X display
8837 # on Irix 5.2, according to T.E. Dickey.
8838 # The functions gethostbyname, getservbyname, and inet_addr are
8839 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8840 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
8841 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
8842 if test "${ac_cv_func_gethostbyname+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 else
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8853 #define gethostbyname innocuous_gethostbyname
8855 /* System header to define __stub macros and hopefully few prototypes,
8856 which can conflict with char gethostbyname (); below.
8857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8858 <limits.h> exists even on freestanding compilers. */
8860 #ifdef __STDC__
8861 # include <limits.h>
8862 #else
8863 # include <assert.h>
8864 #endif
8866 #undef gethostbyname
8868 /* Override any GCC internal prototype to avoid an error.
8869 Use char because int might match the return type of a GCC
8870 builtin and then its argument prototype would still apply. */
8871 #ifdef __cplusplus
8872 extern "C"
8873 #endif
8874 char gethostbyname ();
8875 /* The GNU C library defines this for functions which it implements
8876 to always fail with ENOSYS. Some functions are actually named
8877 something starting with __ and the normal name is an alias. */
8878 #if defined __stub_gethostbyname || defined __stub___gethostbyname
8879 choke me
8880 #endif
8883 main ()
8885 return gethostbyname ();
8887 return 0;
8889 _ACEOF
8890 rm -f conftest.$ac_objext conftest$ac_exeext
8891 if { (ac_try="$ac_link"
8892 case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8895 esac
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_link") 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && {
8904 test -z "$ac_c_werror_flag" ||
8905 test ! -s conftest.err
8906 } && test -s conftest$ac_exeext &&
8907 $as_test_x conftest$ac_exeext; then
8908 ac_cv_func_gethostbyname=yes
8909 else
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_cv_func_gethostbyname=no
8916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8917 conftest$ac_exeext conftest.$ac_ext
8919 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8920 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
8922 if test $ac_cv_func_gethostbyname = no; then
8923 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8924 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
8925 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 ac_check_lib_save_LIBS=$LIBS
8929 LIBS="-lnsl $LIBS"
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h. */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8937 /* Override any GCC internal prototype to avoid an error.
8938 Use char because int might match the return type of a GCC
8939 builtin and then its argument prototype would still apply. */
8940 #ifdef __cplusplus
8941 extern "C"
8942 #endif
8943 char gethostbyname ();
8945 main ()
8947 return gethostbyname ();
8949 return 0;
8951 _ACEOF
8952 rm -f conftest.$ac_objext conftest$ac_exeext
8953 if { (ac_try="$ac_link"
8954 case "(($ac_try" in
8955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8956 *) ac_try_echo=$ac_try;;
8957 esac
8958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8959 (eval "$ac_link") 2>conftest.er1
8960 ac_status=$?
8961 grep -v '^ *+' conftest.er1 >conftest.err
8962 rm -f conftest.er1
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } && {
8966 test -z "$ac_c_werror_flag" ||
8967 test ! -s conftest.err
8968 } && test -s conftest$ac_exeext &&
8969 $as_test_x conftest$ac_exeext; then
8970 ac_cv_lib_nsl_gethostbyname=yes
8971 else
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_cv_lib_nsl_gethostbyname=no
8978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8979 conftest$ac_exeext conftest.$ac_ext
8980 LIBS=$ac_check_lib_save_LIBS
8982 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8983 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
8984 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8985 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8988 if test $ac_cv_lib_nsl_gethostbyname = no; then
8989 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8990 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
8991 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994 ac_check_lib_save_LIBS=$LIBS
8995 LIBS="-lbsd $LIBS"
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h. */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9003 /* Override any GCC internal prototype to avoid an error.
9004 Use char because int might match the return type of a GCC
9005 builtin and then its argument prototype would still apply. */
9006 #ifdef __cplusplus
9007 extern "C"
9008 #endif
9009 char gethostbyname ();
9011 main ()
9013 return gethostbyname ();
9015 return 0;
9017 _ACEOF
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (ac_try="$ac_link"
9020 case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_link") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
9034 } && test -s conftest$ac_exeext &&
9035 $as_test_x conftest$ac_exeext; then
9036 ac_cv_lib_bsd_gethostbyname=yes
9037 else
9038 echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9041 ac_cv_lib_bsd_gethostbyname=no
9044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9045 conftest$ac_exeext conftest.$ac_ext
9046 LIBS=$ac_check_lib_save_LIBS
9048 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9049 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
9050 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9051 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9057 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9058 # socket/setsockopt and other routines are undefined under SCO ODT
9059 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9060 # on later versions), says Simon Leinen: it contains gethostby*
9061 # variants that don't use the name server (or something). -lsocket
9062 # must be given before -lnsl if both are needed. We assume that
9063 # if connect needs -lnsl, so does gethostbyname.
9064 { echo "$as_me:$LINENO: checking for connect" >&5
9065 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
9066 if test "${ac_cv_func_connect+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 cat >conftest.$ac_ext <<_ACEOF
9070 /* confdefs.h. */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9077 #define connect innocuous_connect
9079 /* System header to define __stub macros and hopefully few prototypes,
9080 which can conflict with char connect (); below.
9081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9082 <limits.h> exists even on freestanding compilers. */
9084 #ifdef __STDC__
9085 # include <limits.h>
9086 #else
9087 # include <assert.h>
9088 #endif
9090 #undef connect
9092 /* Override any GCC internal prototype to avoid an error.
9093 Use char because int might match the return type of a GCC
9094 builtin and then its argument prototype would still apply. */
9095 #ifdef __cplusplus
9096 extern "C"
9097 #endif
9098 char connect ();
9099 /* The GNU C library defines this for functions which it implements
9100 to always fail with ENOSYS. Some functions are actually named
9101 something starting with __ and the normal name is an alias. */
9102 #if defined __stub_connect || defined __stub___connect
9103 choke me
9104 #endif
9107 main ()
9109 return connect ();
9111 return 0;
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (ac_try="$ac_link"
9116 case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_link") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest$ac_exeext &&
9131 $as_test_x conftest$ac_exeext; then
9132 ac_cv_func_connect=yes
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 ac_cv_func_connect=no
9140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9141 conftest$ac_exeext conftest.$ac_ext
9143 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9144 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
9146 if test $ac_cv_func_connect = no; then
9147 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9148 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
9149 if test "${ac_cv_lib_socket_connect+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152 ac_check_lib_save_LIBS=$LIBS
9153 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9154 cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h. */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9161 /* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
9164 #ifdef __cplusplus
9165 extern "C"
9166 #endif
9167 char connect ();
9169 main ()
9171 return connect ();
9173 return 0;
9175 _ACEOF
9176 rm -f conftest.$ac_objext conftest$ac_exeext
9177 if { (ac_try="$ac_link"
9178 case "(($ac_try" in
9179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180 *) ac_try_echo=$ac_try;;
9181 esac
9182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183 (eval "$ac_link") 2>conftest.er1
9184 ac_status=$?
9185 grep -v '^ *+' conftest.er1 >conftest.err
9186 rm -f conftest.er1
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } && {
9190 test -z "$ac_c_werror_flag" ||
9191 test ! -s conftest.err
9192 } && test -s conftest$ac_exeext &&
9193 $as_test_x conftest$ac_exeext; then
9194 ac_cv_lib_socket_connect=yes
9195 else
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 ac_cv_lib_socket_connect=no
9202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9203 conftest$ac_exeext conftest.$ac_ext
9204 LIBS=$ac_check_lib_save_LIBS
9206 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9207 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
9208 if test $ac_cv_lib_socket_connect = yes; then
9209 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9214 # Guillermo Gomez says -lposix is necessary on A/UX.
9215 { echo "$as_me:$LINENO: checking for remove" >&5
9216 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
9217 if test "${ac_cv_func_remove+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h. */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9228 #define remove innocuous_remove
9230 /* System header to define __stub macros and hopefully few prototypes,
9231 which can conflict with char remove (); below.
9232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9233 <limits.h> exists even on freestanding compilers. */
9235 #ifdef __STDC__
9236 # include <limits.h>
9237 #else
9238 # include <assert.h>
9239 #endif
9241 #undef remove
9243 /* Override any GCC internal prototype to avoid an error.
9244 Use char because int might match the return type of a GCC
9245 builtin and then its argument prototype would still apply. */
9246 #ifdef __cplusplus
9247 extern "C"
9248 #endif
9249 char remove ();
9250 /* The GNU C library defines this for functions which it implements
9251 to always fail with ENOSYS. Some functions are actually named
9252 something starting with __ and the normal name is an alias. */
9253 #if defined __stub_remove || defined __stub___remove
9254 choke me
9255 #endif
9258 main ()
9260 return remove ();
9262 return 0;
9264 _ACEOF
9265 rm -f conftest.$ac_objext conftest$ac_exeext
9266 if { (ac_try="$ac_link"
9267 case "(($ac_try" in
9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9270 esac
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_link") 2>conftest.er1
9273 ac_status=$?
9274 grep -v '^ *+' conftest.er1 >conftest.err
9275 rm -f conftest.er1
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } && {
9279 test -z "$ac_c_werror_flag" ||
9280 test ! -s conftest.err
9281 } && test -s conftest$ac_exeext &&
9282 $as_test_x conftest$ac_exeext; then
9283 ac_cv_func_remove=yes
9284 else
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 ac_cv_func_remove=no
9291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9292 conftest$ac_exeext conftest.$ac_ext
9294 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9295 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
9297 if test $ac_cv_func_remove = no; then
9298 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9299 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
9300 if test "${ac_cv_lib_posix_remove+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303 ac_check_lib_save_LIBS=$LIBS
9304 LIBS="-lposix $LIBS"
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h. */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9312 /* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
9315 #ifdef __cplusplus
9316 extern "C"
9317 #endif
9318 char remove ();
9320 main ()
9322 return remove ();
9324 return 0;
9326 _ACEOF
9327 rm -f conftest.$ac_objext conftest$ac_exeext
9328 if { (ac_try="$ac_link"
9329 case "(($ac_try" in
9330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9331 *) ac_try_echo=$ac_try;;
9332 esac
9333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9334 (eval "$ac_link") 2>conftest.er1
9335 ac_status=$?
9336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } && {
9341 test -z "$ac_c_werror_flag" ||
9342 test ! -s conftest.err
9343 } && test -s conftest$ac_exeext &&
9344 $as_test_x conftest$ac_exeext; then
9345 ac_cv_lib_posix_remove=yes
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 ac_cv_lib_posix_remove=no
9353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9354 conftest$ac_exeext conftest.$ac_ext
9355 LIBS=$ac_check_lib_save_LIBS
9357 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9358 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
9359 if test $ac_cv_lib_posix_remove = yes; then
9360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9365 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9366 { echo "$as_me:$LINENO: checking for shmat" >&5
9367 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
9368 if test "${ac_cv_func_shmat+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h. */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9379 #define shmat innocuous_shmat
9381 /* System header to define __stub macros and hopefully few prototypes,
9382 which can conflict with char shmat (); below.
9383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9384 <limits.h> exists even on freestanding compilers. */
9386 #ifdef __STDC__
9387 # include <limits.h>
9388 #else
9389 # include <assert.h>
9390 #endif
9392 #undef shmat
9394 /* Override any GCC internal prototype to avoid an error.
9395 Use char because int might match the return type of a GCC
9396 builtin and then its argument prototype would still apply. */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 char shmat ();
9401 /* The GNU C library defines this for functions which it implements
9402 to always fail with ENOSYS. Some functions are actually named
9403 something starting with __ and the normal name is an alias. */
9404 #if defined __stub_shmat || defined __stub___shmat
9405 choke me
9406 #endif
9409 main ()
9411 return shmat ();
9413 return 0;
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (ac_try="$ac_link"
9418 case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421 esac
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_link") 2>conftest.er1
9424 ac_status=$?
9425 grep -v '^ *+' conftest.er1 >conftest.err
9426 rm -f conftest.er1
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } && {
9430 test -z "$ac_c_werror_flag" ||
9431 test ! -s conftest.err
9432 } && test -s conftest$ac_exeext &&
9433 $as_test_x conftest$ac_exeext; then
9434 ac_cv_func_shmat=yes
9435 else
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_cv_func_shmat=no
9442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9443 conftest$ac_exeext conftest.$ac_ext
9445 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9446 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
9448 if test $ac_cv_func_shmat = no; then
9449 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9450 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
9451 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454 ac_check_lib_save_LIBS=$LIBS
9455 LIBS="-lipc $LIBS"
9456 cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h. */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9466 #ifdef __cplusplus
9467 extern "C"
9468 #endif
9469 char shmat ();
9471 main ()
9473 return shmat ();
9475 return 0;
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (ac_try="$ac_link"
9480 case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
9496 ac_cv_lib_ipc_shmat=yes
9497 else
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_lib_ipc_shmat=no
9504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9505 conftest$ac_exeext conftest.$ac_ext
9506 LIBS=$ac_check_lib_save_LIBS
9508 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9509 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
9510 if test $ac_cv_lib_ipc_shmat = yes; then
9511 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9517 # Check for libraries that X11R6 Xt/Xaw programs need.
9518 ac_save_LDFLAGS=$LDFLAGS
9519 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9520 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9521 # check for ICE first), but we must link in the order -lSM -lICE or
9522 # we get undefined symbols. So assume we have SM if we have ICE.
9523 # These have to be linked with before -lX11, unlike the other
9524 # libraries we check for below, so use a different variable.
9525 # John Interrante, Karl Berry
9526 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9527 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
9528 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531 ac_check_lib_save_LIBS=$LIBS
9532 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9533 cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h. */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9540 /* Override any GCC internal prototype to avoid an error.
9541 Use char because int might match the return type of a GCC
9542 builtin and then its argument prototype would still apply. */
9543 #ifdef __cplusplus
9544 extern "C"
9545 #endif
9546 char IceConnectionNumber ();
9548 main ()
9550 return IceConnectionNumber ();
9552 return 0;
9554 _ACEOF
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (ac_try="$ac_link"
9557 case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9560 esac
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_link") 2>conftest.er1
9563 ac_status=$?
9564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } && {
9569 test -z "$ac_c_werror_flag" ||
9570 test ! -s conftest.err
9571 } && test -s conftest$ac_exeext &&
9572 $as_test_x conftest$ac_exeext; then
9573 ac_cv_lib_ICE_IceConnectionNumber=yes
9574 else
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9578 ac_cv_lib_ICE_IceConnectionNumber=no
9581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9582 conftest$ac_exeext conftest.$ac_ext
9583 LIBS=$ac_check_lib_save_LIBS
9585 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9586 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9587 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9588 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9591 LDFLAGS=$ac_save_LDFLAGS
9595 CPPFLAGS="$CFLAGS $X_CFLAGS"
9597 { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
9598 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
9599 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 else
9602 ac_check_lib_save_LIBS=$LIBS
9603 LIBS="-lX11 $X_LIBS $LIBS"
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply. */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 char XOpenDisplay ();
9619 main ()
9621 return XOpenDisplay ();
9623 return 0;
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9628 case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9631 esac
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext &&
9643 $as_test_x conftest$ac_exeext; then
9644 ac_cv_lib_X11_XOpenDisplay=yes
9645 else
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_cv_lib_X11_XOpenDisplay=no
9652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653 conftest$ac_exeext conftest.$ac_ext
9654 LIBS=$ac_check_lib_save_LIBS
9656 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
9657 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
9658 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
9659 cat >>confdefs.h <<_ACEOF
9660 #define HAVE_LIBX11 1
9661 _ACEOF
9663 LIBS="-lX11 $LIBS"
9668 { echo "$as_me:$LINENO: checking for main in -lICE" >&5
9669 echo $ECHO_N "checking for main in -lICE... $ECHO_C" >&6; }
9670 if test "${ac_cv_lib_ICE_main+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 ac_check_lib_save_LIBS=$LIBS
9674 LIBS="-lICE $X_LIBS $LIBS"
9675 cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h. */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9684 main ()
9686 return main ();
9688 return 0;
9690 _ACEOF
9691 rm -f conftest.$ac_objext conftest$ac_exeext
9692 if { (ac_try="$ac_link"
9693 case "(($ac_try" in
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9696 esac
9697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_link") 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && {
9705 test -z "$ac_c_werror_flag" ||
9706 test ! -s conftest.err
9707 } && test -s conftest$ac_exeext &&
9708 $as_test_x conftest$ac_exeext; then
9709 ac_cv_lib_ICE_main=yes
9710 else
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9714 ac_cv_lib_ICE_main=no
9717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9718 conftest$ac_exeext conftest.$ac_ext
9719 LIBS=$ac_check_lib_save_LIBS
9721 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_main" >&5
9722 echo "${ECHO_T}$ac_cv_lib_ICE_main" >&6; }
9723 if test $ac_cv_lib_ICE_main = yes; then
9724 cat >>confdefs.h <<_ACEOF
9725 #define HAVE_LIBICE 1
9726 _ACEOF
9728 LIBS="-lICE $LIBS"
9733 { echo "$as_me:$LINENO: checking for main in -lSM" >&5
9734 echo $ECHO_N "checking for main in -lSM... $ECHO_C" >&6; }
9735 if test "${ac_cv_lib_SM_main+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738 ac_check_lib_save_LIBS=$LIBS
9739 LIBS="-lSM $X_LIBS $LIBS"
9740 cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h. */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9749 main ()
9751 return main ();
9753 return 0;
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9758 case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_link") 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } && {
9770 test -z "$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9772 } && test -s conftest$ac_exeext &&
9773 $as_test_x conftest$ac_exeext; then
9774 ac_cv_lib_SM_main=yes
9775 else
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_cv_lib_SM_main=no
9782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9783 conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9786 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_main" >&5
9787 echo "${ECHO_T}$ac_cv_lib_SM_main" >&6; }
9788 if test $ac_cv_lib_SM_main = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790 #define HAVE_LIBSM 1
9791 _ACEOF
9793 LIBS="-lSM $LIBS"
9798 { echo "$as_me:$LINENO: checking for main in -lXext" >&5
9799 echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6; }
9800 if test "${ac_cv_lib_Xext_main+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 ac_check_lib_save_LIBS=$LIBS
9804 LIBS="-lXext $X_LIBS $LIBS"
9805 cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h. */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9814 main ()
9816 return main ();
9818 return 0;
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9823 case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } && {
9835 test -z "$ac_c_werror_flag" ||
9836 test ! -s conftest.err
9837 } && test -s conftest$ac_exeext &&
9838 $as_test_x conftest$ac_exeext; then
9839 ac_cv_lib_Xext_main=yes
9840 else
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ac_cv_lib_Xext_main=no
9847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9848 conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9851 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
9852 echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6; }
9853 if test $ac_cv_lib_Xext_main = yes; then
9854 cat >>confdefs.h <<_ACEOF
9855 #define HAVE_LIBXEXT 1
9856 _ACEOF
9858 LIBS="-lXext $LIBS"
9863 { echo "$as_me:$LINENO: checking for XtOpenDisplay in -lXt" >&5
9864 echo $ECHO_N "checking for XtOpenDisplay in -lXt... $ECHO_C" >&6; }
9865 if test "${ac_cv_lib_Xt_XtOpenDisplay+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868 ac_check_lib_save_LIBS=$LIBS
9869 LIBS="-lXt $X_LIBS $LIBS"
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h. */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9877 /* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 char XtOpenDisplay ();
9885 main ()
9887 return XtOpenDisplay ();
9889 return 0;
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 } && test -s conftest$ac_exeext &&
9909 $as_test_x conftest$ac_exeext; then
9910 ac_cv_lib_Xt_XtOpenDisplay=yes
9911 else
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 ac_cv_lib_Xt_XtOpenDisplay=no
9918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LIBS=$ac_check_lib_save_LIBS
9922 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtOpenDisplay" >&5
9923 echo "${ECHO_T}$ac_cv_lib_Xt_XtOpenDisplay" >&6; }
9924 if test $ac_cv_lib_Xt_XtOpenDisplay = yes; then
9925 cat >>confdefs.h <<_ACEOF
9926 #define HAVE_LIBXT 1
9927 _ACEOF
9929 LIBS="-lXt $LIBS"
9934 { echo "$as_me:$LINENO: checking for main in -lXmu" >&5
9935 echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6; }
9936 if test "${ac_cv_lib_Xmu_main+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939 ac_check_lib_save_LIBS=$LIBS
9940 LIBS="-lXmu $X_LIBS $LIBS"
9941 cat >conftest.$ac_ext <<_ACEOF
9942 /* confdefs.h. */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9950 main ()
9952 return main ();
9954 return 0;
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (ac_try="$ac_link"
9959 case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9962 esac
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_link") 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } && {
9971 test -z "$ac_c_werror_flag" ||
9972 test ! -s conftest.err
9973 } && test -s conftest$ac_exeext &&
9974 $as_test_x conftest$ac_exeext; then
9975 ac_cv_lib_Xmu_main=yes
9976 else
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 ac_cv_lib_Xmu_main=no
9983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9984 conftest$ac_exeext conftest.$ac_ext
9985 LIBS=$ac_check_lib_save_LIBS
9987 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
9988 echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6; }
9989 if test $ac_cv_lib_Xmu_main = yes; then
9990 cat >>confdefs.h <<_ACEOF
9991 #define HAVE_LIBXMU 1
9992 _ACEOF
9994 LIBS="-lXmu $LIBS"
9999 { echo "$as_me:$LINENO: checking for main in -lXpm" >&5
10000 echo $ECHO_N "checking for main in -lXpm... $ECHO_C" >&6; }
10001 if test "${ac_cv_lib_Xpm_main+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 ac_check_lib_save_LIBS=$LIBS
10005 LIBS="-lXpm $X_LIBS $LIBS"
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h. */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10015 main ()
10017 return main ();
10019 return 0;
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (ac_try="$ac_link"
10024 case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_link") 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && {
10036 test -z "$ac_c_werror_flag" ||
10037 test ! -s conftest.err
10038 } && test -s conftest$ac_exeext &&
10039 $as_test_x conftest$ac_exeext; then
10040 ac_cv_lib_Xpm_main=yes
10041 else
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10045 ac_cv_lib_Xpm_main=no
10048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10049 conftest$ac_exeext conftest.$ac_ext
10050 LIBS=$ac_check_lib_save_LIBS
10052 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_main" >&5
10053 echo "${ECHO_T}$ac_cv_lib_Xpm_main" >&6; }
10054 if test $ac_cv_lib_Xpm_main = yes; then
10055 cat >>confdefs.h <<_ACEOF
10056 #define HAVE_LIBXPM 1
10057 _ACEOF
10059 LIBS="-lXpm $LIBS"
10064 { echo "$as_me:$LINENO: checking for XmCreateMainWindow in -lXm" >&5
10065 echo $ECHO_N "checking for XmCreateMainWindow in -lXm... $ECHO_C" >&6; }
10066 if test "${ac_cv_lib_Xm_XmCreateMainWindow+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 ac_check_lib_save_LIBS=$LIBS
10070 LIBS="-lXm $X_LIBS $LIBS"
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h. */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10081 #ifdef __cplusplus
10082 extern "C"
10083 #endif
10084 char XmCreateMainWindow ();
10086 main ()
10088 return XmCreateMainWindow ();
10090 return 0;
10092 _ACEOF
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (ac_try="$ac_link"
10095 case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098 esac
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_link") 2>conftest.er1
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } && {
10107 test -z "$ac_c_werror_flag" ||
10108 test ! -s conftest.err
10109 } && test -s conftest$ac_exeext &&
10110 $as_test_x conftest$ac_exeext; then
10111 ac_cv_lib_Xm_XmCreateMainWindow=yes
10112 else
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ac_cv_lib_Xm_XmCreateMainWindow=no
10119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10120 conftest$ac_exeext conftest.$ac_ext
10121 LIBS=$ac_check_lib_save_LIBS
10123 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateMainWindow" >&5
10124 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateMainWindow" >&6; }
10125 if test $ac_cv_lib_Xm_XmCreateMainWindow = yes; then
10126 cat >>confdefs.h <<_ACEOF
10127 #define HAVE_LIBXM 1
10128 _ACEOF
10130 LIBS="-lXm $LIBS"
10134 case $ac_cv_lib_Xm_XmCreateMainWindow in
10135 no )
10136 { { echo "$as_me:$LINENO: error: You don't seem to have the Lesstif development environment installed." >&5
10137 echo "$as_me: error: You don't seem to have the Lesstif development environment installed." >&2;}
10138 { (exit 1); exit 1; }; }
10140 * ) ;;
10141 esac
10143 for ac_header in Xm/Xm.h
10145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 ac_res=`eval echo '${'$as_ac_Header'}'`
10153 { echo "$as_me:$LINENO: result: $ac_res" >&5
10154 echo "${ECHO_T}$ac_res" >&6; }
10155 else
10156 # Is the header compilable?
10157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 $ac_includes_default
10166 #include <$ac_header>
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_compile") 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest.$ac_objext; then
10185 ac_header_compiler=yes
10186 else
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_header_compiler=no
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10195 echo "${ECHO_T}$ac_header_compiler" >&6; }
10197 # Is the header present?
10198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 #include <$ac_header>
10207 _ACEOF
10208 if { (ac_try="$ac_cpp conftest.$ac_ext"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } >/dev/null && {
10221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 }; then
10224 ac_header_preproc=yes
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ac_header_preproc=no
10232 rm -f conftest.err conftest.$ac_ext
10233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10234 echo "${ECHO_T}$ac_header_preproc" >&6; }
10236 # So? What about this header?
10237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10238 yes:no: )
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10243 ac_header_preproc=yes
10245 no:yes:* )
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10260 esac
10261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266 eval "$as_ac_Header=\$ac_header_preproc"
10268 ac_res=`eval echo '${'$as_ac_Header'}'`
10269 { echo "$as_me:$LINENO: result: $ac_res" >&5
10270 echo "${ECHO_T}$ac_res" >&6; }
10273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10274 cat >>confdefs.h <<_ACEOF
10275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10276 _ACEOF
10280 done
10282 case $ac_cv_header_Xm_Xm_h in
10283 no )
10284 { { echo "$as_me:$LINENO: error: You don't seem to have the Lesstif development environment installed." >&5
10285 echo "$as_me: error: You don't seem to have the Lesstif development environment installed." >&2;}
10286 { (exit 1); exit 1; }; }
10288 * ) ;;
10289 esac
10292 gtk )
10293 # Check for pkg-config
10294 # Extract the first word of "pkg-config", so it can be a program name with args.
10295 set dummy pkg-config; ac_word=$2
10296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10298 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 case $PKG_CONFIG in
10302 [\\/]* | ?:[\\/]*)
10303 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10313 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10317 done
10318 done
10319 IFS=$as_save_IFS
10321 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10323 esac
10325 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10326 if test -n "$PKG_CONFIG"; then
10327 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10328 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10329 else
10330 { echo "$as_me:$LINENO: result: no" >&5
10331 echo "${ECHO_T}no" >&6; }
10335 if test "$PKG_CONFIG" = "no"; then
10336 { { echo "$as_me:$LINENO: error: Cannot find pkg-config, make sure it is installed and in your PATH" >&5
10337 echo "$as_me: error: Cannot find pkg-config, make sure it is installed and in your PATH" >&2;}
10338 { (exit 1); exit 1; }; }
10342 pkg_failed=no
10343 { echo "$as_me:$LINENO: checking for GTK" >&5
10344 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10346 if test -n "$PKG_CONFIG"; then
10347 if test -n "$GTK_CFLAGS"; then
10348 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10349 else
10350 if test -n "$PKG_CONFIG" && \
10351 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\"") >&5
10352 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5
10353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; then
10356 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0" 2>/dev/null`
10357 else
10358 pkg_failed=yes
10361 else
10362 pkg_failed=untried
10364 if test -n "$PKG_CONFIG"; then
10365 if test -n "$GTK_LIBS"; then
10366 pkg_cv_GTK_LIBS="$GTK_LIBS"
10367 else
10368 if test -n "$PKG_CONFIG" && \
10369 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\"") >&5
10370 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; then
10374 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0" 2>/dev/null`
10375 else
10376 pkg_failed=yes
10379 else
10380 pkg_failed=untried
10385 if test $pkg_failed = yes; then
10387 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10388 _pkg_short_errors_supported=yes
10389 else
10390 _pkg_short_errors_supported=no
10392 if test $_pkg_short_errors_supported = yes; then
10393 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"`
10394 else
10395 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"`
10397 # Put the nasty error message in config.log where it belongs
10398 echo "$GTK_PKG_ERRORS" >&5
10400 { echo "$as_me:$LINENO: result: no" >&5
10401 echo "${ECHO_T}no" >&6; }
10402 { { echo "$as_me:$LINENO: error: Cannot find gtk+ >= 2.4.0, install it and rerun ./configure
10403 Please review the following errors:
10404 $GTK_PKG_ERRORS" >&5
10405 echo "$as_me: error: Cannot find gtk+ >= 2.4.0, install it and rerun ./configure
10406 Please review the following errors:
10407 $GTK_PKG_ERRORS" >&2;}
10408 { (exit 1); exit 1; }; }
10410 elif test $pkg_failed = untried; then
10411 { { echo "$as_me:$LINENO: error: Cannot find gtk+ >= 2.4.0, install it and rerun ./configure
10412 Please review the following errors:
10413 $GTK_PKG_ERRORS" >&5
10414 echo "$as_me: error: Cannot find gtk+ >= 2.4.0, install it and rerun ./configure
10415 Please review the following errors:
10416 $GTK_PKG_ERRORS" >&2;}
10417 { (exit 1); exit 1; }; }
10419 else
10420 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
10421 GTK_LIBS=$pkg_cv_GTK_LIBS
10422 { echo "$as_me:$LINENO: result: yes" >&5
10423 echo "${ECHO_T}yes" >&6; }
10426 GTK_VERSION=`$PKG_CONFIG gtk+-2.0 --modversion`
10428 # if we are building for gtk >= 2.8.0, we can use gdk_display_warp_pointer()
10429 # otherwise we need XWarpPointer and we'll pull in the required headers with
10430 # gdk/gdkx.h and we'll need to link with X11
10431 if ! $PKG_CONFIG gtk+-2.0 --atleast-version=2.8.0 ; then
10432 CPPFLAGS="$CFLAGS $GTK_CFLAGS"
10434 for ac_header in gdk/gdkx.h
10436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 ac_res=`eval echo '${'$as_ac_Header'}'`
10444 { echo "$as_me:$LINENO: result: $ac_res" >&5
10445 echo "${ECHO_T}$ac_res" >&6; }
10446 else
10447 # Is the header compilable?
10448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h. */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456 $ac_includes_default
10457 #include <$ac_header>
10458 _ACEOF
10459 rm -f conftest.$ac_objext
10460 if { (ac_try="$ac_compile"
10461 case "(($ac_try" in
10462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463 *) ac_try_echo=$ac_try;;
10464 esac
10465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10466 (eval "$ac_compile") 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest.$ac_objext; then
10476 ac_header_compiler=yes
10477 else
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_header_compiler=no
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10486 echo "${ECHO_T}$ac_header_compiler" >&6; }
10488 # Is the header present?
10489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h. */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <$ac_header>
10498 _ACEOF
10499 if { (ac_try="$ac_cpp conftest.$ac_ext"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503 esac
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } >/dev/null && {
10512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 }; then
10515 ac_header_preproc=yes
10516 else
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_header_preproc=no
10523 rm -f conftest.err conftest.$ac_ext
10524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10525 echo "${ECHO_T}$ac_header_preproc" >&6; }
10527 # So? What about this header?
10528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10529 yes:no: )
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10534 ac_header_preproc=yes
10536 no:yes:* )
10537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10551 esac
10552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557 eval "$as_ac_Header=\$ac_header_preproc"
10559 ac_res=`eval echo '${'$as_ac_Header'}'`
10560 { echo "$as_me:$LINENO: result: $ac_res" >&5
10561 echo "${ECHO_T}$ac_res" >&6; }
10564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10565 cat >>confdefs.h <<_ACEOF
10566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10567 _ACEOF
10571 done
10575 # Search for glib
10577 pkg_failed=no
10578 { echo "$as_me:$LINENO: checking for GLIB" >&5
10579 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10581 if test -n "$PKG_CONFIG"; then
10582 if test -n "$GLIB_CFLAGS"; then
10583 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10584 else
10585 if test -n "$PKG_CONFIG" && \
10586 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4.0\"") >&5
10587 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4.0") 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; then
10591 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4.0" 2>/dev/null`
10592 else
10593 pkg_failed=yes
10596 else
10597 pkg_failed=untried
10599 if test -n "$PKG_CONFIG"; then
10600 if test -n "$GLIB_LIBS"; then
10601 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10602 else
10603 if test -n "$PKG_CONFIG" && \
10604 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4.0\"") >&5
10605 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4.0") 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; then
10609 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4.0" 2>/dev/null`
10610 else
10611 pkg_failed=yes
10614 else
10615 pkg_failed=untried
10620 if test $pkg_failed = yes; then
10622 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10623 _pkg_short_errors_supported=yes
10624 else
10625 _pkg_short_errors_supported=no
10627 if test $_pkg_short_errors_supported = yes; then
10628 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.4.0"`
10629 else
10630 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4.0"`
10632 # Put the nasty error message in config.log where it belongs
10633 echo "$GLIB_PKG_ERRORS" >&5
10635 { echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6; }
10637 { { echo "$as_me:$LINENO: error: Cannot find glib >= 2.4.0, install it and rerun ./configure.
10638 Please review the following errors:
10639 $GLIB_PKG_ERRORS" >&5
10640 echo "$as_me: error: Cannot find glib >= 2.4.0, install it and rerun ./configure.
10641 Please review the following errors:
10642 $GLIB_PKG_ERRORS" >&2;}
10643 { (exit 1); exit 1; }; }
10645 elif test $pkg_failed = untried; then
10646 { { echo "$as_me:$LINENO: error: Cannot find glib >= 2.4.0, install it and rerun ./configure.
10647 Please review the following errors:
10648 $GLIB_PKG_ERRORS" >&5
10649 echo "$as_me: error: Cannot find glib >= 2.4.0, install it and rerun ./configure.
10650 Please review the following errors:
10651 $GLIB_PKG_ERRORS" >&2;}
10652 { (exit 1); exit 1; }; }
10654 else
10655 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10656 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10657 { echo "$as_me:$LINENO: result: yes" >&5
10658 echo "${ECHO_T}yes" >&6; }
10661 GLIB_VERSION=`$PKG_CONFIG glib-2.0 --modversion`
10664 nelma|png )
10665 # Check for gdlib-config for gd (www.boutell.com/gd)
10666 # Extract the first word of "gdlib-config", so it can be a program name with args.
10667 set dummy gdlib-config; ac_word=$2
10668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10670 if test "${ac_cv_path_GDLIB_CONFIG+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673 case $GDLIB_CONFIG in
10674 [\\/]* | ?:[\\/]*)
10675 ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685 ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10689 done
10690 done
10691 IFS=$as_save_IFS
10693 test -z "$ac_cv_path_GDLIB_CONFIG" && ac_cv_path_GDLIB_CONFIG="no"
10695 esac
10697 GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
10698 if test -n "$GDLIB_CONFIG"; then
10699 { echo "$as_me:$LINENO: result: $GDLIB_CONFIG" >&5
10700 echo "${ECHO_T}$GDLIB_CONFIG" >&6; }
10701 else
10702 { echo "$as_me:$LINENO: result: no" >&5
10703 echo "${ECHO_T}no" >&6; }
10707 if test "$GDLIB_CONFIG" = "no"; then
10708 { echo "$as_me:$LINENO: result: Cannot find gdlib-config.
10709 Make sure it is installed and in your PATH.
10710 gdlib-config is part of the GD library available from www.boutell.com/gd.
10711 This is needed for the png HID. I will look for libgd anyway and maybe
10712 you will get lucky.
10713 " >&5
10714 echo "${ECHO_T}Cannot find gdlib-config.
10715 Make sure it is installed and in your PATH.
10716 gdlib-config is part of the GD library available from www.boutell.com/gd.
10717 This is needed for the png HID. I will look for libgd anyway and maybe
10718 you will get lucky.
10719 " >&6; }
10720 if test "$WIN32" != "yes" ; then
10722 { echo "$as_me:$LINENO: checking for main in -lgd" >&5
10723 echo $ECHO_N "checking for main in -lgd... $ECHO_C" >&6; }
10724 if test "${ac_cv_lib_gd_main+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727 ac_check_lib_save_LIBS=$LIBS
10728 LIBS="-lgd $LIBS"
10729 cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h. */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10738 main ()
10740 return main ();
10742 return 0;
10744 _ACEOF
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (ac_try="$ac_link"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_link") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest$ac_exeext &&
10762 $as_test_x conftest$ac_exeext; then
10763 ac_cv_lib_gd_main=yes
10764 else
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 ac_cv_lib_gd_main=no
10771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10772 conftest$ac_exeext conftest.$ac_ext
10773 LIBS=$ac_check_lib_save_LIBS
10775 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_main" >&5
10776 echo "${ECHO_T}$ac_cv_lib_gd_main" >&6; }
10777 if test $ac_cv_lib_gd_main = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779 #define HAVE_LIBGD 1
10780 _ACEOF
10782 LIBS="-lgd $LIBS"
10784 else
10785 { { echo "$as_me:$LINENO: error: You have requested the nelma and/or png HID but -lgd could not be found" >&5
10786 echo "$as_me: error: You have requested the nelma and/or png HID but -lgd could not be found" >&2;}
10787 { (exit 1); exit 1; }; }
10790 else
10792 { echo "$as_me:$LINENO: checking for main in -lbgd" >&5
10793 echo $ECHO_N "checking for main in -lbgd... $ECHO_C" >&6; }
10794 if test "${ac_cv_lib_bgd_main+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797 ac_check_lib_save_LIBS=$LIBS
10798 LIBS="-lbgd $LIBS"
10799 cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10808 main ()
10810 return main ();
10812 return 0;
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (ac_try="$ac_link"
10817 case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_link") 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest$ac_exeext &&
10832 $as_test_x conftest$ac_exeext; then
10833 ac_cv_lib_bgd_main=yes
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_lib_bgd_main=no
10841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10842 conftest$ac_exeext conftest.$ac_ext
10843 LIBS=$ac_check_lib_save_LIBS
10845 { echo "$as_me:$LINENO: result: $ac_cv_lib_bgd_main" >&5
10846 echo "${ECHO_T}$ac_cv_lib_bgd_main" >&6; }
10847 if test $ac_cv_lib_bgd_main = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define HAVE_LIBBGD 1
10850 _ACEOF
10852 LIBS="-lbgd $LIBS"
10854 else
10855 { { echo "$as_me:$LINENO: error: You have requested the nelma and/or png HID but -lbgd could not be found" >&5
10856 echo "$as_me: error: You have requested the nelma and/or png HID but -lbgd could not be found" >&2;}
10857 { (exit 1); exit 1; }; }
10861 else
10862 if test "$WIN32" = "yes" ; then
10863 GD=bgd
10864 else
10865 GD=gd
10867 { echo "$as_me:$LINENO: checking for libgd cflags" >&5
10868 echo $ECHO_N "checking for libgd cflags... $ECHO_C" >&6; }
10869 GD_CFLAGS="`$GDLIB_CONFIG --cflags`"
10870 { echo "$as_me:$LINENO: result: $GD_CFLAGS" >&5
10871 echo "${ECHO_T}$GD_CFLAGS" >&6; }
10872 { echo "$as_me:$LINENO: checking for libgd libs" >&5
10873 echo $ECHO_N "checking for libgd libs... $ECHO_C" >&6; }
10874 GD_LIBS="`$GDLIB_CONFIG --ldflags` `$GDLIB_CONFIG --libs` -l${GD}"
10875 { echo "$as_me:$LINENO: result: $GD_LIBS" >&5
10876 echo "${ECHO_T}$GD_LIBS" >&6; }
10879 # since some linux systems evidently install gdlib-config but fail to
10880 # install the headers (nice), check for the header too and fail if it
10881 # is not there.
10882 CFLAGS="$CFLAGS $GD_CFLAGS"
10883 CPPFLAGS="$CPPFLAGS $GD_CFLAGS"
10885 for ac_header in gd.h
10887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 ac_res=`eval echo '${'$as_ac_Header'}'`
10895 { echo "$as_me:$LINENO: result: $ac_res" >&5
10896 echo "${ECHO_T}$ac_res" >&6; }
10897 else
10898 # Is the header compilable?
10899 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10901 cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h. */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10907 $ac_includes_default
10908 #include <$ac_header>
10909 _ACEOF
10910 rm -f conftest.$ac_objext
10911 if { (ac_try="$ac_compile"
10912 case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_compile") 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } && {
10924 test -z "$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest.$ac_objext; then
10927 ac_header_compiler=yes
10928 else
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10932 ac_header_compiler=no
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10937 echo "${ECHO_T}$ac_header_compiler" >&6; }
10939 # Is the header present?
10940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h. */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10948 #include <$ac_header>
10949 _ACEOF
10950 if { (ac_try="$ac_cpp conftest.$ac_ext"
10951 case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } >/dev/null && {
10963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 }; then
10966 ac_header_preproc=yes
10967 else
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_header_preproc=no
10974 rm -f conftest.err conftest.$ac_ext
10975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10976 echo "${ECHO_T}$ac_header_preproc" >&6; }
10978 # So? What about this header?
10979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10980 yes:no: )
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10985 ac_header_preproc=yes
10987 no:yes:* )
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11002 esac
11003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008 eval "$as_ac_Header=\$ac_header_preproc"
11010 ac_res=`eval echo '${'$as_ac_Header'}'`
11011 { echo "$as_me:$LINENO: result: $ac_res" >&5
11012 echo "${ECHO_T}$ac_res" >&6; }
11015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11016 cat >>confdefs.h <<_ACEOF
11017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11018 _ACEOF
11022 done
11024 case $ac_cv_header_gd_h in
11025 no )
11026 { { echo "$as_me:$LINENO: error:
11027 You evidentally do not have a complete installation of the GD library available from www.boutell.com/gd.
11028 This is needed for the nelma and/or png HID.
11029 " >&5
11030 echo "$as_me: error:
11031 You evidentally do not have a complete installation of the GD library available from www.boutell.com/gd.
11032 This is needed for the nelma and/or png HID.
11033 " >&2;}
11034 { (exit 1); exit 1; }; }
11036 * ) ;;
11037 esac
11039 # Some versions of gd (prior to the expiration of the
11040 # patent related to gif compression) do not support
11041 # gif output. Check for that here.
11042 save_LIBS="$LIBS"
11043 LIBS="$save_LIBS $GD_LIBS $X_LIBS"
11045 { echo "$as_me:$LINENO: checking if GIF output from the png HID is desired" >&5
11046 echo $ECHO_N "checking if GIF output from the png HID is desired... $ECHO_C" >&6; }
11047 # Check whether --enable-gif was given.
11048 if test "${enable_gif+set}" = set; then
11049 enableval=$enable_gif;
11050 if test "X$enable_gif" != "Xno" ; then
11051 { echo "$as_me:$LINENO: result: yes" >&5
11052 echo "${ECHO_T}yes" >&6; }
11053 with_gif=yes
11054 else
11055 { echo "$as_me:$LINENO: result: no" >&5
11056 echo "${ECHO_T}no" >&6; }
11057 with_gif=no
11060 else
11062 { echo "$as_me:$LINENO: result: yes" >&5
11063 echo "${ECHO_T}yes" >&6; }
11064 with_gif=yes
11068 if test "X$with_gif" = "Xyes" ; then
11070 for ac_func in gdImageGif
11072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h. */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11086 #define $ac_func innocuous_$ac_func
11088 /* System header to define __stub macros and hopefully few prototypes,
11089 which can conflict with char $ac_func (); below.
11090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11091 <limits.h> exists even on freestanding compilers. */
11093 #ifdef __STDC__
11094 # include <limits.h>
11095 #else
11096 # include <assert.h>
11097 #endif
11099 #undef $ac_func
11101 /* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
11104 #ifdef __cplusplus
11105 extern "C"
11106 #endif
11107 char $ac_func ();
11108 /* The GNU C library defines this for functions which it implements
11109 to always fail with ENOSYS. Some functions are actually named
11110 something starting with __ and the normal name is an alias. */
11111 #if defined __stub_$ac_func || defined __stub___$ac_func
11112 choke me
11113 #endif
11116 main ()
11118 return $ac_func ();
11120 return 0;
11122 _ACEOF
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_link") 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } && {
11137 test -z "$ac_c_werror_flag" ||
11138 test ! -s conftest.err
11139 } && test -s conftest$ac_exeext &&
11140 $as_test_x conftest$ac_exeext; then
11141 eval "$as_ac_var=yes"
11142 else
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 eval "$as_ac_var=no"
11149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11150 conftest$ac_exeext conftest.$ac_ext
11152 ac_res=`eval echo '${'$as_ac_var'}'`
11153 { echo "$as_me:$LINENO: result: $ac_res" >&5
11154 echo "${ECHO_T}$ac_res" >&6; }
11155 if test `eval echo '${'$as_ac_var'}'` = yes; then
11156 cat >>confdefs.h <<_ACEOF
11157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11158 _ACEOF
11161 done
11163 if test "$ac_cv_func_gdImageGif" != "yes"; then
11164 { { echo "$as_me:$LINENO: error: Your gd installation does not appear to include gif support.
11165 You may need to update your installation of gd or disable
11166 gif export with --disable-gif" >&5
11167 echo "$as_me: error: Your gd installation does not appear to include gif support.
11168 You may need to update your installation of gd or disable
11169 gif export with --disable-gif" >&2;}
11170 { (exit 1); exit 1; }; }
11174 { echo "$as_me:$LINENO: checking if JPEG output from the png HID is desired" >&5
11175 echo $ECHO_N "checking if JPEG output from the png HID is desired... $ECHO_C" >&6; }
11176 # Check whether --enable-jpeg was given.
11177 if test "${enable_jpeg+set}" = set; then
11178 enableval=$enable_jpeg;
11179 if test "X$enable_jpeg" != "Xno" ; then
11180 { echo "$as_me:$LINENO: result: yes" >&5
11181 echo "${ECHO_T}yes" >&6; }
11182 with_jpeg=yes
11183 else
11184 { echo "$as_me:$LINENO: result: no" >&5
11185 echo "${ECHO_T}no" >&6; }
11186 with_jpeg=no
11189 else
11191 { echo "$as_me:$LINENO: result: yes" >&5
11192 echo "${ECHO_T}yes" >&6; }
11193 with_jpeg=yes
11197 if test "X$with_jpeg" = "Xyes" ; then
11199 for ac_func in gdImageJpeg
11201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h. */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11215 #define $ac_func innocuous_$ac_func
11217 /* System header to define __stub macros and hopefully few prototypes,
11218 which can conflict with char $ac_func (); below.
11219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11220 <limits.h> exists even on freestanding compilers. */
11222 #ifdef __STDC__
11223 # include <limits.h>
11224 #else
11225 # include <assert.h>
11226 #endif
11228 #undef $ac_func
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 char $ac_func ();
11237 /* The GNU C library defines this for functions which it implements
11238 to always fail with ENOSYS. Some functions are actually named
11239 something starting with __ and the normal name is an alias. */
11240 #if defined __stub_$ac_func || defined __stub___$ac_func
11241 choke me
11242 #endif
11245 main ()
11247 return $ac_func ();
11249 return 0;
11251 _ACEOF
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (ac_try="$ac_link"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_link") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest$ac_exeext &&
11269 $as_test_x conftest$ac_exeext; then
11270 eval "$as_ac_var=yes"
11271 else
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 eval "$as_ac_var=no"
11278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11279 conftest$ac_exeext conftest.$ac_ext
11281 ac_res=`eval echo '${'$as_ac_var'}'`
11282 { echo "$as_me:$LINENO: result: $ac_res" >&5
11283 echo "${ECHO_T}$ac_res" >&6; }
11284 if test `eval echo '${'$as_ac_var'}'` = yes; then
11285 cat >>confdefs.h <<_ACEOF
11286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11287 _ACEOF
11290 done
11292 if test "$ac_cv_func_gdImageJpeg" != "yes"; then
11293 { { echo "$as_me:$LINENO: error: Your gd installation does not appear to include JPEG support.
11294 You may need to update your installation of gd or disable
11295 JPEG export with --disable-jpeg" >&5
11296 echo "$as_me: error: Your gd installation does not appear to include JPEG support.
11297 You may need to update your installation of gd or disable
11298 JPEG export with --disable-jpeg" >&2;}
11299 { (exit 1); exit 1; }; }
11304 { echo "$as_me:$LINENO: checking if PNG output from the png HID is desired" >&5
11305 echo $ECHO_N "checking if PNG output from the png HID is desired... $ECHO_C" >&6; }
11306 # Check whether --enable-png was given.
11307 if test "${enable_png+set}" = set; then
11308 enableval=$enable_png;
11309 if test "X$enable_png" != "Xno" ; then
11310 { echo "$as_me:$LINENO: result: yes" >&5
11311 echo "${ECHO_T}yes" >&6; }
11312 with_png=yes
11313 else
11314 { echo "$as_me:$LINENO: result: no" >&5
11315 echo "${ECHO_T}no" >&6; }
11316 with_png=no
11319 else
11321 { echo "$as_me:$LINENO: result: yes" >&5
11322 echo "${ECHO_T}yes" >&6; }
11323 with_png=yes
11327 if test "X$with_png" = "Xyes" ; then
11329 for ac_func in gdImagePng
11331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h. */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11345 #define $ac_func innocuous_$ac_func
11347 /* System header to define __stub macros and hopefully few prototypes,
11348 which can conflict with char $ac_func (); below.
11349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11350 <limits.h> exists even on freestanding compilers. */
11352 #ifdef __STDC__
11353 # include <limits.h>
11354 #else
11355 # include <assert.h>
11356 #endif
11358 #undef $ac_func
11360 /* Override any GCC internal prototype to avoid an error.
11361 Use char because int might match the return type of a GCC
11362 builtin and then its argument prototype would still apply. */
11363 #ifdef __cplusplus
11364 extern "C"
11365 #endif
11366 char $ac_func ();
11367 /* The GNU C library defines this for functions which it implements
11368 to always fail with ENOSYS. Some functions are actually named
11369 something starting with __ and the normal name is an alias. */
11370 #if defined __stub_$ac_func || defined __stub___$ac_func
11371 choke me
11372 #endif
11375 main ()
11377 return $ac_func ();
11379 return 0;
11381 _ACEOF
11382 rm -f conftest.$ac_objext conftest$ac_exeext
11383 if { (ac_try="$ac_link"
11384 case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387 esac
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_link") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest$ac_exeext &&
11399 $as_test_x conftest$ac_exeext; then
11400 eval "$as_ac_var=yes"
11401 else
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 eval "$as_ac_var=no"
11408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11409 conftest$ac_exeext conftest.$ac_ext
11411 ac_res=`eval echo '${'$as_ac_var'}'`
11412 { echo "$as_me:$LINENO: result: $ac_res" >&5
11413 echo "${ECHO_T}$ac_res" >&6; }
11414 if test `eval echo '${'$as_ac_var'}'` = yes; then
11415 cat >>confdefs.h <<_ACEOF
11416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11417 _ACEOF
11420 done
11422 if test "$ac_cv_func_gdImagePng" != "yes"; then
11423 { { echo "$as_me:$LINENO: error: Your gd installation does not appear to include PNG support.
11424 You may need to update your installation of gd or disable
11425 PNG export with --disable-png" >&5
11426 echo "$as_me: error: Your gd installation does not appear to include PNG support.
11427 You may need to update your installation of gd or disable
11428 PNG export with --disable-png" >&2;}
11429 { (exit 1); exit 1; }; }
11432 LIBS="$save_LIBS"
11435 esac
11436 done
11439 if test x$with_png = xyes; then
11440 PNG_TRUE=
11441 PNG_FALSE='#'
11442 else
11443 PNG_TRUE='#'
11444 PNG_FALSE=
11447 if test x$with_gif = xyes; then
11448 GIF_TRUE=
11449 GIF_FALSE='#'
11450 else
11451 GIF_TRUE='#'
11452 GIF_FALSE=
11457 # ------------- Xrender -------------------
11458 have_xrender=no
11459 { echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
11460 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6; }
11461 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464 ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-lXrender $X_LIBS $LIBS"
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11473 /* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 char XRenderQueryExtension ();
11481 main ()
11483 return XRenderQueryExtension ();
11485 return 0;
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (ac_try="$ac_link"
11490 case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_link") 2>conftest.er1
11496 ac_status=$?
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -f conftest.er1
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && {
11502 test -z "$ac_c_werror_flag" ||
11503 test ! -s conftest.err
11504 } && test -s conftest$ac_exeext &&
11505 $as_test_x conftest$ac_exeext; then
11506 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11507 else
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 ac_cv_lib_Xrender_XRenderQueryExtension=no
11514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11515 conftest$ac_exeext conftest.$ac_ext
11516 LIBS=$ac_check_lib_save_LIBS
11518 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11519 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11520 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
11521 have_xrender=yes
11522 else
11523 have_xrender=no
11527 # Check whether --enable-xrender was given.
11528 if test "${enable_xrender+set}" = set; then
11529 enableval=$enable_xrender;
11532 case "$have_xrender:$enable_xrender" in
11533 no:* ) ;;
11534 *:no ) ;;
11536 X_LIBS="-lXrender $X_LIBS"
11538 cat >>confdefs.h <<\_ACEOF
11539 #define HAVE_XRENDER 1
11540 _ACEOF
11543 esac
11545 # ------------- dmalloc -------------------
11546 with_dmalloc=no
11547 { echo "$as_me:$LINENO: checking if dmalloc debugging should be enabled" >&5
11548 echo $ECHO_N "checking if dmalloc debugging should be enabled... $ECHO_C" >&6; }
11549 # Check whether --enable-dmalloc was given.
11550 if test "${enable_dmalloc+set}" = set; then
11551 enableval=$enable_dmalloc;
11552 if test "X$enable_dmalloc" != "Xno" ; then
11553 { echo "$as_me:$LINENO: result: yes" >&5
11554 echo "${ECHO_T}yes" >&6; }
11555 if test "${ac_cv_header_dmalloc_h+set}" = set; then
11556 { echo "$as_me:$LINENO: checking for dmalloc.h" >&5
11557 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6; }
11558 if test "${ac_cv_header_dmalloc_h+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 { echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
11562 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6; }
11563 else
11564 # Is the header compilable?
11565 { echo "$as_me:$LINENO: checking dmalloc.h usability" >&5
11566 echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6; }
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h. */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 $ac_includes_default
11574 #include <dmalloc.h>
11575 _ACEOF
11576 rm -f conftest.$ac_objext
11577 if { (ac_try="$ac_compile"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_compile") 2>conftest.er1
11584 ac_status=$?
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } && {
11590 test -z "$ac_c_werror_flag" ||
11591 test ! -s conftest.err
11592 } && test -s conftest.$ac_objext; then
11593 ac_header_compiler=yes
11594 else
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_header_compiler=no
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11603 echo "${ECHO_T}$ac_header_compiler" >&6; }
11605 # Is the header present?
11606 { echo "$as_me:$LINENO: checking dmalloc.h presence" >&5
11607 echo $ECHO_N "checking dmalloc.h presence... $ECHO_C" >&6; }
11608 cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h. */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 #include <dmalloc.h>
11615 _ACEOF
11616 if { (ac_try="$ac_cpp conftest.$ac_ext"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } >/dev/null && {
11629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 }; then
11632 ac_header_preproc=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_preproc=no
11640 rm -f conftest.err conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11642 echo "${ECHO_T}$ac_header_preproc" >&6; }
11644 # So? What about this header?
11645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11646 yes:no: )
11647 { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
11648 echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5
11650 echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;}
11651 ac_header_preproc=yes
11653 no:yes:* )
11654 { echo "$as_me:$LINENO: WARNING: dmalloc.h: present but cannot be compiled" >&5
11655 echo "$as_me: WARNING: dmalloc.h: present but cannot be compiled" >&2;}
11656 { echo "$as_me:$LINENO: WARNING: dmalloc.h: check for missing prerequisite headers?" >&5
11657 echo "$as_me: WARNING: dmalloc.h: check for missing prerequisite headers?" >&2;}
11658 { echo "$as_me:$LINENO: WARNING: dmalloc.h: see the Autoconf documentation" >&5
11659 echo "$as_me: WARNING: dmalloc.h: see the Autoconf documentation" >&2;}
11660 { echo "$as_me:$LINENO: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&5
11661 echo "$as_me: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&5
11663 echo "$as_me: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&2;}
11664 { echo "$as_me:$LINENO: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&5
11665 echo "$as_me: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&2;}
11668 esac
11669 { echo "$as_me:$LINENO: checking for dmalloc.h" >&5
11670 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6; }
11671 if test "${ac_cv_header_dmalloc_h+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 ac_cv_header_dmalloc_h=$ac_header_preproc
11676 { echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
11677 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6; }
11680 if test $ac_cv_header_dmalloc_h = yes; then
11682 else
11683 { { echo "$as_me:$LINENO: error: You have requested dmalloc debugging but dmalloc.h could not be found" >&5
11684 echo "$as_me: error: You have requested dmalloc debugging but dmalloc.h could not be found" >&2;}
11685 { (exit 1); exit 1; }; }
11690 { echo "$as_me:$LINENO: checking for main in -ldmalloc" >&5
11691 echo $ECHO_N "checking for main in -ldmalloc... $ECHO_C" >&6; }
11692 if test "${ac_cv_lib_dmalloc_main+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695 ac_check_lib_save_LIBS=$LIBS
11696 LIBS="-ldmalloc $LIBS"
11697 cat >conftest.$ac_ext <<_ACEOF
11698 /* confdefs.h. */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11706 main ()
11708 return main ();
11710 return 0;
11712 _ACEOF
11713 rm -f conftest.$ac_objext conftest$ac_exeext
11714 if { (ac_try="$ac_link"
11715 case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11718 esac
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_link") 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest$ac_exeext &&
11730 $as_test_x conftest$ac_exeext; then
11731 ac_cv_lib_dmalloc_main=yes
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 ac_cv_lib_dmalloc_main=no
11739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11740 conftest$ac_exeext conftest.$ac_ext
11741 LIBS=$ac_check_lib_save_LIBS
11743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_main" >&5
11744 echo "${ECHO_T}$ac_cv_lib_dmalloc_main" >&6; }
11745 if test $ac_cv_lib_dmalloc_main = yes; then
11746 cat >>confdefs.h <<_ACEOF
11747 #define HAVE_LIBDMALLOC 1
11748 _ACEOF
11750 LIBS="-ldmalloc $LIBS"
11752 else
11753 { { echo "$as_me:$LINENO: error: You have requested dmalloc debugging but -ldmalloc could not be found" >&5
11754 echo "$as_me: error: You have requested dmalloc debugging but -ldmalloc could not be found" >&2;}
11755 { (exit 1); exit 1; }; }
11758 DMALLOC_LIBS="-ldmalloc"
11759 with_dmalloc=yes
11760 else
11761 { echo "$as_me:$LINENO: result: no" >&5
11762 echo "${ECHO_T}no" >&6; }
11763 DMALLOC_LIBS=""
11766 else
11768 { echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6; }
11770 DMALLOC_LIBS=""
11775 # ------------- ElectricFence -------------------
11776 with_efence=no
11777 { echo "$as_me:$LINENO: checking if ElectricFence debugging should be enabled" >&5
11778 echo $ECHO_N "checking if ElectricFence debugging should be enabled... $ECHO_C" >&6; }
11779 # Check whether --enable-efence was given.
11780 if test "${enable_efence+set}" = set; then
11781 enableval=$enable_efence;
11782 if test "X$enable_efence" != "Xno" ; then
11783 { echo "$as_me:$LINENO: result: yes" >&5
11784 echo "${ECHO_T}yes" >&6; }
11786 { echo "$as_me:$LINENO: checking for main in -lefence" >&5
11787 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6; }
11788 if test "${ac_cv_lib_efence_main+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791 ac_check_lib_save_LIBS=$LIBS
11792 LIBS="-lefence $LIBS"
11793 cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h. */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11802 main ()
11804 return main ();
11806 return 0;
11808 _ACEOF
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (ac_try="$ac_link"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_link") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest$ac_exeext &&
11826 $as_test_x conftest$ac_exeext; then
11827 ac_cv_lib_efence_main=yes
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ac_cv_lib_efence_main=no
11835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11836 conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11839 { echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
11840 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6; }
11841 if test $ac_cv_lib_efence_main = yes; then
11842 cat >>confdefs.h <<_ACEOF
11843 #define HAVE_LIBEFENCE 1
11844 _ACEOF
11846 LIBS="-lefence $LIBS"
11848 else
11849 { { echo "$as_me:$LINENO: error: You have requested ElectricFence debugging but -lefence could not be found" >&5
11850 echo "$as_me: error: You have requested ElectricFence debugging but -lefence could not be found" >&2;}
11851 { (exit 1); exit 1; }; }
11854 with_efence=yes
11855 else
11856 { echo "$as_me:$LINENO: result: no" >&5
11857 echo "${ECHO_T}no" >&6; }
11860 else
11862 { echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6; }
11868 CFLAGS="$CFLAGS $X_CFLAGS $DBUS_CFLAGS $GTK_CFLAGS"
11869 LIBS="$LIBS $XM_LIBS $DBUS_LIBS $X_LIBS $GTK_LIBS $DMALLOC_LIBS $GD_LIBS"
11872 # if we have gcc then add -Wall
11873 if test "x$GCC" = "xyes"; then
11874 if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
11875 CFLAGS="$CFLAGS -Wall"
11880 # font filename
11881 FONTFILENAME=${FONTFILENAME:-"default_font"}
11884 cat >>confdefs.h <<_ACEOF
11885 #define FONTFILENAME "$FONTFILENAME"
11886 _ACEOF
11889 # standard autoconf variables
11890 CPPFLAGS="$CPPFLAGS -DPREFIXDIR=\\\"\${prefix}\\\""
11891 CPPFLAGS="$CPPFLAGS -DBINDIR=\\\"\${bindir}\\\""
11892 CPPFLAGS="$CPPFLAGS -DHOST=\\\"\${host}\\\""
11894 # directory for old-style library and for fonts
11895 PCBLIBDIR=${datadir}/pcb
11897 #AC_DEFINE_UNQUOTED(PCBLIBDIR,"$PCBLIBDIR",[Library directory])
11898 CPPFLAGS="$CPPFLAGS -DPCBLIBDIR=\\\"$PCBLIBDIR\\\""
11900 # name for old-style library
11901 LIBRARYFILENAME=pcblib
11904 cat >>confdefs.h <<_ACEOF
11905 #define LIBRARYFILENAME "$LIBRARYFILENAME"
11906 _ACEOF
11910 # directory for new library
11911 PCBTREEDIR=${datadir}/pcb/newlib
11912 PCBTREEPATH=${PCBTREEDIR}:${PCBLIBDIR}/pcblib-newlib
11913 PCBTREEDIR=${PCBTREEDIR:-"$PCBTREEDIR"}
11916 #AC_DEFINE_UNQUOTED(PCBTREEDIR,"$PCBLIB",[top directory for new style pcb library])
11917 CPPFLAGS="$CPPFLAGS -DPCBTREEDIR=\\\"$PCBTREEDIR\\\""
11918 CPPFLAGS="$CPPFLAGS -DPCBTREEPATH=\\\"$PCBTREEPATH\\\""
11920 # Figure out relative paths
11921 { echo "$as_me:$LINENO: checking for the bindir to pcblibdir relative path" >&5
11922 echo $ECHO_N "checking for the bindir to pcblibdir relative path... $ECHO_C" >&6; }
11923 for _lcl_i in bindir:PCBLIBDIR:bindir_to_pcblibdir; do
11924 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
11925 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
11926 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
11927 _lcl_receval="$_lcl_from"
11928 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11929 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
11930 _lcl_receval_old=''
11931 while test "$_lcl_receval_old" != "$_lcl_receval"; do
11932 _lcl_receval_old="$_lcl_receval"
11933 eval _lcl_receval="\"$_lcl_receval\""
11934 done
11935 echo "$_lcl_receval")`
11936 _lcl_receval="$_lcl_to"
11937 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11938 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
11939 _lcl_receval_old=''
11940 while test "$_lcl_receval_old" != "$_lcl_receval"; do
11941 _lcl_receval_old="$_lcl_receval"
11942 eval _lcl_receval="\"$_lcl_receval\""
11943 done
11944 echo "$_lcl_receval")`
11945 _lcl_notation="$_lcl_from$_lcl_to"
11946 case ":$_lcl_from:" in
11947 # change empty paths to '.'
11948 ::) _lcl_from='.' ;;
11949 # strip trailing slashes
11950 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
11951 :*:) ;;
11952 esac
11953 # squeze repeated slashes
11954 case '/' in
11955 # if the path contains any backslashes, turn slashes into backslashes
11956 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11957 # if the path contains slashes, also turn backslashes into slashes
11958 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11959 esac
11960 case ":$_lcl_to:" in
11961 # change empty paths to '.'
11962 ::) _lcl_to='.' ;;
11963 # strip trailing slashes
11964 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
11965 :*:) ;;
11966 esac
11967 # squeze repeated slashes
11968 case '/' in
11969 # if the path contains any backslashes, turn slashes into backslashes
11970 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11971 # if the path contains slashes, also turn backslashes into slashes
11972 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11973 esac
11974 _lcl_common_prefix=''
11975 _lcl_second_prefix_match=''
11976 while test "$_lcl_second_prefix_match" != 0; do
11977 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
11978 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
11979 if test "$_lcl_second_prefix_match" != 0; then
11980 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
11981 _lcl_common_prefix="$_lcl_first_prefix"
11982 else
11983 _lcl_second_prefix_match=0
11986 done
11987 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
11988 _lcl_first_rel=''
11989 _lcl_tmp='xxx'
11990 while test "$_lcl_tmp" != ''; do
11991 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
11992 if test "$_lcl_first_suffix" != ''; then
11993 _lcl_first_suffix="$_lcl_tmp"
11994 _lcl_first_rel="../$_lcl_first_rel"
11996 done
11997 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
11998 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
11999 case ":$_lcl_result_tmp:" in
12000 # change empty paths to '.'
12001 ::) _lcl_result_tmp='.' ;;
12002 # strip trailing slashes
12003 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
12004 :*:) ;;
12005 esac
12006 # squeze repeated slashes
12007 case "$_lcl_notation" in
12008 # if the path contains any backslashes, turn slashes into backslashes
12009 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
12010 # if the path contains slashes, also turn backslashes into slashes
12011 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
12012 esac
12013 eval $_lcl_result_var='$_lcl_result_tmp'
12014 done
12015 case ":$bindir_to_pcblibdir:" in
12016 # change empty paths to '.'
12017 ::) bindir_to_pcblibdir='.' ;;
12018 # strip trailing slashes
12019 :*[\\/]:) bindir_to_pcblibdir=`echo "$bindir_to_pcblibdir" | sed 's,[\\/]*$,,'` ;;
12020 :*:) ;;
12021 esac
12022 # squeze repeated slashes
12023 case $PCB_DIR_SEPARATOR_S in
12024 # if the path contains any backslashes, turn slashes into backslashes
12025 *\\*) bindir_to_pcblibdir=`echo "$bindir_to_pcblibdir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
12026 # if the path contains slashes, also turn backslashes into slashes
12027 *) bindir_to_pcblibdir=`echo "$bindir_to_pcblibdir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
12028 esac
12029 { echo "$as_me:$LINENO: result: $bindir_to_pcblibdir" >&5
12030 echo "${ECHO_T}$bindir_to_pcblibdir" >&6; }
12032 cat >>confdefs.h <<_ACEOF
12033 #define BINDIR_TO_PCBLIBDIR "$bindir_to_pcblibdir"
12034 _ACEOF
12037 { echo "$as_me:$LINENO: checking for the bindir to pcbtreedir relative path" >&5
12038 echo $ECHO_N "checking for the bindir to pcbtreedir relative path... $ECHO_C" >&6; }
12039 for _lcl_i in bindir:PCBTREEDIR:bindir_to_pcbtreedir; do
12040 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
12041 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
12042 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
12043 _lcl_receval="$_lcl_from"
12044 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12045 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
12046 _lcl_receval_old=''
12047 while test "$_lcl_receval_old" != "$_lcl_receval"; do
12048 _lcl_receval_old="$_lcl_receval"
12049 eval _lcl_receval="\"$_lcl_receval\""
12050 done
12051 echo "$_lcl_receval")`
12052 _lcl_receval="$_lcl_to"
12053 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12054 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
12055 _lcl_receval_old=''
12056 while test "$_lcl_receval_old" != "$_lcl_receval"; do
12057 _lcl_receval_old="$_lcl_receval"
12058 eval _lcl_receval="\"$_lcl_receval\""
12059 done
12060 echo "$_lcl_receval")`
12061 _lcl_notation="$_lcl_from$_lcl_to"
12062 case ":$_lcl_from:" in
12063 # change empty paths to '.'
12064 ::) _lcl_from='.' ;;
12065 # strip trailing slashes
12066 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
12067 :*:) ;;
12068 esac
12069 # squeze repeated slashes
12070 case '/' in
12071 # if the path contains any backslashes, turn slashes into backslashes
12072 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
12073 # if the path contains slashes, also turn backslashes into slashes
12074 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
12075 esac
12076 case ":$_lcl_to:" in
12077 # change empty paths to '.'
12078 ::) _lcl_to='.' ;;
12079 # strip trailing slashes
12080 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
12081 :*:) ;;
12082 esac
12083 # squeze repeated slashes
12084 case '/' in
12085 # if the path contains any backslashes, turn slashes into backslashes
12086 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
12087 # if the path contains slashes, also turn backslashes into slashes
12088 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
12089 esac
12090 _lcl_common_prefix=''
12091 _lcl_second_prefix_match=''
12092 while test "$_lcl_second_prefix_match" != 0; do
12093 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
12094 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
12095 if test "$_lcl_second_prefix_match" != 0; then
12096 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
12097 _lcl_common_prefix="$_lcl_first_prefix"
12098 else
12099 _lcl_second_prefix_match=0
12102 done
12103 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
12104 _lcl_first_rel=''
12105 _lcl_tmp='xxx'
12106 while test "$_lcl_tmp" != ''; do
12107 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
12108 if test "$_lcl_first_suffix" != ''; then
12109 _lcl_first_suffix="$_lcl_tmp"
12110 _lcl_first_rel="../$_lcl_first_rel"
12112 done
12113 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
12114 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
12115 case ":$_lcl_result_tmp:" in
12116 # change empty paths to '.'
12117 ::) _lcl_result_tmp='.' ;;
12118 # strip trailing slashes
12119 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
12120 :*:) ;;
12121 esac
12122 # squeze repeated slashes
12123 case "$_lcl_notation" in
12124 # if the path contains any backslashes, turn slashes into backslashes
12125 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
12126 # if the path contains slashes, also turn backslashes into slashes
12127 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
12128 esac
12129 eval $_lcl_result_var='$_lcl_result_tmp'
12130 done
12131 case ":$bindir_to_pcbtreedir:" in
12132 # change empty paths to '.'
12133 ::) bindir_to_pcbtreedir='.' ;;
12134 # strip trailing slashes
12135 :*[\\/]:) bindir_to_pcbtreedir=`echo "$bindir_to_pcbtreedir" | sed 's,[\\/]*$,,'` ;;
12136 :*:) ;;
12137 esac
12138 # squeze repeated slashes
12139 case $PCB_DIR_SEPARATOR_S in
12140 # if the path contains any backslashes, turn slashes into backslashes
12141 *\\*) bindir_to_pcbtreedir=`echo "$bindir_to_pcbtreedir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
12142 # if the path contains slashes, also turn backslashes into slashes
12143 *) bindir_to_pcbtreedir=`echo "$bindir_to_pcbtreedir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
12144 esac
12145 { echo "$as_me:$LINENO: result: $bindir_to_pcbtreedir" >&5
12146 echo "${ECHO_T}$bindir_to_pcbtreedir" >&6; }
12148 cat >>confdefs.h <<_ACEOF
12149 #define BINDIR_TO_PCBTREEDIR "$bindir_to_pcbtreedir"
12150 _ACEOF
12154 { echo "$as_me:$LINENO: checking for the bindir to exec_prefix relative path" >&5
12155 echo $ECHO_N "checking for the bindir to exec_prefix relative path... $ECHO_C" >&6; }
12156 for _lcl_i in bindir:exec_prefix:bindir_to_execprefix; do
12157 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
12158 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
12159 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
12160 _lcl_receval="$_lcl_from"
12161 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12162 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
12163 _lcl_receval_old=''
12164 while test "$_lcl_receval_old" != "$_lcl_receval"; do
12165 _lcl_receval_old="$_lcl_receval"
12166 eval _lcl_receval="\"$_lcl_receval\""
12167 done
12168 echo "$_lcl_receval")`
12169 _lcl_receval="$_lcl_to"
12170 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12171 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
12172 _lcl_receval_old=''
12173 while test "$_lcl_receval_old" != "$_lcl_receval"; do
12174 _lcl_receval_old="$_lcl_receval"
12175 eval _lcl_receval="\"$_lcl_receval\""
12176 done
12177 echo "$_lcl_receval")`
12178 _lcl_notation="$_lcl_from$_lcl_to"
12179 case ":$_lcl_from:" in
12180 # change empty paths to '.'
12181 ::) _lcl_from='.' ;;
12182 # strip trailing slashes
12183 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
12184 :*:) ;;
12185 esac
12186 # squeze repeated slashes
12187 case '/' in
12188 # if the path contains any backslashes, turn slashes into backslashes
12189 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
12190 # if the path contains slashes, also turn backslashes into slashes
12191 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
12192 esac
12193 case ":$_lcl_to:" in
12194 # change empty paths to '.'
12195 ::) _lcl_to='.' ;;
12196 # strip trailing slashes
12197 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
12198 :*:) ;;
12199 esac
12200 # squeze repeated slashes
12201 case '/' in
12202 # if the path contains any backslashes, turn slashes into backslashes
12203 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
12204 # if the path contains slashes, also turn backslashes into slashes
12205 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
12206 esac
12207 _lcl_common_prefix=''
12208 _lcl_second_prefix_match=''
12209 while test "$_lcl_second_prefix_match" != 0; do
12210 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
12211 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
12212 if test "$_lcl_second_prefix_match" != 0; then
12213 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
12214 _lcl_common_prefix="$_lcl_first_prefix"
12215 else
12216 _lcl_second_prefix_match=0
12219 done
12220 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
12221 _lcl_first_rel=''
12222 _lcl_tmp='xxx'
12223 while test "$_lcl_tmp" != ''; do
12224 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
12225 if test "$_lcl_first_suffix" != ''; then
12226 _lcl_first_suffix="$_lcl_tmp"
12227 _lcl_first_rel="../$_lcl_first_rel"
12229 done
12230 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
12231 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
12232 case ":$_lcl_result_tmp:" in
12233 # change empty paths to '.'
12234 ::) _lcl_result_tmp='.' ;;
12235 # strip trailing slashes
12236 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
12237 :*:) ;;
12238 esac
12239 # squeze repeated slashes
12240 case "$_lcl_notation" in
12241 # if the path contains any backslashes, turn slashes into backslashes
12242 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
12243 # if the path contains slashes, also turn backslashes into slashes
12244 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
12245 esac
12246 eval $_lcl_result_var='$_lcl_result_tmp'
12247 done
12248 case ":$bindir_to_execprefix:" in
12249 # change empty paths to '.'
12250 ::) bindir_to_execprefix='.' ;;
12251 # strip trailing slashes
12252 :*[\\/]:) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,[\\/]*$,,'` ;;
12253 :*:) ;;
12254 esac
12255 # squeze repeated slashes
12256 case $PCB_DIR_SEPARATOR_S in
12257 # if the path contains any backslashes, turn slashes into backslashes
12258 *\\*) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
12259 # if the path contains slashes, also turn backslashes into slashes
12260 *) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
12261 esac
12262 { echo "$as_me:$LINENO: result: $bindir_to_execprefix" >&5
12263 echo "${ECHO_T}$bindir_to_execprefix" >&6; }
12265 cat >>confdefs.h <<_ACEOF
12266 #define BINDIR_TO_EXECPREFIX "$bindir_to_execprefix"
12267 _ACEOF
12271 BTNMOD=${BTNMOD:-"Mod1"}
12274 TOPDIRS=
12275 for dir in src lib newlib doc example tools tutorial README_FILES
12277 test -d $dir/. && TOPDIRS="$TOPDIRS $dir"
12278 done
12281 ac_config_files="$ac_config_files Makefile"
12283 if test -d $srcdir/README_FILES; then
12284 ac_config_files="$ac_config_files README_FILES/Makefile"
12287 if test -d $srcdir/doc; then
12288 ac_config_files="$ac_config_files doc/Makefile"
12291 if test -d $srcdir/example; then
12292 ac_config_files="$ac_config_files example/Makefile"
12294 ac_config_files="$ac_config_files example/libraries/Makefile"
12297 if test -d $srcdir/lib; then
12298 ac_config_files="$ac_config_files lib/CreateLibraryContents.sh"
12300 ac_config_files="$ac_config_files lib/CreateLibrary.sh"
12302 ac_config_files="$ac_config_files lib/ListLibraryContents.sh"
12304 ac_config_files="$ac_config_files lib/Makefile"
12306 ac_config_files="$ac_config_files lib/QueryLibrary.sh"
12308 ac_config_files="$ac_config_files lib/m4lib_to_newlib.sh"
12310 ac_config_files="$ac_config_files lib/qfp-ui"
12313 if test -d $srcdir/newlib; then
12314 ac_config_files="$ac_config_files newlib/2_pin_thru-hole_packages/Makefile"
12316 ac_config_files="$ac_config_files newlib/Makefile"
12318 ac_config_files="$ac_config_files newlib/analog-devices/Makefile"
12320 ac_config_files="$ac_config_files newlib/burr-brown/Makefile"
12322 ac_config_files="$ac_config_files newlib/connectors/Makefile"
12324 ac_config_files="$ac_config_files newlib/crystal/Makefile"
12326 ac_config_files="$ac_config_files newlib/electro-optics/Makefile"
12328 ac_config_files="$ac_config_files newlib/headers/Makefile"
12330 ac_config_files="$ac_config_files newlib/keystone/Makefile"
12332 ac_config_files="$ac_config_files newlib/msp430/Makefile"
12334 ac_config_files="$ac_config_files newlib/not_vetted_ingo/Makefile"
12336 ac_config_files="$ac_config_files newlib/sockets/Makefile"
12338 ac_config_files="$ac_config_files newlib/tests/Makefile"
12341 ac_config_files="$ac_config_files src/Makefile"
12343 ac_config_files="$ac_config_files src/icons/Makefile"
12345 if test -d $srcdir/tools; then
12346 ac_config_files="$ac_config_files tools/Makefile"
12349 if test -d $srcdir/tutorial; then
12350 ac_config_files="$ac_config_files tutorial/Makefile"
12354 ac_config_files="$ac_config_files win32/Makefile"
12357 cat >confcache <<\_ACEOF
12358 # This file is a shell script that caches the results of configure
12359 # tests run on this system so they can be shared between configure
12360 # scripts and configure runs, see configure's option --config-cache.
12361 # It is not useful on other systems. If it contains results you don't
12362 # want to keep, you may remove or edit it.
12364 # config.status only pays attention to the cache file if you give it
12365 # the --recheck option to rerun configure.
12367 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12368 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12369 # following values.
12371 _ACEOF
12373 # The following way of writing the cache mishandles newlines in values,
12374 # but we know of no workaround that is simple, portable, and efficient.
12375 # So, we kill variables containing newlines.
12376 # Ultrix sh set writes to stderr and can't be redirected directly,
12377 # and sets the high bit in the cache file unless we assign to the vars.
12379 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12380 eval ac_val=\$$ac_var
12381 case $ac_val in #(
12382 *${as_nl}*)
12383 case $ac_var in #(
12384 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12385 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12386 esac
12387 case $ac_var in #(
12388 _ | IFS | as_nl) ;; #(
12389 *) $as_unset $ac_var ;;
12390 esac ;;
12391 esac
12392 done
12394 (set) 2>&1 |
12395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12396 *${as_nl}ac_space=\ *)
12397 # `set' does not quote correctly, so add quotes (double-quote
12398 # substitution turns \\\\ into \\, and sed turns \\ into \).
12399 sed -n \
12400 "s/'/'\\\\''/g;
12401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12402 ;; #(
12404 # `set' quotes correctly as required by POSIX, so do not add quotes.
12405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12407 esac |
12408 sort
12410 sed '
12411 /^ac_cv_env_/b end
12412 t clear
12413 :clear
12414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12415 t end
12416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12417 :end' >>confcache
12418 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12419 if test -w "$cache_file"; then
12420 test "x$cache_file" != "x/dev/null" &&
12421 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12422 echo "$as_me: updating cache $cache_file" >&6;}
12423 cat confcache >$cache_file
12424 else
12425 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12426 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12429 rm -f confcache
12431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12432 # Let make expand exec_prefix.
12433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12435 DEFS=-DHAVE_CONFIG_H
12437 ac_libobjs=
12438 ac_ltlibobjs=
12439 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12440 # 1. Remove the extension, and $U if already installed.
12441 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12442 ac_i=`echo "$ac_i" | sed "$ac_script"`
12443 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12444 # will be set to the directory where LIBOBJS objects are built.
12445 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12446 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12447 done
12448 LIBOBJS=$ac_libobjs
12450 LTLIBOBJS=$ac_ltlibobjs
12453 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12454 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12455 Usually this means the macro was only invoked conditionally." >&5
12456 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12457 Usually this means the macro was only invoked conditionally." >&2;}
12458 { (exit 1); exit 1; }; }
12460 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
12461 { { echo "$as_me:$LINENO: error: conditional \"WIN32\" was never defined.
12462 Usually this means the macro was only invoked conditionally." >&5
12463 echo "$as_me: error: conditional \"WIN32\" was never defined.
12464 Usually this means the macro was only invoked conditionally." >&2;}
12465 { (exit 1); exit 1; }; }
12467 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12468 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12469 Usually this means the macro was only invoked conditionally." >&5
12470 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12471 Usually this means the macro was only invoked conditionally." >&2;}
12472 { (exit 1); exit 1; }; }
12474 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12475 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12476 Usually this means the macro was only invoked conditionally." >&5
12477 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12478 Usually this means the macro was only invoked conditionally." >&2;}
12479 { (exit 1); exit 1; }; }
12481 if test -z "${MISSING_TGIF_TRUE}" && test -z "${MISSING_TGIF_FALSE}"; then
12482 { { echo "$as_me:$LINENO: error: conditional \"MISSING_TGIF\" was never defined.
12483 Usually this means the macro was only invoked conditionally." >&5
12484 echo "$as_me: error: conditional \"MISSING_TGIF\" was never defined.
12485 Usually this means the macro was only invoked conditionally." >&2;}
12486 { (exit 1); exit 1; }; }
12488 if test -z "${MISSING_XPMTOPPM_TRUE}" && test -z "${MISSING_XPMTOPPM_FALSE}"; then
12489 { { echo "$as_me:$LINENO: error: conditional \"MISSING_XPMTOPPM\" was never defined.
12490 Usually this means the macro was only invoked conditionally." >&5
12491 echo "$as_me: error: conditional \"MISSING_XPMTOPPM\" was never defined.
12492 Usually this means the macro was only invoked conditionally." >&2;}
12493 { (exit 1); exit 1; }; }
12495 if test -z "${MISSING_CONVERT_TRUE}" && test -z "${MISSING_CONVERT_FALSE}"; then
12496 { { echo "$as_me:$LINENO: error: conditional \"MISSING_CONVERT\" was never defined.
12497 Usually this means the macro was only invoked conditionally." >&5
12498 echo "$as_me: error: conditional \"MISSING_CONVERT\" was never defined.
12499 Usually this means the macro was only invoked conditionally." >&2;}
12500 { (exit 1); exit 1; }; }
12502 if test -z "${WITH_DBUS_TRUE}" && test -z "${WITH_DBUS_FALSE}"; then
12503 { { echo "$as_me:$LINENO: error: conditional \"WITH_DBUS\" was never defined.
12504 Usually this means the macro was only invoked conditionally." >&5
12505 echo "$as_me: error: conditional \"WITH_DBUS\" was never defined.
12506 Usually this means the macro was only invoked conditionally." >&2;}
12507 { (exit 1); exit 1; }; }
12509 if test -z "${MISSING_LATEX_TRUE}" && test -z "${MISSING_LATEX_FALSE}"; then
12510 { { echo "$as_me:$LINENO: error: conditional \"MISSING_LATEX\" was never defined.
12511 Usually this means the macro was only invoked conditionally." >&5
12512 echo "$as_me: error: conditional \"MISSING_LATEX\" was never defined.
12513 Usually this means the macro was only invoked conditionally." >&2;}
12514 { (exit 1); exit 1; }; }
12516 if test -z "${MISSING_PDFLATEX_TRUE}" && test -z "${MISSING_PDFLATEX_FALSE}"; then
12517 { { echo "$as_me:$LINENO: error: conditional \"MISSING_PDFLATEX\" was never defined.
12518 Usually this means the macro was only invoked conditionally." >&5
12519 echo "$as_me: error: conditional \"MISSING_PDFLATEX\" was never defined.
12520 Usually this means the macro was only invoked conditionally." >&2;}
12521 { (exit 1); exit 1; }; }
12523 if test -z "${MISSING_DVIPS_TRUE}" && test -z "${MISSING_DVIPS_FALSE}"; then
12524 { { echo "$as_me:$LINENO: error: conditional \"MISSING_DVIPS\" was never defined.
12525 Usually this means the macro was only invoked conditionally." >&5
12526 echo "$as_me: error: conditional \"MISSING_DVIPS\" was never defined.
12527 Usually this means the macro was only invoked conditionally." >&2;}
12528 { (exit 1); exit 1; }; }
12530 if test -z "${MISSING_PS2PDF_TRUE}" && test -z "${MISSING_PS2PDF_FALSE}"; then
12531 { { echo "$as_me:$LINENO: error: conditional \"MISSING_PS2PDF\" was never defined.
12532 Usually this means the macro was only invoked conditionally." >&5
12533 echo "$as_me: error: conditional \"MISSING_PS2PDF\" was never defined.
12534 Usually this means the macro was only invoked conditionally." >&2;}
12535 { (exit 1); exit 1; }; }
12537 if test -z "${PNG_TRUE}" && test -z "${PNG_FALSE}"; then
12538 { { echo "$as_me:$LINENO: error: conditional \"PNG\" was never defined.
12539 Usually this means the macro was only invoked conditionally." >&5
12540 echo "$as_me: error: conditional \"PNG\" was never defined.
12541 Usually this means the macro was only invoked conditionally." >&2;}
12542 { (exit 1); exit 1; }; }
12544 if test -z "${GIF_TRUE}" && test -z "${GIF_FALSE}"; then
12545 { { echo "$as_me:$LINENO: error: conditional \"GIF\" was never defined.
12546 Usually this means the macro was only invoked conditionally." >&5
12547 echo "$as_me: error: conditional \"GIF\" was never defined.
12548 Usually this means the macro was only invoked conditionally." >&2;}
12549 { (exit 1); exit 1; }; }
12552 : ${CONFIG_STATUS=./config.status}
12553 ac_clean_files_save=$ac_clean_files
12554 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12555 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12556 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12557 cat >$CONFIG_STATUS <<_ACEOF
12558 #! $SHELL
12559 # Generated by $as_me.
12560 # Run this file to recreate the current configuration.
12561 # Compiler output produced by configure, useful for debugging
12562 # configure, is in config.log if it exists.
12564 debug=false
12565 ac_cs_recheck=false
12566 ac_cs_silent=false
12567 SHELL=\${CONFIG_SHELL-$SHELL}
12568 _ACEOF
12570 cat >>$CONFIG_STATUS <<\_ACEOF
12571 ## --------------------- ##
12572 ## M4sh Initialization. ##
12573 ## --------------------- ##
12575 # Be more Bourne compatible
12576 DUALCASE=1; export DUALCASE # for MKS sh
12577 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12578 emulate sh
12579 NULLCMD=:
12580 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12581 # is contrary to our usage. Disable this feature.
12582 alias -g '${1+"$@"}'='"$@"'
12583 setopt NO_GLOB_SUBST
12584 else
12585 case `(set -o) 2>/dev/null` in
12586 *posix*) set -o posix ;;
12587 esac
12594 # PATH needs CR
12595 # Avoid depending upon Character Ranges.
12596 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12597 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12598 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12599 as_cr_digits='0123456789'
12600 as_cr_alnum=$as_cr_Letters$as_cr_digits
12602 # The user is always right.
12603 if test "${PATH_SEPARATOR+set}" != set; then
12604 echo "#! /bin/sh" >conf$$.sh
12605 echo "exit 0" >>conf$$.sh
12606 chmod +x conf$$.sh
12607 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12608 PATH_SEPARATOR=';'
12609 else
12610 PATH_SEPARATOR=:
12612 rm -f conf$$.sh
12615 # Support unset when possible.
12616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12617 as_unset=unset
12618 else
12619 as_unset=false
12623 # IFS
12624 # We need space, tab and new line, in precisely that order. Quoting is
12625 # there to prevent editors from complaining about space-tab.
12626 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12627 # splitting by setting IFS to empty value.)
12628 as_nl='
12630 IFS=" "" $as_nl"
12632 # Find who we are. Look in the path if we contain no directory separator.
12633 case $0 in
12634 *[\\/]* ) as_myself=$0 ;;
12635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12638 IFS=$as_save_IFS
12639 test -z "$as_dir" && as_dir=.
12640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12641 done
12642 IFS=$as_save_IFS
12645 esac
12646 # We did not find ourselves, most probably we were run as `sh COMMAND'
12647 # in which case we are not to be found in the path.
12648 if test "x$as_myself" = x; then
12649 as_myself=$0
12651 if test ! -f "$as_myself"; then
12652 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12653 { (exit 1); exit 1; }
12656 # Work around bugs in pre-3.0 UWIN ksh.
12657 for as_var in ENV MAIL MAILPATH
12658 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12659 done
12660 PS1='$ '
12661 PS2='> '
12662 PS4='+ '
12664 # NLS nuisances.
12665 for as_var in \
12666 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12667 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12668 LC_TELEPHONE LC_TIME
12670 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12671 eval $as_var=C; export $as_var
12672 else
12673 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12675 done
12677 # Required to use basename.
12678 if expr a : '\(a\)' >/dev/null 2>&1 &&
12679 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12680 as_expr=expr
12681 else
12682 as_expr=false
12685 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12686 as_basename=basename
12687 else
12688 as_basename=false
12692 # Name of the executable.
12693 as_me=`$as_basename -- "$0" ||
12694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12695 X"$0" : 'X\(//\)$' \| \
12696 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12697 echo X/"$0" |
12698 sed '/^.*\/\([^/][^/]*\)\/*$/{
12699 s//\1/
12702 /^X\/\(\/\/\)$/{
12703 s//\1/
12706 /^X\/\(\/\).*/{
12707 s//\1/
12710 s/.*/./; q'`
12712 # CDPATH.
12713 $as_unset CDPATH
12717 as_lineno_1=$LINENO
12718 as_lineno_2=$LINENO
12719 test "x$as_lineno_1" != "x$as_lineno_2" &&
12720 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12722 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12723 # uniformly replaced by the line number. The first 'sed' inserts a
12724 # line-number line after each line using $LINENO; the second 'sed'
12725 # does the real work. The second script uses 'N' to pair each
12726 # line-number line with the line containing $LINENO, and appends
12727 # trailing '-' during substitution so that $LINENO is not a special
12728 # case at line end.
12729 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12730 # scripts with optimization help from Paolo Bonzini. Blame Lee
12731 # E. McMahon (1931-1989) for sed's syntax. :-)
12732 sed -n '
12734 /[$]LINENO/=
12735 ' <$as_myself |
12736 sed '
12737 s/[$]LINENO.*/&-/
12738 t lineno
12740 :lineno
12742 :loop
12743 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12744 t loop
12745 s/-\n.*//
12746 ' >$as_me.lineno &&
12747 chmod +x "$as_me.lineno" ||
12748 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12749 { (exit 1); exit 1; }; }
12751 # Don't try to exec as it changes $[0], causing all sort of problems
12752 # (the dirname of $[0] is not the place where we might find the
12753 # original and so on. Autoconf is especially sensitive to this).
12754 . "./$as_me.lineno"
12755 # Exit status is that of the last command.
12756 exit
12760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12761 as_dirname=dirname
12762 else
12763 as_dirname=false
12766 ECHO_C= ECHO_N= ECHO_T=
12767 case `echo -n x` in
12768 -n*)
12769 case `echo 'x\c'` in
12770 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12771 *) ECHO_C='\c';;
12772 esac;;
12774 ECHO_N='-n';;
12775 esac
12777 if expr a : '\(a\)' >/dev/null 2>&1 &&
12778 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12779 as_expr=expr
12780 else
12781 as_expr=false
12784 rm -f conf$$ conf$$.exe conf$$.file
12785 if test -d conf$$.dir; then
12786 rm -f conf$$.dir/conf$$.file
12787 else
12788 rm -f conf$$.dir
12789 mkdir conf$$.dir
12791 echo >conf$$.file
12792 if ln -s conf$$.file conf$$ 2>/dev/null; then
12793 as_ln_s='ln -s'
12794 # ... but there are two gotchas:
12795 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12796 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12797 # In both cases, we have to default to `cp -p'.
12798 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12799 as_ln_s='cp -p'
12800 elif ln conf$$.file conf$$ 2>/dev/null; then
12801 as_ln_s=ln
12802 else
12803 as_ln_s='cp -p'
12805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12806 rmdir conf$$.dir 2>/dev/null
12808 if mkdir -p . 2>/dev/null; then
12809 as_mkdir_p=:
12810 else
12811 test -d ./-p && rmdir ./-p
12812 as_mkdir_p=false
12815 if test -x / >/dev/null 2>&1; then
12816 as_test_x='test -x'
12817 else
12818 if ls -dL / >/dev/null 2>&1; then
12819 as_ls_L_option=L
12820 else
12821 as_ls_L_option=
12823 as_test_x='
12824 eval sh -c '\''
12825 if test -d "$1"; then
12826 test -d "$1/.";
12827 else
12828 case $1 in
12829 -*)set "./$1";;
12830 esac;
12831 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12832 ???[sx]*):;;*)false;;esac;fi
12833 '\'' sh
12836 as_executable_p=$as_test_x
12838 # Sed expression to map a string onto a valid CPP name.
12839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12841 # Sed expression to map a string onto a valid variable name.
12842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12845 exec 6>&1
12847 # Save the log message, to keep $[0] and so on meaningful, and to
12848 # report actual input values of CONFIG_FILES etc. instead of their
12849 # values after options handling.
12850 ac_log="
12851 This file was extended by $as_me, which was
12852 generated by GNU Autoconf 2.61. Invocation command line was
12854 CONFIG_FILES = $CONFIG_FILES
12855 CONFIG_HEADERS = $CONFIG_HEADERS
12856 CONFIG_LINKS = $CONFIG_LINKS
12857 CONFIG_COMMANDS = $CONFIG_COMMANDS
12858 $ $0 $@
12860 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12863 _ACEOF
12865 cat >>$CONFIG_STATUS <<_ACEOF
12866 # Files that config.status was made for.
12867 config_files="$ac_config_files"
12868 config_headers="$ac_config_headers"
12869 config_commands="$ac_config_commands"
12871 _ACEOF
12873 cat >>$CONFIG_STATUS <<\_ACEOF
12874 ac_cs_usage="\
12875 \`$as_me' instantiates files from templates according to the
12876 current configuration.
12878 Usage: $0 [OPTIONS] [FILE]...
12880 -h, --help print this help, then exit
12881 -V, --version print version number and configuration settings, then exit
12882 -q, --quiet do not print progress messages
12883 -d, --debug don't remove temporary files
12884 --recheck update $as_me by reconfiguring in the same conditions
12885 --file=FILE[:TEMPLATE]
12886 instantiate the configuration file FILE
12887 --header=FILE[:TEMPLATE]
12888 instantiate the configuration header FILE
12890 Configuration files:
12891 $config_files
12893 Configuration headers:
12894 $config_headers
12896 Configuration commands:
12897 $config_commands
12899 Report bugs to <bug-autoconf@gnu.org>."
12901 _ACEOF
12902 cat >>$CONFIG_STATUS <<_ACEOF
12903 ac_cs_version="\\
12904 config.status
12905 configured by $0, generated by GNU Autoconf 2.61,
12906 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12908 Copyright (C) 2006 Free Software Foundation, Inc.
12909 This config.status script is free software; the Free Software Foundation
12910 gives unlimited permission to copy, distribute and modify it."
12912 ac_pwd='$ac_pwd'
12913 srcdir='$srcdir'
12914 INSTALL='$INSTALL'
12915 MKDIR_P='$MKDIR_P'
12916 _ACEOF
12918 cat >>$CONFIG_STATUS <<\_ACEOF
12919 # If no file are specified by the user, then we need to provide default
12920 # value. By we need to know if files were specified by the user.
12921 ac_need_defaults=:
12922 while test $# != 0
12924 case $1 in
12925 --*=*)
12926 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12927 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12928 ac_shift=:
12931 ac_option=$1
12932 ac_optarg=$2
12933 ac_shift=shift
12935 esac
12937 case $ac_option in
12938 # Handling of the options.
12939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12940 ac_cs_recheck=: ;;
12941 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12942 echo "$ac_cs_version"; exit ;;
12943 --debug | --debu | --deb | --de | --d | -d )
12944 debug=: ;;
12945 --file | --fil | --fi | --f )
12946 $ac_shift
12947 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12948 ac_need_defaults=false;;
12949 --header | --heade | --head | --hea )
12950 $ac_shift
12951 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12952 ac_need_defaults=false;;
12953 --he | --h)
12954 # Conflict between --help and --header
12955 { echo "$as_me: error: ambiguous option: $1
12956 Try \`$0 --help' for more information." >&2
12957 { (exit 1); exit 1; }; };;
12958 --help | --hel | -h )
12959 echo "$ac_cs_usage"; exit ;;
12960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12961 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12962 ac_cs_silent=: ;;
12964 # This is an error.
12965 -*) { echo "$as_me: error: unrecognized option: $1
12966 Try \`$0 --help' for more information." >&2
12967 { (exit 1); exit 1; }; } ;;
12969 *) ac_config_targets="$ac_config_targets $1"
12970 ac_need_defaults=false ;;
12972 esac
12973 shift
12974 done
12976 ac_configure_extra_args=
12978 if $ac_cs_silent; then
12979 exec 6>/dev/null
12980 ac_configure_extra_args="$ac_configure_extra_args --silent"
12983 _ACEOF
12984 cat >>$CONFIG_STATUS <<_ACEOF
12985 if \$ac_cs_recheck; then
12986 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12987 CONFIG_SHELL=$SHELL
12988 export CONFIG_SHELL
12989 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12992 _ACEOF
12993 cat >>$CONFIG_STATUS <<\_ACEOF
12994 exec 5>>config.log
12996 echo
12997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12998 ## Running $as_me. ##
12999 _ASBOX
13000 echo "$ac_log"
13001 } >&5
13003 _ACEOF
13004 cat >>$CONFIG_STATUS <<_ACEOF
13006 # INIT-COMMANDS
13008 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13010 _ACEOF
13012 cat >>$CONFIG_STATUS <<\_ACEOF
13014 # Handling of arguments.
13015 for ac_config_target in $ac_config_targets
13017 case $ac_config_target in
13018 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13019 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13020 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13021 "README_FILES/Makefile") CONFIG_FILES="$CONFIG_FILES README_FILES/Makefile" ;;
13022 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13023 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
13024 "example/libraries/Makefile") CONFIG_FILES="$CONFIG_FILES example/libraries/Makefile" ;;
13025 "lib/CreateLibraryContents.sh") CONFIG_FILES="$CONFIG_FILES lib/CreateLibraryContents.sh" ;;
13026 "lib/CreateLibrary.sh") CONFIG_FILES="$CONFIG_FILES lib/CreateLibrary.sh" ;;
13027 "lib/ListLibraryContents.sh") CONFIG_FILES="$CONFIG_FILES lib/ListLibraryContents.sh" ;;
13028 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13029 "lib/QueryLibrary.sh") CONFIG_FILES="$CONFIG_FILES lib/QueryLibrary.sh" ;;
13030 "lib/m4lib_to_newlib.sh") CONFIG_FILES="$CONFIG_FILES lib/m4lib_to_newlib.sh" ;;
13031 "lib/qfp-ui") CONFIG_FILES="$CONFIG_FILES lib/qfp-ui" ;;
13032 "newlib/2_pin_thru-hole_packages/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/2_pin_thru-hole_packages/Makefile" ;;
13033 "newlib/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/Makefile" ;;
13034 "newlib/analog-devices/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/analog-devices/Makefile" ;;
13035 "newlib/burr-brown/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/burr-brown/Makefile" ;;
13036 "newlib/connectors/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/connectors/Makefile" ;;
13037 "newlib/crystal/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/crystal/Makefile" ;;
13038 "newlib/electro-optics/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/electro-optics/Makefile" ;;
13039 "newlib/headers/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/headers/Makefile" ;;
13040 "newlib/keystone/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/keystone/Makefile" ;;
13041 "newlib/msp430/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/msp430/Makefile" ;;
13042 "newlib/not_vetted_ingo/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/not_vetted_ingo/Makefile" ;;
13043 "newlib/sockets/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/sockets/Makefile" ;;
13044 "newlib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/tests/Makefile" ;;
13045 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13046 "src/icons/Makefile") CONFIG_FILES="$CONFIG_FILES src/icons/Makefile" ;;
13047 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13048 "tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/Makefile" ;;
13049 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
13051 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13052 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13053 { (exit 1); exit 1; }; };;
13054 esac
13055 done
13058 # If the user did not use the arguments to specify the items to instantiate,
13059 # then the envvar interface is used. Set only those that are not.
13060 # We use the long form for the default assignment because of an extremely
13061 # bizarre bug on SunOS 4.1.3.
13062 if $ac_need_defaults; then
13063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13064 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13068 # Have a temporary directory for convenience. Make it in the build tree
13069 # simply because there is no reason against having it here, and in addition,
13070 # creating and moving files from /tmp can sometimes cause problems.
13071 # Hook for its removal unless debugging.
13072 # Note that there is a small window in which the directory will not be cleaned:
13073 # after its creation but before its name has been assigned to `$tmp'.
13074 $debug ||
13076 tmp=
13077 trap 'exit_status=$?
13078 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13080 trap '{ (exit 1); exit 1; }' 1 2 13 15
13082 # Create a (secure) tmp directory for tmp files.
13085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13086 test -n "$tmp" && test -d "$tmp"
13087 } ||
13089 tmp=./conf$$-$RANDOM
13090 (umask 077 && mkdir "$tmp")
13091 } ||
13093 echo "$me: cannot create a temporary directory in ." >&2
13094 { (exit 1); exit 1; }
13098 # Set up the sed scripts for CONFIG_FILES section.
13101 # No need to generate the scripts if there are no CONFIG_FILES.
13102 # This happens for instance when ./config.status config.h
13103 if test -n "$CONFIG_FILES"; then
13105 _ACEOF
13109 ac_delim='%!_!# '
13110 for ac_last_try in false false false false false :; do
13111 cat >conf$$subs.sed <<_ACEOF
13112 SHELL!$SHELL$ac_delim
13113 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13114 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13115 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13116 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13117 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13118 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13119 exec_prefix!$exec_prefix$ac_delim
13120 prefix!$prefix$ac_delim
13121 program_transform_name!$program_transform_name$ac_delim
13122 bindir!$bindir$ac_delim
13123 sbindir!$sbindir$ac_delim
13124 libexecdir!$libexecdir$ac_delim
13125 datarootdir!$datarootdir$ac_delim
13126 datadir!$datadir$ac_delim
13127 sysconfdir!$sysconfdir$ac_delim
13128 sharedstatedir!$sharedstatedir$ac_delim
13129 localstatedir!$localstatedir$ac_delim
13130 includedir!$includedir$ac_delim
13131 oldincludedir!$oldincludedir$ac_delim
13132 docdir!$docdir$ac_delim
13133 infodir!$infodir$ac_delim
13134 htmldir!$htmldir$ac_delim
13135 dvidir!$dvidir$ac_delim
13136 pdfdir!$pdfdir$ac_delim
13137 psdir!$psdir$ac_delim
13138 libdir!$libdir$ac_delim
13139 localedir!$localedir$ac_delim
13140 mandir!$mandir$ac_delim
13141 DEFS!$DEFS$ac_delim
13142 ECHO_C!$ECHO_C$ac_delim
13143 ECHO_N!$ECHO_N$ac_delim
13144 ECHO_T!$ECHO_T$ac_delim
13145 LIBS!$LIBS$ac_delim
13146 build_alias!$build_alias$ac_delim
13147 host_alias!$host_alias$ac_delim
13148 target_alias!$target_alias$ac_delim
13149 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13150 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13151 INSTALL_DATA!$INSTALL_DATA$ac_delim
13152 am__isrc!$am__isrc$ac_delim
13153 CYGPATH_W!$CYGPATH_W$ac_delim
13154 PACKAGE!$PACKAGE$ac_delim
13155 VERSION!$VERSION$ac_delim
13156 ACLOCAL!$ACLOCAL$ac_delim
13157 AUTOCONF!$AUTOCONF$ac_delim
13158 AUTOMAKE!$AUTOMAKE$ac_delim
13159 AUTOHEADER!$AUTOHEADER$ac_delim
13160 MAKEINFO!$MAKEINFO$ac_delim
13161 install_sh!$install_sh$ac_delim
13162 STRIP!$STRIP$ac_delim
13163 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13164 mkdir_p!$mkdir_p$ac_delim
13165 AWK!$AWK$ac_delim
13166 SET_MAKE!$SET_MAKE$ac_delim
13167 am__leading_dot!$am__leading_dot$ac_delim
13168 AMTAR!$AMTAR$ac_delim
13169 am__tar!$am__tar$ac_delim
13170 am__untar!$am__untar$ac_delim
13171 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13172 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13173 MAINT!$MAINT$ac_delim
13174 build!$build$ac_delim
13175 build_cpu!$build_cpu$ac_delim
13176 build_vendor!$build_vendor$ac_delim
13177 build_os!$build_os$ac_delim
13178 host!$host$ac_delim
13179 host_cpu!$host_cpu$ac_delim
13180 host_vendor!$host_vendor$ac_delim
13181 host_os!$host_os$ac_delim
13182 WIN32!$WIN32$ac_delim
13183 WIN32_TRUE!$WIN32_TRUE$ac_delim
13184 WIN32_FALSE!$WIN32_FALSE$ac_delim
13185 CC!$CC$ac_delim
13186 CFLAGS!$CFLAGS$ac_delim
13187 LDFLAGS!$LDFLAGS$ac_delim
13188 CPPFLAGS!$CPPFLAGS$ac_delim
13189 ac_ct_CC!$ac_ct_CC$ac_delim
13190 EXEEXT!$EXEEXT$ac_delim
13191 OBJEXT!$OBJEXT$ac_delim
13192 DEPDIR!$DEPDIR$ac_delim
13193 am__include!$am__include$ac_delim
13194 am__quote!$am__quote$ac_delim
13195 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13196 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13197 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13198 CCDEPMODE!$CCDEPMODE$ac_delim
13199 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13200 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13201 CPP!$CPP$ac_delim
13202 LEX!$LEX$ac_delim
13203 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
13204 LEXLIB!$LEXLIB$ac_delim
13205 LEX_PATH!$LEX_PATH$ac_delim
13206 YACC!$YACC$ac_delim
13207 YFLAGS!$YFLAGS$ac_delim
13208 YACC_PATH!$YACC_PATH$ac_delim
13209 _ACEOF
13211 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13212 break
13213 elif $ac_last_try; then
13214 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13215 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13216 { (exit 1); exit 1; }; }
13217 else
13218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13220 done
13222 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13223 if test -n "$ac_eof"; then
13224 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13225 ac_eof=`expr $ac_eof + 1`
13228 cat >>$CONFIG_STATUS <<_ACEOF
13229 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13231 _ACEOF
13232 sed '
13233 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13234 s/^/s,@/; s/!/@,|#_!!_#|/
13237 s/'"$ac_delim"'$/,g/; t
13238 s/$/\\/; p
13239 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13240 ' >>$CONFIG_STATUS <conf$$subs.sed
13241 rm -f conf$$subs.sed
13242 cat >>$CONFIG_STATUS <<_ACEOF
13243 CEOF$ac_eof
13244 _ACEOF
13247 ac_delim='%!_!# '
13248 for ac_last_try in false false false false false :; do
13249 cat >conf$$subs.sed <<_ACEOF
13250 RANLIB!$RANLIB$ac_delim
13251 TGIF!$TGIF$ac_delim
13252 MISSING_TGIF_TRUE!$MISSING_TGIF_TRUE$ac_delim
13253 MISSING_TGIF_FALSE!$MISSING_TGIF_FALSE$ac_delim
13254 XPMTOPPM!$XPMTOPPM$ac_delim
13255 PPMTOWINICON!$PPMTOWINICON$ac_delim
13256 MISSING_XPMTOPPM_TRUE!$MISSING_XPMTOPPM_TRUE$ac_delim
13257 MISSING_XPMTOPPM_FALSE!$MISSING_XPMTOPPM_FALSE$ac_delim
13258 CONVERT!$CONVERT$ac_delim
13259 MISSING_CONVERT_TRUE!$MISSING_CONVERT_TRUE$ac_delim
13260 MISSING_CONVERT_FALSE!$MISSING_CONVERT_FALSE$ac_delim
13261 DOC!$DOC$ac_delim
13262 MKINFO!$MKINFO$ac_delim
13263 PERL!$PERL$ac_delim
13264 WITH_DBUS_TRUE!$WITH_DBUS_TRUE$ac_delim
13265 WITH_DBUS_FALSE!$WITH_DBUS_FALSE$ac_delim
13266 PKG_CONFIG!$PKG_CONFIG$ac_delim
13267 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13268 DBUS_LIBS!$DBUS_LIBS$ac_delim
13269 HIDLIST!$HIDLIST$ac_delim
13270 HIDLIBS!$HIDLIBS$ac_delim
13271 M4!$M4$ac_delim
13272 WISH!$WISH$ac_delim
13273 GNUM4!$GNUM4$ac_delim
13274 LATEX!$LATEX$ac_delim
13275 MISSING_LATEX_TRUE!$MISSING_LATEX_TRUE$ac_delim
13276 MISSING_LATEX_FALSE!$MISSING_LATEX_FALSE$ac_delim
13277 PDFLATEX!$PDFLATEX$ac_delim
13278 MISSING_PDFLATEX_TRUE!$MISSING_PDFLATEX_TRUE$ac_delim
13279 MISSING_PDFLATEX_FALSE!$MISSING_PDFLATEX_FALSE$ac_delim
13280 DVIPS!$DVIPS$ac_delim
13281 MISSING_DVIPS_TRUE!$MISSING_DVIPS_TRUE$ac_delim
13282 MISSING_DVIPS_FALSE!$MISSING_DVIPS_FALSE$ac_delim
13283 PS2PDF!$PS2PDF$ac_delim
13284 MISSING_PS2PDF_TRUE!$MISSING_PS2PDF_TRUE$ac_delim
13285 MISSING_PS2PDF_FALSE!$MISSING_PS2PDF_FALSE$ac_delim
13286 GREP!$GREP$ac_delim
13287 EGREP!$EGREP$ac_delim
13288 XMKMF!$XMKMF$ac_delim
13289 X_CFLAGS!$X_CFLAGS$ac_delim
13290 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13291 X_LIBS!$X_LIBS$ac_delim
13292 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13293 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
13294 GTK_LIBS!$GTK_LIBS$ac_delim
13295 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
13296 GLIB_LIBS!$GLIB_LIBS$ac_delim
13297 GDLIB_CONFIG!$GDLIB_CONFIG$ac_delim
13298 PNG_TRUE!$PNG_TRUE$ac_delim
13299 PNG_FALSE!$PNG_FALSE$ac_delim
13300 GIF_TRUE!$GIF_TRUE$ac_delim
13301 GIF_FALSE!$GIF_FALSE$ac_delim
13302 FONTFILENAME!$FONTFILENAME$ac_delim
13303 PCBLIBDIR!$PCBLIBDIR$ac_delim
13304 LIBRARYFILENAME!$LIBRARYFILENAME$ac_delim
13305 PCBTREEDIR!$PCBTREEDIR$ac_delim
13306 PCBTREEPATH!$PCBTREEPATH$ac_delim
13307 BTNMOD!$BTNMOD$ac_delim
13308 TOPDIRS!$TOPDIRS$ac_delim
13309 LIBOBJS!$LIBOBJS$ac_delim
13310 LTLIBOBJS!$LTLIBOBJS$ac_delim
13311 _ACEOF
13313 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
13314 break
13315 elif $ac_last_try; then
13316 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13317 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13318 { (exit 1); exit 1; }; }
13319 else
13320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13322 done
13324 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13325 if test -n "$ac_eof"; then
13326 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13327 ac_eof=`expr $ac_eof + 1`
13330 cat >>$CONFIG_STATUS <<_ACEOF
13331 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13333 _ACEOF
13334 sed '
13335 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13336 s/^/s,@/; s/!/@,|#_!!_#|/
13339 s/'"$ac_delim"'$/,g/; t
13340 s/$/\\/; p
13341 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13342 ' >>$CONFIG_STATUS <conf$$subs.sed
13343 rm -f conf$$subs.sed
13344 cat >>$CONFIG_STATUS <<_ACEOF
13345 :end
13346 s/|#_!!_#|//g
13347 CEOF$ac_eof
13348 _ACEOF
13351 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13352 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13353 # trailing colons and then remove the whole line if VPATH becomes empty
13354 # (actually we leave an empty line to preserve line numbers).
13355 if test "x$srcdir" = x.; then
13356 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13357 s/:*\$(srcdir):*/:/
13358 s/:*\${srcdir}:*/:/
13359 s/:*@srcdir@:*/:/
13360 s/^\([^=]*=[ ]*\):*/\1/
13361 s/:*$//
13362 s/^[^=]*=[ ]*$//
13366 cat >>$CONFIG_STATUS <<\_ACEOF
13367 fi # test -n "$CONFIG_FILES"
13370 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13372 case $ac_tag in
13373 :[FHLC]) ac_mode=$ac_tag; continue;;
13374 esac
13375 case $ac_mode$ac_tag in
13376 :[FHL]*:*);;
13377 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13378 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13379 { (exit 1); exit 1; }; };;
13380 :[FH]-) ac_tag=-:-;;
13381 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13382 esac
13383 ac_save_IFS=$IFS
13384 IFS=:
13385 set x $ac_tag
13386 IFS=$ac_save_IFS
13387 shift
13388 ac_file=$1
13389 shift
13391 case $ac_mode in
13392 :L) ac_source=$1;;
13393 :[FH])
13394 ac_file_inputs=
13395 for ac_f
13397 case $ac_f in
13398 -) ac_f="$tmp/stdin";;
13399 *) # Look for the file first in the build tree, then in the source tree
13400 # (if the path is not absolute). The absolute path cannot be DOS-style,
13401 # because $ac_f cannot contain `:'.
13402 test -f "$ac_f" ||
13403 case $ac_f in
13404 [\\/$]*) false;;
13405 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13406 esac ||
13407 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13408 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13409 { (exit 1); exit 1; }; };;
13410 esac
13411 ac_file_inputs="$ac_file_inputs $ac_f"
13412 done
13414 # Let's still pretend it is `configure' which instantiates (i.e., don't
13415 # use $as_me), people would be surprised to read:
13416 # /* config.h. Generated by config.status. */
13417 configure_input="Generated from "`IFS=:
13418 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13419 if test x"$ac_file" != x-; then
13420 configure_input="$ac_file. $configure_input"
13421 { echo "$as_me:$LINENO: creating $ac_file" >&5
13422 echo "$as_me: creating $ac_file" >&6;}
13425 case $ac_tag in
13426 *:-:* | *:-) cat >"$tmp/stdin";;
13427 esac
13429 esac
13431 ac_dir=`$as_dirname -- "$ac_file" ||
13432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13433 X"$ac_file" : 'X\(//\)[^/]' \| \
13434 X"$ac_file" : 'X\(//\)$' \| \
13435 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13436 echo X"$ac_file" |
13437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13438 s//\1/
13441 /^X\(\/\/\)[^/].*/{
13442 s//\1/
13445 /^X\(\/\/\)$/{
13446 s//\1/
13449 /^X\(\/\).*/{
13450 s//\1/
13453 s/.*/./; q'`
13454 { as_dir="$ac_dir"
13455 case $as_dir in #(
13456 -*) as_dir=./$as_dir;;
13457 esac
13458 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13459 as_dirs=
13460 while :; do
13461 case $as_dir in #(
13462 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13463 *) as_qdir=$as_dir;;
13464 esac
13465 as_dirs="'$as_qdir' $as_dirs"
13466 as_dir=`$as_dirname -- "$as_dir" ||
13467 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13468 X"$as_dir" : 'X\(//\)[^/]' \| \
13469 X"$as_dir" : 'X\(//\)$' \| \
13470 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13471 echo X"$as_dir" |
13472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13473 s//\1/
13476 /^X\(\/\/\)[^/].*/{
13477 s//\1/
13480 /^X\(\/\/\)$/{
13481 s//\1/
13484 /^X\(\/\).*/{
13485 s//\1/
13488 s/.*/./; q'`
13489 test -d "$as_dir" && break
13490 done
13491 test -z "$as_dirs" || eval "mkdir $as_dirs"
13492 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13493 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13494 { (exit 1); exit 1; }; }; }
13495 ac_builddir=.
13497 case "$ac_dir" in
13498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13501 # A ".." for each directory in $ac_dir_suffix.
13502 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13503 case $ac_top_builddir_sub in
13504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13506 esac ;;
13507 esac
13508 ac_abs_top_builddir=$ac_pwd
13509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13510 # for backward compatibility:
13511 ac_top_builddir=$ac_top_build_prefix
13513 case $srcdir in
13514 .) # We are building in place.
13515 ac_srcdir=.
13516 ac_top_srcdir=$ac_top_builddir_sub
13517 ac_abs_top_srcdir=$ac_pwd ;;
13518 [\\/]* | ?:[\\/]* ) # Absolute name.
13519 ac_srcdir=$srcdir$ac_dir_suffix;
13520 ac_top_srcdir=$srcdir
13521 ac_abs_top_srcdir=$srcdir ;;
13522 *) # Relative name.
13523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13524 ac_top_srcdir=$ac_top_build_prefix$srcdir
13525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13526 esac
13527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13530 case $ac_mode in
13533 # CONFIG_FILE
13536 case $INSTALL in
13537 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13538 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13539 esac
13540 ac_MKDIR_P=$MKDIR_P
13541 case $MKDIR_P in
13542 [\\/$]* | ?:[\\/]* ) ;;
13543 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13544 esac
13545 _ACEOF
13547 cat >>$CONFIG_STATUS <<\_ACEOF
13548 # If the template does not know about datarootdir, expand it.
13549 # FIXME: This hack should be removed a few years after 2.60.
13550 ac_datarootdir_hack=; ac_datarootdir_seen=
13552 case `sed -n '/datarootdir/ {
13556 /@datadir@/p
13557 /@docdir@/p
13558 /@infodir@/p
13559 /@localedir@/p
13560 /@mandir@/p
13561 ' $ac_file_inputs` in
13562 *datarootdir*) ac_datarootdir_seen=yes;;
13563 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13564 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13565 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13566 _ACEOF
13567 cat >>$CONFIG_STATUS <<_ACEOF
13568 ac_datarootdir_hack='
13569 s&@datadir@&$datadir&g
13570 s&@docdir@&$docdir&g
13571 s&@infodir@&$infodir&g
13572 s&@localedir@&$localedir&g
13573 s&@mandir@&$mandir&g
13574 s&\\\${datarootdir}&$datarootdir&g' ;;
13575 esac
13576 _ACEOF
13578 # Neutralize VPATH when `$srcdir' = `.'.
13579 # Shell code in configure.ac might set extrasub.
13580 # FIXME: do we really want to maintain this feature?
13581 cat >>$CONFIG_STATUS <<_ACEOF
13582 sed "$ac_vpsub
13583 $extrasub
13584 _ACEOF
13585 cat >>$CONFIG_STATUS <<\_ACEOF
13587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13588 s&@configure_input@&$configure_input&;t t
13589 s&@top_builddir@&$ac_top_builddir_sub&;t t
13590 s&@srcdir@&$ac_srcdir&;t t
13591 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13592 s&@top_srcdir@&$ac_top_srcdir&;t t
13593 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13594 s&@builddir@&$ac_builddir&;t t
13595 s&@abs_builddir@&$ac_abs_builddir&;t t
13596 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13597 s&@INSTALL@&$ac_INSTALL&;t t
13598 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13599 $ac_datarootdir_hack
13600 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13603 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13604 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13605 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13606 which seems to be undefined. Please make sure it is defined." >&5
13607 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13608 which seems to be undefined. Please make sure it is defined." >&2;}
13610 rm -f "$tmp/stdin"
13611 case $ac_file in
13612 -) cat "$tmp/out"; rm -f "$tmp/out";;
13613 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13614 esac
13618 # CONFIG_HEADER
13620 _ACEOF
13622 # Transform confdefs.h into a sed script `conftest.defines', that
13623 # substitutes the proper values into config.h.in to produce config.h.
13624 rm -f conftest.defines conftest.tail
13625 # First, append a space to every undef/define line, to ease matching.
13626 echo 's/$/ /' >conftest.defines
13627 # Then, protect against being on the right side of a sed subst, or in
13628 # an unquoted here document, in config.status. If some macros were
13629 # called several times there might be several #defines for the same
13630 # symbol, which is useless. But do not sort them, since the last
13631 # AC_DEFINE must be honored.
13632 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13633 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13634 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13635 # PARAMS is the parameter list in the macro definition--in most cases, it's
13636 # just an empty string.
13637 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13638 ac_dB='\\)[ (].*,\\1define\\2'
13639 ac_dC=' '
13640 ac_dD=' ,'
13642 uniq confdefs.h |
13643 sed -n '
13644 t rset
13645 :rset
13646 s/^[ ]*#[ ]*define[ ][ ]*//
13647 t ok
13650 s/[\\&,]/\\&/g
13651 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13652 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13653 ' >>conftest.defines
13655 # Remove the space that was appended to ease matching.
13656 # Then replace #undef with comments. This is necessary, for
13657 # example, in the case of _POSIX_SOURCE, which is predefined and required
13658 # on some systems where configure will not decide to define it.
13659 # (The regexp can be short, since the line contains either #define or #undef.)
13660 echo 's/ $//
13661 s,^[ #]*u.*,/* & */,' >>conftest.defines
13663 # Break up conftest.defines:
13664 ac_max_sed_lines=50
13666 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13667 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13668 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13669 # et cetera.
13670 ac_in='$ac_file_inputs'
13671 ac_out='"$tmp/out1"'
13672 ac_nxt='"$tmp/out2"'
13674 while :
13676 # Write a here document:
13677 cat >>$CONFIG_STATUS <<_ACEOF
13678 # First, check the format of the line:
13679 cat >"\$tmp/defines.sed" <<\\CEOF
13680 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13681 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13683 :def
13684 _ACEOF
13685 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13686 echo 'CEOF
13687 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13688 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13689 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13690 grep . conftest.tail >/dev/null || break
13691 rm -f conftest.defines
13692 mv conftest.tail conftest.defines
13693 done
13694 rm -f conftest.defines conftest.tail
13696 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13697 cat >>$CONFIG_STATUS <<\_ACEOF
13698 if test x"$ac_file" != x-; then
13699 echo "/* $configure_input */" >"$tmp/config.h"
13700 cat "$ac_result" >>"$tmp/config.h"
13701 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13702 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13703 echo "$as_me: $ac_file is unchanged" >&6;}
13704 else
13705 rm -f $ac_file
13706 mv "$tmp/config.h" $ac_file
13708 else
13709 echo "/* $configure_input */"
13710 cat "$ac_result"
13712 rm -f "$tmp/out12"
13713 # Compute $ac_file's index in $config_headers.
13714 _am_stamp_count=1
13715 for _am_header in $config_headers :; do
13716 case $_am_header in
13717 $ac_file | $ac_file:* )
13718 break ;;
13720 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13721 esac
13722 done
13723 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
13724 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13725 X$ac_file : 'X\(//\)[^/]' \| \
13726 X$ac_file : 'X\(//\)$' \| \
13727 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
13728 echo X$ac_file |
13729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13730 s//\1/
13733 /^X\(\/\/\)[^/].*/{
13734 s//\1/
13737 /^X\(\/\/\)$/{
13738 s//\1/
13741 /^X\(\/\).*/{
13742 s//\1/
13745 s/.*/./; q'`/stamp-h$_am_stamp_count
13748 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13749 echo "$as_me: executing $ac_file commands" >&6;}
13751 esac
13754 case $ac_file$ac_mode in
13755 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13756 # Strip MF so we end up with the name of the file.
13757 mf=`echo "$mf" | sed -e 's/:.*$//'`
13758 # Check whether this is an Automake generated Makefile or not.
13759 # We used to match only the files named `Makefile.in', but
13760 # some people rename them; so instead we look at the file content.
13761 # Grep'ing the first line is not enough: some people post-process
13762 # each Makefile.in and add a new line on top of each file to say so.
13763 # Grep'ing the whole file is not good either: AIX grep has a line
13764 # limit of 2048, but all sed's we know have understand at least 4000.
13765 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
13766 dirpart=`$as_dirname -- "$mf" ||
13767 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13768 X"$mf" : 'X\(//\)[^/]' \| \
13769 X"$mf" : 'X\(//\)$' \| \
13770 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13771 echo X"$mf" |
13772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13773 s//\1/
13776 /^X\(\/\/\)[^/].*/{
13777 s//\1/
13780 /^X\(\/\/\)$/{
13781 s//\1/
13784 /^X\(\/\).*/{
13785 s//\1/
13788 s/.*/./; q'`
13789 else
13790 continue
13792 # Extract the definition of DEPDIR, am__include, and am__quote
13793 # from the Makefile without running `make'.
13794 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13795 test -z "$DEPDIR" && continue
13796 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13797 test -z "am__include" && continue
13798 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13799 # When using ansi2knr, U may be empty or an underscore; expand it
13800 U=`sed -n 's/^U = //p' < "$mf"`
13801 # Find all dependency output files, they are included files with
13802 # $(DEPDIR) in their names. We invoke sed twice because it is the
13803 # simplest approach to changing $(DEPDIR) to its actual value in the
13804 # expansion.
13805 for file in `sed -n "
13806 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13807 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13808 # Make sure the directory exists.
13809 test -f "$dirpart/$file" && continue
13810 fdir=`$as_dirname -- "$file" ||
13811 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13812 X"$file" : 'X\(//\)[^/]' \| \
13813 X"$file" : 'X\(//\)$' \| \
13814 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13815 echo X"$file" |
13816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13817 s//\1/
13820 /^X\(\/\/\)[^/].*/{
13821 s//\1/
13824 /^X\(\/\/\)$/{
13825 s//\1/
13828 /^X\(\/\).*/{
13829 s//\1/
13832 s/.*/./; q'`
13833 { as_dir=$dirpart/$fdir
13834 case $as_dir in #(
13835 -*) as_dir=./$as_dir;;
13836 esac
13837 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13838 as_dirs=
13839 while :; do
13840 case $as_dir in #(
13841 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13842 *) as_qdir=$as_dir;;
13843 esac
13844 as_dirs="'$as_qdir' $as_dirs"
13845 as_dir=`$as_dirname -- "$as_dir" ||
13846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13847 X"$as_dir" : 'X\(//\)[^/]' \| \
13848 X"$as_dir" : 'X\(//\)$' \| \
13849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13850 echo X"$as_dir" |
13851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13852 s//\1/
13855 /^X\(\/\/\)[^/].*/{
13856 s//\1/
13859 /^X\(\/\/\)$/{
13860 s//\1/
13863 /^X\(\/\).*/{
13864 s//\1/
13867 s/.*/./; q'`
13868 test -d "$as_dir" && break
13869 done
13870 test -z "$as_dirs" || eval "mkdir $as_dirs"
13871 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13872 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13873 { (exit 1); exit 1; }; }; }
13874 # echo "creating $dirpart/$file"
13875 echo '# dummy' > "$dirpart/$file"
13876 done
13877 done
13880 esac
13881 done # for ac_tag
13884 { (exit 0); exit 0; }
13885 _ACEOF
13886 chmod +x $CONFIG_STATUS
13887 ac_clean_files=$ac_clean_files_save
13890 # configure is writing to config.log, and then calls config.status.
13891 # config.status does its own redirection, appending to config.log.
13892 # Unfortunately, on DOS this fails, as config.log is still kept open
13893 # by configure, so config.status won't be able to write to it; its
13894 # output is simply discarded. So we exec the FD to /dev/null,
13895 # effectively closing config.log, so it can be properly (re)opened and
13896 # appended to by config.status. When coming back to configure, we
13897 # need to make the FD available again.
13898 if test "$no_create" != yes; then
13899 ac_cs_success=:
13900 ac_config_status_args=
13901 test "$silent" = yes &&
13902 ac_config_status_args="$ac_config_status_args --quiet"
13903 exec 5>/dev/null
13904 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13905 exec 5>>config.log
13906 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13907 # would make configure fail if this is the last instruction.
13908 $ac_cs_success || { (exit 1); exit 1; }
13912 with_gui=`echo $with_gui`
13913 with_printer=`echo $with_printer`
13914 with_exporters=`echo $with_exporters | sed 's/,/ /g'`
13916 { echo "$as_me:$LINENO: result:
13917 ** Configuration summary for $PACKAGE $VERSION:
13919 GUI: $with_gui
13920 Printer: $with_printer
13921 Exporters: $with_exporters
13922 Build documentation: $docs_yesno
13923 dmalloc debugging: $with_dmalloc
13924 ElectricFence debugging: $with_efence
13925 CPPFLAGS: $CPPFLAGS
13926 CFLAGS: $CFLAGS
13927 LIBS: $LIBS
13929 " >&5
13930 echo "${ECHO_T}
13931 ** Configuration summary for $PACKAGE $VERSION:
13933 GUI: $with_gui
13934 Printer: $with_printer
13935 Exporters: $with_exporters
13936 Build documentation: $docs_yesno
13937 dmalloc debugging: $with_dmalloc
13938 ElectricFence debugging: $with_efence
13939 CPPFLAGS: $CPPFLAGS
13940 CFLAGS: $CFLAGS
13941 LIBS: $LIBS
13943 " >&6; }