Debian Codegraph @

src/sftp/configure

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