Debian Codegraph @

configure

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