]> git.draconx.ca Git - gob-dx.git/blob - configure
b8095613a0936decf31e7baffa2a8bc09754339f
[gob-dx.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
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 ## --------------------- ##
12
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
26
27 fi
28
29
30
31
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
39
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=:
49   fi
50   rm -f conf$$.sh
51 fi
52
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
58 fi
59
60
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='
67 '
68 IFS=" ""        $as_nl"
69
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
75 do
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
81
82      ;;
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
88 fi
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; }
92 fi
93
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='+ '
101
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
107 do
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
112   fi
113 done
114
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
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
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/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
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
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
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
218   :
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
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
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
234
235
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
251
252 fi
253
254
255 :
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
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
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; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
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+"$@"}
348 fi
349
350
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; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
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
419 }
420
421
422
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" || {
427
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 '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
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; }; }
456
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
463 }
464
465
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
470 fi
471
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;;
479 *)
480   ECHO_N='-n';;
481 esac
482
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
488 fi
489
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
496 fi
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'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
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
519 fi
520
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=
528   fi
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
540   '
541 fi
542 as_executable_p=$as_test_x
543
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'"
546
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'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
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`
558
559 #
560 # Initializations.
561 #
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}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/treefuncs.h"
580 ac_subst_vars='SHELL
581 PATH_SEPARATOR
582 PACKAGE_NAME
583 PACKAGE_TARNAME
584 PACKAGE_VERSION
585 PACKAGE_STRING
586 PACKAGE_BUGREPORT
587 exec_prefix
588 prefix
589 program_transform_name
590 bindir
591 sbindir
592 libexecdir
593 datarootdir
594 datadir
595 sysconfdir
596 sharedstatedir
597 localstatedir
598 includedir
599 oldincludedir
600 docdir
601 infodir
602 htmldir
603 dvidir
604 pdfdir
605 psdir
606 libdir
607 localedir
608 mandir
609 DEFS
610 ECHO_C
611 ECHO_N
612 ECHO_T
613 LIBS
614 build_alias
615 host_alias
616 target_alias
617 INSTALL_PROGRAM
618 INSTALL_SCRIPT
619 INSTALL_DATA
620 am__isrc
621 CYGPATH_W
622 PACKAGE
623 VERSION
624 ACLOCAL
625 AUTOCONF
626 AUTOMAKE
627 AUTOHEADER
628 MAKEINFO
629 install_sh
630 STRIP
631 INSTALL_STRIP_PROGRAM
632 mkdir_p
633 AWK
634 SET_MAKE
635 am__leading_dot
636 AMTAR
637 am__tar
638 am__untar
639 MAINTAINER_MODE_TRUE
640 MAINTAINER_MODE_FALSE
641 MAINT
642 NOINSTGOB_TRUE
643 NOINSTGOB_FALSE
644 SUBDIRS
645 INSTGOB
646 NOINSTGOB
647 CC
648 CFLAGS
649 LDFLAGS
650 CPPFLAGS
651 ac_ct_CC
652 EXEEXT
653 OBJEXT
654 DEPDIR
655 am__include
656 am__quote
657 AMDEP_TRUE
658 AMDEP_FALSE
659 AMDEPBACKSLASH
660 CCDEPMODE
661 am__fastdepCC_TRUE
662 am__fastdepCC_FALSE
663 CPP
664 GREP
665 EGREP
666 YACC
667 YFLAGS
668 LEX
669 LEX_OUTPUT_ROOT
670 LEXLIB
671 RM
672 MV
673 TAR
674 PKG_CONFIG
675 GLIB_CFLAGS
676 GLIB_LIBS
677 LIBOBJS
678 LTLIBOBJS'
679 ac_subst_files=''
680       ac_precious_vars='build_alias
681 host_alias
682 target_alias
683 CC
684 CFLAGS
685 LDFLAGS
686 LIBS
687 CPPFLAGS
688 CPP
689 YACC
690 YFLAGS
691 PKG_CONFIG
692 GLIB_CFLAGS
693 GLIB_LIBS'
694
695
696 # Initialize some variables set by options.
697 ac_init_help=
698 ac_init_version=false
699 # The variables have the same names as the options, with
700 # dashes changed to underlines.
701 cache_file=/dev/null
702 exec_prefix=NONE
703 no_create=
704 no_recursion=
705 prefix=NONE
706 program_prefix=NONE
707 program_suffix=NONE
708 program_transform_name=s,x,x,
709 silent=
710 site=
711 srcdir=
712 verbose=
713 x_includes=NONE
714 x_libraries=NONE
715
716 # Installation directory options.
717 # These are left unexpanded so users can "make install exec_prefix=/foo"
718 # and all the variables that are supposed to be based on exec_prefix
719 # by default will actually change.
720 # Use braces instead of parens because sh, perl, etc. also accept them.
721 # (The list follows the same order as the GNU Coding Standards.)
722 bindir='${exec_prefix}/bin'
723 sbindir='${exec_prefix}/sbin'
724 libexecdir='${exec_prefix}/libexec'
725 datarootdir='${prefix}/share'
726 datadir='${datarootdir}'
727 sysconfdir='${prefix}/etc'
728 sharedstatedir='${prefix}/com'
729 localstatedir='${prefix}/var'
730 includedir='${prefix}/include'
731 oldincludedir='/usr/include'
732 docdir='${datarootdir}/doc/${PACKAGE}'
733 infodir='${datarootdir}/info'
734 htmldir='${docdir}'
735 dvidir='${docdir}'
736 pdfdir='${docdir}'
737 psdir='${docdir}'
738 libdir='${exec_prefix}/lib'
739 localedir='${datarootdir}/locale'
740 mandir='${datarootdir}/man'
741
742 ac_prev=
743 ac_dashdash=
744 for ac_option
745 do
746   # If the previous option needs an argument, assign it.
747   if test -n "$ac_prev"; then
748     eval $ac_prev=\$ac_option
749     ac_prev=
750     continue
751   fi
752
753   case $ac_option in
754   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
755   *)    ac_optarg=yes ;;
756   esac
757
758   # Accept the important Cygnus configure options, so we can diagnose typos.
759
760   case $ac_dashdash$ac_option in
761   --)
762     ac_dashdash=yes ;;
763
764   -bindir | --bindir | --bindi | --bind | --bin | --bi)
765     ac_prev=bindir ;;
766   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
767     bindir=$ac_optarg ;;
768
769   -build | --build | --buil | --bui | --bu)
770     ac_prev=build_alias ;;
771   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772     build_alias=$ac_optarg ;;
773
774   -cache-file | --cache-file | --cache-fil | --cache-fi \
775   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776     ac_prev=cache_file ;;
777   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779     cache_file=$ac_optarg ;;
780
781   --config-cache | -C)
782     cache_file=config.cache ;;
783
784   -datadir | --datadir | --datadi | --datad)
785     ac_prev=datadir ;;
786   -datadir=* | --datadir=* | --datadi=* | --datad=*)
787     datadir=$ac_optarg ;;
788
789   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790   | --dataroo | --dataro | --datar)
791     ac_prev=datarootdir ;;
792   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794     datarootdir=$ac_optarg ;;
795
796   -disable-* | --disable-*)
797     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798     # Reject names that are not valid shell variable names.
799     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
801    { (exit 1); exit 1; }; }
802     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
803     eval enable_$ac_feature=no ;;
804
805   -docdir | --docdir | --docdi | --doc | --do)
806     ac_prev=docdir ;;
807   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
808     docdir=$ac_optarg ;;
809
810   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
811     ac_prev=dvidir ;;
812   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
813     dvidir=$ac_optarg ;;
814
815   -enable-* | --enable-*)
816     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817     # Reject names that are not valid shell variable names.
818     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820    { (exit 1); exit 1; }; }
821     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
822     eval enable_$ac_feature=\$ac_optarg ;;
823
824   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
825   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
826   | --exec | --exe | --ex)
827     ac_prev=exec_prefix ;;
828   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
829   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
830   | --exec=* | --exe=* | --ex=*)
831     exec_prefix=$ac_optarg ;;
832
833   -gas | --gas | --ga | --g)
834     # Obsolete; use --with-gas.
835     with_gas=yes ;;
836
837   -help | --help | --hel | --he | -h)
838     ac_init_help=long ;;
839   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
840     ac_init_help=recursive ;;
841   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
842     ac_init_help=short ;;
843
844   -host | --host | --hos | --ho)
845     ac_prev=host_alias ;;
846   -host=* | --host=* | --hos=* | --ho=*)
847     host_alias=$ac_optarg ;;
848
849   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
850     ac_prev=htmldir ;;
851   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
852   | --ht=*)
853     htmldir=$ac_optarg ;;
854
855   -includedir | --includedir | --includedi | --included | --include \
856   | --includ | --inclu | --incl | --inc)
857     ac_prev=includedir ;;
858   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
859   | --includ=* | --inclu=* | --incl=* | --inc=*)
860     includedir=$ac_optarg ;;
861
862   -infodir | --infodir | --infodi | --infod | --info | --inf)
863     ac_prev=infodir ;;
864   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
865     infodir=$ac_optarg ;;
866
867   -libdir | --libdir | --libdi | --libd)
868     ac_prev=libdir ;;
869   -libdir=* | --libdir=* | --libdi=* | --libd=*)
870     libdir=$ac_optarg ;;
871
872   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
873   | --libexe | --libex | --libe)
874     ac_prev=libexecdir ;;
875   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
876   | --libexe=* | --libex=* | --libe=*)
877     libexecdir=$ac_optarg ;;
878
879   -localedir | --localedir | --localedi | --localed | --locale)
880     ac_prev=localedir ;;
881   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
882     localedir=$ac_optarg ;;
883
884   -localstatedir | --localstatedir | --localstatedi | --localstated \
885   | --localstate | --localstat | --localsta | --localst | --locals)
886     ac_prev=localstatedir ;;
887   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
888   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
889     localstatedir=$ac_optarg ;;
890
891   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
892     ac_prev=mandir ;;
893   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
894     mandir=$ac_optarg ;;
895
896   -nfp | --nfp | --nf)
897     # Obsolete; use --without-fp.
898     with_fp=no ;;
899
900   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
901   | --no-cr | --no-c | -n)
902     no_create=yes ;;
903
904   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
905   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
906     no_recursion=yes ;;
907
908   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
909   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
910   | --oldin | --oldi | --old | --ol | --o)
911     ac_prev=oldincludedir ;;
912   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
913   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
914   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
915     oldincludedir=$ac_optarg ;;
916
917   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
918     ac_prev=prefix ;;
919   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
920     prefix=$ac_optarg ;;
921
922   -program-prefix | --program-prefix | --program-prefi | --program-pref \
923   | --program-pre | --program-pr | --program-p)
924     ac_prev=program_prefix ;;
925   -program-prefix=* | --program-prefix=* | --program-prefi=* \
926   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
927     program_prefix=$ac_optarg ;;
928
929   -program-suffix | --program-suffix | --program-suffi | --program-suff \
930   | --program-suf | --program-su | --program-s)
931     ac_prev=program_suffix ;;
932   -program-suffix=* | --program-suffix=* | --program-suffi=* \
933   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
934     program_suffix=$ac_optarg ;;
935
936   -program-transform-name | --program-transform-name \
937   | --program-transform-nam | --program-transform-na \
938   | --program-transform-n | --program-transform- \
939   | --program-transform | --program-transfor \
940   | --program-transfo | --program-transf \
941   | --program-trans | --program-tran \
942   | --progr-tra | --program-tr | --program-t)
943     ac_prev=program_transform_name ;;
944   -program-transform-name=* | --program-transform-name=* \
945   | --program-transform-nam=* | --program-transform-na=* \
946   | --program-transform-n=* | --program-transform-=* \
947   | --program-transform=* | --program-transfor=* \
948   | --program-transfo=* | --program-transf=* \
949   | --program-trans=* | --program-tran=* \
950   | --progr-tra=* | --program-tr=* | --program-t=*)
951     program_transform_name=$ac_optarg ;;
952
953   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
954     ac_prev=pdfdir ;;
955   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
956     pdfdir=$ac_optarg ;;
957
958   -psdir | --psdir | --psdi | --psd | --ps)
959     ac_prev=psdir ;;
960   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
961     psdir=$ac_optarg ;;
962
963   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
964   | -silent | --silent | --silen | --sile | --sil)
965     silent=yes ;;
966
967   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
968     ac_prev=sbindir ;;
969   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
970   | --sbi=* | --sb=*)
971     sbindir=$ac_optarg ;;
972
973   -sharedstatedir | --sharedstatedir | --sharedstatedi \
974   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
975   | --sharedst | --shareds | --shared | --share | --shar \
976   | --sha | --sh)
977     ac_prev=sharedstatedir ;;
978   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
979   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
980   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
981   | --sha=* | --sh=*)
982     sharedstatedir=$ac_optarg ;;
983
984   -site | --site | --sit)
985     ac_prev=site ;;
986   -site=* | --site=* | --sit=*)
987     site=$ac_optarg ;;
988
989   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
990     ac_prev=srcdir ;;
991   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
992     srcdir=$ac_optarg ;;
993
994   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
995   | --syscon | --sysco | --sysc | --sys | --sy)
996     ac_prev=sysconfdir ;;
997   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
998   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
999     sysconfdir=$ac_optarg ;;
1000
1001   -target | --target | --targe | --targ | --tar | --ta | --t)
1002     ac_prev=target_alias ;;
1003   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1004     target_alias=$ac_optarg ;;
1005
1006   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1007     verbose=yes ;;
1008
1009   -version | --version | --versio | --versi | --vers | -V)
1010     ac_init_version=: ;;
1011
1012   -with-* | --with-*)
1013     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016       { echo "$as_me: error: invalid package name: $ac_package" >&2
1017    { (exit 1); exit 1; }; }
1018     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1019     eval with_$ac_package=\$ac_optarg ;;
1020
1021   -without-* | --without-*)
1022     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025       { echo "$as_me: error: invalid package name: $ac_package" >&2
1026    { (exit 1); exit 1; }; }
1027     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1028     eval with_$ac_package=no ;;
1029
1030   --x)
1031     # Obsolete; use --with-x.
1032     with_x=yes ;;
1033
1034   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1035   | --x-incl | --x-inc | --x-in | --x-i)
1036     ac_prev=x_includes ;;
1037   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1038   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1039     x_includes=$ac_optarg ;;
1040
1041   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1042   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1043     ac_prev=x_libraries ;;
1044   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1045   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1046     x_libraries=$ac_optarg ;;
1047
1048   -*) { echo "$as_me: error: unrecognized option: $ac_option
1049 Try \`$0 --help' for more information." >&2
1050    { (exit 1); exit 1; }; }
1051     ;;
1052
1053   *=*)
1054     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055     # Reject names that are not valid shell variable names.
1056     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1057       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1058    { (exit 1); exit 1; }; }
1059     eval $ac_envvar=\$ac_optarg
1060     export $ac_envvar ;;
1061
1062   *)
1063     # FIXME: should be removed in autoconf 3.0.
1064     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1068     ;;
1069
1070   esac
1071 done
1072
1073 if test -n "$ac_prev"; then
1074   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075   { echo "$as_me: error: missing argument to $ac_option" >&2
1076    { (exit 1); exit 1; }; }
1077 fi
1078
1079 # Be sure to have absolute directory names.
1080 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081                 datadir sysconfdir sharedstatedir localstatedir includedir \
1082                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083                 libdir localedir mandir
1084 do
1085   eval ac_val=\$$ac_var
1086   case $ac_val in
1087     [\\/$]* | ?:[\\/]* )  continue;;
1088     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1089   esac
1090   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1091    { (exit 1); exit 1; }; }
1092 done
1093
1094 # There might be people who depend on the old broken behavior: `$host'
1095 # used to hold the argument of --host etc.
1096 # FIXME: To remove some day.
1097 build=$build_alias
1098 host=$host_alias
1099 target=$target_alias
1100
1101 # FIXME: To remove some day.
1102 if test "x$host_alias" != x; then
1103   if test "x$build_alias" = x; then
1104     cross_compiling=maybe
1105     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1106     If a cross compiler is detected then cross compile mode will be used." >&2
1107   elif test "x$build_alias" != "x$host_alias"; then
1108     cross_compiling=yes
1109   fi
1110 fi
1111
1112 ac_tool_prefix=
1113 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1114
1115 test "$silent" = yes && exec 6>/dev/null
1116
1117
1118 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1119 ac_ls_di=`ls -di .` &&
1120 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1121   { echo "$as_me: error: Working directory cannot be determined" >&2
1122    { (exit 1); exit 1; }; }
1123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1124   { echo "$as_me: error: pwd does not report name of working directory" >&2
1125    { (exit 1); exit 1; }; }
1126
1127
1128 # Find the source files, if location was not specified.
1129 if test -z "$srcdir"; then
1130   ac_srcdir_defaulted=yes
1131   # Try the directory containing this script, then the parent directory.
1132   ac_confdir=`$as_dirname -- "$0" ||
1133 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134          X"$0" : 'X\(//\)[^/]' \| \
1135          X"$0" : 'X\(//\)$' \| \
1136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1137 echo X"$0" |
1138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1139             s//\1/
1140             q
1141           }
1142           /^X\(\/\/\)[^/].*/{
1143             s//\1/
1144             q
1145           }
1146           /^X\(\/\/\)$/{
1147             s//\1/
1148             q
1149           }
1150           /^X\(\/\).*/{
1151             s//\1/
1152             q
1153           }
1154           s/.*/./; q'`
1155   srcdir=$ac_confdir
1156   if test ! -r "$srcdir/$ac_unique_file"; then
1157     srcdir=..
1158   fi
1159 else
1160   ac_srcdir_defaulted=no
1161 fi
1162 if test ! -r "$srcdir/$ac_unique_file"; then
1163   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1164   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1165    { (exit 1); exit 1; }; }
1166 fi
1167 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1168 ac_abs_confdir=`(
1169         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1170    { (exit 1); exit 1; }; }
1171         pwd)`
1172 # When building in place, set srcdir=.
1173 if test "$ac_abs_confdir" = "$ac_pwd"; then
1174   srcdir=.
1175 fi
1176 # Remove unnecessary trailing slashes from srcdir.
1177 # Double slashes in file names in object file debugging info
1178 # mess up M-x gdb in Emacs.
1179 case $srcdir in
1180 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1181 esac
1182 for ac_var in $ac_precious_vars; do
1183   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1184   eval ac_env_${ac_var}_value=\$${ac_var}
1185   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1186   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1187 done
1188
1189 #
1190 # Report the --help message.
1191 #
1192 if test "$ac_init_help" = "long"; then
1193   # Omit some internal or obsolete options to make the list less imposing.
1194   # This message is too long to be a string in the A/UX 3.1 sh.
1195   cat <<_ACEOF
1196 \`configure' configures this package to adapt to many kinds of systems.
1197
1198 Usage: $0 [OPTION]... [VAR=VALUE]...
1199
1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201 VAR=VALUE.  See below for descriptions of some of the useful variables.
1202
1203 Defaults for the options are specified in brackets.
1204
1205 Configuration:
1206   -h, --help              display this help and exit
1207       --help=short        display options specific to this package
1208       --help=recursive    display the short help of all the included packages
1209   -V, --version           display version information and exit
1210   -q, --quiet, --silent   do not print \`checking...' messages
1211       --cache-file=FILE   cache test results in FILE [disabled]
1212   -C, --config-cache      alias for \`--cache-file=config.cache'
1213   -n, --no-create         do not create output files
1214       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1215
1216 Installation directories:
1217   --prefix=PREFIX         install architecture-independent files in PREFIX
1218                           [$ac_default_prefix]
1219   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1220                           [PREFIX]
1221
1222 By default, \`make install' will install all the files in
1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225 for instance \`--prefix=\$HOME'.
1226
1227 For better control, use the options below.
1228
1229 Fine tuning of the installation directories:
1230   --bindir=DIR           user executables [EPREFIX/bin]
1231   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1232   --libexecdir=DIR       program executables [EPREFIX/libexec]
1233   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1234   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1235   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1236   --libdir=DIR           object code libraries [EPREFIX/lib]
1237   --includedir=DIR       C header files [PREFIX/include]
1238   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1239   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1240   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1241   --infodir=DIR          info documentation [DATAROOTDIR/info]
1242   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1243   --mandir=DIR           man documentation [DATAROOTDIR/man]
1244   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1245   --htmldir=DIR          html documentation [DOCDIR]
1246   --dvidir=DIR           dvi documentation [DOCDIR]
1247   --pdfdir=DIR           pdf documentation [DOCDIR]
1248   --psdir=DIR            ps documentation [DOCDIR]
1249 _ACEOF
1250
1251   cat <<\_ACEOF
1252
1253 Program names:
1254   --program-prefix=PREFIX            prepend PREFIX to installed program names
1255   --program-suffix=SUFFIX            append SUFFIX to installed program names
1256   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1257 _ACEOF
1258 fi
1259
1260 if test -n "$ac_init_help"; then
1261
1262   cat <<\_ACEOF
1263
1264 Optional Features:
1265   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1266   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1267   --enable-maintainer-mode  enable make rules and dependencies not useful
1268                           (and sometimes confusing) to the casual installer
1269   --disable-dependency-tracking  speeds up one-time build
1270   --enable-dependency-tracking   do not reject slow dependency extractors
1271
1272 Some influential environment variables:
1273   CC          C compiler command
1274   CFLAGS      C compiler flags
1275   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1276               nonstandard directory <lib dir>
1277   LIBS        libraries to pass to the linker, e.g. -l<library>
1278   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1279               you have headers in a nonstandard directory <include dir>
1280   CPP         C preprocessor
1281   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1282               the first program found out of: `bison -y', `byacc', `yacc'.
1283   YFLAGS      The list of arguments that will be passed by default to $YACC.
1284               This script will default YFLAGS to the empty string to avoid a
1285               default value of `-d' given by some make applications.
1286   PKG_CONFIG  path to pkg-config utility
1287   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1288   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1289
1290 Use these variables to override the choices made by `configure' or to help
1291 it to find libraries and programs with nonstandard names/locations.
1292
1293 _ACEOF
1294 ac_status=$?
1295 fi
1296
1297 if test "$ac_init_help" = "recursive"; then
1298   # If there are subdirs, report their specific --help.
1299   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1300     test -d "$ac_dir" || continue
1301     ac_builddir=.
1302
1303 case "$ac_dir" in
1304 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1305 *)
1306   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1307   # A ".." for each directory in $ac_dir_suffix.
1308   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1309   case $ac_top_builddir_sub in
1310   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1311   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1312   esac ;;
1313 esac
1314 ac_abs_top_builddir=$ac_pwd
1315 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1316 # for backward compatibility:
1317 ac_top_builddir=$ac_top_build_prefix
1318
1319 case $srcdir in
1320   .)  # We are building in place.
1321     ac_srcdir=.
1322     ac_top_srcdir=$ac_top_builddir_sub
1323     ac_abs_top_srcdir=$ac_pwd ;;
1324   [\\/]* | ?:[\\/]* )  # Absolute name.
1325     ac_srcdir=$srcdir$ac_dir_suffix;
1326     ac_top_srcdir=$srcdir
1327     ac_abs_top_srcdir=$srcdir ;;
1328   *) # Relative name.
1329     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1330     ac_top_srcdir=$ac_top_build_prefix$srcdir
1331     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1332 esac
1333 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1334
1335     cd "$ac_dir" || { ac_status=$?; continue; }
1336     # Check for guested configure.
1337     if test -f "$ac_srcdir/configure.gnu"; then
1338       echo &&
1339       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1340     elif test -f "$ac_srcdir/configure"; then
1341       echo &&
1342       $SHELL "$ac_srcdir/configure" --help=recursive
1343     else
1344       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1345     fi || ac_status=$?
1346     cd "$ac_pwd" || { ac_status=$?; break; }
1347   done
1348 fi
1349
1350 test -n "$ac_init_help" && exit $ac_status
1351 if $ac_init_version; then
1352   cat <<\_ACEOF
1353 configure
1354 generated by GNU Autoconf 2.61
1355
1356 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1357 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1358 This configure script is free software; the Free Software Foundation
1359 gives unlimited permission to copy, distribute and modify it.
1360 _ACEOF
1361   exit
1362 fi
1363 cat >config.log <<_ACEOF
1364 This file contains any messages produced by compilers while
1365 running configure, to aid debugging if configure makes a mistake.
1366
1367 It was created by $as_me, which was
1368 generated by GNU Autoconf 2.61.  Invocation command line was
1369
1370   $ $0 $@
1371
1372 _ACEOF
1373 exec 5>>config.log
1374 {
1375 cat <<_ASUNAME
1376 ## --------- ##
1377 ## Platform. ##
1378 ## --------- ##
1379
1380 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1381 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1382 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1383 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1384 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1385
1386 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1387 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1388
1389 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1390 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1391 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1392 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1393 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1394 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1395 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1396
1397 _ASUNAME
1398
1399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 for as_dir in $PATH
1401 do
1402   IFS=$as_save_IFS
1403   test -z "$as_dir" && as_dir=.
1404   echo "PATH: $as_dir"
1405 done
1406 IFS=$as_save_IFS
1407
1408 } >&5
1409
1410 cat >&5 <<_ACEOF
1411
1412
1413 ## ----------- ##
1414 ## Core tests. ##
1415 ## ----------- ##
1416
1417 _ACEOF
1418
1419
1420 # Keep a trace of the command line.
1421 # Strip out --no-create and --no-recursion so they do not pile up.
1422 # Strip out --silent because we don't want to record it for future runs.
1423 # Also quote any args containing shell meta-characters.
1424 # Make two passes to allow for proper duplicate-argument suppression.
1425 ac_configure_args=
1426 ac_configure_args0=
1427 ac_configure_args1=
1428 ac_must_keep_next=false
1429 for ac_pass in 1 2
1430 do
1431   for ac_arg
1432   do
1433     case $ac_arg in
1434     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1435     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1436     | -silent | --silent | --silen | --sile | --sil)
1437       continue ;;
1438     *\'*)
1439       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1440     esac
1441     case $ac_pass in
1442     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1443     2)
1444       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1445       if test $ac_must_keep_next = true; then
1446         ac_must_keep_next=false # Got value, back to normal.
1447       else
1448         case $ac_arg in
1449           *=* | --config-cache | -C | -disable-* | --disable-* \
1450           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1451           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1452           | -with-* | --with-* | -without-* | --without-* | --x)
1453             case "$ac_configure_args0 " in
1454               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1455             esac
1456             ;;
1457           -* ) ac_must_keep_next=true ;;
1458         esac
1459       fi
1460       ac_configure_args="$ac_configure_args '$ac_arg'"
1461       ;;
1462     esac
1463   done
1464 done
1465 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1466 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1467
1468 # When interrupted or exit'd, cleanup temporary files, and complete
1469 # config.log.  We remove comments because anyway the quotes in there
1470 # would cause problems or look ugly.
1471 # WARNING: Use '\'' to represent an apostrophe within the trap.
1472 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1473 trap 'exit_status=$?
1474   # Save into config.log some information that might help in debugging.
1475   {
1476     echo
1477
1478     cat <<\_ASBOX
1479 ## ---------------- ##
1480 ## Cache variables. ##
1481 ## ---------------- ##
1482 _ASBOX
1483     echo
1484     # The following way of writing the cache mishandles newlines in values,
1485 (
1486   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1487     eval ac_val=\$$ac_var
1488     case $ac_val in #(
1489     *${as_nl}*)
1490       case $ac_var in #(
1491       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1492 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1493       esac
1494       case $ac_var in #(
1495       _ | IFS | as_nl) ;; #(
1496       *) $as_unset $ac_var ;;
1497       esac ;;
1498     esac
1499   done
1500   (set) 2>&1 |
1501     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1502     *${as_nl}ac_space=\ *)
1503       sed -n \
1504         "s/'\''/'\''\\\\'\'''\''/g;
1505           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1506       ;; #(
1507     *)
1508       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1509       ;;
1510     esac |
1511     sort
1512 )
1513     echo
1514
1515     cat <<\_ASBOX
1516 ## ----------------- ##
1517 ## Output variables. ##
1518 ## ----------------- ##
1519 _ASBOX
1520     echo
1521     for ac_var in $ac_subst_vars
1522     do
1523       eval ac_val=\$$ac_var
1524       case $ac_val in
1525       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1526       esac
1527       echo "$ac_var='\''$ac_val'\''"
1528     done | sort
1529     echo
1530
1531     if test -n "$ac_subst_files"; then
1532       cat <<\_ASBOX
1533 ## ------------------- ##
1534 ## File substitutions. ##
1535 ## ------------------- ##
1536 _ASBOX
1537       echo
1538       for ac_var in $ac_subst_files
1539       do
1540         eval ac_val=\$$ac_var
1541         case $ac_val in
1542         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1543         esac
1544         echo "$ac_var='\''$ac_val'\''"
1545       done | sort
1546       echo
1547     fi
1548
1549     if test -s confdefs.h; then
1550       cat <<\_ASBOX
1551 ## ----------- ##
1552 ## confdefs.h. ##
1553 ## ----------- ##
1554 _ASBOX
1555       echo
1556       cat confdefs.h
1557       echo
1558     fi
1559     test "$ac_signal" != 0 &&
1560       echo "$as_me: caught signal $ac_signal"
1561     echo "$as_me: exit $exit_status"
1562   } >&5
1563   rm -f core *.core core.conftest.* &&
1564     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1565     exit $exit_status
1566 ' 0
1567 for ac_signal in 1 2 13 15; do
1568   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1569 done
1570 ac_signal=0
1571
1572 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1573 rm -f -r conftest* confdefs.h
1574
1575 # Predefined preprocessor variables.
1576
1577 cat >>confdefs.h <<_ACEOF
1578 #define PACKAGE_NAME "$PACKAGE_NAME"
1579 _ACEOF
1580
1581
1582 cat >>confdefs.h <<_ACEOF
1583 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1584 _ACEOF
1585
1586
1587 cat >>confdefs.h <<_ACEOF
1588 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1589 _ACEOF
1590
1591
1592 cat >>confdefs.h <<_ACEOF
1593 #define PACKAGE_STRING "$PACKAGE_STRING"
1594 _ACEOF
1595
1596
1597 cat >>confdefs.h <<_ACEOF
1598 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1599 _ACEOF
1600
1601
1602 # Let the site file select an alternate cache file if it wants to.
1603 # Prefer explicitly selected file to automatically selected ones.
1604 if test -n "$CONFIG_SITE"; then
1605   set x "$CONFIG_SITE"
1606 elif test "x$prefix" != xNONE; then
1607   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1608 else
1609   set x "$ac_default_prefix/share/config.site" \
1610         "$ac_default_prefix/etc/config.site"
1611 fi
1612 shift
1613 for ac_site_file
1614 do
1615   if test -r "$ac_site_file"; then
1616     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1617 echo "$as_me: loading site script $ac_site_file" >&6;}
1618     sed 's/^/| /' "$ac_site_file" >&5
1619     . "$ac_site_file"
1620   fi
1621 done
1622
1623 if test -r "$cache_file"; then
1624   # Some versions of bash will fail to source /dev/null (special
1625   # files actually), so we avoid doing that.
1626   if test -f "$cache_file"; then
1627     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1628 echo "$as_me: loading cache $cache_file" >&6;}
1629     case $cache_file in
1630       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1631       *)                      . "./$cache_file";;
1632     esac
1633   fi
1634 else
1635   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1636 echo "$as_me: creating cache $cache_file" >&6;}
1637   >$cache_file
1638 fi
1639
1640 # Check that the precious variables saved in the cache have kept the same
1641 # value.
1642 ac_cache_corrupted=false
1643 for ac_var in $ac_precious_vars; do
1644   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1645   eval ac_new_set=\$ac_env_${ac_var}_set
1646   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1647   eval ac_new_val=\$ac_env_${ac_var}_value
1648   case $ac_old_set,$ac_new_set in
1649     set,)
1650       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1651 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1652       ac_cache_corrupted=: ;;
1653     ,set)
1654       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1655 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1656       ac_cache_corrupted=: ;;
1657     ,);;
1658     *)
1659       if test "x$ac_old_val" != "x$ac_new_val"; then
1660         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1661 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1662         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1663 echo "$as_me:   former value:  $ac_old_val" >&2;}
1664         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1665 echo "$as_me:   current value: $ac_new_val" >&2;}
1666         ac_cache_corrupted=:
1667       fi;;
1668   esac
1669   # Pass precious variables to config.status.
1670   if test "$ac_new_set" = set; then
1671     case $ac_new_val in
1672     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1673     *) ac_arg=$ac_var=$ac_new_val ;;
1674     esac
1675     case " $ac_configure_args " in
1676       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1677       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1678     esac
1679   fi
1680 done
1681 if $ac_cache_corrupted; then
1682   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1683 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1684   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1685 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1686    { (exit 1); exit 1; }; }
1687 fi
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705 ac_ext=c
1706 ac_cpp='$CPP $CPPFLAGS'
1707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1710
1711
1712 ac_config_headers="$ac_config_headers config.h"
1713
1714 am__api_version='1.10'
1715
1716 ac_aux_dir=
1717 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1718   if test -f "$ac_dir/install-sh"; then
1719     ac_aux_dir=$ac_dir
1720     ac_install_sh="$ac_aux_dir/install-sh -c"
1721     break
1722   elif test -f "$ac_dir/install.sh"; then
1723     ac_aux_dir=$ac_dir
1724     ac_install_sh="$ac_aux_dir/install.sh -c"
1725     break
1726   elif test -f "$ac_dir/shtool"; then
1727     ac_aux_dir=$ac_dir
1728     ac_install_sh="$ac_aux_dir/shtool install -c"
1729     break
1730   fi
1731 done
1732 if test -z "$ac_aux_dir"; then
1733   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1734 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1735    { (exit 1); exit 1; }; }
1736 fi
1737
1738 # These three variables are undocumented and unsupported,
1739 # and are intended to be withdrawn in a future Autoconf release.
1740 # They can cause serious problems if a builder's source tree is in a directory
1741 # whose full name contains unusual characters.
1742 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1743 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1744 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1745
1746
1747 # Find a good install program.  We prefer a C program (faster),
1748 # so one script is as good as another.  But avoid the broken or
1749 # incompatible versions:
1750 # SysV /etc/install, /usr/sbin/install
1751 # SunOS /usr/etc/install
1752 # IRIX /sbin/install
1753 # AIX /bin/install
1754 # AmigaOS /C/install, which installs bootblocks on floppy discs
1755 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1756 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1757 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1758 # OS/2's system install, which has a completely different semantic
1759 # ./install, which can be erroneously created by make from ./install.sh.
1760 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1761 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1762 if test -z "$INSTALL"; then
1763 if test "${ac_cv_path_install+set}" = set; then
1764   echo $ECHO_N "(cached) $ECHO_C" >&6
1765 else
1766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769   IFS=$as_save_IFS
1770   test -z "$as_dir" && as_dir=.
1771   # Account for people who put trailing slashes in PATH elements.
1772 case $as_dir/ in
1773   ./ | .// | /cC/* | \
1774   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1775   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1776   /usr/ucb/* ) ;;
1777   *)
1778     # OSF1 and SCO ODT 3.0 have their own names for install.
1779     # Don't use installbsd from OSF since it installs stuff as root
1780     # by default.
1781     for ac_prog in ginstall scoinst install; do
1782       for ac_exec_ext in '' $ac_executable_extensions; do
1783         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1784           if test $ac_prog = install &&
1785             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1786             # AIX install.  It has an incompatible calling convention.
1787             :
1788           elif test $ac_prog = install &&
1789             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1790             # program-specific install script used by HP pwplus--don't use.
1791             :
1792           else
1793             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1794             break 3
1795           fi
1796         fi
1797       done
1798     done
1799     ;;
1800 esac
1801 done
1802 IFS=$as_save_IFS
1803
1804
1805 fi
1806   if test "${ac_cv_path_install+set}" = set; then
1807     INSTALL=$ac_cv_path_install
1808   else
1809     # As a last resort, use the slow shell script.  Don't cache a
1810     # value for INSTALL within a source directory, because that will
1811     # break other packages using the cache if that directory is
1812     # removed, or if the value is a relative name.
1813     INSTALL=$ac_install_sh
1814   fi
1815 fi
1816 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1817 echo "${ECHO_T}$INSTALL" >&6; }
1818
1819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1820 # It thinks the first close brace ends the variable substitution.
1821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1822
1823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1824
1825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1826
1827 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1828 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1829 # Just in case
1830 sleep 1
1831 echo timestamp > conftest.file
1832 # Do `set' in a subshell so we don't clobber the current shell's
1833 # arguments.  Must try -L first in case configure is actually a
1834 # symlink; some systems play weird games with the mod time of symlinks
1835 # (eg FreeBSD returns the mod time of the symlink's containing
1836 # directory).
1837 if (
1838    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1839    if test "$*" = "X"; then
1840       # -L didn't work.
1841       set X `ls -t $srcdir/configure conftest.file`
1842    fi
1843    rm -f conftest.file
1844    if test "$*" != "X $srcdir/configure conftest.file" \
1845       && test "$*" != "X conftest.file $srcdir/configure"; then
1846
1847       # If neither matched, then we have a broken ls.  This can happen
1848       # if, for instance, CONFIG_SHELL is bash and it inherits a
1849       # broken ls alias from the environment.  This has actually
1850       # happened.  Such a system could not be considered "sane".
1851       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1852 alias in your environment" >&5
1853 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1854 alias in your environment" >&2;}
1855    { (exit 1); exit 1; }; }
1856    fi
1857
1858    test "$2" = conftest.file
1859    )
1860 then
1861    # Ok.
1862    :
1863 else
1864    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1865 Check your system clock" >&5
1866 echo "$as_me: error: newly created file is older than distributed files!
1867 Check your system clock" >&2;}
1868    { (exit 1); exit 1; }; }
1869 fi
1870 { echo "$as_me:$LINENO: result: yes" >&5
1871 echo "${ECHO_T}yes" >&6; }
1872 test "$program_prefix" != NONE &&
1873   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1874 # Use a double $ so make ignores it.
1875 test "$program_suffix" != NONE &&
1876   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1877 # Double any \ or $.  echo might interpret backslashes.
1878 # By default was `s,x,x', remove it if useless.
1879 cat <<\_ACEOF >conftest.sed
1880 s/[\\$]/&&/g;s/;s,x,x,$//
1881 _ACEOF
1882 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1883 rm -f conftest.sed
1884
1885 # expand $ac_aux_dir to an absolute path
1886 am_aux_dir=`cd $ac_aux_dir && pwd`
1887
1888 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1889 # Use eval to expand $SHELL
1890 if eval "$MISSING --run true"; then
1891   am_missing_run="$MISSING --run "
1892 else
1893   am_missing_run=
1894   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1895 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1896 fi
1897
1898 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1899 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1900 if test -z "$MKDIR_P"; then
1901   if test "${ac_cv_path_mkdir+set}" = set; then
1902   echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1906 do
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_prog in mkdir gmkdir; do
1910          for ac_exec_ext in '' $ac_executable_extensions; do
1911            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1912            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1913              'mkdir (GNU coreutils) '* | \
1914              'mkdir (coreutils) '* | \
1915              'mkdir (fileutils) '4.1*)
1916                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1917                break 3;;
1918            esac
1919          done
1920        done
1921 done
1922 IFS=$as_save_IFS
1923
1924 fi
1925
1926   if test "${ac_cv_path_mkdir+set}" = set; then
1927     MKDIR_P="$ac_cv_path_mkdir -p"
1928   else
1929     # As a last resort, use the slow shell script.  Don't cache a
1930     # value for MKDIR_P within a source directory, because that will
1931     # break other packages using the cache if that directory is
1932     # removed, or if the value is a relative name.
1933     test -d ./--version && rmdir ./--version
1934     MKDIR_P="$ac_install_sh -d"
1935   fi
1936 fi
1937 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1938 echo "${ECHO_T}$MKDIR_P" >&6; }
1939
1940 mkdir_p="$MKDIR_P"
1941 case $mkdir_p in
1942   [\\/$]* | ?:[\\/]*) ;;
1943   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1944 esac
1945
1946 for ac_prog in gawk mawk nawk awk
1947 do
1948   # Extract the first word of "$ac_prog", so it can be a program name with args.
1949 set dummy $ac_prog; ac_word=$2
1950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1952 if test "${ac_cv_prog_AWK+set}" = set; then
1953   echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955   if test -n "$AWK"; then
1956   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1957 else
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961   IFS=$as_save_IFS
1962   test -z "$as_dir" && as_dir=.
1963   for ac_exec_ext in '' $ac_executable_extensions; do
1964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1965     ac_cv_prog_AWK="$ac_prog"
1966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967     break 2
1968   fi
1969 done
1970 done
1971 IFS=$as_save_IFS
1972
1973 fi
1974 fi
1975 AWK=$ac_cv_prog_AWK
1976 if test -n "$AWK"; then
1977   { echo "$as_me:$LINENO: result: $AWK" >&5
1978 echo "${ECHO_T}$AWK" >&6; }
1979 else
1980   { echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6; }
1982 fi
1983
1984
1985   test -n "$AWK" && break
1986 done
1987
1988 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1989 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1990 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1991 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   cat >conftest.make <<\_ACEOF
1995 SHELL = /bin/sh
1996 all:
1997         @echo '@@@%%%=$(MAKE)=@@@%%%'
1998 _ACEOF
1999 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2000 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2001   *@@@%%%=?*=@@@%%%*)
2002     eval ac_cv_prog_make_${ac_make}_set=yes;;
2003   *)
2004     eval ac_cv_prog_make_${ac_make}_set=no;;
2005 esac
2006 rm -f conftest.make
2007 fi
2008 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2009   { echo "$as_me:$LINENO: result: yes" >&5
2010 echo "${ECHO_T}yes" >&6; }
2011   SET_MAKE=
2012 else
2013   { echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6; }
2015   SET_MAKE="MAKE=${MAKE-make}"
2016 fi
2017
2018 rm -rf .tst 2>/dev/null
2019 mkdir .tst 2>/dev/null
2020 if test -d .tst; then
2021   am__leading_dot=.
2022 else
2023   am__leading_dot=_
2024 fi
2025 rmdir .tst 2>/dev/null
2026
2027 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2028   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2029   # is not polluted with repeated "-I."
2030   am__isrc=' -I$(srcdir)'
2031   # test to see if srcdir already configured
2032   if test -f $srcdir/config.status; then
2033     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2034 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2035    { (exit 1); exit 1; }; }
2036   fi
2037 fi
2038
2039 # test whether we have cygpath
2040 if test -z "$CYGPATH_W"; then
2041   if (cygpath --version) >/dev/null 2>/dev/null; then
2042     CYGPATH_W='cygpath -w'
2043   else
2044     CYGPATH_W=echo
2045   fi
2046 fi
2047
2048
2049 # Define the identity of the package.
2050  PACKAGE=gob2
2051  VERSION=2.0.15
2052
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE "$PACKAGE"
2056 _ACEOF
2057
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define VERSION "$VERSION"
2061 _ACEOF
2062
2063 # Some tools Automake needs.
2064
2065 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2066
2067
2068 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2069
2070
2071 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2072
2073
2074 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2075
2076
2077 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2078
2079 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2080
2081 # Installed binaries are usually stripped using `strip' when the user
2082 # run `make install-strip'.  However `strip' might not be the right
2083 # tool to use in cross-compilation environments, therefore Automake
2084 # will honor the `STRIP' environment variable to overrule this program.
2085 if test "$cross_compiling" != no; then
2086   if test -n "$ac_tool_prefix"; then
2087   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2088 set dummy ${ac_tool_prefix}strip; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_prog_STRIP+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test -n "$STRIP"; then
2095   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100   IFS=$as_save_IFS
2101   test -z "$as_dir" && as_dir=.
2102   for ac_exec_ext in '' $ac_executable_extensions; do
2103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106     break 2
2107   fi
2108 done
2109 done
2110 IFS=$as_save_IFS
2111
2112 fi
2113 fi
2114 STRIP=$ac_cv_prog_STRIP
2115 if test -n "$STRIP"; then
2116   { echo "$as_me:$LINENO: result: $STRIP" >&5
2117 echo "${ECHO_T}$STRIP" >&6; }
2118 else
2119   { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2121 fi
2122
2123
2124 fi
2125 if test -z "$ac_cv_prog_STRIP"; then
2126   ac_ct_STRIP=$STRIP
2127   # Extract the first word of "strip", so it can be a program name with args.
2128 set dummy strip; ac_word=$2
2129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   if test -n "$ac_ct_STRIP"; then
2135   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142   for ac_exec_ext in '' $ac_executable_extensions; do
2143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2144     ac_cv_prog_ac_ct_STRIP="strip"
2145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146     break 2
2147   fi
2148 done
2149 done
2150 IFS=$as_save_IFS
2151
2152 fi
2153 fi
2154 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2155 if test -n "$ac_ct_STRIP"; then
2156   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2157 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2158 else
2159   { echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6; }
2161 fi
2162
2163   if test "x$ac_ct_STRIP" = x; then
2164     STRIP=":"
2165   else
2166     case $cross_compiling:$ac_tool_warned in
2167 yes:)
2168 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2169 whose name does not start with the host triplet.  If you think this
2170 configuration is useful to you, please write to autoconf@gnu.org." >&5
2171 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2172 whose name does not start with the host triplet.  If you think this
2173 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2174 ac_tool_warned=yes ;;
2175 esac
2176     STRIP=$ac_ct_STRIP
2177   fi
2178 else
2179   STRIP="$ac_cv_prog_STRIP"
2180 fi
2181
2182 fi
2183 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2184
2185 # We need awk for the "check" target.  The system "awk" is bad on
2186 # some platforms.
2187 # Always define AMTAR for backward compatibility.
2188
2189 AMTAR=${AMTAR-"${am_missing_run}tar"}
2190
2191 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2192
2193
2194
2195
2196
2197 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2198 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2199     # Check whether --enable-maintainer-mode was given.
2200 if test "${enable_maintainer_mode+set}" = set; then
2201   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2202 else
2203   USE_MAINTAINER_MODE=no
2204 fi
2205
2206   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2207 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2208    if test $USE_MAINTAINER_MODE = yes; then
2209   MAINTAINER_MODE_TRUE=
2210   MAINTAINER_MODE_FALSE='#'
2211 else
2212   MAINTAINER_MODE_TRUE='#'
2213   MAINTAINER_MODE_FALSE=
2214 fi
2215
2216   MAINT=$MAINTAINER_MODE_TRUE
2217
2218
2219
2220 GLIB_REQUIRED=2.0.0
2221
2222
2223  if test -f ../NOINST_GOB; then
2224   NOINSTGOB_TRUE=
2225   NOINSTGOB_FALSE='#'
2226 else
2227   NOINSTGOB_TRUE='#'
2228   NOINSTGOB_FALSE=
2229 fi
2230
2231
2232 if test -f ../NOINST_GOB ; then
2233   { echo "$as_me:$LINENO: result: *** NOT Going to install GOB ***" >&5
2234 echo "${ECHO_T}*** NOT Going to install GOB ***" >&6; }
2235   SUBDIRS="src examples"
2236   INSTGOB=""
2237   NOINSTGOB="gob2"
2238 else
2239   SUBDIRS="src examples doc"
2240   INSTGOB="gob2"
2241   NOINSTGOB=""
2242 fi
2243
2244
2245
2246
2247 DEPDIR="${am__leading_dot}deps"
2248
2249 ac_config_commands="$ac_config_commands depfiles"
2250
2251
2252 am_make=${MAKE-make}
2253 cat > confinc << 'END'
2254 am__doit:
2255         @echo done
2256 .PHONY: am__doit
2257 END
2258 # If we don't find an include directive, just comment out the code.
2259 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2260 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2261 am__include="#"
2262 am__quote=
2263 _am_result=none
2264 # First try GNU make style include.
2265 echo "include confinc" > confmf
2266 # We grep out `Entering directory' and `Leaving directory'
2267 # messages which can occur if `w' ends up in MAKEFLAGS.
2268 # In particular we don't look at `^make:' because GNU make might
2269 # be invoked under some other name (usually "gmake"), in which
2270 # case it prints its new name instead of `make'.
2271 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2272    am__include=include
2273    am__quote=
2274    _am_result=GNU
2275 fi
2276 # Now try BSD make style include.
2277 if test "$am__include" = "#"; then
2278    echo '.include "confinc"' > confmf
2279    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2280       am__include=.include
2281       am__quote="\""
2282       _am_result=BSD
2283    fi
2284 fi
2285
2286
2287 { echo "$as_me:$LINENO: result: $_am_result" >&5
2288 echo "${ECHO_T}$_am_result" >&6; }
2289 rm -f confinc confmf
2290
2291 # Check whether --enable-dependency-tracking was given.
2292 if test "${enable_dependency_tracking+set}" = set; then
2293   enableval=$enable_dependency_tracking;
2294 fi
2295
2296 if test "x$enable_dependency_tracking" != xno; then
2297   am_depcomp="$ac_aux_dir/depcomp"
2298   AMDEPBACKSLASH='\'
2299 fi
2300  if test "x$enable_dependency_tracking" != xno; then
2301   AMDEP_TRUE=
2302   AMDEP_FALSE='#'
2303 else
2304   AMDEP_TRUE='#'
2305   AMDEP_FALSE=
2306 fi
2307
2308
2309 ac_ext=c
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 if test -n "$ac_tool_prefix"; then
2315   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   if test -n "$CC"; then
2323   ac_cv_prog_CC="$CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330   for ac_exec_ext in '' $ac_executable_extensions; do
2331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337 done
2338 IFS=$as_save_IFS
2339
2340 fi
2341 fi
2342 CC=$ac_cv_prog_CC
2343 if test -n "$CC"; then
2344   { echo "$as_me:$LINENO: result: $CC" >&5
2345 echo "${ECHO_T}$CC" >&6; }
2346 else
2347   { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2349 fi
2350
2351
2352 fi
2353 if test -z "$ac_cv_prog_CC"; then
2354   ac_ct_CC=$CC
2355   # Extract the first word of "gcc", so it can be a program name with args.
2356 set dummy gcc; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   if test -n "$ac_ct_CC"; then
2363   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368   IFS=$as_save_IFS
2369   test -z "$as_dir" && as_dir=.
2370   for ac_exec_ext in '' $ac_executable_extensions; do
2371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372     ac_cv_prog_ac_ct_CC="gcc"
2373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374     break 2
2375   fi
2376 done
2377 done
2378 IFS=$as_save_IFS
2379
2380 fi
2381 fi
2382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2383 if test -n "$ac_ct_CC"; then
2384   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2385 echo "${ECHO_T}$ac_ct_CC" >&6; }
2386 else
2387   { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2389 fi
2390
2391   if test "x$ac_ct_CC" = x; then
2392     CC=""
2393   else
2394     case $cross_compiling:$ac_tool_warned in
2395 yes:)
2396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet.  If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&5
2399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet.  If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402 ac_tool_warned=yes ;;
2403 esac
2404     CC=$ac_ct_CC
2405   fi
2406 else
2407   CC="$ac_cv_prog_CC"
2408 fi
2409
2410 if test -z "$CC"; then
2411           if test -n "$ac_tool_prefix"; then
2412     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}cc; ac_word=$2
2414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   if test -n "$CC"; then
2420   ac_cv_prog_CC="$CC" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425   IFS=$as_save_IFS
2426   test -z "$as_dir" && as_dir=.
2427   for ac_exec_ext in '' $ac_executable_extensions; do
2428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429     ac_cv_prog_CC="${ac_tool_prefix}cc"
2430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431     break 2
2432   fi
2433 done
2434 done
2435 IFS=$as_save_IFS
2436
2437 fi
2438 fi
2439 CC=$ac_cv_prog_CC
2440 if test -n "$CC"; then
2441   { echo "$as_me:$LINENO: result: $CC" >&5
2442 echo "${ECHO_T}$CC" >&6; }
2443 else
2444   { echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6; }
2446 fi
2447
2448
2449   fi
2450 fi
2451 if test -z "$CC"; then
2452   # Extract the first word of "cc", so it can be a program name with args.
2453 set dummy cc; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_CC+set}" = set; then
2457   echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459   if test -n "$CC"; then
2460   ac_cv_prog_CC="$CC" # Let the user override the test.
2461 else
2462   ac_prog_rejected=no
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2471        ac_prog_rejected=yes
2472        continue
2473      fi
2474     ac_cv_prog_CC="cc"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 if test $ac_prog_rejected = yes; then
2483   # We found a bogon in the path, so make sure we never use it.
2484   set dummy $ac_cv_prog_CC
2485   shift
2486   if test $# != 0; then
2487     # We chose a different compiler from the bogus one.
2488     # However, it has the same basename, so the bogon will be chosen
2489     # first if we set CC to just the basename; use the full file name.
2490     shift
2491     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2492   fi
2493 fi
2494 fi
2495 fi
2496 CC=$ac_cv_prog_CC
2497 if test -n "$CC"; then
2498   { echo "$as_me:$LINENO: result: $CC" >&5
2499 echo "${ECHO_T}$CC" >&6; }
2500 else
2501   { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2503 fi
2504
2505
2506 fi
2507 if test -z "$CC"; then
2508   if test -n "$ac_tool_prefix"; then
2509   for ac_prog in cl.exe
2510   do
2511     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516   echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518   if test -n "$CC"; then
2519   ac_cv_prog_CC="$CC" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524   IFS=$as_save_IFS
2525   test -z "$as_dir" && as_dir=.
2526   for ac_exec_ext in '' $ac_executable_extensions; do
2527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530     break 2
2531   fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 fi
2537 fi
2538 CC=$ac_cv_prog_CC
2539 if test -n "$CC"; then
2540   { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2542 else
2543   { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2545 fi
2546
2547
2548     test -n "$CC" && break
2549   done
2550 fi
2551 if test -z "$CC"; then
2552   ac_ct_CC=$CC
2553   for ac_prog in cl.exe
2554 do
2555   # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   if test -n "$ac_ct_CC"; then
2563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568   IFS=$as_save_IFS
2569   test -z "$as_dir" && as_dir=.
2570   for ac_exec_ext in '' $ac_executable_extensions; do
2571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572     ac_cv_prog_ac_ct_CC="$ac_prog"
2573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574     break 2
2575   fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583 if test -n "$ac_ct_CC"; then
2584   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2585 echo "${ECHO_T}$ac_ct_CC" >&6; }
2586 else
2587   { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2589 fi
2590
2591
2592   test -n "$ac_ct_CC" && break
2593 done
2594
2595   if test "x$ac_ct_CC" = x; then
2596     CC=""
2597   else
2598     case $cross_compiling:$ac_tool_warned in
2599 yes:)
2600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet.  If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&5
2603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet.  If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2606 ac_tool_warned=yes ;;
2607 esac
2608     CC=$ac_ct_CC
2609   fi
2610 fi
2611
2612 fi
2613
2614
2615 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: no acceptable C compiler found in \$PATH
2618 See \`config.log' for more details." >&2;}
2619    { (exit 1); exit 1; }; }
2620
2621 # Provide some information about the compiler.
2622 echo "$as_me:$LINENO: checking for C compiler version" >&5
2623 ac_compiler=`set X $ac_compile; echo $2`
2624 { (ac_try="$ac_compiler --version >&5"
2625 case "(($ac_try" in
2626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627   *) ac_try_echo=$ac_try;;
2628 esac
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630   (eval "$ac_compiler --version >&5") 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }
2634 { (ac_try="$ac_compiler -v >&5"
2635 case "(($ac_try" in
2636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637   *) ac_try_echo=$ac_try;;
2638 esac
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640   (eval "$ac_compiler -v >&5") 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); }
2644 { (ac_try="$ac_compiler -V >&5"
2645 case "(($ac_try" in
2646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647   *) ac_try_echo=$ac_try;;
2648 esac
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650   (eval "$ac_compiler -V >&5") 2>&5
2651   ac_status=$?
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); }
2654
2655 cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h.  */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h.  */
2661
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 ac_clean_files_save=$ac_clean_files
2671 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2672 # Try to create an executable without -o first, disregard a.out.
2673 # It will help us diagnose broken compilers, and finding out an intuition
2674 # of exeext.
2675 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2676 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2677 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2678 #
2679 # List of possible output files, starting from the most likely.
2680 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2681 # only as a last resort.  b.out is created by i960 compilers.
2682 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2683 #
2684 # The IRIX 6 linker writes into existing files which may not be
2685 # executable, retaining their permissions.  Remove them first so a
2686 # subsequent execution test works.
2687 ac_rmfiles=
2688 for ac_file in $ac_files
2689 do
2690   case $ac_file in
2691     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2692     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2693   esac
2694 done
2695 rm -f $ac_rmfiles
2696
2697 if { (ac_try="$ac_link_default"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_link_default") 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; then
2707   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2708 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2709 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2710 # so that the user can short-circuit this test for compilers unknown to
2711 # Autoconf.
2712 for ac_file in $ac_files ''
2713 do
2714   test -f "$ac_file" || continue
2715   case $ac_file in
2716     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2717         ;;
2718     [ab].out )
2719         # We found the default executable, but exeext='' is most
2720         # certainly right.
2721         break;;
2722     *.* )
2723         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2724         then :; else
2725            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2726         fi
2727         # We set ac_cv_exeext here because the later test for it is not
2728         # safe: cross compilers may not add the suffix if given an `-o'
2729         # argument, so we may need to know it at that point already.
2730         # Even if this section looks crufty: it has the advantage of
2731         # actually working.
2732         break;;
2733     * )
2734         break;;
2735   esac
2736 done
2737 test "$ac_cv_exeext" = no && ac_cv_exeext=
2738
2739 else
2740   ac_file=''
2741 fi
2742
2743 { echo "$as_me:$LINENO: result: $ac_file" >&5
2744 echo "${ECHO_T}$ac_file" >&6; }
2745 if test -z "$ac_file"; then
2746   echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: C compiler cannot create executables
2752 See \`config.log' for more details." >&2;}
2753    { (exit 77); exit 77; }; }
2754 fi
2755
2756 ac_exeext=$ac_cv_exeext
2757
2758 # Check that the compiler produces executables we can run.  If not, either
2759 # the compiler is broken, or we cross compile.
2760 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2761 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2762 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2763 # If not cross compiling, check that we can run a simple program.
2764 if test "$cross_compiling" != yes; then
2765   if { ac_try='./$ac_file'
2766   { (case "(($ac_try" in
2767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768   *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771   (eval "$ac_try") 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; }; then
2775     cross_compiling=no
2776   else
2777     if test "$cross_compiling" = maybe; then
2778         cross_compiling=yes
2779     else
2780         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2781 If you meant to cross compile, use \`--host'.
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: cannot run C compiled programs.
2784 If you meant to cross compile, use \`--host'.
2785 See \`config.log' for more details." >&2;}
2786    { (exit 1); exit 1; }; }
2787     fi
2788   fi
2789 fi
2790 { echo "$as_me:$LINENO: result: yes" >&5
2791 echo "${ECHO_T}yes" >&6; }
2792
2793 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2794 ac_clean_files=$ac_clean_files_save
2795 # Check that the compiler produces executables we can run.  If not, either
2796 # the compiler is broken, or we cross compile.
2797 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2798 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2799 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2800 echo "${ECHO_T}$cross_compiling" >&6; }
2801
2802 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2803 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2804 if { (ac_try="$ac_link"
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_link") 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; then
2814   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2815 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2816 # work properly (i.e., refer to `conftest.exe'), while it won't with
2817 # `rm'.
2818 for ac_file in conftest.exe conftest conftest.*; do
2819   test -f "$ac_file" || continue
2820   case $ac_file in
2821     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2822     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823           break;;
2824     * ) break;;
2825   esac
2826 done
2827 else
2828   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2831 See \`config.log' for more details." >&2;}
2832    { (exit 1); exit 1; }; }
2833 fi
2834
2835 rm -f conftest$ac_cv_exeext
2836 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2837 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2838
2839 rm -f conftest.$ac_ext
2840 EXEEXT=$ac_cv_exeext
2841 ac_exeext=$EXEEXT
2842 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2843 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2844 if test "${ac_cv_objext+set}" = set; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853
2854 int
2855 main ()
2856 {
2857
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 rm -f conftest.o conftest.obj
2863 if { (ac_try="$ac_compile"
2864 case "(($ac_try" in
2865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866   *) ac_try_echo=$ac_try;;
2867 esac
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869   (eval "$ac_compile") 2>&5
2870   ac_status=$?
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); }; then
2873   for ac_file in conftest.o conftest.obj conftest.*; do
2874   test -f "$ac_file" || continue;
2875   case $ac_file in
2876     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2877     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2878        break;;
2879   esac
2880 done
2881 else
2882   echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2884
2885 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2886 See \`config.log' for more details." >&5
2887 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2888 See \`config.log' for more details." >&2;}
2889    { (exit 1); exit 1; }; }
2890 fi
2891
2892 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2893 fi
2894 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2895 echo "${ECHO_T}$ac_cv_objext" >&6; }
2896 OBJEXT=$ac_cv_objext
2897 ac_objext=$OBJEXT
2898 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909
2910 int
2911 main ()
2912 {
2913 #ifndef __GNUC__
2914        choke me
2915 #endif
2916
2917   ;
2918   return 0;
2919 }
2920 _ACEOF
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2923 case "(($ac_try" in
2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925   *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928   (eval "$ac_compile") 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } && {
2935          test -z "$ac_c_werror_flag" ||
2936          test ! -s conftest.err
2937        } && test -s conftest.$ac_objext; then
2938   ac_compiler_gnu=yes
2939 else
2940   echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943         ac_compiler_gnu=no
2944 fi
2945
2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2948
2949 fi
2950 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2951 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2952 GCC=`test $ac_compiler_gnu = yes && echo yes`
2953 ac_test_CFLAGS=${CFLAGS+set}
2954 ac_save_CFLAGS=$CFLAGS
2955 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2956 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_cc_g+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960   ac_save_c_werror_flag=$ac_c_werror_flag
2961    ac_c_werror_flag=yes
2962    ac_cv_prog_cc_g=no
2963    CFLAGS="-g"
2964    cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970
2971 int
2972 main ()
2973 {
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_compile") 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } && {
2993          test -z "$ac_c_werror_flag" ||
2994          test ! -s conftest.err
2995        } && test -s conftest.$ac_objext; then
2996   ac_cv_prog_cc_g=yes
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001         CFLAGS=""
3002       cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_compile") 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } && {
3031          test -z "$ac_c_werror_flag" ||
3032          test ! -s conftest.err
3033        } && test -s conftest.$ac_objext; then
3034   :
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039         ac_c_werror_flag=$ac_save_c_werror_flag
3040          CFLAGS="-g"
3041          cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047
3048 int
3049 main ()
3050 {
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_compile") 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } && {
3070          test -z "$ac_c_werror_flag" ||
3071          test ! -s conftest.err
3072        } && test -s conftest.$ac_objext; then
3073   ac_cv_prog_cc_g=yes
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078
3079 fi
3080
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 fi
3083
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 fi
3086
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088    ac_c_werror_flag=$ac_save_c_werror_flag
3089 fi
3090 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3091 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3092 if test "$ac_test_CFLAGS" = set; then
3093   CFLAGS=$ac_save_CFLAGS
3094 elif test $ac_cv_prog_cc_g = yes; then
3095   if test "$GCC" = yes; then
3096     CFLAGS="-g -O2"
3097   else
3098     CFLAGS="-g"
3099   fi
3100 else
3101   if test "$GCC" = yes; then
3102     CFLAGS="-O2"
3103   else
3104     CFLAGS=
3105   fi
3106 fi
3107 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3108 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3109 if test "${ac_cv_prog_cc_c89+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   ac_cv_prog_cc_c89=no
3113 ac_save_CC=$CC
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120 #include <stdarg.h>
3121 #include <stdio.h>
3122 #include <sys/types.h>
3123 #include <sys/stat.h>
3124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3125 struct buf { int x; };
3126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3127 static char *e (p, i)
3128      char **p;
3129      int i;
3130 {
3131   return p[i];
3132 }
3133 static char *f (char * (*g) (char **, int), char **p, ...)
3134 {
3135   char *s;
3136   va_list v;
3137   va_start (v,p);
3138   s = g (p, va_arg (v,int));
3139   va_end (v);
3140   return s;
3141 }
3142
3143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3144    function prototypes and stuff, but not '\xHH' hex character constants.
3145    These don't provoke an error unfortunately, instead are silently treated
3146    as 'x'.  The following induces an error, until -std is added to get
3147    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3148    array size at least.  It's necessary to write '\x00'==0 to get something
3149    that's true only with -std.  */
3150 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3151
3152 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3153    inside strings and character constants.  */
3154 #define FOO(x) 'x'
3155 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3156
3157 int test (int i, double x);
3158 struct s1 {int (*f) (int a);};
3159 struct s2 {int (*f) (double a);};
3160 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3161 int argc;
3162 char **argv;
3163 int
3164 main ()
3165 {
3166 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3172         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3173 do
3174   CC="$ac_save_CC $ac_arg"
3175   rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } && {
3189          test -z "$ac_c_werror_flag" ||
3190          test ! -s conftest.err
3191        } && test -s conftest.$ac_objext; then
3192   ac_cv_prog_cc_c89=$ac_arg
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext
3201   test "x$ac_cv_prog_cc_c89" != "xno" && break
3202 done
3203 rm -f conftest.$ac_ext
3204 CC=$ac_save_CC
3205
3206 fi
3207 # AC_CACHE_VAL
3208 case "x$ac_cv_prog_cc_c89" in
3209   x)
3210     { echo "$as_me:$LINENO: result: none needed" >&5
3211 echo "${ECHO_T}none needed" >&6; } ;;
3212   xno)
3213     { echo "$as_me:$LINENO: result: unsupported" >&5
3214 echo "${ECHO_T}unsupported" >&6; } ;;
3215   *)
3216     CC="$CC $ac_cv_prog_cc_c89"
3217     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3218 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3219 esac
3220
3221
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
3228 depcc="$CC"   am_compiler_list=
3229
3230 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3231 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3232 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3233   echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3236   # We make a subdir and do the tests there.  Otherwise we can end up
3237   # making bogus files that we don't know about and never remove.  For
3238   # instance it was reported that on HP-UX the gcc test will end up
3239   # making a dummy file named `D' -- because `-MD' means `put the output
3240   # in D'.
3241   mkdir conftest.dir
3242   # Copy depcomp to subdir because otherwise we won't find it if we're
3243   # using a relative directory.
3244   cp "$am_depcomp" conftest.dir
3245   cd conftest.dir
3246   # We will build objects and dependencies in a subdirectory because
3247   # it helps to detect inapplicable dependency modes.  For instance
3248   # both Tru64's cc and ICC support -MD to output dependencies as a
3249   # side effect of compilation, but ICC will put the dependencies in
3250   # the current directory while Tru64 will put them in the object
3251   # directory.
3252   mkdir sub
3253
3254   am_cv_CC_dependencies_compiler_type=none
3255   if test "$am_compiler_list" = ""; then
3256      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3257   fi
3258   for depmode in $am_compiler_list; do
3259     # Setup a source with many dependencies, because some compilers
3260     # like to wrap large dependency lists on column 80 (with \), and
3261     # we should not choose a depcomp mode which is confused by this.
3262     #
3263     # We need to recreate these files for each test, as the compiler may
3264     # overwrite some of them when testing with obscure command lines.
3265     # This happens at least with the AIX C compiler.
3266     : > sub/conftest.c
3267     for i in 1 2 3 4 5 6; do
3268       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3269       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3270       # Solaris 8's {/usr,}/bin/sh.
3271       touch sub/conftst$i.h
3272     done
3273     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3274
3275     case $depmode in
3276     nosideeffect)
3277       # after this tag, mechanisms are not by side-effect, so they'll
3278       # only be used when explicitly requested
3279       if test "x$enable_dependency_tracking" = xyes; then
3280         continue
3281       else
3282         break
3283       fi
3284       ;;
3285     none) break ;;
3286     esac
3287     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3288     # mode.  It turns out that the SunPro C++ compiler does not properly
3289     # handle `-M -o', and we need to detect this.
3290     if depmode=$depmode \
3291        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3292        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3293        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3294          >/dev/null 2>conftest.err &&
3295        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3296        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3297        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3298        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3299       # icc doesn't choke on unknown options, it will just issue warnings
3300       # or remarks (even with -Werror).  So we grep stderr for any message
3301       # that says an option was ignored or not supported.
3302       # When given -MP, icc 7.0 and 7.1 complain thusly:
3303       #   icc: Command line warning: ignoring option '-M'; no argument required
3304       # The diagnosis changed in icc 8.0:
3305       #   icc: Command line remark: option '-MP' not supported
3306       if (grep 'ignoring option' conftest.err ||
3307           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3308         am_cv_CC_dependencies_compiler_type=$depmode
3309         break
3310       fi
3311     fi
3312   done
3313
3314   cd ..
3315   rm -rf conftest.dir
3316 else
3317   am_cv_CC_dependencies_compiler_type=none
3318 fi
3319
3320 fi
3321 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3322 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3323 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3324
3325  if
3326   test "x$enable_dependency_tracking" != xno \
3327   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3328   am__fastdepCC_TRUE=
3329   am__fastdepCC_FALSE='#'
3330 else
3331   am__fastdepCC_TRUE='#'
3332   am__fastdepCC_FALSE=
3333 fi
3334
3335
3336
3337 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3338 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3339 if test "${ac_cv_search_strerror+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   ac_func_search_save_LIBS=$LIBS
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h.  */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h.  */
3349
3350 /* Override any GCC internal prototype to avoid an error.
3351    Use char because int might match the return type of a GCC
3352    builtin and then its argument prototype would still apply.  */
3353 #ifdef __cplusplus
3354 extern "C"
3355 #endif
3356 char strerror ();
3357 int
3358 main ()
3359 {
3360 return strerror ();
3361   ;
3362   return 0;
3363 }
3364 _ACEOF
3365 for ac_lib in '' cposix; do
3366   if test -z "$ac_lib"; then
3367     ac_res="none required"
3368   else
3369     ac_res=-l$ac_lib
3370     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3371   fi
3372   rm -f conftest.$ac_objext conftest$ac_exeext
3373 if { (ac_try="$ac_link"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379   (eval "$ac_link") 2>conftest.er1
3380   ac_status=$?
3381   grep -v '^ *+' conftest.er1 >conftest.err
3382   rm -f conftest.er1
3383   cat conftest.err >&5
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); } && {
3386          test -z "$ac_c_werror_flag" ||
3387          test ! -s conftest.err
3388        } && test -s conftest$ac_exeext &&
3389        $as_test_x conftest$ac_exeext; then
3390   ac_cv_search_strerror=$ac_res
3391 else
3392   echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395
3396 fi
3397
3398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3399       conftest$ac_exeext
3400   if test "${ac_cv_search_strerror+set}" = set; then
3401   break
3402 fi
3403 done
3404 if test "${ac_cv_search_strerror+set}" = set; then
3405   :
3406 else
3407   ac_cv_search_strerror=no
3408 fi
3409 rm conftest.$ac_ext
3410 LIBS=$ac_func_search_save_LIBS
3411 fi
3412 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3413 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3414 ac_res=$ac_cv_search_strerror
3415 if test "$ac_res" != no; then
3416   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3417
3418 fi
3419
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 if test -n "$ac_tool_prefix"; then
3426   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3427 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3430 if test "${ac_cv_prog_CC+set}" = set; then
3431   echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433   if test -n "$CC"; then
3434   ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441   for ac_exec_ext in '' $ac_executable_extensions; do
3442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448 done
3449 IFS=$as_save_IFS
3450
3451 fi
3452 fi
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455   { echo "$as_me:$LINENO: result: $CC" >&5
3456 echo "${ECHO_T}$CC" >&6; }
3457 else
3458   { echo "$as_me:$LINENO: result: no" >&5
3459 echo "${ECHO_T}no" >&6; }
3460 fi
3461
3462
3463 fi
3464 if test -z "$ac_cv_prog_CC"; then
3465   ac_ct_CC=$CC
3466   # Extract the first word of "gcc", so it can be a program name with args.
3467 set dummy gcc; ac_word=$2
3468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3471   echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473   if test -n "$ac_ct_CC"; then
3474   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483     ac_cv_prog_ac_ct_CC="gcc"
3484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi
3492 fi
3493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3494 if test -n "$ac_ct_CC"; then
3495   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3496 echo "${ECHO_T}$ac_ct_CC" >&6; }
3497 else
3498   { echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6; }
3500 fi
3501
3502   if test "x$ac_ct_CC" = x; then
3503     CC=""
3504   else
3505     case $cross_compiling:$ac_tool_warned in
3506 yes:)
3507 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3508 whose name does not start with the host triplet.  If you think this
3509 configuration is useful to you, please write to autoconf@gnu.org." >&5
3510 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3511 whose name does not start with the host triplet.  If you think this
3512 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3513 ac_tool_warned=yes ;;
3514 esac
3515     CC=$ac_ct_CC
3516   fi
3517 else
3518   CC="$ac_cv_prog_CC"
3519 fi
3520
3521 if test -z "$CC"; then
3522           if test -n "$ac_tool_prefix"; then
3523     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3524 set dummy ${ac_tool_prefix}cc; ac_word=$2
3525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3527 if test "${ac_cv_prog_CC+set}" = set; then
3528   echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530   if test -n "$CC"; then
3531   ac_cv_prog_CC="$CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538   for ac_exec_ext in '' $ac_executable_extensions; do
3539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540     ac_cv_prog_CC="${ac_tool_prefix}cc"
3541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545 done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 CC=$ac_cv_prog_CC
3551 if test -n "$CC"; then
3552   { echo "$as_me:$LINENO: result: $CC" >&5
3553 echo "${ECHO_T}$CC" >&6; }
3554 else
3555   { echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6; }
3557 fi
3558
3559
3560   fi
3561 fi
3562 if test -z "$CC"; then
3563   # Extract the first word of "cc", so it can be a program name with args.
3564 set dummy cc; ac_word=$2
3565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3567 if test "${ac_cv_prog_CC+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   if test -n "$CC"; then
3571   ac_cv_prog_CC="$CC" # Let the user override the test.
3572 else
3573   ac_prog_rejected=no
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577   IFS=$as_save_IFS
3578   test -z "$as_dir" && as_dir=.
3579   for ac_exec_ext in '' $ac_executable_extensions; do
3580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3582        ac_prog_rejected=yes
3583        continue
3584      fi
3585     ac_cv_prog_CC="cc"
3586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587     break 2
3588   fi
3589 done
3590 done
3591 IFS=$as_save_IFS
3592
3593 if test $ac_prog_rejected = yes; then
3594   # We found a bogon in the path, so make sure we never use it.
3595   set dummy $ac_cv_prog_CC
3596   shift
3597   if test $# != 0; then
3598     # We chose a different compiler from the bogus one.
3599     # However, it has the same basename, so the bogon will be chosen
3600     # first if we set CC to just the basename; use the full file name.
3601     shift
3602     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3603   fi
3604 fi
3605 fi
3606 fi
3607 CC=$ac_cv_prog_CC
3608 if test -n "$CC"; then
3609   { echo "$as_me:$LINENO: result: $CC" >&5
3610 echo "${ECHO_T}$CC" >&6; }
3611 else
3612   { echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6; }
3614 fi
3615
3616
3617 fi
3618 if test -z "$CC"; then
3619   if test -n "$ac_tool_prefix"; then
3620   for ac_prog in cl.exe
3621   do
3622     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3626 if test "${ac_cv_prog_CC+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   if test -n "$CC"; then
3630   ac_cv_prog_CC="$CC" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637   for ac_exec_ext in '' $ac_executable_extensions; do
3638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641     break 2
3642   fi
3643 done
3644 done
3645 IFS=$as_save_IFS
3646
3647 fi
3648 fi
3649 CC=$ac_cv_prog_CC
3650 if test -n "$CC"; then
3651   { echo "$as_me:$LINENO: result: $CC" >&5
3652 echo "${ECHO_T}$CC" >&6; }
3653 else
3654   { echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6; }
3656 fi
3657
3658
3659     test -n "$CC" && break
3660   done
3661 fi
3662 if test -z "$CC"; then
3663   ac_ct_CC=$CC
3664   for ac_prog in cl.exe
3665 do
3666   # Extract the first word of "$ac_prog", so it can be a program name with args.
3667 set dummy $ac_prog; ac_word=$2
3668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673   if test -n "$ac_ct_CC"; then
3674   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681   for ac_exec_ext in '' $ac_executable_extensions; do
3682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683     ac_cv_prog_ac_ct_CC="$ac_prog"
3684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685     break 2
3686   fi
3687 done
3688 done
3689 IFS=$as_save_IFS
3690
3691 fi
3692 fi
3693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3694 if test -n "$ac_ct_CC"; then
3695   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3696 echo "${ECHO_T}$ac_ct_CC" >&6; }
3697 else
3698   { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3700 fi
3701
3702
3703   test -n "$ac_ct_CC" && break
3704 done
3705
3706   if test "x$ac_ct_CC" = x; then
3707     CC=""
3708   else
3709     case $cross_compiling:$ac_tool_warned in
3710 yes:)
3711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3712 whose name does not start with the host triplet.  If you think this
3713 configuration is useful to you, please write to autoconf@gnu.org." >&5
3714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3715 whose name does not start with the host triplet.  If you think this
3716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3717 ac_tool_warned=yes ;;
3718 esac
3719     CC=$ac_ct_CC
3720   fi
3721 fi
3722
3723 fi
3724
3725
3726 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3727 See \`config.log' for more details." >&5
3728 echo "$as_me: error: no acceptable C compiler found in \$PATH
3729 See \`config.log' for more details." >&2;}
3730    { (exit 1); exit 1; }; }
3731
3732 # Provide some information about the compiler.
3733 echo "$as_me:$LINENO: checking for C compiler version" >&5
3734 ac_compiler=`set X $ac_compile; echo $2`
3735 { (ac_try="$ac_compiler --version >&5"
3736 case "(($ac_try" in
3737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738   *) ac_try_echo=$ac_try;;
3739 esac
3740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3741   (eval "$ac_compiler --version >&5") 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); }
3745 { (ac_try="$ac_compiler -v >&5"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751   (eval "$ac_compiler -v >&5") 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }
3755 { (ac_try="$ac_compiler -V >&5"
3756 case "(($ac_try" in
3757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758   *) ac_try_echo=$ac_try;;
3759 esac
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761   (eval "$ac_compiler -V >&5") 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }
3765
3766 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3767 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3768 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777
3778 int
3779 main ()
3780 {
3781 #ifndef __GNUC__
3782        choke me
3783 #endif
3784
3785   ;
3786   return 0;
3787 }
3788 _ACEOF
3789 rm -f conftest.$ac_objext
3790 if { (ac_try="$ac_compile"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796   (eval "$ac_compile") 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } && {
3803          test -z "$ac_c_werror_flag" ||
3804          test ! -s conftest.err
3805        } && test -s conftest.$ac_objext; then
3806   ac_compiler_gnu=yes
3807 else
3808   echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811         ac_compiler_gnu=no
3812 fi
3813
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3816
3817 fi
3818 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3819 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3820 GCC=`test $ac_compiler_gnu = yes && echo yes`
3821 ac_test_CFLAGS=${CFLAGS+set}
3822 ac_save_CFLAGS=$CFLAGS
3823 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3824 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3825 if test "${ac_cv_prog_cc_g+set}" = set; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   ac_save_c_werror_flag=$ac_c_werror_flag
3829    ac_c_werror_flag=yes
3830    ac_cv_prog_cc_g=no
3831    CFLAGS="-g"
3832    cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838
3839 int
3840 main ()
3841 {
3842
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 rm -f conftest.$ac_objext
3848 if { (ac_try="$ac_compile"
3849 case "(($ac_try" in
3850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851   *) ac_try_echo=$ac_try;;
3852 esac
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854   (eval "$ac_compile") 2>conftest.er1
3855   ac_status=$?
3856   grep -v '^ *+' conftest.er1 >conftest.err
3857   rm -f conftest.er1
3858   cat conftest.err >&5
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); } && {
3861          test -z "$ac_c_werror_flag" ||
3862          test ! -s conftest.err
3863        } && test -s conftest.$ac_objext; then
3864   ac_cv_prog_cc_g=yes
3865 else
3866   echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869         CFLAGS=""
3870       cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h.  */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h.  */
3876
3877 int
3878 main ()
3879 {
3880
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3887 case "(($ac_try" in
3888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889   *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892   (eval "$ac_compile") 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } && {
3899          test -z "$ac_c_werror_flag" ||
3900          test ! -s conftest.err
3901        } && test -s conftest.$ac_objext; then
3902   :
3903 else
3904   echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907         ac_c_werror_flag=$ac_save_c_werror_flag
3908          CFLAGS="-g"
3909          cat >conftest.$ac_ext <<_ACEOF
3910 /* confdefs.h.  */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h.  */
3915
3916 int
3917 main ()
3918 {
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_compile") 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } && {
3938          test -z "$ac_c_werror_flag" ||
3939          test ! -s conftest.err
3940        } && test -s conftest.$ac_objext; then
3941   ac_cv_prog_cc_g=yes
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946
3947 fi
3948
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 fi
3951
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 fi
3954
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956    ac_c_werror_flag=$ac_save_c_werror_flag
3957 fi
3958 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3959 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3960 if test "$ac_test_CFLAGS" = set; then
3961   CFLAGS=$ac_save_CFLAGS
3962 elif test $ac_cv_prog_cc_g = yes; then
3963   if test "$GCC" = yes; then
3964     CFLAGS="-g -O2"
3965   else
3966     CFLAGS="-g"
3967   fi
3968 else
3969   if test "$GCC" = yes; then
3970     CFLAGS="-O2"
3971   else
3972     CFLAGS=
3973   fi
3974 fi
3975 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3976 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3977 if test "${ac_cv_prog_cc_c89+set}" = set; then
3978   echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980   ac_cv_prog_cc_c89=no
3981 ac_save_CC=$CC
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h.  */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h.  */
3988 #include <stdarg.h>
3989 #include <stdio.h>
3990 #include <sys/types.h>
3991 #include <sys/stat.h>
3992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3993 struct buf { int x; };
3994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3995 static char *e (p, i)
3996      char **p;
3997      int i;
3998 {
3999   return p[i];
4000 }
4001 static char *f (char * (*g) (char **, int), char **p, ...)
4002 {
4003   char *s;
4004   va_list v;
4005   va_start (v,p);
4006   s = g (p, va_arg (v,int));
4007   va_end (v);
4008   return s;
4009 }
4010
4011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4012    function prototypes and stuff, but not '\xHH' hex character constants.
4013    These don't provoke an error unfortunately, instead are silently treated
4014    as 'x'.  The following induces an error, until -std is added to get
4015    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4016    array size at least.  It's necessary to write '\x00'==0 to get something
4017    that's true only with -std.  */
4018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4019
4020 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4021    inside strings and character constants.  */
4022 #define FOO(x) 'x'
4023 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4024
4025 int test (int i, double x);
4026 struct s1 {int (*f) (int a);};
4027 struct s2 {int (*f) (double a);};
4028 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4029 int argc;
4030 char **argv;
4031 int
4032 main ()
4033 {
4034 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4040         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4041 do
4042   CC="$ac_save_CC $ac_arg"
4043   rm -f conftest.$ac_objext
4044 if { (ac_try="$ac_compile"
4045 case "(($ac_try" in
4046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047   *) ac_try_echo=$ac_try;;
4048 esac
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050   (eval "$ac_compile") 2>conftest.er1
4051   ac_status=$?
4052   grep -v '^ *+' conftest.er1 >conftest.err
4053   rm -f conftest.er1
4054   cat conftest.err >&5
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } && {
4057          test -z "$ac_c_werror_flag" ||
4058          test ! -s conftest.err
4059        } && test -s conftest.$ac_objext; then
4060   ac_cv_prog_cc_c89=$ac_arg
4061 else
4062   echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065
4066 fi
4067
4068 rm -f core conftest.err conftest.$ac_objext
4069   test "x$ac_cv_prog_cc_c89" != "xno" && break
4070 done
4071 rm -f conftest.$ac_ext
4072 CC=$ac_save_CC
4073
4074 fi
4075 # AC_CACHE_VAL
4076 case "x$ac_cv_prog_cc_c89" in
4077   x)
4078     { echo "$as_me:$LINENO: result: none needed" >&5
4079 echo "${ECHO_T}none needed" >&6; } ;;
4080   xno)
4081     { echo "$as_me:$LINENO: result: unsupported" >&5
4082 echo "${ECHO_T}unsupported" >&6; } ;;
4083   *)
4084     CC="$CC $ac_cv_prog_cc_c89"
4085     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4086 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4087 esac
4088
4089
4090 ac_ext=c
4091 ac_cpp='$CPP $CPPFLAGS'
4092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095
4096 depcc="$CC"   am_compiler_list=
4097
4098 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4099 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4100 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4104   # We make a subdir and do the tests there.  Otherwise we can end up
4105   # making bogus files that we don't know about and never remove.  For
4106   # instance it was reported that on HP-UX the gcc test will end up
4107   # making a dummy file named `D' -- because `-MD' means `put the output
4108   # in D'.
4109   mkdir conftest.dir
4110   # Copy depcomp to subdir because otherwise we won't find it if we're
4111   # using a relative directory.
4112   cp "$am_depcomp" conftest.dir
4113   cd conftest.dir
4114   # We will build objects and dependencies in a subdirectory because
4115   # it helps to detect inapplicable dependency modes.  For instance
4116   # both Tru64's cc and ICC support -MD to output dependencies as a
4117   # side effect of compilation, but ICC will put the dependencies in
4118   # the current directory while Tru64 will put them in the object
4119   # directory.
4120   mkdir sub
4121
4122   am_cv_CC_dependencies_compiler_type=none
4123   if test "$am_compiler_list" = ""; then
4124      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4125   fi
4126   for depmode in $am_compiler_list; do
4127     # Setup a source with many dependencies, because some compilers
4128     # like to wrap large dependency lists on column 80 (with \), and
4129     # we should not choose a depcomp mode which is confused by this.
4130     #
4131     # We need to recreate these files for each test, as the compiler may
4132     # overwrite some of them when testing with obscure command lines.
4133     # This happens at least with the AIX C compiler.
4134     : > sub/conftest.c
4135     for i in 1 2 3 4 5 6; do
4136       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4137       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4138       # Solaris 8's {/usr,}/bin/sh.
4139       touch sub/conftst$i.h
4140     done
4141     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4142
4143     case $depmode in
4144     nosideeffect)
4145       # after this tag, mechanisms are not by side-effect, so they'll
4146       # only be used when explicitly requested
4147       if test "x$enable_dependency_tracking" = xyes; then
4148         continue
4149       else
4150         break
4151       fi
4152       ;;
4153     none) break ;;
4154     esac
4155     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4156     # mode.  It turns out that the SunPro C++ compiler does not properly
4157     # handle `-M -o', and we need to detect this.
4158     if depmode=$depmode \
4159        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4160        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4161        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4162          >/dev/null 2>conftest.err &&
4163        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4164        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4165        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4166        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4167       # icc doesn't choke on unknown options, it will just issue warnings
4168       # or remarks (even with -Werror).  So we grep stderr for any message
4169       # that says an option was ignored or not supported.
4170       # When given -MP, icc 7.0 and 7.1 complain thusly:
4171       #   icc: Command line warning: ignoring option '-M'; no argument required
4172       # The diagnosis changed in icc 8.0:
4173       #   icc: Command line remark: option '-MP' not supported
4174       if (grep 'ignoring option' conftest.err ||
4175           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4176         am_cv_CC_dependencies_compiler_type=$depmode
4177         break
4178       fi
4179     fi
4180   done
4181
4182   cd ..
4183   rm -rf conftest.dir
4184 else
4185   am_cv_CC_dependencies_compiler_type=none
4186 fi
4187
4188 fi
4189 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4190 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4192
4193  if
4194   test "x$enable_dependency_tracking" != xno \
4195   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4196   am__fastdepCC_TRUE=
4197   am__fastdepCC_FALSE='#'
4198 else
4199   am__fastdepCC_TRUE='#'
4200   am__fastdepCC_FALSE=
4201 fi
4202
4203
4204 ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4210 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4211 # On Suns, sometimes $CPP names a directory.
4212 if test -n "$CPP" && test -d "$CPP"; then
4213   CPP=
4214 fi
4215 if test -z "$CPP"; then
4216   if test "${ac_cv_prog_CPP+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219       # Double quotes because CPP needs to be expanded
4220     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4221     do
4222       ac_preproc_ok=false
4223 for ac_c_preproc_warn_flag in '' yes
4224 do
4225   # Use a header file that comes with gcc, so configuring glibc
4226   # with a fresh cross-compiler works.
4227   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228   # <limits.h> exists even on freestanding compilers.
4229   # On the NeXT, cc -E runs the code through the compiler's parser,
4230   # not just through cpp. "Syntax error" is here to catch this case.
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237 #ifdef __STDC__
4238 # include <limits.h>
4239 #else
4240 # include <assert.h>
4241 #endif
4242                      Syntax error
4243 _ACEOF
4244 if { (ac_try="$ac_cpp conftest.$ac_ext"
4245 case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } >/dev/null && {
4257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4258          test ! -s conftest.err
4259        }; then
4260   :
4261 else
4262   echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265   # Broken: fails on valid input.
4266 continue
4267 fi
4268
4269 rm -f conftest.err conftest.$ac_ext
4270
4271   # OK, works on sane cases.  Now check whether nonexistent headers
4272   # can be detected and how.
4273   cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279 #include <ac_nonexistent.h>
4280 _ACEOF
4281 if { (ac_try="$ac_cpp conftest.$ac_ext"
4282 case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4288   ac_status=$?
4289   grep -v '^ *+' conftest.er1 >conftest.err
4290   rm -f conftest.er1
4291   cat conftest.err >&5
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } >/dev/null && {
4294          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4295          test ! -s conftest.err
4296        }; then
4297   # Broken: success on invalid input.
4298 continue
4299 else
4300   echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4302
4303   # Passes both tests.
4304 ac_preproc_ok=:
4305 break
4306 fi
4307
4308 rm -f conftest.err conftest.$ac_ext
4309
4310 done
4311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4312 rm -f conftest.err conftest.$ac_ext
4313 if $ac_preproc_ok; then
4314   break
4315 fi
4316
4317     done
4318     ac_cv_prog_CPP=$CPP
4319
4320 fi
4321   CPP=$ac_cv_prog_CPP
4322 else
4323   ac_cv_prog_CPP=$CPP
4324 fi
4325 { echo "$as_me:$LINENO: result: $CPP" >&5
4326 echo "${ECHO_T}$CPP" >&6; }
4327 ac_preproc_ok=false
4328 for ac_c_preproc_warn_flag in '' yes
4329 do
4330   # Use a header file that comes with gcc, so configuring glibc
4331   # with a fresh cross-compiler works.
4332   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4333   # <limits.h> exists even on freestanding compilers.
4334   # On the NeXT, cc -E runs the code through the compiler's parser,
4335   # not just through cpp. "Syntax error" is here to catch this case.
4336   cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h.  */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h.  */
4342 #ifdef __STDC__
4343 # include <limits.h>
4344 #else
4345 # include <assert.h>
4346 #endif
4347                      Syntax error
4348 _ACEOF
4349 if { (ac_try="$ac_cpp conftest.$ac_ext"
4350 case "(($ac_try" in
4351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352   *) ac_try_echo=$ac_try;;
4353 esac
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4356   ac_status=$?
4357   grep -v '^ *+' conftest.er1 >conftest.err
4358   rm -f conftest.er1
4359   cat conftest.err >&5
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); } >/dev/null && {
4362          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4363          test ! -s conftest.err
4364        }; then
4365   :
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370   # Broken: fails on valid input.
4371 continue
4372 fi
4373
4374 rm -f conftest.err conftest.$ac_ext
4375
4376   # OK, works on sane cases.  Now check whether nonexistent headers
4377   # can be detected and how.
4378   cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 #include <ac_nonexistent.h>
4385 _ACEOF
4386 if { (ac_try="$ac_cpp conftest.$ac_ext"
4387 case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } >/dev/null && {
4399          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4400          test ! -s conftest.err
4401        }; then
4402   # Broken: success on invalid input.
4403 continue
4404 else
4405   echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408   # Passes both tests.
4409 ac_preproc_ok=:
4410 break
4411 fi
4412
4413 rm -f conftest.err conftest.$ac_ext
4414
4415 done
4416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4417 rm -f conftest.err conftest.$ac_ext
4418 if $ac_preproc_ok; then
4419   :
4420 else
4421   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4422 See \`config.log' for more details." >&5
4423 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4424 See \`config.log' for more details." >&2;}
4425    { (exit 1); exit 1; }; }
4426 fi
4427
4428 ac_ext=c
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433
4434
4435 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4436 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4437 if test "${ac_cv_path_GREP+set}" = set; then
4438   echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440   # Extract the first word of "grep ggrep" to use in msg output
4441 if test -z "$GREP"; then
4442 set dummy grep ggrep; ac_prog_name=$2
4443 if test "${ac_cv_path_GREP+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   ac_path_GREP_found=false
4447 # Loop through the user's path and test for each of PROGNAME-LIST
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453   for ac_prog in grep ggrep; do
4454   for ac_exec_ext in '' $ac_executable_extensions; do
4455     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4456     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4457     # Check for GNU ac_path_GREP and select it if it is found.
4458   # Check for GNU $ac_path_GREP
4459 case `"$ac_path_GREP" --version 2>&1` in
4460 *GNU*)
4461   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4462 *)
4463   ac_count=0
4464   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4465   while :
4466   do
4467     cat "conftest.in" "conftest.in" >"conftest.tmp"
4468     mv "conftest.tmp" "conftest.in"
4469     cp "conftest.in" "conftest.nl"
4470     echo 'GREP' >> "conftest.nl"
4471     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473     ac_count=`expr $ac_count + 1`
4474     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4475       # Best one so far, save it but keep looking for a better one
4476       ac_cv_path_GREP="$ac_path_GREP"
4477       ac_path_GREP_max=$ac_count
4478     fi
4479     # 10*(2^10) chars as input seems more than enough
4480     test $ac_count -gt 10 && break
4481   done
4482   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483 esac
4484
4485
4486     $ac_path_GREP_found && break 3
4487   done
4488 done
4489
4490 done
4491 IFS=$as_save_IFS
4492
4493
4494 fi
4495
4496 GREP="$ac_cv_path_GREP"
4497 if test -z "$GREP"; then
4498   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4499 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4500    { (exit 1); exit 1; }; }
4501 fi
4502
4503 else
4504   ac_cv_path_GREP=$GREP
4505 fi
4506
4507
4508 fi
4509 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4510 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4511  GREP="$ac_cv_path_GREP"
4512
4513
4514 { echo "$as_me:$LINENO: checking for egrep" >&5
4515 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4516 if test "${ac_cv_path_EGREP+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4520    then ac_cv_path_EGREP="$GREP -E"
4521    else
4522      # Extract the first word of "egrep" to use in msg output
4523 if test -z "$EGREP"; then
4524 set dummy egrep; ac_prog_name=$2
4525 if test "${ac_cv_path_EGREP+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   ac_path_EGREP_found=false
4529 # Loop through the user's path and test for each of PROGNAME-LIST
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4532 do
4533   IFS=$as_save_IFS
4534   test -z "$as_dir" && as_dir=.
4535   for ac_prog in egrep; do
4536   for ac_exec_ext in '' $ac_executable_extensions; do
4537     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4538     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4539     # Check for GNU ac_path_EGREP and select it if it is found.
4540   # Check for GNU $ac_path_EGREP
4541 case `"$ac_path_EGREP" --version 2>&1` in
4542 *GNU*)
4543   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4544 *)
4545   ac_count=0
4546   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4547   while :
4548   do
4549     cat "conftest.in" "conftest.in" >"conftest.tmp"
4550     mv "conftest.tmp" "conftest.in"
4551     cp "conftest.in" "conftest.nl"
4552     echo 'EGREP' >> "conftest.nl"
4553     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4554     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4555     ac_count=`expr $ac_count + 1`
4556     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4557       # Best one so far, save it but keep looking for a better one
4558       ac_cv_path_EGREP="$ac_path_EGREP"
4559       ac_path_EGREP_max=$ac_count
4560     fi
4561     # 10*(2^10) chars as input seems more than enough
4562     test $ac_count -gt 10 && break
4563   done
4564   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4565 esac
4566
4567
4568     $ac_path_EGREP_found && break 3
4569   done
4570 done
4571
4572 done
4573 IFS=$as_save_IFS
4574
4575
4576 fi
4577
4578 EGREP="$ac_cv_path_EGREP"
4579 if test -z "$EGREP"; then
4580   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4581 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4582    { (exit 1); exit 1; }; }
4583 fi
4584
4585 else
4586   ac_cv_path_EGREP=$EGREP
4587 fi
4588
4589
4590    fi
4591 fi
4592 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4593 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4594  EGREP="$ac_cv_path_EGREP"
4595
4596
4597 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4598 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4599 if test "${ac_cv_header_stdc+set}" = set; then
4600   echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602   cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h.  */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h.  */
4608 #include <stdlib.h>
4609 #include <stdarg.h>
4610 #include <string.h>
4611 #include <float.h>
4612
4613 int
4614 main ()
4615 {
4616
4617   ;
4618   return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest.$ac_objext
4622 if { (ac_try="$ac_compile"
4623 case "(($ac_try" in
4624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625   *) ac_try_echo=$ac_try;;
4626 esac
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628   (eval "$ac_compile") 2>conftest.er1
4629   ac_status=$?
4630   grep -v '^ *+' conftest.er1 >conftest.err
4631   rm -f conftest.er1
4632   cat conftest.err >&5
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); } && {
4635          test -z "$ac_c_werror_flag" ||
4636          test ! -s conftest.err
4637        } && test -s conftest.$ac_objext; then
4638   ac_cv_header_stdc=yes
4639 else
4640   echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643         ac_cv_header_stdc=no
4644 fi
4645
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647
4648 if test $ac_cv_header_stdc = yes; then
4649   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4650   cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656 #include <string.h>
4657
4658 _ACEOF
4659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660   $EGREP "memchr" >/dev/null 2>&1; then
4661   :
4662 else
4663   ac_cv_header_stdc=no
4664 fi
4665 rm -f conftest*
4666
4667 fi
4668
4669 if test $ac_cv_header_stdc = yes; then
4670   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4671   cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677 #include <stdlib.h>
4678
4679 _ACEOF
4680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4681   $EGREP "free" >/dev/null 2>&1; then
4682   :
4683 else
4684   ac_cv_header_stdc=no
4685 fi
4686 rm -f conftest*
4687
4688 fi
4689
4690 if test $ac_cv_header_stdc = yes; then
4691   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4692   if test "$cross_compiling" = yes; then
4693   :
4694 else
4695   cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h.  */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h.  */
4701 #include <ctype.h>
4702 #include <stdlib.h>
4703 #if ((' ' & 0x0FF) == 0x020)
4704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4706 #else
4707 # define ISLOWER(c) \
4708                    (('a' <= (c) && (c) <= 'i') \
4709                      || ('j' <= (c) && (c) <= 'r') \
4710                      || ('s' <= (c) && (c) <= 'z'))
4711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4712 #endif
4713
4714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4715 int
4716 main ()
4717 {
4718   int i;
4719   for (i = 0; i < 256; i++)
4720     if (XOR (islower (i), ISLOWER (i))
4721         || toupper (i) != TOUPPER (i))
4722       return 2;
4723   return 0;
4724 }
4725 _ACEOF
4726 rm -f conftest$ac_exeext
4727 if { (ac_try="$ac_link"
4728 case "(($ac_try" in
4729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730   *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733   (eval "$ac_link") 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4737   { (case "(($ac_try" in
4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739   *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742   (eval "$ac_try") 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; }; then
4746   :
4747 else
4748   echo "$as_me: program exited with status $ac_status" >&5
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752 ( exit $ac_status )
4753 ac_cv_header_stdc=no
4754 fi
4755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4756 fi
4757
4758
4759 fi
4760 fi
4761 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4762 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4763 if test $ac_cv_header_stdc = yes; then
4764
4765 cat >>confdefs.h <<\_ACEOF
4766 #define STDC_HEADERS 1
4767 _ACEOF
4768
4769 fi
4770
4771 for ac_prog in 'bison -y' byacc
4772 do
4773   # Extract the first word of "$ac_prog", so it can be a program name with args.
4774 set dummy $ac_prog; ac_word=$2
4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777 if test "${ac_cv_prog_YACC+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   if test -n "$YACC"; then
4781   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     ac_cv_prog_YACC="$ac_prog"
4791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 fi
4799 fi
4800 YACC=$ac_cv_prog_YACC
4801 if test -n "$YACC"; then
4802   { echo "$as_me:$LINENO: result: $YACC" >&5
4803 echo "${ECHO_T}$YACC" >&6; }
4804 else
4805   { echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6; }
4807 fi
4808
4809
4810   test -n "$YACC" && break
4811 done
4812 test -n "$YACC" || YACC="yacc"
4813
4814 for ac_prog in flex lex
4815 do
4816   # Extract the first word of "$ac_prog", so it can be a program name with args.
4817 set dummy $ac_prog; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_LEX+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   if test -n "$LEX"; then
4824   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_prog_LEX="$ac_prog"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 LEX=$ac_cv_prog_LEX
4844 if test -n "$LEX"; then
4845   { echo "$as_me:$LINENO: result: $LEX" >&5
4846 echo "${ECHO_T}$LEX" >&6; }
4847 else
4848   { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4850 fi
4851
4852
4853   test -n "$LEX" && break
4854 done
4855 test -n "$LEX" || LEX=":"
4856
4857 if test "x$LEX" != "x:"; then
4858   cat >conftest.l <<_ACEOF
4859 %%
4860 a { ECHO; }
4861 b { REJECT; }
4862 c { yymore (); }
4863 d { yyless (1); }
4864 e { yyless (input () != 0); }
4865 f { unput (yytext[0]); }
4866 . { BEGIN INITIAL; }
4867 %%
4868 #ifdef YYTEXT_POINTER
4869 extern char *yytext;
4870 #endif
4871 int
4872 main (void)
4873 {
4874   return ! yylex () + ! yywrap ();
4875 }
4876 _ACEOF
4877 { (ac_try="$LEX conftest.l"
4878 case "(($ac_try" in
4879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880   *) ac_try_echo=$ac_try;;
4881 esac
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883   (eval "$LEX conftest.l") 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); }
4887 { echo "$as_me:$LINENO: checking lex output file root" >&5
4888 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4889 if test "${ac_cv_prog_lex_root+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892
4893 if test -f lex.yy.c; then
4894   ac_cv_prog_lex_root=lex.yy
4895 elif test -f lexyy.c; then
4896   ac_cv_prog_lex_root=lexyy
4897 else
4898   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4899 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4900    { (exit 1); exit 1; }; }
4901 fi
4902 fi
4903 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4904 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4905 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4906
4907 if test -z "${LEXLIB+set}"; then
4908   { echo "$as_me:$LINENO: checking lex library" >&5
4909 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4910 if test "${ac_cv_lib_lex+set}" = set; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913
4914     ac_save_LIBS=$LIBS
4915     ac_cv_lib_lex='none needed'
4916     for ac_lib in '' -lfl -ll; do
4917       LIBS="$ac_lib $ac_save_LIBS"
4918       cat >conftest.$ac_ext <<_ACEOF
4919 `cat $LEX_OUTPUT_ROOT.c`
4920 _ACEOF
4921 rm -f conftest.$ac_objext conftest$ac_exeext
4922 if { (ac_try="$ac_link"
4923 case "(($ac_try" in
4924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925   *) ac_try_echo=$ac_try;;
4926 esac
4927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928   (eval "$ac_link") 2>conftest.er1
4929   ac_status=$?
4930   grep -v '^ *+' conftest.er1 >conftest.err
4931   rm -f conftest.er1
4932   cat conftest.err >&5
4933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); } && {
4935          test -z "$ac_c_werror_flag" ||
4936          test ! -s conftest.err
4937        } && test -s conftest$ac_exeext &&
4938        $as_test_x conftest$ac_exeext; then
4939   ac_cv_lib_lex=$ac_lib
4940 else
4941   echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944
4945 fi
4946
4947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4948       conftest$ac_exeext conftest.$ac_ext
4949       test "$ac_cv_lib_lex" != 'none needed' && break
4950     done
4951     LIBS=$ac_save_LIBS
4952
4953 fi
4954 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4955 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4956   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4957 fi
4958
4959
4960 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4961 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4962 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4963   echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965   # POSIX says lex can declare yytext either as a pointer or an array; the
4966 # default is implementation-dependent.  Figure out which it is, since
4967 # not all implementations provide the %pointer and %array declarations.
4968 ac_cv_prog_lex_yytext_pointer=no
4969 ac_save_LIBS=$LIBS
4970 LIBS="$LEXLIB $ac_save_LIBS"
4971 cat >conftest.$ac_ext <<_ACEOF
4972 #define YYTEXT_POINTER 1
4973 `cat $LEX_OUTPUT_ROOT.c`
4974 _ACEOF
4975 rm -f conftest.$ac_objext conftest$ac_exeext
4976 if { (ac_try="$ac_link"
4977 case "(($ac_try" in
4978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979   *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982   (eval "$ac_link") 2>conftest.er1
4983   ac_status=$?
4984   grep -v '^ *+' conftest.er1 >conftest.err
4985   rm -f conftest.er1
4986   cat conftest.err >&5
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } && {
4989          test -z "$ac_c_werror_flag" ||
4990          test ! -s conftest.err
4991        } && test -s conftest$ac_exeext &&
4992        $as_test_x conftest$ac_exeext; then
4993   ac_cv_prog_lex_yytext_pointer=yes
4994 else
4995   echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998
4999 fi
5000
5001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5002       conftest$ac_exeext conftest.$ac_ext
5003 LIBS=$ac_save_LIBS
5004
5005 fi
5006 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5007 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5008 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5009
5010 cat >>confdefs.h <<\_ACEOF
5011 #define YYTEXT_POINTER 1
5012 _ACEOF
5013
5014 fi
5015 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5016
5017 fi
5018 if test "$LEX" = :; then
5019   LEX=${am_missing_run}flex
5020 fi
5021 # Find a good install program.  We prefer a C program (faster),
5022 # so one script is as good as another.  But avoid the broken or
5023 # incompatible versions:
5024 # SysV /etc/install, /usr/sbin/install
5025 # SunOS /usr/etc/install
5026 # IRIX /sbin/install
5027 # AIX /bin/install
5028 # AmigaOS /C/install, which installs bootblocks on floppy discs
5029 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5030 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5031 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5032 # OS/2's system install, which has a completely different semantic
5033 # ./install, which can be erroneously created by make from ./install.sh.
5034 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5035 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5036 if test -z "$INSTALL"; then
5037 if test "${ac_cv_path_install+set}" = set; then
5038   echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045   # Account for people who put trailing slashes in PATH elements.
5046 case $as_dir/ in
5047   ./ | .// | /cC/* | \
5048   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5049   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5050   /usr/ucb/* ) ;;
5051   *)
5052     # OSF1 and SCO ODT 3.0 have their own names for install.
5053     # Don't use installbsd from OSF since it installs stuff as root
5054     # by default.
5055     for ac_prog in ginstall scoinst install; do
5056       for ac_exec_ext in '' $ac_executable_extensions; do
5057         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5058           if test $ac_prog = install &&
5059             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5060             # AIX install.  It has an incompatible calling convention.
5061             :
5062           elif test $ac_prog = install &&
5063             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5064             # program-specific install script used by HP pwplus--don't use.
5065             :
5066           else
5067             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5068             break 3
5069           fi
5070         fi
5071       done
5072     done
5073     ;;
5074 esac
5075 done
5076 IFS=$as_save_IFS
5077
5078
5079 fi
5080   if test "${ac_cv_path_install+set}" = set; then
5081     INSTALL=$ac_cv_path_install
5082   else
5083     # As a last resort, use the slow shell script.  Don't cache a
5084     # value for INSTALL within a source directory, because that will
5085     # break other packages using the cache if that directory is
5086     # removed, or if the value is a relative name.
5087     INSTALL=$ac_install_sh
5088   fi
5089 fi
5090 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5091 echo "${ECHO_T}$INSTALL" >&6; }
5092
5093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5094 # It thinks the first close brace ends the variable substitution.
5095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5096
5097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5098
5099 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5100
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5107 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5108 # On Suns, sometimes $CPP names a directory.
5109 if test -n "$CPP" && test -d "$CPP"; then
5110   CPP=
5111 fi
5112 if test -z "$CPP"; then
5113   if test "${ac_cv_prog_CPP+set}" = set; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116       # Double quotes because CPP needs to be expanded
5117     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5118     do
5119       ac_preproc_ok=false
5120 for ac_c_preproc_warn_flag in '' yes
5121 do
5122   # Use a header file that comes with gcc, so configuring glibc
5123   # with a fresh cross-compiler works.
5124   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5125   # <limits.h> exists even on freestanding compilers.
5126   # On the NeXT, cc -E runs the code through the compiler's parser,
5127   # not just through cpp. "Syntax error" is here to catch this case.
5128   cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h.  */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h.  */
5134 #ifdef __STDC__
5135 # include <limits.h>
5136 #else
5137 # include <assert.h>
5138 #endif
5139                      Syntax error
5140 _ACEOF
5141 if { (ac_try="$ac_cpp conftest.$ac_ext"
5142 case "(($ac_try" in
5143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144   *) ac_try_echo=$ac_try;;
5145 esac
5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5148   ac_status=$?
5149   grep -v '^ *+' conftest.er1 >conftest.err
5150   rm -f conftest.er1
5151   cat conftest.err >&5
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); } >/dev/null && {
5154          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5155          test ! -s conftest.err
5156        }; then
5157   :
5158 else
5159   echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162   # Broken: fails on valid input.
5163 continue
5164 fi
5165
5166 rm -f conftest.err conftest.$ac_ext
5167
5168   # OK, works on sane cases.  Now check whether nonexistent headers
5169   # can be detected and how.
5170   cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176 #include <ac_nonexistent.h>
5177 _ACEOF
5178 if { (ac_try="$ac_cpp conftest.$ac_ext"
5179 case "(($ac_try" in
5180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181   *) ac_try_echo=$ac_try;;
5182 esac
5183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5185   ac_status=$?
5186   grep -v '^ *+' conftest.er1 >conftest.err
5187   rm -f conftest.er1
5188   cat conftest.err >&5
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } >/dev/null && {
5191          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5192          test ! -s conftest.err
5193        }; then
5194   # Broken: success on invalid input.
5195 continue
5196 else
5197   echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200   # Passes both tests.
5201 ac_preproc_ok=:
5202 break
5203 fi
5204
5205 rm -f conftest.err conftest.$ac_ext
5206
5207 done
5208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5209 rm -f conftest.err conftest.$ac_ext
5210 if $ac_preproc_ok; then
5211   break
5212 fi
5213
5214     done
5215     ac_cv_prog_CPP=$CPP
5216
5217 fi
5218   CPP=$ac_cv_prog_CPP
5219 else
5220   ac_cv_prog_CPP=$CPP
5221 fi
5222 { echo "$as_me:$LINENO: result: $CPP" >&5
5223 echo "${ECHO_T}$CPP" >&6; }
5224 ac_preproc_ok=false
5225 for ac_c_preproc_warn_flag in '' yes
5226 do
5227   # Use a header file that comes with gcc, so configuring glibc
5228   # with a fresh cross-compiler works.
5229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5230   # <limits.h> exists even on freestanding compilers.
5231   # On the NeXT, cc -E runs the code through the compiler's parser,
5232   # not just through cpp. "Syntax error" is here to catch this case.
5233   cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #ifdef __STDC__
5240 # include <limits.h>
5241 #else
5242 # include <assert.h>
5243 #endif
5244                      Syntax error
5245 _ACEOF
5246 if { (ac_try="$ac_cpp conftest.$ac_ext"
5247 case "(($ac_try" in
5248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249   *) ac_try_echo=$ac_try;;
5250 esac
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5253   ac_status=$?
5254   grep -v '^ *+' conftest.er1 >conftest.err
5255   rm -f conftest.er1
5256   cat conftest.err >&5
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); } >/dev/null && {
5259          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5260          test ! -s conftest.err
5261        }; then
5262   :
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267   # Broken: fails on valid input.
5268 continue
5269 fi
5270
5271 rm -f conftest.err conftest.$ac_ext
5272
5273   # OK, works on sane cases.  Now check whether nonexistent headers
5274   # can be detected and how.
5275   cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h.  */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h.  */
5281 #include <ac_nonexistent.h>
5282 _ACEOF
5283 if { (ac_try="$ac_cpp conftest.$ac_ext"
5284 case "(($ac_try" in
5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286   *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5290   ac_status=$?
5291   grep -v '^ *+' conftest.er1 >conftest.err
5292   rm -f conftest.er1
5293   cat conftest.err >&5
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); } >/dev/null && {
5296          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5297          test ! -s conftest.err
5298        }; then
5299   # Broken: success on invalid input.
5300 continue
5301 else
5302   echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305   # Passes both tests.
5306 ac_preproc_ok=:
5307 break
5308 fi
5309
5310 rm -f conftest.err conftest.$ac_ext
5311
5312 done
5313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5314 rm -f conftest.err conftest.$ac_ext
5315 if $ac_preproc_ok; then
5316   :
5317 else
5318   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5319 See \`config.log' for more details." >&5
5320 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5321 See \`config.log' for more details." >&2;}
5322    { (exit 1); exit 1; }; }
5323 fi
5324
5325 ac_ext=c
5326 ac_cpp='$CPP $CPPFLAGS'
5327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330
5331 # Extract the first word of "rm", so it can be a program name with args.
5332 set dummy rm; ac_word=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_RM+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   case $RM in
5339   [\\/]* | ?:[\\/]*)
5340   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5341   ;;
5342   *)
5343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348   for ac_exec_ext in '' $ac_executable_extensions; do
5349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355 done
5356 IFS=$as_save_IFS
5357
5358   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
5359   ;;
5360 esac
5361 fi
5362 RM=$ac_cv_path_RM
5363 if test -n "$RM"; then
5364   { echo "$as_me:$LINENO: result: $RM" >&5
5365 echo "${ECHO_T}$RM" >&6; }
5366 else
5367   { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5369 fi
5370
5371
5372 # Extract the first word of "mv", so it can be a program name with args.
5373 set dummy mv; ac_word=$2
5374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5376 if test "${ac_cv_path_MV+set}" = set; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379   case $MV in
5380   [\\/]* | ?:[\\/]*)
5381   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5382   ;;
5383   *)
5384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387   IFS=$as_save_IFS
5388   test -z "$as_dir" && as_dir=.
5389   for ac_exec_ext in '' $ac_executable_extensions; do
5390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393     break 2
5394   fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
5400   ;;
5401 esac
5402 fi
5403 MV=$ac_cv_path_MV
5404 if test -n "$MV"; then
5405   { echo "$as_me:$LINENO: result: $MV" >&5
5406 echo "${ECHO_T}$MV" >&6; }
5407 else
5408   { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5410 fi
5411
5412
5413 # Extract the first word of "tar", so it can be a program name with args.
5414 set dummy tar; ac_word=$2
5415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5417 if test "${ac_cv_path_TAR+set}" = set; then
5418   echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420   case $TAR in
5421   [\\/]* | ?:[\\/]*)
5422   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5423   ;;
5424   *)
5425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5427 do
5428   IFS=$as_save_IFS
5429   test -z "$as_dir" && as_dir=.
5430   for ac_exec_ext in '' $ac_executable_extensions; do
5431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5432     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5434     break 2
5435   fi
5436 done
5437 done
5438 IFS=$as_save_IFS
5439
5440   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
5441   ;;
5442 esac
5443 fi
5444 TAR=$ac_cv_path_TAR
5445 if test -n "$TAR"; then
5446   { echo "$as_me:$LINENO: result: $TAR" >&5
5447 echo "${ECHO_T}$TAR" >&6; }
5448 else
5449   { echo "$as_me:$LINENO: result: no" >&5
5450 echo "${ECHO_T}no" >&6; }
5451 fi
5452
5453
5454
5455
5456 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5457         if test -n "$ac_tool_prefix"; then
5458   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5459 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5462 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   case $PKG_CONFIG in
5466   [\\/]* | ?:[\\/]*)
5467   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5468   ;;
5469   *)
5470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475   for ac_exec_ext in '' $ac_executable_extensions; do
5476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485   ;;
5486 esac
5487 fi
5488 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5489 if test -n "$PKG_CONFIG"; then
5490   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5491 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5492 else
5493   { echo "$as_me:$LINENO: result: no" >&5
5494 echo "${ECHO_T}no" >&6; }
5495 fi
5496
5497
5498 fi
5499 if test -z "$ac_cv_path_PKG_CONFIG"; then
5500   ac_pt_PKG_CONFIG=$PKG_CONFIG
5501   # Extract the first word of "pkg-config", so it can be a program name with args.
5502 set dummy pkg-config; ac_word=$2
5503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5505 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508   case $ac_pt_PKG_CONFIG in
5509   [\\/]* | ?:[\\/]*)
5510   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5511   ;;
5512   *)
5513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518   for ac_exec_ext in '' $ac_executable_extensions; do
5519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528   ;;
5529 esac
5530 fi
5531 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5532 if test -n "$ac_pt_PKG_CONFIG"; then
5533   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5534 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5535 else
5536   { echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6; }
5538 fi
5539
5540   if test "x$ac_pt_PKG_CONFIG" = x; then
5541     PKG_CONFIG=""
5542   else
5543     case $cross_compiling:$ac_tool_warned in
5544 yes:)
5545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5546 whose name does not start with the host triplet.  If you think this
5547 configuration is useful to you, please write to autoconf@gnu.org." >&5
5548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5549 whose name does not start with the host triplet.  If you think this
5550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5551 ac_tool_warned=yes ;;
5552 esac
5553     PKG_CONFIG=$ac_pt_PKG_CONFIG
5554   fi
5555 else
5556   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5557 fi
5558
5559 fi
5560 if test -n "$PKG_CONFIG"; then
5561         _pkg_min_version=0.9.0
5562         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5563 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5564         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5565                 { echo "$as_me:$LINENO: result: yes" >&5
5566 echo "${ECHO_T}yes" >&6; }
5567         else
5568                 { echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6; }
5570                 PKG_CONFIG=""
5571         fi
5572
5573 fi
5574
5575 pkg_failed=no
5576 { echo "$as_me:$LINENO: checking for GLIB" >&5
5577 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
5578
5579 if test -n "$PKG_CONFIG"; then
5580     if test -n "$GLIB_CFLAGS"; then
5581         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
5582     else
5583         if test -n "$PKG_CONFIG" && \
5584     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED\"") >&5
5585   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED") 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; then
5589   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
5590 else
5591   pkg_failed=yes
5592 fi
5593     fi
5594 else
5595         pkg_failed=untried
5596 fi
5597 if test -n "$PKG_CONFIG"; then
5598     if test -n "$GLIB_LIBS"; then
5599         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
5600     else
5601         if test -n "$PKG_CONFIG" && \
5602     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED\"") >&5
5603   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED") 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; then
5607   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
5608 else
5609   pkg_failed=yes
5610 fi
5611     fi
5612 else
5613         pkg_failed=untried
5614 fi
5615
5616
5617
5618 if test $pkg_failed = yes; then
5619
5620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5621         _pkg_short_errors_supported=yes
5622 else
5623         _pkg_short_errors_supported=no
5624 fi
5625         if test $_pkg_short_errors_supported = yes; then
5626                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED"`
5627         else
5628                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED"`
5629         fi
5630         # Put the nasty error message in config.log where it belongs
5631         echo "$GLIB_PKG_ERRORS" >&5
5632
5633         { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED) were not met:
5634
5635 $GLIB_PKG_ERRORS
5636
5637 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5638 installed software in a non-standard prefix.
5639
5640 Alternatively, you may set the environment variables GLIB_CFLAGS
5641 and GLIB_LIBS to avoid the need to call pkg-config.
5642 See the pkg-config man page for more details.
5643 " >&5
5644 echo "$as_me: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED) were not met:
5645
5646 $GLIB_PKG_ERRORS
5647
5648 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5649 installed software in a non-standard prefix.
5650
5651 Alternatively, you may set the environment variables GLIB_CFLAGS
5652 and GLIB_LIBS to avoid the need to call pkg-config.
5653 See the pkg-config man page for more details.
5654 " >&2;}
5655    { (exit 1); exit 1; }; }
5656 elif test $pkg_failed = untried; then
5657         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5658 is in your PATH or set the PKG_CONFIG environment variable to the full
5659 path to pkg-config.
5660
5661 Alternatively, you may set the environment variables GLIB_CFLAGS
5662 and GLIB_LIBS to avoid the need to call pkg-config.
5663 See the pkg-config man page for more details.
5664
5665 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5666 See \`config.log' for more details." >&5
5667 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5668 is in your PATH or set the PKG_CONFIG environment variable to the full
5669 path to pkg-config.
5670
5671 Alternatively, you may set the environment variables GLIB_CFLAGS
5672 and GLIB_LIBS to avoid the need to call pkg-config.
5673 See the pkg-config man page for more details.
5674
5675 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5676 See \`config.log' for more details." >&2;}
5677    { (exit 1); exit 1; }; }
5678 else
5679         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
5680         GLIB_LIBS=$pkg_cv_GLIB_LIBS
5681         { echo "$as_me:$LINENO: result: yes" >&5
5682 echo "${ECHO_T}yes" >&6; }
5683         :
5684 fi
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 ac_config_files="$ac_config_files gob2.spec Makefile src/Makefile doc/Makefile examples/Makefile doc/gob2.1"
5696
5697 cat >confcache <<\_ACEOF
5698 # This file is a shell script that caches the results of configure
5699 # tests run on this system so they can be shared between configure
5700 # scripts and configure runs, see configure's option --config-cache.
5701 # It is not useful on other systems.  If it contains results you don't
5702 # want to keep, you may remove or edit it.
5703 #
5704 # config.status only pays attention to the cache file if you give it
5705 # the --recheck option to rerun configure.
5706 #
5707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5709 # following values.
5710
5711 _ACEOF
5712
5713 # The following way of writing the cache mishandles newlines in values,
5714 # but we know of no workaround that is simple, portable, and efficient.
5715 # So, we kill variables containing newlines.
5716 # Ultrix sh set writes to stderr and can't be redirected directly,
5717 # and sets the high bit in the cache file unless we assign to the vars.
5718 (
5719   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5720     eval ac_val=\$$ac_var
5721     case $ac_val in #(
5722     *${as_nl}*)
5723       case $ac_var in #(
5724       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5726       esac
5727       case $ac_var in #(
5728       _ | IFS | as_nl) ;; #(
5729       *) $as_unset $ac_var ;;
5730       esac ;;
5731     esac
5732   done
5733
5734   (set) 2>&1 |
5735     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5736     *${as_nl}ac_space=\ *)
5737       # `set' does not quote correctly, so add quotes (double-quote
5738       # substitution turns \\\\ into \\, and sed turns \\ into \).
5739       sed -n \
5740         "s/'/'\\\\''/g;
5741           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5742       ;; #(
5743     *)
5744       # `set' quotes correctly as required by POSIX, so do not add quotes.
5745       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5746       ;;
5747     esac |
5748     sort
5749 ) |
5750   sed '
5751      /^ac_cv_env_/b end
5752      t clear
5753      :clear
5754      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5755      t end
5756      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5757      :end' >>confcache
5758 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5759   if test -w "$cache_file"; then
5760     test "x$cache_file" != "x/dev/null" &&
5761       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5762 echo "$as_me: updating cache $cache_file" >&6;}
5763     cat confcache >$cache_file
5764   else
5765     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5766 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5767   fi
5768 fi
5769 rm -f confcache
5770
5771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5772 # Let make expand exec_prefix.
5773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5774
5775 DEFS=-DHAVE_CONFIG_H
5776
5777 ac_libobjs=
5778 ac_ltlibobjs=
5779 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5780   # 1. Remove the extension, and $U if already installed.
5781   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5782   ac_i=`echo "$ac_i" | sed "$ac_script"`
5783   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5784   #    will be set to the directory where LIBOBJS objects are built.
5785   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5786   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5787 done
5788 LIBOBJS=$ac_libobjs
5789
5790 LTLIBOBJS=$ac_ltlibobjs
5791
5792
5793 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5794   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5795 Usually this means the macro was only invoked conditionally." >&5
5796 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5797 Usually this means the macro was only invoked conditionally." >&2;}
5798    { (exit 1); exit 1; }; }
5799 fi
5800 if test -z "${NOINSTGOB_TRUE}" && test -z "${NOINSTGOB_FALSE}"; then
5801   { { echo "$as_me:$LINENO: error: conditional \"NOINSTGOB\" was never defined.
5802 Usually this means the macro was only invoked conditionally." >&5
5803 echo "$as_me: error: conditional \"NOINSTGOB\" was never defined.
5804 Usually this means the macro was only invoked conditionally." >&2;}
5805    { (exit 1); exit 1; }; }
5806 fi
5807 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5808   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5809 Usually this means the macro was only invoked conditionally." >&5
5810 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5811 Usually this means the macro was only invoked conditionally." >&2;}
5812    { (exit 1); exit 1; }; }
5813 fi
5814 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5815   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5816 Usually this means the macro was only invoked conditionally." >&5
5817 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5818 Usually this means the macro was only invoked conditionally." >&2;}
5819    { (exit 1); exit 1; }; }
5820 fi
5821 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5822   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5823 Usually this means the macro was only invoked conditionally." >&5
5824 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5825 Usually this means the macro was only invoked conditionally." >&2;}
5826    { (exit 1); exit 1; }; }
5827 fi
5828
5829 : ${CONFIG_STATUS=./config.status}
5830 ac_clean_files_save=$ac_clean_files
5831 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5832 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5833 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5834 cat >$CONFIG_STATUS <<_ACEOF
5835 #! $SHELL
5836 # Generated by $as_me.
5837 # Run this file to recreate the current configuration.
5838 # Compiler output produced by configure, useful for debugging
5839 # configure, is in config.log if it exists.
5840
5841 debug=false
5842 ac_cs_recheck=false
5843 ac_cs_silent=false
5844 SHELL=\${CONFIG_SHELL-$SHELL}
5845 _ACEOF
5846
5847 cat >>$CONFIG_STATUS <<\_ACEOF
5848 ## --------------------- ##
5849 ## M4sh Initialization.  ##
5850 ## --------------------- ##
5851
5852 # Be more Bourne compatible
5853 DUALCASE=1; export DUALCASE # for MKS sh
5854 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5855   emulate sh
5856   NULLCMD=:
5857   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5858   # is contrary to our usage.  Disable this feature.
5859   alias -g '${1+"$@"}'='"$@"'
5860   setopt NO_GLOB_SUBST
5861 else
5862   case `(set -o) 2>/dev/null` in
5863   *posix*) set -o posix ;;
5864 esac
5865
5866 fi
5867
5868
5869
5870
5871 # PATH needs CR
5872 # Avoid depending upon Character Ranges.
5873 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5874 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5875 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5876 as_cr_digits='0123456789'
5877 as_cr_alnum=$as_cr_Letters$as_cr_digits
5878
5879 # The user is always right.
5880 if test "${PATH_SEPARATOR+set}" != set; then
5881   echo "#! /bin/sh" >conf$$.sh
5882   echo  "exit 0"   >>conf$$.sh
5883   chmod +x conf$$.sh
5884   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5885     PATH_SEPARATOR=';'
5886   else
5887     PATH_SEPARATOR=:
5888   fi
5889   rm -f conf$$.sh
5890 fi
5891
5892 # Support unset when possible.
5893 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5894   as_unset=unset
5895 else
5896   as_unset=false
5897 fi
5898
5899
5900 # IFS
5901 # We need space, tab and new line, in precisely that order.  Quoting is
5902 # there to prevent editors from complaining about space-tab.
5903 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5904 # splitting by setting IFS to empty value.)
5905 as_nl='
5906 '
5907 IFS=" ""        $as_nl"
5908
5909 # Find who we are.  Look in the path if we contain no directory separator.
5910 case $0 in
5911   *[\\/]* ) as_myself=$0 ;;
5912   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5918 done
5919 IFS=$as_save_IFS
5920
5921      ;;
5922 esac
5923 # We did not find ourselves, most probably we were run as `sh COMMAND'
5924 # in which case we are not to be found in the path.
5925 if test "x$as_myself" = x; then
5926   as_myself=$0
5927 fi
5928 if test ! -f "$as_myself"; then
5929   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5930   { (exit 1); exit 1; }
5931 fi
5932
5933 # Work around bugs in pre-3.0 UWIN ksh.
5934 for as_var in ENV MAIL MAILPATH
5935 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5936 done
5937 PS1='$ '
5938 PS2='> '
5939 PS4='+ '
5940
5941 # NLS nuisances.
5942 for as_var in \
5943   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5944   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5945   LC_TELEPHONE LC_TIME
5946 do
5947   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5948     eval $as_var=C; export $as_var
5949   else
5950     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5951   fi
5952 done
5953
5954 # Required to use basename.
5955 if expr a : '\(a\)' >/dev/null 2>&1 &&
5956    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5957   as_expr=expr
5958 else
5959   as_expr=false
5960 fi
5961
5962 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5963   as_basename=basename
5964 else
5965   as_basename=false
5966 fi
5967
5968
5969 # Name of the executable.
5970 as_me=`$as_basename -- "$0" ||
5971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5972          X"$0" : 'X\(//\)$' \| \
5973          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5974 echo X/"$0" |
5975     sed '/^.*\/\([^/][^/]*\)\/*$/{
5976             s//\1/
5977             q
5978           }
5979           /^X\/\(\/\/\)$/{
5980             s//\1/
5981             q
5982           }
5983           /^X\/\(\/\).*/{
5984             s//\1/
5985             q
5986           }
5987           s/.*/./; q'`
5988
5989 # CDPATH.
5990 $as_unset CDPATH
5991
5992
5993
5994   as_lineno_1=$LINENO
5995   as_lineno_2=$LINENO
5996   test "x$as_lineno_1" != "x$as_lineno_2" &&
5997   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5998
5999   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6000   # uniformly replaced by the line number.  The first 'sed' inserts a
6001   # line-number line after each line using $LINENO; the second 'sed'
6002   # does the real work.  The second script uses 'N' to pair each
6003   # line-number line with the line containing $LINENO, and appends
6004   # trailing '-' during substitution so that $LINENO is not a special
6005   # case at line end.
6006   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6007   # scripts with optimization help from Paolo Bonzini.  Blame Lee
6008   # E. McMahon (1931-1989) for sed's syntax.  :-)
6009   sed -n '
6010     p
6011     /[$]LINENO/=
6012   ' <$as_myself |
6013     sed '
6014       s/[$]LINENO.*/&-/
6015       t lineno
6016       b
6017       :lineno
6018       N
6019       :loop
6020       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6021       t loop
6022       s/-\n.*//
6023     ' >$as_me.lineno &&
6024   chmod +x "$as_me.lineno" ||
6025     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6026    { (exit 1); exit 1; }; }
6027
6028   # Don't try to exec as it changes $[0], causing all sort of problems
6029   # (the dirname of $[0] is not the place where we might find the
6030   # original and so on.  Autoconf is especially sensitive to this).
6031   . "./$as_me.lineno"
6032   # Exit status is that of the last command.
6033   exit
6034 }
6035
6036
6037 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6038   as_dirname=dirname
6039 else
6040   as_dirname=false
6041 fi
6042
6043 ECHO_C= ECHO_N= ECHO_T=
6044 case `echo -n x` in
6045 -n*)
6046   case `echo 'x\c'` in
6047   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6048   *)   ECHO_C='\c';;
6049   esac;;
6050 *)
6051   ECHO_N='-n';;
6052 esac
6053
6054 if expr a : '\(a\)' >/dev/null 2>&1 &&
6055    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6056   as_expr=expr
6057 else
6058   as_expr=false
6059 fi
6060
6061 rm -f conf$$ conf$$.exe conf$$.file
6062 if test -d conf$$.dir; then
6063   rm -f conf$$.dir/conf$$.file
6064 else
6065   rm -f conf$$.dir
6066   mkdir conf$$.dir
6067 fi
6068 echo >conf$$.file
6069 if ln -s conf$$.file conf$$ 2>/dev/null; then
6070   as_ln_s='ln -s'
6071   # ... but there are two gotchas:
6072   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6073   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6074   # In both cases, we have to default to `cp -p'.
6075   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6076     as_ln_s='cp -p'
6077 elif ln conf$$.file conf$$ 2>/dev/null; then
6078   as_ln_s=ln
6079 else
6080   as_ln_s='cp -p'
6081 fi
6082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6083 rmdir conf$$.dir 2>/dev/null
6084
6085 if mkdir -p . 2>/dev/null; then
6086   as_mkdir_p=:
6087 else
6088   test -d ./-p && rmdir ./-p
6089   as_mkdir_p=false
6090 fi
6091
6092 if test -x / >/dev/null 2>&1; then
6093   as_test_x='test -x'
6094 else
6095   if ls -dL / >/dev/null 2>&1; then
6096     as_ls_L_option=L
6097   else
6098     as_ls_L_option=
6099   fi
6100   as_test_x='
6101     eval sh -c '\''
6102       if test -d "$1"; then
6103         test -d "$1/.";
6104       else
6105         case $1 in
6106         -*)set "./$1";;
6107         esac;
6108         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6109         ???[sx]*):;;*)false;;esac;fi
6110     '\'' sh
6111   '
6112 fi
6113 as_executable_p=$as_test_x
6114
6115 # Sed expression to map a string onto a valid CPP name.
6116 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6117
6118 # Sed expression to map a string onto a valid variable name.
6119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6120
6121
6122 exec 6>&1
6123
6124 # Save the log message, to keep $[0] and so on meaningful, and to
6125 # report actual input values of CONFIG_FILES etc. instead of their
6126 # values after options handling.
6127 ac_log="
6128 This file was extended by $as_me, which was
6129 generated by GNU Autoconf 2.61.  Invocation command line was
6130
6131   CONFIG_FILES    = $CONFIG_FILES
6132   CONFIG_HEADERS  = $CONFIG_HEADERS
6133   CONFIG_LINKS    = $CONFIG_LINKS
6134   CONFIG_COMMANDS = $CONFIG_COMMANDS
6135   $ $0 $@
6136
6137 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6138 "
6139
6140 _ACEOF
6141
6142 cat >>$CONFIG_STATUS <<_ACEOF
6143 # Files that config.status was made for.
6144 config_files="$ac_config_files"
6145 config_headers="$ac_config_headers"
6146 config_commands="$ac_config_commands"
6147
6148 _ACEOF
6149
6150 cat >>$CONFIG_STATUS <<\_ACEOF
6151 ac_cs_usage="\
6152 \`$as_me' instantiates files from templates according to the
6153 current configuration.
6154
6155 Usage: $0 [OPTIONS] [FILE]...
6156
6157   -h, --help       print this help, then exit
6158   -V, --version    print version number and configuration settings, then exit
6159   -q, --quiet      do not print progress messages
6160   -d, --debug      don't remove temporary files
6161       --recheck    update $as_me by reconfiguring in the same conditions
6162   --file=FILE[:TEMPLATE]
6163                    instantiate the configuration file FILE
6164   --header=FILE[:TEMPLATE]
6165                    instantiate the configuration header FILE
6166
6167 Configuration files:
6168 $config_files
6169
6170 Configuration headers:
6171 $config_headers
6172
6173 Configuration commands:
6174 $config_commands
6175
6176 Report bugs to <bug-autoconf@gnu.org>."
6177
6178 _ACEOF
6179 cat >>$CONFIG_STATUS <<_ACEOF
6180 ac_cs_version="\\
6181 config.status
6182 configured by $0, generated by GNU Autoconf 2.61,
6183   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6184
6185 Copyright (C) 2006 Free Software Foundation, Inc.
6186 This config.status script is free software; the Free Software Foundation
6187 gives unlimited permission to copy, distribute and modify it."
6188
6189 ac_pwd='$ac_pwd'
6190 srcdir='$srcdir'
6191 INSTALL='$INSTALL'
6192 MKDIR_P='$MKDIR_P'
6193 _ACEOF
6194
6195 cat >>$CONFIG_STATUS <<\_ACEOF
6196 # If no file are specified by the user, then we need to provide default
6197 # value.  By we need to know if files were specified by the user.
6198 ac_need_defaults=:
6199 while test $# != 0
6200 do
6201   case $1 in
6202   --*=*)
6203     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6204     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6205     ac_shift=:
6206     ;;
6207   *)
6208     ac_option=$1
6209     ac_optarg=$2
6210     ac_shift=shift
6211     ;;
6212   esac
6213
6214   case $ac_option in
6215   # Handling of the options.
6216   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6217     ac_cs_recheck=: ;;
6218   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6219     echo "$ac_cs_version"; exit ;;
6220   --debug | --debu | --deb | --de | --d | -d )
6221     debug=: ;;
6222   --file | --fil | --fi | --f )
6223     $ac_shift
6224     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6225     ac_need_defaults=false;;
6226   --header | --heade | --head | --hea )
6227     $ac_shift
6228     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6229     ac_need_defaults=false;;
6230   --he | --h)
6231     # Conflict between --help and --header
6232     { echo "$as_me: error: ambiguous option: $1
6233 Try \`$0 --help' for more information." >&2
6234    { (exit 1); exit 1; }; };;
6235   --help | --hel | -h )
6236     echo "$ac_cs_usage"; exit ;;
6237   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6238   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6239     ac_cs_silent=: ;;
6240
6241   # This is an error.
6242   -*) { echo "$as_me: error: unrecognized option: $1
6243 Try \`$0 --help' for more information." >&2
6244    { (exit 1); exit 1; }; } ;;
6245
6246   *) ac_config_targets="$ac_config_targets $1"
6247      ac_need_defaults=false ;;
6248
6249   esac
6250   shift
6251 done
6252
6253 ac_configure_extra_args=
6254
6255 if $ac_cs_silent; then
6256   exec 6>/dev/null
6257   ac_configure_extra_args="$ac_configure_extra_args --silent"
6258 fi
6259
6260 _ACEOF
6261 cat >>$CONFIG_STATUS <<_ACEOF
6262 if \$ac_cs_recheck; then
6263   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6264   CONFIG_SHELL=$SHELL
6265   export CONFIG_SHELL
6266   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6267 fi
6268
6269 _ACEOF
6270 cat >>$CONFIG_STATUS <<\_ACEOF
6271 exec 5>>config.log
6272 {
6273   echo
6274   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6275 ## Running $as_me. ##
6276 _ASBOX
6277   echo "$ac_log"
6278 } >&5
6279
6280 _ACEOF
6281 cat >>$CONFIG_STATUS <<_ACEOF
6282 #
6283 # INIT-COMMANDS
6284 #
6285 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6286
6287 _ACEOF
6288
6289 cat >>$CONFIG_STATUS <<\_ACEOF
6290
6291 # Handling of arguments.
6292 for ac_config_target in $ac_config_targets
6293 do
6294   case $ac_config_target in
6295     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6296     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6297     "gob2.spec") CONFIG_FILES="$CONFIG_FILES gob2.spec" ;;
6298     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6299     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6300     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6301     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
6302     "doc/gob2.1") CONFIG_FILES="$CONFIG_FILES doc/gob2.1" ;;
6303
6304   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6305 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6306    { (exit 1); exit 1; }; };;
6307   esac
6308 done
6309
6310
6311 # If the user did not use the arguments to specify the items to instantiate,
6312 # then the envvar interface is used.  Set only those that are not.
6313 # We use the long form for the default assignment because of an extremely
6314 # bizarre bug on SunOS 4.1.3.
6315 if $ac_need_defaults; then
6316   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6317   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6318   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6319 fi
6320
6321 # Have a temporary directory for convenience.  Make it in the build tree
6322 # simply because there is no reason against having it here, and in addition,
6323 # creating and moving files from /tmp can sometimes cause problems.
6324 # Hook for its removal unless debugging.
6325 # Note that there is a small window in which the directory will not be cleaned:
6326 # after its creation but before its name has been assigned to `$tmp'.
6327 $debug ||
6328 {
6329   tmp=
6330   trap 'exit_status=$?
6331   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6332 ' 0
6333   trap '{ (exit 1); exit 1; }' 1 2 13 15
6334 }
6335 # Create a (secure) tmp directory for tmp files.
6336
6337 {
6338   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6339   test -n "$tmp" && test -d "$tmp"
6340 }  ||
6341 {
6342   tmp=./conf$$-$RANDOM
6343   (umask 077 && mkdir "$tmp")
6344 } ||
6345 {
6346    echo "$me: cannot create a temporary directory in ." >&2
6347    { (exit 1); exit 1; }
6348 }
6349
6350 #
6351 # Set up the sed scripts for CONFIG_FILES section.
6352 #
6353
6354 # No need to generate the scripts if there are no CONFIG_FILES.
6355 # This happens for instance when ./config.status config.h
6356 if test -n "$CONFIG_FILES"; then
6357
6358 _ACEOF
6359
6360
6361
6362 ac_delim='%!_!# '
6363 for ac_last_try in false false false false false :; do
6364   cat >conf$$subs.sed <<_ACEOF
6365 SHELL!$SHELL$ac_delim
6366 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6367 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6368 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6369 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6370 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6371 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6372 exec_prefix!$exec_prefix$ac_delim
6373 prefix!$prefix$ac_delim
6374 program_transform_name!$program_transform_name$ac_delim
6375 bindir!$bindir$ac_delim
6376 sbindir!$sbindir$ac_delim
6377 libexecdir!$libexecdir$ac_delim
6378 datarootdir!$datarootdir$ac_delim
6379 datadir!$datadir$ac_delim
6380 sysconfdir!$sysconfdir$ac_delim
6381 sharedstatedir!$sharedstatedir$ac_delim
6382 localstatedir!$localstatedir$ac_delim
6383 includedir!$includedir$ac_delim
6384 oldincludedir!$oldincludedir$ac_delim
6385 docdir!$docdir$ac_delim
6386 infodir!$infodir$ac_delim
6387 htmldir!$htmldir$ac_delim
6388 dvidir!$dvidir$ac_delim
6389 pdfdir!$pdfdir$ac_delim
6390 psdir!$psdir$ac_delim
6391 libdir!$libdir$ac_delim
6392 localedir!$localedir$ac_delim
6393 mandir!$mandir$ac_delim
6394 DEFS!$DEFS$ac_delim
6395 ECHO_C!$ECHO_C$ac_delim
6396 ECHO_N!$ECHO_N$ac_delim
6397 ECHO_T!$ECHO_T$ac_delim
6398 LIBS!$LIBS$ac_delim
6399 build_alias!$build_alias$ac_delim
6400 host_alias!$host_alias$ac_delim
6401 target_alias!$target_alias$ac_delim
6402 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6403 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6404 INSTALL_DATA!$INSTALL_DATA$ac_delim
6405 am__isrc!$am__isrc$ac_delim
6406 CYGPATH_W!$CYGPATH_W$ac_delim
6407 PACKAGE!$PACKAGE$ac_delim
6408 VERSION!$VERSION$ac_delim
6409 ACLOCAL!$ACLOCAL$ac_delim
6410 AUTOCONF!$AUTOCONF$ac_delim
6411 AUTOMAKE!$AUTOMAKE$ac_delim
6412 AUTOHEADER!$AUTOHEADER$ac_delim
6413 MAKEINFO!$MAKEINFO$ac_delim
6414 install_sh!$install_sh$ac_delim
6415 STRIP!$STRIP$ac_delim
6416 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
6417 mkdir_p!$mkdir_p$ac_delim
6418 AWK!$AWK$ac_delim
6419 SET_MAKE!$SET_MAKE$ac_delim
6420 am__leading_dot!$am__leading_dot$ac_delim
6421 AMTAR!$AMTAR$ac_delim
6422 am__tar!$am__tar$ac_delim
6423 am__untar!$am__untar$ac_delim
6424 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
6425 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
6426 MAINT!$MAINT$ac_delim
6427 NOINSTGOB_TRUE!$NOINSTGOB_TRUE$ac_delim
6428 NOINSTGOB_FALSE!$NOINSTGOB_FALSE$ac_delim
6429 SUBDIRS!$SUBDIRS$ac_delim
6430 INSTGOB!$INSTGOB$ac_delim
6431 NOINSTGOB!$NOINSTGOB$ac_delim
6432 CC!$CC$ac_delim
6433 CFLAGS!$CFLAGS$ac_delim
6434 LDFLAGS!$LDFLAGS$ac_delim
6435 CPPFLAGS!$CPPFLAGS$ac_delim
6436 ac_ct_CC!$ac_ct_CC$ac_delim
6437 EXEEXT!$EXEEXT$ac_delim
6438 OBJEXT!$OBJEXT$ac_delim
6439 DEPDIR!$DEPDIR$ac_delim
6440 am__include!$am__include$ac_delim
6441 am__quote!$am__quote$ac_delim
6442 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
6443 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
6444 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
6445 CCDEPMODE!$CCDEPMODE$ac_delim
6446 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
6447 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
6448 CPP!$CPP$ac_delim
6449 GREP!$GREP$ac_delim
6450 EGREP!$EGREP$ac_delim
6451 YACC!$YACC$ac_delim
6452 YFLAGS!$YFLAGS$ac_delim
6453 LEX!$LEX$ac_delim
6454 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
6455 LEXLIB!$LEXLIB$ac_delim
6456 RM!$RM$ac_delim
6457 MV!$MV$ac_delim
6458 TAR!$TAR$ac_delim
6459 PKG_CONFIG!$PKG_CONFIG$ac_delim
6460 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
6461 GLIB_LIBS!$GLIB_LIBS$ac_delim
6462 _ACEOF
6463
6464   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
6465     break
6466   elif $ac_last_try; then
6467     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6468 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6469    { (exit 1); exit 1; }; }
6470   else
6471     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6472   fi
6473 done
6474
6475 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6476 if test -n "$ac_eof"; then
6477   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6478   ac_eof=`expr $ac_eof + 1`
6479 fi
6480
6481 cat >>$CONFIG_STATUS <<_ACEOF
6482 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6484 _ACEOF
6485 sed '
6486 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6487 s/^/s,@/; s/!/@,|#_!!_#|/
6488 :n
6489 t n
6490 s/'"$ac_delim"'$/,g/; t
6491 s/$/\\/; p
6492 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6493 ' >>$CONFIG_STATUS <conf$$subs.sed
6494 rm -f conf$$subs.sed
6495 cat >>$CONFIG_STATUS <<_ACEOF
6496 CEOF$ac_eof
6497 _ACEOF
6498
6499
6500 ac_delim='%!_!# '
6501 for ac_last_try in false false false false false :; do
6502   cat >conf$$subs.sed <<_ACEOF
6503 LIBOBJS!$LIBOBJS$ac_delim
6504 LTLIBOBJS!$LTLIBOBJS$ac_delim
6505 _ACEOF
6506
6507   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
6508     break
6509   elif $ac_last_try; then
6510     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6511 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6512    { (exit 1); exit 1; }; }
6513   else
6514     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6515   fi
6516 done
6517
6518 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6519 if test -n "$ac_eof"; then
6520   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6521   ac_eof=`expr $ac_eof + 1`
6522 fi
6523
6524 cat >>$CONFIG_STATUS <<_ACEOF
6525 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
6526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6527 _ACEOF
6528 sed '
6529 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6530 s/^/s,@/; s/!/@,|#_!!_#|/
6531 :n
6532 t n
6533 s/'"$ac_delim"'$/,g/; t
6534 s/$/\\/; p
6535 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6536 ' >>$CONFIG_STATUS <conf$$subs.sed
6537 rm -f conf$$subs.sed
6538 cat >>$CONFIG_STATUS <<_ACEOF
6539 :end
6540 s/|#_!!_#|//g
6541 CEOF$ac_eof
6542 _ACEOF
6543
6544
6545 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6546 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6547 # trailing colons and then remove the whole line if VPATH becomes empty
6548 # (actually we leave an empty line to preserve line numbers).
6549 if test "x$srcdir" = x.; then
6550   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6551 s/:*\$(srcdir):*/:/
6552 s/:*\${srcdir}:*/:/
6553 s/:*@srcdir@:*/:/
6554 s/^\([^=]*=[     ]*\):*/\1/
6555 s/:*$//
6556 s/^[^=]*=[       ]*$//
6557 }'
6558 fi
6559
6560 cat >>$CONFIG_STATUS <<\_ACEOF
6561 fi # test -n "$CONFIG_FILES"
6562
6563
6564 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
6565 do
6566   case $ac_tag in
6567   :[FHLC]) ac_mode=$ac_tag; continue;;
6568   esac
6569   case $ac_mode$ac_tag in
6570   :[FHL]*:*);;
6571   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6572 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6573    { (exit 1); exit 1; }; };;
6574   :[FH]-) ac_tag=-:-;;
6575   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6576   esac
6577   ac_save_IFS=$IFS
6578   IFS=:
6579   set x $ac_tag
6580   IFS=$ac_save_IFS
6581   shift
6582   ac_file=$1
6583   shift
6584
6585   case $ac_mode in
6586   :L) ac_source=$1;;
6587   :[FH])
6588     ac_file_inputs=
6589     for ac_f
6590     do
6591       case $ac_f in
6592       -) ac_f="$tmp/stdin";;
6593       *) # Look for the file first in the build tree, then in the source tree
6594          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6595          # because $ac_f cannot contain `:'.
6596          test -f "$ac_f" ||
6597            case $ac_f in
6598            [\\/$]*) false;;
6599            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6600            esac ||
6601            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6602 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6603    { (exit 1); exit 1; }; };;
6604       esac
6605       ac_file_inputs="$ac_file_inputs $ac_f"
6606     done
6607
6608     # Let's still pretend it is `configure' which instantiates (i.e., don't
6609     # use $as_me), people would be surprised to read:
6610     #    /* config.h.  Generated by config.status.  */
6611     configure_input="Generated from "`IFS=:
6612           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6613     if test x"$ac_file" != x-; then
6614       configure_input="$ac_file.  $configure_input"
6615       { echo "$as_me:$LINENO: creating $ac_file" >&5
6616 echo "$as_me: creating $ac_file" >&6;}
6617     fi
6618
6619     case $ac_tag in
6620     *:-:* | *:-) cat >"$tmp/stdin";;
6621     esac
6622     ;;
6623   esac
6624
6625   ac_dir=`$as_dirname -- "$ac_file" ||
6626 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6627          X"$ac_file" : 'X\(//\)[^/]' \| \
6628          X"$ac_file" : 'X\(//\)$' \| \
6629          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6630 echo X"$ac_file" |
6631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6632             s//\1/
6633             q
6634           }
6635           /^X\(\/\/\)[^/].*/{
6636             s//\1/
6637             q
6638           }
6639           /^X\(\/\/\)$/{
6640             s//\1/
6641             q
6642           }
6643           /^X\(\/\).*/{
6644             s//\1/
6645             q
6646           }
6647           s/.*/./; q'`
6648   { as_dir="$ac_dir"
6649   case $as_dir in #(
6650   -*) as_dir=./$as_dir;;
6651   esac
6652   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6653     as_dirs=
6654     while :; do
6655       case $as_dir in #(
6656       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6657       *) as_qdir=$as_dir;;
6658       esac
6659       as_dirs="'$as_qdir' $as_dirs"
6660       as_dir=`$as_dirname -- "$as_dir" ||
6661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6662          X"$as_dir" : 'X\(//\)[^/]' \| \
6663          X"$as_dir" : 'X\(//\)$' \| \
6664          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6665 echo X"$as_dir" |
6666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6667             s//\1/
6668             q
6669           }
6670           /^X\(\/\/\)[^/].*/{
6671             s//\1/
6672             q
6673           }
6674           /^X\(\/\/\)$/{
6675             s//\1/
6676             q
6677           }
6678           /^X\(\/\).*/{
6679             s//\1/
6680             q
6681           }
6682           s/.*/./; q'`
6683       test -d "$as_dir" && break
6684     done
6685     test -z "$as_dirs" || eval "mkdir $as_dirs"
6686   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6687 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6688    { (exit 1); exit 1; }; }; }
6689   ac_builddir=.
6690
6691 case "$ac_dir" in
6692 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6693 *)
6694   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6695   # A ".." for each directory in $ac_dir_suffix.
6696   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6697   case $ac_top_builddir_sub in
6698   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6699   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6700   esac ;;
6701 esac
6702 ac_abs_top_builddir=$ac_pwd
6703 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6704 # for backward compatibility:
6705 ac_top_builddir=$ac_top_build_prefix
6706
6707 case $srcdir in
6708   .)  # We are building in place.
6709     ac_srcdir=.
6710     ac_top_srcdir=$ac_top_builddir_sub
6711     ac_abs_top_srcdir=$ac_pwd ;;
6712   [\\/]* | ?:[\\/]* )  # Absolute name.
6713     ac_srcdir=$srcdir$ac_dir_suffix;
6714     ac_top_srcdir=$srcdir
6715     ac_abs_top_srcdir=$srcdir ;;
6716   *) # Relative name.
6717     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6718     ac_top_srcdir=$ac_top_build_prefix$srcdir
6719     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6720 esac
6721 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6722
6723
6724   case $ac_mode in
6725   :F)
6726   #
6727   # CONFIG_FILE
6728   #
6729
6730   case $INSTALL in
6731   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6732   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6733   esac
6734   ac_MKDIR_P=$MKDIR_P
6735   case $MKDIR_P in
6736   [\\/$]* | ?:[\\/]* ) ;;
6737   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6738   esac
6739 _ACEOF
6740
6741 cat >>$CONFIG_STATUS <<\_ACEOF
6742 # If the template does not know about datarootdir, expand it.
6743 # FIXME: This hack should be removed a few years after 2.60.
6744 ac_datarootdir_hack=; ac_datarootdir_seen=
6745
6746 case `sed -n '/datarootdir/ {
6747   p
6748   q
6749 }
6750 /@datadir@/p
6751 /@docdir@/p
6752 /@infodir@/p
6753 /@localedir@/p
6754 /@mandir@/p
6755 ' $ac_file_inputs` in
6756 *datarootdir*) ac_datarootdir_seen=yes;;
6757 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6758   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6759 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6760 _ACEOF
6761 cat >>$CONFIG_STATUS <<_ACEOF
6762   ac_datarootdir_hack='
6763   s&@datadir@&$datadir&g
6764   s&@docdir@&$docdir&g
6765   s&@infodir@&$infodir&g
6766   s&@localedir@&$localedir&g
6767   s&@mandir@&$mandir&g
6768     s&\\\${datarootdir}&$datarootdir&g' ;;
6769 esac
6770 _ACEOF
6771
6772 # Neutralize VPATH when `$srcdir' = `.'.
6773 # Shell code in configure.ac might set extrasub.
6774 # FIXME: do we really want to maintain this feature?
6775 cat >>$CONFIG_STATUS <<_ACEOF
6776   sed "$ac_vpsub
6777 $extrasub
6778 _ACEOF
6779 cat >>$CONFIG_STATUS <<\_ACEOF
6780 :t
6781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6782 s&@configure_input@&$configure_input&;t t
6783 s&@top_builddir@&$ac_top_builddir_sub&;t t
6784 s&@srcdir@&$ac_srcdir&;t t
6785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6786 s&@top_srcdir@&$ac_top_srcdir&;t t
6787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6788 s&@builddir@&$ac_builddir&;t t
6789 s&@abs_builddir@&$ac_abs_builddir&;t t
6790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6791 s&@INSTALL@&$ac_INSTALL&;t t
6792 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6793 $ac_datarootdir_hack
6794 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
6795
6796 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6797   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6798   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6799   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6800 which seems to be undefined.  Please make sure it is defined." >&5
6801 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6802 which seems to be undefined.  Please make sure it is defined." >&2;}
6803
6804   rm -f "$tmp/stdin"
6805   case $ac_file in
6806   -) cat "$tmp/out"; rm -f "$tmp/out";;
6807   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6808   esac
6809  ;;
6810   :H)
6811   #
6812   # CONFIG_HEADER
6813   #
6814 _ACEOF
6815
6816 # Transform confdefs.h into a sed script `conftest.defines', that
6817 # substitutes the proper values into config.h.in to produce config.h.
6818 rm -f conftest.defines conftest.tail
6819 # First, append a space to every undef/define line, to ease matching.
6820 echo 's/$/ /' >conftest.defines
6821 # Then, protect against being on the right side of a sed subst, or in
6822 # an unquoted here document, in config.status.  If some macros were
6823 # called several times there might be several #defines for the same
6824 # symbol, which is useless.  But do not sort them, since the last
6825 # AC_DEFINE must be honored.
6826 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6827 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6828 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6829 # PARAMS is the parameter list in the macro definition--in most cases, it's
6830 # just an empty string.
6831 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
6832 ac_dB='\\)[      (].*,\\1define\\2'
6833 ac_dC=' '
6834 ac_dD=' ,'
6835
6836 uniq confdefs.h |
6837   sed -n '
6838         t rset
6839         :rset
6840         s/^[     ]*#[    ]*define[       ][      ]*//
6841         t ok
6842         d
6843         :ok
6844         s/[\\&,]/\\&/g
6845         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6846         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6847   ' >>conftest.defines
6848
6849 # Remove the space that was appended to ease matching.
6850 # Then replace #undef with comments.  This is necessary, for
6851 # example, in the case of _POSIX_SOURCE, which is predefined and required
6852 # on some systems where configure will not decide to define it.
6853 # (The regexp can be short, since the line contains either #define or #undef.)
6854 echo 's/ $//
6855 s,^[     #]*u.*,/* & */,' >>conftest.defines
6856
6857 # Break up conftest.defines:
6858 ac_max_sed_lines=50
6859
6860 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6861 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6862 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6863 # et cetera.
6864 ac_in='$ac_file_inputs'
6865 ac_out='"$tmp/out1"'
6866 ac_nxt='"$tmp/out2"'
6867
6868 while :
6869 do
6870   # Write a here document:
6871     cat >>$CONFIG_STATUS <<_ACEOF
6872     # First, check the format of the line:
6873     cat >"\$tmp/defines.sed" <<\\CEOF
6874 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
6875 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
6876 b
6877 :def
6878 _ACEOF
6879   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6880   echo 'CEOF
6881     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6882   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6883   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6884   grep . conftest.tail >/dev/null || break
6885   rm -f conftest.defines
6886   mv conftest.tail conftest.defines
6887 done
6888 rm -f conftest.defines conftest.tail
6889
6890 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6891 cat >>$CONFIG_STATUS <<\_ACEOF
6892   if test x"$ac_file" != x-; then
6893     echo "/* $configure_input  */" >"$tmp/config.h"
6894     cat "$ac_result" >>"$tmp/config.h"
6895     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6896       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6897 echo "$as_me: $ac_file is unchanged" >&6;}
6898     else
6899       rm -f $ac_file
6900       mv "$tmp/config.h" $ac_file
6901     fi
6902   else
6903     echo "/* $configure_input  */"
6904     cat "$ac_result"
6905   fi
6906   rm -f "$tmp/out12"
6907 # Compute $ac_file's index in $config_headers.
6908 _am_stamp_count=1
6909 for _am_header in $config_headers :; do
6910   case $_am_header in
6911     $ac_file | $ac_file:* )
6912       break ;;
6913     * )
6914       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6915   esac
6916 done
6917 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
6918 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6919          X$ac_file : 'X\(//\)[^/]' \| \
6920          X$ac_file : 'X\(//\)$' \| \
6921          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
6922 echo X$ac_file |
6923     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6924             s//\1/
6925             q
6926           }
6927           /^X\(\/\/\)[^/].*/{
6928             s//\1/
6929             q
6930           }
6931           /^X\(\/\/\)$/{
6932             s//\1/
6933             q
6934           }
6935           /^X\(\/\).*/{
6936             s//\1/
6937             q
6938           }
6939           s/.*/./; q'`/stamp-h$_am_stamp_count
6940  ;;
6941
6942   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
6943 echo "$as_me: executing $ac_file commands" >&6;}
6944  ;;
6945   esac
6946
6947
6948   case $ac_file$ac_mode in
6949     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6950   # Strip MF so we end up with the name of the file.
6951   mf=`echo "$mf" | sed -e 's/:.*$//'`
6952   # Check whether this is an Automake generated Makefile or not.
6953   # We used to match only the files named `Makefile.in', but
6954   # some people rename them; so instead we look at the file content.
6955   # Grep'ing the first line is not enough: some people post-process
6956   # each Makefile.in and add a new line on top of each file to say so.
6957   # Grep'ing the whole file is not good either: AIX grep has a line
6958   # limit of 2048, but all sed's we know have understand at least 4000.
6959   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6960     dirpart=`$as_dirname -- "$mf" ||
6961 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6962          X"$mf" : 'X\(//\)[^/]' \| \
6963          X"$mf" : 'X\(//\)$' \| \
6964          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6965 echo X"$mf" |
6966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6967             s//\1/
6968             q
6969           }
6970           /^X\(\/\/\)[^/].*/{
6971             s//\1/
6972             q
6973           }
6974           /^X\(\/\/\)$/{
6975             s//\1/
6976             q
6977           }
6978           /^X\(\/\).*/{
6979             s//\1/
6980             q
6981           }
6982           s/.*/./; q'`
6983   else
6984     continue
6985   fi
6986   # Extract the definition of DEPDIR, am__include, and am__quote
6987   # from the Makefile without running `make'.
6988   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6989   test -z "$DEPDIR" && continue
6990   am__include=`sed -n 's/^am__include = //p' < "$mf"`
6991   test -z "am__include" && continue
6992   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6993   # When using ansi2knr, U may be empty or an underscore; expand it
6994   U=`sed -n 's/^U = //p' < "$mf"`
6995   # Find all dependency output files, they are included files with
6996   # $(DEPDIR) in their names.  We invoke sed twice because it is the
6997   # simplest approach to changing $(DEPDIR) to its actual value in the
6998   # expansion.
6999   for file in `sed -n "
7000     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7001        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7002     # Make sure the directory exists.
7003     test -f "$dirpart/$file" && continue
7004     fdir=`$as_dirname -- "$file" ||
7005 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7006          X"$file" : 'X\(//\)[^/]' \| \
7007          X"$file" : 'X\(//\)$' \| \
7008          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7009 echo X"$file" |
7010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7011             s//\1/
7012             q
7013           }
7014           /^X\(\/\/\)[^/].*/{
7015             s//\1/
7016             q
7017           }
7018           /^X\(\/\/\)$/{
7019             s//\1/
7020             q
7021           }
7022           /^X\(\/\).*/{
7023             s//\1/
7024             q
7025           }
7026           s/.*/./; q'`
7027     { as_dir=$dirpart/$fdir
7028   case $as_dir in #(
7029   -*) as_dir=./$as_dir;;
7030   esac
7031   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7032     as_dirs=
7033     while :; do
7034       case $as_dir in #(
7035       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7036       *) as_qdir=$as_dir;;
7037       esac
7038       as_dirs="'$as_qdir' $as_dirs"
7039       as_dir=`$as_dirname -- "$as_dir" ||
7040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7041          X"$as_dir" : 'X\(//\)[^/]' \| \
7042          X"$as_dir" : 'X\(//\)$' \| \
7043          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7044 echo X"$as_dir" |
7045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7046             s//\1/
7047             q
7048           }
7049           /^X\(\/\/\)[^/].*/{
7050             s//\1/
7051             q
7052           }
7053           /^X\(\/\/\)$/{
7054             s//\1/
7055             q
7056           }
7057           /^X\(\/\).*/{
7058             s//\1/
7059             q
7060           }
7061           s/.*/./; q'`
7062       test -d "$as_dir" && break
7063     done
7064     test -z "$as_dirs" || eval "mkdir $as_dirs"
7065   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7066 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7067    { (exit 1); exit 1; }; }; }
7068     # echo "creating $dirpart/$file"
7069     echo '# dummy' > "$dirpart/$file"
7070   done
7071 done
7072  ;;
7073
7074   esac
7075 done # for ac_tag
7076
7077
7078 { (exit 0); exit 0; }
7079 _ACEOF
7080 chmod +x $CONFIG_STATUS
7081 ac_clean_files=$ac_clean_files_save
7082
7083
7084 # configure is writing to config.log, and then calls config.status.
7085 # config.status does its own redirection, appending to config.log.
7086 # Unfortunately, on DOS this fails, as config.log is still kept open
7087 # by configure, so config.status won't be able to write to it; its
7088 # output is simply discarded.  So we exec the FD to /dev/null,
7089 # effectively closing config.log, so it can be properly (re)opened and
7090 # appended to by config.status.  When coming back to configure, we
7091 # need to make the FD available again.
7092 if test "$no_create" != yes; then
7093   ac_cs_success=:
7094   ac_config_status_args=
7095   test "$silent" = yes &&
7096     ac_config_status_args="$ac_config_status_args --quiet"
7097   exec 5>/dev/null
7098   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7099   exec 5>>config.log
7100   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7101   # would make configure fail if this is the last instruction.
7102   $ac_cs_success || { (exit 1); exit 1; }
7103 fi
7104