ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure
Revision: 1.13
Committed: Sat Dec 12 03:54:59 2020 UTC (5 years, 9 months ago) by root
Branch: MAIN
CVS Tags: rel-1_8
Changes since 1.12: +7 -175 lines
Log Message:
*** empty log message ***

File Contents

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