Debian Codegraph @

configure

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