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