]> git.donarmstrong.com Git - xournal.git/blob - configure
add Dutch translation
[xournal.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 LIBOBJS
642 MKINSTALLDIRS
643 POSUB
644 POFILES
645 PO_IN_DATADIR_FALSE
646 PO_IN_DATADIR_TRUE
647 INTLLIBS
648 INSTOBJEXT
649 GMOFILES
650 DATADIRNAME
651 CATOBJEXT
652 CATALOGS
653 XGETTEXT
654 GMSGFMT
655 MSGFMT_OPTS
656 MSGFMT
657 USE_NLS
658 GETTEXT_PACKAGE
659 WIN32_FALSE
660 WIN32_TRUE
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 PACKAGE_LIBS
670 PACKAGE_CFLAGS
671 PKG_CONFIG
672 EGREP
673 GREP
674 CPP
675 RANLIB
676 am__fastdepCC_FALSE
677 am__fastdepCC_TRUE
678 CCDEPMODE
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 MAINT
693 MAINTAINER_MODE_FALSE
694 MAINTAINER_MODE_TRUE
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_maintainer_mode
759 enable_dependency_tracking
760 '
761       ac_precious_vars='build_alias
762 host_alias
763 target_alias
764 CC
765 CFLAGS
766 LDFLAGS
767 LIBS
768 CPPFLAGS
769 CPP
770 PKG_CONFIG
771 PACKAGE_CFLAGS
772 PACKAGE_LIBS'
773
774
775 # Initialize some variables set by options.
776 ac_init_help=
777 ac_init_version=false
778 ac_unrecognized_opts=
779 ac_unrecognized_sep=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
782 cache_file=/dev/null
783 exec_prefix=NONE
784 no_create=
785 no_recursion=
786 prefix=NONE
787 program_prefix=NONE
788 program_suffix=NONE
789 program_transform_name=s,x,x,
790 silent=
791 site=
792 srcdir=
793 verbose=
794 x_includes=NONE
795 x_libraries=NONE
796
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE}'
814 infodir='${datarootdir}/info'
815 htmldir='${docdir}'
816 dvidir='${docdir}'
817 pdfdir='${docdir}'
818 psdir='${docdir}'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
822
823 ac_prev=
824 ac_dashdash=
825 for ac_option
826 do
827   # If the previous option needs an argument, assign it.
828   if test -n "$ac_prev"; then
829     eval $ac_prev=\$ac_option
830     ac_prev=
831     continue
832   fi
833
834   case $ac_option in
835   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836   *)    ac_optarg=yes ;;
837   esac
838
839   # Accept the important Cygnus configure options, so we can diagnose typos.
840
841   case $ac_dashdash$ac_option in
842   --)
843     ac_dashdash=yes ;;
844
845   -bindir | --bindir | --bindi | --bind | --bin | --bi)
846     ac_prev=bindir ;;
847   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848     bindir=$ac_optarg ;;
849
850   -build | --build | --buil | --bui | --bu)
851     ac_prev=build_alias ;;
852   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853     build_alias=$ac_optarg ;;
854
855   -cache-file | --cache-file | --cache-fil | --cache-fi \
856   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857     ac_prev=cache_file ;;
858   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860     cache_file=$ac_optarg ;;
861
862   --config-cache | -C)
863     cache_file=config.cache ;;
864
865   -datadir | --datadir | --datadi | --datad)
866     ac_prev=datadir ;;
867   -datadir=* | --datadir=* | --datadi=* | --datad=*)
868     datadir=$ac_optarg ;;
869
870   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871   | --dataroo | --dataro | --datar)
872     ac_prev=datarootdir ;;
873   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875     datarootdir=$ac_optarg ;;
876
877   -disable-* | --disable-*)
878     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879     # Reject names that are not valid shell variable names.
880     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
882    { (exit 1); exit 1; }; }
883     ac_useropt_orig=$ac_useropt
884     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885     case $ac_user_opts in
886       *"
887 "enable_$ac_useropt"
888 "*) ;;
889       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890          ac_unrecognized_sep=', ';;
891     esac
892     eval enable_$ac_useropt=no ;;
893
894   -docdir | --docdir | --docdi | --doc | --do)
895     ac_prev=docdir ;;
896   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897     docdir=$ac_optarg ;;
898
899   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900     ac_prev=dvidir ;;
901   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902     dvidir=$ac_optarg ;;
903
904   -enable-* | --enable-*)
905     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
909    { (exit 1); exit 1; }; }
910     ac_useropt_orig=$ac_useropt
911     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912     case $ac_user_opts in
913       *"
914 "enable_$ac_useropt"
915 "*) ;;
916       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917          ac_unrecognized_sep=', ';;
918     esac
919     eval enable_$ac_useropt=\$ac_optarg ;;
920
921   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923   | --exec | --exe | --ex)
924     ac_prev=exec_prefix ;;
925   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927   | --exec=* | --exe=* | --ex=*)
928     exec_prefix=$ac_optarg ;;
929
930   -gas | --gas | --ga | --g)
931     # Obsolete; use --with-gas.
932     with_gas=yes ;;
933
934   -help | --help | --hel | --he | -h)
935     ac_init_help=long ;;
936   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937     ac_init_help=recursive ;;
938   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939     ac_init_help=short ;;
940
941   -host | --host | --hos | --ho)
942     ac_prev=host_alias ;;
943   -host=* | --host=* | --hos=* | --ho=*)
944     host_alias=$ac_optarg ;;
945
946   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947     ac_prev=htmldir ;;
948   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949   | --ht=*)
950     htmldir=$ac_optarg ;;
951
952   -includedir | --includedir | --includedi | --included | --include \
953   | --includ | --inclu | --incl | --inc)
954     ac_prev=includedir ;;
955   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956   | --includ=* | --inclu=* | --incl=* | --inc=*)
957     includedir=$ac_optarg ;;
958
959   -infodir | --infodir | --infodi | --infod | --info | --inf)
960     ac_prev=infodir ;;
961   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962     infodir=$ac_optarg ;;
963
964   -libdir | --libdir | --libdi | --libd)
965     ac_prev=libdir ;;
966   -libdir=* | --libdir=* | --libdi=* | --libd=*)
967     libdir=$ac_optarg ;;
968
969   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970   | --libexe | --libex | --libe)
971     ac_prev=libexecdir ;;
972   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973   | --libexe=* | --libex=* | --libe=*)
974     libexecdir=$ac_optarg ;;
975
976   -localedir | --localedir | --localedi | --localed | --locale)
977     ac_prev=localedir ;;
978   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979     localedir=$ac_optarg ;;
980
981   -localstatedir | --localstatedir | --localstatedi | --localstated \
982   | --localstate | --localstat | --localsta | --localst | --locals)
983     ac_prev=localstatedir ;;
984   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986     localstatedir=$ac_optarg ;;
987
988   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989     ac_prev=mandir ;;
990   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991     mandir=$ac_optarg ;;
992
993   -nfp | --nfp | --nf)
994     # Obsolete; use --without-fp.
995     with_fp=no ;;
996
997   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998   | --no-cr | --no-c | -n)
999     no_create=yes ;;
1000
1001   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003     no_recursion=yes ;;
1004
1005   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007   | --oldin | --oldi | --old | --ol | --o)
1008     ac_prev=oldincludedir ;;
1009   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012     oldincludedir=$ac_optarg ;;
1013
1014   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015     ac_prev=prefix ;;
1016   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017     prefix=$ac_optarg ;;
1018
1019   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020   | --program-pre | --program-pr | --program-p)
1021     ac_prev=program_prefix ;;
1022   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024     program_prefix=$ac_optarg ;;
1025
1026   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027   | --program-suf | --program-su | --program-s)
1028     ac_prev=program_suffix ;;
1029   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031     program_suffix=$ac_optarg ;;
1032
1033   -program-transform-name | --program-transform-name \
1034   | --program-transform-nam | --program-transform-na \
1035   | --program-transform-n | --program-transform- \
1036   | --program-transform | --program-transfor \
1037   | --program-transfo | --program-transf \
1038   | --program-trans | --program-tran \
1039   | --progr-tra | --program-tr | --program-t)
1040     ac_prev=program_transform_name ;;
1041   -program-transform-name=* | --program-transform-name=* \
1042   | --program-transform-nam=* | --program-transform-na=* \
1043   | --program-transform-n=* | --program-transform-=* \
1044   | --program-transform=* | --program-transfor=* \
1045   | --program-transfo=* | --program-transf=* \
1046   | --program-trans=* | --program-tran=* \
1047   | --progr-tra=* | --program-tr=* | --program-t=*)
1048     program_transform_name=$ac_optarg ;;
1049
1050   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051     ac_prev=pdfdir ;;
1052   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053     pdfdir=$ac_optarg ;;
1054
1055   -psdir | --psdir | --psdi | --psd | --ps)
1056     ac_prev=psdir ;;
1057   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058     psdir=$ac_optarg ;;
1059
1060   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061   | -silent | --silent | --silen | --sile | --sil)
1062     silent=yes ;;
1063
1064   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065     ac_prev=sbindir ;;
1066   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067   | --sbi=* | --sb=*)
1068     sbindir=$ac_optarg ;;
1069
1070   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072   | --sharedst | --shareds | --shared | --share | --shar \
1073   | --sha | --sh)
1074     ac_prev=sharedstatedir ;;
1075   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078   | --sha=* | --sh=*)
1079     sharedstatedir=$ac_optarg ;;
1080
1081   -site | --site | --sit)
1082     ac_prev=site ;;
1083   -site=* | --site=* | --sit=*)
1084     site=$ac_optarg ;;
1085
1086   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087     ac_prev=srcdir ;;
1088   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089     srcdir=$ac_optarg ;;
1090
1091   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092   | --syscon | --sysco | --sysc | --sys | --sy)
1093     ac_prev=sysconfdir ;;
1094   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096     sysconfdir=$ac_optarg ;;
1097
1098   -target | --target | --targe | --targ | --tar | --ta | --t)
1099     ac_prev=target_alias ;;
1100   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101     target_alias=$ac_optarg ;;
1102
1103   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104     verbose=yes ;;
1105
1106   -version | --version | --versio | --versi | --vers | -V)
1107     ac_init_version=: ;;
1108
1109   -with-* | --with-*)
1110     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111     # Reject names that are not valid shell variable names.
1112     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1114    { (exit 1); exit 1; }; }
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval with_$ac_useropt=\$ac_optarg ;;
1125
1126   -without-* | --without-*)
1127     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1131    { (exit 1); exit 1; }; }
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval with_$ac_useropt=no ;;
1142
1143   --x)
1144     # Obsolete; use --with-x.
1145     with_x=yes ;;
1146
1147   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148   | --x-incl | --x-inc | --x-in | --x-i)
1149     ac_prev=x_includes ;;
1150   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152     x_includes=$ac_optarg ;;
1153
1154   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156     ac_prev=x_libraries ;;
1157   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159     x_libraries=$ac_optarg ;;
1160
1161   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1162 Try \`$0 --help' for more information." >&2
1163    { (exit 1); exit 1; }; }
1164     ;;
1165
1166   *=*)
1167     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168     # Reject names that are not valid shell variable names.
1169     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1170       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1171    { (exit 1); exit 1; }; }
1172     eval $ac_envvar=\$ac_optarg
1173     export $ac_envvar ;;
1174
1175   *)
1176     # FIXME: should be removed in autoconf 3.0.
1177     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1181     ;;
1182
1183   esac
1184 done
1185
1186 if test -n "$ac_prev"; then
1187   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1189    { (exit 1); exit 1; }; }
1190 fi
1191
1192 if test -n "$ac_unrecognized_opts"; then
1193   case $enable_option_checking in
1194     no) ;;
1195     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1196    { (exit 1); exit 1; }; } ;;
1197     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198   esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   # Remove trailing slashes.
1209   case $ac_val in
1210     */ )
1211       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212       eval $ac_var=\$ac_val;;
1213   esac
1214   # Be sure to have absolute directory names.
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220    { (exit 1); exit 1; }; }
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235     If a cross compiler is detected then cross compile mode will be used." >&2
1236   elif test "x$build_alias" != "x$host_alias"; then
1237     cross_compiling=yes
1238   fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1251    { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1254    { (exit 1); exit 1; }; }
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$as_myself" : 'X\(//\)[^/]' \| \
1264          X"$as_myself" : 'X\(//\)$' \| \
1265          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294    { (exit 1); exit 1; }; }
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1299    { (exit 1); exit 1; }; }
1300         pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303   srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_env_${ac_var}_value=\$${ac_var}
1314   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322   # Omit some internal or obsolete options to make the list less imposing.
1323   # This message is too long to be a string in the A/UX 3.1 sh.
1324   cat <<_ACEOF
1325 \`configure' configures this package to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335   -h, --help              display this help and exit
1336       --help=short        display options specific to this package
1337       --help=recursive    display the short help of all the included packages
1338   -V, --version           display version information and exit
1339   -q, --quiet, --silent   do not print \`checking...' messages
1340       --cache-file=FILE   cache test results in FILE [disabled]
1341   -C, --config-cache      alias for \`--cache-file=config.cache'
1342   -n, --no-create         do not create output files
1343       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346   --prefix=PREFIX         install architecture-independent files in PREFIX
1347                           [$ac_default_prefix]
1348   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                           [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359   --bindir=DIR            user executables [EPREFIX/bin]
1360   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1361   --libexecdir=DIR        program executables [EPREFIX/libexec]
1362   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1363   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1364   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1365   --libdir=DIR            object code libraries [EPREFIX/lib]
1366   --includedir=DIR        C header files [PREFIX/include]
1367   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1368   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1369   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1370   --infodir=DIR           info documentation [DATAROOTDIR/info]
1371   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1372   --mandir=DIR            man documentation [DATAROOTDIR/man]
1373   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1374   --htmldir=DIR           html documentation [DOCDIR]
1375   --dvidir=DIR            dvi documentation [DOCDIR]
1376   --pdfdir=DIR            pdf documentation [DOCDIR]
1377   --psdir=DIR             ps documentation [DOCDIR]
1378 _ACEOF
1379
1380   cat <<\_ACEOF
1381
1382 Program names:
1383   --program-prefix=PREFIX            prepend PREFIX to installed program names
1384   --program-suffix=SUFFIX            append SUFFIX to installed program names
1385   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1386
1387 System types:
1388   --build=BUILD     configure for building on BUILD [guessed]
1389   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394
1395   cat <<\_ACEOF
1396
1397 Optional Features:
1398   --disable-option-checking  ignore unrecognized --enable/--with options
1399   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1400   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1401   --enable-maintainer-mode  enable make rules and dependencies not useful
1402                           (and sometimes confusing) to the casual installer
1403   --disable-dependency-tracking  speeds up one-time build
1404   --enable-dependency-tracking   do not reject slow dependency extractors
1405
1406 Some influential environment variables:
1407   CC          C compiler command
1408   CFLAGS      C compiler flags
1409   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1410               nonstandard directory <lib dir>
1411   LIBS        libraries to pass to the linker, e.g. -l<library>
1412   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1413               you have headers in a nonstandard directory <include dir>
1414   CPP         C preprocessor
1415   PKG_CONFIG  path to pkg-config utility
1416   PACKAGE_CFLAGS
1417               C compiler flags for PACKAGE, overriding pkg-config
1418   PACKAGE_LIBS
1419               linker flags for PACKAGE, overriding pkg-config
1420
1421 Use these variables to override the choices made by `configure' or to help
1422 it to find libraries and programs with nonstandard names/locations.
1423
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429   # If there are subdirs, report their specific --help.
1430   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431     test -d "$ac_dir" ||
1432       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433       continue
1434     ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440   # A ".." for each directory in $ac_dir_suffix.
1441   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442   case $ac_top_builddir_sub in
1443   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445   esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453   .)  # We are building in place.
1454     ac_srcdir=.
1455     ac_top_srcdir=$ac_top_builddir_sub
1456     ac_abs_top_srcdir=$ac_pwd ;;
1457   [\\/]* | ?:[\\/]* )  # Absolute name.
1458     ac_srcdir=$srcdir$ac_dir_suffix;
1459     ac_top_srcdir=$srcdir
1460     ac_abs_top_srcdir=$srcdir ;;
1461   *) # Relative name.
1462     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463     ac_top_srcdir=$ac_top_build_prefix$srcdir
1464     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468     cd "$ac_dir" || { ac_status=$?; continue; }
1469     # Check for guested configure.
1470     if test -f "$ac_srcdir/configure.gnu"; then
1471       echo &&
1472       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473     elif test -f "$ac_srcdir/configure"; then
1474       echo &&
1475       $SHELL "$ac_srcdir/configure" --help=recursive
1476     else
1477       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478     fi || ac_status=$?
1479     cd "$ac_pwd" || { ac_status=$?; break; }
1480   done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485   cat <<\_ACEOF
1486 configure
1487 generated by GNU Autoconf 2.63
1488
1489 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1490 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1493 _ACEOF
1494   exit
1495 fi
1496 cat >config.log <<_ACEOF
1497 This file contains any messages produced by compilers while
1498 running configure, to aid debugging if configure makes a mistake.
1499
1500 It was created by $as_me, which was
1501 generated by GNU Autoconf 2.63.  Invocation command line was
1502
1503   $ $0 $@
1504
1505 _ACEOF
1506 exec 5>>config.log
1507 {
1508 cat <<_ASUNAME
1509 ## --------- ##
1510 ## Platform. ##
1511 ## --------- ##
1512
1513 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1514 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1515 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1516 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1517 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1518
1519 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1520 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1521
1522 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1523 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1524 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1525 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1526 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1527 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1528 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1529
1530 _ASUNAME
1531
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1534 do
1535   IFS=$as_save_IFS
1536   test -z "$as_dir" && as_dir=.
1537   $as_echo "PATH: $as_dir"
1538 done
1539 IFS=$as_save_IFS
1540
1541 } >&5
1542
1543 cat >&5 <<_ACEOF
1544
1545
1546 ## ----------- ##
1547 ## Core tests. ##
1548 ## ----------- ##
1549
1550 _ACEOF
1551
1552
1553 # Keep a trace of the command line.
1554 # Strip out --no-create and --no-recursion so they do not pile up.
1555 # Strip out --silent because we don't want to record it for future runs.
1556 # Also quote any args containing shell meta-characters.
1557 # Make two passes to allow for proper duplicate-argument suppression.
1558 ac_configure_args=
1559 ac_configure_args0=
1560 ac_configure_args1=
1561 ac_must_keep_next=false
1562 for ac_pass in 1 2
1563 do
1564   for ac_arg
1565   do
1566     case $ac_arg in
1567     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1568     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1569     | -silent | --silent | --silen | --sile | --sil)
1570       continue ;;
1571     *\'*)
1572       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1573     esac
1574     case $ac_pass in
1575     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1576     2)
1577       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1578       if test $ac_must_keep_next = true; then
1579         ac_must_keep_next=false # Got value, back to normal.
1580       else
1581         case $ac_arg in
1582           *=* | --config-cache | -C | -disable-* | --disable-* \
1583           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1584           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1585           | -with-* | --with-* | -without-* | --without-* | --x)
1586             case "$ac_configure_args0 " in
1587               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1588             esac
1589             ;;
1590           -* ) ac_must_keep_next=true ;;
1591         esac
1592       fi
1593       ac_configure_args="$ac_configure_args '$ac_arg'"
1594       ;;
1595     esac
1596   done
1597 done
1598 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1599 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1600
1601 # When interrupted or exit'd, cleanup temporary files, and complete
1602 # config.log.  We remove comments because anyway the quotes in there
1603 # would cause problems or look ugly.
1604 # WARNING: Use '\'' to represent an apostrophe within the trap.
1605 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1606 trap 'exit_status=$?
1607   # Save into config.log some information that might help in debugging.
1608   {
1609     echo
1610
1611     cat <<\_ASBOX
1612 ## ---------------- ##
1613 ## Cache variables. ##
1614 ## ---------------- ##
1615 _ASBOX
1616     echo
1617     # The following way of writing the cache mishandles newlines in values,
1618 (
1619   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1620     eval ac_val=\$$ac_var
1621     case $ac_val in #(
1622     *${as_nl}*)
1623       case $ac_var in #(
1624       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1625 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1626       esac
1627       case $ac_var in #(
1628       _ | IFS | as_nl) ;; #(
1629       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1630       *) $as_unset $ac_var ;;
1631       esac ;;
1632     esac
1633   done
1634   (set) 2>&1 |
1635     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1636     *${as_nl}ac_space=\ *)
1637       sed -n \
1638         "s/'\''/'\''\\\\'\'''\''/g;
1639           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1640       ;; #(
1641     *)
1642       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1643       ;;
1644     esac |
1645     sort
1646 )
1647     echo
1648
1649     cat <<\_ASBOX
1650 ## ----------------- ##
1651 ## Output variables. ##
1652 ## ----------------- ##
1653 _ASBOX
1654     echo
1655     for ac_var in $ac_subst_vars
1656     do
1657       eval ac_val=\$$ac_var
1658       case $ac_val in
1659       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1660       esac
1661       $as_echo "$ac_var='\''$ac_val'\''"
1662     done | sort
1663     echo
1664
1665     if test -n "$ac_subst_files"; then
1666       cat <<\_ASBOX
1667 ## ------------------- ##
1668 ## File substitutions. ##
1669 ## ------------------- ##
1670 _ASBOX
1671       echo
1672       for ac_var in $ac_subst_files
1673       do
1674         eval ac_val=\$$ac_var
1675         case $ac_val in
1676         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1677         esac
1678         $as_echo "$ac_var='\''$ac_val'\''"
1679       done | sort
1680       echo
1681     fi
1682
1683     if test -s confdefs.h; then
1684       cat <<\_ASBOX
1685 ## ----------- ##
1686 ## confdefs.h. ##
1687 ## ----------- ##
1688 _ASBOX
1689       echo
1690       cat confdefs.h
1691       echo
1692     fi
1693     test "$ac_signal" != 0 &&
1694       $as_echo "$as_me: caught signal $ac_signal"
1695     $as_echo "$as_me: exit $exit_status"
1696   } >&5
1697   rm -f core *.core core.conftest.* &&
1698     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1699     exit $exit_status
1700 ' 0
1701 for ac_signal in 1 2 13 15; do
1702   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1703 done
1704 ac_signal=0
1705
1706 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1707 rm -f -r conftest* confdefs.h
1708
1709 # Predefined preprocessor variables.
1710
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_NAME "$PACKAGE_NAME"
1713 _ACEOF
1714
1715
1716 cat >>confdefs.h <<_ACEOF
1717 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1718 _ACEOF
1719
1720
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1723 _ACEOF
1724
1725
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_STRING "$PACKAGE_STRING"
1728 _ACEOF
1729
1730
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1733 _ACEOF
1734
1735
1736 # Let the site file select an alternate cache file if it wants to.
1737 # Prefer an explicitly selected file to automatically selected ones.
1738 ac_site_file1=NONE
1739 ac_site_file2=NONE
1740 if test -n "$CONFIG_SITE"; then
1741   ac_site_file1=$CONFIG_SITE
1742 elif test "x$prefix" != xNONE; then
1743   ac_site_file1=$prefix/share/config.site
1744   ac_site_file2=$prefix/etc/config.site
1745 else
1746   ac_site_file1=$ac_default_prefix/share/config.site
1747   ac_site_file2=$ac_default_prefix/etc/config.site
1748 fi
1749 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1750 do
1751   test "x$ac_site_file" = xNONE && continue
1752   if test -r "$ac_site_file"; then
1753     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1754 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1755     sed 's/^/| /' "$ac_site_file" >&5
1756     . "$ac_site_file"
1757   fi
1758 done
1759
1760 if test -r "$cache_file"; then
1761   # Some versions of bash will fail to source /dev/null (special
1762   # files actually), so we avoid doing that.
1763   if test -f "$cache_file"; then
1764     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1765 $as_echo "$as_me: loading cache $cache_file" >&6;}
1766     case $cache_file in
1767       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1768       *)                      . "./$cache_file";;
1769     esac
1770   fi
1771 else
1772   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1773 $as_echo "$as_me: creating cache $cache_file" >&6;}
1774   >$cache_file
1775 fi
1776
1777 # Check that the precious variables saved in the cache have kept the same
1778 # value.
1779 ac_cache_corrupted=false
1780 for ac_var in $ac_precious_vars; do
1781   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1782   eval ac_new_set=\$ac_env_${ac_var}_set
1783   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1784   eval ac_new_val=\$ac_env_${ac_var}_value
1785   case $ac_old_set,$ac_new_set in
1786     set,)
1787       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1788 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1789       ac_cache_corrupted=: ;;
1790     ,set)
1791       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1792 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1793       ac_cache_corrupted=: ;;
1794     ,);;
1795     *)
1796       if test "x$ac_old_val" != "x$ac_new_val"; then
1797         # differences in whitespace do not lead to failure.
1798         ac_old_val_w=`echo x $ac_old_val`
1799         ac_new_val_w=`echo x $ac_new_val`
1800         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1801           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1802 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1803           ac_cache_corrupted=:
1804         else
1805           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1806 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1807           eval $ac_var=\$ac_old_val
1808         fi
1809         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1810 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1811         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1812 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1813       fi;;
1814   esac
1815   # Pass precious variables to config.status.
1816   if test "$ac_new_set" = set; then
1817     case $ac_new_val in
1818     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1819     *) ac_arg=$ac_var=$ac_new_val ;;
1820     esac
1821     case " $ac_configure_args " in
1822       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1823       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1824     esac
1825   fi
1826 done
1827 if $ac_cache_corrupted; then
1828   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1830   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1831 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1832   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1833 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1834    { (exit 1); exit 1; }; }
1835 fi
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853 ac_ext=c
1854 ac_cpp='$CPP $CPPFLAGS'
1855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1858
1859
1860 am__api_version='1.11'
1861
1862 ac_aux_dir=
1863 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1864   if test -f "$ac_dir/install-sh"; then
1865     ac_aux_dir=$ac_dir
1866     ac_install_sh="$ac_aux_dir/install-sh -c"
1867     break
1868   elif test -f "$ac_dir/install.sh"; then
1869     ac_aux_dir=$ac_dir
1870     ac_install_sh="$ac_aux_dir/install.sh -c"
1871     break
1872   elif test -f "$ac_dir/shtool"; then
1873     ac_aux_dir=$ac_dir
1874     ac_install_sh="$ac_aux_dir/shtool install -c"
1875     break
1876   fi
1877 done
1878 if test -z "$ac_aux_dir"; then
1879   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1880 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1881    { (exit 1); exit 1; }; }
1882 fi
1883
1884 # These three variables are undocumented and unsupported,
1885 # and are intended to be withdrawn in a future Autoconf release.
1886 # They can cause serious problems if a builder's source tree is in a directory
1887 # whose full name contains unusual characters.
1888 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1889 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1890 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1891
1892
1893 # Find a good install program.  We prefer a C program (faster),
1894 # so one script is as good as another.  But avoid the broken or
1895 # incompatible versions:
1896 # SysV /etc/install, /usr/sbin/install
1897 # SunOS /usr/etc/install
1898 # IRIX /sbin/install
1899 # AIX /bin/install
1900 # AmigaOS /C/install, which installs bootblocks on floppy discs
1901 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1904 # OS/2's system install, which has a completely different semantic
1905 # ./install, which can be erroneously created by make from ./install.sh.
1906 # Reject install programs that cannot install multiple files.
1907 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1908 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1909 if test -z "$INSTALL"; then
1910 if test "${ac_cv_path_install+set}" = set; then
1911   $as_echo_n "(cached) " >&6
1912 else
1913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   # Account for people who put trailing slashes in PATH elements.
1919 case $as_dir/ in
1920   ./ | .// | /cC/* | \
1921   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1922   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1923   /usr/ucb/* ) ;;
1924   *)
1925     # OSF1 and SCO ODT 3.0 have their own names for install.
1926     # Don't use installbsd from OSF since it installs stuff as root
1927     # by default.
1928     for ac_prog in ginstall scoinst install; do
1929       for ac_exec_ext in '' $ac_executable_extensions; do
1930         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1931           if test $ac_prog = install &&
1932             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1933             # AIX install.  It has an incompatible calling convention.
1934             :
1935           elif test $ac_prog = install &&
1936             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1937             # program-specific install script used by HP pwplus--don't use.
1938             :
1939           else
1940             rm -rf conftest.one conftest.two conftest.dir
1941             echo one > conftest.one
1942             echo two > conftest.two
1943             mkdir conftest.dir
1944             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1945               test -s conftest.one && test -s conftest.two &&
1946               test -s conftest.dir/conftest.one &&
1947               test -s conftest.dir/conftest.two
1948             then
1949               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1950               break 3
1951             fi
1952           fi
1953         fi
1954       done
1955     done
1956     ;;
1957 esac
1958
1959 done
1960 IFS=$as_save_IFS
1961
1962 rm -rf conftest.one conftest.two conftest.dir
1963
1964 fi
1965   if test "${ac_cv_path_install+set}" = set; then
1966     INSTALL=$ac_cv_path_install
1967   else
1968     # As a last resort, use the slow shell script.  Don't cache a
1969     # value for INSTALL within a source directory, because that will
1970     # break other packages using the cache if that directory is
1971     # removed, or if the value is a relative name.
1972     INSTALL=$ac_install_sh
1973   fi
1974 fi
1975 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1976 $as_echo "$INSTALL" >&6; }
1977
1978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1979 # It thinks the first close brace ends the variable substitution.
1980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1981
1982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1983
1984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1985
1986 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1987 $as_echo_n "checking whether build environment is sane... " >&6; }
1988 # Just in case
1989 sleep 1
1990 echo timestamp > conftest.file
1991 # Reject unsafe characters in $srcdir or the absolute working directory
1992 # name.  Accept space and tab only in the latter.
1993 am_lf='
1994 '
1995 case `pwd` in
1996   *[\\\"\#\$\&\'\`$am_lf]*)
1997     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
1998 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
1999    { (exit 1); exit 1; }; };;
2000 esac
2001 case $srcdir in
2002   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2003     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2004 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2005    { (exit 1); exit 1; }; };;
2006 esac
2007
2008 # Do `set' in a subshell so we don't clobber the current shell's
2009 # arguments.  Must try -L first in case configure is actually a
2010 # symlink; some systems play weird games with the mod time of symlinks
2011 # (eg FreeBSD returns the mod time of the symlink's containing
2012 # directory).
2013 if (
2014    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2015    if test "$*" = "X"; then
2016       # -L didn't work.
2017       set X `ls -t "$srcdir/configure" conftest.file`
2018    fi
2019    rm -f conftest.file
2020    if test "$*" != "X $srcdir/configure conftest.file" \
2021       && test "$*" != "X conftest.file $srcdir/configure"; then
2022
2023       # If neither matched, then we have a broken ls.  This can happen
2024       # if, for instance, CONFIG_SHELL is bash and it inherits a
2025       # broken ls alias from the environment.  This has actually
2026       # happened.  Such a system could not be considered "sane".
2027       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2028 alias in your environment" >&5
2029 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2030 alias in your environment" >&2;}
2031    { (exit 1); exit 1; }; }
2032    fi
2033
2034    test "$2" = conftest.file
2035    )
2036 then
2037    # Ok.
2038    :
2039 else
2040    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2041 Check your system clock" >&5
2042 $as_echo "$as_me: error: newly created file is older than distributed files!
2043 Check your system clock" >&2;}
2044    { (exit 1); exit 1; }; }
2045 fi
2046 { $as_echo "$as_me:$LINENO: result: yes" >&5
2047 $as_echo "yes" >&6; }
2048 test "$program_prefix" != NONE &&
2049   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2050 # Use a double $ so make ignores it.
2051 test "$program_suffix" != NONE &&
2052   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2053 # Double any \ or $.
2054 # By default was `s,x,x', remove it if useless.
2055 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2056 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2057
2058 # expand $ac_aux_dir to an absolute path
2059 am_aux_dir=`cd $ac_aux_dir && pwd`
2060
2061 if test x"${MISSING+set}" != xset; then
2062   case $am_aux_dir in
2063   *\ * | *\     *)
2064     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2065   *)
2066     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2067   esac
2068 fi
2069 # Use eval to expand $SHELL
2070 if eval "$MISSING --run true"; then
2071   am_missing_run="$MISSING --run "
2072 else
2073   am_missing_run=
2074   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2075 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2076 fi
2077
2078 if test x"${install_sh}" != xset; then
2079   case $am_aux_dir in
2080   *\ * | *\     *)
2081     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2082   *)
2083     install_sh="\${SHELL} $am_aux_dir/install-sh"
2084   esac
2085 fi
2086
2087 # Installed binaries are usually stripped using `strip' when the user
2088 # run `make install-strip'.  However `strip' might not be the right
2089 # tool to use in cross-compilation environments, therefore Automake
2090 # will honor the `STRIP' environment variable to overrule this program.
2091 if test "$cross_compiling" != no; then
2092   if test -n "$ac_tool_prefix"; then
2093   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}strip; ac_word=$2
2095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 $as_echo_n "checking for $ac_word... " >&6; }
2097 if test "${ac_cv_prog_STRIP+set}" = set; then
2098   $as_echo_n "(cached) " >&6
2099 else
2100   if test -n "$STRIP"; then
2101   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2111     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112     break 2
2113   fi
2114 done
2115 done
2116 IFS=$as_save_IFS
2117
2118 fi
2119 fi
2120 STRIP=$ac_cv_prog_STRIP
2121 if test -n "$STRIP"; then
2122   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2123 $as_echo "$STRIP" >&6; }
2124 else
2125   { $as_echo "$as_me:$LINENO: result: no" >&5
2126 $as_echo "no" >&6; }
2127 fi
2128
2129
2130 fi
2131 if test -z "$ac_cv_prog_STRIP"; then
2132   ac_ct_STRIP=$STRIP
2133   # Extract the first word of "strip", so it can be a program name with args.
2134 set dummy strip; ac_word=$2
2135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 $as_echo_n "checking for $ac_word... " >&6; }
2137 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2138   $as_echo_n "(cached) " >&6
2139 else
2140   if test -n "$ac_ct_STRIP"; then
2141   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150     ac_cv_prog_ac_ct_STRIP="strip"
2151     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152     break 2
2153   fi
2154 done
2155 done
2156 IFS=$as_save_IFS
2157
2158 fi
2159 fi
2160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2161 if test -n "$ac_ct_STRIP"; then
2162   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2163 $as_echo "$ac_ct_STRIP" >&6; }
2164 else
2165   { $as_echo "$as_me:$LINENO: result: no" >&5
2166 $as_echo "no" >&6; }
2167 fi
2168
2169   if test "x$ac_ct_STRIP" = x; then
2170     STRIP=":"
2171   else
2172     case $cross_compiling:$ac_tool_warned in
2173 yes:)
2174 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2176 ac_tool_warned=yes ;;
2177 esac
2178     STRIP=$ac_ct_STRIP
2179   fi
2180 else
2181   STRIP="$ac_cv_prog_STRIP"
2182 fi
2183
2184 fi
2185 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2186
2187 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2188 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2189 if test -z "$MKDIR_P"; then
2190   if test "${ac_cv_path_mkdir+set}" = set; then
2191   $as_echo_n "(cached) " >&6
2192 else
2193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198   for ac_prog in mkdir gmkdir; do
2199          for ac_exec_ext in '' $ac_executable_extensions; do
2200            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2201            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2202              'mkdir (GNU coreutils) '* | \
2203              'mkdir (coreutils) '* | \
2204              'mkdir (fileutils) '4.1*)
2205                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2206                break 3;;
2207            esac
2208          done
2209        done
2210 done
2211 IFS=$as_save_IFS
2212
2213 fi
2214
2215   if test "${ac_cv_path_mkdir+set}" = set; then
2216     MKDIR_P="$ac_cv_path_mkdir -p"
2217   else
2218     # As a last resort, use the slow shell script.  Don't cache a
2219     # value for MKDIR_P within a source directory, because that will
2220     # break other packages using the cache if that directory is
2221     # removed, or if the value is a relative name.
2222     test -d ./--version && rmdir ./--version
2223     MKDIR_P="$ac_install_sh -d"
2224   fi
2225 fi
2226 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2227 $as_echo "$MKDIR_P" >&6; }
2228
2229 mkdir_p="$MKDIR_P"
2230 case $mkdir_p in
2231   [\\/$]* | ?:[\\/]*) ;;
2232   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2233 esac
2234
2235 for ac_prog in gawk mawk nawk awk
2236 do
2237   # Extract the first word of "$ac_prog", so it can be a program name with args.
2238 set dummy $ac_prog; ac_word=$2
2239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 $as_echo_n "checking for $ac_word... " >&6; }
2241 if test "${ac_cv_prog_AWK+set}" = set; then
2242   $as_echo_n "(cached) " >&6
2243 else
2244   if test -n "$AWK"; then
2245   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2249 do
2250   IFS=$as_save_IFS
2251   test -z "$as_dir" && as_dir=.
2252   for ac_exec_ext in '' $ac_executable_extensions; do
2253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254     ac_cv_prog_AWK="$ac_prog"
2255     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256     break 2
2257   fi
2258 done
2259 done
2260 IFS=$as_save_IFS
2261
2262 fi
2263 fi
2264 AWK=$ac_cv_prog_AWK
2265 if test -n "$AWK"; then
2266   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2267 $as_echo "$AWK" >&6; }
2268 else
2269   { $as_echo "$as_me:$LINENO: result: no" >&5
2270 $as_echo "no" >&6; }
2271 fi
2272
2273
2274   test -n "$AWK" && break
2275 done
2276
2277 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2278 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2279 set x ${MAKE-make}
2280 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2281 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2282   $as_echo_n "(cached) " >&6
2283 else
2284   cat >conftest.make <<\_ACEOF
2285 SHELL = /bin/sh
2286 all:
2287         @echo '@@@%%%=$(MAKE)=@@@%%%'
2288 _ACEOF
2289 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2290 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2291   *@@@%%%=?*=@@@%%%*)
2292     eval ac_cv_prog_make_${ac_make}_set=yes;;
2293   *)
2294     eval ac_cv_prog_make_${ac_make}_set=no;;
2295 esac
2296 rm -f conftest.make
2297 fi
2298 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2299   { $as_echo "$as_me:$LINENO: result: yes" >&5
2300 $as_echo "yes" >&6; }
2301   SET_MAKE=
2302 else
2303   { $as_echo "$as_me:$LINENO: result: no" >&5
2304 $as_echo "no" >&6; }
2305   SET_MAKE="MAKE=${MAKE-make}"
2306 fi
2307
2308 rm -rf .tst 2>/dev/null
2309 mkdir .tst 2>/dev/null
2310 if test -d .tst; then
2311   am__leading_dot=.
2312 else
2313   am__leading_dot=_
2314 fi
2315 rmdir .tst 2>/dev/null
2316
2317 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2318   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2319   # is not polluted with repeated "-I."
2320   am__isrc=' -I$(srcdir)'
2321   # test to see if srcdir already configured
2322   if test -f $srcdir/config.status; then
2323     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2324 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2325    { (exit 1); exit 1; }; }
2326   fi
2327 fi
2328
2329 # test whether we have cygpath
2330 if test -z "$CYGPATH_W"; then
2331   if (cygpath --version) >/dev/null 2>/dev/null; then
2332     CYGPATH_W='cygpath -w'
2333   else
2334     CYGPATH_W=echo
2335   fi
2336 fi
2337
2338
2339 # Define the identity of the package.
2340  PACKAGE=xournal
2341  VERSION=0.4.5
2342
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE "$PACKAGE"
2346 _ACEOF
2347
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define VERSION "$VERSION"
2351 _ACEOF
2352
2353 # Some tools Automake needs.
2354
2355 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2356
2357
2358 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2359
2360
2361 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2362
2363
2364 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2365
2366
2367 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2368
2369 # We need awk for the "check" target.  The system "awk" is bad on
2370 # some platforms.
2371 # Always define AMTAR for backward compatibility.
2372
2373 AMTAR=${AMTAR-"${am_missing_run}tar"}
2374
2375 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2376
2377
2378
2379
2380
2381 ac_config_headers="$ac_config_headers config.h"
2382
2383
2384 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2385 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2386     # Check whether --enable-maintainer-mode was given.
2387 if test "${enable_maintainer_mode+set}" = set; then
2388   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2389 else
2390   USE_MAINTAINER_MODE=no
2391 fi
2392
2393   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2394 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2395    if test $USE_MAINTAINER_MODE = yes; then
2396   MAINTAINER_MODE_TRUE=
2397   MAINTAINER_MODE_FALSE='#'
2398 else
2399   MAINTAINER_MODE_TRUE='#'
2400   MAINTAINER_MODE_FALSE=
2401 fi
2402
2403   MAINT=$MAINTAINER_MODE_TRUE
2404
2405
2406
2407 DEPDIR="${am__leading_dot}deps"
2408
2409 ac_config_commands="$ac_config_commands depfiles"
2410
2411
2412 am_make=${MAKE-make}
2413 cat > confinc << 'END'
2414 am__doit:
2415         @echo this is the am__doit target
2416 .PHONY: am__doit
2417 END
2418 # If we don't find an include directive, just comment out the code.
2419 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2420 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2421 am__include="#"
2422 am__quote=
2423 _am_result=none
2424 # First try GNU make style include.
2425 echo "include confinc" > confmf
2426 # Ignore all kinds of additional output from `make'.
2427 case `$am_make -s -f confmf 2> /dev/null` in #(
2428 *the\ am__doit\ target*)
2429   am__include=include
2430   am__quote=
2431   _am_result=GNU
2432   ;;
2433 esac
2434 # Now try BSD make style include.
2435 if test "$am__include" = "#"; then
2436    echo '.include "confinc"' > confmf
2437    case `$am_make -s -f confmf 2> /dev/null` in #(
2438    *the\ am__doit\ target*)
2439      am__include=.include
2440      am__quote="\""
2441      _am_result=BSD
2442      ;;
2443    esac
2444 fi
2445
2446
2447 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2448 $as_echo "$_am_result" >&6; }
2449 rm -f confinc confmf
2450
2451 # Check whether --enable-dependency-tracking was given.
2452 if test "${enable_dependency_tracking+set}" = set; then
2453   enableval=$enable_dependency_tracking;
2454 fi
2455
2456 if test "x$enable_dependency_tracking" != xno; then
2457   am_depcomp="$ac_aux_dir/depcomp"
2458   AMDEPBACKSLASH='\'
2459 fi
2460  if test "x$enable_dependency_tracking" != xno; then
2461   AMDEP_TRUE=
2462   AMDEP_FALSE='#'
2463 else
2464   AMDEP_TRUE='#'
2465   AMDEP_FALSE=
2466 fi
2467
2468
2469 ac_ext=c
2470 ac_cpp='$CPP $CPPFLAGS'
2471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474 if test -n "$ac_tool_prefix"; then
2475   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480   $as_echo_n "(cached) " >&6
2481 else
2482   if test -n "$CC"; then
2483   ac_cv_prog_CC="$CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2493     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 CC=$ac_cv_prog_CC
2503 if test -n "$CC"; then
2504   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2505 $as_echo "$CC" >&6; }
2506 else
2507   { $as_echo "$as_me:$LINENO: result: no" >&5
2508 $as_echo "no" >&6; }
2509 fi
2510
2511
2512 fi
2513 if test -z "$ac_cv_prog_CC"; then
2514   ac_ct_CC=$CC
2515   # Extract the first word of "gcc", so it can be a program name with args.
2516 set dummy gcc; ac_word=$2
2517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2520   $as_echo_n "(cached) " >&6
2521 else
2522   if test -n "$ac_ct_CC"; then
2523   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530   for ac_exec_ext in '' $ac_executable_extensions; do
2531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532     ac_cv_prog_ac_ct_CC="gcc"
2533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534     break 2
2535   fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2545 $as_echo "$ac_ct_CC" >&6; }
2546 else
2547   { $as_echo "$as_me:$LINENO: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551   if test "x$ac_ct_CC" = x; then
2552     CC=""
2553   else
2554     case $cross_compiling:$ac_tool_warned in
2555 yes:)
2556 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2558 ac_tool_warned=yes ;;
2559 esac
2560     CC=$ac_ct_CC
2561   fi
2562 else
2563   CC="$ac_cv_prog_CC"
2564 fi
2565
2566 if test -z "$CC"; then
2567           if test -n "$ac_tool_prefix"; then
2568     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2569 set dummy ${ac_tool_prefix}cc; ac_word=$2
2570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if test "${ac_cv_prog_CC+set}" = set; then
2573   $as_echo_n "(cached) " >&6
2574 else
2575   if test -n "$CC"; then
2576   ac_cv_prog_CC="$CC" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581   IFS=$as_save_IFS
2582   test -z "$as_dir" && as_dir=.
2583   for ac_exec_ext in '' $ac_executable_extensions; do
2584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585     ac_cv_prog_CC="${ac_tool_prefix}cc"
2586     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587     break 2
2588   fi
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594 fi
2595 CC=$ac_cv_prog_CC
2596 if test -n "$CC"; then
2597   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2598 $as_echo "$CC" >&6; }
2599 else
2600   { $as_echo "$as_me:$LINENO: result: no" >&5
2601 $as_echo "no" >&6; }
2602 fi
2603
2604
2605   fi
2606 fi
2607 if test -z "$CC"; then
2608   # Extract the first word of "cc", so it can be a program name with args.
2609 set dummy cc; ac_word=$2
2610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then
2613   $as_echo_n "(cached) " >&6
2614 else
2615   if test -n "$CC"; then
2616   ac_cv_prog_CC="$CC" # Let the user override the test.
2617 else
2618   ac_prog_rejected=no
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622   IFS=$as_save_IFS
2623   test -z "$as_dir" && as_dir=.
2624   for ac_exec_ext in '' $ac_executable_extensions; do
2625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2627        ac_prog_rejected=yes
2628        continue
2629      fi
2630     ac_cv_prog_CC="cc"
2631     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632     break 2
2633   fi
2634 done
2635 done
2636 IFS=$as_save_IFS
2637
2638 if test $ac_prog_rejected = yes; then
2639   # We found a bogon in the path, so make sure we never use it.
2640   set dummy $ac_cv_prog_CC
2641   shift
2642   if test $# != 0; then
2643     # We chose a different compiler from the bogus one.
2644     # However, it has the same basename, so the bogon will be chosen
2645     # first if we set CC to just the basename; use the full file name.
2646     shift
2647     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2648   fi
2649 fi
2650 fi
2651 fi
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2655 $as_echo "$CC" >&6; }
2656 else
2657   { $as_echo "$as_me:$LINENO: result: no" >&5
2658 $as_echo "no" >&6; }
2659 fi
2660
2661
2662 fi
2663 if test -z "$CC"; then
2664   if test -n "$ac_tool_prefix"; then
2665   for ac_prog in cl.exe
2666   do
2667     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then
2672   $as_echo_n "(cached) " >&6
2673 else
2674   if test -n "$CC"; then
2675   ac_cv_prog_CC="$CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682   for ac_exec_ext in '' $ac_executable_extensions; do
2683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2685     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 CC=$ac_cv_prog_CC
2695 if test -n "$CC"; then
2696   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2697 $as_echo "$CC" >&6; }
2698 else
2699   { $as_echo "$as_me:$LINENO: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704     test -n "$CC" && break
2705   done
2706 fi
2707 if test -z "$CC"; then
2708   ac_ct_CC=$CC
2709   for ac_prog in cl.exe
2710 do
2711   # Extract the first word of "$ac_prog", so it can be a program name with args.
2712 set dummy $ac_prog; ac_word=$2
2713 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2716   $as_echo_n "(cached) " >&6
2717 else
2718   if test -n "$ac_ct_CC"; then
2719   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724   IFS=$as_save_IFS
2725   test -z "$as_dir" && as_dir=.
2726   for ac_exec_ext in '' $ac_executable_extensions; do
2727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728     ac_cv_prog_ac_ct_CC="$ac_prog"
2729     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730     break 2
2731   fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 fi
2737 fi
2738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739 if test -n "$ac_ct_CC"; then
2740   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2741 $as_echo "$ac_ct_CC" >&6; }
2742 else
2743   { $as_echo "$as_me:$LINENO: result: no" >&5
2744 $as_echo "no" >&6; }
2745 fi
2746
2747
2748   test -n "$ac_ct_CC" && break
2749 done
2750
2751   if test "x$ac_ct_CC" = x; then
2752     CC=""
2753   else
2754     case $cross_compiling:$ac_tool_warned in
2755 yes:)
2756 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760     CC=$ac_ct_CC
2761   fi
2762 fi
2763
2764 fi
2765
2766
2767 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2769 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2770 See \`config.log' for more details." >&5
2771 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2772 See \`config.log' for more details." >&2;}
2773    { (exit 1); exit 1; }; }; }
2774
2775 # Provide some information about the compiler.
2776 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2777 set X $ac_compile
2778 ac_compiler=$2
2779 { (ac_try="$ac_compiler --version >&5"
2780 case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2785 $as_echo "$ac_try_echo") >&5
2786   (eval "$ac_compiler --version >&5") 2>&5
2787   ac_status=$?
2788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }
2790 { (ac_try="$ac_compiler -v >&5"
2791 case "(($ac_try" in
2792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793   *) ac_try_echo=$ac_try;;
2794 esac
2795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2796 $as_echo "$ac_try_echo") >&5
2797   (eval "$ac_compiler -v >&5") 2>&5
2798   ac_status=$?
2799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }
2801 { (ac_try="$ac_compiler -V >&5"
2802 case "(($ac_try" in
2803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804   *) ac_try_echo=$ac_try;;
2805 esac
2806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2807 $as_echo "$ac_try_echo") >&5
2808   (eval "$ac_compiler -V >&5") 2>&5
2809   ac_status=$?
2810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }
2812
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h.  */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h.  */
2819
2820 int
2821 main ()
2822 {
2823
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 ac_clean_files_save=$ac_clean_files
2829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2830 # Try to create an executable without -o first, disregard a.out.
2831 # It will help us diagnose broken compilers, and finding out an intuition
2832 # of exeext.
2833 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2834 $as_echo_n "checking for C compiler default output file name... " >&6; }
2835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2836
2837 # The possible output files:
2838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2839
2840 ac_rmfiles=
2841 for ac_file in $ac_files
2842 do
2843   case $ac_file in
2844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2845     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2846   esac
2847 done
2848 rm -f $ac_rmfiles
2849
2850 if { (ac_try="$ac_link_default"
2851 case "(($ac_try" in
2852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853   *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2856 $as_echo "$ac_try_echo") >&5
2857   (eval "$ac_link_default") 2>&5
2858   ac_status=$?
2859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); }; then
2861   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2863 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2864 # so that the user can short-circuit this test for compilers unknown to
2865 # Autoconf.
2866 for ac_file in $ac_files ''
2867 do
2868   test -f "$ac_file" || continue
2869   case $ac_file in
2870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2871         ;;
2872     [ab].out )
2873         # We found the default executable, but exeext='' is most
2874         # certainly right.
2875         break;;
2876     *.* )
2877         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2878         then :; else
2879            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2880         fi
2881         # We set ac_cv_exeext here because the later test for it is not
2882         # safe: cross compilers may not add the suffix if given an `-o'
2883         # argument, so we may need to know it at that point already.
2884         # Even if this section looks crufty: it has the advantage of
2885         # actually working.
2886         break;;
2887     * )
2888         break;;
2889   esac
2890 done
2891 test "$ac_cv_exeext" = no && ac_cv_exeext=
2892
2893 else
2894   ac_file=''
2895 fi
2896
2897 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2898 $as_echo "$ac_file" >&6; }
2899 if test -z "$ac_file"; then
2900   $as_echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2905 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2906 See \`config.log' for more details." >&5
2907 $as_echo "$as_me: error: C compiler cannot create executables
2908 See \`config.log' for more details." >&2;}
2909    { (exit 77); exit 77; }; }; }
2910 fi
2911
2912 ac_exeext=$ac_cv_exeext
2913
2914 # Check that the compiler produces executables we can run.  If not, either
2915 # the compiler is broken, or we cross compile.
2916 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2917 $as_echo_n "checking whether the C compiler works... " >&6; }
2918 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2919 # If not cross compiling, check that we can run a simple program.
2920 if test "$cross_compiling" != yes; then
2921   if { ac_try='./$ac_file'
2922   { (case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927 $as_echo "$ac_try_echo") >&5
2928   (eval "$ac_try") 2>&5
2929   ac_status=$?
2930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; }; then
2932     cross_compiling=no
2933   else
2934     if test "$cross_compiling" = maybe; then
2935         cross_compiling=yes
2936     else
2937         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2940 If you meant to cross compile, use \`--host'.
2941 See \`config.log' for more details." >&5
2942 $as_echo "$as_me: error: cannot run C compiled programs.
2943 If you meant to cross compile, use \`--host'.
2944 See \`config.log' for more details." >&2;}
2945    { (exit 1); exit 1; }; }; }
2946     fi
2947   fi
2948 fi
2949 { $as_echo "$as_me:$LINENO: result: yes" >&5
2950 $as_echo "yes" >&6; }
2951
2952 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2953 ac_clean_files=$ac_clean_files_save
2954 # Check that the compiler produces executables we can run.  If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2957 $as_echo_n "checking whether we are cross compiling... " >&6; }
2958 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2959 $as_echo "$cross_compiling" >&6; }
2960
2961 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2962 $as_echo_n "checking for suffix of executables... " >&6; }
2963 if { (ac_try="$ac_link"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2969 $as_echo "$ac_try_echo") >&5
2970   (eval "$ac_link") 2>&5
2971   ac_status=$?
2972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; then
2974   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe'), while it won't with
2977 # `rm'.
2978 for ac_file in conftest.exe conftest conftest.*; do
2979   test -f "$ac_file" || continue
2980   case $ac_file in
2981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2982     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983           break;;
2984     * ) break;;
2985   esac
2986 done
2987 else
2988   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details." >&5
2992 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2993 See \`config.log' for more details." >&2;}
2994    { (exit 1); exit 1; }; }; }
2995 fi
2996
2997 rm -f conftest$ac_cv_exeext
2998 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2999 $as_echo "$ac_cv_exeext" >&6; }
3000
3001 rm -f conftest.$ac_ext
3002 EXEEXT=$ac_cv_exeext
3003 ac_exeext=$EXEEXT
3004 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3005 $as_echo_n "checking for suffix of object files... " >&6; }
3006 if test "${ac_cv_objext+set}" = set; then
3007   $as_echo_n "(cached) " >&6
3008 else
3009   cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.o conftest.obj
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3031 $as_echo "$ac_try_echo") >&5
3032   (eval "$ac_compile") 2>&5
3033   ac_status=$?
3034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; then
3036   for ac_file in conftest.o conftest.obj conftest.*; do
3037   test -f "$ac_file" || continue;
3038   case $ac_file in
3039     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3040     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3041        break;;
3042   esac
3043 done
3044 else
3045   $as_echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3051 See \`config.log' for more details." >&5
3052 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3053 See \`config.log' for more details." >&2;}
3054    { (exit 1); exit 1; }; }; }
3055 fi
3056
3057 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3058 fi
3059 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3060 $as_echo "$ac_cv_objext" >&6; }
3061 OBJEXT=$ac_cv_objext
3062 ac_objext=$OBJEXT
3063 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3064 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3065 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3066   $as_echo_n "(cached) " >&6
3067 else
3068   cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074
3075 int
3076 main ()
3077 {
3078 #ifndef __GNUC__
3079        choke me
3080 #endif
3081
3082   ;
3083   return 0;
3084 }
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3088 case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3093 $as_echo "$ac_try_echo") >&5
3094   (eval "$ac_compile") 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } && {
3101          test -z "$ac_c_werror_flag" ||
3102          test ! -s conftest.err
3103        } && test -s conftest.$ac_objext; then
3104   ac_compiler_gnu=yes
3105 else
3106   $as_echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109         ac_compiler_gnu=no
3110 fi
3111
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3114
3115 fi
3116 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3117 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3118 if test $ac_compiler_gnu = yes; then
3119   GCC=yes
3120 else
3121   GCC=
3122 fi
3123 ac_test_CFLAGS=${CFLAGS+set}
3124 ac_save_CFLAGS=$CFLAGS
3125 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3126 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3127 if test "${ac_cv_prog_cc_g+set}" = set; then
3128   $as_echo_n "(cached) " >&6
3129 else
3130   ac_save_c_werror_flag=$ac_c_werror_flag
3131    ac_c_werror_flag=yes
3132    ac_cv_prog_cc_g=no
3133    CFLAGS="-g"
3134    cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h.  */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h.  */
3140
3141 int
3142 main ()
3143 {
3144
3145   ;
3146   return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3156 $as_echo "$ac_try_echo") >&5
3157   (eval "$ac_compile") 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
3161   cat conftest.err >&5
3162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); } && {
3164          test -z "$ac_c_werror_flag" ||
3165          test ! -s conftest.err
3166        } && test -s conftest.$ac_objext; then
3167   ac_cv_prog_cc_g=yes
3168 else
3169   $as_echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172         CFLAGS=""
3173       cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179
3180 int
3181 main ()
3182 {
3183
3184   ;
3185   return 0;
3186 }
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (ac_try="$ac_compile"
3190 case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3195 $as_echo "$ac_try_echo") >&5
3196   (eval "$ac_compile") 2>conftest.er1
3197   ac_status=$?
3198   grep -v '^ *+' conftest.er1 >conftest.err
3199   rm -f conftest.er1
3200   cat conftest.err >&5
3201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); } && {
3203          test -z "$ac_c_werror_flag" ||
3204          test ! -s conftest.err
3205        } && test -s conftest.$ac_objext; then
3206   :
3207 else
3208   $as_echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211         ac_c_werror_flag=$ac_save_c_werror_flag
3212          CFLAGS="-g"
3213          cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 int
3221 main ()
3222 {
3223
3224   ;
3225   return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3235 $as_echo "$ac_try_echo") >&5
3236   (eval "$ac_compile") 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } && {
3243          test -z "$ac_c_werror_flag" ||
3244          test ! -s conftest.err
3245        } && test -s conftest.$ac_objext; then
3246   ac_cv_prog_cc_g=yes
3247 else
3248   $as_echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251
3252 fi
3253
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 fi
3256
3257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 fi
3259
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261    ac_c_werror_flag=$ac_save_c_werror_flag
3262 fi
3263 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3264 $as_echo "$ac_cv_prog_cc_g" >&6; }
3265 if test "$ac_test_CFLAGS" = set; then
3266   CFLAGS=$ac_save_CFLAGS
3267 elif test $ac_cv_prog_cc_g = yes; then
3268   if test "$GCC" = yes; then
3269     CFLAGS="-g -O2"
3270   else
3271     CFLAGS="-g"
3272   fi
3273 else
3274   if test "$GCC" = yes; then
3275     CFLAGS="-O2"
3276   else
3277     CFLAGS=
3278   fi
3279 fi
3280 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3281 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3282 if test "${ac_cv_prog_cc_c89+set}" = set; then
3283   $as_echo_n "(cached) " >&6
3284 else
3285   ac_cv_prog_cc_c89=no
3286 ac_save_CC=$CC
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h.  */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h.  */
3293 #include <stdarg.h>
3294 #include <stdio.h>
3295 #include <sys/types.h>
3296 #include <sys/stat.h>
3297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3298 struct buf { int x; };
3299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3300 static char *e (p, i)
3301      char **p;
3302      int i;
3303 {
3304   return p[i];
3305 }
3306 static char *f (char * (*g) (char **, int), char **p, ...)
3307 {
3308   char *s;
3309   va_list v;
3310   va_start (v,p);
3311   s = g (p, va_arg (v,int));
3312   va_end (v);
3313   return s;
3314 }
3315
3316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3317    function prototypes and stuff, but not '\xHH' hex character constants.
3318    These don't provoke an error unfortunately, instead are silently treated
3319    as 'x'.  The following induces an error, until -std is added to get
3320    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3321    array size at least.  It's necessary to write '\x00'==0 to get something
3322    that's true only with -std.  */
3323 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3324
3325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3326    inside strings and character constants.  */
3327 #define FOO(x) 'x'
3328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3329
3330 int test (int i, double x);
3331 struct s1 {int (*f) (int a);};
3332 struct s2 {int (*f) (double a);};
3333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3334 int argc;
3335 char **argv;
3336 int
3337 main ()
3338 {
3339 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3340   ;
3341   return 0;
3342 }
3343 _ACEOF
3344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3345         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3346 do
3347   CC="$ac_save_CC $ac_arg"
3348   rm -f conftest.$ac_objext
3349 if { (ac_try="$ac_compile"
3350 case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3355 $as_echo "$ac_try_echo") >&5
3356   (eval "$ac_compile") 2>conftest.er1
3357   ac_status=$?
3358   grep -v '^ *+' conftest.er1 >conftest.err
3359   rm -f conftest.er1
3360   cat conftest.err >&5
3361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); } && {
3363          test -z "$ac_c_werror_flag" ||
3364          test ! -s conftest.err
3365        } && test -s conftest.$ac_objext; then
3366   ac_cv_prog_cc_c89=$ac_arg
3367 else
3368   $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371
3372 fi
3373
3374 rm -f core conftest.err conftest.$ac_objext
3375   test "x$ac_cv_prog_cc_c89" != "xno" && break
3376 done
3377 rm -f conftest.$ac_ext
3378 CC=$ac_save_CC
3379
3380 fi
3381 # AC_CACHE_VAL
3382 case "x$ac_cv_prog_cc_c89" in
3383   x)
3384     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3385 $as_echo "none needed" >&6; } ;;
3386   xno)
3387     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3388 $as_echo "unsupported" >&6; } ;;
3389   *)
3390     CC="$CC $ac_cv_prog_cc_c89"
3391     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3392 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3393 esac
3394
3395
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402 depcc="$CC"   am_compiler_list=
3403
3404 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405 $as_echo_n "checking dependency style of $depcc... " >&6; }
3406 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410   # We make a subdir and do the tests there.  Otherwise we can end up
3411   # making bogus files that we don't know about and never remove.  For
3412   # instance it was reported that on HP-UX the gcc test will end up
3413   # making a dummy file named `D' -- because `-MD' means `put the output
3414   # in D'.
3415   mkdir conftest.dir
3416   # Copy depcomp to subdir because otherwise we won't find it if we're
3417   # using a relative directory.
3418   cp "$am_depcomp" conftest.dir
3419   cd conftest.dir
3420   # We will build objects and dependencies in a subdirectory because
3421   # it helps to detect inapplicable dependency modes.  For instance
3422   # both Tru64's cc and ICC support -MD to output dependencies as a
3423   # side effect of compilation, but ICC will put the dependencies in
3424   # the current directory while Tru64 will put them in the object
3425   # directory.
3426   mkdir sub
3427
3428   am_cv_CC_dependencies_compiler_type=none
3429   if test "$am_compiler_list" = ""; then
3430      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431   fi
3432   am__universal=false
3433   case " $depcc " in #(
3434      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3435      esac
3436
3437   for depmode in $am_compiler_list; do
3438     # Setup a source with many dependencies, because some compilers
3439     # like to wrap large dependency lists on column 80 (with \), and
3440     # we should not choose a depcomp mode which is confused by this.
3441     #
3442     # We need to recreate these files for each test, as the compiler may
3443     # overwrite some of them when testing with obscure command lines.
3444     # This happens at least with the AIX C compiler.
3445     : > sub/conftest.c
3446     for i in 1 2 3 4 5 6; do
3447       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3448       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3449       # Solaris 8's {/usr,}/bin/sh.
3450       touch sub/conftst$i.h
3451     done
3452     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3453
3454     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3455     # mode.  It turns out that the SunPro C++ compiler does not properly
3456     # handle `-M -o', and we need to detect this.  Also, some Intel
3457     # versions had trouble with output in subdirs
3458     am__obj=sub/conftest.${OBJEXT-o}
3459     am__minus_obj="-o $am__obj"
3460     case $depmode in
3461     gcc)
3462       # This depmode causes a compiler race in universal mode.
3463       test "$am__universal" = false || continue
3464       ;;
3465     nosideeffect)
3466       # after this tag, mechanisms are not by side-effect, so they'll
3467       # only be used when explicitly requested
3468       if test "x$enable_dependency_tracking" = xyes; then
3469         continue
3470       else
3471         break
3472       fi
3473       ;;
3474     msvisualcpp | msvcmsys)
3475       # This compiler won't grok `-c -o', but also, the minuso test has
3476       # not run yet.  These depmodes are late enough in the game, and
3477       # so weak that their functioning should not be impacted.
3478       am__obj=conftest.${OBJEXT-o}
3479       am__minus_obj=
3480       ;;
3481     none) break ;;
3482     esac
3483     if depmode=$depmode \
3484        source=sub/conftest.c object=$am__obj \
3485        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3486        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3487          >/dev/null 2>conftest.err &&
3488        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3489        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3490        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3491        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3492       # icc doesn't choke on unknown options, it will just issue warnings
3493       # or remarks (even with -Werror).  So we grep stderr for any message
3494       # that says an option was ignored or not supported.
3495       # When given -MP, icc 7.0 and 7.1 complain thusly:
3496       #   icc: Command line warning: ignoring option '-M'; no argument required
3497       # The diagnosis changed in icc 8.0:
3498       #   icc: Command line remark: option '-MP' not supported
3499       if (grep 'ignoring option' conftest.err ||
3500           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3501         am_cv_CC_dependencies_compiler_type=$depmode
3502         break
3503       fi
3504     fi
3505   done
3506
3507   cd ..
3508   rm -rf conftest.dir
3509 else
3510   am_cv_CC_dependencies_compiler_type=none
3511 fi
3512
3513 fi
3514 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3515 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3516 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3517
3518  if
3519   test "x$enable_dependency_tracking" != xno \
3520   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3521   am__fastdepCC_TRUE=
3522   am__fastdepCC_FALSE='#'
3523 else
3524   am__fastdepCC_TRUE='#'
3525   am__fastdepCC_FALSE=
3526 fi
3527
3528
3529
3530 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3531 $as_echo_n "checking for library containing strerror... " >&6; }
3532 if test "${ac_cv_search_strerror+set}" = set; then
3533   $as_echo_n "(cached) " >&6
3534 else
3535   ac_func_search_save_LIBS=$LIBS
3536 cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 /* Override any GCC internal prototype to avoid an error.
3544    Use char because int might match the return type of a GCC
3545    builtin and then its argument prototype would still apply.  */
3546 #ifdef __cplusplus
3547 extern "C"
3548 #endif
3549 char strerror ();
3550 int
3551 main ()
3552 {
3553 return strerror ();
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 for ac_lib in '' cposix; do
3559   if test -z "$ac_lib"; then
3560     ac_res="none required"
3561   else
3562     ac_res=-l$ac_lib
3563     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3564   fi
3565   rm -f conftest.$ac_objext conftest$ac_exeext
3566 if { (ac_try="$ac_link"
3567 case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3572 $as_echo "$ac_try_echo") >&5
3573   (eval "$ac_link") 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } && {
3580          test -z "$ac_c_werror_flag" ||
3581          test ! -s conftest.err
3582        } && test -s conftest$ac_exeext && {
3583          test "$cross_compiling" = yes ||
3584          $as_test_x conftest$ac_exeext
3585        }; then
3586   ac_cv_search_strerror=$ac_res
3587 else
3588   $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591
3592 fi
3593
3594 rm -rf conftest.dSYM
3595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3596       conftest$ac_exeext
3597   if test "${ac_cv_search_strerror+set}" = set; then
3598   break
3599 fi
3600 done
3601 if test "${ac_cv_search_strerror+set}" = set; then
3602   :
3603 else
3604   ac_cv_search_strerror=no
3605 fi
3606 rm conftest.$ac_ext
3607 LIBS=$ac_func_search_save_LIBS
3608 fi
3609 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3610 $as_echo "$ac_cv_search_strerror" >&6; }
3611 ac_res=$ac_cv_search_strerror
3612 if test "$ac_res" != no; then
3613   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3614
3615 fi
3616
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622 if test -n "$ac_tool_prefix"; then
3623   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_CC+set}" = set; then
3628   $as_echo_n "(cached) " >&6
3629 else
3630   if test -n "$CC"; then
3631   ac_cv_prog_CC="$CC" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638   for ac_exec_ext in '' $ac_executable_extensions; do
3639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3641     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3642     break 2
3643   fi
3644 done
3645 done
3646 IFS=$as_save_IFS
3647
3648 fi
3649 fi
3650 CC=$ac_cv_prog_CC
3651 if test -n "$CC"; then
3652   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3654 else
3655   { $as_echo "$as_me:$LINENO: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660 fi
3661 if test -z "$ac_cv_prog_CC"; then
3662   ac_ct_CC=$CC
3663   # Extract the first word of "gcc", so it can be a program name with args.
3664 set dummy gcc; ac_word=$2
3665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3668   $as_echo_n "(cached) " >&6
3669 else
3670   if test -n "$ac_ct_CC"; then
3671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3675 do
3676   IFS=$as_save_IFS
3677   test -z "$as_dir" && as_dir=.
3678   for ac_exec_ext in '' $ac_executable_extensions; do
3679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680     ac_cv_prog_ac_ct_CC="gcc"
3681     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682     break 2
3683   fi
3684 done
3685 done
3686 IFS=$as_save_IFS
3687
3688 fi
3689 fi
3690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691 if test -n "$ac_ct_CC"; then
3692   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3693 $as_echo "$ac_ct_CC" >&6; }
3694 else
3695   { $as_echo "$as_me:$LINENO: result: no" >&5
3696 $as_echo "no" >&6; }
3697 fi
3698
3699   if test "x$ac_ct_CC" = x; then
3700     CC=""
3701   else
3702     case $cross_compiling:$ac_tool_warned in
3703 yes:)
3704 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706 ac_tool_warned=yes ;;
3707 esac
3708     CC=$ac_ct_CC
3709   fi
3710 else
3711   CC="$ac_cv_prog_CC"
3712 fi
3713
3714 if test -z "$CC"; then
3715           if test -n "$ac_tool_prefix"; then
3716     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}cc; ac_word=$2
3718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_CC+set}" = set; then
3721   $as_echo_n "(cached) " >&6
3722 else
3723   if test -n "$CC"; then
3724   ac_cv_prog_CC="$CC" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731   for ac_exec_ext in '' $ac_executable_extensions; do
3732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733     ac_cv_prog_CC="${ac_tool_prefix}cc"
3734     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738 done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 CC=$ac_cv_prog_CC
3744 if test -n "$CC"; then
3745   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3746 $as_echo "$CC" >&6; }
3747 else
3748   { $as_echo "$as_me:$LINENO: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752
3753   fi
3754 fi
3755 if test -z "$CC"; then
3756   # Extract the first word of "cc", so it can be a program name with args.
3757 set dummy cc; ac_word=$2
3758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if test "${ac_cv_prog_CC+set}" = set; then
3761   $as_echo_n "(cached) " >&6
3762 else
3763   if test -n "$CC"; then
3764   ac_cv_prog_CC="$CC" # Let the user override the test.
3765 else
3766   ac_prog_rejected=no
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772   for ac_exec_ext in '' $ac_executable_extensions; do
3773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3775        ac_prog_rejected=yes
3776        continue
3777      fi
3778     ac_cv_prog_CC="cc"
3779     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780     break 2
3781   fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3785
3786 if test $ac_prog_rejected = yes; then
3787   # We found a bogon in the path, so make sure we never use it.
3788   set dummy $ac_cv_prog_CC
3789   shift
3790   if test $# != 0; then
3791     # We chose a different compiler from the bogus one.
3792     # However, it has the same basename, so the bogon will be chosen
3793     # first if we set CC to just the basename; use the full file name.
3794     shift
3795     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3796   fi
3797 fi
3798 fi
3799 fi
3800 CC=$ac_cv_prog_CC
3801 if test -n "$CC"; then
3802   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3803 $as_echo "$CC" >&6; }
3804 else
3805   { $as_echo "$as_me:$LINENO: result: no" >&5
3806 $as_echo "no" >&6; }
3807 fi
3808
3809
3810 fi
3811 if test -z "$CC"; then
3812   if test -n "$ac_tool_prefix"; then
3813   for ac_prog in cl.exe
3814   do
3815     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3818 $as_echo_n "checking for $ac_word... " >&6; }
3819 if test "${ac_cv_prog_CC+set}" = set; then
3820   $as_echo_n "(cached) " >&6
3821 else
3822   if test -n "$CC"; then
3823   ac_cv_prog_CC="$CC" # Let the user override the test.
3824 else
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 for as_dir in $PATH
3827 do
3828   IFS=$as_save_IFS
3829   test -z "$as_dir" && as_dir=.
3830   for ac_exec_ext in '' $ac_executable_extensions; do
3831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3832     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3833     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3834     break 2
3835   fi
3836 done
3837 done
3838 IFS=$as_save_IFS
3839
3840 fi
3841 fi
3842 CC=$ac_cv_prog_CC
3843 if test -n "$CC"; then
3844   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3845 $as_echo "$CC" >&6; }
3846 else
3847   { $as_echo "$as_me:$LINENO: result: no" >&5
3848 $as_echo "no" >&6; }
3849 fi
3850
3851
3852     test -n "$CC" && break
3853   done
3854 fi
3855 if test -z "$CC"; then
3856   ac_ct_CC=$CC
3857   for ac_prog in cl.exe
3858 do
3859   # Extract the first word of "$ac_prog", so it can be a program name with args.
3860 set dummy $ac_prog; ac_word=$2
3861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3864   $as_echo_n "(cached) " >&6
3865 else
3866   if test -n "$ac_ct_CC"; then
3867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872   IFS=$as_save_IFS
3873   test -z "$as_dir" && as_dir=.
3874   for ac_exec_ext in '' $ac_executable_extensions; do
3875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3876     ac_cv_prog_ac_ct_CC="$ac_prog"
3877     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3878     break 2
3879   fi
3880 done
3881 done
3882 IFS=$as_save_IFS
3883
3884 fi
3885 fi
3886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3887 if test -n "$ac_ct_CC"; then
3888   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3889 $as_echo "$ac_ct_CC" >&6; }
3890 else
3891   { $as_echo "$as_me:$LINENO: result: no" >&5
3892 $as_echo "no" >&6; }
3893 fi
3894
3895
3896   test -n "$ac_ct_CC" && break
3897 done
3898
3899   if test "x$ac_ct_CC" = x; then
3900     CC=""
3901   else
3902     case $cross_compiling:$ac_tool_warned in
3903 yes:)
3904 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906 ac_tool_warned=yes ;;
3907 esac
3908     CC=$ac_ct_CC
3909   fi
3910 fi
3911
3912 fi
3913
3914
3915 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3918 See \`config.log' for more details." >&5
3919 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3920 See \`config.log' for more details." >&2;}
3921    { (exit 1); exit 1; }; }; }
3922
3923 # Provide some information about the compiler.
3924 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3925 set X $ac_compile
3926 ac_compiler=$2
3927 { (ac_try="$ac_compiler --version >&5"
3928 case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3933 $as_echo "$ac_try_echo") >&5
3934   (eval "$ac_compiler --version >&5") 2>&5
3935   ac_status=$?
3936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); }
3938 { (ac_try="$ac_compiler -v >&5"
3939 case "(($ac_try" in
3940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941   *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3944 $as_echo "$ac_try_echo") >&5
3945   (eval "$ac_compiler -v >&5") 2>&5
3946   ac_status=$?
3947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); }
3949 { (ac_try="$ac_compiler -V >&5"
3950 case "(($ac_try" in
3951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952   *) ac_try_echo=$ac_try;;
3953 esac
3954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3955 $as_echo "$ac_try_echo") >&5
3956   (eval "$ac_compiler -V >&5") 2>&5
3957   ac_status=$?
3958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); }
3960
3961 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3962 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3963 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3964   $as_echo_n "(cached) " >&6
3965 else
3966   cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h.  */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h.  */
3972
3973 int
3974 main ()
3975 {
3976 #ifndef __GNUC__
3977        choke me
3978 #endif
3979
3980   ;
3981   return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3986 case "(($ac_try" in
3987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988   *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992   (eval "$ac_compile") 2>conftest.er1
3993   ac_status=$?
3994   grep -v '^ *+' conftest.er1 >conftest.err
3995   rm -f conftest.er1
3996   cat conftest.err >&5
3997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); } && {
3999          test -z "$ac_c_werror_flag" ||
4000          test ! -s conftest.err
4001        } && test -s conftest.$ac_objext; then
4002   ac_compiler_gnu=yes
4003 else
4004   $as_echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007         ac_compiler_gnu=no
4008 fi
4009
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4012
4013 fi
4014 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4015 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4016 if test $ac_compiler_gnu = yes; then
4017   GCC=yes
4018 else
4019   GCC=
4020 fi
4021 ac_test_CFLAGS=${CFLAGS+set}
4022 ac_save_CFLAGS=$CFLAGS
4023 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4024 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4025 if test "${ac_cv_prog_cc_g+set}" = set; then
4026   $as_echo_n "(cached) " >&6
4027 else
4028   ac_save_c_werror_flag=$ac_c_werror_flag
4029    ac_c_werror_flag=yes
4030    ac_cv_prog_cc_g=no
4031    CFLAGS="-g"
4032    cat >conftest.$ac_ext <<_ACEOF
4033 /* confdefs.h.  */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h.  */
4038
4039 int
4040 main ()
4041 {
4042
4043   ;
4044   return 0;
4045 }
4046 _ACEOF
4047 rm -f conftest.$ac_objext
4048 if { (ac_try="$ac_compile"
4049 case "(($ac_try" in
4050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051   *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4054 $as_echo "$ac_try_echo") >&5
4055   (eval "$ac_compile") 2>conftest.er1
4056   ac_status=$?
4057   grep -v '^ *+' conftest.er1 >conftest.err
4058   rm -f conftest.er1
4059   cat conftest.err >&5
4060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); } && {
4062          test -z "$ac_c_werror_flag" ||
4063          test ! -s conftest.err
4064        } && test -s conftest.$ac_objext; then
4065   ac_cv_prog_cc_g=yes
4066 else
4067   $as_echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070         CFLAGS=""
4071       cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077
4078 int
4079 main ()
4080 {
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4088 case "(($ac_try" in
4089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090   *) ac_try_echo=$ac_try;;
4091 esac
4092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4093 $as_echo "$ac_try_echo") >&5
4094   (eval "$ac_compile") 2>conftest.er1
4095   ac_status=$?
4096   grep -v '^ *+' conftest.er1 >conftest.err
4097   rm -f conftest.er1
4098   cat conftest.err >&5
4099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } && {
4101          test -z "$ac_c_werror_flag" ||
4102          test ! -s conftest.err
4103        } && test -s conftest.$ac_objext; then
4104   :
4105 else
4106   $as_echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109         ac_c_werror_flag=$ac_save_c_werror_flag
4110          CFLAGS="-g"
4111          cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117
4118 int
4119 main ()
4120 {
4121
4122   ;
4123   return 0;
4124 }
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4128 case "(($ac_try" in
4129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130   *) ac_try_echo=$ac_try;;
4131 esac
4132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4133 $as_echo "$ac_try_echo") >&5
4134   (eval "$ac_compile") 2>conftest.er1
4135   ac_status=$?
4136   grep -v '^ *+' conftest.er1 >conftest.err
4137   rm -f conftest.er1
4138   cat conftest.err >&5
4139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); } && {
4141          test -z "$ac_c_werror_flag" ||
4142          test ! -s conftest.err
4143        } && test -s conftest.$ac_objext; then
4144   ac_cv_prog_cc_g=yes
4145 else
4146   $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4148
4149
4150 fi
4151
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 fi
4154
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 fi
4157
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159    ac_c_werror_flag=$ac_save_c_werror_flag
4160 fi
4161 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4162 $as_echo "$ac_cv_prog_cc_g" >&6; }
4163 if test "$ac_test_CFLAGS" = set; then
4164   CFLAGS=$ac_save_CFLAGS
4165 elif test $ac_cv_prog_cc_g = yes; then
4166   if test "$GCC" = yes; then
4167     CFLAGS="-g -O2"
4168   else
4169     CFLAGS="-g"
4170   fi
4171 else
4172   if test "$GCC" = yes; then
4173     CFLAGS="-O2"
4174   else
4175     CFLAGS=
4176   fi
4177 fi
4178 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4179 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4180 if test "${ac_cv_prog_cc_c89+set}" = set; then
4181   $as_echo_n "(cached) " >&6
4182 else
4183   ac_cv_prog_cc_c89=no
4184 ac_save_CC=$CC
4185 cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #include <stdarg.h>
4192 #include <stdio.h>
4193 #include <sys/types.h>
4194 #include <sys/stat.h>
4195 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4196 struct buf { int x; };
4197 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4198 static char *e (p, i)
4199      char **p;
4200      int i;
4201 {
4202   return p[i];
4203 }
4204 static char *f (char * (*g) (char **, int), char **p, ...)
4205 {
4206   char *s;
4207   va_list v;
4208   va_start (v,p);
4209   s = g (p, va_arg (v,int));
4210   va_end (v);
4211   return s;
4212 }
4213
4214 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4215    function prototypes and stuff, but not '\xHH' hex character constants.
4216    These don't provoke an error unfortunately, instead are silently treated
4217    as 'x'.  The following induces an error, until -std is added to get
4218    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4219    array size at least.  It's necessary to write '\x00'==0 to get something
4220    that's true only with -std.  */
4221 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4222
4223 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4224    inside strings and character constants.  */
4225 #define FOO(x) 'x'
4226 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4227
4228 int test (int i, double x);
4229 struct s1 {int (*f) (int a);};
4230 struct s2 {int (*f) (double a);};
4231 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4232 int argc;
4233 char **argv;
4234 int
4235 main ()
4236 {
4237 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4243         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4244 do
4245   CC="$ac_save_CC $ac_arg"
4246   rm -f conftest.$ac_objext
4247 if { (ac_try="$ac_compile"
4248 case "(($ac_try" in
4249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250   *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4253 $as_echo "$ac_try_echo") >&5
4254   (eval "$ac_compile") 2>conftest.er1
4255   ac_status=$?
4256   grep -v '^ *+' conftest.er1 >conftest.err
4257   rm -f conftest.er1
4258   cat conftest.err >&5
4259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } && {
4261          test -z "$ac_c_werror_flag" ||
4262          test ! -s conftest.err
4263        } && test -s conftest.$ac_objext; then
4264   ac_cv_prog_cc_c89=$ac_arg
4265 else
4266   $as_echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269
4270 fi
4271
4272 rm -f core conftest.err conftest.$ac_objext
4273   test "x$ac_cv_prog_cc_c89" != "xno" && break
4274 done
4275 rm -f conftest.$ac_ext
4276 CC=$ac_save_CC
4277
4278 fi
4279 # AC_CACHE_VAL
4280 case "x$ac_cv_prog_cc_c89" in
4281   x)
4282     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4283 $as_echo "none needed" >&6; } ;;
4284   xno)
4285     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4286 $as_echo "unsupported" >&6; } ;;
4287   *)
4288     CC="$CC $ac_cv_prog_cc_c89"
4289     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4290 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4291 esac
4292
4293
4294 ac_ext=c
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299
4300 depcc="$CC"   am_compiler_list=
4301
4302 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4303 $as_echo_n "checking dependency style of $depcc... " >&6; }
4304 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4305   $as_echo_n "(cached) " >&6
4306 else
4307   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4308   # We make a subdir and do the tests there.  Otherwise we can end up
4309   # making bogus files that we don't know about and never remove.  For
4310   # instance it was reported that on HP-UX the gcc test will end up
4311   # making a dummy file named `D' -- because `-MD' means `put the output
4312   # in D'.
4313   mkdir conftest.dir
4314   # Copy depcomp to subdir because otherwise we won't find it if we're
4315   # using a relative directory.
4316   cp "$am_depcomp" conftest.dir
4317   cd conftest.dir
4318   # We will build objects and dependencies in a subdirectory because
4319   # it helps to detect inapplicable dependency modes.  For instance
4320   # both Tru64's cc and ICC support -MD to output dependencies as a
4321   # side effect of compilation, but ICC will put the dependencies in
4322   # the current directory while Tru64 will put them in the object
4323   # directory.
4324   mkdir sub
4325
4326   am_cv_CC_dependencies_compiler_type=none
4327   if test "$am_compiler_list" = ""; then
4328      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4329   fi
4330   am__universal=false
4331   case " $depcc " in #(
4332      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4333      esac
4334
4335   for depmode in $am_compiler_list; do
4336     # Setup a source with many dependencies, because some compilers
4337     # like to wrap large dependency lists on column 80 (with \), and
4338     # we should not choose a depcomp mode which is confused by this.
4339     #
4340     # We need to recreate these files for each test, as the compiler may
4341     # overwrite some of them when testing with obscure command lines.
4342     # This happens at least with the AIX C compiler.
4343     : > sub/conftest.c
4344     for i in 1 2 3 4 5 6; do
4345       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4346       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4347       # Solaris 8's {/usr,}/bin/sh.
4348       touch sub/conftst$i.h
4349     done
4350     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4351
4352     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4353     # mode.  It turns out that the SunPro C++ compiler does not properly
4354     # handle `-M -o', and we need to detect this.  Also, some Intel
4355     # versions had trouble with output in subdirs
4356     am__obj=sub/conftest.${OBJEXT-o}
4357     am__minus_obj="-o $am__obj"
4358     case $depmode in
4359     gcc)
4360       # This depmode causes a compiler race in universal mode.
4361       test "$am__universal" = false || continue
4362       ;;
4363     nosideeffect)
4364       # after this tag, mechanisms are not by side-effect, so they'll
4365       # only be used when explicitly requested
4366       if test "x$enable_dependency_tracking" = xyes; then
4367         continue
4368       else
4369         break
4370       fi
4371       ;;
4372     msvisualcpp | msvcmsys)
4373       # This compiler won't grok `-c -o', but also, the minuso test has
4374       # not run yet.  These depmodes are late enough in the game, and
4375       # so weak that their functioning should not be impacted.
4376       am__obj=conftest.${OBJEXT-o}
4377       am__minus_obj=
4378       ;;
4379     none) break ;;
4380     esac
4381     if depmode=$depmode \
4382        source=sub/conftest.c object=$am__obj \
4383        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4384        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4385          >/dev/null 2>conftest.err &&
4386        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4387        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4388        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4389        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4390       # icc doesn't choke on unknown options, it will just issue warnings
4391       # or remarks (even with -Werror).  So we grep stderr for any message
4392       # that says an option was ignored or not supported.
4393       # When given -MP, icc 7.0 and 7.1 complain thusly:
4394       #   icc: Command line warning: ignoring option '-M'; no argument required
4395       # The diagnosis changed in icc 8.0:
4396       #   icc: Command line remark: option '-MP' not supported
4397       if (grep 'ignoring option' conftest.err ||
4398           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4399         am_cv_CC_dependencies_compiler_type=$depmode
4400         break
4401       fi
4402     fi
4403   done
4404
4405   cd ..
4406   rm -rf conftest.dir
4407 else
4408   am_cv_CC_dependencies_compiler_type=none
4409 fi
4410
4411 fi
4412 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4413 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4414 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4415
4416  if
4417   test "x$enable_dependency_tracking" != xno \
4418   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4419   am__fastdepCC_TRUE=
4420   am__fastdepCC_FALSE='#'
4421 else
4422   am__fastdepCC_TRUE='#'
4423   am__fastdepCC_FALSE=
4424 fi
4425
4426
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432 if test -n "$ac_tool_prefix"; then
4433   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_prog_CC+set}" = set; then
4438   $as_echo_n "(cached) " >&6
4439 else
4440   if test -n "$CC"; then
4441   ac_cv_prog_CC="$CC" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446   IFS=$as_save_IFS
4447   test -z "$as_dir" && as_dir=.
4448   for ac_exec_ext in '' $ac_executable_extensions; do
4449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4451     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452     break 2
4453   fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 fi
4459 fi
4460 CC=$ac_cv_prog_CC
4461 if test -n "$CC"; then
4462   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4463 $as_echo "$CC" >&6; }
4464 else
4465   { $as_echo "$as_me:$LINENO: result: no" >&5
4466 $as_echo "no" >&6; }
4467 fi
4468
4469
4470 fi
4471 if test -z "$ac_cv_prog_CC"; then
4472   ac_ct_CC=$CC
4473   # Extract the first word of "gcc", so it can be a program name with args.
4474 set dummy gcc; ac_word=$2
4475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4478   $as_echo_n "(cached) " >&6
4479 else
4480   if test -n "$ac_ct_CC"; then
4481   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486   IFS=$as_save_IFS
4487   test -z "$as_dir" && as_dir=.
4488   for ac_exec_ext in '' $ac_executable_extensions; do
4489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490     ac_cv_prog_ac_ct_CC="gcc"
4491     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492     break 2
4493   fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4501 if test -n "$ac_ct_CC"; then
4502   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4503 $as_echo "$ac_ct_CC" >&6; }
4504 else
4505   { $as_echo "$as_me:$LINENO: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509   if test "x$ac_ct_CC" = x; then
4510     CC=""
4511   else
4512     case $cross_compiling:$ac_tool_warned in
4513 yes:)
4514 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516 ac_tool_warned=yes ;;
4517 esac
4518     CC=$ac_ct_CC
4519   fi
4520 else
4521   CC="$ac_cv_prog_CC"
4522 fi
4523
4524 if test -z "$CC"; then
4525           if test -n "$ac_tool_prefix"; then
4526     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4527 set dummy ${ac_tool_prefix}cc; ac_word=$2
4528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CC+set}" = set; then
4531   $as_echo_n "(cached) " >&6
4532 else
4533   if test -n "$CC"; then
4534   ac_cv_prog_CC="$CC" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541   for ac_exec_ext in '' $ac_executable_extensions; do
4542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543     ac_cv_prog_CC="${ac_tool_prefix}cc"
4544     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545     break 2
4546   fi
4547 done
4548 done
4549 IFS=$as_save_IFS
4550
4551 fi
4552 fi
4553 CC=$ac_cv_prog_CC
4554 if test -n "$CC"; then
4555   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4556 $as_echo "$CC" >&6; }
4557 else
4558   { $as_echo "$as_me:$LINENO: result: no" >&5
4559 $as_echo "no" >&6; }
4560 fi
4561
4562
4563   fi
4564 fi
4565 if test -z "$CC"; then
4566   # Extract the first word of "cc", so it can be a program name with args.
4567 set dummy cc; ac_word=$2
4568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if test "${ac_cv_prog_CC+set}" = set; then
4571   $as_echo_n "(cached) " >&6
4572 else
4573   if test -n "$CC"; then
4574   ac_cv_prog_CC="$CC" # Let the user override the test.
4575 else
4576   ac_prog_rejected=no
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582   for ac_exec_ext in '' $ac_executable_extensions; do
4583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4585        ac_prog_rejected=yes
4586        continue
4587      fi
4588     ac_cv_prog_CC="cc"
4589     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590     break 2
4591   fi
4592 done
4593 done
4594 IFS=$as_save_IFS
4595
4596 if test $ac_prog_rejected = yes; then
4597   # We found a bogon in the path, so make sure we never use it.
4598   set dummy $ac_cv_prog_CC
4599   shift
4600   if test $# != 0; then
4601     # We chose a different compiler from the bogus one.
4602     # However, it has the same basename, so the bogon will be chosen
4603     # first if we set CC to just the basename; use the full file name.
4604     shift
4605     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4606   fi
4607 fi
4608 fi
4609 fi
4610 CC=$ac_cv_prog_CC
4611 if test -n "$CC"; then
4612   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4613 $as_echo "$CC" >&6; }
4614 else
4615   { $as_echo "$as_me:$LINENO: result: no" >&5
4616 $as_echo "no" >&6; }
4617 fi
4618
4619
4620 fi
4621 if test -z "$CC"; then
4622   if test -n "$ac_tool_prefix"; then
4623   for ac_prog in cl.exe
4624   do
4625     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if test "${ac_cv_prog_CC+set}" = set; then
4630   $as_echo_n "(cached) " >&6
4631 else
4632   if test -n "$CC"; then
4633   ac_cv_prog_CC="$CC" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640   for ac_exec_ext in '' $ac_executable_extensions; do
4641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4643     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 CC=$ac_cv_prog_CC
4653 if test -n "$CC"; then
4654   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4655 $as_echo "$CC" >&6; }
4656 else
4657   { $as_echo "$as_me:$LINENO: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661
4662     test -n "$CC" && break
4663   done
4664 fi
4665 if test -z "$CC"; then
4666   ac_ct_CC=$CC
4667   for ac_prog in cl.exe
4668 do
4669   # Extract the first word of "$ac_prog", so it can be a program name with args.
4670 set dummy $ac_prog; ac_word=$2
4671 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4674   $as_echo_n "(cached) " >&6
4675 else
4676   if test -n "$ac_ct_CC"; then
4677   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4681 do
4682   IFS=$as_save_IFS
4683   test -z "$as_dir" && as_dir=.
4684   for ac_exec_ext in '' $ac_executable_extensions; do
4685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4686     ac_cv_prog_ac_ct_CC="$ac_prog"
4687     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688     break 2
4689   fi
4690 done
4691 done
4692 IFS=$as_save_IFS
4693
4694 fi
4695 fi
4696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697 if test -n "$ac_ct_CC"; then
4698   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4699 $as_echo "$ac_ct_CC" >&6; }
4700 else
4701   { $as_echo "$as_me:$LINENO: result: no" >&5
4702 $as_echo "no" >&6; }
4703 fi
4704
4705
4706   test -n "$ac_ct_CC" && break
4707 done
4708
4709   if test "x$ac_ct_CC" = x; then
4710     CC=""
4711   else
4712     case $cross_compiling:$ac_tool_warned in
4713 yes:)
4714 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716 ac_tool_warned=yes ;;
4717 esac
4718     CC=$ac_ct_CC
4719   fi
4720 fi
4721
4722 fi
4723
4724
4725 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4727 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4728 See \`config.log' for more details." >&5
4729 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4730 See \`config.log' for more details." >&2;}
4731    { (exit 1); exit 1; }; }; }
4732
4733 # Provide some information about the compiler.
4734 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4735 set X $ac_compile
4736 ac_compiler=$2
4737 { (ac_try="$ac_compiler --version >&5"
4738 case "(($ac_try" in
4739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740   *) ac_try_echo=$ac_try;;
4741 esac
4742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4743 $as_echo "$ac_try_echo") >&5
4744   (eval "$ac_compiler --version >&5") 2>&5
4745   ac_status=$?
4746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }
4748 { (ac_try="$ac_compiler -v >&5"
4749 case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4754 $as_echo "$ac_try_echo") >&5
4755   (eval "$ac_compiler -v >&5") 2>&5
4756   ac_status=$?
4757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }
4759 { (ac_try="$ac_compiler -V >&5"
4760 case "(($ac_try" in
4761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762   *) ac_try_echo=$ac_try;;
4763 esac
4764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4765 $as_echo "$ac_try_echo") >&5
4766   (eval "$ac_compiler -V >&5") 2>&5
4767   ac_status=$?
4768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); }
4770
4771 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4772 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4773 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4774   $as_echo_n "(cached) " >&6
4775 else
4776   cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h.  */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h.  */
4782
4783 int
4784 main ()
4785 {
4786 #ifndef __GNUC__
4787        choke me
4788 #endif
4789
4790   ;
4791   return 0;
4792 }
4793 _ACEOF
4794 rm -f conftest.$ac_objext
4795 if { (ac_try="$ac_compile"
4796 case "(($ac_try" in
4797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798   *) ac_try_echo=$ac_try;;
4799 esac
4800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4801 $as_echo "$ac_try_echo") >&5
4802   (eval "$ac_compile") 2>conftest.er1
4803   ac_status=$?
4804   grep -v '^ *+' conftest.er1 >conftest.err
4805   rm -f conftest.er1
4806   cat conftest.err >&5
4807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); } && {
4809          test -z "$ac_c_werror_flag" ||
4810          test ! -s conftest.err
4811        } && test -s conftest.$ac_objext; then
4812   ac_compiler_gnu=yes
4813 else
4814   $as_echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817         ac_compiler_gnu=no
4818 fi
4819
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4822
4823 fi
4824 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4825 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4826 if test $ac_compiler_gnu = yes; then
4827   GCC=yes
4828 else
4829   GCC=
4830 fi
4831 ac_test_CFLAGS=${CFLAGS+set}
4832 ac_save_CFLAGS=$CFLAGS
4833 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4834 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4835 if test "${ac_cv_prog_cc_g+set}" = set; then
4836   $as_echo_n "(cached) " >&6
4837 else
4838   ac_save_c_werror_flag=$ac_c_werror_flag
4839    ac_c_werror_flag=yes
4840    ac_cv_prog_cc_g=no
4841    CFLAGS="-g"
4842    cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848
4849 int
4850 main ()
4851 {
4852
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (ac_try="$ac_compile"
4859 case "(($ac_try" in
4860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861   *) ac_try_echo=$ac_try;;
4862 esac
4863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4864 $as_echo "$ac_try_echo") >&5
4865   (eval "$ac_compile") 2>conftest.er1
4866   ac_status=$?
4867   grep -v '^ *+' conftest.er1 >conftest.err
4868   rm -f conftest.er1
4869   cat conftest.err >&5
4870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); } && {
4872          test -z "$ac_c_werror_flag" ||
4873          test ! -s conftest.err
4874        } && test -s conftest.$ac_objext; then
4875   ac_cv_prog_cc_g=yes
4876 else
4877   $as_echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4879
4880         CFLAGS=""
4881       cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h.  */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h.  */
4887
4888 int
4889 main ()
4890 {
4891
4892   ;
4893   return 0;
4894 }
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (ac_try="$ac_compile"
4898 case "(($ac_try" in
4899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900   *) ac_try_echo=$ac_try;;
4901 esac
4902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4903 $as_echo "$ac_try_echo") >&5
4904   (eval "$ac_compile") 2>conftest.er1
4905   ac_status=$?
4906   grep -v '^ *+' conftest.er1 >conftest.err
4907   rm -f conftest.er1
4908   cat conftest.err >&5
4909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } && {
4911          test -z "$ac_c_werror_flag" ||
4912          test ! -s conftest.err
4913        } && test -s conftest.$ac_objext; then
4914   :
4915 else
4916   $as_echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919         ac_c_werror_flag=$ac_save_c_werror_flag
4920          CFLAGS="-g"
4921          cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927
4928 int
4929 main ()
4930 {
4931
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (ac_try="$ac_compile"
4938 case "(($ac_try" in
4939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940   *) ac_try_echo=$ac_try;;
4941 esac
4942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4943 $as_echo "$ac_try_echo") >&5
4944   (eval "$ac_compile") 2>conftest.er1
4945   ac_status=$?
4946   grep -v '^ *+' conftest.er1 >conftest.err
4947   rm -f conftest.er1
4948   cat conftest.err >&5
4949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); } && {
4951          test -z "$ac_c_werror_flag" ||
4952          test ! -s conftest.err
4953        } && test -s conftest.$ac_objext; then
4954   ac_cv_prog_cc_g=yes
4955 else
4956   $as_echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959
4960 fi
4961
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 fi
4964
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 fi
4967
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969    ac_c_werror_flag=$ac_save_c_werror_flag
4970 fi
4971 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4972 $as_echo "$ac_cv_prog_cc_g" >&6; }
4973 if test "$ac_test_CFLAGS" = set; then
4974   CFLAGS=$ac_save_CFLAGS
4975 elif test $ac_cv_prog_cc_g = yes; then
4976   if test "$GCC" = yes; then
4977     CFLAGS="-g -O2"
4978   else
4979     CFLAGS="-g"
4980   fi
4981 else
4982   if test "$GCC" = yes; then
4983     CFLAGS="-O2"
4984   else
4985     CFLAGS=
4986   fi
4987 fi
4988 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4989 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4990 if test "${ac_cv_prog_cc_c89+set}" = set; then
4991   $as_echo_n "(cached) " >&6
4992 else
4993   ac_cv_prog_cc_c89=no
4994 ac_save_CC=$CC
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h.  */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h.  */
5001 #include <stdarg.h>
5002 #include <stdio.h>
5003 #include <sys/types.h>
5004 #include <sys/stat.h>
5005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5006 struct buf { int x; };
5007 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5008 static char *e (p, i)
5009      char **p;
5010      int i;
5011 {
5012   return p[i];
5013 }
5014 static char *f (char * (*g) (char **, int), char **p, ...)
5015 {
5016   char *s;
5017   va_list v;
5018   va_start (v,p);
5019   s = g (p, va_arg (v,int));
5020   va_end (v);
5021   return s;
5022 }
5023
5024 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5025    function prototypes and stuff, but not '\xHH' hex character constants.
5026    These don't provoke an error unfortunately, instead are silently treated
5027    as 'x'.  The following induces an error, until -std is added to get
5028    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5029    array size at least.  It's necessary to write '\x00'==0 to get something
5030    that's true only with -std.  */
5031 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5032
5033 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5034    inside strings and character constants.  */
5035 #define FOO(x) 'x'
5036 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5037
5038 int test (int i, double x);
5039 struct s1 {int (*f) (int a);};
5040 struct s2 {int (*f) (double a);};
5041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5042 int argc;
5043 char **argv;
5044 int
5045 main ()
5046 {
5047 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5048   ;
5049   return 0;
5050 }
5051 _ACEOF
5052 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5053         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5054 do
5055   CC="$ac_save_CC $ac_arg"
5056   rm -f conftest.$ac_objext
5057 if { (ac_try="$ac_compile"
5058 case "(($ac_try" in
5059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060   *) ac_try_echo=$ac_try;;
5061 esac
5062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5063 $as_echo "$ac_try_echo") >&5
5064   (eval "$ac_compile") 2>conftest.er1
5065   ac_status=$?
5066   grep -v '^ *+' conftest.er1 >conftest.err
5067   rm -f conftest.er1
5068   cat conftest.err >&5
5069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); } && {
5071          test -z "$ac_c_werror_flag" ||
5072          test ! -s conftest.err
5073        } && test -s conftest.$ac_objext; then
5074   ac_cv_prog_cc_c89=$ac_arg
5075 else
5076   $as_echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079
5080 fi
5081
5082 rm -f core conftest.err conftest.$ac_objext
5083   test "x$ac_cv_prog_cc_c89" != "xno" && break
5084 done
5085 rm -f conftest.$ac_ext
5086 CC=$ac_save_CC
5087
5088 fi
5089 # AC_CACHE_VAL
5090 case "x$ac_cv_prog_cc_c89" in
5091   x)
5092     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5093 $as_echo "none needed" >&6; } ;;
5094   xno)
5095     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5096 $as_echo "unsupported" >&6; } ;;
5097   *)
5098     CC="$CC $ac_cv_prog_cc_c89"
5099     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5100 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5101 esac
5102
5103
5104 ac_ext=c
5105 ac_cpp='$CPP $CPPFLAGS'
5106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109
5110 depcc="$CC"   am_compiler_list=
5111
5112 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5113 $as_echo_n "checking dependency style of $depcc... " >&6; }
5114 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5115   $as_echo_n "(cached) " >&6
5116 else
5117   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5118   # We make a subdir and do the tests there.  Otherwise we can end up
5119   # making bogus files that we don't know about and never remove.  For
5120   # instance it was reported that on HP-UX the gcc test will end up
5121   # making a dummy file named `D' -- because `-MD' means `put the output
5122   # in D'.
5123   mkdir conftest.dir
5124   # Copy depcomp to subdir because otherwise we won't find it if we're
5125   # using a relative directory.
5126   cp "$am_depcomp" conftest.dir
5127   cd conftest.dir
5128   # We will build objects and dependencies in a subdirectory because
5129   # it helps to detect inapplicable dependency modes.  For instance
5130   # both Tru64's cc and ICC support -MD to output dependencies as a
5131   # side effect of compilation, but ICC will put the dependencies in
5132   # the current directory while Tru64 will put them in the object
5133   # directory.
5134   mkdir sub
5135
5136   am_cv_CC_dependencies_compiler_type=none
5137   if test "$am_compiler_list" = ""; then
5138      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5139   fi
5140   am__universal=false
5141   case " $depcc " in #(
5142      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5143      esac
5144
5145   for depmode in $am_compiler_list; do
5146     # Setup a source with many dependencies, because some compilers
5147     # like to wrap large dependency lists on column 80 (with \), and
5148     # we should not choose a depcomp mode which is confused by this.
5149     #
5150     # We need to recreate these files for each test, as the compiler may
5151     # overwrite some of them when testing with obscure command lines.
5152     # This happens at least with the AIX C compiler.
5153     : > sub/conftest.c
5154     for i in 1 2 3 4 5 6; do
5155       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5156       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5157       # Solaris 8's {/usr,}/bin/sh.
5158       touch sub/conftst$i.h
5159     done
5160     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5161
5162     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5163     # mode.  It turns out that the SunPro C++ compiler does not properly
5164     # handle `-M -o', and we need to detect this.  Also, some Intel
5165     # versions had trouble with output in subdirs
5166     am__obj=sub/conftest.${OBJEXT-o}
5167     am__minus_obj="-o $am__obj"
5168     case $depmode in
5169     gcc)
5170       # This depmode causes a compiler race in universal mode.
5171       test "$am__universal" = false || continue
5172       ;;
5173     nosideeffect)
5174       # after this tag, mechanisms are not by side-effect, so they'll
5175       # only be used when explicitly requested
5176       if test "x$enable_dependency_tracking" = xyes; then
5177         continue
5178       else
5179         break
5180       fi
5181       ;;
5182     msvisualcpp | msvcmsys)
5183       # This compiler won't grok `-c -o', but also, the minuso test has
5184       # not run yet.  These depmodes are late enough in the game, and
5185       # so weak that their functioning should not be impacted.
5186       am__obj=conftest.${OBJEXT-o}
5187       am__minus_obj=
5188       ;;
5189     none) break ;;
5190     esac
5191     if depmode=$depmode \
5192        source=sub/conftest.c object=$am__obj \
5193        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5194        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5195          >/dev/null 2>conftest.err &&
5196        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5197        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5198        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5199        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5200       # icc doesn't choke on unknown options, it will just issue warnings
5201       # or remarks (even with -Werror).  So we grep stderr for any message
5202       # that says an option was ignored or not supported.
5203       # When given -MP, icc 7.0 and 7.1 complain thusly:
5204       #   icc: Command line warning: ignoring option '-M'; no argument required
5205       # The diagnosis changed in icc 8.0:
5206       #   icc: Command line remark: option '-MP' not supported
5207       if (grep 'ignoring option' conftest.err ||
5208           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5209         am_cv_CC_dependencies_compiler_type=$depmode
5210         break
5211       fi
5212     fi
5213   done
5214
5215   cd ..
5216   rm -rf conftest.dir
5217 else
5218   am_cv_CC_dependencies_compiler_type=none
5219 fi
5220
5221 fi
5222 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5223 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5224 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5225
5226  if
5227   test "x$enable_dependency_tracking" != xno \
5228   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5229   am__fastdepCC_TRUE=
5230   am__fastdepCC_FALSE='#'
5231 else
5232   am__fastdepCC_TRUE='#'
5233   am__fastdepCC_FALSE=
5234 fi
5235
5236
5237
5238 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5239
5240 if test -n "$ac_tool_prefix"; then
5241   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if test "${ac_cv_prog_RANLIB+set}" = set; then
5246   $as_echo_n "(cached) " >&6
5247 else
5248   if test -n "$RANLIB"; then
5249   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254   IFS=$as_save_IFS
5255   test -z "$as_dir" && as_dir=.
5256   for ac_exec_ext in '' $ac_executable_extensions; do
5257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5259     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260     break 2
5261   fi
5262 done
5263 done
5264 IFS=$as_save_IFS
5265
5266 fi
5267 fi
5268 RANLIB=$ac_cv_prog_RANLIB
5269 if test -n "$RANLIB"; then
5270   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5271 $as_echo "$RANLIB" >&6; }
5272 else
5273   { $as_echo "$as_me:$LINENO: result: no" >&5
5274 $as_echo "no" >&6; }
5275 fi
5276
5277
5278 fi
5279 if test -z "$ac_cv_prog_RANLIB"; then
5280   ac_ct_RANLIB=$RANLIB
5281   # Extract the first word of "ranlib", so it can be a program name with args.
5282 set dummy ranlib; ac_word=$2
5283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5286   $as_echo_n "(cached) " >&6
5287 else
5288   if test -n "$ac_ct_RANLIB"; then
5289   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294   IFS=$as_save_IFS
5295   test -z "$as_dir" && as_dir=.
5296   for ac_exec_ext in '' $ac_executable_extensions; do
5297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298     ac_cv_prog_ac_ct_RANLIB="ranlib"
5299     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300     break 2
5301   fi
5302 done
5303 done
5304 IFS=$as_save_IFS
5305
5306 fi
5307 fi
5308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5309 if test -n "$ac_ct_RANLIB"; then
5310   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5311 $as_echo "$ac_ct_RANLIB" >&6; }
5312 else
5313   { $as_echo "$as_me:$LINENO: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317   if test "x$ac_ct_RANLIB" = x; then
5318     RANLIB=":"
5319   else
5320     case $cross_compiling:$ac_tool_warned in
5321 yes:)
5322 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5325 esac
5326     RANLIB=$ac_ct_RANLIB
5327   fi
5328 else
5329   RANLIB="$ac_cv_prog_RANLIB"
5330 fi
5331
5332 ac_ext=c
5333 ac_cpp='$CPP $CPPFLAGS'
5334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5337 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5338 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5339 # On Suns, sometimes $CPP names a directory.
5340 if test -n "$CPP" && test -d "$CPP"; then
5341   CPP=
5342 fi
5343 if test -z "$CPP"; then
5344   if test "${ac_cv_prog_CPP+set}" = set; then
5345   $as_echo_n "(cached) " >&6
5346 else
5347       # Double quotes because CPP needs to be expanded
5348     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5349     do
5350       ac_preproc_ok=false
5351 for ac_c_preproc_warn_flag in '' yes
5352 do
5353   # Use a header file that comes with gcc, so configuring glibc
5354   # with a fresh cross-compiler works.
5355   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5356   # <limits.h> exists even on freestanding compilers.
5357   # On the NeXT, cc -E runs the code through the compiler's parser,
5358   # not just through cpp. "Syntax error" is here to catch this case.
5359   cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h.  */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h.  */
5365 #ifdef __STDC__
5366 # include <limits.h>
5367 #else
5368 # include <assert.h>
5369 #endif
5370                      Syntax error
5371 _ACEOF
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 case "(($ac_try" in
5374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375   *) ac_try_echo=$ac_try;;
5376 esac
5377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5378 $as_echo "$ac_try_echo") >&5
5379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380   ac_status=$?
5381   grep -v '^ *+' conftest.er1 >conftest.err
5382   rm -f conftest.er1
5383   cat conftest.err >&5
5384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } >/dev/null && {
5386          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5387          test ! -s conftest.err
5388        }; then
5389   :
5390 else
5391   $as_echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394   # Broken: fails on valid input.
5395 continue
5396 fi
5397
5398 rm -f conftest.err conftest.$ac_ext
5399
5400   # OK, works on sane cases.  Now check whether nonexistent headers
5401   # can be detected and how.
5402   cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h.  */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h.  */
5408 #include <ac_nonexistent.h>
5409 _ACEOF
5410 if { (ac_try="$ac_cpp conftest.$ac_ext"
5411 case "(($ac_try" in
5412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413   *) ac_try_echo=$ac_try;;
5414 esac
5415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5416 $as_echo "$ac_try_echo") >&5
5417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418   ac_status=$?
5419   grep -v '^ *+' conftest.er1 >conftest.err
5420   rm -f conftest.er1
5421   cat conftest.err >&5
5422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423   (exit $ac_status); } >/dev/null && {
5424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5425          test ! -s conftest.err
5426        }; then
5427   # Broken: success on invalid input.
5428 continue
5429 else
5430   $as_echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5432
5433   # Passes both tests.
5434 ac_preproc_ok=:
5435 break
5436 fi
5437
5438 rm -f conftest.err conftest.$ac_ext
5439
5440 done
5441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5442 rm -f conftest.err conftest.$ac_ext
5443 if $ac_preproc_ok; then
5444   break
5445 fi
5446
5447     done
5448     ac_cv_prog_CPP=$CPP
5449
5450 fi
5451   CPP=$ac_cv_prog_CPP
5452 else
5453   ac_cv_prog_CPP=$CPP
5454 fi
5455 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5456 $as_echo "$CPP" >&6; }
5457 ac_preproc_ok=false
5458 for ac_c_preproc_warn_flag in '' yes
5459 do
5460   # Use a header file that comes with gcc, so configuring glibc
5461   # with a fresh cross-compiler works.
5462   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5463   # <limits.h> exists even on freestanding compilers.
5464   # On the NeXT, cc -E runs the code through the compiler's parser,
5465   # not just through cpp. "Syntax error" is here to catch this case.
5466   cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h.  */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h.  */
5472 #ifdef __STDC__
5473 # include <limits.h>
5474 #else
5475 # include <assert.h>
5476 #endif
5477                      Syntax error
5478 _ACEOF
5479 if { (ac_try="$ac_cpp conftest.$ac_ext"
5480 case "(($ac_try" in
5481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482   *) ac_try_echo=$ac_try;;
5483 esac
5484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485 $as_echo "$ac_try_echo") >&5
5486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5487   ac_status=$?
5488   grep -v '^ *+' conftest.er1 >conftest.err
5489   rm -f conftest.er1
5490   cat conftest.err >&5
5491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); } >/dev/null && {
5493          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5494          test ! -s conftest.err
5495        }; then
5496   :
5497 else
5498   $as_echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501   # Broken: fails on valid input.
5502 continue
5503 fi
5504
5505 rm -f conftest.err conftest.$ac_ext
5506
5507   # OK, works on sane cases.  Now check whether nonexistent headers
5508   # can be detected and how.
5509   cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h.  */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h.  */
5515 #include <ac_nonexistent.h>
5516 _ACEOF
5517 if { (ac_try="$ac_cpp conftest.$ac_ext"
5518 case "(($ac_try" in
5519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520   *) ac_try_echo=$ac_try;;
5521 esac
5522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5523 $as_echo "$ac_try_echo") >&5
5524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5525   ac_status=$?
5526   grep -v '^ *+' conftest.er1 >conftest.err
5527   rm -f conftest.er1
5528   cat conftest.err >&5
5529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } >/dev/null && {
5531          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5532          test ! -s conftest.err
5533        }; then
5534   # Broken: success on invalid input.
5535 continue
5536 else
5537   $as_echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540   # Passes both tests.
5541 ac_preproc_ok=:
5542 break
5543 fi
5544
5545 rm -f conftest.err conftest.$ac_ext
5546
5547 done
5548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5549 rm -f conftest.err conftest.$ac_ext
5550 if $ac_preproc_ok; then
5551   :
5552 else
5553   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5555 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." >&5
5557 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5558 See \`config.log' for more details." >&2;}
5559    { (exit 1); exit 1; }; }; }
5560 fi
5561
5562 ac_ext=c
5563 ac_cpp='$CPP $CPPFLAGS'
5564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567
5568
5569 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5570 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5571 if test "${ac_cv_path_GREP+set}" = set; then
5572   $as_echo_n "(cached) " >&6
5573 else
5574   if test -z "$GREP"; then
5575   ac_path_GREP_found=false
5576   # Loop through the user's path and test for each of PROGNAME-LIST
5577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582   for ac_prog in grep ggrep; do
5583     for ac_exec_ext in '' $ac_executable_extensions; do
5584       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5585       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5586 # Check for GNU ac_path_GREP and select it if it is found.
5587   # Check for GNU $ac_path_GREP
5588 case `"$ac_path_GREP" --version 2>&1` in
5589 *GNU*)
5590   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5591 *)
5592   ac_count=0
5593   $as_echo_n 0123456789 >"conftest.in"
5594   while :
5595   do
5596     cat "conftest.in" "conftest.in" >"conftest.tmp"
5597     mv "conftest.tmp" "conftest.in"
5598     cp "conftest.in" "conftest.nl"
5599     $as_echo 'GREP' >> "conftest.nl"
5600     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5601     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5602     ac_count=`expr $ac_count + 1`
5603     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5604       # Best one so far, save it but keep looking for a better one
5605       ac_cv_path_GREP="$ac_path_GREP"
5606       ac_path_GREP_max=$ac_count
5607     fi
5608     # 10*(2^10) chars as input seems more than enough
5609     test $ac_count -gt 10 && break
5610   done
5611   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5612 esac
5613
5614       $ac_path_GREP_found && break 3
5615     done
5616   done
5617 done
5618 IFS=$as_save_IFS
5619   if test -z "$ac_cv_path_GREP"; then
5620     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5621 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5622    { (exit 1); exit 1; }; }
5623   fi
5624 else
5625   ac_cv_path_GREP=$GREP
5626 fi
5627
5628 fi
5629 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5630 $as_echo "$ac_cv_path_GREP" >&6; }
5631  GREP="$ac_cv_path_GREP"
5632
5633
5634 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5635 $as_echo_n "checking for egrep... " >&6; }
5636 if test "${ac_cv_path_EGREP+set}" = set; then
5637   $as_echo_n "(cached) " >&6
5638 else
5639   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5640    then ac_cv_path_EGREP="$GREP -E"
5641    else
5642      if test -z "$EGREP"; then
5643   ac_path_EGREP_found=false
5644   # Loop through the user's path and test for each of PROGNAME-LIST
5645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5647 do
5648   IFS=$as_save_IFS
5649   test -z "$as_dir" && as_dir=.
5650   for ac_prog in egrep; do
5651     for ac_exec_ext in '' $ac_executable_extensions; do
5652       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5653       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5654 # Check for GNU ac_path_EGREP and select it if it is found.
5655   # Check for GNU $ac_path_EGREP
5656 case `"$ac_path_EGREP" --version 2>&1` in
5657 *GNU*)
5658   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5659 *)
5660   ac_count=0
5661   $as_echo_n 0123456789 >"conftest.in"
5662   while :
5663   do
5664     cat "conftest.in" "conftest.in" >"conftest.tmp"
5665     mv "conftest.tmp" "conftest.in"
5666     cp "conftest.in" "conftest.nl"
5667     $as_echo 'EGREP' >> "conftest.nl"
5668     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5669     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5670     ac_count=`expr $ac_count + 1`
5671     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5672       # Best one so far, save it but keep looking for a better one
5673       ac_cv_path_EGREP="$ac_path_EGREP"
5674       ac_path_EGREP_max=$ac_count
5675     fi
5676     # 10*(2^10) chars as input seems more than enough
5677     test $ac_count -gt 10 && break
5678   done
5679   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5680 esac
5681
5682       $ac_path_EGREP_found && break 3
5683     done
5684   done
5685 done
5686 IFS=$as_save_IFS
5687   if test -z "$ac_cv_path_EGREP"; then
5688     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5689 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5690    { (exit 1); exit 1; }; }
5691   fi
5692 else
5693   ac_cv_path_EGREP=$EGREP
5694 fi
5695
5696    fi
5697 fi
5698 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5699 $as_echo "$ac_cv_path_EGREP" >&6; }
5700  EGREP="$ac_cv_path_EGREP"
5701
5702
5703 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5704 $as_echo_n "checking for ANSI C header files... " >&6; }
5705 if test "${ac_cv_header_stdc+set}" = set; then
5706   $as_echo_n "(cached) " >&6
5707 else
5708   cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h.  */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h.  */
5714 #include <stdlib.h>
5715 #include <stdarg.h>
5716 #include <string.h>
5717 #include <float.h>
5718
5719 int
5720 main ()
5721 {
5722
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (ac_try="$ac_compile"
5729 case "(($ac_try" in
5730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731   *) ac_try_echo=$ac_try;;
5732 esac
5733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5734 $as_echo "$ac_try_echo") >&5
5735   (eval "$ac_compile") 2>conftest.er1
5736   ac_status=$?
5737   grep -v '^ *+' conftest.er1 >conftest.err
5738   rm -f conftest.er1
5739   cat conftest.err >&5
5740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); } && {
5742          test -z "$ac_c_werror_flag" ||
5743          test ! -s conftest.err
5744        } && test -s conftest.$ac_objext; then
5745   ac_cv_header_stdc=yes
5746 else
5747   $as_echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750         ac_cv_header_stdc=no
5751 fi
5752
5753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754
5755 if test $ac_cv_header_stdc = yes; then
5756   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5757   cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 #include <string.h>
5764
5765 _ACEOF
5766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5767   $EGREP "memchr" >/dev/null 2>&1; then
5768   :
5769 else
5770   ac_cv_header_stdc=no
5771 fi
5772 rm -f conftest*
5773
5774 fi
5775
5776 if test $ac_cv_header_stdc = yes; then
5777   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5778   cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h.  */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h.  */
5784 #include <stdlib.h>
5785
5786 _ACEOF
5787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5788   $EGREP "free" >/dev/null 2>&1; then
5789   :
5790 else
5791   ac_cv_header_stdc=no
5792 fi
5793 rm -f conftest*
5794
5795 fi
5796
5797 if test $ac_cv_header_stdc = yes; then
5798   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5799   if test "$cross_compiling" = yes; then
5800   :
5801 else
5802   cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h.  */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h.  */
5808 #include <ctype.h>
5809 #include <stdlib.h>
5810 #if ((' ' & 0x0FF) == 0x020)
5811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5813 #else
5814 # define ISLOWER(c) \
5815                    (('a' <= (c) && (c) <= 'i') \
5816                      || ('j' <= (c) && (c) <= 'r') \
5817                      || ('s' <= (c) && (c) <= 'z'))
5818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5819 #endif
5820
5821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5822 int
5823 main ()
5824 {
5825   int i;
5826   for (i = 0; i < 256; i++)
5827     if (XOR (islower (i), ISLOWER (i))
5828         || toupper (i) != TOUPPER (i))
5829       return 2;
5830   return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest$ac_exeext
5834 if { (ac_try="$ac_link"
5835 case "(($ac_try" in
5836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837   *) ac_try_echo=$ac_try;;
5838 esac
5839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5840 $as_echo "$ac_try_echo") >&5
5841   (eval "$ac_link") 2>&5
5842   ac_status=$?
5843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5845   { (case "(($ac_try" in
5846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847   *) ac_try_echo=$ac_try;;
5848 esac
5849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5850 $as_echo "$ac_try_echo") >&5
5851   (eval "$ac_try") 2>&5
5852   ac_status=$?
5853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); }; }; then
5855   :
5856 else
5857   $as_echo "$as_me: program exited with status $ac_status" >&5
5858 $as_echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861 ( exit $ac_status )
5862 ac_cv_header_stdc=no
5863 fi
5864 rm -rf conftest.dSYM
5865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5866 fi
5867
5868
5869 fi
5870 fi
5871 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5872 $as_echo "$ac_cv_header_stdc" >&6; }
5873 if test $ac_cv_header_stdc = yes; then
5874
5875 cat >>confdefs.h <<\_ACEOF
5876 #define STDC_HEADERS 1
5877 _ACEOF
5878
5879 fi
5880
5881
5882 pkg_modules="gtk+-2.0 >= 2.10.0 libgnomecanvas-2.0 >= 2.4.0 poppler-glib >= 0.5.4 pangoft2 >= 1.0"
5883
5884
5885 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5886         if test -n "$ac_tool_prefix"; then
5887   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5892   $as_echo_n "(cached) " >&6
5893 else
5894   case $PKG_CONFIG in
5895   [\\/]* | ?:[\\/]*)
5896   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5897   ;;
5898   *)
5899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904   for ac_exec_ext in '' $ac_executable_extensions; do
5905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5907     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914   ;;
5915 esac
5916 fi
5917 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5918 if test -n "$PKG_CONFIG"; then
5919   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5920 $as_echo "$PKG_CONFIG" >&6; }
5921 else
5922   { $as_echo "$as_me:$LINENO: result: no" >&5
5923 $as_echo "no" >&6; }
5924 fi
5925
5926
5927 fi
5928 if test -z "$ac_cv_path_PKG_CONFIG"; then
5929   ac_pt_PKG_CONFIG=$PKG_CONFIG
5930   # Extract the first word of "pkg-config", so it can be a program name with args.
5931 set dummy pkg-config; ac_word=$2
5932 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5935   $as_echo_n "(cached) " >&6
5936 else
5937   case $ac_pt_PKG_CONFIG in
5938   [\\/]* | ?:[\\/]*)
5939   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5940   ;;
5941   *)
5942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945   IFS=$as_save_IFS
5946   test -z "$as_dir" && as_dir=.
5947   for ac_exec_ext in '' $ac_executable_extensions; do
5948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5950     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951     break 2
5952   fi
5953 done
5954 done
5955 IFS=$as_save_IFS
5956
5957   ;;
5958 esac
5959 fi
5960 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5961 if test -n "$ac_pt_PKG_CONFIG"; then
5962   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5963 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5964 else
5965   { $as_echo "$as_me:$LINENO: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969   if test "x$ac_pt_PKG_CONFIG" = x; then
5970     PKG_CONFIG=""
5971   else
5972     case $cross_compiling:$ac_tool_warned in
5973 yes:)
5974 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5976 ac_tool_warned=yes ;;
5977 esac
5978     PKG_CONFIG=$ac_pt_PKG_CONFIG
5979   fi
5980 else
5981   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5982 fi
5983
5984 fi
5985 if test -n "$PKG_CONFIG"; then
5986         _pkg_min_version=0.9.0
5987         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5988 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5989         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5990                 { $as_echo "$as_me:$LINENO: result: yes" >&5
5991 $as_echo "yes" >&6; }
5992         else
5993                 { $as_echo "$as_me:$LINENO: result: no" >&5
5994 $as_echo "no" >&6; }
5995                 PKG_CONFIG=""
5996         fi
5997
5998 fi
5999
6000 pkg_failed=no
6001 { $as_echo "$as_me:$LINENO: checking for PACKAGE" >&5
6002 $as_echo_n "checking for PACKAGE... " >&6; }
6003
6004 if test -n "$PACKAGE_CFLAGS"; then
6005     pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
6006  elif test -n "$PKG_CONFIG"; then
6007     if test -n "$PKG_CONFIG" && \
6008     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
6009   ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
6010   ac_status=$?
6011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; then
6013   pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
6014 else
6015   pkg_failed=yes
6016 fi
6017  else
6018     pkg_failed=untried
6019 fi
6020 if test -n "$PACKAGE_LIBS"; then
6021     pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
6022  elif test -n "$PKG_CONFIG"; then
6023     if test -n "$PKG_CONFIG" && \
6024     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
6025   ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
6026   ac_status=$?
6027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; then
6029   pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
6030 else
6031   pkg_failed=yes
6032 fi
6033  else
6034     pkg_failed=untried
6035 fi
6036
6037
6038
6039 if test $pkg_failed = yes; then
6040
6041 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6042         _pkg_short_errors_supported=yes
6043 else
6044         _pkg_short_errors_supported=no
6045 fi
6046         if test $_pkg_short_errors_supported = yes; then
6047                 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pkg_modules" 2>&1`
6048         else
6049                 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pkg_modules" 2>&1`
6050         fi
6051         # Put the nasty error message in config.log where it belongs
6052         echo "$PACKAGE_PKG_ERRORS" >&5
6053
6054         { { $as_echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met:
6055
6056 $PACKAGE_PKG_ERRORS
6057
6058 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6059 installed software in a non-standard prefix.
6060
6061 Alternatively, you may set the environment variables PACKAGE_CFLAGS
6062 and PACKAGE_LIBS to avoid the need to call pkg-config.
6063 See the pkg-config man page for more details.
6064 " >&5
6065 $as_echo "$as_me: error: Package requirements ($pkg_modules) were not met:
6066
6067 $PACKAGE_PKG_ERRORS
6068
6069 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6070 installed software in a non-standard prefix.
6071
6072 Alternatively, you may set the environment variables PACKAGE_CFLAGS
6073 and PACKAGE_LIBS to avoid the need to call pkg-config.
6074 See the pkg-config man page for more details.
6075 " >&2;}
6076    { (exit 1); exit 1; }; }
6077 elif test $pkg_failed = untried; then
6078         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6080 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
6081 is in your PATH or set the PKG_CONFIG environment variable to the full
6082 path to pkg-config.
6083
6084 Alternatively, you may set the environment variables PACKAGE_CFLAGS
6085 and PACKAGE_LIBS to avoid the need to call pkg-config.
6086 See the pkg-config man page for more details.
6087
6088 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6089 See \`config.log' for more details." >&5
6090 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
6091 is in your PATH or set the PKG_CONFIG environment variable to the full
6092 path to pkg-config.
6093
6094 Alternatively, you may set the environment variables PACKAGE_CFLAGS
6095 and PACKAGE_LIBS to avoid the need to call pkg-config.
6096 See the pkg-config man page for more details.
6097
6098 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6099 See \`config.log' for more details." >&2;}
6100    { (exit 1); exit 1; }; }; }
6101 else
6102         PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
6103         PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
6104         { $as_echo "$as_me:$LINENO: result: yes" >&5
6105 $as_echo "yes" >&6; }
6106         :
6107 fi
6108
6109
6110
6111 # Make sure we can run config.sub.
6112 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6113   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6114 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6115    { (exit 1); exit 1; }; }
6116
6117 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6118 $as_echo_n "checking build system type... " >&6; }
6119 if test "${ac_cv_build+set}" = set; then
6120   $as_echo_n "(cached) " >&6
6121 else
6122   ac_build_alias=$build_alias
6123 test "x$ac_build_alias" = x &&
6124   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6125 test "x$ac_build_alias" = x &&
6126   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6127 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6128    { (exit 1); exit 1; }; }
6129 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6130   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6131 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6132    { (exit 1); exit 1; }; }
6133
6134 fi
6135 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6136 $as_echo "$ac_cv_build" >&6; }
6137 case $ac_cv_build in
6138 *-*-*) ;;
6139 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6140 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6141    { (exit 1); exit 1; }; };;
6142 esac
6143 build=$ac_cv_build
6144 ac_save_IFS=$IFS; IFS='-'
6145 set x $ac_cv_build
6146 shift
6147 build_cpu=$1
6148 build_vendor=$2
6149 shift; shift
6150 # Remember, the first character of IFS is used to create $*,
6151 # except with old shells:
6152 build_os=$*
6153 IFS=$ac_save_IFS
6154 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6155
6156
6157 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6158 $as_echo_n "checking host system type... " >&6; }
6159 if test "${ac_cv_host+set}" = set; then
6160   $as_echo_n "(cached) " >&6
6161 else
6162   if test "x$host_alias" = x; then
6163   ac_cv_host=$ac_cv_build
6164 else
6165   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6166     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6167 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6168    { (exit 1); exit 1; }; }
6169 fi
6170
6171 fi
6172 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6173 $as_echo "$ac_cv_host" >&6; }
6174 case $ac_cv_host in
6175 *-*-*) ;;
6176 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6177 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6178    { (exit 1); exit 1; }; };;
6179 esac
6180 host=$ac_cv_host
6181 ac_save_IFS=$IFS; IFS='-'
6182 set x $ac_cv_host
6183 shift
6184 host_cpu=$1
6185 host_vendor=$2
6186 shift; shift
6187 # Remember, the first character of IFS is used to create $*,
6188 # except with old shells:
6189 host_os=$*
6190 IFS=$ac_save_IFS
6191 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6192
6193
6194 { $as_echo "$as_me:$LINENO: checking for Win32 environment" >&5
6195 $as_echo_n "checking for Win32 environment... " >&6; }
6196 case "$host" in
6197  *-*-mingw*)
6198    os_win32=yes;;
6199  *)
6200    os_win32=no;;
6201 esac
6202 { $as_echo "$as_me:$LINENO: result: $os_win32" >&5
6203 $as_echo "$os_win32" >&6; }
6204  if test "$os_win32" = "yes"; then
6205   WIN32_TRUE=
6206   WIN32_FALSE='#'
6207 else
6208   WIN32_TRUE='#'
6209   WIN32_FALSE=
6210 fi
6211
6212
6213 GETTEXT_PACKAGE=xournal
6214
6215
6216 cat >>confdefs.h <<_ACEOF
6217 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6218 _ACEOF
6219
6220
6221 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
6222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6233                   inttypes.h stdint.h unistd.h
6234 do
6235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6237 $as_echo_n "checking for $ac_header... " >&6; }
6238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6239   $as_echo_n "(cached) " >&6
6240 else
6241   cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h.  */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h.  */
6247 $ac_includes_default
6248
6249 #include <$ac_header>
6250 _ACEOF
6251 rm -f conftest.$ac_objext
6252 if { (ac_try="$ac_compile"
6253 case "(($ac_try" in
6254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255   *) ac_try_echo=$ac_try;;
6256 esac
6257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6258 $as_echo "$ac_try_echo") >&5
6259   (eval "$ac_compile") 2>conftest.er1
6260   ac_status=$?
6261   grep -v '^ *+' conftest.er1 >conftest.err
6262   rm -f conftest.er1
6263   cat conftest.err >&5
6264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); } && {
6266          test -z "$ac_c_werror_flag" ||
6267          test ! -s conftest.err
6268        } && test -s conftest.$ac_objext; then
6269   eval "$as_ac_Header=yes"
6270 else
6271   $as_echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274         eval "$as_ac_Header=no"
6275 fi
6276
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 fi
6279 ac_res=`eval 'as_val=${'$as_ac_Header'}
6280                  $as_echo "$as_val"'`
6281                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6282 $as_echo "$ac_res" >&6; }
6283 as_val=`eval 'as_val=${'$as_ac_Header'}
6284                  $as_echo "$as_val"'`
6285    if test "x$as_val" = x""yes; then
6286   cat >>confdefs.h <<_ACEOF
6287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6288 _ACEOF
6289
6290 fi
6291
6292 done
6293
6294
6295
6296
6297 for ac_header in locale.h
6298 do
6299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6301   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6302 $as_echo_n "checking for $ac_header... " >&6; }
6303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6304   $as_echo_n "(cached) " >&6
6305 fi
6306 ac_res=`eval 'as_val=${'$as_ac_Header'}
6307                  $as_echo "$as_val"'`
6308                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6309 $as_echo "$ac_res" >&6; }
6310 else
6311   # Is the header compilable?
6312 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6313 $as_echo_n "checking $ac_header usability... " >&6; }
6314 cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h.  */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h.  */
6320 $ac_includes_default
6321 #include <$ac_header>
6322 _ACEOF
6323 rm -f conftest.$ac_objext
6324 if { (ac_try="$ac_compile"
6325 case "(($ac_try" in
6326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327   *) ac_try_echo=$ac_try;;
6328 esac
6329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6330 $as_echo "$ac_try_echo") >&5
6331   (eval "$ac_compile") 2>conftest.er1
6332   ac_status=$?
6333   grep -v '^ *+' conftest.er1 >conftest.err
6334   rm -f conftest.er1
6335   cat conftest.err >&5
6336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); } && {
6338          test -z "$ac_c_werror_flag" ||
6339          test ! -s conftest.err
6340        } && test -s conftest.$ac_objext; then
6341   ac_header_compiler=yes
6342 else
6343   $as_echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346         ac_header_compiler=no
6347 fi
6348
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6351 $as_echo "$ac_header_compiler" >&6; }
6352
6353 # Is the header present?
6354 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6355 $as_echo_n "checking $ac_header presence... " >&6; }
6356 cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h.  */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h.  */
6362 #include <$ac_header>
6363 _ACEOF
6364 if { (ac_try="$ac_cpp conftest.$ac_ext"
6365 case "(($ac_try" in
6366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367   *) ac_try_echo=$ac_try;;
6368 esac
6369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6370 $as_echo "$ac_try_echo") >&5
6371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6372   ac_status=$?
6373   grep -v '^ *+' conftest.er1 >conftest.err
6374   rm -f conftest.er1
6375   cat conftest.err >&5
6376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } >/dev/null && {
6378          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6379          test ! -s conftest.err
6380        }; then
6381   ac_header_preproc=yes
6382 else
6383   $as_echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386   ac_header_preproc=no
6387 fi
6388
6389 rm -f conftest.err conftest.$ac_ext
6390 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6391 $as_echo "$ac_header_preproc" >&6; }
6392
6393 # So?  What about this header?
6394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6395   yes:no: )
6396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6397 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6398     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6399 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6400     ac_header_preproc=yes
6401     ;;
6402   no:yes:* )
6403     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6404 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6405     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6406 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6407     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6408 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6409     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6410 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6411     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6412 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6413     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6414 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6415
6416     ;;
6417 esac
6418 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6419 $as_echo_n "checking for $ac_header... " >&6; }
6420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6421   $as_echo_n "(cached) " >&6
6422 else
6423   eval "$as_ac_Header=\$ac_header_preproc"
6424 fi
6425 ac_res=`eval 'as_val=${'$as_ac_Header'}
6426                  $as_echo "$as_val"'`
6427                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6428 $as_echo "$ac_res" >&6; }
6429
6430 fi
6431 as_val=`eval 'as_val=${'$as_ac_Header'}
6432                  $as_echo "$as_val"'`
6433    if test "x$as_val" = x""yes; then
6434   cat >>confdefs.h <<_ACEOF
6435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6436 _ACEOF
6437
6438 fi
6439
6440 done
6441
6442     if test $ac_cv_header_locale_h = yes; then
6443     { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6444 $as_echo_n "checking for LC_MESSAGES... " >&6; }
6445 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6446   $as_echo_n "(cached) " >&6
6447 else
6448   cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h.  */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h.  */
6454 #include <locale.h>
6455 int
6456 main ()
6457 {
6458 return LC_MESSAGES
6459   ;
6460   return 0;
6461 }
6462 _ACEOF
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (ac_try="$ac_link"
6465 case "(($ac_try" in
6466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467   *) ac_try_echo=$ac_try;;
6468 esac
6469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6470 $as_echo "$ac_try_echo") >&5
6471   (eval "$ac_link") 2>conftest.er1
6472   ac_status=$?
6473   grep -v '^ *+' conftest.er1 >conftest.err
6474   rm -f conftest.er1
6475   cat conftest.err >&5
6476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); } && {
6478          test -z "$ac_c_werror_flag" ||
6479          test ! -s conftest.err
6480        } && test -s conftest$ac_exeext && {
6481          test "$cross_compiling" = yes ||
6482          $as_test_x conftest$ac_exeext
6483        }; then
6484   am_cv_val_LC_MESSAGES=yes
6485 else
6486   $as_echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6488
6489         am_cv_val_LC_MESSAGES=no
6490 fi
6491
6492 rm -rf conftest.dSYM
6493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6494       conftest$ac_exeext conftest.$ac_ext
6495 fi
6496 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6497 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
6498     if test $am_cv_val_LC_MESSAGES = yes; then
6499
6500 cat >>confdefs.h <<\_ACEOF
6501 #define HAVE_LC_MESSAGES 1
6502 _ACEOF
6503
6504     fi
6505   fi
6506      USE_NLS=yes
6507
6508
6509     gt_cv_have_gettext=no
6510
6511     CATOBJEXT=NONE
6512     XGETTEXT=:
6513     INTLLIBS=
6514
6515     if test "${ac_cv_header_libintl_h+set}" = set; then
6516   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
6517 $as_echo_n "checking for libintl.h... " >&6; }
6518 if test "${ac_cv_header_libintl_h+set}" = set; then
6519   $as_echo_n "(cached) " >&6
6520 fi
6521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6522 $as_echo "$ac_cv_header_libintl_h" >&6; }
6523 else
6524   # Is the header compilable?
6525 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
6526 $as_echo_n "checking libintl.h usability... " >&6; }
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h.  */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h.  */
6533 $ac_includes_default
6534 #include <libintl.h>
6535 _ACEOF
6536 rm -f conftest.$ac_objext
6537 if { (ac_try="$ac_compile"
6538 case "(($ac_try" in
6539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540   *) ac_try_echo=$ac_try;;
6541 esac
6542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6543 $as_echo "$ac_try_echo") >&5
6544   (eval "$ac_compile") 2>conftest.er1
6545   ac_status=$?
6546   grep -v '^ *+' conftest.er1 >conftest.err
6547   rm -f conftest.er1
6548   cat conftest.err >&5
6549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } && {
6551          test -z "$ac_c_werror_flag" ||
6552          test ! -s conftest.err
6553        } && test -s conftest.$ac_objext; then
6554   ac_header_compiler=yes
6555 else
6556   $as_echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559         ac_header_compiler=no
6560 fi
6561
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6564 $as_echo "$ac_header_compiler" >&6; }
6565
6566 # Is the header present?
6567 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
6568 $as_echo_n "checking libintl.h presence... " >&6; }
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h.  */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h.  */
6575 #include <libintl.h>
6576 _ACEOF
6577 if { (ac_try="$ac_cpp conftest.$ac_ext"
6578 case "(($ac_try" in
6579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580   *) ac_try_echo=$ac_try;;
6581 esac
6582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6583 $as_echo "$ac_try_echo") >&5
6584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6585   ac_status=$?
6586   grep -v '^ *+' conftest.er1 >conftest.err
6587   rm -f conftest.er1
6588   cat conftest.err >&5
6589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } >/dev/null && {
6591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6592          test ! -s conftest.err
6593        }; then
6594   ac_header_preproc=yes
6595 else
6596   $as_echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599   ac_header_preproc=no
6600 fi
6601
6602 rm -f conftest.err conftest.$ac_ext
6603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6604 $as_echo "$ac_header_preproc" >&6; }
6605
6606 # So?  What about this header?
6607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6608   yes:no: )
6609     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6610 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6611     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6612 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6613     ac_header_preproc=yes
6614     ;;
6615   no:yes:* )
6616     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6617 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6618     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
6619 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
6620     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6621 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6622     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
6623 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6624     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6625 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6626     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6627 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6628
6629     ;;
6630 esac
6631 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
6632 $as_echo_n "checking for libintl.h... " >&6; }
6633 if test "${ac_cv_header_libintl_h+set}" = set; then
6634   $as_echo_n "(cached) " >&6
6635 else
6636   ac_cv_header_libintl_h=$ac_header_preproc
6637 fi
6638 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6639 $as_echo "$ac_cv_header_libintl_h" >&6; }
6640
6641 fi
6642 if test "x$ac_cv_header_libintl_h" = x""yes; then
6643   gt_cv_func_dgettext_libintl="no"
6644       libintl_extra_libs=""
6645
6646       #
6647       # First check in libc
6648       #
6649       { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6650 $as_echo_n "checking for ngettext in libc... " >&6; }
6651 if test "${gt_cv_func_ngettext_libc+set}" = set; then
6652   $as_echo_n "(cached) " >&6
6653 else
6654   cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h.  */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h.  */
6660
6661 #include <libintl.h>
6662
6663 int
6664 main ()
6665 {
6666 return !ngettext ("","", 1)
6667   ;
6668   return 0;
6669 }
6670 _ACEOF
6671 rm -f conftest.$ac_objext conftest$ac_exeext
6672 if { (ac_try="$ac_link"
6673 case "(($ac_try" in
6674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675   *) ac_try_echo=$ac_try;;
6676 esac
6677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6678 $as_echo "$ac_try_echo") >&5
6679   (eval "$ac_link") 2>conftest.er1
6680   ac_status=$?
6681   grep -v '^ *+' conftest.er1 >conftest.err
6682   rm -f conftest.er1
6683   cat conftest.err >&5
6684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); } && {
6686          test -z "$ac_c_werror_flag" ||
6687          test ! -s conftest.err
6688        } && test -s conftest$ac_exeext && {
6689          test "$cross_compiling" = yes ||
6690          $as_test_x conftest$ac_exeext
6691        }; then
6692   gt_cv_func_ngettext_libc=yes
6693 else
6694   $as_echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6696
6697         gt_cv_func_ngettext_libc=no
6698 fi
6699
6700 rm -rf conftest.dSYM
6701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6702       conftest$ac_exeext conftest.$ac_ext
6703
6704 fi
6705 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6706 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
6707
6708       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6709               { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6710 $as_echo_n "checking for dgettext in libc... " >&6; }
6711 if test "${gt_cv_func_dgettext_libc+set}" = set; then
6712   $as_echo_n "(cached) " >&6
6713 else
6714   cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h.  */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h.  */
6720
6721 #include <libintl.h>
6722
6723 int
6724 main ()
6725 {
6726 return !dgettext ("","")
6727   ;
6728   return 0;
6729 }
6730 _ACEOF
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (ac_try="$ac_link"
6733 case "(($ac_try" in
6734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735   *) ac_try_echo=$ac_try;;
6736 esac
6737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6738 $as_echo "$ac_try_echo") >&5
6739   (eval "$ac_link") 2>conftest.er1
6740   ac_status=$?
6741   grep -v '^ *+' conftest.er1 >conftest.err
6742   rm -f conftest.er1
6743   cat conftest.err >&5
6744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); } && {
6746          test -z "$ac_c_werror_flag" ||
6747          test ! -s conftest.err
6748        } && test -s conftest$ac_exeext && {
6749          test "$cross_compiling" = yes ||
6750          $as_test_x conftest$ac_exeext
6751        }; then
6752   gt_cv_func_dgettext_libc=yes
6753 else
6754   $as_echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6756
6757         gt_cv_func_dgettext_libc=no
6758 fi
6759
6760 rm -rf conftest.dSYM
6761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6762       conftest$ac_exeext conftest.$ac_ext
6763
6764 fi
6765 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6766 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
6767       fi
6768
6769       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6770
6771 for ac_func in bind_textdomain_codeset
6772 do
6773 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6774 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6775 $as_echo_n "checking for $ac_func... " >&6; }
6776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6777   $as_echo_n "(cached) " >&6
6778 else
6779   cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h.  */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h.  */
6785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6787 #define $ac_func innocuous_$ac_func
6788
6789 /* System header to define __stub macros and hopefully few prototypes,
6790     which can conflict with char $ac_func (); below.
6791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6792     <limits.h> exists even on freestanding compilers.  */
6793
6794 #ifdef __STDC__
6795 # include <limits.h>
6796 #else
6797 # include <assert.h>
6798 #endif
6799
6800 #undef $ac_func
6801
6802 /* Override any GCC internal prototype to avoid an error.
6803    Use char because int might match the return type of a GCC
6804    builtin and then its argument prototype would still apply.  */
6805 #ifdef __cplusplus
6806 extern "C"
6807 #endif
6808 char $ac_func ();
6809 /* The GNU C library defines this for functions which it implements
6810     to always fail with ENOSYS.  Some functions are actually named
6811     something starting with __ and the normal name is an alias.  */
6812 #if defined __stub_$ac_func || defined __stub___$ac_func
6813 choke me
6814 #endif
6815
6816 int
6817 main ()
6818 {
6819 return $ac_func ();
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (ac_try="$ac_link"
6826 case "(($ac_try" in
6827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828   *) ac_try_echo=$ac_try;;
6829 esac
6830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6831 $as_echo "$ac_try_echo") >&5
6832   (eval "$ac_link") 2>conftest.er1
6833   ac_status=$?
6834   grep -v '^ *+' conftest.er1 >conftest.err
6835   rm -f conftest.er1
6836   cat conftest.err >&5
6837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); } && {
6839          test -z "$ac_c_werror_flag" ||
6840          test ! -s conftest.err
6841        } && test -s conftest$ac_exeext && {
6842          test "$cross_compiling" = yes ||
6843          $as_test_x conftest$ac_exeext
6844        }; then
6845   eval "$as_ac_var=yes"
6846 else
6847   $as_echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850         eval "$as_ac_var=no"
6851 fi
6852
6853 rm -rf conftest.dSYM
6854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6855       conftest$ac_exeext conftest.$ac_ext
6856 fi
6857 ac_res=`eval 'as_val=${'$as_ac_var'}
6858                  $as_echo "$as_val"'`
6859                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6860 $as_echo "$ac_res" >&6; }
6861 as_val=`eval 'as_val=${'$as_ac_var'}
6862                  $as_echo "$as_val"'`
6863    if test "x$as_val" = x""yes; then
6864   cat >>confdefs.h <<_ACEOF
6865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6866 _ACEOF
6867
6868 fi
6869 done
6870
6871       fi
6872
6873       #
6874       # If we don't have everything we want, check in libintl
6875       #
6876       if test "$gt_cv_func_dgettext_libc" != "yes" \
6877          || test "$gt_cv_func_ngettext_libc" != "yes" \
6878          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6879
6880         { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6881 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
6882 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6883   $as_echo_n "(cached) " >&6
6884 else
6885   ac_check_lib_save_LIBS=$LIBS
6886 LIBS="-lintl  $LIBS"
6887 cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893
6894 /* Override any GCC internal prototype to avoid an error.
6895    Use char because int might match the return type of a GCC
6896    builtin and then its argument prototype would still apply.  */
6897 #ifdef __cplusplus
6898 extern "C"
6899 #endif
6900 char bindtextdomain ();
6901 int
6902 main ()
6903 {
6904 return bindtextdomain ();
6905   ;
6906   return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6911 case "(($ac_try" in
6912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913   *) ac_try_echo=$ac_try;;
6914 esac
6915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6916 $as_echo "$ac_try_echo") >&5
6917   (eval "$ac_link") 2>conftest.er1
6918   ac_status=$?
6919   grep -v '^ *+' conftest.er1 >conftest.err
6920   rm -f conftest.er1
6921   cat conftest.err >&5
6922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); } && {
6924          test -z "$ac_c_werror_flag" ||
6925          test ! -s conftest.err
6926        } && test -s conftest$ac_exeext && {
6927          test "$cross_compiling" = yes ||
6928          $as_test_x conftest$ac_exeext
6929        }; then
6930   ac_cv_lib_intl_bindtextdomain=yes
6931 else
6932   $as_echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935         ac_cv_lib_intl_bindtextdomain=no
6936 fi
6937
6938 rm -rf conftest.dSYM
6939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6940       conftest$ac_exeext conftest.$ac_ext
6941 LIBS=$ac_check_lib_save_LIBS
6942 fi
6943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6944 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
6945 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
6946   { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6947 $as_echo_n "checking for ngettext in -lintl... " >&6; }
6948 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6949   $as_echo_n "(cached) " >&6
6950 else
6951   ac_check_lib_save_LIBS=$LIBS
6952 LIBS="-lintl  $LIBS"
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959
6960 /* Override any GCC internal prototype to avoid an error.
6961    Use char because int might match the return type of a GCC
6962    builtin and then its argument prototype would still apply.  */
6963 #ifdef __cplusplus
6964 extern "C"
6965 #endif
6966 char ngettext ();
6967 int
6968 main ()
6969 {
6970 return ngettext ();
6971   ;
6972   return 0;
6973 }
6974 _ACEOF
6975 rm -f conftest.$ac_objext conftest$ac_exeext
6976 if { (ac_try="$ac_link"
6977 case "(($ac_try" in
6978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979   *) ac_try_echo=$ac_try;;
6980 esac
6981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6982 $as_echo "$ac_try_echo") >&5
6983   (eval "$ac_link") 2>conftest.er1
6984   ac_status=$?
6985   grep -v '^ *+' conftest.er1 >conftest.err
6986   rm -f conftest.er1
6987   cat conftest.err >&5
6988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } && {
6990          test -z "$ac_c_werror_flag" ||
6991          test ! -s conftest.err
6992        } && test -s conftest$ac_exeext && {
6993          test "$cross_compiling" = yes ||
6994          $as_test_x conftest$ac_exeext
6995        }; then
6996   ac_cv_lib_intl_ngettext=yes
6997 else
6998   $as_echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001         ac_cv_lib_intl_ngettext=no
7002 fi
7003
7004 rm -rf conftest.dSYM
7005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7006       conftest$ac_exeext conftest.$ac_ext
7007 LIBS=$ac_check_lib_save_LIBS
7008 fi
7009 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7010 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7011 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
7012   { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7013 $as_echo_n "checking for dgettext in -lintl... " >&6; }
7014 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7015   $as_echo_n "(cached) " >&6
7016 else
7017   ac_check_lib_save_LIBS=$LIBS
7018 LIBS="-lintl  $LIBS"
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h.  */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h.  */
7025
7026 /* Override any GCC internal prototype to avoid an error.
7027    Use char because int might match the return type of a GCC
7028    builtin and then its argument prototype would still apply.  */
7029 #ifdef __cplusplus
7030 extern "C"
7031 #endif
7032 char dgettext ();
7033 int
7034 main ()
7035 {
7036 return dgettext ();
7037   ;
7038   return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest.$ac_objext conftest$ac_exeext
7042 if { (ac_try="$ac_link"
7043 case "(($ac_try" in
7044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045   *) ac_try_echo=$ac_try;;
7046 esac
7047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048 $as_echo "$ac_try_echo") >&5
7049   (eval "$ac_link") 2>conftest.er1
7050   ac_status=$?
7051   grep -v '^ *+' conftest.er1 >conftest.err
7052   rm -f conftest.er1
7053   cat conftest.err >&5
7054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); } && {
7056          test -z "$ac_c_werror_flag" ||
7057          test ! -s conftest.err
7058        } && test -s conftest$ac_exeext && {
7059          test "$cross_compiling" = yes ||
7060          $as_test_x conftest$ac_exeext
7061        }; then
7062   ac_cv_lib_intl_dgettext=yes
7063 else
7064   $as_echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067         ac_cv_lib_intl_dgettext=no
7068 fi
7069
7070 rm -rf conftest.dSYM
7071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7072       conftest$ac_exeext conftest.$ac_ext
7073 LIBS=$ac_check_lib_save_LIBS
7074 fi
7075 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7076 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
7077 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
7078   gt_cv_func_dgettext_libintl=yes
7079 fi
7080
7081 fi
7082
7083 fi
7084
7085
7086         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7087           { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
7088 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
7089           { $as_echo "$as_me:$LINENO: result: " >&5
7090 $as_echo "" >&6; }
7091           { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7092 $as_echo_n "checking for ngettext in -lintl... " >&6; }
7093 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7094   $as_echo_n "(cached) " >&6
7095 else
7096   ac_check_lib_save_LIBS=$LIBS
7097 LIBS="-lintl -liconv $LIBS"
7098 cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h.  */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h.  */
7104
7105 /* Override any GCC internal prototype to avoid an error.
7106    Use char because int might match the return type of a GCC
7107    builtin and then its argument prototype would still apply.  */
7108 #ifdef __cplusplus
7109 extern "C"
7110 #endif
7111 char ngettext ();
7112 int
7113 main ()
7114 {
7115 return ngettext ();
7116   ;
7117   return 0;
7118 }
7119 _ACEOF
7120 rm -f conftest.$ac_objext conftest$ac_exeext
7121 if { (ac_try="$ac_link"
7122 case "(($ac_try" in
7123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124   *) ac_try_echo=$ac_try;;
7125 esac
7126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127 $as_echo "$ac_try_echo") >&5
7128   (eval "$ac_link") 2>conftest.er1
7129   ac_status=$?
7130   grep -v '^ *+' conftest.er1 >conftest.err
7131   rm -f conftest.er1
7132   cat conftest.err >&5
7133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); } && {
7135          test -z "$ac_c_werror_flag" ||
7136          test ! -s conftest.err
7137        } && test -s conftest$ac_exeext && {
7138          test "$cross_compiling" = yes ||
7139          $as_test_x conftest$ac_exeext
7140        }; then
7141   ac_cv_lib_intl_ngettext=yes
7142 else
7143   $as_echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146         ac_cv_lib_intl_ngettext=no
7147 fi
7148
7149 rm -rf conftest.dSYM
7150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7151       conftest$ac_exeext conftest.$ac_ext
7152 LIBS=$ac_check_lib_save_LIBS
7153 fi
7154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7155 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7156 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
7157   { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
7158 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
7159 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
7160   $as_echo_n "(cached) " >&6
7161 else
7162   ac_check_lib_save_LIBS=$LIBS
7163 LIBS="-lintl -liconv $LIBS"
7164 cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h.  */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h.  */
7170
7171 /* Override any GCC internal prototype to avoid an error.
7172    Use char because int might match the return type of a GCC
7173    builtin and then its argument prototype would still apply.  */
7174 #ifdef __cplusplus
7175 extern "C"
7176 #endif
7177 char dcgettext ();
7178 int
7179 main ()
7180 {
7181 return dcgettext ();
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (ac_try="$ac_link"
7188 case "(($ac_try" in
7189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190   *) ac_try_echo=$ac_try;;
7191 esac
7192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7193 $as_echo "$ac_try_echo") >&5
7194   (eval "$ac_link") 2>conftest.er1
7195   ac_status=$?
7196   grep -v '^ *+' conftest.er1 >conftest.err
7197   rm -f conftest.er1
7198   cat conftest.err >&5
7199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); } && {
7201          test -z "$ac_c_werror_flag" ||
7202          test ! -s conftest.err
7203        } && test -s conftest$ac_exeext && {
7204          test "$cross_compiling" = yes ||
7205          $as_test_x conftest$ac_exeext
7206        }; then
7207   ac_cv_lib_intl_dcgettext=yes
7208 else
7209   $as_echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7211
7212         ac_cv_lib_intl_dcgettext=no
7213 fi
7214
7215 rm -rf conftest.dSYM
7216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7217       conftest$ac_exeext conftest.$ac_ext
7218 LIBS=$ac_check_lib_save_LIBS
7219 fi
7220 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7221 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
7222 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
7223   gt_cv_func_dgettext_libintl=yes
7224                         libintl_extra_libs=-liconv
7225 else
7226   :
7227 fi
7228
7229 else
7230   :
7231 fi
7232
7233         fi
7234
7235         #
7236         # If we found libintl, then check in it for bind_textdomain_codeset();
7237         # we'll prefer libc if neither have bind_textdomain_codeset(),
7238         # and both have dgettext and ngettext
7239         #
7240         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7241           glib_save_LIBS="$LIBS"
7242           LIBS="$LIBS -lintl $libintl_extra_libs"
7243           unset ac_cv_func_bind_textdomain_codeset
7244
7245 for ac_func in bind_textdomain_codeset
7246 do
7247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7248 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7249 $as_echo_n "checking for $ac_func... " >&6; }
7250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7251   $as_echo_n "(cached) " >&6
7252 else
7253   cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h.  */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h.  */
7259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7261 #define $ac_func innocuous_$ac_func
7262
7263 /* System header to define __stub macros and hopefully few prototypes,
7264     which can conflict with char $ac_func (); below.
7265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7266     <limits.h> exists even on freestanding compilers.  */
7267
7268 #ifdef __STDC__
7269 # include <limits.h>
7270 #else
7271 # include <assert.h>
7272 #endif
7273
7274 #undef $ac_func
7275
7276 /* Override any GCC internal prototype to avoid an error.
7277    Use char because int might match the return type of a GCC
7278    builtin and then its argument prototype would still apply.  */
7279 #ifdef __cplusplus
7280 extern "C"
7281 #endif
7282 char $ac_func ();
7283 /* The GNU C library defines this for functions which it implements
7284     to always fail with ENOSYS.  Some functions are actually named
7285     something starting with __ and the normal name is an alias.  */
7286 #if defined __stub_$ac_func || defined __stub___$ac_func
7287 choke me
7288 #endif
7289
7290 int
7291 main ()
7292 {
7293 return $ac_func ();
7294   ;
7295   return 0;
7296 }
7297 _ACEOF
7298 rm -f conftest.$ac_objext conftest$ac_exeext
7299 if { (ac_try="$ac_link"
7300 case "(($ac_try" in
7301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302   *) ac_try_echo=$ac_try;;
7303 esac
7304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7305 $as_echo "$ac_try_echo") >&5
7306   (eval "$ac_link") 2>conftest.er1
7307   ac_status=$?
7308   grep -v '^ *+' conftest.er1 >conftest.err
7309   rm -f conftest.er1
7310   cat conftest.err >&5
7311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); } && {
7313          test -z "$ac_c_werror_flag" ||
7314          test ! -s conftest.err
7315        } && test -s conftest$ac_exeext && {
7316          test "$cross_compiling" = yes ||
7317          $as_test_x conftest$ac_exeext
7318        }; then
7319   eval "$as_ac_var=yes"
7320 else
7321   $as_echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324         eval "$as_ac_var=no"
7325 fi
7326
7327 rm -rf conftest.dSYM
7328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7329       conftest$ac_exeext conftest.$ac_ext
7330 fi
7331 ac_res=`eval 'as_val=${'$as_ac_var'}
7332                  $as_echo "$as_val"'`
7333                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7334 $as_echo "$ac_res" >&6; }
7335 as_val=`eval 'as_val=${'$as_ac_var'}
7336                  $as_echo "$as_val"'`
7337    if test "x$as_val" = x""yes; then
7338   cat >>confdefs.h <<_ACEOF
7339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7340 _ACEOF
7341
7342 fi
7343 done
7344
7345           LIBS="$glib_save_LIBS"
7346
7347           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7348             gt_cv_func_dgettext_libc=no
7349           else
7350             if test "$gt_cv_func_dgettext_libc" = "yes" \
7351                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
7352               gt_cv_func_dgettext_libintl=no
7353             fi
7354           fi
7355         fi
7356       fi
7357
7358       if test "$gt_cv_func_dgettext_libc" = "yes" \
7359         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7360         gt_cv_have_gettext=yes
7361       fi
7362
7363       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7364         INTLLIBS="-lintl $libintl_extra_libs"
7365       fi
7366
7367       if test "$gt_cv_have_gettext" = "yes"; then
7368
7369 cat >>confdefs.h <<\_ACEOF
7370 #define HAVE_GETTEXT 1
7371 _ACEOF
7372
7373         # Extract the first word of "msgfmt", so it can be a program name with args.
7374 set dummy msgfmt; ac_word=$2
7375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if test "${ac_cv_path_MSGFMT+set}" = set; then
7378   $as_echo_n "(cached) " >&6
7379 else
7380   case "$MSGFMT" in
7381   /*)
7382   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7383   ;;
7384   *)
7385   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7386   for ac_dir in $PATH; do
7387     test -z "$ac_dir" && ac_dir=.
7388     if test -f $ac_dir/$ac_word; then
7389       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7390         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7391         break
7392       fi
7393     fi
7394   done
7395   IFS="$ac_save_ifs"
7396   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7397   ;;
7398 esac
7399 fi
7400 MSGFMT="$ac_cv_path_MSGFMT"
7401 if test "$MSGFMT" != "no"; then
7402   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7403 $as_echo "$MSGFMT" >&6; }
7404 else
7405   { $as_echo "$as_me:$LINENO: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408         if test "$MSGFMT" != "no"; then
7409           glib_save_LIBS="$LIBS"
7410           LIBS="$LIBS $INTLLIBS"
7411
7412 for ac_func in dcgettext
7413 do
7414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7415 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7416 $as_echo_n "checking for $ac_func... " >&6; }
7417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7418   $as_echo_n "(cached) " >&6
7419 else
7420   cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7428 #define $ac_func innocuous_$ac_func
7429
7430 /* System header to define __stub macros and hopefully few prototypes,
7431     which can conflict with char $ac_func (); below.
7432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433     <limits.h> exists even on freestanding compilers.  */
7434
7435 #ifdef __STDC__
7436 # include <limits.h>
7437 #else
7438 # include <assert.h>
7439 #endif
7440
7441 #undef $ac_func
7442
7443 /* Override any GCC internal prototype to avoid an error.
7444    Use char because int might match the return type of a GCC
7445    builtin and then its argument prototype would still apply.  */
7446 #ifdef __cplusplus
7447 extern "C"
7448 #endif
7449 char $ac_func ();
7450 /* The GNU C library defines this for functions which it implements
7451     to always fail with ENOSYS.  Some functions are actually named
7452     something starting with __ and the normal name is an alias.  */
7453 #if defined __stub_$ac_func || defined __stub___$ac_func
7454 choke me
7455 #endif
7456
7457 int
7458 main ()
7459 {
7460 return $ac_func ();
7461   ;
7462   return 0;
7463 }
7464 _ACEOF
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (ac_try="$ac_link"
7467 case "(($ac_try" in
7468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469   *) ac_try_echo=$ac_try;;
7470 esac
7471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7472 $as_echo "$ac_try_echo") >&5
7473   (eval "$ac_link") 2>conftest.er1
7474   ac_status=$?
7475   grep -v '^ *+' conftest.er1 >conftest.err
7476   rm -f conftest.er1
7477   cat conftest.err >&5
7478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); } && {
7480          test -z "$ac_c_werror_flag" ||
7481          test ! -s conftest.err
7482        } && test -s conftest$ac_exeext && {
7483          test "$cross_compiling" = yes ||
7484          $as_test_x conftest$ac_exeext
7485        }; then
7486   eval "$as_ac_var=yes"
7487 else
7488   $as_echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491         eval "$as_ac_var=no"
7492 fi
7493
7494 rm -rf conftest.dSYM
7495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7496       conftest$ac_exeext conftest.$ac_ext
7497 fi
7498 ac_res=`eval 'as_val=${'$as_ac_var'}
7499                  $as_echo "$as_val"'`
7500                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7501 $as_echo "$ac_res" >&6; }
7502 as_val=`eval 'as_val=${'$as_ac_var'}
7503                  $as_echo "$as_val"'`
7504    if test "x$as_val" = x""yes; then
7505   cat >>confdefs.h <<_ACEOF
7506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7507 _ACEOF
7508
7509 fi
7510 done
7511
7512           MSGFMT_OPTS=
7513           { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
7514 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
7515           cat >conftest.foo <<_ACEOF
7516
7517 msgid ""
7518 msgstr ""
7519 "Content-Type: text/plain; charset=UTF-8\n"
7520 "Project-Id-Version: test 1.0\n"
7521 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
7522 "Last-Translator: test <foo@bar.xx>\n"
7523 "Language-Team: C <LL@li.org>\n"
7524 "MIME-Version: 1.0\n"
7525 "Content-Transfer-Encoding: 8bit\n"
7526
7527 _ACEOF
7528 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
7529   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
7530   ac_status=$?
7531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; then
7533   MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
7534 $as_echo "yes" >&6; }
7535 else { $as_echo "$as_me:$LINENO: result: no" >&5
7536 $as_echo "no" >&6; }
7537 echo "$as_me: failed input was:" >&5
7538 sed 's/^/| /' conftest.foo >&5
7539 fi
7540
7541           # Extract the first word of "gmsgfmt", so it can be a program name with args.
7542 set dummy gmsgfmt; ac_word=$2
7543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7546   $as_echo_n "(cached) " >&6
7547 else
7548   case $GMSGFMT in
7549   [\\/]* | ?:[\\/]*)
7550   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7551   ;;
7552   *)
7553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7561     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565 done
7566 IFS=$as_save_IFS
7567
7568   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7569   ;;
7570 esac
7571 fi
7572 GMSGFMT=$ac_cv_path_GMSGFMT
7573 if test -n "$GMSGFMT"; then
7574   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7575 $as_echo "$GMSGFMT" >&6; }
7576 else
7577   { $as_echo "$as_me:$LINENO: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580
7581
7582           # Extract the first word of "xgettext", so it can be a program name with args.
7583 set dummy xgettext; ac_word=$2
7584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7587   $as_echo_n "(cached) " >&6
7588 else
7589   case "$XGETTEXT" in
7590   /*)
7591   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7592   ;;
7593   *)
7594   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7595   for ac_dir in $PATH; do
7596     test -z "$ac_dir" && ac_dir=.
7597     if test -f $ac_dir/$ac_word; then
7598       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7599         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7600         break
7601       fi
7602     fi
7603   done
7604   IFS="$ac_save_ifs"
7605   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7606   ;;
7607 esac
7608 fi
7609 XGETTEXT="$ac_cv_path_XGETTEXT"
7610 if test "$XGETTEXT" != ":"; then
7611   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7612 $as_echo "$XGETTEXT" >&6; }
7613 else
7614   { $as_echo "$as_me:$LINENO: result: no" >&5
7615 $as_echo "no" >&6; }
7616 fi
7617
7618           cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h.  */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h.  */
7624
7625 int
7626 main ()
7627 {
7628 extern int _nl_msg_cat_cntr;
7629                          return _nl_msg_cat_cntr
7630   ;
7631   return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7636 case "(($ac_try" in
7637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638   *) ac_try_echo=$ac_try;;
7639 esac
7640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7641 $as_echo "$ac_try_echo") >&5
7642   (eval "$ac_link") 2>conftest.er1
7643   ac_status=$?
7644   grep -v '^ *+' conftest.er1 >conftest.err
7645   rm -f conftest.er1
7646   cat conftest.err >&5
7647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); } && {
7649          test -z "$ac_c_werror_flag" ||
7650          test ! -s conftest.err
7651        } && test -s conftest$ac_exeext && {
7652          test "$cross_compiling" = yes ||
7653          $as_test_x conftest$ac_exeext
7654        }; then
7655   CATOBJEXT=.gmo
7656              DATADIRNAME=share
7657 else
7658   $as_echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661         case $host in
7662             *-*-solaris*)
7663                                                                 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7664 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
7665 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7666   $as_echo_n "(cached) " >&6
7667 else
7668   cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h.  */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h.  */
7674 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7676 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7677
7678 /* System header to define __stub macros and hopefully few prototypes,
7679     which can conflict with char bind_textdomain_codeset (); below.
7680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7681     <limits.h> exists even on freestanding compilers.  */
7682
7683 #ifdef __STDC__
7684 # include <limits.h>
7685 #else
7686 # include <assert.h>
7687 #endif
7688
7689 #undef bind_textdomain_codeset
7690
7691 /* Override any GCC internal prototype to avoid an error.
7692    Use char because int might match the return type of a GCC
7693    builtin and then its argument prototype would still apply.  */
7694 #ifdef __cplusplus
7695 extern "C"
7696 #endif
7697 char bind_textdomain_codeset ();
7698 /* The GNU C library defines this for functions which it implements
7699     to always fail with ENOSYS.  Some functions are actually named
7700     something starting with __ and the normal name is an alias.  */
7701 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7702 choke me
7703 #endif
7704
7705 int
7706 main ()
7707 {
7708 return bind_textdomain_codeset ();
7709   ;
7710   return 0;
7711 }
7712 _ACEOF
7713 rm -f conftest.$ac_objext conftest$ac_exeext
7714 if { (ac_try="$ac_link"
7715 case "(($ac_try" in
7716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717   *) ac_try_echo=$ac_try;;
7718 esac
7719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7720 $as_echo "$ac_try_echo") >&5
7721   (eval "$ac_link") 2>conftest.er1
7722   ac_status=$?
7723   grep -v '^ *+' conftest.er1 >conftest.err
7724   rm -f conftest.er1
7725   cat conftest.err >&5
7726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } && {
7728          test -z "$ac_c_werror_flag" ||
7729          test ! -s conftest.err
7730        } && test -s conftest$ac_exeext && {
7731          test "$cross_compiling" = yes ||
7732          $as_test_x conftest$ac_exeext
7733        }; then
7734   ac_cv_func_bind_textdomain_codeset=yes
7735 else
7736   $as_echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739         ac_cv_func_bind_textdomain_codeset=no
7740 fi
7741
7742 rm -rf conftest.dSYM
7743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7744       conftest$ac_exeext conftest.$ac_ext
7745 fi
7746 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7747 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
7748 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
7749   CATOBJEXT=.gmo
7750                DATADIRNAME=share
7751 else
7752   CATOBJEXT=.mo
7753                DATADIRNAME=lib
7754 fi
7755
7756             ;;
7757             *)
7758             CATOBJEXT=.mo
7759             DATADIRNAME=lib
7760             ;;
7761             esac
7762 fi
7763
7764 rm -rf conftest.dSYM
7765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7766       conftest$ac_exeext conftest.$ac_ext
7767           LIBS="$glib_save_LIBS"
7768           INSTOBJEXT=.mo
7769         else
7770           gt_cv_have_gettext=no
7771         fi
7772       fi
7773
7774 fi
7775
7776
7777
7778     if test "$gt_cv_have_gettext" = "yes" ; then
7779
7780 cat >>confdefs.h <<\_ACEOF
7781 #define ENABLE_NLS 1
7782 _ACEOF
7783
7784     fi
7785
7786         if test "$XGETTEXT" != ":"; then
7787                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7788         : ;
7789       else
7790         { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7791 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7792         XGETTEXT=":"
7793       fi
7794     fi
7795
7796     # We need to process the po/ directory.
7797     POSUB=po
7798
7799     ac_config_commands="$ac_config_commands default-1"
7800
7801
7802                 for lang in $ALL_LINGUAS; do
7803       GMOFILES="$GMOFILES $lang.gmo"
7804       POFILES="$POFILES $lang.po"
7805     done
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819    if test "$gt_cv_have_gettext" = "yes"; then
7820      if test "x$ALL_LINGUAS" = "x"; then
7821        LINGUAS=
7822      else
7823        { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7824 $as_echo_n "checking for catalogs to be installed... " >&6; }
7825        NEW_LINGUAS=
7826        for presentlang in $ALL_LINGUAS; do
7827          useit=no
7828          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7829            desiredlanguages="$LINGUAS"
7830          else
7831            desiredlanguages="$ALL_LINGUAS"
7832          fi
7833          for desiredlang in $desiredlanguages; do
7834            # Use the presentlang catalog if desiredlang is
7835            #   a. equal to presentlang, or
7836            #   b. a variant of presentlang (because in this case,
7837            #      presentlang can be used as a fallback for messages
7838            #      which are not translated in the desiredlang catalog).
7839            case "$desiredlang" in
7840              "$presentlang"*) useit=yes;;
7841            esac
7842          done
7843          if test $useit = yes; then
7844            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7845          fi
7846        done
7847        LINGUAS=$NEW_LINGUAS
7848        { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
7849 $as_echo "$LINGUAS" >&6; }
7850      fi
7851
7852           if test -n "$LINGUAS"; then
7853        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7854      fi
7855    fi
7856
7857             MKINSTALLDIRS=
7858    if test -n "$ac_aux_dir"; then
7859      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7860    fi
7861    if test -z "$MKINSTALLDIRS"; then
7862      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7863    fi
7864
7865
7866          test -d po || mkdir po
7867    if test "x$srcdir" != "x."; then
7868      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7869        posrcprefix="$srcdir/"
7870      else
7871        posrcprefix="../$srcdir/"
7872      fi
7873    else
7874      posrcprefix="../"
7875    fi
7876    rm -f po/POTFILES
7877    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7878         < $srcdir/po/POTFILES.in > po/POTFILES
7879
7880
7881 ac_config_files="$ac_config_files Makefile src/Makefile src/ttsubset/Makefile po/Makefile.in"
7882
7883 cat >confcache <<\_ACEOF
7884 # This file is a shell script that caches the results of configure
7885 # tests run on this system so they can be shared between configure
7886 # scripts and configure runs, see configure's option --config-cache.
7887 # It is not useful on other systems.  If it contains results you don't
7888 # want to keep, you may remove or edit it.
7889 #
7890 # config.status only pays attention to the cache file if you give it
7891 # the --recheck option to rerun configure.
7892 #
7893 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7894 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7895 # following values.
7896
7897 _ACEOF
7898
7899 # The following way of writing the cache mishandles newlines in values,
7900 # but we know of no workaround that is simple, portable, and efficient.
7901 # So, we kill variables containing newlines.
7902 # Ultrix sh set writes to stderr and can't be redirected directly,
7903 # and sets the high bit in the cache file unless we assign to the vars.
7904 (
7905   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7906     eval ac_val=\$$ac_var
7907     case $ac_val in #(
7908     *${as_nl}*)
7909       case $ac_var in #(
7910       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
7911 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7912       esac
7913       case $ac_var in #(
7914       _ | IFS | as_nl) ;; #(
7915       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7916       *) $as_unset $ac_var ;;
7917       esac ;;
7918     esac
7919   done
7920
7921   (set) 2>&1 |
7922     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7923     *${as_nl}ac_space=\ *)
7924       # `set' does not quote correctly, so add quotes (double-quote
7925       # substitution turns \\\\ into \\, and sed turns \\ into \).
7926       sed -n \
7927         "s/'/'\\\\''/g;
7928           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7929       ;; #(
7930     *)
7931       # `set' quotes correctly as required by POSIX, so do not add quotes.
7932       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7933       ;;
7934     esac |
7935     sort
7936 ) |
7937   sed '
7938      /^ac_cv_env_/b end
7939      t clear
7940      :clear
7941      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7942      t end
7943      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7944      :end' >>confcache
7945 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7946   if test -w "$cache_file"; then
7947     test "x$cache_file" != "x/dev/null" &&
7948       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
7949 $as_echo "$as_me: updating cache $cache_file" >&6;}
7950     cat confcache >$cache_file
7951   else
7952     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7953 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7954   fi
7955 fi
7956 rm -f confcache
7957
7958 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7959 # Let make expand exec_prefix.
7960 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7961
7962 DEFS=-DHAVE_CONFIG_H
7963
7964 ac_libobjs=
7965 ac_ltlibobjs=
7966 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7967   # 1. Remove the extension, and $U if already installed.
7968   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7969   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7970   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7971   #    will be set to the directory where LIBOBJS objects are built.
7972   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7973   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7974 done
7975 LIBOBJS=$ac_libobjs
7976
7977 LTLIBOBJS=$ac_ltlibobjs
7978
7979
7980  if test -n "$EXEEXT"; then
7981   am__EXEEXT_TRUE=
7982   am__EXEEXT_FALSE='#'
7983 else
7984   am__EXEEXT_TRUE='#'
7985   am__EXEEXT_FALSE=
7986 fi
7987
7988 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7989   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7990 Usually this means the macro was only invoked conditionally." >&5
7991 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7992 Usually this means the macro was only invoked conditionally." >&2;}
7993    { (exit 1); exit 1; }; }
7994 fi
7995 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7996   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7997 Usually this means the macro was only invoked conditionally." >&5
7998 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
7999 Usually this means the macro was only invoked conditionally." >&2;}
8000    { (exit 1); exit 1; }; }
8001 fi
8002 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8003   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8004 Usually this means the macro was only invoked conditionally." >&5
8005 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8006 Usually this means the macro was only invoked conditionally." >&2;}
8007    { (exit 1); exit 1; }; }
8008 fi
8009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8010   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8011 Usually this means the macro was only invoked conditionally." >&5
8012 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8013 Usually this means the macro was only invoked conditionally." >&2;}
8014    { (exit 1); exit 1; }; }
8015 fi
8016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8017   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8018 Usually this means the macro was only invoked conditionally." >&5
8019 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8020 Usually this means the macro was only invoked conditionally." >&2;}
8021    { (exit 1); exit 1; }; }
8022 fi
8023 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
8024   { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32\" was never defined.
8025 Usually this means the macro was only invoked conditionally." >&5
8026 $as_echo "$as_me: error: conditional \"WIN32\" was never defined.
8027 Usually this means the macro was only invoked conditionally." >&2;}
8028    { (exit 1); exit 1; }; }
8029 fi
8030
8031 : ${CONFIG_STATUS=./config.status}
8032 ac_write_fail=0
8033 ac_clean_files_save=$ac_clean_files
8034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8035 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8036 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8037 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8038 #! $SHELL
8039 # Generated by $as_me.
8040 # Run this file to recreate the current configuration.
8041 # Compiler output produced by configure, useful for debugging
8042 # configure, is in config.log if it exists.
8043
8044 debug=false
8045 ac_cs_recheck=false
8046 ac_cs_silent=false
8047 SHELL=\${CONFIG_SHELL-$SHELL}
8048 _ACEOF
8049
8050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8051 ## --------------------- ##
8052 ## M4sh Initialization.  ##
8053 ## --------------------- ##
8054
8055 # Be more Bourne compatible
8056 DUALCASE=1; export DUALCASE # for MKS sh
8057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8058   emulate sh
8059   NULLCMD=:
8060   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8061   # is contrary to our usage.  Disable this feature.
8062   alias -g '${1+"$@"}'='"$@"'
8063   setopt NO_GLOB_SUBST
8064 else
8065   case `(set -o) 2>/dev/null` in
8066   *posix*) set -o posix ;;
8067 esac
8068
8069 fi
8070
8071
8072
8073
8074 # PATH needs CR
8075 # Avoid depending upon Character Ranges.
8076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8079 as_cr_digits='0123456789'
8080 as_cr_alnum=$as_cr_Letters$as_cr_digits
8081
8082 as_nl='
8083 '
8084 export as_nl
8085 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8086 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8088 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8089 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8090   as_echo='printf %s\n'
8091   as_echo_n='printf %s'
8092 else
8093   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8094     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8095     as_echo_n='/usr/ucb/echo -n'
8096   else
8097     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8098     as_echo_n_body='eval
8099       arg=$1;
8100       case $arg in
8101       *"$as_nl"*)
8102         expr "X$arg" : "X\\(.*\\)$as_nl";
8103         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8104       esac;
8105       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8106     '
8107     export as_echo_n_body
8108     as_echo_n='sh -c $as_echo_n_body as_echo'
8109   fi
8110   export as_echo_body
8111   as_echo='sh -c $as_echo_body as_echo'
8112 fi
8113
8114 # The user is always right.
8115 if test "${PATH_SEPARATOR+set}" != set; then
8116   PATH_SEPARATOR=:
8117   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8118     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8119       PATH_SEPARATOR=';'
8120   }
8121 fi
8122
8123 # Support unset when possible.
8124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8125   as_unset=unset
8126 else
8127   as_unset=false
8128 fi
8129
8130
8131 # IFS
8132 # We need space, tab and new line, in precisely that order.  Quoting is
8133 # there to prevent editors from complaining about space-tab.
8134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8135 # splitting by setting IFS to empty value.)
8136 IFS=" ""        $as_nl"
8137
8138 # Find who we are.  Look in the path if we contain no directory separator.
8139 case $0 in
8140   *[\\/]* ) as_myself=$0 ;;
8141   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144   IFS=$as_save_IFS
8145   test -z "$as_dir" && as_dir=.
8146   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8147 done
8148 IFS=$as_save_IFS
8149
8150      ;;
8151 esac
8152 # We did not find ourselves, most probably we were run as `sh COMMAND'
8153 # in which case we are not to be found in the path.
8154 if test "x$as_myself" = x; then
8155   as_myself=$0
8156 fi
8157 if test ! -f "$as_myself"; then
8158   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8159   { (exit 1); exit 1; }
8160 fi
8161
8162 # Work around bugs in pre-3.0 UWIN ksh.
8163 for as_var in ENV MAIL MAILPATH
8164 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8165 done
8166 PS1='$ '
8167 PS2='> '
8168 PS4='+ '
8169
8170 # NLS nuisances.
8171 LC_ALL=C
8172 export LC_ALL
8173 LANGUAGE=C
8174 export LANGUAGE
8175
8176 # Required to use basename.
8177 if expr a : '\(a\)' >/dev/null 2>&1 &&
8178    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8179   as_expr=expr
8180 else
8181   as_expr=false
8182 fi
8183
8184 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8185   as_basename=basename
8186 else
8187   as_basename=false
8188 fi
8189
8190
8191 # Name of the executable.
8192 as_me=`$as_basename -- "$0" ||
8193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8194          X"$0" : 'X\(//\)$' \| \
8195          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8196 $as_echo X/"$0" |
8197     sed '/^.*\/\([^/][^/]*\)\/*$/{
8198             s//\1/
8199             q
8200           }
8201           /^X\/\(\/\/\)$/{
8202             s//\1/
8203             q
8204           }
8205           /^X\/\(\/\).*/{
8206             s//\1/
8207             q
8208           }
8209           s/.*/./; q'`
8210
8211 # CDPATH.
8212 $as_unset CDPATH
8213
8214
8215
8216   as_lineno_1=$LINENO
8217   as_lineno_2=$LINENO
8218   test "x$as_lineno_1" != "x$as_lineno_2" &&
8219   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8220
8221   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8222   # uniformly replaced by the line number.  The first 'sed' inserts a
8223   # line-number line after each line using $LINENO; the second 'sed'
8224   # does the real work.  The second script uses 'N' to pair each
8225   # line-number line with the line containing $LINENO, and appends
8226   # trailing '-' during substitution so that $LINENO is not a special
8227   # case at line end.
8228   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8229   # scripts with optimization help from Paolo Bonzini.  Blame Lee
8230   # E. McMahon (1931-1989) for sed's syntax.  :-)
8231   sed -n '
8232     p
8233     /[$]LINENO/=
8234   ' <$as_myself |
8235     sed '
8236       s/[$]LINENO.*/&-/
8237       t lineno
8238       b
8239       :lineno
8240       N
8241       :loop
8242       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8243       t loop
8244       s/-\n.*//
8245     ' >$as_me.lineno &&
8246   chmod +x "$as_me.lineno" ||
8247     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8248    { (exit 1); exit 1; }; }
8249
8250   # Don't try to exec as it changes $[0], causing all sort of problems
8251   # (the dirname of $[0] is not the place where we might find the
8252   # original and so on.  Autoconf is especially sensitive to this).
8253   . "./$as_me.lineno"
8254   # Exit status is that of the last command.
8255   exit
8256 }
8257
8258
8259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8260   as_dirname=dirname
8261 else
8262   as_dirname=false
8263 fi
8264
8265 ECHO_C= ECHO_N= ECHO_T=
8266 case `echo -n x` in
8267 -n*)
8268   case `echo 'x\c'` in
8269   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8270   *)   ECHO_C='\c';;
8271   esac;;
8272 *)
8273   ECHO_N='-n';;
8274 esac
8275 if expr a : '\(a\)' >/dev/null 2>&1 &&
8276    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8277   as_expr=expr
8278 else
8279   as_expr=false
8280 fi
8281
8282 rm -f conf$$ conf$$.exe conf$$.file
8283 if test -d conf$$.dir; then
8284   rm -f conf$$.dir/conf$$.file
8285 else
8286   rm -f conf$$.dir
8287   mkdir conf$$.dir 2>/dev/null
8288 fi
8289 if (echo >conf$$.file) 2>/dev/null; then
8290   if ln -s conf$$.file conf$$ 2>/dev/null; then
8291     as_ln_s='ln -s'
8292     # ... but there are two gotchas:
8293     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8294     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8295     # In both cases, we have to default to `cp -p'.
8296     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8297       as_ln_s='cp -p'
8298   elif ln conf$$.file conf$$ 2>/dev/null; then
8299     as_ln_s=ln
8300   else
8301     as_ln_s='cp -p'
8302   fi
8303 else
8304   as_ln_s='cp -p'
8305 fi
8306 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8307 rmdir conf$$.dir 2>/dev/null
8308
8309 if mkdir -p . 2>/dev/null; then
8310   as_mkdir_p=:
8311 else
8312   test -d ./-p && rmdir ./-p
8313   as_mkdir_p=false
8314 fi
8315
8316 if test -x / >/dev/null 2>&1; then
8317   as_test_x='test -x'
8318 else
8319   if ls -dL / >/dev/null 2>&1; then
8320     as_ls_L_option=L
8321   else
8322     as_ls_L_option=
8323   fi
8324   as_test_x='
8325     eval sh -c '\''
8326       if test -d "$1"; then
8327         test -d "$1/.";
8328       else
8329         case $1 in
8330         -*)set "./$1";;
8331         esac;
8332         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8333         ???[sx]*):;;*)false;;esac;fi
8334     '\'' sh
8335   '
8336 fi
8337 as_executable_p=$as_test_x
8338
8339 # Sed expression to map a string onto a valid CPP name.
8340 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8341
8342 # Sed expression to map a string onto a valid variable name.
8343 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8344
8345
8346 exec 6>&1
8347
8348 # Save the log message, to keep $[0] and so on meaningful, and to
8349 # report actual input values of CONFIG_FILES etc. instead of their
8350 # values after options handling.
8351 ac_log="
8352 This file was extended by $as_me, which was
8353 generated by GNU Autoconf 2.63.  Invocation command line was
8354
8355   CONFIG_FILES    = $CONFIG_FILES
8356   CONFIG_HEADERS  = $CONFIG_HEADERS
8357   CONFIG_LINKS    = $CONFIG_LINKS
8358   CONFIG_COMMANDS = $CONFIG_COMMANDS
8359   $ $0 $@
8360
8361 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8362 "
8363
8364 _ACEOF
8365
8366 case $ac_config_files in *"
8367 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8368 esac
8369
8370 case $ac_config_headers in *"
8371 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8372 esac
8373
8374
8375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8376 # Files that config.status was made for.
8377 config_files="$ac_config_files"
8378 config_headers="$ac_config_headers"
8379 config_commands="$ac_config_commands"
8380
8381 _ACEOF
8382
8383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8384 ac_cs_usage="\
8385 \`$as_me' instantiates files from templates according to the
8386 current configuration.
8387
8388 Usage: $0 [OPTION]... [FILE]...
8389
8390   -h, --help       print this help, then exit
8391   -V, --version    print version number and configuration settings, then exit
8392   -q, --quiet, --silent
8393                    do not print progress messages
8394   -d, --debug      don't remove temporary files
8395       --recheck    update $as_me by reconfiguring in the same conditions
8396       --file=FILE[:TEMPLATE]
8397                    instantiate the configuration file FILE
8398       --header=FILE[:TEMPLATE]
8399                    instantiate the configuration header FILE
8400
8401 Configuration files:
8402 $config_files
8403
8404 Configuration headers:
8405 $config_headers
8406
8407 Configuration commands:
8408 $config_commands
8409
8410 Report bugs to <bug-autoconf@gnu.org>."
8411
8412 _ACEOF
8413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8414 ac_cs_version="\\
8415 config.status
8416 configured by $0, generated by GNU Autoconf 2.63,
8417   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8418
8419 Copyright (C) 2008 Free Software Foundation, Inc.
8420 This config.status script is free software; the Free Software Foundation
8421 gives unlimited permission to copy, distribute and modify it."
8422
8423 ac_pwd='$ac_pwd'
8424 srcdir='$srcdir'
8425 INSTALL='$INSTALL'
8426 MKDIR_P='$MKDIR_P'
8427 AWK='$AWK'
8428 test -n "\$AWK" || AWK=awk
8429 _ACEOF
8430
8431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8432 # The default lists apply if the user does not specify any file.
8433 ac_need_defaults=:
8434 while test $# != 0
8435 do
8436   case $1 in
8437   --*=*)
8438     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8439     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8440     ac_shift=:
8441     ;;
8442   *)
8443     ac_option=$1
8444     ac_optarg=$2
8445     ac_shift=shift
8446     ;;
8447   esac
8448
8449   case $ac_option in
8450   # Handling of the options.
8451   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8452     ac_cs_recheck=: ;;
8453   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8454     $as_echo "$ac_cs_version"; exit ;;
8455   --debug | --debu | --deb | --de | --d | -d )
8456     debug=: ;;
8457   --file | --fil | --fi | --f )
8458     $ac_shift
8459     case $ac_optarg in
8460     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8461     esac
8462     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
8463     ac_need_defaults=false;;
8464   --header | --heade | --head | --hea )
8465     $ac_shift
8466     case $ac_optarg in
8467     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8468     esac
8469     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
8470     ac_need_defaults=false;;
8471   --he | --h)
8472     # Conflict between --help and --header
8473     { $as_echo "$as_me: error: ambiguous option: $1
8474 Try \`$0 --help' for more information." >&2
8475    { (exit 1); exit 1; }; };;
8476   --help | --hel | -h )
8477     $as_echo "$ac_cs_usage"; exit ;;
8478   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8479   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8480     ac_cs_silent=: ;;
8481
8482   # This is an error.
8483   -*) { $as_echo "$as_me: error: unrecognized option: $1
8484 Try \`$0 --help' for more information." >&2
8485    { (exit 1); exit 1; }; } ;;
8486
8487   *) ac_config_targets="$ac_config_targets $1"
8488      ac_need_defaults=false ;;
8489
8490   esac
8491   shift
8492 done
8493
8494 ac_configure_extra_args=
8495
8496 if $ac_cs_silent; then
8497   exec 6>/dev/null
8498   ac_configure_extra_args="$ac_configure_extra_args --silent"
8499 fi
8500
8501 _ACEOF
8502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8503 if \$ac_cs_recheck; then
8504   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8505   shift
8506   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8507   CONFIG_SHELL='$SHELL'
8508   export CONFIG_SHELL
8509   exec "\$@"
8510 fi
8511
8512 _ACEOF
8513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8514 exec 5>>config.log
8515 {
8516   echo
8517   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8518 ## Running $as_me. ##
8519 _ASBOX
8520   $as_echo "$ac_log"
8521 } >&5
8522
8523 _ACEOF
8524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8525 #
8526 # INIT-COMMANDS
8527 #
8528 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8529
8530
8531 _ACEOF
8532
8533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8534
8535 # Handling of arguments.
8536 for ac_config_target in $ac_config_targets
8537 do
8538   case $ac_config_target in
8539     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8540     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8541     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8542     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8543     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8544     "src/ttsubset/Makefile") CONFIG_FILES="$CONFIG_FILES src/ttsubset/Makefile" ;;
8545     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8546
8547   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8548 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8549    { (exit 1); exit 1; }; };;
8550   esac
8551 done
8552
8553
8554 # If the user did not use the arguments to specify the items to instantiate,
8555 # then the envvar interface is used.  Set only those that are not.
8556 # We use the long form for the default assignment because of an extremely
8557 # bizarre bug on SunOS 4.1.3.
8558 if $ac_need_defaults; then
8559   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8560   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8561   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8562 fi
8563
8564 # Have a temporary directory for convenience.  Make it in the build tree
8565 # simply because there is no reason against having it here, and in addition,
8566 # creating and moving files from /tmp can sometimes cause problems.
8567 # Hook for its removal unless debugging.
8568 # Note that there is a small window in which the directory will not be cleaned:
8569 # after its creation but before its name has been assigned to `$tmp'.
8570 $debug ||
8571 {
8572   tmp=
8573   trap 'exit_status=$?
8574   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8575 ' 0
8576   trap '{ (exit 1); exit 1; }' 1 2 13 15
8577 }
8578 # Create a (secure) tmp directory for tmp files.
8579
8580 {
8581   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8582   test -n "$tmp" && test -d "$tmp"
8583 }  ||
8584 {
8585   tmp=./conf$$-$RANDOM
8586   (umask 077 && mkdir "$tmp")
8587 } ||
8588 {
8589    $as_echo "$as_me: cannot create a temporary directory in ." >&2
8590    { (exit 1); exit 1; }
8591 }
8592
8593 # Set up the scripts for CONFIG_FILES section.
8594 # No need to generate them if there are no CONFIG_FILES.
8595 # This happens for instance with `./config.status config.h'.
8596 if test -n "$CONFIG_FILES"; then
8597
8598
8599 ac_cr='\r'
8600 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8601 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8602   ac_cs_awk_cr='\\r'
8603 else
8604   ac_cs_awk_cr=$ac_cr
8605 fi
8606
8607 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8608 _ACEOF
8609
8610
8611 {
8612   echo "cat >conf$$subs.awk <<_ACEOF" &&
8613   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8614   echo "_ACEOF"
8615 } >conf$$subs.sh ||
8616   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8617 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8618    { (exit 1); exit 1; }; }
8619 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8620 ac_delim='%!_!# '
8621 for ac_last_try in false false false false false :; do
8622   . ./conf$$subs.sh ||
8623     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8624 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8625    { (exit 1); exit 1; }; }
8626
8627   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8628   if test $ac_delim_n = $ac_delim_num; then
8629     break
8630   elif $ac_last_try; then
8631     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8632 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8633    { (exit 1); exit 1; }; }
8634   else
8635     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8636   fi
8637 done
8638 rm -f conf$$subs.sh
8639
8640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8641 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8642 _ACEOF
8643 sed -n '
8644 h
8645 s/^/S["/; s/!.*/"]=/
8646 p
8647 g
8648 s/^[^!]*!//
8649 :repl
8650 t repl
8651 s/'"$ac_delim"'$//
8652 t delim
8653 :nl
8654 h
8655 s/\(.\{148\}\).*/\1/
8656 t more1
8657 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8658 p
8659 n
8660 b repl
8661 :more1
8662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8663 p
8664 g
8665 s/.\{148\}//
8666 t nl
8667 :delim
8668 h
8669 s/\(.\{148\}\).*/\1/
8670 t more2
8671 s/["\\]/\\&/g; s/^/"/; s/$/"/
8672 p
8673 b
8674 :more2
8675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8676 p
8677 g
8678 s/.\{148\}//
8679 t delim
8680 ' <conf$$subs.awk | sed '
8681 /^[^""]/{
8682   N
8683   s/\n//
8684 }
8685 ' >>$CONFIG_STATUS || ac_write_fail=1
8686 rm -f conf$$subs.awk
8687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8688 _ACAWK
8689 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8690   for (key in S) S_is_set[key] = 1
8691   FS = "\a"
8692
8693 }
8694 {
8695   line = $ 0
8696   nfields = split(line, field, "@")
8697   substed = 0
8698   len = length(field[1])
8699   for (i = 2; i < nfields; i++) {
8700     key = field[i]
8701     keylen = length(key)
8702     if (S_is_set[key]) {
8703       value = S[key]
8704       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8705       len += length(value) + length(field[++i])
8706       substed = 1
8707     } else
8708       len += 1 + keylen
8709   }
8710
8711   print line
8712 }
8713
8714 _ACAWK
8715 _ACEOF
8716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8717 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8718   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8719 else
8720   cat
8721 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8722   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
8723 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
8724    { (exit 1); exit 1; }; }
8725 _ACEOF
8726
8727 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8728 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8729 # trailing colons and then remove the whole line if VPATH becomes empty
8730 # (actually we leave an empty line to preserve line numbers).
8731 if test "x$srcdir" = x.; then
8732   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8733 s/:*\$(srcdir):*/:/
8734 s/:*\${srcdir}:*/:/
8735 s/:*@srcdir@:*/:/
8736 s/^\([^=]*=[     ]*\):*/\1/
8737 s/:*$//
8738 s/^[^=]*=[       ]*$//
8739 }'
8740 fi
8741
8742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8743 fi # test -n "$CONFIG_FILES"
8744
8745 # Set up the scripts for CONFIG_HEADERS section.
8746 # No need to generate them if there are no CONFIG_HEADERS.
8747 # This happens for instance with `./config.status Makefile'.
8748 if test -n "$CONFIG_HEADERS"; then
8749 cat >"$tmp/defines.awk" <<\_ACAWK ||
8750 BEGIN {
8751 _ACEOF
8752
8753 # Transform confdefs.h into an awk script `defines.awk', embedded as
8754 # here-document in config.status, that substitutes the proper values into
8755 # config.h.in to produce config.h.
8756
8757 # Create a delimiter string that does not exist in confdefs.h, to ease
8758 # handling of long lines.
8759 ac_delim='%!_!# '
8760 for ac_last_try in false false :; do
8761   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8762   if test -z "$ac_t"; then
8763     break
8764   elif $ac_last_try; then
8765     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
8766 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
8767    { (exit 1); exit 1; }; }
8768   else
8769     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8770   fi
8771 done
8772
8773 # For the awk script, D is an array of macro values keyed by name,
8774 # likewise P contains macro parameters if any.  Preserve backslash
8775 # newline sequences.
8776
8777 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8778 sed -n '
8779 s/.\{148\}/&'"$ac_delim"'/g
8780 t rset
8781 :rset
8782 s/^[     ]*#[    ]*define[       ][      ]*/ /
8783 t def
8784 d
8785 :def
8786 s/\\$//
8787 t bsnl
8788 s/["\\]/\\&/g
8789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8790 D["\1"]=" \3"/p
8791 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8792 d
8793 :bsnl
8794 s/["\\]/\\&/g
8795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8796 D["\1"]=" \3\\\\\\n"\\/p
8797 t cont
8798 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8799 t cont
8800 d
8801 :cont
8802 n
8803 s/.\{148\}/&'"$ac_delim"'/g
8804 t clear
8805 :clear
8806 s/\\$//
8807 t bsnlc
8808 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8809 d
8810 :bsnlc
8811 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8812 b cont
8813 ' <confdefs.h | sed '
8814 s/'"$ac_delim"'/"\\\
8815 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8816
8817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8818   for (key in D) D_is_set[key] = 1
8819   FS = "\a"
8820 }
8821 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8822   line = \$ 0
8823   split(line, arg, " ")
8824   if (arg[1] == "#") {
8825     defundef = arg[2]
8826     mac1 = arg[3]
8827   } else {
8828     defundef = substr(arg[1], 2)
8829     mac1 = arg[2]
8830   }
8831   split(mac1, mac2, "(") #)
8832   macro = mac2[1]
8833   prefix = substr(line, 1, index(line, defundef) - 1)
8834   if (D_is_set[macro]) {
8835     # Preserve the white space surrounding the "#".
8836     print prefix "define", macro P[macro] D[macro]
8837     next
8838   } else {
8839     # Replace #undef with comments.  This is necessary, for example,
8840     # in the case of _POSIX_SOURCE, which is predefined and required
8841     # on some systems where configure will not decide to define it.
8842     if (defundef == "undef") {
8843       print "/*", prefix defundef, macro, "*/"
8844       next
8845     }
8846   }
8847 }
8848 { print }
8849 _ACAWK
8850 _ACEOF
8851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8852   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
8853 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
8854    { (exit 1); exit 1; }; }
8855 fi # test -n "$CONFIG_HEADERS"
8856
8857
8858 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8859 shift
8860 for ac_tag
8861 do
8862   case $ac_tag in
8863   :[FHLC]) ac_mode=$ac_tag; continue;;
8864   esac
8865   case $ac_mode$ac_tag in
8866   :[FHL]*:*);;
8867   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
8868 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
8869    { (exit 1); exit 1; }; };;
8870   :[FH]-) ac_tag=-:-;;
8871   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8872   esac
8873   ac_save_IFS=$IFS
8874   IFS=:
8875   set x $ac_tag
8876   IFS=$ac_save_IFS
8877   shift
8878   ac_file=$1
8879   shift
8880
8881   case $ac_mode in
8882   :L) ac_source=$1;;
8883   :[FH])
8884     ac_file_inputs=
8885     for ac_f
8886     do
8887       case $ac_f in
8888       -) ac_f="$tmp/stdin";;
8889       *) # Look for the file first in the build tree, then in the source tree
8890          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8891          # because $ac_f cannot contain `:'.
8892          test -f "$ac_f" ||
8893            case $ac_f in
8894            [\\/$]*) false;;
8895            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8896            esac ||
8897            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8898 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8899    { (exit 1); exit 1; }; };;
8900       esac
8901       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8902       ac_file_inputs="$ac_file_inputs '$ac_f'"
8903     done
8904
8905     # Let's still pretend it is `configure' which instantiates (i.e., don't
8906     # use $as_me), people would be surprised to read:
8907     #    /* config.h.  Generated by config.status.  */
8908     configure_input='Generated from '`
8909           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8910         `' by configure.'
8911     if test x"$ac_file" != x-; then
8912       configure_input="$ac_file.  $configure_input"
8913       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
8914 $as_echo "$as_me: creating $ac_file" >&6;}
8915     fi
8916     # Neutralize special characters interpreted by sed in replacement strings.
8917     case $configure_input in #(
8918     *\&* | *\|* | *\\* )
8919        ac_sed_conf_input=`$as_echo "$configure_input" |
8920        sed 's/[\\\\&|]/\\\\&/g'`;; #(
8921     *) ac_sed_conf_input=$configure_input;;
8922     esac
8923
8924     case $ac_tag in
8925     *:-:* | *:-) cat >"$tmp/stdin" \
8926       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8927 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8928    { (exit 1); exit 1; }; } ;;
8929     esac
8930     ;;
8931   esac
8932
8933   ac_dir=`$as_dirname -- "$ac_file" ||
8934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8935          X"$ac_file" : 'X\(//\)[^/]' \| \
8936          X"$ac_file" : 'X\(//\)$' \| \
8937          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8938 $as_echo X"$ac_file" |
8939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8940             s//\1/
8941             q
8942           }
8943           /^X\(\/\/\)[^/].*/{
8944             s//\1/
8945             q
8946           }
8947           /^X\(\/\/\)$/{
8948             s//\1/
8949             q
8950           }
8951           /^X\(\/\).*/{
8952             s//\1/
8953             q
8954           }
8955           s/.*/./; q'`
8956   { as_dir="$ac_dir"
8957   case $as_dir in #(
8958   -*) as_dir=./$as_dir;;
8959   esac
8960   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8961     as_dirs=
8962     while :; do
8963       case $as_dir in #(
8964       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8965       *) as_qdir=$as_dir;;
8966       esac
8967       as_dirs="'$as_qdir' $as_dirs"
8968       as_dir=`$as_dirname -- "$as_dir" ||
8969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8970          X"$as_dir" : 'X\(//\)[^/]' \| \
8971          X"$as_dir" : 'X\(//\)$' \| \
8972          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8973 $as_echo X"$as_dir" |
8974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8975             s//\1/
8976             q
8977           }
8978           /^X\(\/\/\)[^/].*/{
8979             s//\1/
8980             q
8981           }
8982           /^X\(\/\/\)$/{
8983             s//\1/
8984             q
8985           }
8986           /^X\(\/\).*/{
8987             s//\1/
8988             q
8989           }
8990           s/.*/./; q'`
8991       test -d "$as_dir" && break
8992     done
8993     test -z "$as_dirs" || eval "mkdir $as_dirs"
8994   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8995 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8996    { (exit 1); exit 1; }; }; }
8997   ac_builddir=.
8998
8999 case "$ac_dir" in
9000 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9001 *)
9002   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9003   # A ".." for each directory in $ac_dir_suffix.
9004   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9005   case $ac_top_builddir_sub in
9006   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9007   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9008   esac ;;
9009 esac
9010 ac_abs_top_builddir=$ac_pwd
9011 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9012 # for backward compatibility:
9013 ac_top_builddir=$ac_top_build_prefix
9014
9015 case $srcdir in
9016   .)  # We are building in place.
9017     ac_srcdir=.
9018     ac_top_srcdir=$ac_top_builddir_sub
9019     ac_abs_top_srcdir=$ac_pwd ;;
9020   [\\/]* | ?:[\\/]* )  # Absolute name.
9021     ac_srcdir=$srcdir$ac_dir_suffix;
9022     ac_top_srcdir=$srcdir
9023     ac_abs_top_srcdir=$srcdir ;;
9024   *) # Relative name.
9025     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9026     ac_top_srcdir=$ac_top_build_prefix$srcdir
9027     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9028 esac
9029 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9030
9031
9032   case $ac_mode in
9033   :F)
9034   #
9035   # CONFIG_FILE
9036   #
9037
9038   case $INSTALL in
9039   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9040   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9041   esac
9042   ac_MKDIR_P=$MKDIR_P
9043   case $MKDIR_P in
9044   [\\/$]* | ?:[\\/]* ) ;;
9045   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9046   esac
9047 _ACEOF
9048
9049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9050 # If the template does not know about datarootdir, expand it.
9051 # FIXME: This hack should be removed a few years after 2.60.
9052 ac_datarootdir_hack=; ac_datarootdir_seen=
9053
9054 ac_sed_dataroot='
9055 /datarootdir/ {
9056   p
9057   q
9058 }
9059 /@datadir@/p
9060 /@docdir@/p
9061 /@infodir@/p
9062 /@localedir@/p
9063 /@mandir@/p
9064 '
9065 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9066 *datarootdir*) ac_datarootdir_seen=yes;;
9067 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9068   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9069 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9070 _ACEOF
9071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9072   ac_datarootdir_hack='
9073   s&@datadir@&$datadir&g
9074   s&@docdir@&$docdir&g
9075   s&@infodir@&$infodir&g
9076   s&@localedir@&$localedir&g
9077   s&@mandir@&$mandir&g
9078     s&\\\${datarootdir}&$datarootdir&g' ;;
9079 esac
9080 _ACEOF
9081
9082 # Neutralize VPATH when `$srcdir' = `.'.
9083 # Shell code in configure.ac might set extrasub.
9084 # FIXME: do we really want to maintain this feature?
9085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9086 ac_sed_extra="$ac_vpsub
9087 $extrasub
9088 _ACEOF
9089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9090 :t
9091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9092 s|@configure_input@|$ac_sed_conf_input|;t t
9093 s&@top_builddir@&$ac_top_builddir_sub&;t t
9094 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9095 s&@srcdir@&$ac_srcdir&;t t
9096 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9097 s&@top_srcdir@&$ac_top_srcdir&;t t
9098 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9099 s&@builddir@&$ac_builddir&;t t
9100 s&@abs_builddir@&$ac_abs_builddir&;t t
9101 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9102 s&@INSTALL@&$ac_INSTALL&;t t
9103 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9104 $ac_datarootdir_hack
9105 "
9106 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9107   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9108 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9109    { (exit 1); exit 1; }; }
9110
9111 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9112   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9113   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9114   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9115 which seems to be undefined.  Please make sure it is defined." >&5
9116 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9117 which seems to be undefined.  Please make sure it is defined." >&2;}
9118
9119   rm -f "$tmp/stdin"
9120   case $ac_file in
9121   -) cat "$tmp/out" && rm -f "$tmp/out";;
9122   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9123   esac \
9124   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9125 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9126    { (exit 1); exit 1; }; }
9127  ;;
9128   :H)
9129   #
9130   # CONFIG_HEADER
9131   #
9132   if test x"$ac_file" != x-; then
9133     {
9134       $as_echo "/* $configure_input  */" \
9135       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9136     } >"$tmp/config.h" \
9137       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9138 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9139    { (exit 1); exit 1; }; }
9140     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9141       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9142 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9143     else
9144       rm -f "$ac_file"
9145       mv "$tmp/config.h" "$ac_file" \
9146         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9147 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9148    { (exit 1); exit 1; }; }
9149     fi
9150   else
9151     $as_echo "/* $configure_input  */" \
9152       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9153       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
9154 $as_echo "$as_me: error: could not create -" >&2;}
9155    { (exit 1); exit 1; }; }
9156   fi
9157 # Compute "$ac_file"'s index in $config_headers.
9158 _am_arg="$ac_file"
9159 _am_stamp_count=1
9160 for _am_header in $config_headers :; do
9161   case $_am_header in
9162     $_am_arg | $_am_arg:* )
9163       break ;;
9164     * )
9165       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9166   esac
9167 done
9168 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9169 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9170          X"$_am_arg" : 'X\(//\)[^/]' \| \
9171          X"$_am_arg" : 'X\(//\)$' \| \
9172          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9173 $as_echo X"$_am_arg" |
9174     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9175             s//\1/
9176             q
9177           }
9178           /^X\(\/\/\)[^/].*/{
9179             s//\1/
9180             q
9181           }
9182           /^X\(\/\/\)$/{
9183             s//\1/
9184             q
9185           }
9186           /^X\(\/\).*/{
9187             s//\1/
9188             q
9189           }
9190           s/.*/./; q'`/stamp-h$_am_stamp_count
9191  ;;
9192
9193   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
9194 $as_echo "$as_me: executing $ac_file commands" >&6;}
9195  ;;
9196   esac
9197
9198
9199   case $ac_file$ac_mode in
9200     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9201   # Autoconf 2.62 quotes --file arguments for eval, but not when files
9202   # are listed without --file.  Let's play safe and only enable the eval
9203   # if we detect the quoting.
9204   case $CONFIG_FILES in
9205   *\'*) eval set x "$CONFIG_FILES" ;;
9206   *)   set x $CONFIG_FILES ;;
9207   esac
9208   shift
9209   for mf
9210   do
9211     # Strip MF so we end up with the name of the file.
9212     mf=`echo "$mf" | sed -e 's/:.*$//'`
9213     # Check whether this is an Automake generated Makefile or not.
9214     # We used to match only the files named `Makefile.in', but
9215     # some people rename them; so instead we look at the file content.
9216     # Grep'ing the first line is not enough: some people post-process
9217     # each Makefile.in and add a new line on top of each file to say so.
9218     # Grep'ing the whole file is not good either: AIX grep has a line
9219     # limit of 2048, but all sed's we know have understand at least 4000.
9220     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9221       dirpart=`$as_dirname -- "$mf" ||
9222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9223          X"$mf" : 'X\(//\)[^/]' \| \
9224          X"$mf" : 'X\(//\)$' \| \
9225          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9226 $as_echo X"$mf" |
9227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9228             s//\1/
9229             q
9230           }
9231           /^X\(\/\/\)[^/].*/{
9232             s//\1/
9233             q
9234           }
9235           /^X\(\/\/\)$/{
9236             s//\1/
9237             q
9238           }
9239           /^X\(\/\).*/{
9240             s//\1/
9241             q
9242           }
9243           s/.*/./; q'`
9244     else
9245       continue
9246     fi
9247     # Extract the definition of DEPDIR, am__include, and am__quote
9248     # from the Makefile without running `make'.
9249     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9250     test -z "$DEPDIR" && continue
9251     am__include=`sed -n 's/^am__include = //p' < "$mf"`
9252     test -z "am__include" && continue
9253     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9254     # When using ansi2knr, U may be empty or an underscore; expand it
9255     U=`sed -n 's/^U = //p' < "$mf"`
9256     # Find all dependency output files, they are included files with
9257     # $(DEPDIR) in their names.  We invoke sed twice because it is the
9258     # simplest approach to changing $(DEPDIR) to its actual value in the
9259     # expansion.
9260     for file in `sed -n "
9261       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9262          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9263       # Make sure the directory exists.
9264       test -f "$dirpart/$file" && continue
9265       fdir=`$as_dirname -- "$file" ||
9266 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9267          X"$file" : 'X\(//\)[^/]' \| \
9268          X"$file" : 'X\(//\)$' \| \
9269          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9270 $as_echo X"$file" |
9271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9272             s//\1/
9273             q
9274           }
9275           /^X\(\/\/\)[^/].*/{
9276             s//\1/
9277             q
9278           }
9279           /^X\(\/\/\)$/{
9280             s//\1/
9281             q
9282           }
9283           /^X\(\/\).*/{
9284             s//\1/
9285             q
9286           }
9287           s/.*/./; q'`
9288       { as_dir=$dirpart/$fdir
9289   case $as_dir in #(
9290   -*) as_dir=./$as_dir;;
9291   esac
9292   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9293     as_dirs=
9294     while :; do
9295       case $as_dir in #(
9296       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9297       *) as_qdir=$as_dir;;
9298       esac
9299       as_dirs="'$as_qdir' $as_dirs"
9300       as_dir=`$as_dirname -- "$as_dir" ||
9301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9302          X"$as_dir" : 'X\(//\)[^/]' \| \
9303          X"$as_dir" : 'X\(//\)$' \| \
9304          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9305 $as_echo X"$as_dir" |
9306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9307             s//\1/
9308             q
9309           }
9310           /^X\(\/\/\)[^/].*/{
9311             s//\1/
9312             q
9313           }
9314           /^X\(\/\/\)$/{
9315             s//\1/
9316             q
9317           }
9318           /^X\(\/\).*/{
9319             s//\1/
9320             q
9321           }
9322           s/.*/./; q'`
9323       test -d "$as_dir" && break
9324     done
9325     test -z "$as_dirs" || eval "mkdir $as_dirs"
9326   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9327 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9328    { (exit 1); exit 1; }; }; }
9329       # echo "creating $dirpart/$file"
9330       echo '# dummy' > "$dirpart/$file"
9331     done
9332   done
9333 }
9334  ;;
9335     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
9336         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9337       esac ;;
9338
9339   esac
9340 done # for ac_tag
9341
9342
9343 { (exit 0); exit 0; }
9344 _ACEOF
9345 chmod +x $CONFIG_STATUS
9346 ac_clean_files=$ac_clean_files_save
9347
9348 test $ac_write_fail = 0 ||
9349   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
9350 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
9351    { (exit 1); exit 1; }; }
9352
9353
9354 # configure is writing to config.log, and then calls config.status.
9355 # config.status does its own redirection, appending to config.log.
9356 # Unfortunately, on DOS this fails, as config.log is still kept open
9357 # by configure, so config.status won't be able to write to it; its
9358 # output is simply discarded.  So we exec the FD to /dev/null,
9359 # effectively closing config.log, so it can be properly (re)opened and
9360 # appended to by config.status.  When coming back to configure, we
9361 # need to make the FD available again.
9362 if test "$no_create" != yes; then
9363   ac_cs_success=:
9364   ac_config_status_args=
9365   test "$silent" = yes &&
9366     ac_config_status_args="$ac_config_status_args --quiet"
9367   exec 5>/dev/null
9368   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9369   exec 5>>config.log
9370   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9371   # would make configure fail if this is the last instruction.
9372   $ac_cs_success || { (exit 1); exit 1; }
9373 fi
9374 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9375   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9376 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9377 fi
9378
9379