"Fossies" - the Fresh Open Source Software Archive 
Member "dosfstools-4.2/configure" (31 Jan 2021, 236196 Bytes) of package /linux/misc/dosfstools-4.2.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "configure":
4.1_vs_4.2.
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