]> git.karo-electronics.de Git - gbdfed.git/blob - configure
Initial import of upstream V1.6 from
[gbdfed.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="gbdfed.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 CC
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
660 XX_CFLAGS
661 RM
662 CP
663 CPP
664 GREP
665 EGREP
666 LIBOBJS
667 PKG_CONFIG
668 FREETYPE_CFLAGS
669 FREETYPE_LIBS
670 GTK_CFLAGS
671 GTK_LIBS
672 XMKMF
673 X_CFLAGS
674 X_PRE_LIBS
675 X_LIBS
676 X_EXTRA_LIBS
677 DEFINES
678 HBFSRC
679 HBFOBJ
680 BDFGRABSRC
681 BDFGRABOBJ
682 LTLIBOBJS'
683 ac_subst_files=''
684       ac_precious_vars='build_alias
685 host_alias
686 target_alias
687 CC
688 CFLAGS
689 LDFLAGS
690 LIBS
691 CPPFLAGS
692 CPP
693 XMKMF'
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 X features:
1254   --x-includes=DIR    X include files are in DIR
1255   --x-libraries=DIR   X library files are in DIR
1256 _ACEOF
1257 fi
1258
1259 if test -n "$ac_init_help"; then
1260
1261   cat <<\_ACEOF
1262
1263 Optional Packages:
1264   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1265   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1266   --with-x                use the X Window System
1267
1268 Some influential environment variables:
1269   CC          C compiler command
1270   CFLAGS      C compiler flags
1271   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1272               nonstandard directory <lib dir>
1273   LIBS        libraries to pass to the linker, e.g. -l<library>
1274   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1275               you have headers in a nonstandard directory <include dir>
1276   CPP         C preprocessor
1277   XMKMF       Path to xmkmf, Makefile generator for X Window System
1278
1279 Use these variables to override the choices made by `configure' or to help
1280 it to find libraries and programs with nonstandard names/locations.
1281
1282 _ACEOF
1283 ac_status=$?
1284 fi
1285
1286 if test "$ac_init_help" = "recursive"; then
1287   # If there are subdirs, report their specific --help.
1288   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1289     test -d "$ac_dir" || continue
1290     ac_builddir=.
1291
1292 case "$ac_dir" in
1293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1294 *)
1295   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1296   # A ".." for each directory in $ac_dir_suffix.
1297   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1298   case $ac_top_builddir_sub in
1299   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1300   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1301   esac ;;
1302 esac
1303 ac_abs_top_builddir=$ac_pwd
1304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1305 # for backward compatibility:
1306 ac_top_builddir=$ac_top_build_prefix
1307
1308 case $srcdir in
1309   .)  # We are building in place.
1310     ac_srcdir=.
1311     ac_top_srcdir=$ac_top_builddir_sub
1312     ac_abs_top_srcdir=$ac_pwd ;;
1313   [\\/]* | ?:[\\/]* )  # Absolute name.
1314     ac_srcdir=$srcdir$ac_dir_suffix;
1315     ac_top_srcdir=$srcdir
1316     ac_abs_top_srcdir=$srcdir ;;
1317   *) # Relative name.
1318     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1319     ac_top_srcdir=$ac_top_build_prefix$srcdir
1320     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1321 esac
1322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1323
1324     cd "$ac_dir" || { ac_status=$?; continue; }
1325     # Check for guested configure.
1326     if test -f "$ac_srcdir/configure.gnu"; then
1327       echo &&
1328       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1329     elif test -f "$ac_srcdir/configure"; then
1330       echo &&
1331       $SHELL "$ac_srcdir/configure" --help=recursive
1332     else
1333       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1334     fi || ac_status=$?
1335     cd "$ac_pwd" || { ac_status=$?; break; }
1336   done
1337 fi
1338
1339 test -n "$ac_init_help" && exit $ac_status
1340 if $ac_init_version; then
1341   cat <<\_ACEOF
1342 configure
1343 generated by GNU Autoconf 2.61
1344
1345 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1346 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1347 This configure script is free software; the Free Software Foundation
1348 gives unlimited permission to copy, distribute and modify it.
1349 _ACEOF
1350   exit
1351 fi
1352 cat >config.log <<_ACEOF
1353 This file contains any messages produced by compilers while
1354 running configure, to aid debugging if configure makes a mistake.
1355
1356 It was created by $as_me, which was
1357 generated by GNU Autoconf 2.61.  Invocation command line was
1358
1359   $ $0 $@
1360
1361 _ACEOF
1362 exec 5>>config.log
1363 {
1364 cat <<_ASUNAME
1365 ## --------- ##
1366 ## Platform. ##
1367 ## --------- ##
1368
1369 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1370 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1371 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1372 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1373 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1374
1375 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1376 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1377
1378 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1379 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1380 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1381 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1382 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1383 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1384 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1385
1386 _ASUNAME
1387
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391   IFS=$as_save_IFS
1392   test -z "$as_dir" && as_dir=.
1393   echo "PATH: $as_dir"
1394 done
1395 IFS=$as_save_IFS
1396
1397 } >&5
1398
1399 cat >&5 <<_ACEOF
1400
1401
1402 ## ----------- ##
1403 ## Core tests. ##
1404 ## ----------- ##
1405
1406 _ACEOF
1407
1408
1409 # Keep a trace of the command line.
1410 # Strip out --no-create and --no-recursion so they do not pile up.
1411 # Strip out --silent because we don't want to record it for future runs.
1412 # Also quote any args containing shell meta-characters.
1413 # Make two passes to allow for proper duplicate-argument suppression.
1414 ac_configure_args=
1415 ac_configure_args0=
1416 ac_configure_args1=
1417 ac_must_keep_next=false
1418 for ac_pass in 1 2
1419 do
1420   for ac_arg
1421   do
1422     case $ac_arg in
1423     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1424     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1425     | -silent | --silent | --silen | --sile | --sil)
1426       continue ;;
1427     *\'*)
1428       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1429     esac
1430     case $ac_pass in
1431     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1432     2)
1433       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1434       if test $ac_must_keep_next = true; then
1435         ac_must_keep_next=false # Got value, back to normal.
1436       else
1437         case $ac_arg in
1438           *=* | --config-cache | -C | -disable-* | --disable-* \
1439           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1440           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1441           | -with-* | --with-* | -without-* | --without-* | --x)
1442             case "$ac_configure_args0 " in
1443               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1444             esac
1445             ;;
1446           -* ) ac_must_keep_next=true ;;
1447         esac
1448       fi
1449       ac_configure_args="$ac_configure_args '$ac_arg'"
1450       ;;
1451     esac
1452   done
1453 done
1454 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1455 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1456
1457 # When interrupted or exit'd, cleanup temporary files, and complete
1458 # config.log.  We remove comments because anyway the quotes in there
1459 # would cause problems or look ugly.
1460 # WARNING: Use '\'' to represent an apostrophe within the trap.
1461 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1462 trap 'exit_status=$?
1463   # Save into config.log some information that might help in debugging.
1464   {
1465     echo
1466
1467     cat <<\_ASBOX
1468 ## ---------------- ##
1469 ## Cache variables. ##
1470 ## ---------------- ##
1471 _ASBOX
1472     echo
1473     # The following way of writing the cache mishandles newlines in values,
1474 (
1475   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1476     eval ac_val=\$$ac_var
1477     case $ac_val in #(
1478     *${as_nl}*)
1479       case $ac_var in #(
1480       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1482       esac
1483       case $ac_var in #(
1484       _ | IFS | as_nl) ;; #(
1485       *) $as_unset $ac_var ;;
1486       esac ;;
1487     esac
1488   done
1489   (set) 2>&1 |
1490     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1491     *${as_nl}ac_space=\ *)
1492       sed -n \
1493         "s/'\''/'\''\\\\'\'''\''/g;
1494           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1495       ;; #(
1496     *)
1497       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1498       ;;
1499     esac |
1500     sort
1501 )
1502     echo
1503
1504     cat <<\_ASBOX
1505 ## ----------------- ##
1506 ## Output variables. ##
1507 ## ----------------- ##
1508 _ASBOX
1509     echo
1510     for ac_var in $ac_subst_vars
1511     do
1512       eval ac_val=\$$ac_var
1513       case $ac_val in
1514       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1515       esac
1516       echo "$ac_var='\''$ac_val'\''"
1517     done | sort
1518     echo
1519
1520     if test -n "$ac_subst_files"; then
1521       cat <<\_ASBOX
1522 ## ------------------- ##
1523 ## File substitutions. ##
1524 ## ------------------- ##
1525 _ASBOX
1526       echo
1527       for ac_var in $ac_subst_files
1528       do
1529         eval ac_val=\$$ac_var
1530         case $ac_val in
1531         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1532         esac
1533         echo "$ac_var='\''$ac_val'\''"
1534       done | sort
1535       echo
1536     fi
1537
1538     if test -s confdefs.h; then
1539       cat <<\_ASBOX
1540 ## ----------- ##
1541 ## confdefs.h. ##
1542 ## ----------- ##
1543 _ASBOX
1544       echo
1545       cat confdefs.h
1546       echo
1547     fi
1548     test "$ac_signal" != 0 &&
1549       echo "$as_me: caught signal $ac_signal"
1550     echo "$as_me: exit $exit_status"
1551   } >&5
1552   rm -f core *.core core.conftest.* &&
1553     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1554     exit $exit_status
1555 ' 0
1556 for ac_signal in 1 2 13 15; do
1557   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1558 done
1559 ac_signal=0
1560
1561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1562 rm -f -r conftest* confdefs.h
1563
1564 # Predefined preprocessor variables.
1565
1566 cat >>confdefs.h <<_ACEOF
1567 #define PACKAGE_NAME "$PACKAGE_NAME"
1568 _ACEOF
1569
1570
1571 cat >>confdefs.h <<_ACEOF
1572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1573 _ACEOF
1574
1575
1576 cat >>confdefs.h <<_ACEOF
1577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1578 _ACEOF
1579
1580
1581 cat >>confdefs.h <<_ACEOF
1582 #define PACKAGE_STRING "$PACKAGE_STRING"
1583 _ACEOF
1584
1585
1586 cat >>confdefs.h <<_ACEOF
1587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1588 _ACEOF
1589
1590
1591 # Let the site file select an alternate cache file if it wants to.
1592 # Prefer explicitly selected file to automatically selected ones.
1593 if test -n "$CONFIG_SITE"; then
1594   set x "$CONFIG_SITE"
1595 elif test "x$prefix" != xNONE; then
1596   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1597 else
1598   set x "$ac_default_prefix/share/config.site" \
1599         "$ac_default_prefix/etc/config.site"
1600 fi
1601 shift
1602 for ac_site_file
1603 do
1604   if test -r "$ac_site_file"; then
1605     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1606 echo "$as_me: loading site script $ac_site_file" >&6;}
1607     sed 's/^/| /' "$ac_site_file" >&5
1608     . "$ac_site_file"
1609   fi
1610 done
1611
1612 if test -r "$cache_file"; then
1613   # Some versions of bash will fail to source /dev/null (special
1614   # files actually), so we avoid doing that.
1615   if test -f "$cache_file"; then
1616     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1617 echo "$as_me: loading cache $cache_file" >&6;}
1618     case $cache_file in
1619       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1620       *)                      . "./$cache_file";;
1621     esac
1622   fi
1623 else
1624   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1625 echo "$as_me: creating cache $cache_file" >&6;}
1626   >$cache_file
1627 fi
1628
1629 # Check that the precious variables saved in the cache have kept the same
1630 # value.
1631 ac_cache_corrupted=false
1632 for ac_var in $ac_precious_vars; do
1633   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1634   eval ac_new_set=\$ac_env_${ac_var}_set
1635   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1636   eval ac_new_val=\$ac_env_${ac_var}_value
1637   case $ac_old_set,$ac_new_set in
1638     set,)
1639       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1640 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1641       ac_cache_corrupted=: ;;
1642     ,set)
1643       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1644 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1645       ac_cache_corrupted=: ;;
1646     ,);;
1647     *)
1648       if test "x$ac_old_val" != "x$ac_new_val"; then
1649         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1650 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1651         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1652 echo "$as_me:   former value:  $ac_old_val" >&2;}
1653         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1654 echo "$as_me:   current value: $ac_new_val" >&2;}
1655         ac_cache_corrupted=:
1656       fi;;
1657   esac
1658   # Pass precious variables to config.status.
1659   if test "$ac_new_set" = set; then
1660     case $ac_new_val in
1661     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1662     *) ac_arg=$ac_var=$ac_new_val ;;
1663     esac
1664     case " $ac_configure_args " in
1665       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1666       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1667     esac
1668   fi
1669 done
1670 if $ac_cache_corrupted; then
1671   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1672 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1673   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1674 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1675    { (exit 1); exit 1; }; }
1676 fi
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694 ac_ext=c
1695 ac_cpp='$CPP $CPPFLAGS'
1696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1699
1700
1701
1702 ac_ext=c
1703 ac_cpp='$CPP $CPPFLAGS'
1704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707 if test -n "$ac_tool_prefix"; then
1708   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   if test -n "$CC"; then
1716   ac_cv_prog_CC="$CC" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1725     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727     break 2
1728   fi
1729 done
1730 done
1731 IFS=$as_save_IFS
1732
1733 fi
1734 fi
1735 CC=$ac_cv_prog_CC
1736 if test -n "$CC"; then
1737   { echo "$as_me:$LINENO: result: $CC" >&5
1738 echo "${ECHO_T}$CC" >&6; }
1739 else
1740   { echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6; }
1742 fi
1743
1744
1745 fi
1746 if test -z "$ac_cv_prog_CC"; then
1747   ac_ct_CC=$CC
1748   # Extract the first word of "gcc", so it can be a program name with args.
1749 set dummy gcc; ac_word=$2
1750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   if test -n "$ac_ct_CC"; then
1756   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761   IFS=$as_save_IFS
1762   test -z "$as_dir" && as_dir=.
1763   for ac_exec_ext in '' $ac_executable_extensions; do
1764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1765     ac_cv_prog_ac_ct_CC="gcc"
1766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767     break 2
1768   fi
1769 done
1770 done
1771 IFS=$as_save_IFS
1772
1773 fi
1774 fi
1775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1776 if test -n "$ac_ct_CC"; then
1777   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1778 echo "${ECHO_T}$ac_ct_CC" >&6; }
1779 else
1780   { echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6; }
1782 fi
1783
1784   if test "x$ac_ct_CC" = x; then
1785     CC=""
1786   else
1787     case $cross_compiling:$ac_tool_warned in
1788 yes:)
1789 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1790 whose name does not start with the host triplet.  If you think this
1791 configuration is useful to you, please write to autoconf@gnu.org." >&5
1792 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1793 whose name does not start with the host triplet.  If you think this
1794 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1795 ac_tool_warned=yes ;;
1796 esac
1797     CC=$ac_ct_CC
1798   fi
1799 else
1800   CC="$ac_cv_prog_CC"
1801 fi
1802
1803 if test -z "$CC"; then
1804           if test -n "$ac_tool_prefix"; then
1805     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1806 set dummy ${ac_tool_prefix}cc; ac_word=$2
1807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1809 if test "${ac_cv_prog_CC+set}" = set; then
1810   echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812   if test -n "$CC"; then
1813   ac_cv_prog_CC="$CC" # Let the user override the test.
1814 else
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1817 do
1818   IFS=$as_save_IFS
1819   test -z "$as_dir" && as_dir=.
1820   for ac_exec_ext in '' $ac_executable_extensions; do
1821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1822     ac_cv_prog_CC="${ac_tool_prefix}cc"
1823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824     break 2
1825   fi
1826 done
1827 done
1828 IFS=$as_save_IFS
1829
1830 fi
1831 fi
1832 CC=$ac_cv_prog_CC
1833 if test -n "$CC"; then
1834   { echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6; }
1836 else
1837   { echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6; }
1839 fi
1840
1841
1842   fi
1843 fi
1844 if test -z "$CC"; then
1845   # Extract the first word of "cc", so it can be a program name with args.
1846 set dummy cc; ac_word=$2
1847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1849 if test "${ac_cv_prog_CC+set}" = set; then
1850   echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852   if test -n "$CC"; then
1853   ac_cv_prog_CC="$CC" # Let the user override the test.
1854 else
1855   ac_prog_rejected=no
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859   IFS=$as_save_IFS
1860   test -z "$as_dir" && as_dir=.
1861   for ac_exec_ext in '' $ac_executable_extensions; do
1862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1863     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1864        ac_prog_rejected=yes
1865        continue
1866      fi
1867     ac_cv_prog_CC="cc"
1868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869     break 2
1870   fi
1871 done
1872 done
1873 IFS=$as_save_IFS
1874
1875 if test $ac_prog_rejected = yes; then
1876   # We found a bogon in the path, so make sure we never use it.
1877   set dummy $ac_cv_prog_CC
1878   shift
1879   if test $# != 0; then
1880     # We chose a different compiler from the bogus one.
1881     # However, it has the same basename, so the bogon will be chosen
1882     # first if we set CC to just the basename; use the full file name.
1883     shift
1884     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1885   fi
1886 fi
1887 fi
1888 fi
1889 CC=$ac_cv_prog_CC
1890 if test -n "$CC"; then
1891   { echo "$as_me:$LINENO: result: $CC" >&5
1892 echo "${ECHO_T}$CC" >&6; }
1893 else
1894   { echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6; }
1896 fi
1897
1898
1899 fi
1900 if test -z "$CC"; then
1901   if test -n "$ac_tool_prefix"; then
1902   for ac_prog in cl.exe
1903   do
1904     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1908 if test "${ac_cv_prog_CC+set}" = set; then
1909   echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911   if test -n "$CC"; then
1912   ac_cv_prog_CC="$CC" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917   IFS=$as_save_IFS
1918   test -z "$as_dir" && as_dir=.
1919   for ac_exec_ext in '' $ac_executable_extensions; do
1920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1921     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923     break 2
1924   fi
1925 done
1926 done
1927 IFS=$as_save_IFS
1928
1929 fi
1930 fi
1931 CC=$ac_cv_prog_CC
1932 if test -n "$CC"; then
1933   { echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6; }
1935 else
1936   { echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6; }
1938 fi
1939
1940
1941     test -n "$CC" && break
1942   done
1943 fi
1944 if test -z "$CC"; then
1945   ac_ct_CC=$CC
1946   for ac_prog in cl.exe
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_ac_ct_CC+set}" = set; then
1953   echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955   if test -n "$ac_ct_CC"; then
1956   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="$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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1976 if test -n "$ac_ct_CC"; then
1977   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1978 echo "${ECHO_T}$ac_ct_CC" >&6; }
1979 else
1980   { echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6; }
1982 fi
1983
1984
1985   test -n "$ac_ct_CC" && break
1986 done
1987
1988   if test "x$ac_ct_CC" = x; then
1989     CC=""
1990   else
1991     case $cross_compiling:$ac_tool_warned in
1992 yes:)
1993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1994 whose name does not start with the host triplet.  If you think this
1995 configuration is useful to you, please write to autoconf@gnu.org." >&5
1996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1997 whose name does not start with the host triplet.  If you think this
1998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1999 ac_tool_warned=yes ;;
2000 esac
2001     CC=$ac_ct_CC
2002   fi
2003 fi
2004
2005 fi
2006
2007
2008 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2009 See \`config.log' for more details." >&5
2010 echo "$as_me: error: no acceptable C compiler found in \$PATH
2011 See \`config.log' for more details." >&2;}
2012    { (exit 1); exit 1; }; }
2013
2014 # Provide some information about the compiler.
2015 echo "$as_me:$LINENO: checking for C compiler version" >&5
2016 ac_compiler=`set X $ac_compile; echo $2`
2017 { (ac_try="$ac_compiler --version >&5"
2018 case "(($ac_try" in
2019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020   *) ac_try_echo=$ac_try;;
2021 esac
2022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2023   (eval "$ac_compiler --version >&5") 2>&5
2024   ac_status=$?
2025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026   (exit $ac_status); }
2027 { (ac_try="$ac_compiler -v >&5"
2028 case "(($ac_try" in
2029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030   *) ac_try_echo=$ac_try;;
2031 esac
2032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2033   (eval "$ac_compiler -v >&5") 2>&5
2034   ac_status=$?
2035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036   (exit $ac_status); }
2037 { (ac_try="$ac_compiler -V >&5"
2038 case "(($ac_try" in
2039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040   *) ac_try_echo=$ac_try;;
2041 esac
2042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2043   (eval "$ac_compiler -V >&5") 2>&5
2044   ac_status=$?
2045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046   (exit $ac_status); }
2047
2048 cat >conftest.$ac_ext <<_ACEOF
2049 /* confdefs.h.  */
2050 _ACEOF
2051 cat confdefs.h >>conftest.$ac_ext
2052 cat >>conftest.$ac_ext <<_ACEOF
2053 /* end confdefs.h.  */
2054
2055 int
2056 main ()
2057 {
2058
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 ac_clean_files_save=$ac_clean_files
2064 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2065 # Try to create an executable without -o first, disregard a.out.
2066 # It will help us diagnose broken compilers, and finding out an intuition
2067 # of exeext.
2068 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2069 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2071 #
2072 # List of possible output files, starting from the most likely.
2073 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2074 # only as a last resort.  b.out is created by i960 compilers.
2075 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2076 #
2077 # The IRIX 6 linker writes into existing files which may not be
2078 # executable, retaining their permissions.  Remove them first so a
2079 # subsequent execution test works.
2080 ac_rmfiles=
2081 for ac_file in $ac_files
2082 do
2083   case $ac_file in
2084     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2085     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2086   esac
2087 done
2088 rm -f $ac_rmfiles
2089
2090 if { (ac_try="$ac_link_default"
2091 case "(($ac_try" in
2092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093   *) ac_try_echo=$ac_try;;
2094 esac
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096   (eval "$ac_link_default") 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }; then
2100   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2101 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2102 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2103 # so that the user can short-circuit this test for compilers unknown to
2104 # Autoconf.
2105 for ac_file in $ac_files ''
2106 do
2107   test -f "$ac_file" || continue
2108   case $ac_file in
2109     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2110         ;;
2111     [ab].out )
2112         # We found the default executable, but exeext='' is most
2113         # certainly right.
2114         break;;
2115     *.* )
2116         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2117         then :; else
2118            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2119         fi
2120         # We set ac_cv_exeext here because the later test for it is not
2121         # safe: cross compilers may not add the suffix if given an `-o'
2122         # argument, so we may need to know it at that point already.
2123         # Even if this section looks crufty: it has the advantage of
2124         # actually working.
2125         break;;
2126     * )
2127         break;;
2128   esac
2129 done
2130 test "$ac_cv_exeext" = no && ac_cv_exeext=
2131
2132 else
2133   ac_file=''
2134 fi
2135
2136 { echo "$as_me:$LINENO: result: $ac_file" >&5
2137 echo "${ECHO_T}$ac_file" >&6; }
2138 if test -z "$ac_file"; then
2139   echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: C compiler cannot create executables
2145 See \`config.log' for more details." >&2;}
2146    { (exit 77); exit 77; }; }
2147 fi
2148
2149 ac_exeext=$ac_cv_exeext
2150
2151 # Check that the compiler produces executables we can run.  If not, either
2152 # the compiler is broken, or we cross compile.
2153 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2154 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2155 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2156 # If not cross compiling, check that we can run a simple program.
2157 if test "$cross_compiling" != yes; then
2158   if { ac_try='./$ac_file'
2159   { (case "(($ac_try" in
2160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161   *) ac_try_echo=$ac_try;;
2162 esac
2163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164   (eval "$ac_try") 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; }; then
2168     cross_compiling=no
2169   else
2170     if test "$cross_compiling" = maybe; then
2171         cross_compiling=yes
2172     else
2173         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2174 If you meant to cross compile, use \`--host'.
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: cannot run C compiled programs.
2177 If you meant to cross compile, use \`--host'.
2178 See \`config.log' for more details." >&2;}
2179    { (exit 1); exit 1; }; }
2180     fi
2181   fi
2182 fi
2183 { echo "$as_me:$LINENO: result: yes" >&5
2184 echo "${ECHO_T}yes" >&6; }
2185
2186 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2187 ac_clean_files=$ac_clean_files_save
2188 # Check that the compiler produces executables we can run.  If not, either
2189 # the compiler is broken, or we cross compile.
2190 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2191 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2192 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2193 echo "${ECHO_T}$cross_compiling" >&6; }
2194
2195 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2196 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2197 if { (ac_try="$ac_link"
2198 case "(($ac_try" in
2199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200   *) ac_try_echo=$ac_try;;
2201 esac
2202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2203   (eval "$ac_link") 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }; then
2207   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2208 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2209 # work properly (i.e., refer to `conftest.exe'), while it won't with
2210 # `rm'.
2211 for ac_file in conftest.exe conftest conftest.*; do
2212   test -f "$ac_file" || continue
2213   case $ac_file in
2214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2215     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216           break;;
2217     * ) break;;
2218   esac
2219 done
2220 else
2221   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2224 See \`config.log' for more details." >&2;}
2225    { (exit 1); exit 1; }; }
2226 fi
2227
2228 rm -f conftest$ac_cv_exeext
2229 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2230 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2231
2232 rm -f conftest.$ac_ext
2233 EXEEXT=$ac_cv_exeext
2234 ac_exeext=$EXEEXT
2235 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2236 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2237 if test "${ac_cv_objext+set}" = set; then
2238   echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240   cat >conftest.$ac_ext <<_ACEOF
2241 /* confdefs.h.  */
2242 _ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h.  */
2246
2247 int
2248 main ()
2249 {
2250
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 rm -f conftest.o conftest.obj
2256 if { (ac_try="$ac_compile"
2257 case "(($ac_try" in
2258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259   *) ac_try_echo=$ac_try;;
2260 esac
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262   (eval "$ac_compile") 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; then
2266   for ac_file in conftest.o conftest.obj conftest.*; do
2267   test -f "$ac_file" || continue;
2268   case $ac_file in
2269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2270     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2271        break;;
2272   esac
2273 done
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2281 See \`config.log' for more details." >&2;}
2282    { (exit 1); exit 1; }; }
2283 fi
2284
2285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2286 fi
2287 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2288 echo "${ECHO_T}$ac_cv_objext" >&6; }
2289 OBJEXT=$ac_cv_objext
2290 ac_objext=$OBJEXT
2291 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2292 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2293 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302
2303 int
2304 main ()
2305 {
2306 #ifndef __GNUC__
2307        choke me
2308 #endif
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (ac_try="$ac_compile"
2316 case "(($ac_try" in
2317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318   *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321   (eval "$ac_compile") 2>conftest.er1
2322   ac_status=$?
2323   grep -v '^ *+' conftest.er1 >conftest.err
2324   rm -f conftest.er1
2325   cat conftest.err >&5
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); } && {
2328          test -z "$ac_c_werror_flag" ||
2329          test ! -s conftest.err
2330        } && test -s conftest.$ac_objext; then
2331   ac_compiler_gnu=yes
2332 else
2333   echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335
2336         ac_compiler_gnu=no
2337 fi
2338
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2341
2342 fi
2343 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2344 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2345 GCC=`test $ac_compiler_gnu = yes && echo yes`
2346 ac_test_CFLAGS=${CFLAGS+set}
2347 ac_save_CFLAGS=$CFLAGS
2348 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2349 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_cc_g+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   ac_save_c_werror_flag=$ac_c_werror_flag
2354    ac_c_werror_flag=yes
2355    ac_cv_prog_cc_g=no
2356    CFLAGS="-g"
2357    cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363
2364 int
2365 main ()
2366 {
2367
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 rm -f conftest.$ac_objext
2373 if { (ac_try="$ac_compile"
2374 case "(($ac_try" in
2375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376   *) ac_try_echo=$ac_try;;
2377 esac
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379   (eval "$ac_compile") 2>conftest.er1
2380   ac_status=$?
2381   grep -v '^ *+' conftest.er1 >conftest.err
2382   rm -f conftest.er1
2383   cat conftest.err >&5
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); } && {
2386          test -z "$ac_c_werror_flag" ||
2387          test ! -s conftest.err
2388        } && test -s conftest.$ac_objext; then
2389   ac_cv_prog_cc_g=yes
2390 else
2391   echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2393
2394         CFLAGS=""
2395       cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h.  */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h.  */
2401
2402 int
2403 main ()
2404 {
2405
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 rm -f conftest.$ac_objext
2411 if { (ac_try="$ac_compile"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_compile") 2>conftest.er1
2418   ac_status=$?
2419   grep -v '^ *+' conftest.er1 >conftest.err
2420   rm -f conftest.er1
2421   cat conftest.err >&5
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); } && {
2424          test -z "$ac_c_werror_flag" ||
2425          test ! -s conftest.err
2426        } && test -s conftest.$ac_objext; then
2427   :
2428 else
2429   echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432         ac_c_werror_flag=$ac_save_c_werror_flag
2433          CFLAGS="-g"
2434          cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h.  */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h.  */
2440
2441 int
2442 main ()
2443 {
2444
2445   ;
2446   return 0;
2447 }
2448 _ACEOF
2449 rm -f conftest.$ac_objext
2450 if { (ac_try="$ac_compile"
2451 case "(($ac_try" in
2452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453   *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456   (eval "$ac_compile") 2>conftest.er1
2457   ac_status=$?
2458   grep -v '^ *+' conftest.er1 >conftest.err
2459   rm -f conftest.er1
2460   cat conftest.err >&5
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); } && {
2463          test -z "$ac_c_werror_flag" ||
2464          test ! -s conftest.err
2465        } && test -s conftest.$ac_objext; then
2466   ac_cv_prog_cc_g=yes
2467 else
2468   echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471
2472 fi
2473
2474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 fi
2476
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 fi
2479
2480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2481    ac_c_werror_flag=$ac_save_c_werror_flag
2482 fi
2483 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2485 if test "$ac_test_CFLAGS" = set; then
2486   CFLAGS=$ac_save_CFLAGS
2487 elif test $ac_cv_prog_cc_g = yes; then
2488   if test "$GCC" = yes; then
2489     CFLAGS="-g -O2"
2490   else
2491     CFLAGS="-g"
2492   fi
2493 else
2494   if test "$GCC" = yes; then
2495     CFLAGS="-O2"
2496   else
2497     CFLAGS=
2498   fi
2499 fi
2500 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2501 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_cc_c89+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   ac_cv_prog_cc_c89=no
2506 ac_save_CC=$CC
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513 #include <stdarg.h>
2514 #include <stdio.h>
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2518 struct buf { int x; };
2519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (p, i)
2521      char **p;
2522      int i;
2523 {
2524   return p[i];
2525 }
2526 static char *f (char * (*g) (char **, int), char **p, ...)
2527 {
2528   char *s;
2529   va_list v;
2530   va_start (v,p);
2531   s = g (p, va_arg (v,int));
2532   va_end (v);
2533   return s;
2534 }
2535
2536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2537    function prototypes and stuff, but not '\xHH' hex character constants.
2538    These don't provoke an error unfortunately, instead are silently treated
2539    as 'x'.  The following induces an error, until -std is added to get
2540    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2541    array size at least.  It's necessary to write '\x00'==0 to get something
2542    that's true only with -std.  */
2543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2544
2545 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2546    inside strings and character constants.  */
2547 #define FOO(x) 'x'
2548 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2549
2550 int test (int i, double x);
2551 struct s1 {int (*f) (int a);};
2552 struct s2 {int (*f) (double a);};
2553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2554 int argc;
2555 char **argv;
2556 int
2557 main ()
2558 {
2559 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2565         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2566 do
2567   CC="$ac_save_CC $ac_arg"
2568   rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2570 case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_compile") 2>conftest.er1
2576   ac_status=$?
2577   grep -v '^ *+' conftest.er1 >conftest.err
2578   rm -f conftest.er1
2579   cat conftest.err >&5
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } && {
2582          test -z "$ac_c_werror_flag" ||
2583          test ! -s conftest.err
2584        } && test -s conftest.$ac_objext; then
2585   ac_cv_prog_cc_c89=$ac_arg
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590
2591 fi
2592
2593 rm -f core conftest.err conftest.$ac_objext
2594   test "x$ac_cv_prog_cc_c89" != "xno" && break
2595 done
2596 rm -f conftest.$ac_ext
2597 CC=$ac_save_CC
2598
2599 fi
2600 # AC_CACHE_VAL
2601 case "x$ac_cv_prog_cc_c89" in
2602   x)
2603     { echo "$as_me:$LINENO: result: none needed" >&5
2604 echo "${ECHO_T}none needed" >&6; } ;;
2605   xno)
2606     { echo "$as_me:$LINENO: result: unsupported" >&5
2607 echo "${ECHO_T}unsupported" >&6; } ;;
2608   *)
2609     CC="$CC $ac_cv_prog_cc_c89"
2610     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2612 esac
2613
2614
2615 ac_ext=c
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2620
2621
2622
2623 if test "x$CC" = xgcc; then
2624         XX_CFLAGS="-Wall -pedantic"
2625 else
2626         case "$host" in
2627                 alpha-dec-osf*)
2628                 XX_CFLAGS="-std1 -O2 -g3"
2629                 ;;
2630                 *)
2631                 XX_CFLAGS=
2632                 ;;
2633         esac
2634 fi
2635
2636
2637 # Extract the first word of "rm", so it can be a program name with args.
2638 set dummy rm; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_RM+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   if test -n "$RM"; then
2645   ac_cv_prog_RM="$RM" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650   IFS=$as_save_IFS
2651   test -z "$as_dir" && as_dir=.
2652   for ac_exec_ext in '' $ac_executable_extensions; do
2653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654     ac_cv_prog_RM="rm"
2655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656     break 2
2657   fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 RM=$ac_cv_prog_RM
2665 if test -n "$RM"; then
2666   { echo "$as_me:$LINENO: result: $RM" >&5
2667 echo "${ECHO_T}$RM" >&6; }
2668 else
2669   { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2671 fi
2672
2673
2674 # Extract the first word of "cp", so it can be a program name with args.
2675 set dummy cp; ac_word=$2
2676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_CP+set}" = set; then
2679   echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681   if test -n "$CP"; then
2682   ac_cv_prog_CP="$CP" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689   for ac_exec_ext in '' $ac_executable_extensions; do
2690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691     ac_cv_prog_CP="cp"
2692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 CP=$ac_cv_prog_CP
2702 if test -n "$CP"; then
2703   { echo "$as_me:$LINENO: result: $CP" >&5
2704 echo "${ECHO_T}$CP" >&6; }
2705 else
2706   { echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6; }
2708 fi
2709
2710
2711
2712
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2719 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2720 # On Suns, sometimes $CPP names a directory.
2721 if test -n "$CPP" && test -d "$CPP"; then
2722   CPP=
2723 fi
2724 if test -z "$CPP"; then
2725   if test "${ac_cv_prog_CPP+set}" = set; then
2726   echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728       # Double quotes because CPP needs to be expanded
2729     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2730     do
2731       ac_preproc_ok=false
2732 for ac_c_preproc_warn_flag in '' yes
2733 do
2734   # Use a header file that comes with gcc, so configuring glibc
2735   # with a fresh cross-compiler works.
2736   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2737   # <limits.h> exists even on freestanding compilers.
2738   # On the NeXT, cc -E runs the code through the compiler's parser,
2739   # not just through cpp. "Syntax error" is here to catch this case.
2740   cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h.  */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h.  */
2746 #ifdef __STDC__
2747 # include <limits.h>
2748 #else
2749 # include <assert.h>
2750 #endif
2751                      Syntax error
2752 _ACEOF
2753 if { (ac_try="$ac_cpp conftest.$ac_ext"
2754 case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2760   ac_status=$?
2761   grep -v '^ *+' conftest.er1 >conftest.err
2762   rm -f conftest.er1
2763   cat conftest.err >&5
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } >/dev/null && {
2766          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2767          test ! -s conftest.err
2768        }; then
2769   :
2770 else
2771   echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774   # Broken: fails on valid input.
2775 continue
2776 fi
2777
2778 rm -f conftest.err conftest.$ac_ext
2779
2780   # OK, works on sane cases.  Now check whether nonexistent headers
2781   # can be detected and how.
2782   cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h.  */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h.  */
2788 #include <ac_nonexistent.h>
2789 _ACEOF
2790 if { (ac_try="$ac_cpp conftest.$ac_ext"
2791 case "(($ac_try" in
2792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793   *) ac_try_echo=$ac_try;;
2794 esac
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2797   ac_status=$?
2798   grep -v '^ *+' conftest.er1 >conftest.err
2799   rm -f conftest.er1
2800   cat conftest.err >&5
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } >/dev/null && {
2803          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2804          test ! -s conftest.err
2805        }; then
2806   # Broken: success on invalid input.
2807 continue
2808 else
2809   echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2811
2812   # Passes both tests.
2813 ac_preproc_ok=:
2814 break
2815 fi
2816
2817 rm -f conftest.err conftest.$ac_ext
2818
2819 done
2820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2821 rm -f conftest.err conftest.$ac_ext
2822 if $ac_preproc_ok; then
2823   break
2824 fi
2825
2826     done
2827     ac_cv_prog_CPP=$CPP
2828
2829 fi
2830   CPP=$ac_cv_prog_CPP
2831 else
2832   ac_cv_prog_CPP=$CPP
2833 fi
2834 { echo "$as_me:$LINENO: result: $CPP" >&5
2835 echo "${ECHO_T}$CPP" >&6; }
2836 ac_preproc_ok=false
2837 for ac_c_preproc_warn_flag in '' yes
2838 do
2839   # Use a header file that comes with gcc, so configuring glibc
2840   # with a fresh cross-compiler works.
2841   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2842   # <limits.h> exists even on freestanding compilers.
2843   # On the NeXT, cc -E runs the code through the compiler's parser,
2844   # not just through cpp. "Syntax error" is here to catch this case.
2845   cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h.  */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h.  */
2851 #ifdef __STDC__
2852 # include <limits.h>
2853 #else
2854 # include <assert.h>
2855 #endif
2856                      Syntax error
2857 _ACEOF
2858 if { (ac_try="$ac_cpp conftest.$ac_ext"
2859 case "(($ac_try" in
2860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861   *) ac_try_echo=$ac_try;;
2862 esac
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2865   ac_status=$?
2866   grep -v '^ *+' conftest.er1 >conftest.err
2867   rm -f conftest.er1
2868   cat conftest.err >&5
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); } >/dev/null && {
2871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2872          test ! -s conftest.err
2873        }; then
2874   :
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879   # Broken: fails on valid input.
2880 continue
2881 fi
2882
2883 rm -f conftest.err conftest.$ac_ext
2884
2885   # OK, works on sane cases.  Now check whether nonexistent headers
2886   # can be detected and how.
2887   cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h.  */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h.  */
2893 #include <ac_nonexistent.h>
2894 _ACEOF
2895 if { (ac_try="$ac_cpp conftest.$ac_ext"
2896 case "(($ac_try" in
2897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898   *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2902   ac_status=$?
2903   grep -v '^ *+' conftest.er1 >conftest.err
2904   rm -f conftest.er1
2905   cat conftest.err >&5
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); } >/dev/null && {
2908          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2909          test ! -s conftest.err
2910        }; then
2911   # Broken: success on invalid input.
2912 continue
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917   # Passes both tests.
2918 ac_preproc_ok=:
2919 break
2920 fi
2921
2922 rm -f conftest.err conftest.$ac_ext
2923
2924 done
2925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2926 rm -f conftest.err conftest.$ac_ext
2927 if $ac_preproc_ok; then
2928   :
2929 else
2930   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2933 See \`config.log' for more details." >&2;}
2934    { (exit 1); exit 1; }; }
2935 fi
2936
2937 ac_ext=c
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942
2943
2944 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2945 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2946 if test "${ac_cv_path_GREP+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949   # Extract the first word of "grep ggrep" to use in msg output
2950 if test -z "$GREP"; then
2951 set dummy grep ggrep; ac_prog_name=$2
2952 if test "${ac_cv_path_GREP+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   ac_path_GREP_found=false
2956 # Loop through the user's path and test for each of PROGNAME-LIST
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2959 do
2960   IFS=$as_save_IFS
2961   test -z "$as_dir" && as_dir=.
2962   for ac_prog in grep ggrep; do
2963   for ac_exec_ext in '' $ac_executable_extensions; do
2964     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2965     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2966     # Check for GNU ac_path_GREP and select it if it is found.
2967   # Check for GNU $ac_path_GREP
2968 case `"$ac_path_GREP" --version 2>&1` in
2969 *GNU*)
2970   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2971 *)
2972   ac_count=0
2973   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2974   while :
2975   do
2976     cat "conftest.in" "conftest.in" >"conftest.tmp"
2977     mv "conftest.tmp" "conftest.in"
2978     cp "conftest.in" "conftest.nl"
2979     echo 'GREP' >> "conftest.nl"
2980     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2981     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2982     ac_count=`expr $ac_count + 1`
2983     if test $ac_count -gt ${ac_path_GREP_max-0}; then
2984       # Best one so far, save it but keep looking for a better one
2985       ac_cv_path_GREP="$ac_path_GREP"
2986       ac_path_GREP_max=$ac_count
2987     fi
2988     # 10*(2^10) chars as input seems more than enough
2989     test $ac_count -gt 10 && break
2990   done
2991   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2992 esac
2993
2994
2995     $ac_path_GREP_found && break 3
2996   done
2997 done
2998
2999 done
3000 IFS=$as_save_IFS
3001
3002
3003 fi
3004
3005 GREP="$ac_cv_path_GREP"
3006 if test -z "$GREP"; then
3007   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3008 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3009    { (exit 1); exit 1; }; }
3010 fi
3011
3012 else
3013   ac_cv_path_GREP=$GREP
3014 fi
3015
3016
3017 fi
3018 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3019 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3020  GREP="$ac_cv_path_GREP"
3021
3022
3023 { echo "$as_me:$LINENO: checking for egrep" >&5
3024 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3025 if test "${ac_cv_path_EGREP+set}" = set; then
3026   echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3029    then ac_cv_path_EGREP="$GREP -E"
3030    else
3031      # Extract the first word of "egrep" to use in msg output
3032 if test -z "$EGREP"; then
3033 set dummy egrep; ac_prog_name=$2
3034 if test "${ac_cv_path_EGREP+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   ac_path_EGREP_found=false
3038 # Loop through the user's path and test for each of PROGNAME-LIST
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044   for ac_prog in egrep; do
3045   for ac_exec_ext in '' $ac_executable_extensions; do
3046     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3047     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3048     # Check for GNU ac_path_EGREP and select it if it is found.
3049   # Check for GNU $ac_path_EGREP
3050 case `"$ac_path_EGREP" --version 2>&1` in
3051 *GNU*)
3052   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3053 *)
3054   ac_count=0
3055   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3056   while :
3057   do
3058     cat "conftest.in" "conftest.in" >"conftest.tmp"
3059     mv "conftest.tmp" "conftest.in"
3060     cp "conftest.in" "conftest.nl"
3061     echo 'EGREP' >> "conftest.nl"
3062     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3063     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3064     ac_count=`expr $ac_count + 1`
3065     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3066       # Best one so far, save it but keep looking for a better one
3067       ac_cv_path_EGREP="$ac_path_EGREP"
3068       ac_path_EGREP_max=$ac_count
3069     fi
3070     # 10*(2^10) chars as input seems more than enough
3071     test $ac_count -gt 10 && break
3072   done
3073   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3074 esac
3075
3076
3077     $ac_path_EGREP_found && break 3
3078   done
3079 done
3080
3081 done
3082 IFS=$as_save_IFS
3083
3084
3085 fi
3086
3087 EGREP="$ac_cv_path_EGREP"
3088 if test -z "$EGREP"; then
3089   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3090 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3091    { (exit 1); exit 1; }; }
3092 fi
3093
3094 else
3095   ac_cv_path_EGREP=$EGREP
3096 fi
3097
3098
3099    fi
3100 fi
3101 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3102 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3103  EGREP="$ac_cv_path_EGREP"
3104
3105
3106 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3107 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3108 if test "${ac_cv_header_stdc+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117 #include <stdlib.h>
3118 #include <stdarg.h>
3119 #include <string.h>
3120 #include <float.h>
3121
3122 int
3123 main ()
3124 {
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_compile") 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } && {
3144          test -z "$ac_c_werror_flag" ||
3145          test ! -s conftest.err
3146        } && test -s conftest.$ac_objext; then
3147   ac_cv_header_stdc=yes
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152         ac_cv_header_stdc=no
3153 fi
3154
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156
3157 if test $ac_cv_header_stdc = yes; then
3158   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #include <string.h>
3166
3167 _ACEOF
3168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3169   $EGREP "memchr" >/dev/null 2>&1; then
3170   :
3171 else
3172   ac_cv_header_stdc=no
3173 fi
3174 rm -f conftest*
3175
3176 fi
3177
3178 if test $ac_cv_header_stdc = yes; then
3179   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3180   cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186 #include <stdlib.h>
3187
3188 _ACEOF
3189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3190   $EGREP "free" >/dev/null 2>&1; then
3191   :
3192 else
3193   ac_cv_header_stdc=no
3194 fi
3195 rm -f conftest*
3196
3197 fi
3198
3199 if test $ac_cv_header_stdc = yes; then
3200   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3201   if test "$cross_compiling" = yes; then
3202   :
3203 else
3204   cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210 #include <ctype.h>
3211 #include <stdlib.h>
3212 #if ((' ' & 0x0FF) == 0x020)
3213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3215 #else
3216 # define ISLOWER(c) \
3217                    (('a' <= (c) && (c) <= 'i') \
3218                      || ('j' <= (c) && (c) <= 'r') \
3219                      || ('s' <= (c) && (c) <= 'z'))
3220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3221 #endif
3222
3223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3224 int
3225 main ()
3226 {
3227   int i;
3228   for (i = 0; i < 256; i++)
3229     if (XOR (islower (i), ISLOWER (i))
3230         || toupper (i) != TOUPPER (i))
3231       return 2;
3232   return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest$ac_exeext
3236 if { (ac_try="$ac_link"
3237 case "(($ac_try" in
3238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239   *) ac_try_echo=$ac_try;;
3240 esac
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242   (eval "$ac_link") 2>&5
3243   ac_status=$?
3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   :
3256 else
3257   echo "$as_me: program exited with status $ac_status" >&5
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 ( exit $ac_status )
3262 ac_cv_header_stdc=no
3263 fi
3264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3265 fi
3266
3267
3268 fi
3269 fi
3270 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3271 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3272 if test $ac_cv_header_stdc = yes; then
3273
3274 cat >>confdefs.h <<\_ACEOF
3275 #define STDC_HEADERS 1
3276 _ACEOF
3277
3278 fi
3279
3280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3291                   inttypes.h stdint.h unistd.h
3292 do
3293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h.  */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h.  */
3305 $ac_includes_default
3306
3307 #include <$ac_header>
3308 _ACEOF
3309 rm -f conftest.$ac_objext
3310 if { (ac_try="$ac_compile"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316   (eval "$ac_compile") 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } && {
3323          test -z "$ac_c_werror_flag" ||
3324          test ! -s conftest.err
3325        } && test -s conftest.$ac_objext; then
3326   eval "$as_ac_Header=yes"
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331         eval "$as_ac_Header=no"
3332 fi
3333
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 fi
3336 ac_res=`eval echo '${'$as_ac_Header'}'`
3337                { echo "$as_me:$LINENO: result: $ac_res" >&5
3338 echo "${ECHO_T}$ac_res" >&6; }
3339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3340   cat >>confdefs.h <<_ACEOF
3341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3342 _ACEOF
3343
3344 fi
3345
3346 done
3347
3348
3349
3350
3351
3352
3353
3354 for ac_header in libintl.h stddef.h stdlib.h string.h unistd.h
3355 do
3356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3358   { echo "$as_me:$LINENO: checking for $ac_header" >&5
3359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 fi
3363 ac_res=`eval echo '${'$as_ac_Header'}'`
3364                { echo "$as_me:$LINENO: result: $ac_res" >&5
3365 echo "${ECHO_T}$ac_res" >&6; }
3366 else
3367   # Is the header compilable?
3368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3370 cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h.  */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h.  */
3376 $ac_includes_default
3377 #include <$ac_header>
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (ac_try="$ac_compile"
3381 case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386   (eval "$ac_compile") 2>conftest.er1
3387   ac_status=$?
3388   grep -v '^ *+' conftest.er1 >conftest.err
3389   rm -f conftest.er1
3390   cat conftest.err >&5
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); } && {
3393          test -z "$ac_c_werror_flag" ||
3394          test ! -s conftest.err
3395        } && test -s conftest.$ac_objext; then
3396   ac_header_compiler=yes
3397 else
3398   echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401         ac_header_compiler=no
3402 fi
3403
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3406 echo "${ECHO_T}$ac_header_compiler" >&6; }
3407
3408 # Is the header present?
3409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h.  */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h.  */
3417 #include <$ac_header>
3418 _ACEOF
3419 if { (ac_try="$ac_cpp conftest.$ac_ext"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3426   ac_status=$?
3427   grep -v '^ *+' conftest.er1 >conftest.err
3428   rm -f conftest.er1
3429   cat conftest.err >&5
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } >/dev/null && {
3432          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3433          test ! -s conftest.err
3434        }; then
3435   ac_header_preproc=yes
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440   ac_header_preproc=no
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3445 echo "${ECHO_T}$ac_header_preproc" >&6; }
3446
3447 # So?  What about this header?
3448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3449   yes:no: )
3450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3454     ac_header_preproc=yes
3455     ;;
3456   no:yes:* )
3457     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3459     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3460 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3461     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3463     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3464 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3467     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3469
3470     ;;
3471 esac
3472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   eval "$as_ac_Header=\$ac_header_preproc"
3478 fi
3479 ac_res=`eval echo '${'$as_ac_Header'}'`
3480                { echo "$as_me:$LINENO: result: $ac_res" >&5
3481 echo "${ECHO_T}$ac_res" >&6; }
3482
3483 fi
3484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3485   cat >>confdefs.h <<_ACEOF
3486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3487 _ACEOF
3488
3489 fi
3490
3491 done
3492
3493
3494 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3495 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3496 if test "${ac_cv_c_const+set}" = set; then
3497   echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499   cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505
3506 int
3507 main ()
3508 {
3509 /* FIXME: Include the comments suggested by Paul. */
3510 #ifndef __cplusplus
3511   /* Ultrix mips cc rejects this.  */
3512   typedef int charset[2];
3513   const charset cs;
3514   /* SunOS 4.1.1 cc rejects this.  */
3515   char const *const *pcpcc;
3516   char **ppc;
3517   /* NEC SVR4.0.2 mips cc rejects this.  */
3518   struct point {int x, y;};
3519   static struct point const zero = {0,0};
3520   /* AIX XL C 1.02.0.0 rejects this.
3521      It does not let you subtract one const X* pointer from another in
3522      an arm of an if-expression whose if-part is not a constant
3523      expression */
3524   const char *g = "string";
3525   pcpcc = &g + (g ? g-g : 0);
3526   /* HPUX 7.0 cc rejects these. */
3527   ++pcpcc;
3528   ppc = (char**) pcpcc;
3529   pcpcc = (char const *const *) ppc;
3530   { /* SCO 3.2v4 cc rejects this.  */
3531     char *t;
3532     char const *s = 0 ? (char *) 0 : (char const *) 0;
3533
3534     *t++ = 0;
3535     if (s) return 0;
3536   }
3537   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3538     int x[] = {25, 17};
3539     const int *foo = &x[0];
3540     ++foo;
3541   }
3542   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3543     typedef const int *iptr;
3544     iptr p = 0;
3545     ++p;
3546   }
3547   { /* AIX XL C 1.02.0.0 rejects this saying
3548        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3549     struct s { int j; const int *ap[3]; };
3550     struct s *b; b->j = 5;
3551   }
3552   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3553     const int foo = 10;
3554     if (!foo) return 0;
3555   }
3556   return !cs[0] && !zero.x;
3557 #endif
3558
3559   ;
3560   return 0;
3561 }
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570   (eval "$ac_compile") 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } && {
3577          test -z "$ac_c_werror_flag" ||
3578          test ! -s conftest.err
3579        } && test -s conftest.$ac_objext; then
3580   ac_cv_c_const=yes
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585         ac_cv_c_const=no
3586 fi
3587
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 fi
3590 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3591 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3592 if test $ac_cv_c_const = no; then
3593
3594 cat >>confdefs.h <<\_ACEOF
3595 #define const
3596 _ACEOF
3597
3598 fi
3599
3600
3601
3602 for ac_header in stdlib.h
3603 do
3604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3606   { echo "$as_me:$LINENO: checking for $ac_header" >&5
3607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 fi
3611 ac_res=`eval echo '${'$as_ac_Header'}'`
3612                { echo "$as_me:$LINENO: result: $ac_res" >&5
3613 echo "${ECHO_T}$ac_res" >&6; }
3614 else
3615   # Is the header compilable?
3616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h.  */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h.  */
3624 $ac_includes_default
3625 #include <$ac_header>
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3629 case "(($ac_try" in
3630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631   *) ac_try_echo=$ac_try;;
3632 esac
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634   (eval "$ac_compile") 2>conftest.er1
3635   ac_status=$?
3636   grep -v '^ *+' conftest.er1 >conftest.err
3637   rm -f conftest.er1
3638   cat conftest.err >&5
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); } && {
3641          test -z "$ac_c_werror_flag" ||
3642          test ! -s conftest.err
3643        } && test -s conftest.$ac_objext; then
3644   ac_header_compiler=yes
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649         ac_header_compiler=no
3650 fi
3651
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3654 echo "${ECHO_T}$ac_header_compiler" >&6; }
3655
3656 # Is the header present?
3657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h.  */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h.  */
3665 #include <$ac_header>
3666 _ACEOF
3667 if { (ac_try="$ac_cpp conftest.$ac_ext"
3668 case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3674   ac_status=$?
3675   grep -v '^ *+' conftest.er1 >conftest.err
3676   rm -f conftest.er1
3677   cat conftest.err >&5
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); } >/dev/null && {
3680          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3681          test ! -s conftest.err
3682        }; then
3683   ac_header_preproc=yes
3684 else
3685   echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688   ac_header_preproc=no
3689 fi
3690
3691 rm -f conftest.err conftest.$ac_ext
3692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3693 echo "${ECHO_T}$ac_header_preproc" >&6; }
3694
3695 # So?  What about this header?
3696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3697   yes:no: )
3698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3702     ac_header_preproc=yes
3703     ;;
3704   no:yes:* )
3705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3707     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3708 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3709     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3711     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3712 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3715     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3717
3718     ;;
3719 esac
3720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   eval "$as_ac_Header=\$ac_header_preproc"
3726 fi
3727 ac_res=`eval echo '${'$as_ac_Header'}'`
3728                { echo "$as_me:$LINENO: result: $ac_res" >&5
3729 echo "${ECHO_T}$ac_res" >&6; }
3730
3731 fi
3732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3733   cat >>confdefs.h <<_ACEOF
3734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3735 _ACEOF
3736
3737 fi
3738
3739 done
3740
3741 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3742 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
3743 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   if test "$cross_compiling" = yes; then
3747   ac_cv_func_malloc_0_nonnull=no
3748 else
3749   cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h.  */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h.  */
3755 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
3756 # include <stdlib.h>
3757 #else
3758 char *malloc ();
3759 #endif
3760
3761 int
3762 main ()
3763 {
3764 return ! malloc (0);
3765   ;
3766   return 0;
3767 }
3768 _ACEOF
3769 rm -f conftest$ac_exeext
3770 if { (ac_try="$ac_link"
3771 case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776   (eval "$ac_link") 2>&5
3777   ac_status=$?
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3780   { (case "(($ac_try" in
3781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782   *) ac_try_echo=$ac_try;;
3783 esac
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785   (eval "$ac_try") 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   ac_cv_func_malloc_0_nonnull=yes
3790 else
3791   echo "$as_me: program exited with status $ac_status" >&5
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 ( exit $ac_status )
3796 ac_cv_func_malloc_0_nonnull=no
3797 fi
3798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3799 fi
3800
3801
3802 fi
3803 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
3804 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
3805 if test $ac_cv_func_malloc_0_nonnull = yes; then
3806
3807 cat >>confdefs.h <<\_ACEOF
3808 #define HAVE_MALLOC 1
3809 _ACEOF
3810
3811 else
3812   cat >>confdefs.h <<\_ACEOF
3813 #define HAVE_MALLOC 0
3814 _ACEOF
3815
3816    case " $LIBOBJS " in
3817   *" malloc.$ac_objext "* ) ;;
3818   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
3819  ;;
3820 esac
3821
3822
3823 cat >>confdefs.h <<\_ACEOF
3824 #define malloc rpl_malloc
3825 _ACEOF
3826
3827 fi
3828
3829
3830
3831 { echo "$as_me:$LINENO: checking for working memcmp" >&5
3832 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
3833 if test "${ac_cv_func_memcmp_working+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   if test "$cross_compiling" = yes; then
3837   ac_cv_func_memcmp_working=no
3838 else
3839   cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h.  */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h.  */
3845 $ac_includes_default
3846 int
3847 main ()
3848 {
3849
3850   /* Some versions of memcmp are not 8-bit clean.  */
3851   char c0 = '\100', c1 = '\200', c2 = '\201';
3852   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3853     return 1;
3854
3855   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3856      or more and with at least one buffer not starting on a 4-byte boundary.
3857      William Lewis provided this test program.   */
3858   {
3859     char foo[21];
3860     char bar[21];
3861     int i;
3862     for (i = 0; i < 4; i++)
3863       {
3864         char *a = foo + i;
3865         char *b = bar + i;
3866         strcpy (a, "--------01111111");
3867         strcpy (b, "--------10000000");
3868         if (memcmp (a, b, 16) >= 0)
3869           return 1;
3870       }
3871     return 0;
3872   }
3873
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 rm -f conftest$ac_exeext
3879 if { (ac_try="$ac_link"
3880 case "(($ac_try" in
3881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882   *) ac_try_echo=$ac_try;;
3883 esac
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885   (eval "$ac_link") 2>&5
3886   ac_status=$?
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3889   { (case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894   (eval "$ac_try") 2>&5
3895   ac_status=$?
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); }; }; then
3898   ac_cv_func_memcmp_working=yes
3899 else
3900   echo "$as_me: program exited with status $ac_status" >&5
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 ( exit $ac_status )
3905 ac_cv_func_memcmp_working=no
3906 fi
3907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3908 fi
3909
3910
3911 fi
3912 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
3913 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
3914 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
3915   *" memcmp.$ac_objext "* ) ;;
3916   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
3917  ;;
3918 esac
3919
3920
3921
3922 for ac_header in stdlib.h
3923 do
3924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3926   { echo "$as_me:$LINENO: checking for $ac_header" >&5
3927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3929   echo $ECHO_N "(cached) $ECHO_C" >&6
3930 fi
3931 ac_res=`eval echo '${'$as_ac_Header'}'`
3932                { echo "$as_me:$LINENO: result: $ac_res" >&5
3933 echo "${ECHO_T}$ac_res" >&6; }
3934 else
3935   # Is the header compilable?
3936 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944 $ac_includes_default
3945 #include <$ac_header>
3946 _ACEOF
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3949 case "(($ac_try" in
3950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951   *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954   (eval "$ac_compile") 2>conftest.er1
3955   ac_status=$?
3956   grep -v '^ *+' conftest.er1 >conftest.err
3957   rm -f conftest.er1
3958   cat conftest.err >&5
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } && {
3961          test -z "$ac_c_werror_flag" ||
3962          test ! -s conftest.err
3963        } && test -s conftest.$ac_objext; then
3964   ac_header_compiler=yes
3965 else
3966   echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969         ac_header_compiler=no
3970 fi
3971
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3974 echo "${ECHO_T}$ac_header_compiler" >&6; }
3975
3976 # Is the header present?
3977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3979 cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h.  */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h.  */
3985 #include <$ac_header>
3986 _ACEOF
3987 if { (ac_try="$ac_cpp conftest.$ac_ext"
3988 case "(($ac_try" in
3989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990   *) ac_try_echo=$ac_try;;
3991 esac
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3994   ac_status=$?
3995   grep -v '^ *+' conftest.er1 >conftest.err
3996   rm -f conftest.er1
3997   cat conftest.err >&5
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); } >/dev/null && {
4000          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4001          test ! -s conftest.err
4002        }; then
4003   ac_header_preproc=yes
4004 else
4005   echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008   ac_header_preproc=no
4009 fi
4010
4011 rm -f conftest.err conftest.$ac_ext
4012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4013 echo "${ECHO_T}$ac_header_preproc" >&6; }
4014
4015 # So?  What about this header?
4016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4017   yes:no: )
4018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4022     ac_header_preproc=yes
4023     ;;
4024   no:yes:* )
4025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4037
4038     ;;
4039 esac
4040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   eval "$as_ac_Header=\$ac_header_preproc"
4046 fi
4047 ac_res=`eval echo '${'$as_ac_Header'}'`
4048                { echo "$as_me:$LINENO: result: $ac_res" >&5
4049 echo "${ECHO_T}$ac_res" >&6; }
4050
4051 fi
4052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4053   cat >>confdefs.h <<_ACEOF
4054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055 _ACEOF
4056
4057 fi
4058
4059 done
4060
4061 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
4062 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
4063 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   if test "$cross_compiling" = yes; then
4067   ac_cv_func_realloc_0_nonnull=no
4068 else
4069   cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h.  */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h.  */
4075 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4076 # include <stdlib.h>
4077 #else
4078 char *realloc ();
4079 #endif
4080
4081 int
4082 main ()
4083 {
4084 return ! realloc (0, 0);
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 rm -f conftest$ac_exeext
4090 if { (ac_try="$ac_link"
4091 case "(($ac_try" in
4092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093   *) ac_try_echo=$ac_try;;
4094 esac
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096   (eval "$ac_link") 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4100   { (case "(($ac_try" in
4101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102   *) ac_try_echo=$ac_try;;
4103 esac
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105   (eval "$ac_try") 2>&5
4106   ac_status=$?
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); }; }; then
4109   ac_cv_func_realloc_0_nonnull=yes
4110 else
4111   echo "$as_me: program exited with status $ac_status" >&5
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 ( exit $ac_status )
4116 ac_cv_func_realloc_0_nonnull=no
4117 fi
4118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4119 fi
4120
4121
4122 fi
4123 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
4124 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
4125 if test $ac_cv_func_realloc_0_nonnull = yes; then
4126
4127 cat >>confdefs.h <<\_ACEOF
4128 #define HAVE_REALLOC 1
4129 _ACEOF
4130
4131 else
4132   cat >>confdefs.h <<\_ACEOF
4133 #define HAVE_REALLOC 0
4134 _ACEOF
4135
4136    case " $LIBOBJS " in
4137   *" realloc.$ac_objext "* ) ;;
4138   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4139  ;;
4140 esac
4141
4142
4143 cat >>confdefs.h <<\_ACEOF
4144 #define realloc rpl_realloc
4145 _ACEOF
4146
4147 fi
4148
4149
4150
4151
4152 for ac_func in vprintf
4153 do
4154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4158   echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160   cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4168 #define $ac_func innocuous_$ac_func
4169
4170 /* System header to define __stub macros and hopefully few prototypes,
4171     which can conflict with char $ac_func (); below.
4172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4173     <limits.h> exists even on freestanding compilers.  */
4174
4175 #ifdef __STDC__
4176 # include <limits.h>
4177 #else
4178 # include <assert.h>
4179 #endif
4180
4181 #undef $ac_func
4182
4183 /* Override any GCC internal prototype to avoid an error.
4184    Use char because int might match the return type of a GCC
4185    builtin and then its argument prototype would still apply.  */
4186 #ifdef __cplusplus
4187 extern "C"
4188 #endif
4189 char $ac_func ();
4190 /* The GNU C library defines this for functions which it implements
4191     to always fail with ENOSYS.  Some functions are actually named
4192     something starting with __ and the normal name is an alias.  */
4193 #if defined __stub_$ac_func || defined __stub___$ac_func
4194 choke me
4195 #endif
4196
4197 int
4198 main ()
4199 {
4200 return $ac_func ();
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 rm -f conftest.$ac_objext conftest$ac_exeext
4206 if { (ac_try="$ac_link"
4207 case "(($ac_try" in
4208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209   *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212   (eval "$ac_link") 2>conftest.er1
4213   ac_status=$?
4214   grep -v '^ *+' conftest.er1 >conftest.err
4215   rm -f conftest.er1
4216   cat conftest.err >&5
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); } && {
4219          test -z "$ac_c_werror_flag" ||
4220          test ! -s conftest.err
4221        } && test -s conftest$ac_exeext &&
4222        $as_test_x conftest$ac_exeext; then
4223   eval "$as_ac_var=yes"
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228         eval "$as_ac_var=no"
4229 fi
4230
4231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4232       conftest$ac_exeext conftest.$ac_ext
4233 fi
4234 ac_res=`eval echo '${'$as_ac_var'}'`
4235                { echo "$as_me:$LINENO: result: $ac_res" >&5
4236 echo "${ECHO_T}$ac_res" >&6; }
4237 if test `eval echo '${'$as_ac_var'}'` = yes; then
4238   cat >>confdefs.h <<_ACEOF
4239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4240 _ACEOF
4241
4242 { echo "$as_me:$LINENO: checking for _doprnt" >&5
4243 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
4244 if test "${ac_cv_func__doprnt+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4255 #define _doprnt innocuous__doprnt
4256
4257 /* System header to define __stub macros and hopefully few prototypes,
4258     which can conflict with char _doprnt (); below.
4259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260     <limits.h> exists even on freestanding compilers.  */
4261
4262 #ifdef __STDC__
4263 # include <limits.h>
4264 #else
4265 # include <assert.h>
4266 #endif
4267
4268 #undef _doprnt
4269
4270 /* Override any GCC internal prototype to avoid an error.
4271    Use char because int might match the return type of a GCC
4272    builtin and then its argument prototype would still apply.  */
4273 #ifdef __cplusplus
4274 extern "C"
4275 #endif
4276 char _doprnt ();
4277 /* The GNU C library defines this for functions which it implements
4278     to always fail with ENOSYS.  Some functions are actually named
4279     something starting with __ and the normal name is an alias.  */
4280 #if defined __stub__doprnt || defined __stub____doprnt
4281 choke me
4282 #endif
4283
4284 int
4285 main ()
4286 {
4287 return _doprnt ();
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 rm -f conftest.$ac_objext conftest$ac_exeext
4293 if { (ac_try="$ac_link"
4294 case "(($ac_try" in
4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296   *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299   (eval "$ac_link") 2>conftest.er1
4300   ac_status=$?
4301   grep -v '^ *+' conftest.er1 >conftest.err
4302   rm -f conftest.er1
4303   cat conftest.err >&5
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); } && {
4306          test -z "$ac_c_werror_flag" ||
4307          test ! -s conftest.err
4308        } && test -s conftest$ac_exeext &&
4309        $as_test_x conftest$ac_exeext; then
4310   ac_cv_func__doprnt=yes
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315         ac_cv_func__doprnt=no
4316 fi
4317
4318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4319       conftest$ac_exeext conftest.$ac_ext
4320 fi
4321 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4322 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
4323 if test $ac_cv_func__doprnt = yes; then
4324
4325 cat >>confdefs.h <<\_ACEOF
4326 #define HAVE_DOPRNT 1
4327 _ACEOF
4328
4329 fi
4330
4331 fi
4332 done
4333
4334
4335
4336
4337
4338
4339
4340
4341 for ac_func in memmove memset strchr strdup strrchr strstr
4342 do
4343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349   cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h.  */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h.  */
4355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4357 #define $ac_func innocuous_$ac_func
4358
4359 /* System header to define __stub macros and hopefully few prototypes,
4360     which can conflict with char $ac_func (); below.
4361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362     <limits.h> exists even on freestanding compilers.  */
4363
4364 #ifdef __STDC__
4365 # include <limits.h>
4366 #else
4367 # include <assert.h>
4368 #endif
4369
4370 #undef $ac_func
4371
4372 /* Override any GCC internal prototype to avoid an error.
4373    Use char because int might match the return type of a GCC
4374    builtin and then its argument prototype would still apply.  */
4375 #ifdef __cplusplus
4376 extern "C"
4377 #endif
4378 char $ac_func ();
4379 /* The GNU C library defines this for functions which it implements
4380     to always fail with ENOSYS.  Some functions are actually named
4381     something starting with __ and the normal name is an alias.  */
4382 #if defined __stub_$ac_func || defined __stub___$ac_func
4383 choke me
4384 #endif
4385
4386 int
4387 main ()
4388 {
4389 return $ac_func ();
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext conftest$ac_exeext
4395 if { (ac_try="$ac_link"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_link") 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } && {
4408          test -z "$ac_c_werror_flag" ||
4409          test ! -s conftest.err
4410        } && test -s conftest$ac_exeext &&
4411        $as_test_x conftest$ac_exeext; then
4412   eval "$as_ac_var=yes"
4413 else
4414   echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417         eval "$as_ac_var=no"
4418 fi
4419
4420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4421       conftest$ac_exeext conftest.$ac_ext
4422 fi
4423 ac_res=`eval echo '${'$as_ac_var'}'`
4424                { echo "$as_me:$LINENO: result: $ac_res" >&5
4425 echo "${ECHO_T}$ac_res" >&6; }
4426 if test `eval echo '${'$as_ac_var'}'` = yes; then
4427   cat >>confdefs.h <<_ACEOF
4428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4429 _ACEOF
4430
4431 fi
4432 done
4433
4434
4435
4436   succeeded=no
4437
4438   if test -z "$PKG_CONFIG"; then
4439     # Extract the first word of "pkg-config", so it can be a program name with args.
4440 set dummy pkg-config; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   case $PKG_CONFIG in
4447   [\\/]* | ?:[\\/]*)
4448   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4449   ;;
4450   *)
4451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456   for ac_exec_ext in '' $ac_executable_extensions; do
4457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4467   ;;
4468 esac
4469 fi
4470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4471 if test -n "$PKG_CONFIG"; then
4472   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4473 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4474 else
4475   { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4477 fi
4478
4479
4480   fi
4481
4482   if test "$PKG_CONFIG" = "no" ; then
4483      echo "*** The pkg-config script could not be found. Make sure it is"
4484      echo "*** in your path, or set the PKG_CONFIG environment variable"
4485      echo "*** to the full path to pkg-config."
4486      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4487   else
4488      PKG_CONFIG_MIN_VERSION=0.9.0
4489      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4490         { echo "$as_me:$LINENO: checking for freetype2 >= 2.0" >&5
4491 echo $ECHO_N "checking for freetype2 >= 2.0... $ECHO_C" >&6; }
4492
4493         if $PKG_CONFIG --exists "freetype2 >= 2.0" ; then
4494             { echo "$as_me:$LINENO: result: yes" >&5
4495 echo "${ECHO_T}yes" >&6; }
4496             succeeded=yes
4497
4498             { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
4499 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
4500             FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.0"`
4501             { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
4502 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
4503
4504             { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
4505 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
4506             FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.0"`
4507             { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
4508 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
4509         else
4510             FREETYPE_CFLAGS=""
4511             FREETYPE_LIBS=""
4512             ## If we have a custom action on failure, don't print errors, but
4513             ## do set a variable so people can do so.
4514             FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.0"`
4515             echo $FREETYPE_PKG_ERRORS
4516         fi
4517
4518
4519
4520      else
4521         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4522         echo "*** See http://www.freedesktop.org/software/pkgconfig"
4523      fi
4524   fi
4525
4526   if test $succeeded = yes; then
4527      DEFINES="-DHAVE_FREETYPE" CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS" LIBS="$LIBS $FREETYPE_LIBS"
4528   else
4529      { { echo "$as_me:$LINENO: error: Library requirements (freetype2 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
4530 echo "$as_me: error: Library requirements (freetype2 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
4531    { (exit 1); exit 1; }; }
4532   fi
4533
4534
4535   succeeded=no
4536
4537   if test -z "$PKG_CONFIG"; then
4538     # Extract the first word of "pkg-config", so it can be a program name with args.
4539 set dummy pkg-config; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   case $PKG_CONFIG in
4546   [\\/]* | ?:[\\/]*)
4547   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4548   ;;
4549   *)
4550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555   for ac_exec_ext in '' $ac_executable_extensions; do
4556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562 done
4563 IFS=$as_save_IFS
4564
4565   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4566   ;;
4567 esac
4568 fi
4569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4570 if test -n "$PKG_CONFIG"; then
4571   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4572 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4573 else
4574   { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4576 fi
4577
4578
4579   fi
4580
4581   if test "$PKG_CONFIG" = "no" ; then
4582      echo "*** The pkg-config script could not be found. Make sure it is"
4583      echo "*** in your path, or set the PKG_CONFIG environment variable"
4584      echo "*** to the full path to pkg-config."
4585      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4586   else
4587      PKG_CONFIG_MIN_VERSION=0.9.0
4588      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4589         { echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.6" >&5
4590 echo $ECHO_N "checking for gtk+-2.0 >= 2.6... $ECHO_C" >&6; }
4591
4592         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.6" ; then
4593             { echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6; }
4595             succeeded=yes
4596
4597             { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
4598 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
4599             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.6"`
4600             { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
4601 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
4602
4603             { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
4604 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
4605             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.6"`
4606             { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
4607 echo "${ECHO_T}$GTK_LIBS" >&6; }
4608         else
4609             GTK_CFLAGS=""
4610             GTK_LIBS=""
4611             ## If we have a custom action on failure, don't print errors, but
4612             ## do set a variable so people can do so.
4613             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.6"`
4614             echo $GTK_PKG_ERRORS
4615         fi
4616
4617
4618
4619      else
4620         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4621         echo "*** See http://www.freedesktop.org/software/pkgconfig"
4622      fi
4623   fi
4624
4625   if test $succeeded = yes; then
4626      CPPFLAGS="$CPPFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS"
4627   else
4628      { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
4629 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
4630    { (exit 1); exit 1; }; }
4631   fi
4632
4633
4634 { echo "$as_me:$LINENO: checking for hbf.c" >&5
4635 echo $ECHO_N "checking for hbf.c... $ECHO_C" >&6; }
4636 if test "${ac_cv_file_hbf_c+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   test "$cross_compiling" = yes &&
4640   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4641 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4642    { (exit 1); exit 1; }; }
4643 if test -r "hbf.c"; then
4644   ac_cv_file_hbf_c=yes
4645 else
4646   ac_cv_file_hbf_c=no
4647 fi
4648 fi
4649 { echo "$as_me:$LINENO: result: $ac_cv_file_hbf_c" >&5
4650 echo "${ECHO_T}$ac_cv_file_hbf_c" >&6; }
4651 if test $ac_cv_file_hbf_c = yes; then
4652   DEFINES="$DEFINES -DHAVE_HBF" HBFSRC="hbf.c" HBFOBJ="hbf.o"
4653 fi
4654
4655
4656 { echo "$as_me:$LINENO: checking for X" >&5
4657 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4658
4659
4660 # Check whether --with-x was given.
4661 if test "${with_x+set}" = set; then
4662   withval=$with_x;
4663 fi
4664
4665 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4666 if test "x$with_x" = xno; then
4667   # The user explicitly disabled X.
4668   have_x=disabled
4669 else
4670   case $x_includes,$x_libraries in #(
4671     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4672 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4673    { (exit 1); exit 1; }; };; #(
4674     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   # One or both of the vars are not set, and there is no cached value.
4678 ac_x_includes=no ac_x_libraries=no
4679 rm -f -r conftest.dir
4680 if mkdir conftest.dir; then
4681   cd conftest.dir
4682   cat >Imakefile <<'_ACEOF'
4683 incroot:
4684         @echo incroot='${INCROOT}'
4685 usrlibdir:
4686         @echo usrlibdir='${USRLIBDIR}'
4687 libdir:
4688         @echo libdir='${LIBDIR}'
4689 _ACEOF
4690   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4691     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4692     for ac_var in incroot usrlibdir libdir; do
4693       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4694     done
4695     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4696     for ac_extension in a so sl; do
4697       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4698          test -f "$ac_im_libdir/libX11.$ac_extension"; then
4699         ac_im_usrlibdir=$ac_im_libdir; break
4700       fi
4701     done
4702     # Screen out bogus values from the imake configuration.  They are
4703     # bogus both because they are the default anyway, and because
4704     # using them would break gcc on systems where it needs fixed includes.
4705     case $ac_im_incroot in
4706         /usr/include) ac_x_includes= ;;
4707         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4708     esac
4709     case $ac_im_usrlibdir in
4710         /usr/lib | /lib) ;;
4711         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4712     esac
4713   fi
4714   cd ..
4715   rm -f -r conftest.dir
4716 fi
4717
4718 # Standard set of common directories for X headers.
4719 # Check X11 before X11Rn because it is often a symlink to the current release.
4720 ac_x_header_dirs='
4721 /usr/X11/include
4722 /usr/X11R6/include
4723 /usr/X11R5/include
4724 /usr/X11R4/include
4725
4726 /usr/include/X11
4727 /usr/include/X11R6
4728 /usr/include/X11R5
4729 /usr/include/X11R4
4730
4731 /usr/local/X11/include
4732 /usr/local/X11R6/include
4733 /usr/local/X11R5/include
4734 /usr/local/X11R4/include
4735
4736 /usr/local/include/X11
4737 /usr/local/include/X11R6
4738 /usr/local/include/X11R5
4739 /usr/local/include/X11R4
4740
4741 /usr/X386/include
4742 /usr/x386/include
4743 /usr/XFree86/include/X11
4744
4745 /usr/include
4746 /usr/local/include
4747 /usr/unsupported/include
4748 /usr/athena/include
4749 /usr/local/x11r5/include
4750 /usr/lpp/Xamples/include
4751
4752 /usr/openwin/include
4753 /usr/openwin/share/include'
4754
4755 if test "$ac_x_includes" = no; then
4756   # Guess where to find include files, by looking for Xlib.h.
4757   # First, try using that file with no special directory specified.
4758   cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 #include <X11/Xlib.h>
4765 _ACEOF
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
4767 case "(($ac_try" in
4768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769   *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4773   ac_status=$?
4774   grep -v '^ *+' conftest.er1 >conftest.err
4775   rm -f conftest.er1
4776   cat conftest.err >&5
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); } >/dev/null && {
4779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4780          test ! -s conftest.err
4781        }; then
4782   # We can compile using X headers with no special include directory.
4783 ac_x_includes=
4784 else
4785   echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4787
4788   for ac_dir in $ac_x_header_dirs; do
4789   if test -r "$ac_dir/X11/Xlib.h"; then
4790     ac_x_includes=$ac_dir
4791     break
4792   fi
4793 done
4794 fi
4795
4796 rm -f conftest.err conftest.$ac_ext
4797 fi # $ac_x_includes = no
4798
4799 if test "$ac_x_libraries" = no; then
4800   # Check for the libraries.
4801   # See if we find them without any special options.
4802   # Don't add to $LIBS permanently.
4803   ac_save_LIBS=$LIBS
4804   LIBS="-lX11 $LIBS"
4805   cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811 #include <X11/Xlib.h>
4812 int
4813 main ()
4814 {
4815 XrmInitialize ()
4816   ;
4817   return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext conftest$ac_exeext
4821 if { (ac_try="$ac_link"
4822 case "(($ac_try" in
4823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824   *) ac_try_echo=$ac_try;;
4825 esac
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827   (eval "$ac_link") 2>conftest.er1
4828   ac_status=$?
4829   grep -v '^ *+' conftest.er1 >conftest.err
4830   rm -f conftest.er1
4831   cat conftest.err >&5
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } && {
4834          test -z "$ac_c_werror_flag" ||
4835          test ! -s conftest.err
4836        } && test -s conftest$ac_exeext &&
4837        $as_test_x conftest$ac_exeext; then
4838   LIBS=$ac_save_LIBS
4839 # We can link X programs with no special library path.
4840 ac_x_libraries=
4841 else
4842   echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845         LIBS=$ac_save_LIBS
4846 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4847 do
4848   # Don't even attempt the hair of trying to link an X program!
4849   for ac_extension in a so sl; do
4850     if test -r "$ac_dir/libX11.$ac_extension"; then
4851       ac_x_libraries=$ac_dir
4852       break 2
4853     fi
4854   done
4855 done
4856 fi
4857
4858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4859       conftest$ac_exeext conftest.$ac_ext
4860 fi # $ac_x_libraries = no
4861
4862 case $ac_x_includes,$ac_x_libraries in #(
4863   no,* | *,no | *\'*)
4864     # Didn't find X, or a directory has "'" in its name.
4865     ac_cv_have_x="have_x=no";; #(
4866   *)
4867     # Record where we found X for the cache.
4868     ac_cv_have_x="have_x=yes\
4869         ac_x_includes='$ac_x_includes'\
4870         ac_x_libraries='$ac_x_libraries'"
4871 esac
4872 fi
4873 ;; #(
4874     *) have_x=yes;;
4875   esac
4876   eval "$ac_cv_have_x"
4877 fi # $with_x != no
4878
4879 if test "$have_x" != yes; then
4880   { echo "$as_me:$LINENO: result: $have_x" >&5
4881 echo "${ECHO_T}$have_x" >&6; }
4882   no_x=yes
4883 else
4884   # If each of the values was on the command line, it overrides each guess.
4885   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4886   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4887   # Update the cache value to reflect the command line values.
4888   ac_cv_have_x="have_x=yes\
4889         ac_x_includes='$x_includes'\
4890         ac_x_libraries='$x_libraries'"
4891   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4892 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4893 fi
4894
4895 if test "$no_x" = yes; then
4896   # Not all programs may use this symbol, but it does not hurt to define it.
4897
4898 cat >>confdefs.h <<\_ACEOF
4899 #define X_DISPLAY_MISSING 1
4900 _ACEOF
4901
4902   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4903 else
4904   if test -n "$x_includes"; then
4905     X_CFLAGS="$X_CFLAGS -I$x_includes"
4906   fi
4907
4908   # It would also be nice to do this for all -L options, not just this one.
4909   if test -n "$x_libraries"; then
4910     X_LIBS="$X_LIBS -L$x_libraries"
4911     # For Solaris; some versions of Sun CC require a space after -R and
4912     # others require no space.  Words are not sufficient . . . .
4913     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4914 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4915     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4916     ac_xsave_c_werror_flag=$ac_c_werror_flag
4917     ac_c_werror_flag=yes
4918     cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h.  */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h.  */
4924
4925 int
4926 main ()
4927 {
4928
4929   ;
4930   return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext conftest$ac_exeext
4934 if { (ac_try="$ac_link"
4935 case "(($ac_try" in
4936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937   *) ac_try_echo=$ac_try;;
4938 esac
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940   (eval "$ac_link") 2>conftest.er1
4941   ac_status=$?
4942   grep -v '^ *+' conftest.er1 >conftest.err
4943   rm -f conftest.er1
4944   cat conftest.err >&5
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); } && {
4947          test -z "$ac_c_werror_flag" ||
4948          test ! -s conftest.err
4949        } && test -s conftest$ac_exeext &&
4950        $as_test_x conftest$ac_exeext; then
4951   { echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6; }
4953        X_LIBS="$X_LIBS -R$x_libraries"
4954 else
4955   echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958         LIBS="$ac_xsave_LIBS -R $x_libraries"
4959        cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h.  */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h.  */
4965
4966 int
4967 main ()
4968 {
4969
4970   ;
4971   return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest.$ac_objext conftest$ac_exeext
4975 if { (ac_try="$ac_link"
4976 case "(($ac_try" in
4977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978   *) ac_try_echo=$ac_try;;
4979 esac
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981   (eval "$ac_link") 2>conftest.er1
4982   ac_status=$?
4983   grep -v '^ *+' conftest.er1 >conftest.err
4984   rm -f conftest.er1
4985   cat conftest.err >&5
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } && {
4988          test -z "$ac_c_werror_flag" ||
4989          test ! -s conftest.err
4990        } && test -s conftest$ac_exeext &&
4991        $as_test_x conftest$ac_exeext; then
4992   { echo "$as_me:$LINENO: result: yes" >&5
4993 echo "${ECHO_T}yes" >&6; }
4994           X_LIBS="$X_LIBS -R $x_libraries"
4995 else
4996   echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999         { echo "$as_me:$LINENO: result: neither works" >&5
5000 echo "${ECHO_T}neither works" >&6; }
5001 fi
5002
5003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5004       conftest$ac_exeext conftest.$ac_ext
5005 fi
5006
5007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5008       conftest$ac_exeext conftest.$ac_ext
5009     ac_c_werror_flag=$ac_xsave_c_werror_flag
5010     LIBS=$ac_xsave_LIBS
5011   fi
5012
5013   # Check for system-dependent libraries X programs must link with.
5014   # Do this before checking for the system-independent R6 libraries
5015   # (-lICE), since we may need -lsocket or whatever for X linking.
5016
5017   if test "$ISC" = yes; then
5018     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5019   else
5020     # Martyn Johnson says this is needed for Ultrix, if the X
5021     # libraries were built with DECnet support.  And Karl Berry says
5022     # the Alpha needs dnet_stub (dnet does not exist).
5023     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5024     cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h.  */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h.  */
5030
5031 /* Override any GCC internal prototype to avoid an error.
5032    Use char because int might match the return type of a GCC
5033    builtin and then its argument prototype would still apply.  */
5034 #ifdef __cplusplus
5035 extern "C"
5036 #endif
5037 char XOpenDisplay ();
5038 int
5039 main ()
5040 {
5041 return XOpenDisplay ();
5042   ;
5043   return 0;
5044 }
5045 _ACEOF
5046 rm -f conftest.$ac_objext conftest$ac_exeext
5047 if { (ac_try="$ac_link"
5048 case "(($ac_try" in
5049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050   *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053   (eval "$ac_link") 2>conftest.er1
5054   ac_status=$?
5055   grep -v '^ *+' conftest.er1 >conftest.err
5056   rm -f conftest.er1
5057   cat conftest.err >&5
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } && {
5060          test -z "$ac_c_werror_flag" ||
5061          test ! -s conftest.err
5062        } && test -s conftest$ac_exeext &&
5063        $as_test_x conftest$ac_exeext; then
5064   :
5065 else
5066   echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5070 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5071 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   ac_check_lib_save_LIBS=$LIBS
5075 LIBS="-ldnet  $LIBS"
5076 cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h.  */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h.  */
5082
5083 /* Override any GCC internal prototype to avoid an error.
5084    Use char because int might match the return type of a GCC
5085    builtin and then its argument prototype would still apply.  */
5086 #ifdef __cplusplus
5087 extern "C"
5088 #endif
5089 char dnet_ntoa ();
5090 int
5091 main ()
5092 {
5093 return dnet_ntoa ();
5094   ;
5095   return 0;
5096 }
5097 _ACEOF
5098 rm -f conftest.$ac_objext conftest$ac_exeext
5099 if { (ac_try="$ac_link"
5100 case "(($ac_try" in
5101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102   *) ac_try_echo=$ac_try;;
5103 esac
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105   (eval "$ac_link") 2>conftest.er1
5106   ac_status=$?
5107   grep -v '^ *+' conftest.er1 >conftest.err
5108   rm -f conftest.er1
5109   cat conftest.err >&5
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); } && {
5112          test -z "$ac_c_werror_flag" ||
5113          test ! -s conftest.err
5114        } && test -s conftest$ac_exeext &&
5115        $as_test_x conftest$ac_exeext; then
5116   ac_cv_lib_dnet_dnet_ntoa=yes
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121         ac_cv_lib_dnet_dnet_ntoa=no
5122 fi
5123
5124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5125       conftest$ac_exeext conftest.$ac_ext
5126 LIBS=$ac_check_lib_save_LIBS
5127 fi
5128 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5129 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5130 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5131   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5132 fi
5133
5134     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5135       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5136 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5137 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   ac_check_lib_save_LIBS=$LIBS
5141 LIBS="-ldnet_stub  $LIBS"
5142 cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h.  */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h.  */
5148
5149 /* Override any GCC internal prototype to avoid an error.
5150    Use char because int might match the return type of a GCC
5151    builtin and then its argument prototype would still apply.  */
5152 #ifdef __cplusplus
5153 extern "C"
5154 #endif
5155 char dnet_ntoa ();
5156 int
5157 main ()
5158 {
5159 return dnet_ntoa ();
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 rm -f conftest.$ac_objext conftest$ac_exeext
5165 if { (ac_try="$ac_link"
5166 case "(($ac_try" in
5167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168   *) ac_try_echo=$ac_try;;
5169 esac
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171   (eval "$ac_link") 2>conftest.er1
5172   ac_status=$?
5173   grep -v '^ *+' conftest.er1 >conftest.err
5174   rm -f conftest.er1
5175   cat conftest.err >&5
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); } && {
5178          test -z "$ac_c_werror_flag" ||
5179          test ! -s conftest.err
5180        } && test -s conftest$ac_exeext &&
5181        $as_test_x conftest$ac_exeext; then
5182   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5183 else
5184   echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187         ac_cv_lib_dnet_stub_dnet_ntoa=no
5188 fi
5189
5190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5191       conftest$ac_exeext conftest.$ac_ext
5192 LIBS=$ac_check_lib_save_LIBS
5193 fi
5194 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5195 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5196 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5197   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5198 fi
5199
5200     fi
5201 fi
5202
5203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5204       conftest$ac_exeext conftest.$ac_ext
5205     LIBS="$ac_xsave_LIBS"
5206
5207     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5208     # to get the SysV transport functions.
5209     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5210     # needs -lnsl.
5211     # The nsl library prevents programs from opening the X display
5212     # on Irix 5.2, according to T.E. Dickey.
5213     # The functions gethostbyname, getservbyname, and inet_addr are
5214     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5215     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5216 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5217 if test "${ac_cv_func_gethostbyname+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h.  */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h.  */
5226 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5228 #define gethostbyname innocuous_gethostbyname
5229
5230 /* System header to define __stub macros and hopefully few prototypes,
5231     which can conflict with char gethostbyname (); below.
5232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5233     <limits.h> exists even on freestanding compilers.  */
5234
5235 #ifdef __STDC__
5236 # include <limits.h>
5237 #else
5238 # include <assert.h>
5239 #endif
5240
5241 #undef gethostbyname
5242
5243 /* Override any GCC internal prototype to avoid an error.
5244    Use char because int might match the return type of a GCC
5245    builtin and then its argument prototype would still apply.  */
5246 #ifdef __cplusplus
5247 extern "C"
5248 #endif
5249 char gethostbyname ();
5250 /* The GNU C library defines this for functions which it implements
5251     to always fail with ENOSYS.  Some functions are actually named
5252     something starting with __ and the normal name is an alias.  */
5253 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5254 choke me
5255 #endif
5256
5257 int
5258 main ()
5259 {
5260 return gethostbyname ();
5261   ;
5262   return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (ac_try="$ac_link"
5267 case "(($ac_try" in
5268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269   *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272   (eval "$ac_link") 2>conftest.er1
5273   ac_status=$?
5274   grep -v '^ *+' conftest.er1 >conftest.err
5275   rm -f conftest.er1
5276   cat conftest.err >&5
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); } && {
5279          test -z "$ac_c_werror_flag" ||
5280          test ! -s conftest.err
5281        } && test -s conftest$ac_exeext &&
5282        $as_test_x conftest$ac_exeext; then
5283   ac_cv_func_gethostbyname=yes
5284 else
5285   echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288         ac_cv_func_gethostbyname=no
5289 fi
5290
5291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5292       conftest$ac_exeext conftest.$ac_ext
5293 fi
5294 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5295 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5296
5297     if test $ac_cv_func_gethostbyname = no; then
5298       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5299 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5300 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303   ac_check_lib_save_LIBS=$LIBS
5304 LIBS="-lnsl  $LIBS"
5305 cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311
5312 /* Override any GCC internal prototype to avoid an error.
5313    Use char because int might match the return type of a GCC
5314    builtin and then its argument prototype would still apply.  */
5315 #ifdef __cplusplus
5316 extern "C"
5317 #endif
5318 char gethostbyname ();
5319 int
5320 main ()
5321 {
5322 return gethostbyname ();
5323   ;
5324   return 0;
5325 }
5326 _ACEOF
5327 rm -f conftest.$ac_objext conftest$ac_exeext
5328 if { (ac_try="$ac_link"
5329 case "(($ac_try" in
5330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331   *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334   (eval "$ac_link") 2>conftest.er1
5335   ac_status=$?
5336   grep -v '^ *+' conftest.er1 >conftest.err
5337   rm -f conftest.er1
5338   cat conftest.err >&5
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } && {
5341          test -z "$ac_c_werror_flag" ||
5342          test ! -s conftest.err
5343        } && test -s conftest$ac_exeext &&
5344        $as_test_x conftest$ac_exeext; then
5345   ac_cv_lib_nsl_gethostbyname=yes
5346 else
5347   echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350         ac_cv_lib_nsl_gethostbyname=no
5351 fi
5352
5353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5354       conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5356 fi
5357 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5358 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5359 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5360   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5361 fi
5362
5363       if test $ac_cv_lib_nsl_gethostbyname = no; then
5364         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5365 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5366 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   ac_check_lib_save_LIBS=$LIBS
5370 LIBS="-lbsd  $LIBS"
5371 cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h.  */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h.  */
5377
5378 /* Override any GCC internal prototype to avoid an error.
5379    Use char because int might match the return type of a GCC
5380    builtin and then its argument prototype would still apply.  */
5381 #ifdef __cplusplus
5382 extern "C"
5383 #endif
5384 char gethostbyname ();
5385 int
5386 main ()
5387 {
5388 return gethostbyname ();
5389   ;
5390   return 0;
5391 }
5392 _ACEOF
5393 rm -f conftest.$ac_objext conftest$ac_exeext
5394 if { (ac_try="$ac_link"
5395 case "(($ac_try" in
5396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397   *) ac_try_echo=$ac_try;;
5398 esac
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400   (eval "$ac_link") 2>conftest.er1
5401   ac_status=$?
5402   grep -v '^ *+' conftest.er1 >conftest.err
5403   rm -f conftest.er1
5404   cat conftest.err >&5
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } && {
5407          test -z "$ac_c_werror_flag" ||
5408          test ! -s conftest.err
5409        } && test -s conftest$ac_exeext &&
5410        $as_test_x conftest$ac_exeext; then
5411   ac_cv_lib_bsd_gethostbyname=yes
5412 else
5413   echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416         ac_cv_lib_bsd_gethostbyname=no
5417 fi
5418
5419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5420       conftest$ac_exeext conftest.$ac_ext
5421 LIBS=$ac_check_lib_save_LIBS
5422 fi
5423 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5424 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5425 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5426   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5427 fi
5428
5429       fi
5430     fi
5431
5432     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5433     # socket/setsockopt and other routines are undefined under SCO ODT
5434     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5435     # on later versions), says Simon Leinen: it contains gethostby*
5436     # variants that don't use the name server (or something).  -lsocket
5437     # must be given before -lnsl if both are needed.  We assume that
5438     # if connect needs -lnsl, so does gethostbyname.
5439     { echo "$as_me:$LINENO: checking for connect" >&5
5440 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5441 if test "${ac_cv_func_connect+set}" = set; then
5442   echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444   cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h.  */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h.  */
5450 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5452 #define connect innocuous_connect
5453
5454 /* System header to define __stub macros and hopefully few prototypes,
5455     which can conflict with char connect (); below.
5456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457     <limits.h> exists even on freestanding compilers.  */
5458
5459 #ifdef __STDC__
5460 # include <limits.h>
5461 #else
5462 # include <assert.h>
5463 #endif
5464
5465 #undef connect
5466
5467 /* Override any GCC internal prototype to avoid an error.
5468    Use char because int might match the return type of a GCC
5469    builtin and then its argument prototype would still apply.  */
5470 #ifdef __cplusplus
5471 extern "C"
5472 #endif
5473 char connect ();
5474 /* The GNU C library defines this for functions which it implements
5475     to always fail with ENOSYS.  Some functions are actually named
5476     something starting with __ and the normal name is an alias.  */
5477 #if defined __stub_connect || defined __stub___connect
5478 choke me
5479 #endif
5480
5481 int
5482 main ()
5483 {
5484 return connect ();
5485   ;
5486   return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (ac_try="$ac_link"
5491 case "(($ac_try" in
5492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493   *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496   (eval "$ac_link") 2>conftest.er1
5497   ac_status=$?
5498   grep -v '^ *+' conftest.er1 >conftest.err
5499   rm -f conftest.er1
5500   cat conftest.err >&5
5501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); } && {
5503          test -z "$ac_c_werror_flag" ||
5504          test ! -s conftest.err
5505        } && test -s conftest$ac_exeext &&
5506        $as_test_x conftest$ac_exeext; then
5507   ac_cv_func_connect=yes
5508 else
5509   echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5511
5512         ac_cv_func_connect=no
5513 fi
5514
5515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5516       conftest$ac_exeext conftest.$ac_ext
5517 fi
5518 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5519 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5520
5521     if test $ac_cv_func_connect = no; then
5522       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5523 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5524 if test "${ac_cv_lib_socket_connect+set}" = set; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   ac_check_lib_save_LIBS=$LIBS
5528 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h.  */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h.  */
5535
5536 /* Override any GCC internal prototype to avoid an error.
5537    Use char because int might match the return type of a GCC
5538    builtin and then its argument prototype would still apply.  */
5539 #ifdef __cplusplus
5540 extern "C"
5541 #endif
5542 char connect ();
5543 int
5544 main ()
5545 {
5546 return connect ();
5547   ;
5548   return 0;
5549 }
5550 _ACEOF
5551 rm -f conftest.$ac_objext conftest$ac_exeext
5552 if { (ac_try="$ac_link"
5553 case "(($ac_try" in
5554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555   *) ac_try_echo=$ac_try;;
5556 esac
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558   (eval "$ac_link") 2>conftest.er1
5559   ac_status=$?
5560   grep -v '^ *+' conftest.er1 >conftest.err
5561   rm -f conftest.er1
5562   cat conftest.err >&5
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); } && {
5565          test -z "$ac_c_werror_flag" ||
5566          test ! -s conftest.err
5567        } && test -s conftest$ac_exeext &&
5568        $as_test_x conftest$ac_exeext; then
5569   ac_cv_lib_socket_connect=yes
5570 else
5571   echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574         ac_cv_lib_socket_connect=no
5575 fi
5576
5577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5578       conftest$ac_exeext conftest.$ac_ext
5579 LIBS=$ac_check_lib_save_LIBS
5580 fi
5581 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5582 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5583 if test $ac_cv_lib_socket_connect = yes; then
5584   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5585 fi
5586
5587     fi
5588
5589     # Guillermo Gomez says -lposix is necessary on A/UX.
5590     { echo "$as_me:$LINENO: checking for remove" >&5
5591 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5592 if test "${ac_cv_func_remove+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h.  */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h.  */
5601 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5603 #define remove innocuous_remove
5604
5605 /* System header to define __stub macros and hopefully few prototypes,
5606     which can conflict with char remove (); below.
5607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5608     <limits.h> exists even on freestanding compilers.  */
5609
5610 #ifdef __STDC__
5611 # include <limits.h>
5612 #else
5613 # include <assert.h>
5614 #endif
5615
5616 #undef remove
5617
5618 /* Override any GCC internal prototype to avoid an error.
5619    Use char because int might match the return type of a GCC
5620    builtin and then its argument prototype would still apply.  */
5621 #ifdef __cplusplus
5622 extern "C"
5623 #endif
5624 char remove ();
5625 /* The GNU C library defines this for functions which it implements
5626     to always fail with ENOSYS.  Some functions are actually named
5627     something starting with __ and the normal name is an alias.  */
5628 #if defined __stub_remove || defined __stub___remove
5629 choke me
5630 #endif
5631
5632 int
5633 main ()
5634 {
5635 return remove ();
5636   ;
5637   return 0;
5638 }
5639 _ACEOF
5640 rm -f conftest.$ac_objext conftest$ac_exeext
5641 if { (ac_try="$ac_link"
5642 case "(($ac_try" in
5643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644   *) ac_try_echo=$ac_try;;
5645 esac
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647   (eval "$ac_link") 2>conftest.er1
5648   ac_status=$?
5649   grep -v '^ *+' conftest.er1 >conftest.err
5650   rm -f conftest.er1
5651   cat conftest.err >&5
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); } && {
5654          test -z "$ac_c_werror_flag" ||
5655          test ! -s conftest.err
5656        } && test -s conftest$ac_exeext &&
5657        $as_test_x conftest$ac_exeext; then
5658   ac_cv_func_remove=yes
5659 else
5660   echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663         ac_cv_func_remove=no
5664 fi
5665
5666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5667       conftest$ac_exeext conftest.$ac_ext
5668 fi
5669 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5670 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5671
5672     if test $ac_cv_func_remove = no; then
5673       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5674 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5675 if test "${ac_cv_lib_posix_remove+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   ac_check_lib_save_LIBS=$LIBS
5679 LIBS="-lposix  $LIBS"
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h.  */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h.  */
5686
5687 /* Override any GCC internal prototype to avoid an error.
5688    Use char because int might match the return type of a GCC
5689    builtin and then its argument prototype would still apply.  */
5690 #ifdef __cplusplus
5691 extern "C"
5692 #endif
5693 char remove ();
5694 int
5695 main ()
5696 {
5697 return remove ();
5698   ;
5699   return 0;
5700 }
5701 _ACEOF
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (ac_try="$ac_link"
5704 case "(($ac_try" in
5705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706   *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709   (eval "$ac_link") 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } && {
5716          test -z "$ac_c_werror_flag" ||
5717          test ! -s conftest.err
5718        } && test -s conftest$ac_exeext &&
5719        $as_test_x conftest$ac_exeext; then
5720   ac_cv_lib_posix_remove=yes
5721 else
5722   echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725         ac_cv_lib_posix_remove=no
5726 fi
5727
5728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5729       conftest$ac_exeext conftest.$ac_ext
5730 LIBS=$ac_check_lib_save_LIBS
5731 fi
5732 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5733 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5734 if test $ac_cv_lib_posix_remove = yes; then
5735   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5736 fi
5737
5738     fi
5739
5740     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5741     { echo "$as_me:$LINENO: checking for shmat" >&5
5742 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5743 if test "${ac_cv_func_shmat+set}" = set; then
5744   echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746   cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5754 #define shmat innocuous_shmat
5755
5756 /* System header to define __stub macros and hopefully few prototypes,
5757     which can conflict with char shmat (); below.
5758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5759     <limits.h> exists even on freestanding compilers.  */
5760
5761 #ifdef __STDC__
5762 # include <limits.h>
5763 #else
5764 # include <assert.h>
5765 #endif
5766
5767 #undef shmat
5768
5769 /* Override any GCC internal prototype to avoid an error.
5770    Use char because int might match the return type of a GCC
5771    builtin and then its argument prototype would still apply.  */
5772 #ifdef __cplusplus
5773 extern "C"
5774 #endif
5775 char shmat ();
5776 /* The GNU C library defines this for functions which it implements
5777     to always fail with ENOSYS.  Some functions are actually named
5778     something starting with __ and the normal name is an alias.  */
5779 #if defined __stub_shmat || defined __stub___shmat
5780 choke me
5781 #endif
5782
5783 int
5784 main ()
5785 {
5786 return shmat ();
5787   ;
5788   return 0;
5789 }
5790 _ACEOF
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (ac_try="$ac_link"
5793 case "(($ac_try" in
5794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795   *) ac_try_echo=$ac_try;;
5796 esac
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798   (eval "$ac_link") 2>conftest.er1
5799   ac_status=$?
5800   grep -v '^ *+' conftest.er1 >conftest.err
5801   rm -f conftest.er1
5802   cat conftest.err >&5
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); } && {
5805          test -z "$ac_c_werror_flag" ||
5806          test ! -s conftest.err
5807        } && test -s conftest$ac_exeext &&
5808        $as_test_x conftest$ac_exeext; then
5809   ac_cv_func_shmat=yes
5810 else
5811   echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814         ac_cv_func_shmat=no
5815 fi
5816
5817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5818       conftest$ac_exeext conftest.$ac_ext
5819 fi
5820 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5821 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5822
5823     if test $ac_cv_func_shmat = no; then
5824       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5825 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5826 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   ac_check_lib_save_LIBS=$LIBS
5830 LIBS="-lipc  $LIBS"
5831 cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837
5838 /* Override any GCC internal prototype to avoid an error.
5839    Use char because int might match the return type of a GCC
5840    builtin and then its argument prototype would still apply.  */
5841 #ifdef __cplusplus
5842 extern "C"
5843 #endif
5844 char shmat ();
5845 int
5846 main ()
5847 {
5848 return shmat ();
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (ac_try="$ac_link"
5855 case "(($ac_try" in
5856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857   *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860   (eval "$ac_link") 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } && {
5867          test -z "$ac_c_werror_flag" ||
5868          test ! -s conftest.err
5869        } && test -s conftest$ac_exeext &&
5870        $as_test_x conftest$ac_exeext; then
5871   ac_cv_lib_ipc_shmat=yes
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876         ac_cv_lib_ipc_shmat=no
5877 fi
5878
5879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5880       conftest$ac_exeext conftest.$ac_ext
5881 LIBS=$ac_check_lib_save_LIBS
5882 fi
5883 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5884 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5885 if test $ac_cv_lib_ipc_shmat = yes; then
5886   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5887 fi
5888
5889     fi
5890   fi
5891
5892   # Check for libraries that X11R6 Xt/Xaw programs need.
5893   ac_save_LDFLAGS=$LDFLAGS
5894   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5895   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5896   # check for ICE first), but we must link in the order -lSM -lICE or
5897   # we get undefined symbols.  So assume we have SM if we have ICE.
5898   # These have to be linked with before -lX11, unlike the other
5899   # libraries we check for below, so use a different variable.
5900   # John Interrante, Karl Berry
5901   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5902 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5903 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   ac_check_lib_save_LIBS=$LIBS
5907 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h.  */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h.  */
5914
5915 /* Override any GCC internal prototype to avoid an error.
5916    Use char because int might match the return type of a GCC
5917    builtin and then its argument prototype would still apply.  */
5918 #ifdef __cplusplus
5919 extern "C"
5920 #endif
5921 char IceConnectionNumber ();
5922 int
5923 main ()
5924 {
5925 return IceConnectionNumber ();
5926   ;
5927   return 0;
5928 }
5929 _ACEOF
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (ac_try="$ac_link"
5932 case "(($ac_try" in
5933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934   *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937   (eval "$ac_link") 2>conftest.er1
5938   ac_status=$?
5939   grep -v '^ *+' conftest.er1 >conftest.err
5940   rm -f conftest.er1
5941   cat conftest.err >&5
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); } && {
5944          test -z "$ac_c_werror_flag" ||
5945          test ! -s conftest.err
5946        } && test -s conftest$ac_exeext &&
5947        $as_test_x conftest$ac_exeext; then
5948   ac_cv_lib_ICE_IceConnectionNumber=yes
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953         ac_cv_lib_ICE_IceConnectionNumber=no
5954 fi
5955
5956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5957       conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5959 fi
5960 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5961 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5962 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5963   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5964 fi
5965
5966   LDFLAGS=$ac_save_LDFLAGS
5967
5968 fi
5969
5970
5971 if test "$have_x" != yes; then
5972   { echo "$as_me:$LINENO: X11 not found. Disabling server font grabbing." >&5
5973 echo "$as_me: X11 not found. Disabling server font grabbing." >&6;}
5974 else
5975   DEFINES="$DEFINES -DHAVE_XLIB"
5976   BDFGRABSRC="bdfgrab.c"
5977   BDFGRABOBJ="bdfgrab.o"
5978 fi
5979
5980 #
5981 # Fix for implicit DSO linking issue.
5982 #
5983
5984 { echo "$as_me:$LINENO: checking for XCreatePixmap in -lX11" >&5
5985 echo $ECHO_N "checking for XCreatePixmap in -lX11... $ECHO_C" >&6; }
5986 if test "${ac_cv_lib_X11_XCreatePixmap+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   ac_check_lib_save_LIBS=$LIBS
5990 LIBS="-lX11  $LIBS"
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997
5998 /* Override any GCC internal prototype to avoid an error.
5999    Use char because int might match the return type of a GCC
6000    builtin and then its argument prototype would still apply.  */
6001 #ifdef __cplusplus
6002 extern "C"
6003 #endif
6004 char XCreatePixmap ();
6005 int
6006 main ()
6007 {
6008 return XCreatePixmap ();
6009   ;
6010   return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest.$ac_objext conftest$ac_exeext
6014 if { (ac_try="$ac_link"
6015 case "(($ac_try" in
6016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017   *) ac_try_echo=$ac_try;;
6018 esac
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020   (eval "$ac_link") 2>conftest.er1
6021   ac_status=$?
6022   grep -v '^ *+' conftest.er1 >conftest.err
6023   rm -f conftest.er1
6024   cat conftest.err >&5
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); } && {
6027          test -z "$ac_c_werror_flag" ||
6028          test ! -s conftest.err
6029        } && test -s conftest$ac_exeext &&
6030        $as_test_x conftest$ac_exeext; then
6031   ac_cv_lib_X11_XCreatePixmap=yes
6032 else
6033   echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6035
6036         ac_cv_lib_X11_XCreatePixmap=no
6037 fi
6038
6039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6040       conftest$ac_exeext conftest.$ac_ext
6041 LIBS=$ac_check_lib_save_LIBS
6042 fi
6043 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XCreatePixmap" >&5
6044 echo "${ECHO_T}$ac_cv_lib_X11_XCreatePixmap" >&6; }
6045 if test $ac_cv_lib_X11_XCreatePixmap = yes; then
6046   cat >>confdefs.h <<_ACEOF
6047 #define HAVE_LIBX11 1
6048 _ACEOF
6049
6050   LIBS="-lX11 $LIBS"
6051
6052 fi
6053
6054
6055
6056
6057
6058
6059
6060
6061 ac_config_files="$ac_config_files Makefile"
6062
6063 cat >confcache <<\_ACEOF
6064 # This file is a shell script that caches the results of configure
6065 # tests run on this system so they can be shared between configure
6066 # scripts and configure runs, see configure's option --config-cache.
6067 # It is not useful on other systems.  If it contains results you don't
6068 # want to keep, you may remove or edit it.
6069 #
6070 # config.status only pays attention to the cache file if you give it
6071 # the --recheck option to rerun configure.
6072 #
6073 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6074 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6075 # following values.
6076
6077 _ACEOF
6078
6079 # The following way of writing the cache mishandles newlines in values,
6080 # but we know of no workaround that is simple, portable, and efficient.
6081 # So, we kill variables containing newlines.
6082 # Ultrix sh set writes to stderr and can't be redirected directly,
6083 # and sets the high bit in the cache file unless we assign to the vars.
6084 (
6085   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6086     eval ac_val=\$$ac_var
6087     case $ac_val in #(
6088     *${as_nl}*)
6089       case $ac_var in #(
6090       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6091 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6092       esac
6093       case $ac_var in #(
6094       _ | IFS | as_nl) ;; #(
6095       *) $as_unset $ac_var ;;
6096       esac ;;
6097     esac
6098   done
6099
6100   (set) 2>&1 |
6101     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6102     *${as_nl}ac_space=\ *)
6103       # `set' does not quote correctly, so add quotes (double-quote
6104       # substitution turns \\\\ into \\, and sed turns \\ into \).
6105       sed -n \
6106         "s/'/'\\\\''/g;
6107           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6108       ;; #(
6109     *)
6110       # `set' quotes correctly as required by POSIX, so do not add quotes.
6111       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6112       ;;
6113     esac |
6114     sort
6115 ) |
6116   sed '
6117      /^ac_cv_env_/b end
6118      t clear
6119      :clear
6120      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6121      t end
6122      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6123      :end' >>confcache
6124 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6125   if test -w "$cache_file"; then
6126     test "x$cache_file" != "x/dev/null" &&
6127       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6128 echo "$as_me: updating cache $cache_file" >&6;}
6129     cat confcache >$cache_file
6130   else
6131     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6132 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6133   fi
6134 fi
6135 rm -f confcache
6136
6137 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6138 # Let make expand exec_prefix.
6139 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6140
6141 # Transform confdefs.h into DEFS.
6142 # Protect against shell expansion while executing Makefile rules.
6143 # Protect against Makefile macro expansion.
6144 #
6145 # If the first sed substitution is executed (which looks for macros that
6146 # take arguments), then branch to the quote section.  Otherwise,
6147 # look for a macro that doesn't take arguments.
6148 ac_script='
6149 t clear
6150 :clear
6151 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
6152 t quote
6153 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
6154 t quote
6155 b any
6156 :quote
6157 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6158 s/\[/\\&/g
6159 s/\]/\\&/g
6160 s/\$/$$/g
6161 H
6162 :any
6163 ${
6164         g
6165         s/^\n//
6166         s/\n/ /g
6167         p
6168 }
6169 '
6170 DEFS=`sed -n "$ac_script" confdefs.h`
6171
6172
6173 ac_libobjs=
6174 ac_ltlibobjs=
6175 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6176   # 1. Remove the extension, and $U if already installed.
6177   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6178   ac_i=`echo "$ac_i" | sed "$ac_script"`
6179   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6180   #    will be set to the directory where LIBOBJS objects are built.
6181   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6182   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6183 done
6184 LIBOBJS=$ac_libobjs
6185
6186 LTLIBOBJS=$ac_ltlibobjs
6187
6188
6189
6190 : ${CONFIG_STATUS=./config.status}
6191 ac_clean_files_save=$ac_clean_files
6192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6193 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6194 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6195 cat >$CONFIG_STATUS <<_ACEOF
6196 #! $SHELL
6197 # Generated by $as_me.
6198 # Run this file to recreate the current configuration.
6199 # Compiler output produced by configure, useful for debugging
6200 # configure, is in config.log if it exists.
6201
6202 debug=false
6203 ac_cs_recheck=false
6204 ac_cs_silent=false
6205 SHELL=\${CONFIG_SHELL-$SHELL}
6206 _ACEOF
6207
6208 cat >>$CONFIG_STATUS <<\_ACEOF
6209 ## --------------------- ##
6210 ## M4sh Initialization.  ##
6211 ## --------------------- ##
6212
6213 # Be more Bourne compatible
6214 DUALCASE=1; export DUALCASE # for MKS sh
6215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6216   emulate sh
6217   NULLCMD=:
6218   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6219   # is contrary to our usage.  Disable this feature.
6220   alias -g '${1+"$@"}'='"$@"'
6221   setopt NO_GLOB_SUBST
6222 else
6223   case `(set -o) 2>/dev/null` in
6224   *posix*) set -o posix ;;
6225 esac
6226
6227 fi
6228
6229
6230
6231
6232 # PATH needs CR
6233 # Avoid depending upon Character Ranges.
6234 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6235 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6236 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6237 as_cr_digits='0123456789'
6238 as_cr_alnum=$as_cr_Letters$as_cr_digits
6239
6240 # The user is always right.
6241 if test "${PATH_SEPARATOR+set}" != set; then
6242   echo "#! /bin/sh" >conf$$.sh
6243   echo  "exit 0"   >>conf$$.sh
6244   chmod +x conf$$.sh
6245   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6246     PATH_SEPARATOR=';'
6247   else
6248     PATH_SEPARATOR=:
6249   fi
6250   rm -f conf$$.sh
6251 fi
6252
6253 # Support unset when possible.
6254 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6255   as_unset=unset
6256 else
6257   as_unset=false
6258 fi
6259
6260
6261 # IFS
6262 # We need space, tab and new line, in precisely that order.  Quoting is
6263 # there to prevent editors from complaining about space-tab.
6264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6265 # splitting by setting IFS to empty value.)
6266 as_nl='
6267 '
6268 IFS=" ""        $as_nl"
6269
6270 # Find who we are.  Look in the path if we contain no directory separator.
6271 case $0 in
6272   *[\\/]* ) as_myself=$0 ;;
6273   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6279 done
6280 IFS=$as_save_IFS
6281
6282      ;;
6283 esac
6284 # We did not find ourselves, most probably we were run as `sh COMMAND'
6285 # in which case we are not to be found in the path.
6286 if test "x$as_myself" = x; then
6287   as_myself=$0
6288 fi
6289 if test ! -f "$as_myself"; then
6290   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6291   { (exit 1); exit 1; }
6292 fi
6293
6294 # Work around bugs in pre-3.0 UWIN ksh.
6295 for as_var in ENV MAIL MAILPATH
6296 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6297 done
6298 PS1='$ '
6299 PS2='> '
6300 PS4='+ '
6301
6302 # NLS nuisances.
6303 for as_var in \
6304   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6305   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6306   LC_TELEPHONE LC_TIME
6307 do
6308   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6309     eval $as_var=C; export $as_var
6310   else
6311     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6312   fi
6313 done
6314
6315 # Required to use basename.
6316 if expr a : '\(a\)' >/dev/null 2>&1 &&
6317    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6318   as_expr=expr
6319 else
6320   as_expr=false
6321 fi
6322
6323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6324   as_basename=basename
6325 else
6326   as_basename=false
6327 fi
6328
6329
6330 # Name of the executable.
6331 as_me=`$as_basename -- "$0" ||
6332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6333          X"$0" : 'X\(//\)$' \| \
6334          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6335 echo X/"$0" |
6336     sed '/^.*\/\([^/][^/]*\)\/*$/{
6337             s//\1/
6338             q
6339           }
6340           /^X\/\(\/\/\)$/{
6341             s//\1/
6342             q
6343           }
6344           /^X\/\(\/\).*/{
6345             s//\1/
6346             q
6347           }
6348           s/.*/./; q'`
6349
6350 # CDPATH.
6351 $as_unset CDPATH
6352
6353
6354
6355   as_lineno_1=$LINENO
6356   as_lineno_2=$LINENO
6357   test "x$as_lineno_1" != "x$as_lineno_2" &&
6358   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6359
6360   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6361   # uniformly replaced by the line number.  The first 'sed' inserts a
6362   # line-number line after each line using $LINENO; the second 'sed'
6363   # does the real work.  The second script uses 'N' to pair each
6364   # line-number line with the line containing $LINENO, and appends
6365   # trailing '-' during substitution so that $LINENO is not a special
6366   # case at line end.
6367   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6368   # scripts with optimization help from Paolo Bonzini.  Blame Lee
6369   # E. McMahon (1931-1989) for sed's syntax.  :-)
6370   sed -n '
6371     p
6372     /[$]LINENO/=
6373   ' <$as_myself |
6374     sed '
6375       s/[$]LINENO.*/&-/
6376       t lineno
6377       b
6378       :lineno
6379       N
6380       :loop
6381       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6382       t loop
6383       s/-\n.*//
6384     ' >$as_me.lineno &&
6385   chmod +x "$as_me.lineno" ||
6386     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6387    { (exit 1); exit 1; }; }
6388
6389   # Don't try to exec as it changes $[0], causing all sort of problems
6390   # (the dirname of $[0] is not the place where we might find the
6391   # original and so on.  Autoconf is especially sensitive to this).
6392   . "./$as_me.lineno"
6393   # Exit status is that of the last command.
6394   exit
6395 }
6396
6397
6398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6399   as_dirname=dirname
6400 else
6401   as_dirname=false
6402 fi
6403
6404 ECHO_C= ECHO_N= ECHO_T=
6405 case `echo -n x` in
6406 -n*)
6407   case `echo 'x\c'` in
6408   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6409   *)   ECHO_C='\c';;
6410   esac;;
6411 *)
6412   ECHO_N='-n';;
6413 esac
6414
6415 if expr a : '\(a\)' >/dev/null 2>&1 &&
6416    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6417   as_expr=expr
6418 else
6419   as_expr=false
6420 fi
6421
6422 rm -f conf$$ conf$$.exe conf$$.file
6423 if test -d conf$$.dir; then
6424   rm -f conf$$.dir/conf$$.file
6425 else
6426   rm -f conf$$.dir
6427   mkdir conf$$.dir
6428 fi
6429 echo >conf$$.file
6430 if ln -s conf$$.file conf$$ 2>/dev/null; then
6431   as_ln_s='ln -s'
6432   # ... but there are two gotchas:
6433   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6434   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6435   # In both cases, we have to default to `cp -p'.
6436   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6437     as_ln_s='cp -p'
6438 elif ln conf$$.file conf$$ 2>/dev/null; then
6439   as_ln_s=ln
6440 else
6441   as_ln_s='cp -p'
6442 fi
6443 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6444 rmdir conf$$.dir 2>/dev/null
6445
6446 if mkdir -p . 2>/dev/null; then
6447   as_mkdir_p=:
6448 else
6449   test -d ./-p && rmdir ./-p
6450   as_mkdir_p=false
6451 fi
6452
6453 if test -x / >/dev/null 2>&1; then
6454   as_test_x='test -x'
6455 else
6456   if ls -dL / >/dev/null 2>&1; then
6457     as_ls_L_option=L
6458   else
6459     as_ls_L_option=
6460   fi
6461   as_test_x='
6462     eval sh -c '\''
6463       if test -d "$1"; then
6464         test -d "$1/.";
6465       else
6466         case $1 in
6467         -*)set "./$1";;
6468         esac;
6469         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6470         ???[sx]*):;;*)false;;esac;fi
6471     '\'' sh
6472   '
6473 fi
6474 as_executable_p=$as_test_x
6475
6476 # Sed expression to map a string onto a valid CPP name.
6477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6478
6479 # Sed expression to map a string onto a valid variable name.
6480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6481
6482
6483 exec 6>&1
6484
6485 # Save the log message, to keep $[0] and so on meaningful, and to
6486 # report actual input values of CONFIG_FILES etc. instead of their
6487 # values after options handling.
6488 ac_log="
6489 This file was extended by $as_me, which was
6490 generated by GNU Autoconf 2.61.  Invocation command line was
6491
6492   CONFIG_FILES    = $CONFIG_FILES
6493   CONFIG_HEADERS  = $CONFIG_HEADERS
6494   CONFIG_LINKS    = $CONFIG_LINKS
6495   CONFIG_COMMANDS = $CONFIG_COMMANDS
6496   $ $0 $@
6497
6498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6499 "
6500
6501 _ACEOF
6502
6503 cat >>$CONFIG_STATUS <<_ACEOF
6504 # Files that config.status was made for.
6505 config_files="$ac_config_files"
6506
6507 _ACEOF
6508
6509 cat >>$CONFIG_STATUS <<\_ACEOF
6510 ac_cs_usage="\
6511 \`$as_me' instantiates files from templates according to the
6512 current configuration.
6513
6514 Usage: $0 [OPTIONS] [FILE]...
6515
6516   -h, --help       print this help, then exit
6517   -V, --version    print version number and configuration settings, then exit
6518   -q, --quiet      do not print progress messages
6519   -d, --debug      don't remove temporary files
6520       --recheck    update $as_me by reconfiguring in the same conditions
6521   --file=FILE[:TEMPLATE]
6522                    instantiate the configuration file FILE
6523
6524 Configuration files:
6525 $config_files
6526
6527 Report bugs to <bug-autoconf@gnu.org>."
6528
6529 _ACEOF
6530 cat >>$CONFIG_STATUS <<_ACEOF
6531 ac_cs_version="\\
6532 config.status
6533 configured by $0, generated by GNU Autoconf 2.61,
6534   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6535
6536 Copyright (C) 2006 Free Software Foundation, Inc.
6537 This config.status script is free software; the Free Software Foundation
6538 gives unlimited permission to copy, distribute and modify it."
6539
6540 ac_pwd='$ac_pwd'
6541 srcdir='$srcdir'
6542 _ACEOF
6543
6544 cat >>$CONFIG_STATUS <<\_ACEOF
6545 # If no file are specified by the user, then we need to provide default
6546 # value.  By we need to know if files were specified by the user.
6547 ac_need_defaults=:
6548 while test $# != 0
6549 do
6550   case $1 in
6551   --*=*)
6552     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6553     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6554     ac_shift=:
6555     ;;
6556   *)
6557     ac_option=$1
6558     ac_optarg=$2
6559     ac_shift=shift
6560     ;;
6561   esac
6562
6563   case $ac_option in
6564   # Handling of the options.
6565   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6566     ac_cs_recheck=: ;;
6567   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6568     echo "$ac_cs_version"; exit ;;
6569   --debug | --debu | --deb | --de | --d | -d )
6570     debug=: ;;
6571   --file | --fil | --fi | --f )
6572     $ac_shift
6573     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6574     ac_need_defaults=false;;
6575   --he | --h |  --help | --hel | -h )
6576     echo "$ac_cs_usage"; exit ;;
6577   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6578   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6579     ac_cs_silent=: ;;
6580
6581   # This is an error.
6582   -*) { echo "$as_me: error: unrecognized option: $1
6583 Try \`$0 --help' for more information." >&2
6584    { (exit 1); exit 1; }; } ;;
6585
6586   *) ac_config_targets="$ac_config_targets $1"
6587      ac_need_defaults=false ;;
6588
6589   esac
6590   shift
6591 done
6592
6593 ac_configure_extra_args=
6594
6595 if $ac_cs_silent; then
6596   exec 6>/dev/null
6597   ac_configure_extra_args="$ac_configure_extra_args --silent"
6598 fi
6599
6600 _ACEOF
6601 cat >>$CONFIG_STATUS <<_ACEOF
6602 if \$ac_cs_recheck; then
6603   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6604   CONFIG_SHELL=$SHELL
6605   export CONFIG_SHELL
6606   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6607 fi
6608
6609 _ACEOF
6610 cat >>$CONFIG_STATUS <<\_ACEOF
6611 exec 5>>config.log
6612 {
6613   echo
6614   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6615 ## Running $as_me. ##
6616 _ASBOX
6617   echo "$ac_log"
6618 } >&5
6619
6620 _ACEOF
6621 cat >>$CONFIG_STATUS <<_ACEOF
6622 _ACEOF
6623
6624 cat >>$CONFIG_STATUS <<\_ACEOF
6625
6626 # Handling of arguments.
6627 for ac_config_target in $ac_config_targets
6628 do
6629   case $ac_config_target in
6630     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6631
6632   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6634    { (exit 1); exit 1; }; };;
6635   esac
6636 done
6637
6638
6639 # If the user did not use the arguments to specify the items to instantiate,
6640 # then the envvar interface is used.  Set only those that are not.
6641 # We use the long form for the default assignment because of an extremely
6642 # bizarre bug on SunOS 4.1.3.
6643 if $ac_need_defaults; then
6644   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6645 fi
6646
6647 # Have a temporary directory for convenience.  Make it in the build tree
6648 # simply because there is no reason against having it here, and in addition,
6649 # creating and moving files from /tmp can sometimes cause problems.
6650 # Hook for its removal unless debugging.
6651 # Note that there is a small window in which the directory will not be cleaned:
6652 # after its creation but before its name has been assigned to `$tmp'.
6653 $debug ||
6654 {
6655   tmp=
6656   trap 'exit_status=$?
6657   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6658 ' 0
6659   trap '{ (exit 1); exit 1; }' 1 2 13 15
6660 }
6661 # Create a (secure) tmp directory for tmp files.
6662
6663 {
6664   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6665   test -n "$tmp" && test -d "$tmp"
6666 }  ||
6667 {
6668   tmp=./conf$$-$RANDOM
6669   (umask 077 && mkdir "$tmp")
6670 } ||
6671 {
6672    echo "$me: cannot create a temporary directory in ." >&2
6673    { (exit 1); exit 1; }
6674 }
6675
6676 #
6677 # Set up the sed scripts for CONFIG_FILES section.
6678 #
6679
6680 # No need to generate the scripts if there are no CONFIG_FILES.
6681 # This happens for instance when ./config.status config.h
6682 if test -n "$CONFIG_FILES"; then
6683
6684 _ACEOF
6685
6686
6687
6688 ac_delim='%!_!# '
6689 for ac_last_try in false false false false false :; do
6690   cat >conf$$subs.sed <<_ACEOF
6691 SHELL!$SHELL$ac_delim
6692 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6693 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6694 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6695 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6696 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6697 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6698 exec_prefix!$exec_prefix$ac_delim
6699 prefix!$prefix$ac_delim
6700 program_transform_name!$program_transform_name$ac_delim
6701 bindir!$bindir$ac_delim
6702 sbindir!$sbindir$ac_delim
6703 libexecdir!$libexecdir$ac_delim
6704 datarootdir!$datarootdir$ac_delim
6705 datadir!$datadir$ac_delim
6706 sysconfdir!$sysconfdir$ac_delim
6707 sharedstatedir!$sharedstatedir$ac_delim
6708 localstatedir!$localstatedir$ac_delim
6709 includedir!$includedir$ac_delim
6710 oldincludedir!$oldincludedir$ac_delim
6711 docdir!$docdir$ac_delim
6712 infodir!$infodir$ac_delim
6713 htmldir!$htmldir$ac_delim
6714 dvidir!$dvidir$ac_delim
6715 pdfdir!$pdfdir$ac_delim
6716 psdir!$psdir$ac_delim
6717 libdir!$libdir$ac_delim
6718 localedir!$localedir$ac_delim
6719 mandir!$mandir$ac_delim
6720 DEFS!$DEFS$ac_delim
6721 ECHO_C!$ECHO_C$ac_delim
6722 ECHO_N!$ECHO_N$ac_delim
6723 ECHO_T!$ECHO_T$ac_delim
6724 LIBS!$LIBS$ac_delim
6725 build_alias!$build_alias$ac_delim
6726 host_alias!$host_alias$ac_delim
6727 target_alias!$target_alias$ac_delim
6728 CC!$CC$ac_delim
6729 CFLAGS!$CFLAGS$ac_delim
6730 LDFLAGS!$LDFLAGS$ac_delim
6731 CPPFLAGS!$CPPFLAGS$ac_delim
6732 ac_ct_CC!$ac_ct_CC$ac_delim
6733 EXEEXT!$EXEEXT$ac_delim
6734 OBJEXT!$OBJEXT$ac_delim
6735 XX_CFLAGS!$XX_CFLAGS$ac_delim
6736 RM!$RM$ac_delim
6737 CP!$CP$ac_delim
6738 CPP!$CPP$ac_delim
6739 GREP!$GREP$ac_delim
6740 EGREP!$EGREP$ac_delim
6741 LIBOBJS!$LIBOBJS$ac_delim
6742 PKG_CONFIG!$PKG_CONFIG$ac_delim
6743 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
6744 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
6745 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
6746 GTK_LIBS!$GTK_LIBS$ac_delim
6747 XMKMF!$XMKMF$ac_delim
6748 X_CFLAGS!$X_CFLAGS$ac_delim
6749 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
6750 X_LIBS!$X_LIBS$ac_delim
6751 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
6752 DEFINES!$DEFINES$ac_delim
6753 HBFSRC!$HBFSRC$ac_delim
6754 HBFOBJ!$HBFOBJ$ac_delim
6755 BDFGRABSRC!$BDFGRABSRC$ac_delim
6756 BDFGRABOBJ!$BDFGRABOBJ$ac_delim
6757 LTLIBOBJS!$LTLIBOBJS$ac_delim
6758 _ACEOF
6759
6760   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
6761     break
6762   elif $ac_last_try; then
6763     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6764 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6765    { (exit 1); exit 1; }; }
6766   else
6767     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6768   fi
6769 done
6770
6771 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6772 if test -n "$ac_eof"; then
6773   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6774   ac_eof=`expr $ac_eof + 1`
6775 fi
6776
6777 cat >>$CONFIG_STATUS <<_ACEOF
6778 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6780 _ACEOF
6781 sed '
6782 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6783 s/^/s,@/; s/!/@,|#_!!_#|/
6784 :n
6785 t n
6786 s/'"$ac_delim"'$/,g/; t
6787 s/$/\\/; p
6788 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6789 ' >>$CONFIG_STATUS <conf$$subs.sed
6790 rm -f conf$$subs.sed
6791 cat >>$CONFIG_STATUS <<_ACEOF
6792 :end
6793 s/|#_!!_#|//g
6794 CEOF$ac_eof
6795 _ACEOF
6796
6797
6798 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6799 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6800 # trailing colons and then remove the whole line if VPATH becomes empty
6801 # (actually we leave an empty line to preserve line numbers).
6802 if test "x$srcdir" = x.; then
6803   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6804 s/:*\$(srcdir):*/:/
6805 s/:*\${srcdir}:*/:/
6806 s/:*@srcdir@:*/:/
6807 s/^\([^=]*=[     ]*\):*/\1/
6808 s/:*$//
6809 s/^[^=]*=[       ]*$//
6810 }'
6811 fi
6812
6813 cat >>$CONFIG_STATUS <<\_ACEOF
6814 fi # test -n "$CONFIG_FILES"
6815
6816
6817 for ac_tag in  :F $CONFIG_FILES
6818 do
6819   case $ac_tag in
6820   :[FHLC]) ac_mode=$ac_tag; continue;;
6821   esac
6822   case $ac_mode$ac_tag in
6823   :[FHL]*:*);;
6824   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6825 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6826    { (exit 1); exit 1; }; };;
6827   :[FH]-) ac_tag=-:-;;
6828   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6829   esac
6830   ac_save_IFS=$IFS
6831   IFS=:
6832   set x $ac_tag
6833   IFS=$ac_save_IFS
6834   shift
6835   ac_file=$1
6836   shift
6837
6838   case $ac_mode in
6839   :L) ac_source=$1;;
6840   :[FH])
6841     ac_file_inputs=
6842     for ac_f
6843     do
6844       case $ac_f in
6845       -) ac_f="$tmp/stdin";;
6846       *) # Look for the file first in the build tree, then in the source tree
6847          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6848          # because $ac_f cannot contain `:'.
6849          test -f "$ac_f" ||
6850            case $ac_f in
6851            [\\/$]*) false;;
6852            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6853            esac ||
6854            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6855 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6856    { (exit 1); exit 1; }; };;
6857       esac
6858       ac_file_inputs="$ac_file_inputs $ac_f"
6859     done
6860
6861     # Let's still pretend it is `configure' which instantiates (i.e., don't
6862     # use $as_me), people would be surprised to read:
6863     #    /* config.h.  Generated by config.status.  */
6864     configure_input="Generated from "`IFS=:
6865           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6866     if test x"$ac_file" != x-; then
6867       configure_input="$ac_file.  $configure_input"
6868       { echo "$as_me:$LINENO: creating $ac_file" >&5
6869 echo "$as_me: creating $ac_file" >&6;}
6870     fi
6871
6872     case $ac_tag in
6873     *:-:* | *:-) cat >"$tmp/stdin";;
6874     esac
6875     ;;
6876   esac
6877
6878   ac_dir=`$as_dirname -- "$ac_file" ||
6879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6880          X"$ac_file" : 'X\(//\)[^/]' \| \
6881          X"$ac_file" : 'X\(//\)$' \| \
6882          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6883 echo X"$ac_file" |
6884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6885             s//\1/
6886             q
6887           }
6888           /^X\(\/\/\)[^/].*/{
6889             s//\1/
6890             q
6891           }
6892           /^X\(\/\/\)$/{
6893             s//\1/
6894             q
6895           }
6896           /^X\(\/\).*/{
6897             s//\1/
6898             q
6899           }
6900           s/.*/./; q'`
6901   { as_dir="$ac_dir"
6902   case $as_dir in #(
6903   -*) as_dir=./$as_dir;;
6904   esac
6905   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6906     as_dirs=
6907     while :; do
6908       case $as_dir in #(
6909       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6910       *) as_qdir=$as_dir;;
6911       esac
6912       as_dirs="'$as_qdir' $as_dirs"
6913       as_dir=`$as_dirname -- "$as_dir" ||
6914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6915          X"$as_dir" : 'X\(//\)[^/]' \| \
6916          X"$as_dir" : 'X\(//\)$' \| \
6917          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6918 echo X"$as_dir" |
6919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6920             s//\1/
6921             q
6922           }
6923           /^X\(\/\/\)[^/].*/{
6924             s//\1/
6925             q
6926           }
6927           /^X\(\/\/\)$/{
6928             s//\1/
6929             q
6930           }
6931           /^X\(\/\).*/{
6932             s//\1/
6933             q
6934           }
6935           s/.*/./; q'`
6936       test -d "$as_dir" && break
6937     done
6938     test -z "$as_dirs" || eval "mkdir $as_dirs"
6939   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6940 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6941    { (exit 1); exit 1; }; }; }
6942   ac_builddir=.
6943
6944 case "$ac_dir" in
6945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6946 *)
6947   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6948   # A ".." for each directory in $ac_dir_suffix.
6949   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6950   case $ac_top_builddir_sub in
6951   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6952   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6953   esac ;;
6954 esac
6955 ac_abs_top_builddir=$ac_pwd
6956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6957 # for backward compatibility:
6958 ac_top_builddir=$ac_top_build_prefix
6959
6960 case $srcdir in
6961   .)  # We are building in place.
6962     ac_srcdir=.
6963     ac_top_srcdir=$ac_top_builddir_sub
6964     ac_abs_top_srcdir=$ac_pwd ;;
6965   [\\/]* | ?:[\\/]* )  # Absolute name.
6966     ac_srcdir=$srcdir$ac_dir_suffix;
6967     ac_top_srcdir=$srcdir
6968     ac_abs_top_srcdir=$srcdir ;;
6969   *) # Relative name.
6970     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6971     ac_top_srcdir=$ac_top_build_prefix$srcdir
6972     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6973 esac
6974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6975
6976
6977   case $ac_mode in
6978   :F)
6979   #
6980   # CONFIG_FILE
6981   #
6982
6983 _ACEOF
6984
6985 cat >>$CONFIG_STATUS <<\_ACEOF
6986 # If the template does not know about datarootdir, expand it.
6987 # FIXME: This hack should be removed a few years after 2.60.
6988 ac_datarootdir_hack=; ac_datarootdir_seen=
6989
6990 case `sed -n '/datarootdir/ {
6991   p
6992   q
6993 }
6994 /@datadir@/p
6995 /@docdir@/p
6996 /@infodir@/p
6997 /@localedir@/p
6998 /@mandir@/p
6999 ' $ac_file_inputs` in
7000 *datarootdir*) ac_datarootdir_seen=yes;;
7001 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7002   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7003 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7004 _ACEOF
7005 cat >>$CONFIG_STATUS <<_ACEOF
7006   ac_datarootdir_hack='
7007   s&@datadir@&$datadir&g
7008   s&@docdir@&$docdir&g
7009   s&@infodir@&$infodir&g
7010   s&@localedir@&$localedir&g
7011   s&@mandir@&$mandir&g
7012     s&\\\${datarootdir}&$datarootdir&g' ;;
7013 esac
7014 _ACEOF
7015
7016 # Neutralize VPATH when `$srcdir' = `.'.
7017 # Shell code in configure.ac might set extrasub.
7018 # FIXME: do we really want to maintain this feature?
7019 cat >>$CONFIG_STATUS <<_ACEOF
7020   sed "$ac_vpsub
7021 $extrasub
7022 _ACEOF
7023 cat >>$CONFIG_STATUS <<\_ACEOF
7024 :t
7025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7026 s&@configure_input@&$configure_input&;t t
7027 s&@top_builddir@&$ac_top_builddir_sub&;t t
7028 s&@srcdir@&$ac_srcdir&;t t
7029 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7030 s&@top_srcdir@&$ac_top_srcdir&;t t
7031 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7032 s&@builddir@&$ac_builddir&;t t
7033 s&@abs_builddir@&$ac_abs_builddir&;t t
7034 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7035 $ac_datarootdir_hack
7036 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7037
7038 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7039   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7040   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7041   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7042 which seems to be undefined.  Please make sure it is defined." >&5
7043 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7044 which seems to be undefined.  Please make sure it is defined." >&2;}
7045
7046   rm -f "$tmp/stdin"
7047   case $ac_file in
7048   -) cat "$tmp/out"; rm -f "$tmp/out";;
7049   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7050   esac
7051  ;;
7052
7053
7054
7055   esac
7056
7057 done # for ac_tag
7058
7059
7060 { (exit 0); exit 0; }
7061 _ACEOF
7062 chmod +x $CONFIG_STATUS
7063 ac_clean_files=$ac_clean_files_save
7064
7065
7066 # configure is writing to config.log, and then calls config.status.
7067 # config.status does its own redirection, appending to config.log.
7068 # Unfortunately, on DOS this fails, as config.log is still kept open
7069 # by configure, so config.status won't be able to write to it; its
7070 # output is simply discarded.  So we exec the FD to /dev/null,
7071 # effectively closing config.log, so it can be properly (re)opened and
7072 # appended to by config.status.  When coming back to configure, we
7073 # need to make the FD available again.
7074 if test "$no_create" != yes; then
7075   ac_cs_success=:
7076   ac_config_status_args=
7077   test "$silent" = yes &&
7078     ac_config_status_args="$ac_config_status_args --quiet"
7079   exec 5>/dev/null
7080   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7081   exec 5>>config.log
7082   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7083   # would make configure fail if this is the last instruction.
7084   $ac_cs_success || { (exit 1); exit 1; }
7085 fi
7086