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