"Fossies" - the Fresh Open Source Software Archive 
Member "sshpass-1.09/configure" (29 Jan 2021, 210586 Bytes) of package /linux/privat/sshpass-1.09.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":
1.07_vs_1.09.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sshpass 1.09.
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 # Copyright (C) 2006,2008,2011,2016,2021 Shachar Shemesh
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
270 $0: including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do have one."
273 fi
274 exit 1
275 fi
276 fi
277 fi
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
283
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
291 {
292 { eval $1=; unset $1;}
293 }
294 as_unset=as_fn_unset
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313
314 # as_fn_mkdir_p
315 # -------------
316 # Create "$as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
318 {
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360 } # as_fn_mkdir_p
361
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
366 {
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
374 # implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380 else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385 fi # as_fn_append
386
387 # as_fn_arith ARG...
388 # ------------------
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397 else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402 fi # as_fn_arith
403
404
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
410 as_fn_error ()
411 {
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419 } # as_fn_error
420
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424 else
425 as_expr=false
426 fi
427
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430 else
431 as_basename=false
432 fi
433
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436 else
437 as_dirname=false
438 fi
439
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
500 }
501
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
504 -n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511 *)
512 ECHO_N='-n';;
513 esac
514
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518 else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521 fi
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
535 fi
536 else
537 as_ln_s='cp -pR'
538 fi
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
541
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544 else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547 fi
548
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
551
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559 test -n "$DJDIR" || exec 7<&0 </dev/null
560 exec 6>&1
561
562 # Name of the host.
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567 #
568 # Initializations.
569 #
570 ac_default_prefix=/usr/local
571 ac_clean_files=
572 ac_config_libobj_dir=.
573 LIBOBJS=
574 cross_compiling=no
575 subdirs=
576 MFLAGS=
577 MAKEFLAGS=
578
579 # Identity of this package.
580 PACKAGE_NAME='sshpass'
581 PACKAGE_TARNAME='sshpass'
582 PACKAGE_VERSION='1.09'
583 PACKAGE_STRING='sshpass 1.09'
584 PACKAGE_BUGREPORT=''
585 PACKAGE_URL=''
586
587 ac_unique_file="main.c"
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 ac_subst_vars='am__EXEEXT_FALSE
625 am__EXEEXT_TRUE
626 LTLIBOBJS
627 LIBOBJS
628 EGREP
629 GREP
630 CPP
631 am__fastdepCC_FALSE
632 am__fastdepCC_TRUE
633 CCDEPMODE
634 am__nodep
635 AMDEPBACKSLASH
636 AMDEP_FALSE
637 AMDEP_TRUE
638 am__quote
639 am__include
640 DEPDIR
641 OBJEXT
642 EXEEXT
643 ac_ct_CC
644 CPPFLAGS
645 LDFLAGS
646 CFLAGS
647 CC
648 AM_BACKSLASH
649 AM_DEFAULT_VERBOSITY
650 AM_DEFAULT_V
651 AM_V
652 am__untar
653 am__tar
654 AMTAR
655 am__leading_dot
656 SET_MAKE
657 AWK
658 mkdir_p
659 MKDIR_P
660 INSTALL_STRIP_PROGRAM
661 STRIP
662 install_sh
663 MAKEINFO
664 AUTOHEADER
665 AUTOMAKE
666 AUTOCONF
667 ACLOCAL
668 VERSION
669 PACKAGE
670 CYGPATH_W
671 am__isrc
672 INSTALL_DATA
673 INSTALL_SCRIPT
674 INSTALL_PROGRAM
675 target_alias
676 host_alias
677 build_alias
678 LIBS
679 ECHO_T
680 ECHO_N
681 ECHO_C
682 DEFS
683 mandir
684 localedir
685 libdir
686 psdir
687 pdfdir
688 dvidir
689 htmldir
690 infodir
691 docdir
692 oldincludedir
693 includedir
694 runstatedir
695 localstatedir
696 sharedstatedir
697 sysconfdir
698 datadir
699 datarootdir
700 libexecdir
701 sbindir
702 bindir
703 program_transform_name
704 prefix
705 exec_prefix
706 PACKAGE_URL
707 PACKAGE_BUGREPORT
708 PACKAGE_STRING
709 PACKAGE_VERSION
710 PACKAGE_TARNAME
711 PACKAGE_NAME
712 PATH_SEPARATOR
713 SHELL'
714 ac_subst_files=''
715 ac_user_opts='
716 enable_option_checking
717 enable_silent_rules
718 enable_dependency_tracking
719 enable_password_prompt
720 '
721 ac_precious_vars='build_alias
722 host_alias
723 target_alias
724 CC
725 CFLAGS
726 LDFLAGS
727 LIBS
728 CPPFLAGS
729 CPP'
730
731
732 # Initialize some variables set by options.
733 ac_init_help=
734 ac_init_version=false
735 ac_unrecognized_opts=
736 ac_unrecognized_sep=
737 # The variables have the same names as the options, with
738 # dashes changed to underlines.
739 cache_file=/dev/null
740 exec_prefix=NONE
741 no_create=
742 no_recursion=
743 prefix=NONE
744 program_prefix=NONE
745 program_suffix=NONE
746 program_transform_name=s,x,x,
747 silent=
748 site=
749 srcdir=
750 verbose=
751 x_includes=NONE
752 x_libraries=NONE
753
754 # Installation directory options.
755 # These are left unexpanded so users can "make install exec_prefix=/foo"
756 # and all the variables that are supposed to be based on exec_prefix
757 # by default will actually change.
758 # Use braces instead of parens because sh, perl, etc. also accept them.
759 # (The list follows the same order as the GNU Coding Standards.)
760 bindir='${exec_prefix}/bin'
761 sbindir='${exec_prefix}/sbin'
762 libexecdir='${exec_prefix}/libexec'
763 datarootdir='${prefix}/share'
764 datadir='${datarootdir}'
765 sysconfdir='${prefix}/etc'
766 sharedstatedir='${prefix}/com'
767 localstatedir='${prefix}/var'
768 runstatedir='${localstatedir}/run'
769 includedir='${prefix}/include'
770 oldincludedir='/usr/include'
771 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772 infodir='${datarootdir}/info'
773 htmldir='${docdir}'
774 dvidir='${docdir}'
775 pdfdir='${docdir}'
776 psdir='${docdir}'
777 libdir='${exec_prefix}/lib'
778 localedir='${datarootdir}/locale'
779 mandir='${datarootdir}/man'
780
781 ac_prev=
782 ac_dashdash=
783 for ac_option
784 do
785 # If the previous option needs an argument, assign it.
786 if test -n "$ac_prev"; then
787 eval $ac_prev=\$ac_option
788 ac_prev=
789 continue
790 fi
791
792 case $ac_option in
793 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 *=) ac_optarg= ;;
795 *) ac_optarg=yes ;;
796 esac
797
798 # Accept the important Cygnus configure options, so we can diagnose typos.
799
800 case $ac_dashdash$ac_option in
801 --)
802 ac_dashdash=yes ;;
803
804 -bindir | --bindir | --bindi | --bind | --bin | --bi)
805 ac_prev=bindir ;;
806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807 bindir=$ac_optarg ;;
808
809 -build | --build | --buil | --bui | --bu)
810 ac_prev=build_alias ;;
811 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812 build_alias=$ac_optarg ;;
813
814 -cache-file | --cache-file | --cache-fil | --cache-fi \
815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816 ac_prev=cache_file ;;
817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819 cache_file=$ac_optarg ;;
820
821 --config-cache | -C)
822 cache_file=config.cache ;;
823
824 -datadir | --datadir | --datadi | --datad)
825 ac_prev=datadir ;;
826 -datadir=* | --datadir=* | --datadi=* | --datad=*)
827 datadir=$ac_optarg ;;
828
829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830 | --dataroo | --dataro | --datar)
831 ac_prev=datarootdir ;;
832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834 datarootdir=$ac_optarg ;;
835
836 -disable-* | --disable-*)
837 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840 as_fn_error $? "invalid feature name: $ac_useropt"
841 ac_useropt_orig=$ac_useropt
842 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843 case $ac_user_opts in
844 *"
845 "enable_$ac_useropt"
846 "*) ;;
847 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
848 ac_unrecognized_sep=', ';;
849 esac
850 eval enable_$ac_useropt=no ;;
851
852 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;;
856
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;;
861
862 -enable-* | --enable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error $? "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=\$ac_optarg ;;
877
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
885 exec_prefix=$ac_optarg ;;
886
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
890
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
897
898 -host | --host | --hos | --ho)
899 ac_prev=host_alias ;;
900 -host=* | --host=* | --hos=* | --ho=*)
901 host_alias=$ac_optarg ;;
902
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
908
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
914 includedir=$ac_optarg ;;
915
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919 infodir=$ac_optarg ;;
920
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 libdir=$ac_optarg ;;
925
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
931 libexecdir=$ac_optarg ;;
932
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
937
938 -localstatedir | --localstatedir | --localstatedi | --localstated \
939 | --localstate | --localstat | --localsta | --localst | --locals)
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943 localstatedir=$ac_optarg ;;
944
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 mandir=$ac_optarg ;;
949
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
953
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955 | --no-cr | --no-c | -n)
956 no_create=yes ;;
957
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
961
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969 oldincludedir=$ac_optarg ;;
970
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 prefix=$ac_optarg ;;
975
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981 program_prefix=$ac_optarg ;;
982
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988 program_suffix=$ac_optarg ;;
989
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
1005 program_transform_name=$ac_optarg ;;
1006
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1011
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1016
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1020
1021 -runstatedir | --runstatedir | --runstatedi | --runstated \
1022 | --runstate | --runstat | --runsta | --runst | --runs \
1023 | --run | --ru | --r)
1024 ac_prev=runstatedir ;;
1025 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1026 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1027 | --run=* | --ru=* | --r=*)
1028 runstatedir=$ac_optarg ;;
1029
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1035
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1046
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1051
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1056
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1063
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1068
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1071
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1074
1075 -with-* | --with-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid package name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084 "with_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval with_$ac_useropt=\$ac_optarg ;;
1090
1091 -without-* | --without-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval with_$ac_useropt=no ;;
1106
1107 --x)
1108 # Obsolete; use --with-x.
1109 with_x=yes ;;
1110
1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112 | --x-incl | --x-inc | --x-in | --x-i)
1113 ac_prev=x_includes ;;
1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116 x_includes=$ac_optarg ;;
1117
1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120 ac_prev=x_libraries ;;
1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123 x_libraries=$ac_optarg ;;
1124
1125 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1126 Try \`$0 --help' for more information"
1127 ;;
1128
1129 *=*)
1130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1131 # Reject names that are not valid shell variable names.
1132 case $ac_envvar in #(
1133 '' | [0-9]* | *[!_$as_cr_alnum]* )
1134 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1135 esac
1136 eval $ac_envvar=\$ac_optarg
1137 export $ac_envvar ;;
1138
1139 *)
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1145 ;;
1146
1147 esac
1148 done
1149
1150 if test -n "$ac_prev"; then
1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152 as_fn_error $? "missing argument to $ac_option"
1153 fi
1154
1155 if test -n "$ac_unrecognized_opts"; then
1156 case $enable_option_checking in
1157 no) ;;
1158 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160 esac
1161 fi
1162
1163 # Check all directory arguments for consistency.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir runstatedir
1168 do
1169 eval ac_val=\$$ac_var
1170 # Remove trailing slashes.
1171 case $ac_val in
1172 */ )
1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\$ac_val;;
1175 esac
1176 # Be sure to have absolute directory names.
1177 case $ac_val in
1178 [\\/$]* | ?:[\\/]* ) continue;;
1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180 esac
1181 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1182 done
1183
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1187 build=$build_alias
1188 host=$host_alias
1189 target=$target_alias
1190
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x; then
1193 if test "x$build_alias" = x; then
1194 cross_compiling=maybe
1195 elif test "x$build_alias" != "x$host_alias"; then
1196 cross_compiling=yes
1197 fi
1198 fi
1199
1200 ac_tool_prefix=
1201 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202
1203 test "$silent" = yes && exec 6>/dev/null
1204
1205
1206 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di=`ls -di .` &&
1208 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1209 as_fn_error $? "working directory cannot be determined"
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 as_fn_error $? "pwd does not report name of working directory"
1212
1213
1214 # Find the source files, if location was not specified.
1215 if test -z "$srcdir"; then
1216 ac_srcdir_defaulted=yes
1217 # Try the directory containing this script, then the parent directory.
1218 ac_confdir=`$as_dirname -- "$as_myself" ||
1219 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220 X"$as_myself" : 'X\(//\)[^/]' \| \
1221 X"$as_myself" : 'X\(//\)$' \| \
1222 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1223 $as_echo X"$as_myself" |
1224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\/\)[^/].*/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\/\)$/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\).*/{
1237 s//\1/
1238 q
1239 }
1240 s/.*/./; q'`
1241 srcdir=$ac_confdir
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1243 srcdir=..
1244 fi
1245 else
1246 ac_srcdir_defaulted=no
1247 fi
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1249 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1250 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1251 fi
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 ac_abs_confdir=`(
1254 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1255 pwd)`
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 srcdir=.
1259 fi
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1263 case $srcdir in
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 esac
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 done
1272
1273 #
1274 # Report the --help message.
1275 #
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1279 cat <<_ACEOF
1280 \`configure' configures sshpass 1.09 to adapt to many kinds of systems.
1281
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1283
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1286
1287 Defaults for the options are specified in brackets.
1288
1289 Configuration:
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking ...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1304 [PREFIX]
1305
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1310
1311 For better control, use the options below.
1312
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/sshpass]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
1334 _ACEOF
1335
1336 cat <<\_ACEOF
1337
1338 Program names:
1339 --program-prefix=PREFIX prepend PREFIX to installed program names
1340 --program-suffix=SUFFIX append SUFFIX to installed program names
1341 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1342 _ACEOF
1343 fi
1344
1345 if test -n "$ac_init_help"; then
1346 case $ac_init_help in
1347 short | recursive ) echo "Configuration of sshpass 1.09:";;
1348 esac
1349 cat <<\_ACEOF
1350
1351 Optional Features:
1352 --disable-option-checking ignore unrecognized --enable/--with options
1353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1355 --enable-silent-rules less verbose build output (undo: "make V=1")
1356 --disable-silent-rules verbose build output (undo: "make V=0")
1357 --enable-dependency-tracking
1358 do not reject slow dependency extractors
1359 --disable-dependency-tracking
1360 speeds up one-time build
1361 --enable-password-prompt=prompt
1362 Provide alternative ssh password prompt to look for.
1363
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CPP C preprocessor
1373
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1376
1377 Report bugs to the package provider.
1378 _ACEOF
1379 ac_status=$?
1380 fi
1381
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" ||
1386 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387 continue
1388 ac_builddir=.
1389
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *)
1393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1405
1406 case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1435 fi
1436
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439 cat <<\_ACEOF
1440 sshpass configure 1.09
1441 generated by GNU Autoconf 2.69
1442
1443 Copyright (C) 2012 Free Software Foundation, Inc.
1444 This configure script is free software; the Free Software Foundation
1445 gives unlimited permission to copy, distribute and modify it.
1446
1447 Copyright (C) 2006,2008,2011,2016,2021 Shachar Shemesh
1448 _ACEOF
1449 exit
1450 fi
1451
1452 ## ------------------------ ##
1453 ## Autoconf initialization. ##
1454 ## ------------------------ ##
1455
1456 # ac_fn_c_try_compile LINENO
1457 # --------------------------
1458 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1459 ac_fn_c_try_compile ()
1460 {
1461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1462 rm -f conftest.$ac_objext
1463 if { { ac_try="$ac_compile"
1464 case "(($ac_try" in
1465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1466 *) ac_try_echo=$ac_try;;
1467 esac
1468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1469 $as_echo "$ac_try_echo"; } >&5
1470 (eval "$ac_compile") 2>conftest.err
1471 ac_status=$?
1472 if test -s conftest.err; then
1473 grep -v '^ *+' conftest.err >conftest.er1
1474 cat conftest.er1 >&5
1475 mv -f conftest.er1 conftest.err
1476 fi
1477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478 test $ac_status = 0; } && {
1479 test -z "$ac_c_werror_flag" ||
1480 test ! -s conftest.err
1481 } && test -s conftest.$ac_objext; then :
1482 ac_retval=0
1483 else
1484 $as_echo "$as_me: failed program was:" >&5
1485 sed 's/^/| /' conftest.$ac_ext >&5
1486
1487 ac_retval=1
1488 fi
1489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1490 as_fn_set_status $ac_retval
1491
1492 } # ac_fn_c_try_compile
1493
1494 # ac_fn_c_try_cpp LINENO
1495 # ----------------------
1496 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_c_try_cpp ()
1498 {
1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500 if { { ac_try="$ac_cpp conftest.$ac_ext"
1501 case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504 esac
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } > conftest.i && {
1516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 }; then :
1519 ac_retval=0
1520 else
1521 $as_echo "$as_me: failed program was:" >&5
1522 sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1
1525 fi
1526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527 as_fn_set_status $ac_retval
1528
1529 } # ac_fn_c_try_cpp
1530
1531 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1532 # -------------------------------------------------------
1533 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1534 # the include files in INCLUDES and setting the cache variable VAR
1535 # accordingly.
1536 ac_fn_c_check_header_mongrel ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 if eval \${$3+:} false; then :
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1541 $as_echo_n "checking for $2... " >&6; }
1542 if eval \${$3+:} false; then :
1543 $as_echo_n "(cached) " >&6
1544 fi
1545 eval ac_res=\$$3
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1547 $as_echo "$ac_res" >&6; }
1548 else
1549 # Is the header compilable?
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1551 $as_echo_n "checking $2 usability... " >&6; }
1552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553 /* end confdefs.h. */
1554 $4
1555 #include <$2>
1556 _ACEOF
1557 if ac_fn_c_try_compile "$LINENO"; then :
1558 ac_header_compiler=yes
1559 else
1560 ac_header_compiler=no
1561 fi
1562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1564 $as_echo "$ac_header_compiler" >&6; }
1565
1566 # Is the header present?
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1568 $as_echo_n "checking $2 presence... " >&6; }
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1571 #include <$2>
1572 _ACEOF
1573 if ac_fn_c_try_cpp "$LINENO"; then :
1574 ac_header_preproc=yes
1575 else
1576 ac_header_preproc=no
1577 fi
1578 rm -f conftest.err conftest.i conftest.$ac_ext
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1580 $as_echo "$ac_header_preproc" >&6; }
1581
1582 # So? What about this header?
1583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1584 yes:no: )
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1586 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1588 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1589 ;;
1590 no:yes:* )
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1592 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1594 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1596 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1598 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1600 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1601 ;;
1602 esac
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1607 else
1608 eval "$3=\$ac_header_compiler"
1609 fi
1610 eval ac_res=\$$3
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615
1616 } # ac_fn_c_check_header_mongrel
1617
1618 # ac_fn_c_try_run LINENO
1619 # ----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1621 # that executables *can* be run.
1622 ac_fn_c_try_run ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_link"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>&5
1633 ac_status=$?
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1636 { { case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_try") 2>&5
1643 ac_status=$?
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; }; }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: program exited with status $ac_status" >&5
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=$ac_status
1653 fi
1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_run
1659
1660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists and can be compiled using the include files in
1663 # INCLUDES, setting the cache variable VAR accordingly.
1664 ac_fn_c_check_header_compile ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1671 else
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 $4
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_compile "$LINENO"; then :
1678 eval "$3=yes"
1679 else
1680 eval "$3=no"
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 fi
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689 } # ac_fn_c_check_header_compile
1690
1691 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1692 # -------------------------------------------
1693 # Tests whether TYPE exists after having included INCLUDES, setting cache
1694 # variable VAR accordingly.
1695 ac_fn_c_check_type ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1702 else
1703 eval "$3=no"
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1706 $4
1707 int
1708 main ()
1709 {
1710 if (sizeof ($2))
1711 return 0;
1712 ;
1713 return 0;
1714 }
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 $4
1720 int
1721 main ()
1722 {
1723 if (sizeof (($2)))
1724 return 0;
1725 ;
1726 return 0;
1727 }
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730
1731 else
1732 eval "$3=yes"
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 fi
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_type
1744
1745 # ac_fn_c_try_link LINENO
1746 # -----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_link ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest$ac_exeext
1752 if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 test -x conftest$ac_exeext
1773 }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780 fi
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_link
1790
1791 # ac_fn_c_check_func LINENO FUNC VAR
1792 # ----------------------------------
1793 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1794 ac_fn_c_check_func ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1806 #define $2 innocuous_$2
1807
1808 /* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char $2 (); below.
1810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1811 <limits.h> exists even on freestanding compilers. */
1812
1813 #ifdef __STDC__
1814 # include <limits.h>
1815 #else
1816 # include <assert.h>
1817 #endif
1818
1819 #undef $2
1820
1821 /* Override any GCC internal prototype to avoid an error.
1822 Use char because int might match the return type of a GCC
1823 builtin and then its argument prototype would still apply. */
1824 #ifdef __cplusplus
1825 extern "C"
1826 #endif
1827 char $2 ();
1828 /* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831 #if defined __stub_$2 || defined __stub___$2
1832 choke me
1833 #endif
1834
1835 int
1836 main ()
1837 {
1838 return $2 ();
1839 ;
1840 return 0;
1841 }
1842 _ACEOF
1843 if ac_fn_c_try_link "$LINENO"; then :
1844 eval "$3=yes"
1845 else
1846 eval "$3=no"
1847 fi
1848 rm -f core conftest.err conftest.$ac_objext \
1849 conftest$ac_exeext conftest.$ac_ext
1850 fi
1851 eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_c_check_func
1857 cat >config.log <<_ACEOF
1858 This file contains any messages produced by compilers while
1859 running configure, to aid debugging if configure makes a mistake.
1860
1861 It was created by sshpass $as_me 1.09, which was
1862 generated by GNU Autoconf 2.69. Invocation command line was
1863
1864 $ $0 $@
1865
1866 _ACEOF
1867 exec 5>>config.log
1868 {
1869 cat <<_ASUNAME
1870 ## --------- ##
1871 ## Platform. ##
1872 ## --------- ##
1873
1874 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1875 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1876 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1877 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1878 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1879
1880 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1881 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1882
1883 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1884 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1885 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1886 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1887 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1888 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1889 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1890
1891 _ASUNAME
1892
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 $as_echo "PATH: $as_dir"
1899 done
1900 IFS=$as_save_IFS
1901
1902 } >&5
1903
1904 cat >&5 <<_ACEOF
1905
1906
1907 ## ----------- ##
1908 ## Core tests. ##
1909 ## ----------- ##
1910
1911 _ACEOF
1912
1913
1914 # Keep a trace of the command line.
1915 # Strip out --no-create and --no-recursion so they do not pile up.
1916 # Strip out --silent because we don't want to record it for future runs.
1917 # Also quote any args containing shell meta-characters.
1918 # Make two passes to allow for proper duplicate-argument suppression.
1919 ac_configure_args=
1920 ac_configure_args0=
1921 ac_configure_args1=
1922 ac_must_keep_next=false
1923 for ac_pass in 1 2
1924 do
1925 for ac_arg
1926 do
1927 case $ac_arg in
1928 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1930 | -silent | --silent | --silen | --sile | --sil)
1931 continue ;;
1932 *\'*)
1933 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1934 esac
1935 case $ac_pass in
1936 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1937 2)
1938 as_fn_append ac_configure_args1 " '$ac_arg'"
1939 if test $ac_must_keep_next = true; then
1940 ac_must_keep_next=false # Got value, back to normal.
1941 else
1942 case $ac_arg in
1943 *=* | --config-cache | -C | -disable-* | --disable-* \
1944 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1945 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1946 | -with-* | --with-* | -without-* | --without-* | --x)
1947 case "$ac_configure_args0 " in
1948 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1949 esac
1950 ;;
1951 -* ) ac_must_keep_next=true ;;
1952 esac
1953 fi
1954 as_fn_append ac_configure_args " '$ac_arg'"
1955 ;;
1956 esac
1957 done
1958 done
1959 { ac_configure_args0=; unset ac_configure_args0;}
1960 { ac_configure_args1=; unset ac_configure_args1;}
1961
1962 # When interrupted or exit'd, cleanup temporary files, and complete
1963 # config.log. We remove comments because anyway the quotes in there
1964 # would cause problems or look ugly.
1965 # WARNING: Use '\'' to represent an apostrophe within the trap.
1966 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1967 trap 'exit_status=$?
1968 # Save into config.log some information that might help in debugging.
1969 {
1970 echo
1971
1972 $as_echo "## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##"
1975 echo
1976 # The following way of writing the cache mishandles newlines in values,
1977 (
1978 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1979 eval ac_val=\$$ac_var
1980 case $ac_val in #(
1981 *${as_nl}*)
1982 case $ac_var in #(
1983 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1985 esac
1986 case $ac_var in #(
1987 _ | IFS | as_nl) ;; #(
1988 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1989 *) { eval $ac_var=; unset $ac_var;} ;;
1990 esac ;;
1991 esac
1992 done
1993 (set) 2>&1 |
1994 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995 *${as_nl}ac_space=\ *)
1996 sed -n \
1997 "s/'\''/'\''\\\\'\'''\''/g;
1998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999 ;; #(
2000 *)
2001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002 ;;
2003 esac |
2004 sort
2005 )
2006 echo
2007
2008 $as_echo "## ----------------- ##
2009 ## Output variables. ##
2010 ## ----------------- ##"
2011 echo
2012 for ac_var in $ac_subst_vars
2013 do
2014 eval ac_val=\$$ac_var
2015 case $ac_val in
2016 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017 esac
2018 $as_echo "$ac_var='\''$ac_val'\''"
2019 done | sort
2020 echo
2021
2022 if test -n "$ac_subst_files"; then
2023 $as_echo "## ------------------- ##
2024 ## File substitutions. ##
2025 ## ------------------- ##"
2026 echo
2027 for ac_var in $ac_subst_files
2028 do
2029 eval ac_val=\$$ac_var
2030 case $ac_val in
2031 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2032 esac
2033 $as_echo "$ac_var='\''$ac_val'\''"
2034 done | sort
2035 echo
2036 fi
2037
2038 if test -s confdefs.h; then
2039 $as_echo "## ----------- ##
2040 ## confdefs.h. ##
2041 ## ----------- ##"
2042 echo
2043 cat confdefs.h
2044 echo
2045 fi
2046 test "$ac_signal" != 0 &&
2047 $as_echo "$as_me: caught signal $ac_signal"
2048 $as_echo "$as_me: exit $exit_status"
2049 } >&5
2050 rm -f core *.core core.conftest.* &&
2051 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2052 exit $exit_status
2053 ' 0
2054 for ac_signal in 1 2 13 15; do
2055 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2056 done
2057 ac_signal=0
2058
2059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2060 rm -f -r conftest* confdefs.h
2061
2062 $as_echo "/* confdefs.h */" > confdefs.h
2063
2064 # Predefined preprocessor variables.
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_NAME "$PACKAGE_NAME"
2068 _ACEOF
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_URL "$PACKAGE_URL"
2088 _ACEOF
2089
2090
2091 # Let the site file select an alternate cache file if it wants to.
2092 # Prefer an explicitly selected file to automatically selected ones.
2093 ac_site_file1=NONE
2094 ac_site_file2=NONE
2095 if test -n "$CONFIG_SITE"; then
2096 # We do not want a PATH search for config.site.
2097 case $CONFIG_SITE in #((
2098 -*) ac_site_file1=./$CONFIG_SITE;;
2099 */*) ac_site_file1=$CONFIG_SITE;;
2100 *) ac_site_file1=./$CONFIG_SITE;;
2101 esac
2102 elif test "x$prefix" != xNONE; then
2103 ac_site_file1=$prefix/share/config.site
2104 ac_site_file2=$prefix/etc/config.site
2105 else
2106 ac_site_file1=$ac_default_prefix/share/config.site
2107 ac_site_file2=$ac_default_prefix/etc/config.site
2108 fi
2109 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2110 do
2111 test "x$ac_site_file" = xNONE && continue
2112 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2114 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2115 sed 's/^/| /' "$ac_site_file" >&5
2116 . "$ac_site_file" \
2117 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2119 as_fn_error $? "failed to load site script $ac_site_file
2120 See \`config.log' for more details" "$LINENO" 5; }
2121 fi
2122 done
2123
2124 if test -r "$cache_file"; then
2125 # Some versions of bash will fail to source /dev/null (special files
2126 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2127 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2129 $as_echo "$as_me: loading cache $cache_file" >&6;}
2130 case $cache_file in
2131 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2132 *) . "./$cache_file";;
2133 esac
2134 fi
2135 else
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2137 $as_echo "$as_me: creating cache $cache_file" >&6;}
2138 >$cache_file
2139 fi
2140
2141 # Check that the precious variables saved in the cache have kept the same
2142 # value.
2143 ac_cache_corrupted=false
2144 for ac_var in $ac_precious_vars; do
2145 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2146 eval ac_new_set=\$ac_env_${ac_var}_set
2147 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2148 eval ac_new_val=\$ac_env_${ac_var}_value
2149 case $ac_old_set,$ac_new_set in
2150 set,)
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2154 ,set)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,);;
2159 *)
2160 if test "x$ac_old_val" != "x$ac_new_val"; then
2161 # differences in whitespace do not lead to failure.
2162 ac_old_val_w=`echo x $ac_old_val`
2163 ac_new_val_w=`echo x $ac_new_val`
2164 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2166 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2167 ac_cache_corrupted=:
2168 else
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2170 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2171 eval $ac_var=\$ac_old_val
2172 fi
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2174 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2176 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2177 fi;;
2178 esac
2179 # Pass precious variables to config.status.
2180 if test "$ac_new_set" = set; then
2181 case $ac_new_val in
2182 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2183 *) ac_arg=$ac_var=$ac_new_val ;;
2184 esac
2185 case " $ac_configure_args " in
2186 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2187 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2188 esac
2189 fi
2190 done
2191 if $ac_cache_corrupted; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2195 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2196 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2197 fi
2198 ## -------------------- ##
2199 ## Main body of script. ##
2200 ## -------------------- ##
2201
2202 ac_ext=c
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2207
2208
2209 am__api_version='1.15'
2210
2211 ac_aux_dir=
2212 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2213 if test -f "$ac_dir/install-sh"; then
2214 ac_aux_dir=$ac_dir
2215 ac_install_sh="$ac_aux_dir/install-sh -c"
2216 break
2217 elif test -f "$ac_dir/install.sh"; then
2218 ac_aux_dir=$ac_dir
2219 ac_install_sh="$ac_aux_dir/install.sh -c"
2220 break
2221 elif test -f "$ac_dir/shtool"; then
2222 ac_aux_dir=$ac_dir
2223 ac_install_sh="$ac_aux_dir/shtool install -c"
2224 break
2225 fi
2226 done
2227 if test -z "$ac_aux_dir"; then
2228 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2229 fi
2230
2231 # These three variables are undocumented and unsupported,
2232 # and are intended to be withdrawn in a future Autoconf release.
2233 # They can cause serious problems if a builder's source tree is in a directory
2234 # whose full name contains unusual characters.
2235 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2236 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2237 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2238
2239
2240 # Find a good install program. We prefer a C program (faster),
2241 # so one script is as good as another. But avoid the broken or
2242 # incompatible versions:
2243 # SysV /etc/install, /usr/sbin/install
2244 # SunOS /usr/etc/install
2245 # IRIX /sbin/install
2246 # AIX /bin/install
2247 # AmigaOS /C/install, which installs bootblocks on floppy discs
2248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2251 # OS/2's system install, which has a completely different semantic
2252 # ./install, which can be erroneously created by make from ./install.sh.
2253 # Reject install programs that cannot install multiple files.
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2255 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2256 if test -z "$INSTALL"; then
2257 if ${ac_cv_path_install+:} false; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 # Account for people who put trailing slashes in PATH elements.
2266 case $as_dir/ in #((
2267 ./ | .// | /[cC]/* | \
2268 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2269 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2270 /usr/ucb/* ) ;;
2271 *)
2272 # OSF1 and SCO ODT 3.0 have their own names for install.
2273 # Don't use installbsd from OSF since it installs stuff as root
2274 # by default.
2275 for ac_prog in ginstall scoinst install; do
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2278 if test $ac_prog = install &&
2279 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2280 # AIX install. It has an incompatible calling convention.
2281 :
2282 elif test $ac_prog = install &&
2283 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2284 # program-specific install script used by HP pwplus--don't use.
2285 :
2286 else
2287 rm -rf conftest.one conftest.two conftest.dir
2288 echo one > conftest.one
2289 echo two > conftest.two
2290 mkdir conftest.dir
2291 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2292 test -s conftest.one && test -s conftest.two &&
2293 test -s conftest.dir/conftest.one &&
2294 test -s conftest.dir/conftest.two
2295 then
2296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2297 break 3
2298 fi
2299 fi
2300 fi
2301 done
2302 done
2303 ;;
2304 esac
2305
2306 done
2307 IFS=$as_save_IFS
2308
2309 rm -rf conftest.one conftest.two conftest.dir
2310
2311 fi
2312 if test "${ac_cv_path_install+set}" = set; then
2313 INSTALL=$ac_cv_path_install
2314 else
2315 # As a last resort, use the slow shell script. Don't cache a
2316 # value for INSTALL within a source directory, because that will
2317 # break other packages using the cache if that directory is
2318 # removed, or if the value is a relative name.
2319 INSTALL=$ac_install_sh
2320 fi
2321 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2323 $as_echo "$INSTALL" >&6; }
2324
2325 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2326 # It thinks the first close brace ends the variable substitution.
2327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2328
2329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2330
2331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2332
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2334 $as_echo_n "checking whether build environment is sane... " >&6; }
2335 # Reject unsafe characters in $srcdir or the absolute working directory
2336 # name. Accept space and tab only in the latter.
2337 am_lf='
2338 '
2339 case `pwd` in
2340 *[\\\"\#\$\&\'\`$am_lf]*)
2341 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2342 esac
2343 case $srcdir in
2344 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2345 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2346 esac
2347
2348 # Do 'set' in a subshell so we don't clobber the current shell's
2349 # arguments. Must try -L first in case configure is actually a
2350 # symlink; some systems play weird games with the mod time of symlinks
2351 # (eg FreeBSD returns the mod time of the symlink's containing
2352 # directory).
2353 if (
2354 am_has_slept=no
2355 for am_try in 1 2; do
2356 echo "timestamp, slept: $am_has_slept" > conftest.file
2357 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2358 if test "$*" = "X"; then
2359 # -L didn't work.
2360 set X `ls -t "$srcdir/configure" conftest.file`
2361 fi
2362 if test "$*" != "X $srcdir/configure conftest.file" \
2363 && test "$*" != "X conftest.file $srcdir/configure"; then
2364
2365 # If neither matched, then we have a broken ls. This can happen
2366 # if, for instance, CONFIG_SHELL is bash and it inherits a
2367 # broken ls alias from the environment. This has actually
2368 # happened. Such a system could not be considered "sane".
2369 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2370 alias in your environment" "$LINENO" 5
2371 fi
2372 if test "$2" = conftest.file || test $am_try -eq 2; then
2373 break
2374 fi
2375 # Just in case.
2376 sleep 1
2377 am_has_slept=yes
2378 done
2379 test "$2" = conftest.file
2380 )
2381 then
2382 # Ok.
2383 :
2384 else
2385 as_fn_error $? "newly created file is older than distributed files!
2386 Check your system clock" "$LINENO" 5
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2389 $as_echo "yes" >&6; }
2390 # If we didn't sleep, we still need to ensure time stamps of config.status and
2391 # generated files are strictly newer.
2392 am_sleep_pid=
2393 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2394 ( sleep 1 ) &
2395 am_sleep_pid=$!
2396 fi
2397
2398 rm -f conftest.file
2399
2400 test "$program_prefix" != NONE &&
2401 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2402 # Use a double $ so make ignores it.
2403 test "$program_suffix" != NONE &&
2404 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2405 # Double any \ or $.
2406 # By default was `s,x,x', remove it if useless.
2407 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2409
2410 # Expand $ac_aux_dir to an absolute path.
2411 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2412
2413 if test x"${MISSING+set}" != xset; then
2414 case $am_aux_dir in
2415 *\ * | *\ *)
2416 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2417 *)
2418 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2419 esac
2420 fi
2421 # Use eval to expand $SHELL
2422 if eval "$MISSING --is-lightweight"; then
2423 am_missing_run="$MISSING "
2424 else
2425 am_missing_run=
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2427 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2428 fi
2429
2430 if test x"${install_sh+set}" != xset; then
2431 case $am_aux_dir in
2432 *\ * | *\ *)
2433 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2434 *)
2435 install_sh="\${SHELL} $am_aux_dir/install-sh"
2436 esac
2437 fi
2438
2439 # Installed binaries are usually stripped using 'strip' when the user
2440 # run "make install-strip". However 'strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the 'STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_STRIP+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$STRIP"; then
2453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2475 $as_echo "$STRIP" >&6; }
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2480
2481
2482 fi
2483 if test -z "$ac_cv_prog_STRIP"; then
2484 ac_ct_STRIP=$STRIP
2485 # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test -n "$ac_ct_STRIP"; then
2493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502 ac_cv_prog_ac_ct_STRIP="strip"
2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2505 fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2515 $as_echo "$ac_ct_STRIP" >&6; }
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2520
2521 if test "x$ac_ct_STRIP" = x; then
2522 STRIP=":"
2523 else
2524 case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2529 esac
2530 STRIP=$ac_ct_STRIP
2531 fi
2532 else
2533 STRIP="$ac_cv_prog_STRIP"
2534 fi
2535
2536 fi
2537 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2538
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2540 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2541 if test -z "$MKDIR_P"; then
2542 if ${ac_cv_path_mkdir+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2547 do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_prog in mkdir gmkdir; do
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2553 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2554 'mkdir (GNU coreutils) '* | \
2555 'mkdir (coreutils) '* | \
2556 'mkdir (fileutils) '4.1*)
2557 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2558 break 3;;
2559 esac
2560 done
2561 done
2562 done
2563 IFS=$as_save_IFS
2564
2565 fi
2566
2567 test -d ./--version && rmdir ./--version
2568 if test "${ac_cv_path_mkdir+set}" = set; then
2569 MKDIR_P="$ac_cv_path_mkdir -p"
2570 else
2571 # As a last resort, use the slow shell script. Don't cache a
2572 # value for MKDIR_P within a source directory, because that will
2573 # break other packages using the cache if that directory is
2574 # removed, or if the value is a relative name.
2575 MKDIR_P="$ac_install_sh -d"
2576 fi
2577 fi
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2579 $as_echo "$MKDIR_P" >&6; }
2580
2581 for ac_prog in gawk mawk nawk awk
2582 do
2583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2584 set dummy $ac_prog; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if ${ac_cv_prog_AWK+:} false; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 if test -n "$AWK"; then
2591 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600 ac_cv_prog_AWK="$ac_prog"
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 AWK=$ac_cv_prog_AWK
2611 if test -n "$AWK"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2613 $as_echo "$AWK" >&6; }
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2617 fi
2618
2619
2620 test -n "$AWK" && break
2621 done
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2624 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2625 set x ${MAKE-make}
2626 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2627 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 cat >conftest.make <<\_ACEOF
2631 SHELL = /bin/sh
2632 all:
2633 @echo '@@@%%%=$(MAKE)=@@@%%%'
2634 _ACEOF
2635 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2637 *@@@%%%=?*=@@@%%%*)
2638 eval ac_cv_prog_make_${ac_make}_set=yes;;
2639 *)
2640 eval ac_cv_prog_make_${ac_make}_set=no;;
2641 esac
2642 rm -f conftest.make
2643 fi
2644 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2647 SET_MAKE=
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 SET_MAKE="MAKE=${MAKE-make}"
2652 fi
2653
2654 rm -rf .tst 2>/dev/null
2655 mkdir .tst 2>/dev/null
2656 if test -d .tst; then
2657 am__leading_dot=.
2658 else
2659 am__leading_dot=_
2660 fi
2661 rmdir .tst 2>/dev/null
2662
2663 # Check whether --enable-silent-rules was given.
2664 if test "${enable_silent_rules+set}" = set; then :
2665 enableval=$enable_silent_rules;
2666 fi
2667
2668 case $enable_silent_rules in # (((
2669 yes) AM_DEFAULT_VERBOSITY=0;;
2670 no) AM_DEFAULT_VERBOSITY=1;;
2671 *) AM_DEFAULT_VERBOSITY=1;;
2672 esac
2673 am_make=${MAKE-make}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2675 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2676 if ${am_cv_make_support_nested_variables+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if $as_echo 'TRUE=$(BAR$(V))
2680 BAR0=false
2681 BAR1=true
2682 V=1
2683 am__doit:
2684 @$(TRUE)
2685 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2686 am_cv_make_support_nested_variables=yes
2687 else
2688 am_cv_make_support_nested_variables=no
2689 fi
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2692 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2693 if test $am_cv_make_support_nested_variables = yes; then
2694 AM_V='$(V)'
2695 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2696 else
2697 AM_V=$AM_DEFAULT_VERBOSITY
2698 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2699 fi
2700 AM_BACKSLASH='\'
2701
2702 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2703 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2704 # is not polluted with repeated "-I."
2705 am__isrc=' -I$(srcdir)'
2706 # test to see if srcdir already configured
2707 if test -f $srcdir/config.status; then
2708 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2709 fi
2710 fi
2711
2712 # test whether we have cygpath
2713 if test -z "$CYGPATH_W"; then
2714 if (cygpath --version) >/dev/null 2>/dev/null; then
2715 CYGPATH_W='cygpath -w'
2716 else
2717 CYGPATH_W=echo
2718 fi
2719 fi
2720
2721
2722 # Define the identity of the package.
2723 PACKAGE='sshpass'
2724 VERSION='1.09'
2725
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE "$PACKAGE"
2729 _ACEOF
2730
2731
2732 cat >>confdefs.h <<_ACEOF
2733 #define VERSION "$VERSION"
2734 _ACEOF
2735
2736 # Some tools Automake needs.
2737
2738 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2739
2740
2741 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2742
2743
2744 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2745
2746
2747 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2748
2749
2750 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2751
2752 # For better backward compatibility. To be removed once Automake 1.9.x
2753 # dies out for good. For more background, see:
2754 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2755 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2756 mkdir_p='$(MKDIR_P)'
2757
2758 # We need awk for the "check" target (and possibly the TAP driver). The
2759 # system "awk" is bad on some platforms.
2760 # Always define AMTAR for backward compatibility. Yes, it's still used
2761 # in the wild :-( We should find a proper way to deprecate it ...
2762 AMTAR='$${TAR-tar}'
2763
2764
2765 # We'll loop over all known methods to create a tar archive until one works.
2766 _am_tools='gnutar pax cpio none'
2767
2768 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2769
2770
2771
2772
2773
2774
2775 # POSIX will say in a future version that running "rm -f" with no argument
2776 # is OK; and we want to be able to make that assumption in our Makefile
2777 # recipes. So use an aggressive probe to check that the usage we want is
2778 # actually supported "in the wild" to an acceptable degree.
2779 # See automake bug#10828.
2780 # To make any issue more visible, cause the running configure to be aborted
2781 # by default if the 'rm' program in use doesn't match our expectations; the
2782 # user can still override this though.
2783 if rm -f && rm -fr && rm -rf; then : OK; else
2784 cat >&2 <<'END'
2785 Oops!
2786
2787 Your 'rm' program seems unable to run without file operands specified
2788 on the command line, even when the '-f' option is present. This is contrary
2789 to the behaviour of most rm programs out there, and not conforming with
2790 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2791
2792 Please tell bug-automake@gnu.org about your system, including the value
2793 of your $PATH and any error possibly output before this message. This
2794 can help us improve future automake versions.
2795
2796 END
2797 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2798 echo 'Configuration will proceed anyway, since you have set the' >&2
2799 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2800 echo >&2
2801 else
2802 cat >&2 <<'END'
2803 Aborting the configuration process, to ensure you take notice of the issue.
2804
2805 You can download and install GNU coreutils to get an 'rm' implementation
2806 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2807
2808 If you want to complete the configuration process using your problematic
2809 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2810 to "yes", and re-run configure.
2811
2812 END
2813 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2814 fi
2815 fi
2816
2817
2818
2819
2820 DEPDIR="${am__leading_dot}deps"
2821
2822 ac_config_commands="$ac_config_commands depfiles"
2823
2824
2825 am_make=${MAKE-make}
2826 cat > confinc << 'END'
2827 am__doit:
2828 @echo this is the am__doit target
2829 .PHONY: am__doit
2830 END
2831 # If we don't find an include directive, just comment out the code.
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2833 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2834 am__include="#"
2835 am__quote=
2836 _am_result=none
2837 # First try GNU make style include.
2838 echo "include confinc" > confmf
2839 # Ignore all kinds of additional output from 'make'.
2840 case `$am_make -s -f confmf 2> /dev/null` in #(
2841 *the\ am__doit\ target*)
2842 am__include=include
2843 am__quote=
2844 _am_result=GNU
2845 ;;
2846 esac
2847 # Now try BSD make style include.
2848 if test "$am__include" = "#"; then
2849 echo '.include "confinc"' > confmf
2850 case `$am_make -s -f confmf 2> /dev/null` in #(
2851 *the\ am__doit\ target*)
2852 am__include=.include
2853 am__quote="\""
2854 _am_result=BSD
2855 ;;
2856 esac
2857 fi
2858
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2861 $as_echo "$_am_result" >&6; }
2862 rm -f confinc confmf
2863
2864 # Check whether --enable-dependency-tracking was given.
2865 if test "${enable_dependency_tracking+set}" = set; then :
2866 enableval=$enable_dependency_tracking;
2867 fi
2868
2869 if test "x$enable_dependency_tracking" != xno; then
2870 am_depcomp="$ac_aux_dir/depcomp"
2871 AMDEPBACKSLASH='\'
2872 am__nodep='_no'
2873 fi
2874 if test "x$enable_dependency_tracking" != xno; then
2875 AMDEP_TRUE=
2876 AMDEP_FALSE='#'
2877 else
2878 AMDEP_TRUE='#'
2879 AMDEP_FALSE=
2880 fi
2881
2882
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 if test -n "$ac_tool_prefix"; then
2889 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 fi
2927 if test -z "$ac_cv_prog_CC"; then
2928 ac_ct_CC=$CC
2929 # Extract the first word of "gcc", so it can be a program name with args.
2930 set dummy gcc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$ac_ct_CC"; then
2937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_ac_ct_CC="gcc"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959 $as_echo "$ac_ct_CC" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965 if test "x$ac_ct_CC" = x; then
2966 CC=""
2967 else
2968 case $cross_compiling:$ac_tool_warned in
2969 yes:)
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2972 ac_tool_warned=yes ;;
2973 esac
2974 CC=$ac_ct_CC
2975 fi
2976 else
2977 CC="$ac_cv_prog_CC"
2978 fi
2979
2980 if test -z "$CC"; then
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}cc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_CC="${ac_tool_prefix}cc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3013 else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 fi
3017
3018
3019 fi
3020 fi
3021 if test -z "$CC"; then
3022 # Extract the first word of "cc", so it can be a program name with args.
3023 set dummy cc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 else
3032 ac_prog_rejected=no
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3041 ac_prog_rejected=yes
3042 continue
3043 fi
3044 ac_cv_prog_CC="cc"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 if test $ac_prog_rejected = yes; then
3053 # We found a bogon in the path, so make sure we never use it.
3054 set dummy $ac_cv_prog_CC
3055 shift
3056 if test $# != 0; then
3057 # We chose a different compiler from the bogus one.
3058 # However, it has the same basename, so the bogon will be chosen
3059 # first if we set CC to just the basename; use the full file name.
3060 shift
3061 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3062 fi
3063 fi
3064 fi
3065 fi
3066 CC=$ac_cv_prog_CC
3067 if test -n "$CC"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076 fi
3077 if test -z "$CC"; then
3078 if test -n "$ac_tool_prefix"; then
3079 for ac_prog in cl.exe
3080 do
3081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 test -n "$CC" && break
3119 done
3120 fi
3121 if test -z "$CC"; then
3122 ac_ct_CC=$CC
3123 for ac_prog in cl.exe
3124 do
3125 # Extract the first word of "$ac_prog", so it can be a program name with args.
3126 set dummy $ac_prog; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test -n "$ac_ct_CC"; then
3133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_ac_ct_CC="$ac_prog"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 break 2
3145 fi
3146 done
3147 done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153 if test -n "$ac_ct_CC"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3155 $as_echo "$ac_ct_CC" >&6; }
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161
3162 test -n "$ac_ct_CC" && break
3163 done
3164
3165 if test "x$ac_ct_CC" = x; then
3166 CC=""
3167 else
3168 case $cross_compiling:$ac_tool_warned in
3169 yes:)
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3172 ac_tool_warned=yes ;;
3173 esac
3174 CC=$ac_ct_CC
3175 fi
3176 fi
3177
3178 fi
3179
3180
3181 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $? "no acceptable C compiler found in \$PATH
3184 See \`config.log' for more details" "$LINENO" 5; }
3185
3186 # Provide some information about the compiler.
3187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3188 set X $ac_compile
3189 ac_compiler=$2
3190 for ac_option in --version -v -V -qversion; do
3191 { { ac_try="$ac_compiler $ac_option >&5"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3199 ac_status=$?
3200 if test -s conftest.err; then
3201 sed '10a\
3202 ... rest of stderr output deleted ...
3203 10q' conftest.err >conftest.er1
3204 cat conftest.er1 >&5
3205 fi
3206 rm -f conftest.er1 conftest.err
3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208 test $ac_status = 0; }
3209 done
3210
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3213
3214 int
3215 main ()
3216 {
3217
3218 ;
3219 return 0;
3220 }
3221 _ACEOF
3222 ac_clean_files_save=$ac_clean_files
3223 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3224 # Try to create an executable without -o first, disregard a.out.
3225 # It will help us diagnose broken compilers, and finding out an intuition
3226 # of exeext.
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3228 $as_echo_n "checking whether the C compiler works... " >&6; }
3229 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3230
3231 # The possible output files:
3232 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3233
3234 ac_rmfiles=
3235 for ac_file in $ac_files
3236 do
3237 case $ac_file in
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3239 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3240 esac
3241 done
3242 rm -f $ac_rmfiles
3243
3244 if { { ac_try="$ac_link_default"
3245 case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251 (eval "$ac_link_default") 2>&5
3252 ac_status=$?
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }; then :
3255 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3256 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3257 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3258 # so that the user can short-circuit this test for compilers unknown to
3259 # Autoconf.
3260 for ac_file in $ac_files ''
3261 do
3262 test -f "$ac_file" || continue
3263 case $ac_file in
3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3265 ;;
3266 [ab].out )
3267 # We found the default executable, but exeext='' is most
3268 # certainly right.
3269 break;;
3270 *.* )
3271 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3272 then :; else
3273 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274 fi
3275 # We set ac_cv_exeext here because the later test for it is not
3276 # safe: cross compilers may not add the suffix if given an `-o'
3277 # argument, so we may need to know it at that point already.
3278 # Even if this section looks crufty: it has the advantage of
3279 # actually working.
3280 break;;
3281 * )
3282 break;;
3283 esac
3284 done
3285 test "$ac_cv_exeext" = no && ac_cv_exeext=
3286
3287 else
3288 ac_file=''
3289 fi
3290 if test -z "$ac_file"; then :
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 $as_echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error 77 "C compiler cannot create executables
3299 See \`config.log' for more details" "$LINENO" 5; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302 $as_echo "yes" >&6; }
3303 fi
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3305 $as_echo_n "checking for C compiler default output file name... " >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3307 $as_echo "$ac_file" >&6; }
3308 ac_exeext=$ac_cv_exeext
3309
3310 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3311 ac_clean_files=$ac_clean_files_save
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3313 $as_echo_n "checking for suffix of executables... " >&6; }
3314 if { { ac_try="$ac_link"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }; then :
3325 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3327 # work properly (i.e., refer to `conftest.exe'), while it won't with
3328 # `rm'.
3329 for ac_file in conftest.exe conftest conftest.*; do
3330 test -f "$ac_file" || continue
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 break;;
3335 * ) break;;
3336 esac
3337 done
3338 else
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3342 See \`config.log' for more details" "$LINENO" 5; }
3343 fi
3344 rm -f conftest conftest$ac_cv_exeext
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3346 $as_echo "$ac_cv_exeext" >&6; }
3347
3348 rm -f conftest.$ac_ext
3349 EXEEXT=$ac_cv_exeext
3350 ac_exeext=$EXEEXT
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3353 #include <stdio.h>
3354 int
3355 main ()
3356 {
3357 FILE *f = fopen ("conftest.out", "w");
3358 return ferror (f) || fclose (f) != 0;
3359
3360 ;
3361 return 0;
3362 }
3363 _ACEOF
3364 ac_clean_files="$ac_clean_files conftest.out"
3365 # Check that the compiler produces executables we can run. If not, either
3366 # the compiler is broken, or we cross compile.
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3368 $as_echo_n "checking whether we are cross compiling... " >&6; }
3369 if test "$cross_compiling" != yes; then
3370 { { ac_try="$ac_link"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }
3381 if { ac_try='./conftest$ac_cv_exeext'
3382 { { case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_try") 2>&5
3389 ac_status=$?
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; }; then
3392 cross_compiling=no
3393 else
3394 if test "$cross_compiling" = maybe; then
3395 cross_compiling=yes
3396 else
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error $? "cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details" "$LINENO" 5; }
3402 fi
3403 fi
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3406 $as_echo "$cross_compiling" >&6; }
3407
3408 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3409 ac_clean_files=$ac_clean_files_save
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3411 $as_echo_n "checking for suffix of object files... " >&6; }
3412 if ${ac_cv_objext+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 rm -f conftest.o conftest.obj
3427 if { { ac_try="$ac_compile"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434 (eval "$ac_compile") 2>&5
3435 ac_status=$?
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }; then :
3438 for ac_file in conftest.o conftest.obj conftest.*; do
3439 test -f "$ac_file" || continue;
3440 case $ac_file in
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443 break;;
3444 esac
3445 done
3446 else
3447 $as_echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details" "$LINENO" 5; }
3454 fi
3455 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3458 $as_echo "$ac_cv_objext" >&6; }
3459 OBJEXT=$ac_cv_objext
3460 ac_objext=$OBJEXT
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3462 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3463 if ${ac_cv_c_compiler_gnu+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468
3469 int
3470 main ()
3471 {
3472 #ifndef __GNUC__
3473 choke me
3474 #endif
3475
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 if ac_fn_c_try_compile "$LINENO"; then :
3481 ac_compiler_gnu=yes
3482 else
3483 ac_compiler_gnu=no
3484 fi
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3487
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3490 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3491 if test $ac_compiler_gnu = yes; then
3492 GCC=yes
3493 else
3494 GCC=
3495 fi
3496 ac_test_CFLAGS=${CFLAGS+set}
3497 ac_save_CFLAGS=$CFLAGS
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3499 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3500 if ${ac_cv_prog_cc_g+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 ac_save_c_werror_flag=$ac_c_werror_flag
3504 ac_c_werror_flag=yes
3505 ac_cv_prog_cc_g=no
3506 CFLAGS="-g"
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509
3510 int
3511 main ()
3512 {
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519 ac_cv_prog_cc_g=yes
3520 else
3521 CFLAGS=""
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524
3525 int
3526 main ()
3527 {
3528
3529 ;
3530 return 0;
3531 }
3532 _ACEOF
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534
3535 else
3536 ac_c_werror_flag=$ac_save_c_werror_flag
3537 CFLAGS="-g"
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3540
3541 int
3542 main ()
3543 {
3544
3545 ;
3546 return 0;
3547 }
3548 _ACEOF
3549 if ac_fn_c_try_compile "$LINENO"; then :
3550 ac_cv_prog_cc_g=yes
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 ac_c_werror_flag=$ac_save_c_werror_flag
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3560 $as_echo "$ac_cv_prog_cc_g" >&6; }
3561 if test "$ac_test_CFLAGS" = set; then
3562 CFLAGS=$ac_save_CFLAGS
3563 elif test $ac_cv_prog_cc_g = yes; then
3564 if test "$GCC" = yes; then
3565 CFLAGS="-g -O2"
3566 else
3567 CFLAGS="-g"
3568 fi
3569 else
3570 if test "$GCC" = yes; then
3571 CFLAGS="-O2"
3572 else
3573 CFLAGS=
3574 fi
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3577 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3578 if ${ac_cv_prog_cc_c89+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 ac_cv_prog_cc_c89=no
3582 ac_save_CC=$CC
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585 #include <stdarg.h>
3586 #include <stdio.h>
3587 struct stat;
3588 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3589 struct buf { int x; };
3590 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591 static char *e (p, i)
3592 char **p;
3593 int i;
3594 {
3595 return p[i];
3596 }
3597 static char *f (char * (*g) (char **, int), char **p, ...)
3598 {
3599 char *s;
3600 va_list v;
3601 va_start (v,p);
3602 s = g (p, va_arg (v,int));
3603 va_end (v);
3604 return s;
3605 }
3606
3607 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3608 function prototypes and stuff, but not '\xHH' hex character constants.
3609 These don't provoke an error unfortunately, instead are silently treated
3610 as 'x'. The following induces an error, until -std is added to get
3611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3612 array size at least. It's necessary to write '\x00'==0 to get something
3613 that's true only with -std. */
3614 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615
3616 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3617 inside strings and character constants. */
3618 #define FOO(x) 'x'
3619 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3620
3621 int test (int i, double x);
3622 struct s1 {int (*f) (int a);};
3623 struct s2 {int (*f) (double a);};
3624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3625 int argc;
3626 char **argv;
3627 int
3628 main ()
3629 {
3630 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3636 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3637 do
3638 CC="$ac_save_CC $ac_arg"
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640 ac_cv_prog_cc_c89=$ac_arg
3641 fi
3642 rm -f core conftest.err conftest.$ac_objext
3643 test "x$ac_cv_prog_cc_c89" != "xno" && break
3644 done
3645 rm -f conftest.$ac_ext
3646 CC=$ac_save_CC
3647
3648 fi
3649 # AC_CACHE_VAL
3650 case "x$ac_cv_prog_cc_c89" in
3651 x)
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3653 $as_echo "none needed" >&6; } ;;
3654 xno)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3656 $as_echo "unsupported" >&6; } ;;
3657 *)
3658 CC="$CC $ac_cv_prog_cc_c89"
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3660 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3661 esac
3662 if test "x$ac_cv_prog_cc_c89" != xno; then :
3663
3664 fi
3665
3666 ac_ext=c
3667 ac_cpp='$CPP $CPPFLAGS'
3668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3678 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3679 if ${am_cv_prog_cc_c_o+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684
3685 int
3686 main ()
3687 {
3688
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 # Make sure it works both with $CC and with simple cc.
3694 # Following AC_PROG_CC_C_O, we do the test twice because some
3695 # compilers refuse to overwrite an existing .o file with -o,
3696 # though they will create one.
3697 am_cv_prog_cc_c_o=yes
3698 for am_i in 1 2; do
3699 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3700 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } \
3704 && test -f conftest2.$ac_objext; then
3705 : OK
3706 else
3707 am_cv_prog_cc_c_o=no
3708 break
3709 fi
3710 done
3711 rm -f core conftest*
3712 unset am_i
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3715 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3716 if test "$am_cv_prog_cc_c_o" != yes; then
3717 # Losing compiler, so override with the script.
3718 # FIXME: It is wrong to rewrite CC.
3719 # But if we don't then we get into trouble of one sort or another.
3720 # A longer-term fix would be to have automake use am__CC in this case,
3721 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3722 CC="$am_aux_dir/compile $CC"
3723 fi
3724 ac_ext=c
3725 ac_cpp='$CPP $CPPFLAGS'
3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729
3730
3731 depcc="$CC" am_compiler_list=
3732
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3734 $as_echo_n "checking dependency style of $depcc... " >&6; }
3735 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3739 # We make a subdir and do the tests there. Otherwise we can end up
3740 # making bogus files that we don't know about and never remove. For
3741 # instance it was reported that on HP-UX the gcc test will end up
3742 # making a dummy file named 'D' -- because '-MD' means "put the output
3743 # in D".
3744 rm -rf conftest.dir
3745 mkdir conftest.dir
3746 # Copy depcomp to subdir because otherwise we won't find it if we're
3747 # using a relative directory.
3748 cp "$am_depcomp" conftest.dir
3749 cd conftest.dir
3750 # We will build objects and dependencies in a subdirectory because
3751 # it helps to detect inapplicable dependency modes. For instance
3752 # both Tru64's cc and ICC support -MD to output dependencies as a
3753 # side effect of compilation, but ICC will put the dependencies in
3754 # the current directory while Tru64 will put them in the object
3755 # directory.
3756 mkdir sub
3757
3758 am_cv_CC_dependencies_compiler_type=none
3759 if test "$am_compiler_list" = ""; then
3760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3761 fi
3762 am__universal=false
3763 case " $depcc " in #(
3764 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3765 esac
3766
3767 for depmode in $am_compiler_list; do
3768 # Setup a source with many dependencies, because some compilers
3769 # like to wrap large dependency lists on column 80 (with \), and
3770 # we should not choose a depcomp mode which is confused by this.
3771 #
3772 # We need to recreate these files for each test, as the compiler may
3773 # overwrite some of them when testing with obscure command lines.
3774 # This happens at least with the AIX C compiler.
3775 : > sub/conftest.c
3776 for i in 1 2 3 4 5 6; do
3777 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3778 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3779 # Solaris 10 /bin/sh.
3780 echo '/* dummy */' > sub/conftst$i.h
3781 done
3782 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3783
3784 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3785 # mode. It turns out that the SunPro C++ compiler does not properly
3786 # handle '-M -o', and we need to detect this. Also, some Intel
3787 # versions had trouble with output in subdirs.
3788 am__obj=sub/conftest.${OBJEXT-o}
3789 am__minus_obj="-o $am__obj"
3790 case $depmode in
3791 gcc)
3792 # This depmode causes a compiler race in universal mode.
3793 test "$am__universal" = false || continue
3794 ;;
3795 nosideeffect)
3796 # After this tag, mechanisms are not by side-effect, so they'll
3797 # only be used when explicitly requested.
3798 if test "x$enable_dependency_tracking" = xyes; then
3799 continue
3800 else
3801 break
3802 fi
3803 ;;
3804 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3805 # This compiler won't grok '-c -o', but also, the minuso test has
3806 # not run yet. These depmodes are late enough in the game, and
3807 # so weak that their functioning should not be impacted.
3808 am__obj=conftest.${OBJEXT-o}
3809 am__minus_obj=
3810 ;;
3811 none) break ;;
3812 esac
3813 if depmode=$depmode \
3814 source=sub/conftest.c object=$am__obj \
3815 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3816 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3817 >/dev/null 2>conftest.err &&
3818 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3819 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3820 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3822 # icc doesn't choke on unknown options, it will just issue warnings
3823 # or remarks (even with -Werror). So we grep stderr for any message
3824 # that says an option was ignored or not supported.
3825 # When given -MP, icc 7.0 and 7.1 complain thusly:
3826 # icc: Command line warning: ignoring option '-M'; no argument required
3827 # The diagnosis changed in icc 8.0:
3828 # icc: Command line remark: option '-MP' not supported
3829 if (grep 'ignoring option' conftest.err ||
3830 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3831 am_cv_CC_dependencies_compiler_type=$depmode
3832 break
3833 fi
3834 fi
3835 done
3836
3837 cd ..
3838 rm -rf conftest.dir
3839 else
3840 am_cv_CC_dependencies_compiler_type=none
3841 fi
3842
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3845 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3846 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3847
3848 if
3849 test "x$enable_dependency_tracking" != xno \
3850 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3851 am__fastdepCC_TRUE=
3852 am__fastdepCC_FALSE='#'
3853 else
3854 am__fastdepCC_TRUE='#'
3855 am__fastdepCC_FALSE=
3856 fi
3857
3858
3859
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3866 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3867 # On Suns, sometimes $CPP names a directory.
3868 if test -n "$CPP" && test -d "$CPP"; then
3869 CPP=
3870 fi
3871 if test -z "$CPP"; then
3872 if ${ac_cv_prog_CPP+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 # Double quotes because CPP needs to be expanded
3876 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3877 do
3878 ac_preproc_ok=false
3879 for ac_c_preproc_warn_flag in '' yes
3880 do
3881 # Use a header file that comes with gcc, so configuring glibc
3882 # with a fresh cross-compiler works.
3883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3884 # <limits.h> exists even on freestanding compilers.
3885 # On the NeXT, cc -E runs the code through the compiler's parser,
3886 # not just through cpp. "Syntax error" is here to catch this case.
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889 #ifdef __STDC__
3890 # include <limits.h>
3891 #else
3892 # include <assert.h>
3893 #endif
3894 Syntax error
3895 _ACEOF
3896 if ac_fn_c_try_cpp "$LINENO"; then :
3897
3898 else
3899 # Broken: fails on valid input.
3900 continue
3901 fi
3902 rm -f conftest.err conftest.i conftest.$ac_ext
3903
3904 # OK, works on sane cases. Now check whether nonexistent headers
3905 # can be detected and how.
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3908 #include <ac_nonexistent.h>
3909 _ACEOF
3910 if ac_fn_c_try_cpp "$LINENO"; then :
3911 # Broken: success on invalid input.
3912 continue
3913 else
3914 # Passes both tests.
3915 ac_preproc_ok=:
3916 break
3917 fi
3918 rm -f conftest.err conftest.i conftest.$ac_ext
3919
3920 done
3921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3922 rm -f conftest.i conftest.err conftest.$ac_ext
3923 if $ac_preproc_ok; then :
3924 break
3925 fi
3926
3927 done
3928 ac_cv_prog_CPP=$CPP
3929
3930 fi
3931 CPP=$ac_cv_prog_CPP
3932 else
3933 ac_cv_prog_CPP=$CPP
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3936 $as_echo "$CPP" >&6; }
3937 ac_preproc_ok=false
3938 for ac_c_preproc_warn_flag in '' yes
3939 do
3940 # Use a header file that comes with gcc, so configuring glibc
3941 # with a fresh cross-compiler works.
3942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3943 # <limits.h> exists even on freestanding compilers.
3944 # On the NeXT, cc -E runs the code through the compiler's parser,
3945 # not just through cpp. "Syntax error" is here to catch this case.
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3948 #ifdef __STDC__
3949 # include <limits.h>
3950 #else
3951 # include <assert.h>
3952 #endif
3953 Syntax error
3954 _ACEOF
3955 if ac_fn_c_try_cpp "$LINENO"; then :
3956
3957 else
3958 # Broken: fails on valid input.
3959 continue
3960 fi
3961 rm -f conftest.err conftest.i conftest.$ac_ext
3962
3963 # OK, works on sane cases. Now check whether nonexistent headers
3964 # can be detected and how.
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #include <ac_nonexistent.h>
3968 _ACEOF
3969 if ac_fn_c_try_cpp "$LINENO"; then :
3970 # Broken: success on invalid input.
3971 continue
3972 else
3973 # Passes both tests.
3974 ac_preproc_ok=:
3975 break
3976 fi
3977 rm -f conftest.err conftest.i conftest.$ac_ext
3978
3979 done
3980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3981 rm -f conftest.i conftest.err conftest.$ac_ext
3982 if $ac_preproc_ok; then :
3983
3984 else
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3988 See \`config.log' for more details" "$LINENO" 5; }
3989 fi
3990
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3999 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4000 if ${ac_cv_path_GREP+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -z "$GREP"; then
4004 ac_path_GREP_found=false
4005 # Loop through the user's path and test for each of PROGNAME-LIST
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008 do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in grep ggrep; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4014 as_fn_executable_p "$ac_path_GREP" || continue
4015 # Check for GNU ac_path_GREP and select it if it is found.
4016 # Check for GNU $ac_path_GREP
4017 case `"$ac_path_GREP" --version 2>&1` in
4018 *GNU*)
4019 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4020 *)
4021 ac_count=0
4022 $as_echo_n 0123456789 >"conftest.in"
4023 while :
4024 do
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
4028 $as_echo 'GREP' >> "conftest.nl"
4029 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031 as_fn_arith $ac_count + 1 && ac_count=$as_val
4032 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_GREP="$ac_path_GREP"
4035 ac_path_GREP_max=$ac_count
4036 fi
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4039 done
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 esac
4042
4043 $ac_path_GREP_found && break 3
4044 done
4045 done
4046 done
4047 IFS=$as_save_IFS
4048 if test -z "$ac_cv_path_GREP"; then
4049 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4050 fi
4051 else
4052 ac_cv_path_GREP=$GREP
4053 fi
4054
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4057 $as_echo "$ac_cv_path_GREP" >&6; }
4058 GREP="$ac_cv_path_GREP"
4059
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4062 $as_echo_n "checking for egrep... " >&6; }
4063 if ${ac_cv_path_EGREP+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4067 then ac_cv_path_EGREP="$GREP -E"
4068 else
4069 if test -z "$EGREP"; then
4070 ac_path_EGREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_prog in egrep; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4080 as_fn_executable_p "$ac_path_EGREP" || continue
4081 # Check for GNU ac_path_EGREP and select it if it is found.
4082 # Check for GNU $ac_path_EGREP
4083 case `"$ac_path_EGREP" --version 2>&1` in
4084 *GNU*)
4085 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4086 *)
4087 ac_count=0
4088 $as_echo_n 0123456789 >"conftest.in"
4089 while :
4090 do
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
4094 $as_echo 'EGREP' >> "conftest.nl"
4095 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097 as_fn_arith $ac_count + 1 && ac_count=$as_val
4098 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_EGREP="$ac_path_EGREP"
4101 ac_path_EGREP_max=$ac_count
4102 fi
4103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4105 done
4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 esac
4108
4109 $ac_path_EGREP_found && break 3
4110 done
4111 done
4112 done
4113 IFS=$as_save_IFS
4114 if test -z "$ac_cv_path_EGREP"; then
4115 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4116 fi
4117 else
4118 ac_cv_path_EGREP=$EGREP
4119 fi
4120
4121 fi
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4124 $as_echo "$ac_cv_path_EGREP" >&6; }
4125 EGREP="$ac_cv_path_EGREP"
4126
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4129 $as_echo_n "checking for ANSI C header files... " >&6; }
4130 if ${ac_cv_header_stdc+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #include <stdlib.h>
4136 #include <stdarg.h>
4137 #include <string.h>
4138 #include <float.h>
4139
4140 int
4141 main ()
4142 {
4143
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149 ac_cv_header_stdc=yes
4150 else
4151 ac_cv_header_stdc=no
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154
4155 if test $ac_cv_header_stdc = yes; then
4156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 #include <string.h>
4160
4161 _ACEOF
4162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4163 $EGREP "memchr" >/dev/null 2>&1; then :
4164
4165 else
4166 ac_cv_header_stdc=no
4167 fi
4168 rm -f conftest*
4169
4170 fi
4171
4172 if test $ac_cv_header_stdc = yes; then
4173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 #include <stdlib.h>
4177
4178 _ACEOF
4179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4180 $EGREP "free" >/dev/null 2>&1; then :
4181
4182 else
4183 ac_cv_header_stdc=no
4184 fi
4185 rm -f conftest*
4186
4187 fi
4188
4189 if test $ac_cv_header_stdc = yes; then
4190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4191 if test "$cross_compiling" = yes; then :
4192 :
4193 else
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 #include <ctype.h>
4197 #include <stdlib.h>
4198 #if ((' ' & 0x0FF) == 0x020)
4199 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4200 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4201 #else
4202 # define ISLOWER(c) \
4203 (('a' <= (c) && (c) <= 'i') \
4204 || ('j' <= (c) && (c) <= 'r') \
4205 || ('s' <= (c) && (c) <= 'z'))
4206 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4207 #endif
4208
4209 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4210 int
4211 main ()
4212 {
4213 int i;
4214 for (i = 0; i < 256; i++)
4215 if (XOR (islower (i), ISLOWER (i))
4216 || toupper (i) != TOUPPER (i))
4217 return 2;
4218 return 0;
4219 }
4220 _ACEOF
4221 if ac_fn_c_try_run "$LINENO"; then :
4222
4223 else
4224 ac_cv_header_stdc=no
4225 fi
4226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4227 conftest.$ac_objext conftest.beam conftest.$ac_ext
4228 fi
4229
4230 fi
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4233 $as_echo "$ac_cv_header_stdc" >&6; }
4234 if test $ac_cv_header_stdc = yes; then
4235
4236 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4237
4238 fi
4239
4240 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4241 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4242 inttypes.h stdint.h unistd.h
4243 do :
4244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4245 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4246 "
4247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4248 cat >>confdefs.h <<_ACEOF
4249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4250 _ACEOF
4251
4252 fi
4253
4254 done
4255
4256
4257
4258 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4259 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4260 MINIX=yes
4261 else
4262 MINIX=
4263 fi
4264
4265
4266 if test "$MINIX" = yes; then
4267
4268 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4269
4270
4271 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4272
4273
4274 $as_echo "#define _MINIX 1" >>confdefs.h
4275
4276 fi
4277
4278
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4280 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4281 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286
4287 # define __EXTENSIONS__ 1
4288 $ac_includes_default
4289 int
4290 main ()
4291 {
4292
4293 ;
4294 return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_safe_to_define___extensions__=yes
4299 else
4300 ac_cv_safe_to_define___extensions__=no
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4305 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4306 test $ac_cv_safe_to_define___extensions__ = yes &&
4307 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4308
4309 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4310
4311 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4312
4313 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4314
4315 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4316
4317
4318
4319 # Checks for programs.
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 if test -n "$ac_tool_prefix"; then
4326 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4327 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if ${ac_cv_prog_CC+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if test -n "$CC"; then
4334 ac_cv_prog_CC="$CC" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 break 2
4346 fi
4347 done
4348 done
4349 IFS=$as_save_IFS
4350
4351 fi
4352 fi
4353 CC=$ac_cv_prog_CC
4354 if test -n "$CC"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4356 $as_echo "$CC" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 fi
4361
4362
4363 fi
4364 if test -z "$ac_cv_prog_CC"; then
4365 ac_ct_CC=$CC
4366 # Extract the first word of "gcc", so it can be a program name with args.
4367 set dummy gcc; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if test -n "$ac_ct_CC"; then
4374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4383 ac_cv_prog_ac_ct_CC="gcc"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387 done
4388 done
4389 IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4394 if test -n "$ac_ct_CC"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4396 $as_echo "$ac_ct_CC" >&6; }
4397 else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402 if test "x$ac_ct_CC" = x; then
4403 CC=""
4404 else
4405 case $cross_compiling:$ac_tool_warned in
4406 yes:)
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4410 esac
4411 CC=$ac_ct_CC
4412 fi
4413 else
4414 CC="$ac_cv_prog_CC"
4415 fi
4416
4417 if test -z "$CC"; then
4418 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4420 set dummy ${ac_tool_prefix}cc; ac_word=$2
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if ${ac_cv_prog_CC+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 if test -n "$CC"; then
4427 ac_cv_prog_CC="$CC" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436 ac_cv_prog_CC="${ac_tool_prefix}cc"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4439 fi
4440 done
4441 done
4442 IFS=$as_save_IFS
4443
4444 fi
4445 fi
4446 CC=$ac_cv_prog_CC
4447 if test -n "$CC"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4449 $as_echo "$CC" >&6; }
4450 else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4453 fi
4454
4455
4456 fi
4457 fi
4458 if test -z "$CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460 set dummy cc; ac_word=$2
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if ${ac_cv_prog_CC+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 if test -n "$CC"; then
4467 ac_cv_prog_CC="$CC" # Let the user override the test.
4468 else
4469 ac_prog_rejected=no
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4479 continue
4480 fi
4481 ac_cv_prog_CC="cc"
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4484 fi
4485 done
4486 done
4487 IFS=$as_save_IFS
4488
4489 if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_CC
4492 shift
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set CC to just the basename; use the full file name.
4497 shift
4498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4499 fi
4500 fi
4501 fi
4502 fi
4503 CC=$ac_cv_prog_CC
4504 if test -n "$CC"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4506 $as_echo "$CC" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4510 fi
4511
4512
4513 fi
4514 if test -z "$CC"; then
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in cl.exe
4517 do
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if ${ac_cv_prog_CC+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$CC"; then
4526 ac_cv_prog_CC="$CC" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539 done
4540 done
4541 IFS=$as_save_IFS
4542
4543 fi
4544 fi
4545 CC=$ac_cv_prog_CC
4546 if test -n "$CC"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4548 $as_echo "$CC" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553
4554
4555 test -n "$CC" && break
4556 done
4557 fi
4558 if test -z "$CC"; then
4559 ac_ct_CC=$CC
4560 for ac_prog in cl.exe
4561 do
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579 ac_cv_prog_ac_ct_CC="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590 if test -n "$ac_ct_CC"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4592 $as_echo "$ac_ct_CC" >&6; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597
4598
4599 test -n "$ac_ct_CC" && break
4600 done
4601
4602 if test "x$ac_ct_CC" = x; then
4603 CC=""
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 CC=$ac_ct_CC
4612 fi
4613 fi
4614
4615 fi
4616
4617
4618 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4620 as_fn_error $? "no acceptable C compiler found in \$PATH
4621 See \`config.log' for more details" "$LINENO" 5; }
4622
4623 # Provide some information about the compiler.
4624 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4625 set X $ac_compile
4626 ac_compiler=$2
4627 for ac_option in --version -v -V -qversion; do
4628 { { ac_try="$ac_compiler $ac_option >&5"
4629 case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4634 $as_echo "$ac_try_echo"; } >&5
4635 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4636 ac_status=$?
4637 if test -s conftest.err; then
4638 sed '10a\
4639 ... rest of stderr output deleted ...
4640 10q' conftest.err >conftest.er1
4641 cat conftest.er1 >&5
4642 fi
4643 rm -f conftest.er1 conftest.err
4644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645 test $ac_status = 0; }
4646 done
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4649 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4650 if ${ac_cv_c_compiler_gnu+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655
4656 int
4657 main ()
4658 {
4659 #ifndef __GNUC__
4660 choke me
4661 #endif
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 ac_compiler_gnu=yes
4669 else
4670 ac_compiler_gnu=no
4671 fi
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4674
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4677 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4678 if test $ac_compiler_gnu = yes; then
4679 GCC=yes
4680 else
4681 GCC=
4682 fi
4683 ac_test_CFLAGS=${CFLAGS+set}
4684 ac_save_CFLAGS=$CFLAGS
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4686 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4687 if ${ac_cv_prog_cc_g+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 ac_save_c_werror_flag=$ac_c_werror_flag
4691 ac_c_werror_flag=yes
4692 ac_cv_prog_cc_g=no
4693 CFLAGS="-g"
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696
4697 int
4698 main ()
4699 {
4700
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_cv_prog_cc_g=yes
4707 else
4708 CFLAGS=""
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711
4712 int
4713 main ()
4714 {
4715
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721
4722 else
4723 ac_c_werror_flag=$ac_save_c_werror_flag
4724 CFLAGS="-g"
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727
4728 int
4729 main ()
4730 {
4731
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737 ac_cv_prog_cc_g=yes
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 ac_c_werror_flag=$ac_save_c_werror_flag
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4747 $as_echo "$ac_cv_prog_cc_g" >&6; }
4748 if test "$ac_test_CFLAGS" = set; then
4749 CFLAGS=$ac_save_CFLAGS
4750 elif test $ac_cv_prog_cc_g = yes; then
4751 if test "$GCC" = yes; then
4752 CFLAGS="-g -O2"
4753 else
4754 CFLAGS="-g"
4755 fi
4756 else
4757 if test "$GCC" = yes; then
4758 CFLAGS="-O2"
4759 else
4760 CFLAGS=
4761 fi
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4764 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4765 if ${ac_cv_prog_cc_c89+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 ac_cv_prog_cc_c89=no
4769 ac_save_CC=$CC
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 #include <stdarg.h>
4773 #include <stdio.h>
4774 struct stat;
4775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4776 struct buf { int x; };
4777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4778 static char *e (p, i)
4779 char **p;
4780 int i;
4781 {
4782 return p[i];
4783 }
4784 static char *f (char * (*g) (char **, int), char **p, ...)
4785 {
4786 char *s;
4787 va_list v;
4788 va_start (v,p);
4789 s = g (p, va_arg (v,int));
4790 va_end (v);
4791 return s;
4792 }
4793
4794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4795 function prototypes and stuff, but not '\xHH' hex character constants.
4796 These don't provoke an error unfortunately, instead are silently treated
4797 as 'x'. The following induces an error, until -std is added to get
4798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4799 array size at least. It's necessary to write '\x00'==0 to get something
4800 that's true only with -std. */
4801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4802
4803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4804 inside strings and character constants. */
4805 #define FOO(x) 'x'
4806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4807
4808 int test (int i, double x);
4809 struct s1 {int (*f) (int a);};
4810 struct s2 {int (*f) (double a);};
4811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4812 int argc;
4813 char **argv;
4814 int
4815 main ()
4816 {
4817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4824 do
4825 CC="$ac_save_CC $ac_arg"
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827 ac_cv_prog_cc_c89=$ac_arg
4828 fi
4829 rm -f core conftest.err conftest.$ac_objext
4830 test "x$ac_cv_prog_cc_c89" != "xno" && break
4831 done
4832 rm -f conftest.$ac_ext
4833 CC=$ac_save_CC
4834
4835 fi
4836 # AC_CACHE_VAL
4837 case "x$ac_cv_prog_cc_c89" in
4838 x)
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4840 $as_echo "none needed" >&6; } ;;
4841 xno)
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4843 $as_echo "unsupported" >&6; } ;;
4844 *)
4845 CC="$CC $ac_cv_prog_cc_c89"
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4847 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4848 esac
4849 if test "x$ac_cv_prog_cc_c89" != xno; then :
4850
4851 fi
4852
4853 ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859 ac_ext=c
4860 ac_cpp='$CPP $CPPFLAGS'
4861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4865 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4866 if ${am_cv_prog_cc_c_o+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871
4872 int
4873 main ()
4874 {
4875
4876 ;
4877 return 0;
4878 }
4879 _ACEOF
4880 # Make sure it works both with $CC and with simple cc.
4881 # Following AC_PROG_CC_C_O, we do the test twice because some
4882 # compilers refuse to overwrite an existing .o file with -o,
4883 # though they will create one.
4884 am_cv_prog_cc_c_o=yes
4885 for am_i in 1 2; do
4886 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4887 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } \
4891 && test -f conftest2.$ac_objext; then
4892 : OK
4893 else
4894 am_cv_prog_cc_c_o=no
4895 break
4896 fi
4897 done
4898 rm -f core conftest*
4899 unset am_i
4900 fi
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4902 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4903 if test "$am_cv_prog_cc_c_o" != yes; then
4904 # Losing compiler, so override with the script.
4905 # FIXME: It is wrong to rewrite CC.
4906 # But if we don't then we get into trouble of one sort or another.
4907 # A longer-term fix would be to have automake use am__CC in this case,
4908 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4909 CC="$am_aux_dir/compile $CC"
4910 fi
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917
4918 depcc="$CC" am_compiler_list=
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4921 $as_echo_n "checking dependency style of $depcc... " >&6; }
4922 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4926 # We make a subdir and do the tests there. Otherwise we can end up
4927 # making bogus files that we don't know about and never remove. For
4928 # instance it was reported that on HP-UX the gcc test will end up
4929 # making a dummy file named 'D' -- because '-MD' means "put the output
4930 # in D".
4931 rm -rf conftest.dir
4932 mkdir conftest.dir
4933 # Copy depcomp to subdir because otherwise we won't find it if we're
4934 # using a relative directory.
4935 cp "$am_depcomp" conftest.dir
4936 cd conftest.dir
4937 # We will build objects and dependencies in a subdirectory because
4938 # it helps to detect inapplicable dependency modes. For instance
4939 # both Tru64's cc and ICC support -MD to output dependencies as a
4940 # side effect of compilation, but ICC will put the dependencies in
4941 # the current directory while Tru64 will put them in the object
4942 # directory.
4943 mkdir sub
4944
4945 am_cv_CC_dependencies_compiler_type=none
4946 if test "$am_compiler_list" = ""; then
4947 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4948 fi
4949 am__universal=false
4950 case " $depcc " in #(
4951 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4952 esac
4953
4954 for depmode in $am_compiler_list; do
4955 # Setup a source with many dependencies, because some compilers
4956 # like to wrap large dependency lists on column 80 (with \), and
4957 # we should not choose a depcomp mode which is confused by this.
4958 #
4959 # We need to recreate these files for each test, as the compiler may
4960 # overwrite some of them when testing with obscure command lines.
4961 # This happens at least with the AIX C compiler.
4962 : > sub/conftest.c
4963 for i in 1 2 3 4 5 6; do
4964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4965 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4966 # Solaris 10 /bin/sh.
4967 echo '/* dummy */' > sub/conftst$i.h
4968 done
4969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4970
4971 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4972 # mode. It turns out that the SunPro C++ compiler does not properly
4973 # handle '-M -o', and we need to detect this. Also, some Intel
4974 # versions had trouble with output in subdirs.
4975 am__obj=sub/conftest.${OBJEXT-o}
4976 am__minus_obj="-o $am__obj"
4977 case $depmode in
4978 gcc)
4979 # This depmode causes a compiler race in universal mode.
4980 test "$am__universal" = false || continue
4981 ;;
4982 nosideeffect)
4983 # After this tag, mechanisms are not by side-effect, so they'll
4984 # only be used when explicitly requested.
4985 if test "x$enable_dependency_tracking" = xyes; then
4986 continue
4987 else
4988 break
4989 fi
4990 ;;
4991 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4992 # This compiler won't grok '-c -o', but also, the minuso test has
4993 # not run yet. These depmodes are late enough in the game, and
4994 # so weak that their functioning should not be impacted.
4995 am__obj=conftest.${OBJEXT-o}
4996 am__minus_obj=
4997 ;;
4998 none) break ;;
4999 esac
5000 if depmode=$depmode \
5001 source=sub/conftest.c object=$am__obj \
5002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5003 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5004 >/dev/null 2>conftest.err &&
5005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5007 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5009 # icc doesn't choke on unknown options, it will just issue warnings
5010 # or remarks (even with -Werror). So we grep stderr for any message
5011 # that says an option was ignored or not supported.
5012 # When given -MP, icc 7.0 and 7.1 complain thusly:
5013 # icc: Command line warning: ignoring option '-M'; no argument required
5014 # The diagnosis changed in icc 8.0:
5015 # icc: Command line remark: option '-MP' not supported
5016 if (grep 'ignoring option' conftest.err ||
5017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5018 am_cv_CC_dependencies_compiler_type=$depmode
5019 break
5020 fi
5021 fi
5022 done
5023
5024 cd ..
5025 rm -rf conftest.dir
5026 else
5027 am_cv_CC_dependencies_compiler_type=none
5028 fi
5029
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5032 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5033 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5034
5035 if
5036 test "x$enable_dependency_tracking" != xno \
5037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5038 am__fastdepCC_TRUE=
5039 am__fastdepCC_FALSE='#'
5040 else
5041 am__fastdepCC_TRUE='#'
5042 am__fastdepCC_FALSE=
5043 fi
5044
5045
5046
5047 # Checks for libraries.
5048
5049 # Checks for header files.
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5051 $as_echo_n "checking for ANSI C header files... " >&6; }
5052 if ${ac_cv_header_stdc+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #include <stdlib.h>
5058 #include <stdarg.h>
5059 #include <string.h>
5060 #include <float.h>
5061
5062 int
5063 main ()
5064 {
5065
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_header_stdc=yes
5072 else
5073 ac_cv_header_stdc=no
5074 fi
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076
5077 if test $ac_cv_header_stdc = yes; then
5078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <string.h>
5082
5083 _ACEOF
5084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085 $EGREP "memchr" >/dev/null 2>&1; then :
5086
5087 else
5088 ac_cv_header_stdc=no
5089 fi
5090 rm -f conftest*
5091
5092 fi
5093
5094 if test $ac_cv_header_stdc = yes; then
5095 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #include <stdlib.h>
5099
5100 _ACEOF
5101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5102 $EGREP "free" >/dev/null 2>&1; then :
5103
5104 else
5105 ac_cv_header_stdc=no
5106 fi
5107 rm -f conftest*
5108
5109 fi
5110
5111 if test $ac_cv_header_stdc = yes; then
5112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5113 if test "$cross_compiling" = yes; then :
5114 :
5115 else
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #include <ctype.h>
5119 #include <stdlib.h>
5120 #if ((' ' & 0x0FF) == 0x020)
5121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5123 #else
5124 # define ISLOWER(c) \
5125 (('a' <= (c) && (c) <= 'i') \
5126 || ('j' <= (c) && (c) <= 'r') \
5127 || ('s' <= (c) && (c) <= 'z'))
5128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5129 #endif
5130
5131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5132 int
5133 main ()
5134 {
5135 int i;
5136 for (i = 0; i < 256; i++)
5137 if (XOR (islower (i), ISLOWER (i))
5138 || toupper (i) != TOUPPER (i))
5139 return 2;
5140 return 0;
5141 }
5142 _ACEOF
5143 if ac_fn_c_try_run "$LINENO"; then :
5144
5145 else
5146 ac_cv_header_stdc=no
5147 fi
5148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5149 conftest.$ac_objext conftest.beam conftest.$ac_ext
5150 fi
5151
5152 fi
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5155 $as_echo "$ac_cv_header_stdc" >&6; }
5156 if test $ac_cv_header_stdc = yes; then
5157
5158 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5159
5160 fi
5161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5163 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5164 if ${ac_cv_header_sys_wait_h+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 #include <sys/types.h>
5170 #include <sys/wait.h>
5171 #ifndef WEXITSTATUS
5172 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5173 #endif
5174 #ifndef WIFEXITED
5175 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5176 #endif
5177
5178 int
5179 main ()
5180 {
5181 int s;
5182 wait (&s);
5183 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5184 ;
5185 return 0;
5186 }
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189 ac_cv_header_sys_wait_h=yes
5190 else
5191 ac_cv_header_sys_wait_h=no
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194 fi
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5196 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5197 if test $ac_cv_header_sys_wait_h = yes; then
5198
5199 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5200
5201 fi
5202
5203 for ac_header in fcntl.h stdlib.h string.h sys/ioctl.h unistd.h termios.h
5204 do :
5205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5207 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5208 cat >>confdefs.h <<_ACEOF
5209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5210 _ACEOF
5211
5212 fi
5213
5214 done
5215
5216
5217 # Checks for typedefs, structures, and compiler characteristics.
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5219 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5220 if ${ac_cv_c_const+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225
5226 int
5227 main ()
5228 {
5229
5230 #ifndef __cplusplus
5231 /* Ultrix mips cc rejects this sort of thing. */
5232 typedef int charset[2];
5233 const charset cs = { 0, 0 };
5234 /* SunOS 4.1.1 cc rejects this. */
5235 char const *const *pcpcc;
5236 char **ppc;
5237 /* NEC SVR4.0.2 mips cc rejects this. */
5238 struct point {int x, y;};
5239 static struct point const zero = {0,0};
5240 /* AIX XL C 1.02.0.0 rejects this.
5241 It does not let you subtract one const X* pointer from another in
5242 an arm of an if-expression whose if-part is not a constant
5243 expression */
5244 const char *g = "string";
5245 pcpcc = &g + (g ? g-g : 0);
5246 /* HPUX 7.0 cc rejects these. */
5247 ++pcpcc;
5248 ppc = (char**) pcpcc;
5249 pcpcc = (char const *const *) ppc;
5250 { /* SCO 3.2v4 cc rejects this sort of thing. */
5251 char tx;
5252 char *t = &tx;
5253 char const *s = 0 ? (char *) 0 : (char const *) 0;
5254
5255 *t++ = 0;
5256 if (s) return 0;
5257 }
5258 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5259 int x[] = {25, 17};
5260 const int *foo = &x[0];
5261 ++foo;
5262 }
5263 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5264 typedef const int *iptr;
5265 iptr p = 0;
5266 ++p;
5267 }
5268 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5270 struct s { int j; const int *ap[3]; } bx;
5271 struct s *b = &bx; b->j = 5;
5272 }
5273 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5274 const int foo = 10;
5275 if (!foo) return 0;
5276 }
5277 return !cs[0] && !zero.x;
5278 #endif
5279
5280 ;
5281 return 0;
5282 }
5283 _ACEOF
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285 ac_cv_c_const=yes
5286 else
5287 ac_cv_c_const=no
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5292 $as_echo "$ac_cv_c_const" >&6; }
5293 if test $ac_cv_c_const = no; then
5294
5295 $as_echo "#define const /**/" >>confdefs.h
5296
5297 fi
5298
5299 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5300 if test "x$ac_cv_type_pid_t" = xyes; then :
5301
5302 else
5303
5304 cat >>confdefs.h <<_ACEOF
5305 #define pid_t int
5306 _ACEOF
5307
5308 fi
5309
5310 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5311 if test "x$ac_cv_type_ssize_t" = xyes; then :
5312
5313 else
5314
5315 cat >>confdefs.h <<_ACEOF
5316 #define ssize_t int
5317 _ACEOF
5318
5319 fi
5320
5321
5322 # Checks for library functions.
5323 for ac_header in vfork.h
5324 do :
5325 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5326 if test "x$ac_cv_header_vfork_h" = xyes; then :
5327 cat >>confdefs.h <<_ACEOF
5328 #define HAVE_VFORK_H 1
5329 _ACEOF
5330
5331 fi
5332
5333 done
5334
5335 for ac_func in fork vfork
5336 do :
5337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5339 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5340 cat >>confdefs.h <<_ACEOF
5341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5342 _ACEOF
5343
5344 fi
5345 done
5346
5347 if test "x$ac_cv_func_fork" = xyes; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5349 $as_echo_n "checking for working fork... " >&6; }
5350 if ${ac_cv_func_fork_works+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test "$cross_compiling" = yes; then :
5354 ac_cv_func_fork_works=cross
5355 else
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 $ac_includes_default
5359 int
5360 main ()
5361 {
5362
5363 /* By Ruediger Kuhlmann. */
5364 return fork () < 0;
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_c_try_run "$LINENO"; then :
5371 ac_cv_func_fork_works=yes
5372 else
5373 ac_cv_func_fork_works=no
5374 fi
5375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5376 conftest.$ac_objext conftest.beam conftest.$ac_ext
5377 fi
5378
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5381 $as_echo "$ac_cv_func_fork_works" >&6; }
5382
5383 else
5384 ac_cv_func_fork_works=$ac_cv_func_fork
5385 fi
5386 if test "x$ac_cv_func_fork_works" = xcross; then
5387 case $host in
5388 *-*-amigaos* | *-*-msdosdjgpp*)
5389 # Override, as these systems have only a dummy fork() stub
5390 ac_cv_func_fork_works=no
5391 ;;
5392 *)
5393 ac_cv_func_fork_works=yes
5394 ;;
5395 esac
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5397 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5398 fi
5399 ac_cv_func_vfork_works=$ac_cv_func_vfork
5400 if test "x$ac_cv_func_vfork" = xyes; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5402 $as_echo_n "checking for working vfork... " >&6; }
5403 if ${ac_cv_func_vfork_works+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 if test "$cross_compiling" = yes; then :
5407 ac_cv_func_vfork_works=cross
5408 else
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 /* Thanks to Paul Eggert for this test. */
5412 $ac_includes_default
5413 #include <sys/wait.h>
5414 #ifdef HAVE_VFORK_H
5415 # include <vfork.h>
5416 #endif
5417 /* On some sparc systems, changes by the child to local and incoming
5418 argument registers are propagated back to the parent. The compiler
5419 is told about this with #include <vfork.h>, but some compilers
5420 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5421 static variable whose address is put into a register that is
5422 clobbered by the vfork. */
5423 static void
5424 #ifdef __cplusplus
5425 sparc_address_test (int arg)
5426 # else
5427 sparc_address_test (arg) int arg;
5428 #endif
5429 {
5430 static pid_t child;
5431 if (!child) {
5432 child = vfork ();
5433 if (child < 0) {
5434 perror ("vfork");
5435 _exit(2);
5436 }
5437 if (!child) {
5438 arg = getpid();
5439 write(-1, "", 0);
5440 _exit (arg);
5441 }
5442 }
5443 }
5444
5445 int
5446 main ()
5447 {
5448 pid_t parent = getpid ();
5449 pid_t child;
5450
5451 sparc_address_test (0);
5452
5453 child = vfork ();
5454
5455 if (child == 0) {
5456 /* Here is another test for sparc vfork register problems. This
5457 test uses lots of local variables, at least as many local
5458 variables as main has allocated so far including compiler
5459 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5460 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5461 reuse the register of parent for one of the local variables,
5462 since it will think that parent can't possibly be used any more
5463 in this routine. Assigning to the local variable will thus
5464 munge parent in the parent process. */
5465 pid_t
5466 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5467 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5468 /* Convince the compiler that p..p7 are live; otherwise, it might
5469 use the same hardware register for all 8 local variables. */
5470 if (p != p1 || p != p2 || p != p3 || p != p4
5471 || p != p5 || p != p6 || p != p7)
5472 _exit(1);
5473
5474 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5475 from child file descriptors. If the child closes a descriptor
5476 before it execs or exits, this munges the parent's descriptor
5477 as well. Test for this by closing stdout in the child. */
5478 _exit(close(fileno(stdout)) != 0);
5479 } else {
5480 int status;
5481 struct stat st;
5482
5483 while (wait(&status) != child)
5484 ;
5485 return (
5486 /* Was there some problem with vforking? */
5487 child < 0
5488
5489 /* Did the child fail? (This shouldn't happen.) */
5490 || status
5491
5492 /* Did the vfork/compiler bug occur? */
5493 || parent != getpid()
5494
5495 /* Did the file descriptor bug occur? */
5496 || fstat(fileno(stdout), &st) != 0
5497 );
5498 }
5499 }
5500 _ACEOF
5501 if ac_fn_c_try_run "$LINENO"; then :
5502 ac_cv_func