Debian Codegraph @

src/spki/configure

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