Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.in @(#) Id (LBL).
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.71.
5 #
6 # Copyright (c) 1995, 1996, 1997, 2006, 2009, 2011
7 # The Regents of the University of California. All rights reserved.
8 #
9 #
10 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
11 # Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 as_nop=:
23 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
24 then :
25 emulate sh
26 NULLCMD=:
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
30 setopt NO_GLOB_SUBST
31 else $as_nop
32 case `(set -o) 2>/dev/null` in #(
33 *posix*) :
34 set -o posix ;; #(
35 *) :
36 ;;
37 esac
38 fi
39
40
41
42 # Reset variables that may have inherited troublesome values from
43 # the environment.
44
45 # IFS needs to be set, to space, tab, and newline, in precisely that order.
46 # (If _AS_PATH_WALK were called with IFS unset, it would have the
47 # side effect of setting IFS to empty, thus disabling word splitting.)
48 # Quoting is to prevent editors from complaining about space-tab.
49 as_nl='
50 '
51 export as_nl
52 IFS=" "" $as_nl"
53
54 PS1='$ '
55 PS2='> '
56 PS4='+ '
57
58 # Ensure predictable behavior from utilities with locale-dependent output.
59 LC_ALL=C
60 export LC_ALL
61 LANGUAGE=C
62 export LANGUAGE
63
64 # We cannot yet rely on "unset" to work, but we need these variables
65 # to be unset--not just set to an empty or harmless value--now, to
66 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
67 # also avoids known problems related to "unset" and subshell syntax
68 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
69 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
70 do eval test \${$as_var+y} \
71 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 done
73
74 # Ensure that fds 0, 1, and 2 are open.
75 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
76 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
77 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
78
79 # The user is always right.
80 if ${PATH_SEPARATOR+false} :; then
81 PATH_SEPARATOR=:
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 PATH_SEPARATOR=';'
85 }
86 fi
87
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 case $as_dir in #(((
98 '') as_dir=./ ;;
99 */) ;;
100 *) as_dir=$as_dir/ ;;
101 esac
102 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118
119 # Use a proper internal environment variable to ensure we don't fall
120 # into an infinite loop, continuously re-executing ourselves.
121 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
122 _as_can_reexec=no; export _as_can_reexec;
123 # We cannot yet assume a decent shell, so we have to provide a
124 # neutralization value for shells without unset; and this also
125 # works around shells that cannot unset nonexistent variables.
126 # Preserve -v and -x to the replacement shell.
127 BASH_ENV=/dev/null
128 ENV=/dev/null
129 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
130 case $- in # ((((
131 *v*x* | *x*v* ) as_opts=-vx ;;
132 *v* ) as_opts=-v ;;
133 *x* ) as_opts=-x ;;
134 * ) as_opts= ;;
135 esac
136 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
137 # Admittedly, this is quite paranoid, since all the known shells bail
138 # out after a failed `exec'.
139 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 exit 255
141 fi
142 # We don't want this to propagate to other subprocesses.
143 { _as_can_reexec=; unset _as_can_reexec;}
144 if test "x$CONFIG_SHELL" = x; then
145 as_bourne_compatible="as_nop=:
146 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # is contrary to our usage. Disable this feature.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else \$as_nop
155 case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac
161 fi
162 "
163 as_required="as_fn_return () { (exit \$1); }
164 as_fn_success () { as_fn_return 0; }
165 as_fn_failure () { as_fn_return 1; }
166 as_fn_ret_success () { return 0; }
167 as_fn_ret_failure () { return 1; }
168
169 exitcode=0
170 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
171 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
172 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
173 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
174 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
175 then :
176
177 else \$as_nop
178 exitcode=1; echo positional parameters were not saved.
179 fi
180 test x\$exitcode = x0 || exit 1
181 blah=\$(echo \$(echo blah))
182 test x\"\$blah\" = xblah || exit 1
183 test -x / || exit 1"
184 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
185 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
186 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
187 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else $as_nop
192 as_have_required=no
193 fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
196
197 else $as_nop
198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 do
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
210 /*)
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
221 fi
222 fi
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
230
231 else $as_nop
232 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi
237 fi
238
239
240 if test "x$CONFIG_SHELL" != x
241 then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno
264 then :
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 printf "%s\n" "$0: Please tell [email protected] about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321 return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
389 {
390 eval $1+=\$2
391 }'
392 else $as_nop
393 as_fn_append ()
394 {
395 eval $1=\$$1\$2
396 }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else $as_nop
411 as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422 return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 fi
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\/\)$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\).*/{
475 s//\1/
476 q
477 }
478 s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
494 p
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME=''
613 PACKAGE_TARNAME=''
614 PACKAGE_VERSION=''
615 PACKAGE_STRING=''
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 ac_unique_file="nslint.c"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_subst_vars='LTLIBOBJS
653 V_INCLS
654 V_CCOPT
655 LIBOBJS
656 INSTALL_DATA
657 INSTALL_SCRIPT
658 INSTALL_PROGRAM
659 SHLICC2
660 OBJEXT
661 EXEEXT
662 ac_ct_CC
663 CPPFLAGS
664 LDFLAGS
665 CFLAGS
666 CC
667 target_os
668 target_vendor
669 target_cpu
670 target
671 host_os
672 host_vendor
673 host_cpu
674 host
675 build_os
676 build_vendor
677 build_cpu
678 build
679 target_alias
680 host_alias
681 build_alias
682 LIBS
683 ECHO_T
684 ECHO_N
685 ECHO_C
686 DEFS
687 mandir
688 localedir
689 libdir
690 psdir
691 pdfdir
692 dvidir
693 htmldir
694 infodir
695 docdir
696 oldincludedir
697 includedir
698 runstatedir
699 localstatedir
700 sharedstatedir
701 sysconfdir
702 datadir
703 datarootdir
704 libexecdir
705 sbindir
706 bindir
707 program_transform_name
708 prefix
709 exec_prefix
710 PACKAGE_URL
711 PACKAGE_BUGREPORT
712 PACKAGE_STRING
713 PACKAGE_VERSION
714 PACKAGE_TARNAME
715 PACKAGE_NAME
716 PATH_SEPARATOR
717 SHELL'
718 ac_subst_files=''
719 ac_user_opts='
720 enable_option_checking
721 enable_optimization
722 with_gcc
723 enable_largefile
724 enable_debug
725 '
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS'
734
735
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 ac_unrecognized_opts=
740 ac_unrecognized_sep=
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
757
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 runstatedir='${localstatedir}/run'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
784
785 ac_prev=
786 ac_dashdash=
787 for ac_option
788 do
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
792 ac_prev=
793 continue
794 fi
795
796 case $ac_option in
797 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 *=) ac_optarg= ;;
799 *) ac_optarg=yes ;;
800 esac
801
802 case $ac_dashdash$ac_option in
803 --)
804 ac_dashdash=yes ;;
805
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
810
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
815
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
822
823 --config-cache | -C)
824 cache_file=config.cache ;;
825
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
830
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
837
838 -disable-* | --disable-*)
839 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
842 as_fn_error $? "invalid feature name: \`$ac_useropt'"
843 ac_useropt_orig=$ac_useropt
844 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
846 *"
847 "enable_$ac_useropt"
848 "*) ;;
849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
850 ac_unrecognized_sep=', ';;
851 esac
852 eval enable_$ac_useropt=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: \`$ac_useropt'"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
872 *"
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=\$ac_optarg ;;
879
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
888
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
892
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
899
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
904
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
910
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
917
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
922
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
927
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
934
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
939
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
946
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
951
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
955
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
959
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
963
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
972
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
977
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
984
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
991
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1008
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1013
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1018
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1022
1023 -runstatedir | --runstatedir | --runstatedi | --runstated \
1024 | --runstate | --runstat | --runsta | --runst | --runs \
1025 | --run | --ru | --r)
1026 ac_prev=runstatedir ;;
1027 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1028 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1029 | --run=* | --ru=* | --r=*)
1030 runstatedir=$ac_optarg ;;
1031
1032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033 ac_prev=sbindir ;;
1034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035 | --sbi=* | --sb=*)
1036 sbindir=$ac_optarg ;;
1037
1038 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040 | --sharedst | --shareds | --shared | --share | --shar \
1041 | --sha | --sh)
1042 ac_prev=sharedstatedir ;;
1043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046 | --sha=* | --sh=*)
1047 sharedstatedir=$ac_optarg ;;
1048
1049 -site | --site | --sit)
1050 ac_prev=site ;;
1051 -site=* | --site=* | --sit=*)
1052 site=$ac_optarg ;;
1053
1054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055 ac_prev=srcdir ;;
1056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057 srcdir=$ac_optarg ;;
1058
1059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060 | --syscon | --sysco | --sysc | --sys | --sy)
1061 ac_prev=sysconfdir ;;
1062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064 sysconfdir=$ac_optarg ;;
1065
1066 -target | --target | --targe | --targ | --tar | --ta | --t)
1067 ac_prev=target_alias ;;
1068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069 target_alias=$ac_optarg ;;
1070
1071 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072 verbose=yes ;;
1073
1074 -version | --version | --versio | --versi | --vers | -V)
1075 ac_init_version=: ;;
1076
1077 -with-* | --with-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid package name: \`$ac_useropt'"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086 "with_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval with_$ac_useropt=\$ac_optarg ;;
1092
1093 -without-* | --without-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid package name: \`$ac_useropt'"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102 "with_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval with_$ac_useropt=no ;;
1108
1109 --x)
1110 # Obsolete; use --with-x.
1111 with_x=yes ;;
1112
1113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114 | --x-incl | --x-inc | --x-in | --x-i)
1115 ac_prev=x_includes ;;
1116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118 x_includes=$ac_optarg ;;
1119
1120 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122 ac_prev=x_libraries ;;
1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125 x_libraries=$ac_optarg ;;
1126
1127 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1128 Try \`$0 --help' for more information"
1129 ;;
1130
1131 *=*)
1132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 case $ac_envvar in #(
1135 '' | [0-9]* | *[!_$as_cr_alnum]* )
1136 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1137 esac
1138 eval $ac_envvar=\$ac_optarg
1139 export $ac_envvar ;;
1140
1141 *)
1142 # FIXME: should be removed in autoconf 3.0.
1143 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1147 ;;
1148
1149 esac
1150 done
1151
1152 if test -n "$ac_prev"; then
1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154 as_fn_error $? "missing argument to $ac_option"
1155 fi
1156
1157 if test -n "$ac_unrecognized_opts"; then
1158 case $enable_option_checking in
1159 no) ;;
1160 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1161 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162 esac
1163 fi
1164
1165 # Check all directory arguments for consistency.
1166 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169 libdir localedir mandir runstatedir
1170 do
1171 eval ac_val=\$$ac_var
1172 # Remove trailing slashes.
1173 case $ac_val in
1174 */ )
1175 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176 eval $ac_var=\$ac_val;;
1177 esac
1178 # Be sure to have absolute directory names.
1179 case $ac_val in
1180 [\\/$]* | ?:[\\/]* ) continue;;
1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182 esac
1183 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1184 done
1185
1186 # There might be people who depend on the old broken behavior: `$host'
1187 # used to hold the argument of --host etc.
1188 # FIXME: To remove some day.
1189 build=$build_alias
1190 host=$host_alias
1191 target=$target_alias
1192
1193 # FIXME: To remove some day.
1194 if test "x$host_alias" != x; then
1195 if test "x$build_alias" = x; then
1196 cross_compiling=maybe
1197 elif test "x$build_alias" != "x$host_alias"; then
1198 cross_compiling=yes
1199 fi
1200 fi
1201
1202 ac_tool_prefix=
1203 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204
1205 test "$silent" = yes && exec 6>/dev/null
1206
1207
1208 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209 ac_ls_di=`ls -di .` &&
1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211 as_fn_error $? "working directory cannot be determined"
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 as_fn_error $? "pwd does not report name of working directory"
1214
1215
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir=`$as_dirname -- "$as_myself" ||
1221 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$as_myself" : 'X\(//\)[^/]' \| \
1223 X"$as_myself" : 'X\(//\)$' \| \
1224 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1225 printf "%s\n" X"$as_myself" |
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227 s//\1/
1228 q
1229 }
1230 /^X\(\/\/\)[^/].*/{
1231 s//\1/
1232 q
1233 }
1234 /^X\(\/\/\)$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\).*/{
1239 s//\1/
1240 q
1241 }
1242 s/.*/./; q'`
1243 srcdir=$ac_confdir
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 srcdir=..
1246 fi
1247 else
1248 ac_srcdir_defaulted=no
1249 fi
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1253 fi
1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255 ac_abs_confdir=`(
1256 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1257 pwd)`
1258 # When building in place, set srcdir=.
1259 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 srcdir=.
1261 fi
1262 # Remove unnecessary trailing slashes from srcdir.
1263 # Double slashes in file names in object file debugging info
1264 # mess up M-x gdb in Emacs.
1265 case $srcdir in
1266 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267 esac
1268 for ac_var in $ac_precious_vars; do
1269 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_env_${ac_var}_value=\$${ac_var}
1271 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273 done
1274
1275 #
1276 # Report the --help message.
1277 #
1278 if test "$ac_init_help" = "long"; then
1279 # Omit some internal or obsolete options to make the list less imposing.
1280 # This message is too long to be a string in the A/UX 3.1 sh.
1281 cat <<_ACEOF
1282 \`configure' configures this package to adapt to many kinds of systems.
1283
1284 Usage: $0 [OPTION]... [VAR=VALUE]...
1285
1286 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1287 VAR=VALUE. See below for descriptions of some of the useful variables.
1288
1289 Defaults for the options are specified in brackets.
1290
1291 Configuration:
1292 -h, --help display this help and exit
1293 --help=short display options specific to this package
1294 --help=recursive display the short help of all the included packages
1295 -V, --version display version information and exit
1296 -q, --quiet, --silent do not print \`checking ...' messages
1297 --cache-file=FILE cache test results in FILE [disabled]
1298 -C, --config-cache alias for \`--cache-file=config.cache'
1299 -n, --no-create do not create output files
1300 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1301
1302 Installation directories:
1303 --prefix=PREFIX install architecture-independent files in PREFIX
1304 [$ac_default_prefix]
1305 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 [PREFIX]
1307
1308 By default, \`make install' will install all the files in
1309 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1310 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1311 for instance \`--prefix=\$HOME'.
1312
1313 For better control, use the options below.
1314
1315 Fine tuning of the installation directories:
1316 --bindir=DIR user executables [EPREFIX/bin]
1317 --sbindir=DIR system admin executables [EPREFIX/sbin]
1318 --libexecdir=DIR program executables [EPREFIX/libexec]
1319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1321 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1322 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1336 _ACEOF
1337
1338 cat <<\_ACEOF
1339
1340 System types:
1341 --build=BUILD configure for building on BUILD [guessed]
1342 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1343 --target=TARGET configure for building compilers for TARGET [HOST]
1344 _ACEOF
1345 fi
1346
1347 if test -n "$ac_init_help"; then
1348
1349 cat <<\_ACEOF
1350
1351 Optional Features:
1352 --disable-option-checking ignore unrecognized --enable/--with options
1353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1355 --disable-optimization turn off gcc optimization
1356 --disable-largefile omit support for large files
1357 --enable-debug enable debugging [default=no]
1358
1359 Optional Packages:
1360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1362 --without-gcc don't use gcc
1363
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372
1373 Use these variables to override the choices made by `configure' or to help
1374 it to find libraries and programs with nonstandard names/locations.
1375
1376 Report bugs to the package provider.
1377 _ACEOF
1378 ac_status=$?
1379 fi
1380
1381 if test "$ac_init_help" = "recursive"; then
1382 # If there are subdirs, report their specific --help.
1383 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1384 test -d "$ac_dir" ||
1385 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1386 continue
1387 ac_builddir=.
1388
1389 case "$ac_dir" in
1390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 *)
1392 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1393 # A ".." for each directory in $ac_dir_suffix.
1394 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1395 case $ac_top_builddir_sub in
1396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398 esac ;;
1399 esac
1400 ac_abs_top_builddir=$ac_pwd
1401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1402 # for backward compatibility:
1403 ac_top_builddir=$ac_top_build_prefix
1404
1405 case $srcdir in
1406 .) # We are building in place.
1407 ac_srcdir=.
1408 ac_top_srcdir=$ac_top_builddir_sub
1409 ac_abs_top_srcdir=$ac_pwd ;;
1410 [\\/]* | ?:[\\/]* ) # Absolute name.
1411 ac_srcdir=$srcdir$ac_dir_suffix;
1412 ac_top_srcdir=$srcdir
1413 ac_abs_top_srcdir=$srcdir ;;
1414 *) # Relative name.
1415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1416 ac_top_srcdir=$ac_top_build_prefix$srcdir
1417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418 esac
1419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420
1421 cd "$ac_dir" || { ac_status=$?; continue; }
1422 # Check for configure.gnu first; this name is used for a wrapper for
1423 # Metaconfig's "Configure" on case-insensitive file systems.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1435 fi
1436
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439 cat <<\_ACEOF
1440 configure
1441 generated by GNU Autoconf 2.71
1442
1443 Copyright (C) 2021 Free Software Foundation, Inc.
1444 This configure script is free software; the Free Software Foundation
1445 gives unlimited permission to copy, distribute and modify it.
1446
1447 Copyright (c) 1995, 1996, 1997, 2006, 2009, 2011
1448 The Regents of the University of California. All rights reserved.
1449 _ACEOF
1450 exit
1451 fi
1452
1453 ## ------------------------ ##
1454 ## Autoconf initialization. ##
1455 ## ------------------------ ##
1456
1457 # ac_fn_c_try_compile LINENO
1458 # --------------------------
1459 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1460 ac_fn_c_try_compile ()
1461 {
1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463 rm -f conftest.$ac_objext conftest.beam
1464 if { { ac_try="$ac_compile"
1465 case "(($ac_try" in
1466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1467 *) ac_try_echo=$ac_try;;
1468 esac
1469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470 printf "%s\n" "$ac_try_echo"; } >&5
1471 (eval "$ac_compile") 2>conftest.err
1472 ac_status=$?
1473 if test -s conftest.err; then
1474 grep -v '^ *+' conftest.err >conftest.er1
1475 cat conftest.er1 >&5
1476 mv -f conftest.er1 conftest.err
1477 fi
1478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479 test $ac_status = 0; } && {
1480 test -z "$ac_c_werror_flag" ||
1481 test ! -s conftest.err
1482 } && test -s conftest.$ac_objext
1483 then :
1484 ac_retval=0
1485 else $as_nop
1486 printf "%s\n" "$as_me: failed program was:" >&5
1487 sed 's/^/| /' conftest.$ac_ext >&5
1488
1489 ac_retval=1
1490 fi
1491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1492 as_fn_set_status $ac_retval
1493
1494 } # ac_fn_c_try_compile
1495
1496 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1497 # -------------------------------------------------------
1498 # Tests whether HEADER exists and can be compiled using the include files in
1499 # INCLUDES, setting the cache variable VAR accordingly.
1500 ac_fn_c_check_header_compile ()
1501 {
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1504 printf %s "checking for $2... " >&6; }
1505 if eval test \${$3+y}
1506 then :
1507 printf %s "(cached) " >&6
1508 else $as_nop
1509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1510 /* end confdefs.h. */
1511 $4
1512 #include <$2>
1513 _ACEOF
1514 if ac_fn_c_try_compile "$LINENO"
1515 then :
1516 eval "$3=yes"
1517 else $as_nop
1518 eval "$3=no"
1519 fi
1520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1521 fi
1522 eval ac_res=\$$3
1523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1524 printf "%s\n" "$ac_res" >&6; }
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526
1527 } # ac_fn_c_check_header_compile
1528
1529 # ac_fn_c_try_link LINENO
1530 # -----------------------
1531 # Try to link conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_link ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1536 if { { ac_try="$ac_link"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 printf "%s\n" "$ac_try_echo"; } >&5
1543 (eval "$ac_link") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest$ac_exeext && {
1555 test "$cross_compiling" = yes ||
1556 test -x conftest$ac_exeext
1557 }
1558 then :
1559 ac_retval=0
1560 else $as_nop
1561 printf "%s\n" "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565 fi
1566 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1567 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1568 # interfere with the next link command; also delete a directory that is
1569 # left behind by Apple's compiler. We do this before executing the actions.
1570 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1573
1574 } # ac_fn_c_try_link
1575
1576 # ac_fn_c_check_func LINENO FUNC VAR
1577 # ----------------------------------
1578 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1579 ac_fn_c_check_func ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583 printf %s "checking for $2... " >&6; }
1584 if eval test \${$3+y}
1585 then :
1586 printf %s "(cached) " >&6
1587 else $as_nop
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1590 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1592 #define $2 innocuous_$2
1593
1594 /* System header to define __stub macros and hopefully few prototypes,
1595 which can conflict with char $2 (); below. */
1596
1597 #include <limits.h>
1598 #undef $2
1599
1600 /* Override any GCC internal prototype to avoid an error.
1601 Use char because int might match the return type of a GCC
1602 builtin and then its argument prototype would still apply. */
1603 #ifdef __cplusplus
1604 extern "C"
1605 #endif
1606 char $2 ();
1607 /* The GNU C library defines this for functions which it implements
1608 to always fail with ENOSYS. Some functions are actually named
1609 something starting with __ and the normal name is an alias. */
1610 #if defined __stub_$2 || defined __stub___$2
1611 choke me
1612 #endif
1613
1614 int
1615 main (void)
1616 {
1617 return $2 ();
1618 ;
1619 return 0;
1620 }
1621 _ACEOF
1622 if ac_fn_c_try_link "$LINENO"
1623 then :
1624 eval "$3=yes"
1625 else $as_nop
1626 eval "$3=no"
1627 fi
1628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1629 conftest$ac_exeext conftest.$ac_ext
1630 fi
1631 eval ac_res=\$$3
1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 printf "%s\n" "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636 } # ac_fn_c_check_func
1637 ac_configure_args_raw=
1638 for ac_arg
1639 do
1640 case $ac_arg in
1641 *\'*)
1642 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1643 esac
1644 as_fn_append ac_configure_args_raw " '$ac_arg'"
1645 done
1646
1647 case $ac_configure_args_raw in
1648 *$as_nl*)
1649 ac_safe_unquote= ;;
1650 *)
1651 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1652 ac_unsafe_a="$ac_unsafe_z#~"
1653 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1654 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1655 esac
1656
1657 cat >config.log <<_ACEOF
1658 This file contains any messages produced by compilers while
1659 running configure, to aid debugging if configure makes a mistake.
1660
1661 It was created by $as_me, which was
1662 generated by GNU Autoconf 2.71. Invocation command line was
1663
1664 $ $0$ac_configure_args_raw
1665
1666 _ACEOF
1667 exec 5>>config.log
1668 {
1669 cat <<_ASUNAME
1670 ## --------- ##
1671 ## Platform. ##
1672 ## --------- ##
1673
1674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1679
1680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1681 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1682
1683 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1684 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1686 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1687 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1688 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1689 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1690
1691 _ASUNAME
1692
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696 IFS=$as_save_IFS
1697 case $as_dir in #(((
1698 '') as_dir=./ ;;
1699 */) ;;
1700 *) as_dir=$as_dir/ ;;
1701 esac
1702 printf "%s\n" "PATH: $as_dir"
1703 done
1704 IFS=$as_save_IFS
1705
1706 } >&5
1707
1708 cat >&5 <<_ACEOF
1709
1710
1711 ## ----------- ##
1712 ## Core tests. ##
1713 ## ----------- ##
1714
1715 _ACEOF
1716
1717
1718 # Keep a trace of the command line.
1719 # Strip out --no-create and --no-recursion so they do not pile up.
1720 # Strip out --silent because we don't want to record it for future runs.
1721 # Also quote any args containing shell meta-characters.
1722 # Make two passes to allow for proper duplicate-argument suppression.
1723 ac_configure_args=
1724 ac_configure_args0=
1725 ac_configure_args1=
1726 ac_must_keep_next=false
1727 for ac_pass in 1 2
1728 do
1729 for ac_arg
1730 do
1731 case $ac_arg in
1732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734 | -silent | --silent | --silen | --sile | --sil)
1735 continue ;;
1736 *\'*)
1737 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1738 esac
1739 case $ac_pass in
1740 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1741 2)
1742 as_fn_append ac_configure_args1 " '$ac_arg'"
1743 if test $ac_must_keep_next = true; then
1744 ac_must_keep_next=false # Got value, back to normal.
1745 else
1746 case $ac_arg in
1747 *=* | --config-cache | -C | -disable-* | --disable-* \
1748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750 | -with-* | --with-* | -without-* | --without-* | --x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753 esac
1754 ;;
1755 -* ) ac_must_keep_next=true ;;
1756 esac
1757 fi
1758 as_fn_append ac_configure_args " '$ac_arg'"
1759 ;;
1760 esac
1761 done
1762 done
1763 { ac_configure_args0=; unset ac_configure_args0;}
1764 { ac_configure_args1=; unset ac_configure_args1;}
1765
1766 # When interrupted or exit'd, cleanup temporary files, and complete
1767 # config.log. We remove comments because anyway the quotes in there
1768 # would cause problems or look ugly.
1769 # WARNING: Use '\'' to represent an apostrophe within the trap.
1770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1771 trap 'exit_status=$?
1772 # Sanitize IFS.
1773 IFS=" "" $as_nl"
1774 # Save into config.log some information that might help in debugging.
1775 {
1776 echo
1777
1778 printf "%s\n" "## ---------------- ##
1779 ## Cache variables. ##
1780 ## ---------------- ##"
1781 echo
1782 # The following way of writing the cache mishandles newlines in values,
1783 (
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1786 case $ac_val in #(
1787 *${as_nl}*)
1788 case $ac_var in #(
1789 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1790 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1791 esac
1792 case $ac_var in #(
1793 _ | IFS | as_nl) ;; #(
1794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1795 *) { eval $ac_var=; unset $ac_var;} ;;
1796 esac ;;
1797 esac
1798 done
1799 (set) 2>&1 |
1800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1801 *${as_nl}ac_space=\ *)
1802 sed -n \
1803 "s/'\''/'\''\\\\'\'''\''/g;
1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1805 ;; #(
1806 *)
1807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1808 ;;
1809 esac |
1810 sort
1811 )
1812 echo
1813
1814 printf "%s\n" "## ----------------- ##
1815 ## Output variables. ##
1816 ## ----------------- ##"
1817 echo
1818 for ac_var in $ac_subst_vars
1819 do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in
1822 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 esac
1824 printf "%s\n" "$ac_var='\''$ac_val'\''"
1825 done | sort
1826 echo
1827
1828 if test -n "$ac_subst_files"; then
1829 printf "%s\n" "## ------------------- ##
1830 ## File substitutions. ##
1831 ## ------------------- ##"
1832 echo
1833 for ac_var in $ac_subst_files
1834 do
1835 eval ac_val=\$$ac_var
1836 case $ac_val in
1837 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 esac
1839 printf "%s\n" "$ac_var='\''$ac_val'\''"
1840 done | sort
1841 echo
1842 fi
1843
1844 if test -s confdefs.h; then
1845 printf "%s\n" "## ----------- ##
1846 ## confdefs.h. ##
1847 ## ----------- ##"
1848 echo
1849 cat confdefs.h
1850 echo
1851 fi
1852 test "$ac_signal" != 0 &&
1853 printf "%s\n" "$as_me: caught signal $ac_signal"
1854 printf "%s\n" "$as_me: exit $exit_status"
1855 } >&5
1856 rm -f core *.core core.conftest.* &&
1857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1858 exit $exit_status
1859 ' 0
1860 for ac_signal in 1 2 13 15; do
1861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1862 done
1863 ac_signal=0
1864
1865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1866 rm -f -r conftest* confdefs.h
1867
1868 printf "%s\n" "/* confdefs.h */" > confdefs.h
1869
1870 # Predefined preprocessor variables.
1871
1872 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1873
1874 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1875
1876 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1877
1878 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1879
1880 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1881
1882 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1883
1884
1885 # Let the site file select an alternate cache file if it wants to.
1886 # Prefer an explicitly selected file to automatically selected ones.
1887 if test -n "$CONFIG_SITE"; then
1888 ac_site_files="$CONFIG_SITE"
1889 elif test "x$prefix" != xNONE; then
1890 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1891 else
1892 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1893 fi
1894
1895 for ac_site_file in $ac_site_files
1896 do
1897 case $ac_site_file in #(
1898 */*) :
1899 ;; #(
1900 *) :
1901 ac_site_file=./$ac_site_file ;;
1902 esac
1903 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1905 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1906 sed 's/^/| /' "$ac_site_file" >&5
1907 . "$ac_site_file" \
1908 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1909 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1910 as_fn_error $? "failed to load site script $ac_site_file
1911 See \`config.log' for more details" "$LINENO" 5; }
1912 fi
1913 done
1914
1915 if test -r "$cache_file"; then
1916 # Some versions of bash will fail to source /dev/null (special files
1917 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1918 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1920 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1921 case $cache_file in
1922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1923 *) . "./$cache_file";;
1924 esac
1925 fi
1926 else
1927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1928 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1929 >$cache_file
1930 fi
1931
1932 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
1933 # Test code for whether the C compiler supports C89 (global declarations)
1934 ac_c_conftest_c89_globals='
1935 /* Does the compiler advertise C89 conformance?
1936 Do not test the value of __STDC__, because some compilers set it to 0
1937 while being otherwise adequately conformant. */
1938 #if !defined __STDC__
1939 # error "Compiler does not advertise C89 conformance"
1940 #endif
1941
1942 #include <stddef.h>
1943 #include <stdarg.h>
1944 struct stat;
1945 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1946 struct buf { int x; };
1947 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1948 static char *e (p, i)
1949 char **p;
1950 int i;
1951 {
1952 return p[i];
1953 }
1954 static char *f (char * (*g) (char **, int), char **p, ...)
1955 {
1956 char *s;
1957 va_list v;
1958 va_start (v,p);
1959 s = g (p, va_arg (v,int));
1960 va_end (v);
1961 return s;
1962 }
1963
1964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1965 function prototypes and stuff, but not \xHH hex character constants.
1966 These do not provoke an error unfortunately, instead are silently treated
1967 as an "x". The following induces an error, until -std is added to get
1968 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1969 array size at least. It is necessary to write \x00 == 0 to get something
1970 that is true only with -std. */
1971 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1972
1973 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1974 inside strings and character constants. */
1975 #define FOO(x) '\''x'\''
1976 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1977
1978 int test (int i, double x);
1979 struct s1 {int (*f) (int a);};
1980 struct s2 {int (*f) (double a);};
1981 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1982 int, int);'
1983
1984 # Test code for whether the C compiler supports C89 (body of main).
1985 ac_c_conftest_c89_main='
1986 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1987 '
1988
1989 # Test code for whether the C compiler supports C99 (global declarations)
1990 ac_c_conftest_c99_globals='
1991 // Does the compiler advertise C99 conformance?
1992 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1993 # error "Compiler does not advertise C99 conformance"
1994 #endif
1995
1996 #include <stdbool.h>
1997 extern int puts (const char *);
1998 extern int printf (const char *, ...);
1999 extern int dprintf (int, const char *, ...);
2000 extern void *malloc (size_t);
2001
2002 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2003 // dprintf is used instead of fprintf to avoid needing to declare
2004 // FILE and stderr.
2005 #define debug(...) dprintf (2, __VA_ARGS__)
2006 #define showlist(...) puts (#__VA_ARGS__)
2007 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2008 static void
2009 test_varargs_macros (void)
2010 {
2011 int x = 1234;
2012 int y = 5678;
2013 debug ("Flag");
2014 debug ("X = %d\n", x);
2015 showlist (The first, second, and third items.);
2016 report (x>y, "x is %d but y is %d", x, y);
2017 }
2018
2019 // Check long long types.
2020 #define BIG64 18446744073709551615ull
2021 #define BIG32 4294967295ul
2022 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2023 #if !BIG_OK
2024 #error "your preprocessor is broken"
2025 #endif
2026 #if BIG_OK
2027 #else
2028 #error "your preprocessor is broken"
2029 #endif
2030 static long long int bignum = -9223372036854775807LL;
2031 static unsigned long long int ubignum = BIG64;
2032
2033 struct incomplete_array
2034 {
2035 int datasize;
2036 double data[];
2037 };
2038
2039 struct named_init {
2040 int number;
2041 const wchar_t *name;
2042 double average;
2043 };
2044
2045 typedef const char *ccp;
2046
2047 static inline int
2048 test_restrict (ccp restrict text)
2049 {
2050 // See if C++-style comments work.
2051 // Iterate through items via the restricted pointer.
2052 // Also check for declarations in for loops.
2053 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2054 continue;
2055 return 0;
2056 }
2057
2058 // Check varargs and va_copy.
2059 static bool
2060 test_varargs (const char *format, ...)
2061 {
2062 va_list args;
2063 va_start (args, format);
2064 va_list args_copy;
2065 va_copy (args_copy, args);
2066
2067 const char *str = "";
2068 int number = 0;
2069 float fnumber = 0;
2070
2071 while (*format)
2072 {
2073 switch (*format++)
2074 {
2075 case '\''s'\'': // string
2076 str = va_arg (args_copy, const char *);
2077 break;
2078 case '\''d'\'': // int
2079 number = va_arg (args_copy, int);
2080 break;
2081 case '\''f'\'': // float
2082 fnumber = va_arg (args_copy, double);
2083 break;
2084 default:
2085 break;
2086 }
2087 }
2088 va_end (args_copy);
2089 va_end (args);
2090
2091 return *str && number && fnumber;
2092 }
2093 '
2094
2095 # Test code for whether the C compiler supports C99 (body of main).
2096 ac_c_conftest_c99_main='
2097 // Check bool.
2098 _Bool success = false;
2099 success |= (argc != 0);
2100
2101 // Check restrict.
2102 if (test_restrict ("String literal") == 0)
2103 success = true;
2104 char *restrict newvar = "Another string";
2105
2106 // Check varargs.
2107 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2108 test_varargs_macros ();
2109
2110 // Check flexible array members.
2111 struct incomplete_array *ia =
2112 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2113 ia->datasize = 10;
2114 for (int i = 0; i < ia->datasize; ++i)
2115 ia->data[i] = i * 1.234;
2116
2117 // Check named initializers.
2118 struct named_init ni = {
2119 .number = 34,
2120 .name = L"Test wide string",
2121 .average = 543.34343,
2122 };
2123
2124 ni.number = 58;
2125
2126 int dynamic_array[ni.number];
2127 dynamic_array[0] = argv[0][0];
2128 dynamic_array[ni.number - 1] = 543;
2129
2130 // work around unused variable warnings
2131 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2132 || dynamic_array[ni.number - 1] != 543);
2133 '
2134
2135 # Test code for whether the C compiler supports C11 (global declarations)
2136 ac_c_conftest_c11_globals='
2137 // Does the compiler advertise C11 conformance?
2138 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2139 # error "Compiler does not advertise C11 conformance"
2140 #endif
2141
2142 // Check _Alignas.
2143 char _Alignas (double) aligned_as_double;
2144 char _Alignas (0) no_special_alignment;
2145 extern char aligned_as_int;
2146 char _Alignas (0) _Alignas (int) aligned_as_int;
2147
2148 // Check _Alignof.
2149 enum
2150 {
2151 int_alignment = _Alignof (int),
2152 int_array_alignment = _Alignof (int[100]),
2153 char_alignment = _Alignof (char)
2154 };
2155 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2156
2157 // Check _Noreturn.
2158 int _Noreturn does_not_return (void) { for (;;) continue; }
2159
2160 // Check _Static_assert.
2161 struct test_static_assert
2162 {
2163 int x;
2164 _Static_assert (sizeof (int) <= sizeof (long int),
2165 "_Static_assert does not work in struct");
2166 long int y;
2167 };
2168
2169 // Check UTF-8 literals.
2170 #define u8 syntax error!
2171 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2172
2173 // Check duplicate typedefs.
2174 typedef long *long_ptr;
2175 typedef long int *long_ptr;
2176 typedef long_ptr long_ptr;
2177
2178 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2179 struct anonymous
2180 {
2181 union {
2182 struct { int i; int j; };
2183 struct { int k; long int l; } w;
2184 };
2185 int m;
2186 } v1;
2187 '
2188
2189 # Test code for whether the C compiler supports C11 (body of main).
2190 ac_c_conftest_c11_main='
2191 _Static_assert ((offsetof (struct anonymous, i)
2192 == offsetof (struct anonymous, w.k)),
2193 "Anonymous union alignment botch");
2194 v1.i = 2;
2195 v1.w.k = 5;
2196 ok |= v1.i != 5;
2197 '
2198
2199 # Test code for whether the C compiler supports C11 (complete).
2200 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2201 ${ac_c_conftest_c99_globals}
2202 ${ac_c_conftest_c11_globals}
2203
2204 int
2205 main (int argc, char **argv)
2206 {
2207 int ok = 0;
2208 ${ac_c_conftest_c89_main}
2209 ${ac_c_conftest_c99_main}
2210 ${ac_c_conftest_c11_main}
2211 return ok;
2212 }
2213 "
2214
2215 # Test code for whether the C compiler supports C99 (complete).
2216 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2217 ${ac_c_conftest_c99_globals}
2218
2219 int
2220 main (int argc, char **argv)
2221 {
2222 int ok = 0;
2223 ${ac_c_conftest_c89_main}
2224 ${ac_c_conftest_c99_main}
2225 return ok;
2226 }
2227 "
2228
2229 # Test code for whether the C compiler supports C89 (complete).
2230 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2231
2232 int
2233 main (int argc, char **argv)
2234 {
2235 int ok = 0;
2236 ${ac_c_conftest_c89_main}
2237 return ok;
2238 }
2239 "
2240
2241 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2242 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2243 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2244 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2245 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2246 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2247 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2248 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2249 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2250 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2251
2252 # Auxiliary files required by this configure script.
2253 ac_aux_files="install-sh config.guess config.sub"
2254
2255 # Locations in which to look for auxiliary files.
2256 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2257
2258 # Search for a directory containing all of the required auxiliary files,
2259 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2260 # If we don't find one directory that contains all the files we need,
2261 # we report the set of missing files from the *first* directory in
2262 # $ac_aux_dir_candidates and give up.
2263 ac_missing_aux_files=""
2264 ac_first_candidate=:
2265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 as_found=false
2268 for as_dir in $ac_aux_dir_candidates
2269 do
2270 IFS=$as_save_IFS
2271 case $as_dir in #(((
2272 '') as_dir=./ ;;
2273 */) ;;
2274 *) as_dir=$as_dir/ ;;
2275 esac
2276 as_found=:
2277
2278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2279 ac_aux_dir_found=yes
2280 ac_install_sh=
2281 for ac_aux in $ac_aux_files
2282 do
2283 # As a special case, if "install-sh" is required, that requirement
2284 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2285 # and $ac_install_sh is set appropriately for whichever one is found.
2286 if test x"$ac_aux" = x"install-sh"
2287 then
2288 if test -f "${as_dir}install-sh"; then
2289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2290 ac_install_sh="${as_dir}install-sh -c"
2291 elif test -f "${as_dir}install.sh"; then
2292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2293 ac_install_sh="${as_dir}install.sh -c"
2294 elif test -f "${as_dir}shtool"; then
2295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2296 ac_install_sh="${as_dir}shtool install -c"
2297 else
2298 ac_aux_dir_found=no
2299 if $ac_first_candidate; then
2300 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2301 else
2302 break
2303 fi
2304 fi
2305 else
2306 if test -f "${as_dir}${ac_aux}"; then
2307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2308 else
2309 ac_aux_dir_found=no
2310 if $ac_first_candidate; then
2311 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2312 else
2313 break
2314 fi
2315 fi
2316 fi
2317 done
2318 if test "$ac_aux_dir_found" = yes; then
2319 ac_aux_dir="$as_dir"
2320 break
2321 fi
2322 ac_first_candidate=false
2323
2324 as_found=false
2325 done
2326 IFS=$as_save_IFS
2327 if $as_found
2328 then :
2329
2330 else $as_nop
2331 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2332 fi
2333
2334
2335 # These three variables are undocumented and unsupported,
2336 # and are intended to be withdrawn in a future Autoconf release.
2337 # They can cause serious problems if a builder's source tree is in a directory
2338 # whose full name contains unusual characters.
2339 if test -f "${ac_aux_dir}config.guess"; then
2340 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2341 fi
2342 if test -f "${ac_aux_dir}config.sub"; then
2343 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2344 fi
2345 if test -f "$ac_aux_dir/configure"; then
2346 ac_configure="$SHELL ${ac_aux_dir}configure"
2347 fi
2348
2349 # Check that the precious variables saved in the cache have kept the same
2350 # value.
2351 ac_cache_corrupted=false
2352 for ac_var in $ac_precious_vars; do
2353 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354 eval ac_new_set=\$ac_env_${ac_var}_set
2355 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356 eval ac_new_val=\$ac_env_${ac_var}_value
2357 case $ac_old_set,$ac_new_set in
2358 set,)
2359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2360 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2362 ,set)
2363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2364 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2365 ac_cache_corrupted=: ;;
2366 ,);;
2367 *)
2368 if test "x$ac_old_val" != "x$ac_new_val"; then
2369 # differences in whitespace do not lead to failure.
2370 ac_old_val_w=`echo x $ac_old_val`
2371 ac_new_val_w=`echo x $ac_new_val`
2372 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2375 ac_cache_corrupted=:
2376 else
2377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2378 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379 eval $ac_var=\$ac_old_val
2380 fi
2381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2382 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2384 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2385 fi;;
2386 esac
2387 # Pass precious variables to config.status.
2388 if test "$ac_new_set" = set; then
2389 case $ac_new_val in
2390 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2391 *) ac_arg=$ac_var=$ac_new_val ;;
2392 esac
2393 case " $ac_configure_args " in
2394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2395 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2396 esac
2397 fi
2398 done
2399 if $ac_cache_corrupted; then
2400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2404 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2405 and start over" "$LINENO" 5
2406 fi
2407 ## -------------------- ##
2408 ## Main body of script. ##
2409 ## -------------------- ##
2410
2411 ac_ext=c
2412 ac_cpp='$CPP $CPPFLAGS'
2413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416
2417
2418
2419
2420
2421
2422
2423 # Make sure we can run config.sub.
2424 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2425 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2426
2427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2428 printf %s "checking build system type... " >&6; }
2429 if test ${ac_cv_build+y}
2430 then :
2431 printf %s "(cached) " >&6
2432 else $as_nop
2433 ac_build_alias=$build_alias
2434 test "x$ac_build_alias" = x &&
2435 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2436 test "x$ac_build_alias" = x &&
2437 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2438 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2439 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2440
2441 fi
2442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2443 printf "%s\n" "$ac_cv_build" >&6; }
2444 case $ac_cv_build in
2445 *-*-*) ;;
2446 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2447 esac
2448 build=$ac_cv_build
2449 ac_save_IFS=$IFS; IFS='-'
2450 set x $ac_cv_build
2451 shift
2452 build_cpu=$1
2453 build_vendor=$2
2454 shift; shift
2455 # Remember, the first character of IFS is used to create $*,
2456 # except with old shells:
2457 build_os=$*
2458 IFS=$ac_save_IFS
2459 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2460
2461
2462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2463 printf %s "checking host system type... " >&6; }
2464 if test ${ac_cv_host+y}
2465 then :
2466 printf %s "(cached) " >&6
2467 else $as_nop
2468 if test "x$host_alias" = x; then
2469 ac_cv_host=$ac_cv_build
2470 else
2471 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2472 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2473 fi
2474
2475 fi
2476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2477 printf "%s\n" "$ac_cv_host" >&6; }
2478 case $ac_cv_host in
2479 *-*-*) ;;
2480 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2481 esac
2482 host=$ac_cv_host
2483 ac_save_IFS=$IFS; IFS='-'
2484 set x $ac_cv_host
2485 shift
2486 host_cpu=$1
2487 host_vendor=$2
2488 shift; shift
2489 # Remember, the first character of IFS is used to create $*,
2490 # except with old shells:
2491 host_os=$*
2492 IFS=$ac_save_IFS
2493 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2494
2495
2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2497 printf %s "checking target system type... " >&6; }
2498 if test ${ac_cv_target+y}
2499 then :
2500 printf %s "(cached) " >&6
2501 else $as_nop
2502 if test "x$target_alias" = x; then
2503 ac_cv_target=$ac_cv_host
2504 else
2505 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2506 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2507 fi
2508
2509 fi
2510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2511 printf "%s\n" "$ac_cv_target" >&6; }
2512 case $ac_cv_target in
2513 *-*-*) ;;
2514 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2515 esac
2516 target=$ac_cv_target
2517 ac_save_IFS=$IFS; IFS='-'
2518 set x $ac_cv_target
2519 shift
2520 target_cpu=$1
2521 target_vendor=$2
2522 shift; shift
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2525 target_os=$*
2526 IFS=$ac_save_IFS
2527 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2528
2529
2530 # The aliases save the names the user supplied, while $host etc.
2531 # will get canonicalized.
2532 test -n "$target_alias" &&
2533 test "$program_prefix$program_suffix$program_transform_name" = \
2534 NONENONEs,x,x, &&
2535 program_prefix=${target_alias}-
2536
2537 umask 002
2538
2539 if test -z "$PWD" ; then
2540 PWD=`pwd`
2541 fi
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552 ac_ext=c
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 printf %s "checking for $ac_word... " >&6; }
2562 if test ${ac_cv_prog_CC+y}
2563 then :
2564 printf %s "(cached) " >&6
2565 else $as_nop
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2571 do
2572 IFS=$as_save_IFS
2573 case $as_dir in #(((
2574 '') as_dir=./ ;;
2575 */) ;;
2576 *) as_dir=$as_dir/ ;;
2577 esac
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593 printf "%s\n" "$CC" >&6; }
2594 else
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 printf "%s\n" "no" >&6; }
2597 fi
2598
2599
2600 fi
2601 if test -z "$ac_cv_prog_CC"; then
2602 ac_ct_CC=$CC
2603 # Extract the first word of "gcc", so it can be a program name with args.
2604 set dummy gcc; ac_word=$2
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 printf %s "checking for $ac_word... " >&6; }
2607 if test ${ac_cv_prog_ac_ct_CC+y}
2608 then :
2609 printf %s "(cached) " >&6
2610 else $as_nop
2611 if test -n "$ac_ct_CC"; then
2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617 IFS=$as_save_IFS
2618 case $as_dir in #(((
2619 '') as_dir=./ ;;
2620 */) ;;
2621 *) as_dir=$as_dir/ ;;
2622 esac
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2625 ac_cv_prog_ac_ct_CC="gcc"
2626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636 if test -n "$ac_ct_CC"; then
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2638 printf "%s\n" "$ac_ct_CC" >&6; }
2639 else
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 printf "%s\n" "no" >&6; }
2642 fi
2643
2644 if test "x$ac_ct_CC" = x; then
2645 CC=""
2646 else
2647 case $cross_compiling:$ac_tool_warned in
2648 yes:)
2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2650 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2651 ac_tool_warned=yes ;;
2652 esac
2653 CC=$ac_ct_CC
2654 fi
2655 else
2656 CC="$ac_cv_prog_CC"
2657 fi
2658
2659 if test -z "$CC"; then
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}cc; ac_word=$2
2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 printf %s "checking for $ac_word... " >&6; }
2665 if test ${ac_cv_prog_CC+y}
2666 then :
2667 printf %s "(cached) " >&6
2668 else $as_nop
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 case $as_dir in #(((
2677 '') as_dir=./ ;;
2678 */) ;;
2679 *) as_dir=$as_dir/ ;;
2680 esac
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_CC="${ac_tool_prefix}cc"
2684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687 done
2688 done
2689 IFS=$as_save_IFS
2690
2691 fi
2692 fi
2693 CC=$ac_cv_prog_CC
2694 if test -n "$CC"; then
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2696 printf "%s\n" "$CC" >&6; }
2697 else
2698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699 printf "%s\n" "no" >&6; }
2700 fi
2701
2702
2703 fi
2704 fi
2705 if test -z "$CC"; then
2706 # Extract the first word of "cc", so it can be a program name with args.
2707 set dummy cc; ac_word=$2
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 printf %s "checking for $ac_word... " >&6; }
2710 if test ${ac_cv_prog_CC+y}
2711 then :
2712 printf %s "(cached) " >&6
2713 else $as_nop
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716 else
2717 ac_prog_rejected=no
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721 IFS=$as_save_IFS
2722 case $as_dir in #(((
2723 '') as_dir=./ ;;
2724 */) ;;
2725 *) as_dir=$as_dir/ ;;
2726 esac
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2729 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2730 ac_prog_rejected=yes
2731 continue
2732 fi
2733 ac_cv_prog_CC="cc"
2734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 if test $ac_prog_rejected = yes; then
2742 # We found a bogon in the path, so make sure we never use it.
2743 set dummy $ac_cv_prog_CC
2744 shift
2745 if test $# != 0; then
2746 # We chose a different compiler from the bogus one.
2747 # However, it has the same basename, so the bogon will be chosen
2748 # first if we set CC to just the basename; use the full file name.
2749 shift
2750 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2751 fi
2752 fi
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 printf "%s\n" "$CC" >&6; }
2759 else
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 printf "%s\n" "no" >&6; }
2762 fi
2763
2764
2765 fi
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in cl.exe
2769 do
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 printf %s "checking for $ac_word... " >&6; }
2774 if test ${ac_cv_prog_CC+y}
2775 then :
2776 printf %s "(cached) " >&6
2777 else $as_nop
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 case $as_dir in #(((
2786 '') as_dir=./ ;;
2787 */) ;;
2788 *) as_dir=$as_dir/ ;;
2789 esac
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 printf "%s\n" "$CC" >&6; }
2806 else
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 printf "%s\n" "no" >&6; }
2809 fi
2810
2811
2812 test -n "$CC" && break
2813 done
2814 fi
2815 if test -z "$CC"; then
2816 ac_ct_CC=$CC
2817 for ac_prog in cl.exe
2818 do
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 printf %s "checking for $ac_word... " >&6; }
2823 if test ${ac_cv_prog_ac_ct_CC+y}
2824 then :
2825 printf %s "(cached) " >&6
2826 else $as_nop
2827 if test -n "$ac_ct_CC"; then
2828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833 IFS=$as_save_IFS
2834 case $as_dir in #(((
2835 '') as_dir=./ ;;
2836 */) ;;
2837 *) as_dir=$as_dir/ ;;
2838 esac
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_CC="$ac_prog"
2842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854 printf "%s\n" "$ac_ct_CC" >&6; }
2855 else
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 printf "%s\n" "no" >&6; }
2858 fi
2859
2860
2861 test -n "$ac_ct_CC" && break
2862 done
2863
2864 if test "x$ac_ct_CC" = x; then
2865 CC=""
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871 ac_tool_warned=yes ;;
2872 esac
2873 CC=$ac_ct_CC
2874 fi
2875 fi
2876
2877 fi
2878 if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}clang; ac_word=$2
2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 printf %s "checking for $ac_word... " >&6; }
2884 if test ${ac_cv_prog_CC+y}
2885 then :
2886 printf %s "(cached) " >&6
2887 else $as_nop
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 case $as_dir in #(((
2896 '') as_dir=./ ;;
2897 */) ;;
2898 *) as_dir=$as_dir/ ;;
2899 esac
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_CC="${ac_tool_prefix}clang"
2903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 printf "%s\n" "$CC" >&6; }
2916 else
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 printf "%s\n" "no" >&6; }
2919 fi
2920
2921
2922 fi
2923 if test -z "$ac_cv_prog_CC"; then
2924 ac_ct_CC=$CC
2925 # Extract the first word of "clang", so it can be a program name with args.
2926 set dummy clang; ac_word=$2
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 printf %s "checking for $ac_word... " >&6; }
2929 if test ${ac_cv_prog_ac_ct_CC+y}
2930 then :
2931 printf %s "(cached) " >&6
2932 else $as_nop
2933 if test -n "$ac_ct_CC"; then
2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 case $as_dir in #(((
2941 '') as_dir=./ ;;
2942 */) ;;
2943 *) as_dir=$as_dir/ ;;
2944 esac
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CC="clang"
2948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960 printf "%s\n" "$ac_ct_CC" >&6; }
2961 else
2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 printf "%s\n" "no" >&6; }
2964 fi
2965
2966 if test "x$ac_ct_CC" = x; then
2967 CC=""
2968 else
2969 case $cross_compiling:$ac_tool_warned in
2970 yes:)
2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2974 esac
2975 CC=$ac_ct_CC
2976 fi
2977 else
2978 CC="$ac_cv_prog_CC"
2979 fi
2980
2981 fi
2982
2983
2984 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error $? "no acceptable C compiler found in \$PATH
2987 See \`config.log' for more details" "$LINENO" 5; }
2988
2989 # Provide some information about the compiler.
2990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2991 set X $ac_compile
2992 ac_compiler=$2
2993 for ac_option in --version -v -V -qversion -version; do
2994 { { ac_try="$ac_compiler $ac_option >&5"
2995 case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 printf "%s\n" "$ac_try_echo"; } >&5
3001 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3002 ac_status=$?
3003 if test -s conftest.err; then
3004 sed '10a\
3005 ... rest of stderr output deleted ...
3006 10q' conftest.err >conftest.er1
3007 cat conftest.er1 >&5
3008 fi
3009 rm -f conftest.er1 conftest.err
3010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }
3012 done
3013
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3016
3017 int
3018 main (void)
3019 {
3020
3021 ;
3022 return 0;
3023 }
3024 _ACEOF
3025 ac_clean_files_save=$ac_clean_files
3026 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3027 # Try to create an executable without -o first, disregard a.out.
3028 # It will help us diagnose broken compilers, and finding out an intuition
3029 # of exeext.
3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3031 printf %s "checking whether the C compiler works... " >&6; }
3032 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3033
3034 # The possible output files:
3035 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3036
3037 ac_rmfiles=
3038 for ac_file in $ac_files
3039 do
3040 case $ac_file in
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3042 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3043 esac
3044 done
3045 rm -f $ac_rmfiles
3046
3047 if { { ac_try="$ac_link_default"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 printf "%s\n" "$ac_try_echo"; } >&5
3054 (eval "$ac_link_default") 2>&5
3055 ac_status=$?
3056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }
3058 then :
3059 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3060 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3061 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3062 # so that the user can short-circuit this test for compilers unknown to
3063 # Autoconf.
3064 for ac_file in $ac_files ''
3065 do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3069 ;;
3070 [ab].out )
3071 # We found the default executable, but exeext='' is most
3072 # certainly right.
3073 break;;
3074 *.* )
3075 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3076 then :; else
3077 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078 fi
3079 # We set ac_cv_exeext here because the later test for it is not
3080 # safe: cross compilers may not add the suffix if given an `-o'
3081 # argument, so we may need to know it at that point already.
3082 # Even if this section looks crufty: it has the advantage of
3083 # actually working.
3084 break;;
3085 * )
3086 break;;
3087 esac
3088 done
3089 test "$ac_cv_exeext" = no && ac_cv_exeext=
3090
3091 else $as_nop
3092 ac_file=''
3093 fi
3094 if test -z "$ac_file"
3095 then :
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 printf "%s\n" "no" >&6; }
3098 printf "%s\n" "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error 77 "C compiler cannot create executables
3104 See \`config.log' for more details" "$LINENO" 5; }
3105 else $as_nop
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 printf "%s\n" "yes" >&6; }
3108 fi
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3110 printf %s "checking for C compiler default output file name... " >&6; }
3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3112 printf "%s\n" "$ac_file" >&6; }
3113 ac_exeext=$ac_cv_exeext
3114
3115 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3116 ac_clean_files=$ac_clean_files_save
3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3118 printf %s "checking for suffix of executables... " >&6; }
3119 if { { ac_try="$ac_link"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 printf "%s\n" "$ac_try_echo"; } >&5
3126 (eval "$ac_link") 2>&5
3127 ac_status=$?
3128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }
3130 then :
3131 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3132 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3133 # work properly (i.e., refer to `conftest.exe'), while it won't with
3134 # `rm'.
3135 for ac_file in conftest.exe conftest conftest.*; do
3136 test -f "$ac_file" || continue
3137 case $ac_file in
3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3140 break;;
3141 * ) break;;
3142 esac
3143 done
3144 else $as_nop
3145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3148 See \`config.log' for more details" "$LINENO" 5; }
3149 fi
3150 rm -f conftest conftest$ac_cv_exeext
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3152 printf "%s\n" "$ac_cv_exeext" >&6; }
3153
3154 rm -f conftest.$ac_ext
3155 EXEEXT=$ac_cv_exeext
3156 ac_exeext=$EXEEXT
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3159 #include <stdio.h>
3160 int
3161 main (void)
3162 {
3163 FILE *f = fopen ("conftest.out", "w");
3164 return ferror (f) || fclose (f) != 0;
3165
3166 ;
3167 return 0;
3168 }
3169 _ACEOF
3170 ac_clean_files="$ac_clean_files conftest.out"
3171 # Check that the compiler produces executables we can run. If not, either
3172 # the compiler is broken, or we cross compile.
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3174 printf %s "checking whether we are cross compiling... " >&6; }
3175 if test "$cross_compiling" != yes; then
3176 { { ac_try="$ac_link"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 printf "%s\n" "$ac_try_echo"; } >&5
3183 (eval "$ac_link") 2>&5
3184 ac_status=$?
3185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }
3187 if { ac_try='./conftest$ac_cv_exeext'
3188 { { case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 printf "%s\n" "$ac_try_echo"; } >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }; }; then
3198 cross_compiling=no
3199 else
3200 if test "$cross_compiling" = maybe; then
3201 cross_compiling=yes
3202 else
3203 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error 77 "cannot run C compiled programs.
3206 If you meant to cross compile, use \`--host'.
3207 See \`config.log' for more details" "$LINENO" 5; }
3208 fi
3209 fi
3210 fi
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3212 printf "%s\n" "$cross_compiling" >&6; }
3213
3214 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3215 ac_clean_files=$ac_clean_files_save
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3217 printf %s "checking for suffix of object files... " >&6; }
3218 if test ${ac_cv_objext+y}
3219 then :
3220 printf %s "(cached) " >&6
3221 else $as_nop
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224
3225 int
3226 main (void)
3227 {
3228
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.o conftest.obj
3234 if { { ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 printf "%s\n" "$ac_try_echo"; } >&5
3241 (eval "$ac_compile") 2>&5
3242 ac_status=$?
3243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }
3245 then :
3246 for ac_file in conftest.o conftest.obj conftest.*; do
3247 test -f "$ac_file" || continue;
3248 case $ac_file in
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3251 break;;
3252 esac
3253 done
3254 else $as_nop
3255 printf "%s\n" "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot compute suffix of object files: cannot compile
3261 See \`config.log' for more details" "$LINENO" 5; }
3262 fi
3263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3264 fi
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3266 printf "%s\n" "$ac_cv_objext" >&6; }
3267 OBJEXT=$ac_cv_objext
3268 ac_objext=$OBJEXT
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3270 printf %s "checking whether the compiler supports GNU C... " >&6; }
3271 if test ${ac_cv_c_compiler_gnu+y}
3272 then :
3273 printf %s "(cached) " >&6
3274 else $as_nop
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3277
3278 int
3279 main (void)
3280 {
3281 #ifndef __GNUC__
3282 choke me
3283 #endif
3284
3285 ;
3286 return 0;
3287 }
3288 _ACEOF
3289 if ac_fn_c_try_compile "$LINENO"
3290 then :
3291 ac_compiler_gnu=yes
3292 else $as_nop
3293 ac_compiler_gnu=no
3294 fi
3295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3296 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3297
3298 fi
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3300 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302
3303 if test $ac_compiler_gnu = yes; then
3304 GCC=yes
3305 else
3306 GCC=
3307 fi
3308 ac_test_CFLAGS=${CFLAGS+y}
3309 ac_save_CFLAGS=$CFLAGS
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3311 printf %s "checking whether $CC accepts -g... " >&6; }
3312 if test ${ac_cv_prog_cc_g+y}
3313 then :
3314 printf %s "(cached) " >&6
3315 else $as_nop
3316 ac_save_c_werror_flag=$ac_c_werror_flag
3317 ac_c_werror_flag=yes
3318 ac_cv_prog_cc_g=no
3319 CFLAGS="-g"
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3322
3323 int
3324 main (void)
3325 {
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 if ac_fn_c_try_compile "$LINENO"
3332 then :
3333 ac_cv_prog_cc_g=yes
3334 else $as_nop
3335 CFLAGS=""
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338
3339 int
3340 main (void)
3341 {
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 if ac_fn_c_try_compile "$LINENO"
3348 then :
3349
3350 else $as_nop
3351 ac_c_werror_flag=$ac_save_c_werror_flag
3352 CFLAGS="-g"
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355
3356 int
3357 main (void)
3358 {
3359
3360 ;
3361 return 0;
3362 }
3363 _ACEOF
3364 if ac_fn_c_try_compile "$LINENO"
3365 then :
3366 ac_cv_prog_cc_g=yes
3367 fi
3368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3369 fi
3370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3371 fi
3372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3373 ac_c_werror_flag=$ac_save_c_werror_flag
3374 fi
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3376 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3377 if test $ac_test_CFLAGS; then
3378 CFLAGS=$ac_save_CFLAGS
3379 elif test $ac_cv_prog_cc_g = yes; then
3380 if test "$GCC" = yes; then
3381 CFLAGS="-g -O2"
3382 else
3383 CFLAGS="-g"
3384 fi
3385 else
3386 if test "$GCC" = yes; then
3387 CFLAGS="-O2"
3388 else
3389 CFLAGS=
3390 fi
3391 fi
3392 ac_prog_cc_stdc=no
3393 if test x$ac_prog_cc_stdc = xno
3394 then :
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3396 printf %s "checking for $CC option to enable C11 features... " >&6; }
3397 if test ${ac_cv_prog_cc_c11+y}
3398 then :
3399 printf %s "(cached) " >&6
3400 else $as_nop
3401 ac_cv_prog_cc_c11=no
3402 ac_save_CC=$CC
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405 $ac_c_conftest_c11_program
3406 _ACEOF
3407 for ac_arg in '' -std=gnu11
3408 do
3409 CC="$ac_save_CC $ac_arg"
3410 if ac_fn_c_try_compile "$LINENO"
3411 then :
3412 ac_cv_prog_cc_c11=$ac_arg
3413 fi
3414 rm -f core conftest.err conftest.$ac_objext conftest.beam
3415 test "x$ac_cv_prog_cc_c11" != "xno" && break
3416 done
3417 rm -f conftest.$ac_ext
3418 CC=$ac_save_CC
3419 fi
3420
3421 if test "x$ac_cv_prog_cc_c11" = xno
3422 then :
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3424 printf "%s\n" "unsupported" >&6; }
3425 else $as_nop
3426 if test "x$ac_cv_prog_cc_c11" = x
3427 then :
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3429 printf "%s\n" "none needed" >&6; }
3430 else $as_nop
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3432 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3433 CC="$CC $ac_cv_prog_cc_c11"
3434 fi
3435 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3436 ac_prog_cc_stdc=c11
3437 fi
3438 fi
3439 if test x$ac_prog_cc_stdc = xno
3440 then :
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3442 printf %s "checking for $CC option to enable C99 features... " >&6; }
3443 if test ${ac_cv_prog_cc_c99+y}
3444 then :
3445 printf %s "(cached) " >&6
3446 else $as_nop
3447 ac_cv_prog_cc_c99=no
3448 ac_save_CC=$CC
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3451 $ac_c_conftest_c99_program
3452 _ACEOF
3453 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3454 do
3455 CC="$ac_save_CC $ac_arg"
3456 if ac_fn_c_try_compile "$LINENO"
3457 then :
3458 ac_cv_prog_cc_c99=$ac_arg
3459 fi
3460 rm -f core conftest.err conftest.$ac_objext conftest.beam
3461 test "x$ac_cv_prog_cc_c99" != "xno" && break
3462 done
3463 rm -f conftest.$ac_ext
3464 CC=$ac_save_CC
3465 fi
3466
3467 if test "x$ac_cv_prog_cc_c99" = xno
3468 then :
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3470 printf "%s\n" "unsupported" >&6; }
3471 else $as_nop
3472 if test "x$ac_cv_prog_cc_c99" = x
3473 then :
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3475 printf "%s\n" "none needed" >&6; }
3476 else $as_nop
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3478 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3479 CC="$CC $ac_cv_prog_cc_c99"
3480 fi
3481 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3482 ac_prog_cc_stdc=c99
3483 fi
3484 fi
3485 if test x$ac_prog_cc_stdc = xno
3486 then :
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3488 printf %s "checking for $CC option to enable C89 features... " >&6; }
3489 if test ${ac_cv_prog_cc_c89+y}
3490 then :
3491 printf %s "(cached) " >&6
3492 else $as_nop
3493 ac_cv_prog_cc_c89=no
3494 ac_save_CC=$CC
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497 $ac_c_conftest_c89_program
3498 _ACEOF
3499 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3500 do
3501 CC="$ac_save_CC $ac_arg"
3502 if ac_fn_c_try_compile "$LINENO"
3503 then :
3504 ac_cv_prog_cc_c89=$ac_arg
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.beam
3507 test "x$ac_cv_prog_cc_c89" != "xno" && break
3508 done
3509 rm -f conftest.$ac_ext
3510 CC=$ac_save_CC
3511 fi
3512
3513 if test "x$ac_cv_prog_cc_c89" = xno
3514 then :
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3516 printf "%s\n" "unsupported" >&6; }
3517 else $as_nop
3518 if test "x$ac_cv_prog_cc_c89" = x
3519 then :
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3521 printf "%s\n" "none needed" >&6; }
3522 else $as_nop
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3524 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3525 CC="$CC $ac_cv_prog_cc_c89"
3526 fi
3527 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3528 ac_prog_cc_stdc=c89
3529 fi
3530 fi
3531
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537
3538
3539 ac_header= ac_cache=
3540 for ac_item in $ac_header_c_list
3541 do
3542 if test $ac_cache; then
3543 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3544 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3545 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3546 fi
3547 ac_header= ac_cache=
3548 elif test $ac_header; then
3549 ac_cache=$ac_item
3550 else
3551 ac_header=$ac_item
3552 fi
3553 done
3554
3555
3556
3557
3558
3559
3560
3561
3562 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3563 then :
3564
3565 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3566
3567 fi
3568
3569
3570
3571
3572
3573
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3575 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3576 if test ${ac_cv_safe_to_define___extensions__+y}
3577 then :
3578 printf %s "(cached) " >&6
3579 else $as_nop
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 # define __EXTENSIONS__ 1
3584 $ac_includes_default
3585 int
3586 main (void)
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"
3594 then :
3595 ac_cv_safe_to_define___extensions__=yes
3596 else $as_nop
3597 ac_cv_safe_to_define___extensions__=no
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3600 fi
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3602 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3603
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3605 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3606 if test ${ac_cv_should_define__xopen_source+y}
3607 then :
3608 printf %s "(cached) " >&6
3609 else $as_nop
3610 ac_cv_should_define__xopen_source=no
3611 if test $ac_cv_header_wchar_h = yes
3612 then :
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615
3616 #include <wchar.h>
3617 mbstate_t x;
3618 int
3619 main (void)
3620 {
3621
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 if ac_fn_c_try_compile "$LINENO"
3627 then :
3628
3629 else $as_nop
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632
3633 #define _XOPEN_SOURCE 500
3634 #include <wchar.h>
3635 mbstate_t x;
3636 int
3637 main (void)
3638 {
3639
3640 ;
3641 return 0;
3642 }
3643 _ACEOF
3644 if ac_fn_c_try_compile "$LINENO"
3645 then :
3646 ac_cv_should_define__xopen_source=yes
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3651 fi
3652 fi
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3654 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3655
3656 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3657
3658 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3659
3660 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3661
3662 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3663
3664 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3665
3666 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3667
3668 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3669
3670 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3671
3672 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3673
3674 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3675
3676 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3677
3678 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3679
3680 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3681
3682 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3683
3684 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3685
3686 if test $ac_cv_header_minix_config_h = yes
3687 then :
3688 MINIX=yes
3689 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3690
3691 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3692
3693 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3694
3695 else $as_nop
3696 MINIX=
3697 fi
3698 if test $ac_cv_safe_to_define___extensions__ = yes
3699 then :
3700 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3701
3702 fi
3703 if test $ac_cv_should_define__xopen_source = yes
3704 then :
3705 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3706
3707 fi
3708
3709
3710 # Check whether --enable-optimization was given.
3711 if test ${enable_optimization+y}
3712 then :
3713 enableval=$enable_optimization; ac_cv_enable_optimization=${enableval}
3714 fi
3715
3716
3717
3718
3719
3720 # Check whether --with-gcc was given.
3721 if test ${with_gcc+y}
3722 then :
3723 withval=$with_gcc;
3724 fi
3725
3726
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 if test -n "$ac_tool_prefix"; then
3733 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3734 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 printf %s "checking for $ac_word... " >&6; }
3737 if test ${ac_cv_prog_CC+y}
3738 then :
3739 printf %s "(cached) " >&6
3740 else $as_nop
3741 if test -n "$CC"; then
3742 ac_cv_prog_CC="$CC" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747 IFS=$as_save_IFS
3748 case $as_dir in #(((
3749 '') as_dir=./ ;;
3750 */) ;;
3751 *) as_dir=$as_dir/ ;;
3752 esac
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3755 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3757 break 2
3758 fi
3759 done
3760 done
3761 IFS=$as_save_IFS
3762
3763 fi
3764 fi
3765 CC=$ac_cv_prog_CC
3766 if test -n "$CC"; then
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3768 printf "%s\n" "$CC" >&6; }
3769 else
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 printf "%s\n" "no" >&6; }
3772 fi
3773
3774
3775 fi
3776 if test -z "$ac_cv_prog_CC"; then
3777 ac_ct_CC=$CC
3778 # Extract the first word of "gcc", so it can be a program name with args.
3779 set dummy gcc; ac_word=$2
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 printf %s "checking for $ac_word... " >&6; }
3782 if test ${ac_cv_prog_ac_ct_CC+y}
3783 then :
3784 printf %s "(cached) " >&6
3785 else $as_nop
3786 if test -n "$ac_ct_CC"; then
3787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792 IFS=$as_save_IFS
3793 case $as_dir in #(((
3794 '') as_dir=./ ;;
3795 */) ;;
3796 *) as_dir=$as_dir/ ;;
3797 esac
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_CC="gcc"
3801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804 done
3805 done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 printf "%s\n" "$ac_ct_CC" >&6; }
3814 else
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 printf "%s\n" "no" >&6; }
3817 fi
3818
3819 if test "x$ac_ct_CC" = x; then
3820 CC=""
3821 else
3822 case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828 CC=$ac_ct_CC
3829 fi
3830 else
3831 CC="$ac_cv_prog_CC"
3832 fi
3833
3834 if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}cc; ac_word=$2
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 printf %s "checking for $ac_word... " >&6; }
3840 if test ${ac_cv_prog_CC+y}
3841 then :
3842 printf %s "(cached) " >&6
3843 else $as_nop
3844 if test -n "$CC"; then
3845 ac_cv_prog_CC="$CC" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850 IFS=$as_save_IFS
3851 case $as_dir in #(((
3852 '') as_dir=./ ;;
3853 */) ;;
3854 *) as_dir=$as_dir/ ;;
3855 esac
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_CC="${ac_tool_prefix}cc"
3859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862 done
3863 done
3864 IFS=$as_save_IFS
3865
3866 fi
3867 fi
3868 CC=$ac_cv_prog_CC
3869 if test -n "$CC"; then
3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3871 printf "%s\n" "$CC" >&6; }
3872 else
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 printf "%s\n" "no" >&6; }
3875 fi
3876
3877
3878 fi
3879 fi
3880 if test -z "$CC"; then
3881 # Extract the first word of "cc", so it can be a program name with args.
3882 set dummy cc; ac_word=$2
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 printf %s "checking for $ac_word... " >&6; }
3885 if test ${ac_cv_prog_CC+y}
3886 then :
3887 printf %s "(cached) " >&6
3888 else $as_nop
3889 if test -n "$CC"; then
3890 ac_cv_prog_CC="$CC" # Let the user override the test.
3891 else
3892 ac_prog_rejected=no
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896 IFS=$as_save_IFS
3897 case $as_dir in #(((
3898 '') as_dir=./ ;;
3899 */) ;;
3900 *) as_dir=$as_dir/ ;;
3901 esac
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3904 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3905 ac_prog_rejected=yes
3906 continue
3907 fi
3908 ac_cv_prog_CC="cc"
3909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912 done
3913 done
3914 IFS=$as_save_IFS
3915
3916 if test $ac_prog_rejected = yes; then
3917 # We found a bogon in the path, so make sure we never use it.
3918 set dummy $ac_cv_prog_CC
3919 shift
3920 if test $# != 0; then
3921 # We chose a different compiler from the bogus one.
3922 # However, it has the same basename, so the bogon will be chosen
3923 # first if we set CC to just the basename; use the full file name.
3924 shift
3925 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3926 fi
3927 fi
3928 fi
3929 fi
3930 CC=$ac_cv_prog_CC
3931 if test -n "$CC"; then
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3933 printf "%s\n" "$CC" >&6; }
3934 else
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 printf "%s\n" "no" >&6; }
3937 fi
3938
3939
3940 fi
3941 if test -z "$CC"; then
3942 if test -n "$ac_tool_prefix"; then
3943 for ac_prog in cl.exe
3944 do
3945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 printf %s "checking for $ac_word... " >&6; }
3949 if test ${ac_cv_prog_CC+y}
3950 then :
3951 printf %s "(cached) " >&6
3952 else $as_nop
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 case $as_dir in #(((
3961 '') as_dir=./ ;;
3962 */) ;;
3963 *) as_dir=$as_dir/ ;;
3964 esac
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971 done
3972 done
3973 IFS=$as_save_IFS
3974
3975 fi
3976 fi
3977 CC=$ac_cv_prog_CC
3978 if test -n "$CC"; then
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3980 printf "%s\n" "$CC" >&6; }
3981 else
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 printf "%s\n" "no" >&6; }
3984 fi
3985
3986
3987 test -n "$CC" && break
3988 done
3989 fi
3990 if test -z "$CC"; then
3991 ac_ct_CC=$CC
3992 for ac_prog in cl.exe
3993 do
3994 # Extract the first word of "$ac_prog", so it can be a program name with args.
3995 set dummy $ac_prog; ac_word=$2
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 printf %s "checking for $ac_word... " >&6; }
3998 if test ${ac_cv_prog_ac_ct_CC+y}
3999 then :
4000 printf %s "(cached) " >&6
4001 else $as_nop
4002 if test -n "$ac_ct_CC"; then
4003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008 IFS=$as_save_IFS
4009 case $as_dir in #(((
4010 '') as_dir=./ ;;
4011 */) ;;
4012 *) as_dir=$as_dir/ ;;
4013 esac
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_ac_ct_CC="$ac_prog"
4017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020 done
4021 done
4022 IFS=$as_save_IFS
4023
4024 fi
4025 fi
4026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4027 if test -n "$ac_ct_CC"; then
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4029 printf "%s\n" "$ac_ct_CC" >&6; }
4030 else
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 printf "%s\n" "no" >&6; }
4033 fi
4034
4035
4036 test -n "$ac_ct_CC" && break
4037 done
4038
4039 if test "x$ac_ct_CC" = x; then
4040 CC=""
4041 else
4042 case $cross_compiling:$ac_tool_warned in
4043 yes:)
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4045 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4046 ac_tool_warned=yes ;;
4047 esac
4048 CC=$ac_ct_CC
4049 fi
4050 fi
4051
4052 fi
4053 if test -z "$CC"; then
4054 if test -n "$ac_tool_prefix"; then
4055 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4056 set dummy ${ac_tool_prefix}clang; ac_word=$2
4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 printf %s "checking for $ac_word... " >&6; }
4059 if test ${ac_cv_prog_CC+y}
4060 then :
4061 printf %s "(cached) " >&6
4062 else $as_nop
4063 if test -n "$CC"; then
4064 ac_cv_prog_CC="$CC" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069 IFS=$as_save_IFS
4070 case $as_dir in #(((
4071 '') as_dir=./ ;;
4072 */) ;;
4073 *) as_dir=$as_dir/ ;;
4074 esac
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4077 ac_cv_prog_CC="${ac_tool_prefix}clang"
4078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4079 break 2
4080 fi
4081 done
4082 done
4083 IFS=$as_save_IFS
4084
4085 fi
4086 fi
4087 CC=$ac_cv_prog_CC
4088 if test -n "$CC"; then
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4090 printf "%s\n" "$CC" >&6; }
4091 else
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 printf "%s\n" "no" >&6; }
4094 fi
4095
4096
4097 fi
4098 if test -z "$ac_cv_prog_CC"; then
4099 ac_ct_CC=$CC
4100 # Extract the first word of "clang", so it can be a program name with args.
4101 set dummy clang; ac_word=$2
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 printf %s "checking for $ac_word... " >&6; }
4104 if test ${ac_cv_prog_ac_ct_CC+y}
4105 then :
4106 printf %s "(cached) " >&6
4107 else $as_nop
4108 if test -n "$ac_ct_CC"; then
4109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114 IFS=$as_save_IFS
4115 case $as_dir in #(((
4116 '') as_dir=./ ;;
4117 */) ;;
4118 *) as_dir=$as_dir/ ;;
4119 esac
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4122 ac_cv_prog_ac_ct_CC="clang"
4123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4124 break 2
4125 fi
4126 done
4127 done
4128 IFS=$as_save_IFS
4129
4130 fi
4131 fi
4132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4133 if test -n "$ac_ct_CC"; then
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4135 printf "%s\n" "$ac_ct_CC" >&6; }
4136 else
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 printf "%s\n" "no" >&6; }
4139 fi
4140
4141 if test "x$ac_ct_CC" = x; then
4142 CC=""
4143 else
4144 case $cross_compiling:$ac_tool_warned in
4145 yes:)
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4147 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4148 ac_tool_warned=yes ;;
4149 esac
4150 CC=$ac_ct_CC
4151 fi
4152 else
4153 CC="$ac_cv_prog_CC"
4154 fi
4155
4156 fi
4157
4158
4159 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4161 as_fn_error $? "no acceptable C compiler found in \$PATH
4162 See \`config.log' for more details" "$LINENO" 5; }
4163
4164 # Provide some information about the compiler.
4165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4166 set X $ac_compile
4167 ac_compiler=$2
4168 for ac_option in --version -v -V -qversion -version; do
4169 { { ac_try="$ac_compiler $ac_option >&5"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 printf "%s\n" "$ac_try_echo"; } >&5
4176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4177 ac_status=$?
4178 if test -s conftest.err; then
4179 sed '10a\
4180 ... rest of stderr output deleted ...
4181 10q' conftest.err >conftest.er1
4182 cat conftest.er1 >&5
4183 fi
4184 rm -f conftest.er1 conftest.err
4185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }
4187 done
4188
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4190 printf %s "checking whether the compiler supports GNU C... " >&6; }
4191 if test ${ac_cv_c_compiler_gnu+y}
4192 then :
4193 printf %s "(cached) " >&6
4194 else $as_nop
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197
4198 int
4199 main (void)
4200 {
4201 #ifndef __GNUC__
4202 choke me
4203 #endif
4204
4205 ;
4206 return 0;
4207 }
4208 _ACEOF
4209 if ac_fn_c_try_compile "$LINENO"
4210 then :
4211 ac_compiler_gnu=yes
4212 else $as_nop
4213 ac_compiler_gnu=no
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4217
4218 fi
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4220 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222
4223 if test $ac_compiler_gnu = yes; then
4224 GCC=yes
4225 else
4226 GCC=
4227 fi
4228 ac_test_CFLAGS=${CFLAGS+y}
4229 ac_save_CFLAGS=$CFLAGS
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4231 printf %s "checking whether $CC accepts -g... " >&6; }
4232 if test ${ac_cv_prog_cc_g+y}
4233 then :
4234 printf %s "(cached) " >&6
4235 else $as_nop
4236 ac_save_c_werror_flag=$ac_c_werror_flag
4237 ac_c_werror_flag=yes
4238 ac_cv_prog_cc_g=no
4239 CFLAGS="-g"
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242
4243 int
4244 main (void)
4245 {
4246
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 if ac_fn_c_try_compile "$LINENO"
4252 then :
4253 ac_cv_prog_cc_g=yes
4254 else $as_nop
4255 CFLAGS=""
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258
4259 int
4260 main (void)
4261 {
4262
4263 ;
4264 return 0;
4265 }
4266 _ACEOF
4267 if ac_fn_c_try_compile "$LINENO"
4268 then :
4269
4270 else $as_nop
4271 ac_c_werror_flag=$ac_save_c_werror_flag
4272 CFLAGS="-g"
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275
4276 int
4277 main (void)
4278 {
4279
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 if ac_fn_c_try_compile "$LINENO"
4285 then :
4286 ac_cv_prog_cc_g=yes
4287 fi
4288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4293 ac_c_werror_flag=$ac_save_c_werror_flag
4294 fi
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4296 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4297 if test $ac_test_CFLAGS; then
4298 CFLAGS=$ac_save_CFLAGS
4299 elif test $ac_cv_prog_cc_g = yes; then
4300 if test "$GCC" = yes; then
4301 CFLAGS="-g -O2"
4302 else
4303 CFLAGS="-g"
4304 fi
4305 else
4306 if test "$GCC" = yes; then
4307 CFLAGS="-O2"
4308 else
4309 CFLAGS=
4310 fi
4311 fi
4312 ac_prog_cc_stdc=no
4313 if test x$ac_prog_cc_stdc = xno
4314 then :
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4316 printf %s "checking for $CC option to enable C11 features... " >&6; }
4317 if test ${ac_cv_prog_cc_c11+y}
4318 then :
4319 printf %s "(cached) " >&6
4320 else $as_nop
4321 ac_cv_prog_cc_c11=no
4322 ac_save_CC=$CC
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 $ac_c_conftest_c11_program
4326 _ACEOF
4327 for ac_arg in '' -std=gnu11
4328 do
4329 CC="$ac_save_CC $ac_arg"
4330 if ac_fn_c_try_compile "$LINENO"
4331 then :
4332 ac_cv_prog_cc_c11=$ac_arg
4333 fi
4334 rm -f core conftest.err conftest.$ac_objext conftest.beam
4335 test "x$ac_cv_prog_cc_c11" != "xno" && break
4336 done
4337 rm -f conftest.$ac_ext
4338 CC=$ac_save_CC
4339 fi
4340
4341 if test "x$ac_cv_prog_cc_c11" = xno
4342 then :
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4344 printf "%s\n" "unsupported" >&6; }
4345 else $as_nop
4346 if test "x$ac_cv_prog_cc_c11" = x
4347 then :
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4349 printf "%s\n" "none needed" >&6; }
4350 else $as_nop
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4352 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4353 CC="$CC $ac_cv_prog_cc_c11"
4354 fi
4355 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4356 ac_prog_cc_stdc=c11
4357 fi
4358 fi
4359 if test x$ac_prog_cc_stdc = xno
4360 then :
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4362 printf %s "checking for $CC option to enable C99 features... " >&6; }
4363 if test ${ac_cv_prog_cc_c99+y}
4364 then :
4365 printf %s "(cached) " >&6
4366 else $as_nop
4367 ac_cv_prog_cc_c99=no
4368 ac_save_CC=$CC
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 $ac_c_conftest_c99_program
4372 _ACEOF
4373 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4374 do
4375 CC="$ac_save_CC $ac_arg"
4376 if ac_fn_c_try_compile "$LINENO"
4377 then :
4378 ac_cv_prog_cc_c99=$ac_arg
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.beam
4381 test "x$ac_cv_prog_cc_c99" != "xno" && break
4382 done
4383 rm -f conftest.$ac_ext
4384 CC=$ac_save_CC
4385 fi
4386
4387 if test "x$ac_cv_prog_cc_c99" = xno
4388 then :
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4390 printf "%s\n" "unsupported" >&6; }
4391 else $as_nop
4392 if test "x$ac_cv_prog_cc_c99" = x
4393 then :
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4395 printf "%s\n" "none needed" >&6; }
4396 else $as_nop
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4398 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4399 CC="$CC $ac_cv_prog_cc_c99"
4400 fi
4401 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4402 ac_prog_cc_stdc=c99
4403 fi
4404 fi
4405 if test x$ac_prog_cc_stdc = xno
4406 then :
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4408 printf %s "checking for $CC option to enable C89 features... " >&6; }
4409 if test ${ac_cv_prog_cc_c89+y}
4410 then :
4411 printf %s "(cached) " >&6
4412 else $as_nop
4413 ac_cv_prog_cc_c89=no
4414 ac_save_CC=$CC
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 $ac_c_conftest_c89_program
4418 _ACEOF
4419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4420 do
4421 CC="$ac_save_CC $ac_arg"
4422 if ac_fn_c_try_compile "$LINENO"
4423 then :
4424 ac_cv_prog_cc_c89=$ac_arg
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.beam
4427 test "x$ac_cv_prog_cc_c89" != "xno" && break
4428 done
4429 rm -f conftest.$ac_ext
4430 CC=$ac_save_CC
4431 fi
4432
4433 if test "x$ac_cv_prog_cc_c89" = xno
4434 then :
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4436 printf "%s\n" "unsupported" >&6; }
4437 else $as_nop
4438 if test "x$ac_cv_prog_cc_c89" = x
4439 then :
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4441 printf "%s\n" "none needed" >&6; }
4442 else $as_nop
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4444 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4445 CC="$CC $ac_cv_prog_cc_c89"
4446 fi
4447 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4448 ac_prog_cc_stdc=c89
4449 fi
4450 fi
4451
4452 ac_ext=c
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457
4458 # Check whether --enable-largefile was given.
4459 if test ${enable_largefile+y}
4460 then :
4461 enableval=$enable_largefile;
4462 fi
4463
4464 if test "$enable_largefile" != no; then
4465
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4467 printf %s "checking for special C compiler options needed for large files... " >&6; }
4468 if test ${ac_cv_sys_largefile_CC+y}
4469 then :
4470 printf %s "(cached) " >&6
4471 else $as_nop
4472 ac_cv_sys_largefile_CC=no
4473 if test "$GCC" != yes; then
4474 ac_save_CC=$CC
4475 while :; do
4476 # IRIX 6.2 and later do not support large files by default,
4477 # so use the C compiler's -n32 option if that helps.
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4480 #include <sys/types.h>
4481 /* Check that off_t can represent 2**63 - 1 correctly.
4482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4483 since some C++ compilers masquerading as C compilers
4484 incorrectly reject 9223372036854775807. */
4485 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4487 && LARGE_OFF_T % 2147483647 == 1)
4488 ? 1 : -1];
4489 int
4490 main (void)
4491 {
4492
4493 ;
4494 return 0;
4495 }
4496 _ACEOF
4497 if ac_fn_c_try_compile "$LINENO"
4498 then :
4499 break
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.beam
4502 CC="$CC -n32"
4503 if ac_fn_c_try_compile "$LINENO"
4504 then :
4505 ac_cv_sys_largefile_CC=' -n32'; break
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.beam
4508 break
4509 done
4510 CC=$ac_save_CC
4511 rm -f conftest.$ac_ext
4512 fi
4513 fi
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4515 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
4516 if test "$ac_cv_sys_largefile_CC" != no; then
4517 CC=$CC$ac_cv_sys_largefile_CC
4518 fi
4519
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4521 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4522 if test ${ac_cv_sys_file_offset_bits+y}
4523 then :
4524 printf %s "(cached) " >&6
4525 else $as_nop
4526 while :; do
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #include <sys/types.h>
4530 /* Check that off_t can represent 2**63 - 1 correctly.
4531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4532 since some C++ compilers masquerading as C compilers
4533 incorrectly reject 9223372036854775807. */
4534 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4536 && LARGE_OFF_T % 2147483647 == 1)
4537 ? 1 : -1];
4538 int
4539 main (void)
4540 {
4541
4542 ;
4543 return 0;
4544 }
4545 _ACEOF
4546 if ac_fn_c_try_compile "$LINENO"
4547 then :
4548 ac_cv_sys_file_offset_bits=no; break
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 #define _FILE_OFFSET_BITS 64
4554 #include <sys/types.h>
4555 /* Check that off_t can represent 2**63 - 1 correctly.
4556 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4557 since some C++ compilers masquerading as C compilers
4558 incorrectly reject 9223372036854775807. */
4559 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4561 && LARGE_OFF_T % 2147483647 == 1)
4562 ? 1 : -1];
4563 int
4564 main (void)
4565 {
4566
4567 ;
4568 return 0;
4569 }
4570 _ACEOF
4571 if ac_fn_c_try_compile "$LINENO"
4572 then :
4573 ac_cv_sys_file_offset_bits=64; break
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4576 ac_cv_sys_file_offset_bits=unknown
4577 break
4578 done
4579 fi
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4581 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
4582 case $ac_cv_sys_file_offset_bits in #(
4583 no | unknown) ;;
4584 *)
4585 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
4586 ;;
4587 esac
4588 rm -rf conftest*
4589 if test $ac_cv_sys_file_offset_bits = unknown; then
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4591 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4592 if test ${ac_cv_sys_large_files+y}
4593 then :
4594 printf %s "(cached) " >&6
4595 else $as_nop
4596 while :; do
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <sys/types.h>
4600 /* Check that off_t can represent 2**63 - 1 correctly.
4601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4602 since some C++ compilers masquerading as C compilers
4603 incorrectly reject 9223372036854775807. */
4604 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4606 && LARGE_OFF_T % 2147483647 == 1)
4607 ? 1 : -1];
4608 int
4609 main (void)
4610 {
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"
4617 then :
4618 ac_cv_sys_large_files=no; break
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623 #define _LARGE_FILES 1
4624 #include <sys/types.h>
4625 /* Check that off_t can represent 2**63 - 1 correctly.
4626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4627 since some C++ compilers masquerading as C compilers
4628 incorrectly reject 9223372036854775807. */
4629 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4631 && LARGE_OFF_T % 2147483647 == 1)
4632 ? 1 : -1];
4633 int
4634 main (void)
4635 {
4636
4637 ;
4638 return 0;
4639 }
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"
4642 then :
4643 ac_cv_sys_large_files=1; break
4644 fi
4645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4646 ac_cv_sys_large_files=unknown
4647 break
4648 done
4649 fi
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4651 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
4652 case $ac_cv_sys_large_files in #(
4653 no | unknown) ;;
4654 *)
4655 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
4656 ;;
4657 esac
4658 rm -rf conftest*
4659 fi
4660 fi
4661
4662 V_CCOPT=""
4663 if test "${ac_cv_enable_optimization}" = "no"; then
4664 CFLAGS="`echo ${CFLAGS} | sed -e 's/ -O[0-3]*//'`"
4665 fi
4666 V_INCLS=""
4667 if test "${srcdir}" != "." ; then
4668 V_INCLS="-I\$\(srcdir\)"
4669 fi
4670 if test -z "$CC" ; then
4671 case "$target_os" in
4672
4673 bsdi*)
4674 # Extract the first word of "shlicc2", so it can be a program name with args.
4675 set dummy shlicc2; ac_word=$2
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 printf %s "checking for $ac_word... " >&6; }
4678 if test ${ac_cv_prog_SHLICC2+y}
4679 then :
4680 printf %s "(cached) " >&6
4681 else $as_nop
4682 if test -n "$SHLICC2"; then
4683 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 case $as_dir in #(((
4690 '') as_dir=./ ;;
4691 */) ;;
4692 *) as_dir=$as_dir/ ;;
4693 esac
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4696 ac_cv_prog_SHLICC2="yes"
4697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700 done
4701 done
4702 IFS=$as_save_IFS
4703
4704 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
4705 fi
4706 fi
4707 SHLICC2=$ac_cv_prog_SHLICC2
4708 if test -n "$SHLICC2"; then
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
4710 printf "%s\n" "$SHLICC2" >&6; }
4711 else
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 printf "%s\n" "no" >&6; }
4714 fi
4715
4716
4717 if test $SHLICC2 = yes ; then
4718 CC=shlicc2
4719 export CC
4720 fi
4721 ;;
4722 esac
4723 fi
4724 if test -z "$CC" -a "$with_gcc" = no ; then
4725 CC=cc
4726 export CC
4727 fi
4728 V_INCLS="$V_INCLS -I/usr/local/include"
4729 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4730 if test "$GCC" != yes ; then
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that $CC handles ansi prototypes" >&5
4732 printf %s "checking that $CC handles ansi prototypes... " >&6; }
4733 if test ${ac_cv_lbl_cc_ansi_prototypes+y}
4734 then :
4735 printf %s "(cached) " >&6
4736 else $as_nop
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739 #include <sys/types.h>
4740 int
4741 main (void)
4742 {
4743 int frob(int, char *)
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"
4749 then :
4750 ac_cv_lbl_cc_ansi_prototypes=yes
4751 else $as_nop
4752 ac_cv_lbl_cc_ansi_prototypes=no
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4755 fi
4756
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
4758 printf "%s\n" "$ac_cv_lbl_cc_ansi_prototypes" >&6; }
4759 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
4760 case "$target_os" in
4761
4762 hpux*)
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
4764 printf %s "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... " >&6; }
4765 savedcflags="$CFLAGS"
4766 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
4767 if test ${ac_cv_lbl_cc_hpux_cc_aa+y}
4768 then :
4769 printf %s "(cached) " >&6
4770 else $as_nop
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 #include <sys/types.h>
4774 int
4775 main (void)
4776 {
4777 int frob(int, char *)
4778 ;
4779 return 0;
4780 }
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"
4783 then :
4784 ac_cv_lbl_cc_hpux_cc_aa=yes
4785 else $as_nop
4786 ac_cv_lbl_cc_hpux_cc_aa=no
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4789 fi
4790
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
4792 printf "%s\n" "$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
4793 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
4794 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
4795 fi
4796 CFLAGS="$savedcflags"
4797 V_CCOPT="-Aa $V_CCOPT"
4798
4799 printf "%s\n" "#define _HPUX_SOURCE /**/" >>confdefs.h
4800
4801 ;;
4802
4803 *)
4804 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
4805 ;;
4806 esac
4807 fi
4808
4809 case "$target_os" in
4810
4811 irix*)
4812 V_CCOPT="$V_CCOPT -xansi -signed -g3"
4813 ;;
4814
4815 osf*)
4816 V_CCOPT="$V_CCOPT -std1 -g3"
4817 ;;
4818
4819 ultrix*)
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
4821 printf %s "checking that Ultrix $CC hacks const in prototypes... " >&6; }
4822 if test ${ac_cv_lbl_cc_const_proto+y}
4823 then :
4824 printf %s "(cached) " >&6
4825 else $as_nop
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #include <sys/types.h>
4829 int
4830 main (void)
4831 {
4832 struct a { int b; };
4833 void c(const struct a *)
4834 ;
4835 return 0;
4836 }
4837 _ACEOF
4838 if ac_fn_c_try_compile "$LINENO"
4839 then :
4840 ac_cv_lbl_cc_const_proto=yes
4841 else $as_nop
4842 ac_cv_lbl_cc_const_proto=no
4843 fi
4844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4845 fi
4846
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
4848 printf "%s\n" "$ac_cv_lbl_cc_const_proto" >&6; }
4849 if test $ac_cv_lbl_cc_const_proto = no ; then
4850
4851 printf "%s\n" "#define const /**/" >>confdefs.h
4852
4853 fi
4854 ;;
4855 esac
4856 fi
4857
4858
4859 # Find a good install program. We prefer a C program (faster),
4860 # so one script is as good as another. But avoid the broken or
4861 # incompatible versions:
4862 # SysV /etc/install, /usr/sbin/install
4863 # SunOS /usr/etc/install
4864 # IRIX /sbin/install
4865 # AIX /bin/install
4866 # AmigaOS /C/install, which installs bootblocks on floppy discs
4867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4870 # OS/2's system install, which has a completely different semantic
4871 # ./install, which can be erroneously created by make from ./install.sh.
4872 # Reject install programs that cannot install multiple files.
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4874 printf %s "checking for a BSD-compatible install... " >&6; }
4875 if test -z "$INSTALL"; then
4876 if test ${ac_cv_path_install+y}
4877 then :
4878 printf %s "(cached) " >&6
4879 else $as_nop
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883 IFS=$as_save_IFS
4884 case $as_dir in #(((
4885 '') as_dir=./ ;;
4886 */) ;;
4887 *) as_dir=$as_dir/ ;;
4888 esac
4889 # Account for fact that we put trailing slashes in our PATH walk.
4890 case $as_dir in #((
4891 ./ | /[cC]/* | \
4892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4893 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4894 /usr/ucb/* ) ;;
4895 *)
4896 # OSF1 and SCO ODT 3.0 have their own names for install.
4897 # Don't use installbsd from OSF since it installs stuff as root
4898 # by default.
4899 for ac_prog in ginstall scoinst install; do
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4902 if test $ac_prog = install &&
4903 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4904 # AIX install. It has an incompatible calling convention.
4905 :
4906 elif test $ac_prog = install &&
4907 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4908 # program-specific install script used by HP pwplus--don't use.
4909 :
4910 else
4911 rm -rf conftest.one conftest.two conftest.dir
4912 echo one > conftest.one
4913 echo two > conftest.two
4914 mkdir conftest.dir
4915 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4916 test -s conftest.one && test -s conftest.two &&
4917 test -s conftest.dir/conftest.one &&
4918 test -s conftest.dir/conftest.two
4919 then
4920 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4921 break 3
4922 fi
4923 fi
4924 fi
4925 done
4926 done
4927 ;;
4928 esac
4929
4930 done
4931 IFS=$as_save_IFS
4932
4933 rm -rf conftest.one conftest.two conftest.dir
4934
4935 fi
4936 if test ${ac_cv_path_install+y}; then
4937 INSTALL=$ac_cv_path_install
4938 else
4939 # As a last resort, use the slow shell script. Don't cache a
4940 # value for INSTALL within a source directory, because that will
4941 # break other packages using the cache if that directory is
4942 # removed, or if the value is a relative name.
4943 INSTALL=$ac_install_sh
4944 fi
4945 fi
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4947 printf "%s\n" "$INSTALL" >&6; }
4948
4949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4950 # It thinks the first close brace ends the variable substitution.
4951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4952
4953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4954
4955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4956
4957
4958 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4959 if test "x$ac_cv_header_fcntl_h" = xyes
4960 then :
4961 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
4962
4963 fi
4964 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
4965 if test "x$ac_cv_header_memory_h" = xyes
4966 then :
4967 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
4968
4969 fi
4970
4971
4972 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
4973 if test "x$ac_cv_func_strerror" = xyes
4974 then :
4975 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
4976
4977 else $as_nop
4978 case " $LIBOBJS " in
4979 *" strerror.$ac_objext "* ) ;;
4980 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
4981 ;;
4982 esac
4983
4984 fi
4985
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
4987 printf %s "checking for main in -lnsl... " >&6; }
4988 if test ${ac_cv_lib_nsl_main+y}
4989 then :
4990 printf %s "(cached) " >&6
4991 else $as_nop
4992 ac_check_lib_save_LIBS=$LIBS
4993 LIBS="-lnsl $LIBS"
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996
4997
4998 int
4999 main (void)
5000 {
5001 return main ();
5002 ;
5003 return 0;
5004 }
5005 _ACEOF
5006 if ac_fn_c_try_link "$LINENO"
5007 then :
5008 ac_cv_lib_nsl_main=yes
5009 else $as_nop
5010 ac_cv_lib_nsl_main=no
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5013 conftest$ac_exeext conftest.$ac_ext
5014 LIBS=$ac_check_lib_save_LIBS
5015 fi
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
5017 printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
5018 if test "x$ac_cv_lib_nsl_main" = xyes
5019 then :
5020 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
5021
5022 LIBS="-lnsl $LIBS"
5023
5024 fi
5025
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
5027 printf %s "checking for main in -lsocket... " >&6; }
5028 if test ${ac_cv_lib_socket_main+y}
5029 then :
5030 printf %s "(cached) " >&6
5031 else $as_nop
5032 ac_check_lib_save_LIBS=$LIBS
5033 LIBS="-lsocket $LIBS"
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036
5037
5038 int
5039 main (void)
5040 {
5041 return main ();
5042 ;
5043 return 0;
5044 }
5045 _ACEOF
5046 if ac_fn_c_try_link "$LINENO"
5047 then :
5048 ac_cv_lib_socket_main=yes
5049 else $as_nop
5050 ac_cv_lib_socket_main=no
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5053 conftest$ac_exeext conftest.$ac_ext
5054 LIBS=$ac_check_lib_save_LIBS
5055 fi
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
5057 printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
5058 if test "x$ac_cv_lib_socket_main" = xyes
5059 then :
5060 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
5061
5062 LIBS="-lsocket $LIBS"
5063
5064 fi
5065
5066
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int32_t using $CC" >&5
5068 printf %s "checking for int32_t using $CC... " >&6; }
5069 if test ${ac_cv_lbl_have_int32_t+y}
5070 then :
5071 printf %s "(cached) " >&6
5072 else $as_nop
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075
5076 # include "confdefs.h"
5077 # include <sys/types.h>
5078 # if STDC_HEADERS
5079 # include <stdlib.h>
5080 # include <stddef.h>
5081 # endif
5082 int
5083 main (void)
5084 {
5085 int32_t i
5086 ;
5087 return 0;
5088 }
5089 _ACEOF
5090 if ac_fn_c_try_compile "$LINENO"
5091 then :
5092 ac_cv_lbl_have_int32_t=yes
5093 else $as_nop
5094 ac_cv_lbl_have_int32_t=no
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5097 fi
5098
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_int32_t" >&5
5100 printf "%s\n" "$ac_cv_lbl_have_int32_t" >&6; }
5101 if test $ac_cv_lbl_have_int32_t = no ; then
5102
5103 printf "%s\n" "#define int32_t int" >>confdefs.h
5104
5105 fi
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for u_int32_t using $CC" >&5
5107 printf %s "checking for u_int32_t using $CC... " >&6; }
5108 if test ${ac_cv_lbl_have_u_int32_t+y}
5109 then :
5110 printf %s "(cached) " >&6
5111 else $as_nop
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114
5115 # include "confdefs.h"
5116 # include <sys/types.h>
5117 # if STDC_HEADERS
5118 # include <stdlib.h>
5119 # include <stddef.h>
5120 # endif
5121 int
5122 main (void)
5123 {
5124 u_int32_t i
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_c_try_compile "$LINENO"
5130 then :
5131 ac_cv_lbl_have_u_int32_t=yes
5132 else $as_nop
5133 ac_cv_lbl_have_u_int32_t=no
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5136 fi
5137
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_u_int32_t" >&5
5139 printf "%s\n" "$ac_cv_lbl_have_u_int32_t" >&6; }
5140 if test $ac_cv_lbl_have_u_int32_t = no ; then
5141
5142 printf "%s\n" "#define u_int32_t u_int" >>confdefs.h
5143
5144 fi
5145
5146
5147
5148 # Check whether --enable-debug was given.
5149 if test ${enable_debug+y}
5150 then :
5151 enableval=$enable_debug; ac_cv_enable_debug=${enableval}
5152 fi
5153
5154
5155 rm -f os-proto.h
5156 if test "${ac_cv_enable_debug}" = yes ; then
5157 if test "$GCC" = yes ; then
5158 CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes -Wstrict-prototypes"
5159 if [ "`uname -s`" = "FreeBSD" ]; then
5160 CFLAGS="${CFLAGS} -Werror"
5161 fi
5162
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-const-variable" >&5
5164 printf %s "checking if $CC supports -Wunused-const-variable... " >&6; }
5165 if test ${ac_cv_lbl_cc_unused_const_variable+y}
5166 then :
5167 printf %s "(cached) " >&6
5168 else $as_nop
5169 savedcflags="$CFLAGS"
5170 CFLAGS="${CFLAGS} -Wunused-const-variable"
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 int frob()
5174 _ACEOF
5175 if ac_fn_c_try_compile "$LINENO"
5176 then :
5177 ac_cv_lbl_cc_unused_const_variable=yes
5178 else $as_nop
5179 ac_cv_lbl_cc_unused_const_variable=no
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5182 fi
5183
5184 CFLAGS="${savedcflags}"
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_unused_const_variable" >&5
5186 printf "%s\n" "$ac_cv_lbl_cc_unused_const_variable" >&6; }
5187 if test $ac_cv_lbl_cc_unused_const_variable = yes ; then
5188 CFLAGS="${CFLAGS} -Wno-unused-const-variable"
5189 fi
5190 fi
5191 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
5192 name="lbl/os-$os.h"
5193 if test -f $name ; then
5194 ln -s $name os-proto.h
5195
5196 printf "%s\n" "#define HAVE_OS_PROTO_H /**/" >>confdefs.h
5197
5198 fi
5199 fi
5200
5201 if test -r lbl/gnuc.h ; then
5202 rm -f gnuc.h
5203 ln -s lbl/gnuc.h gnuc.h
5204 fi
5205
5206
5207
5208
5209
5210
5211
5212 ac_config_files="$ac_config_files Makefile"
5213
5214 cat >confcache <<\_ACEOF
5215 # This file is a shell script that caches the results of configure
5216 # tests run on this system so they can be shared between configure
5217 # scripts and configure runs, see configure's option --config-cache.
5218 # It is not useful on other systems. If it contains results you don't
5219 # want to keep, you may remove or edit it.
5220 #
5221 # config.status only pays attention to the cache file if you give it
5222 # the --recheck option to rerun configure.
5223 #
5224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5226 # following values.
5227
5228 _ACEOF
5229
5230 # The following way of writing the cache mishandles newlines in values,
5231 # but we know of no workaround that is simple, portable, and efficient.
5232 # So, we kill variables containing newlines.
5233 # Ultrix sh set writes to stderr and can't be redirected directly,
5234 # and sets the high bit in the cache file unless we assign to the vars.
5235 (
5236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5237 eval ac_val=\$$ac_var
5238 case $ac_val in #(
5239 *${as_nl}*)
5240 case $ac_var in #(
5241 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5242 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5243 esac
5244 case $ac_var in #(
5245 _ | IFS | as_nl) ;; #(
5246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5247 *) { eval $ac_var=; unset $ac_var;} ;;
5248 esac ;;
5249 esac
5250 done
5251
5252 (set) 2>&1 |
5253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5254 *${as_nl}ac_space=\ *)
5255 # `set' does not quote correctly, so add quotes: double-quote
5256 # substitution turns \\\\ into \\, and sed turns \\ into \.
5257 sed -n \
5258 "s/'/'\\\\''/g;
5259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5260 ;; #(
5261 *)
5262 # `set' quotes correctly as required by POSIX, so do not add quotes.
5263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5264 ;;
5265 esac |
5266 sort
5267 ) |
5268 sed '
5269 /^ac_cv_env_/b end
5270 t clear
5271 :clear
5272 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5273 t end
5274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5275 :end' >>confcache
5276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5277 if test -w "$cache_file"; then
5278 if test "x$cache_file" != "x/dev/null"; then
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5280 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5281 if test ! -f "$cache_file" || test -h "$cache_file"; then
5282 cat confcache >"$cache_file"
5283 else
5284 case $cache_file in #(
5285 */* | ?:*)
5286 mv -f confcache "$cache_file"$$ &&
5287 mv -f "$cache_file"$$ "$cache_file" ;; #(
5288 *)
5289 mv -f confcache "$cache_file" ;;
5290 esac
5291 fi
5292 fi
5293 else
5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5295 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5296 fi
5297 fi
5298 rm -f confcache
5299
5300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5301 # Let make expand exec_prefix.
5302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5303
5304 # Transform confdefs.h into DEFS.
5305 # Protect against shell expansion while executing Makefile rules.
5306 # Protect against Makefile macro expansion.
5307 #
5308 # If the first sed substitution is executed (which looks for macros that
5309 # take arguments), then branch to the quote section. Otherwise,
5310 # look for a macro that doesn't take arguments.
5311 ac_script='
5312 :mline
5313 /\\$/{
5314 N
5315 s,\\\n,,
5316 b mline
5317 }
5318 t clear
5319 :clear
5320 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5321 t quote
5322 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5323 t quote
5324 b any
5325 :quote
5326 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5327 s/\[/\\&/g
5328 s/\]/\\&/g
5329 s/\$/$$/g
5330 H
5331 :any
5332 ${
5333 g
5334 s/^\n//
5335 s/\n/ /g
5336 p
5337 }
5338 '
5339 DEFS=`sed -n "$ac_script" confdefs.h`
5340
5341
5342 ac_libobjs=
5343 ac_ltlibobjs=
5344 U=
5345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5346 # 1. Remove the extension, and $U if already installed.
5347 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5348 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5349 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5350 # will be set to the directory where LIBOBJS objects are built.
5351 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5352 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5353 done
5354 LIBOBJS=$ac_libobjs
5355
5356 LTLIBOBJS=$ac_ltlibobjs
5357
5358
5359
5360 : "${CONFIG_STATUS=./config.status}"
5361 ac_write_fail=0
5362 ac_clean_files_save=$ac_clean_files
5363 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5365 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5366 as_write_fail=0
5367 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5368 #! $SHELL
5369 # Generated by $as_me.
5370 # Run this file to recreate the current configuration.
5371 # Compiler output produced by configure, useful for debugging
5372 # configure, is in config.log if it exists.
5373
5374 debug=false
5375 ac_cs_recheck=false
5376 ac_cs_silent=false
5377
5378 SHELL=\${CONFIG_SHELL-$SHELL}
5379 export SHELL
5380 _ASEOF
5381 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5382 ## -------------------- ##
5383 ## M4sh Initialization. ##
5384 ## -------------------- ##
5385
5386 # Be more Bourne compatible
5387 DUALCASE=1; export DUALCASE # for MKS sh
5388 as_nop=:
5389 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5390 then :
5391 emulate sh
5392 NULLCMD=:
5393 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5394 # is contrary to our usage. Disable this feature.
5395 alias -g '${1+"$@"}'='"$@"'
5396 setopt NO_GLOB_SUBST
5397 else $as_nop
5398 case `(set -o) 2>/dev/null` in #(
5399 *posix*) :
5400 set -o posix ;; #(
5401 *) :
5402 ;;
5403 esac
5404 fi
5405
5406
5407
5408 # Reset variables that may have inherited troublesome values from
5409 # the environment.
5410
5411 # IFS needs to be set, to space, tab, and newline, in precisely that order.
5412 # (If _AS_PATH_WALK were called with IFS unset, it would have the
5413 # side effect of setting IFS to empty, thus disabling word splitting.)
5414 # Quoting is to prevent editors from complaining about space-tab.
5415 as_nl='
5416 '
5417 export as_nl
5418 IFS=" "" $as_nl"
5419
5420 PS1='$ '
5421 PS2='> '
5422 PS4='+ '
5423
5424 # Ensure predictable behavior from utilities with locale-dependent output.
5425 LC_ALL=C
5426 export LC_ALL
5427 LANGUAGE=C
5428 export LANGUAGE
5429
5430 # We cannot yet rely on "unset" to work, but we need these variables
5431 # to be unset--not just set to an empty or harmless value--now, to
5432 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5433 # also avoids known problems related to "unset" and subshell syntax
5434 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5435 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5436 do eval test \${$as_var+y} \
5437 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5438 done
5439
5440 # Ensure that fds 0, 1, and 2 are open.
5441 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5442 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5443 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
5444
5445 # The user is always right.
5446 if ${PATH_SEPARATOR+false} :; then
5447 PATH_SEPARATOR=:
5448 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5449 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5450 PATH_SEPARATOR=';'
5451 }
5452 fi
5453
5454
5455 # Find who we are. Look in the path if we contain no directory separator.
5456 as_myself=
5457 case $0 in #((
5458 *[\\/]* ) as_myself=$0 ;;
5459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462 IFS=$as_save_IFS
5463 case $as_dir in #(((
5464 '') as_dir=./ ;;
5465 */) ;;
5466 *) as_dir=$as_dir/ ;;
5467 esac
5468 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5469 done
5470 IFS=$as_save_IFS
5471
5472 ;;
5473 esac
5474 # We did not find ourselves, most probably we were run as `sh COMMAND'
5475 # in which case we are not to be found in the path.
5476 if test "x$as_myself" = x; then
5477 as_myself=$0
5478 fi
5479 if test ! -f "$as_myself"; then
5480 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5481 exit 1
5482 fi
5483
5484
5485
5486 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5487 # ----------------------------------------
5488 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5489 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5490 # script with STATUS, using 1 if that was 0.
5491 as_fn_error ()
5492 {
5493 as_status=$1; test $as_status -eq 0 && as_status=1
5494 if test "$4"; then
5495 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5497 fi
5498 printf "%s\n" "$as_me: error: $2" >&2
5499 as_fn_exit $as_status
5500 } # as_fn_error
5501
5502
5503
5504 # as_fn_set_status STATUS
5505 # -----------------------
5506 # Set $? to STATUS, without forking.
5507 as_fn_set_status ()
5508 {
5509 return $1
5510 } # as_fn_set_status
5511
5512 # as_fn_exit STATUS
5513 # -----------------
5514 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5515 as_fn_exit ()
5516 {
5517 set +e
5518 as_fn_set_status $1
5519 exit $1
5520 } # as_fn_exit
5521
5522 # as_fn_unset VAR
5523 # ---------------
5524 # Portably unset VAR.
5525 as_fn_unset ()
5526 {
5527 { eval $1=; unset $1;}
5528 }
5529 as_unset=as_fn_unset
5530
5531 # as_fn_append VAR VALUE
5532 # ----------------------
5533 # Append the text in VALUE to the end of the definition contained in VAR. Take
5534 # advantage of any shell optimizations that allow amortized linear growth over
5535 # repeated appends, instead of the typical quadratic growth present in naive
5536 # implementations.
5537 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5538 then :
5539 eval 'as_fn_append ()
5540 {
5541 eval $1+=\$2
5542 }'
5543 else $as_nop
5544 as_fn_append ()
5545 {
5546 eval $1=\$$1\$2
5547 }
5548 fi # as_fn_append
5549
5550 # as_fn_arith ARG...
5551 # ------------------
5552 # Perform arithmetic evaluation on the ARGs, and store the result in the
5553 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5554 # must be portable across $(()) and expr.
5555 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5556 then :
5557 eval 'as_fn_arith ()
5558 {
5559 as_val=$(( $* ))
5560 }'
5561 else $as_nop
5562 as_fn_arith ()
5563 {
5564 as_val=`expr "$@" || test $? -eq 1`
5565 }
5566 fi # as_fn_arith
5567
5568
5569 if expr a : '\(a\)' >/dev/null 2>&1 &&
5570 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5571 as_expr=expr
5572 else
5573 as_expr=false
5574 fi
5575
5576 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5577 as_basename=basename
5578 else
5579 as_basename=false
5580 fi
5581
5582 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5583 as_dirname=dirname
5584 else
5585 as_dirname=false
5586 fi
5587
5588 as_me=`$as_basename -- "$0" ||
5589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5590 X"$0" : 'X\(//\)$' \| \
5591 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5592 printf "%s\n" X/"$0" |
5593 sed '/^.*\/\([^/][^/]*\)\/*$/{
5594 s//\1/
5595 q
5596 }
5597 /^X\/\(\/\/\)$/{
5598 s//\1/
5599 q
5600 }
5601 /^X\/\(\/\).*/{
5602 s//\1/
5603 q
5604 }
5605 s/.*/./; q'`
5606
5607 # Avoid depending upon Character Ranges.
5608 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5609 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5610 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5611 as_cr_digits='0123456789'
5612 as_cr_alnum=$as_cr_Letters$as_cr_digits
5613
5614
5615 # Determine whether it's possible to make 'echo' print without a newline.
5616 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5617 # for compatibility with existing Makefiles.
5618 ECHO_C= ECHO_N= ECHO_T=
5619 case `echo -n x` in #(((((
5620 -n*)
5621 case `echo 'xy\c'` in
5622 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5623 xy) ECHO_C='\c';;
5624 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5625 ECHO_T=' ';;
5626 esac;;
5627 *)
5628 ECHO_N='-n';;
5629 esac
5630
5631 # For backward compatibility with old third-party macros, we provide
5632 # the shell variables $as_echo and $as_echo_n. New code should use
5633 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5634 as_echo='printf %s\n'
5635 as_echo_n='printf %s'
5636
5637 rm -f conf$$ conf$$.exe conf$$.file
5638 if test -d conf$$.dir; then
5639 rm -f conf$$.dir/conf$$.file
5640 else
5641 rm -f conf$$.dir
5642 mkdir conf$$.dir 2>/dev/null
5643 fi
5644 if (echo >conf$$.file) 2>/dev/null; then
5645 if ln -s conf$$.file conf$$ 2>/dev/null; then
5646 as_ln_s='ln -s'
5647 # ... but there are two gotchas:
5648 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5649 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5650 # In both cases, we have to default to `cp -pR'.
5651 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5652 as_ln_s='cp -pR'
5653 elif ln conf$$.file conf$$ 2>/dev/null; then
5654 as_ln_s=ln
5655 else
5656 as_ln_s='cp -pR'
5657 fi
5658 else
5659 as_ln_s='cp -pR'
5660 fi
5661 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5662 rmdir conf$$.dir 2>/dev/null
5663
5664
5665 # as_fn_mkdir_p
5666 # -------------
5667 # Create "$as_dir" as a directory, including parents if necessary.
5668 as_fn_mkdir_p ()
5669 {
5670
5671 case $as_dir in #(
5672 -*) as_dir=./$as_dir;;
5673 esac
5674 test -d "$as_dir" || eval $as_mkdir_p || {
5675 as_dirs=
5676 while :; do
5677 case $as_dir in #(
5678 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5679 *) as_qdir=$as_dir;;
5680 esac
5681 as_dirs="'$as_qdir' $as_dirs"
5682 as_dir=`$as_dirname -- "$as_dir" ||
5683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5684 X"$as_dir" : 'X\(//\)[^/]' \| \
5685 X"$as_dir" : 'X\(//\)$' \| \
5686 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5687 printf "%s\n" X"$as_dir" |
5688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5689 s//\1/
5690 q
5691 }
5692 /^X\(\/\/\)[^/].*/{
5693 s//\1/
5694 q
5695 }
5696 /^X\(\/\/\)$/{
5697 s//\1/
5698 q
5699 }
5700 /^X\(\/\).*/{
5701 s//\1/
5702 q
5703 }
5704 s/.*/./; q'`
5705 test -d "$as_dir" && break
5706 done
5707 test -z "$as_dirs" || eval "mkdir $as_dirs"
5708 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5709
5710
5711 } # as_fn_mkdir_p
5712 if mkdir -p . 2>/dev/null; then
5713 as_mkdir_p='mkdir -p "$as_dir"'
5714 else
5715 test -d ./-p && rmdir ./-p
5716 as_mkdir_p=false
5717 fi
5718
5719
5720 # as_fn_executable_p FILE
5721 # -----------------------
5722 # Test if FILE is an executable regular file.
5723 as_fn_executable_p ()
5724 {
5725 test -f "$1" && test -x "$1"
5726 } # as_fn_executable_p
5727 as_test_x='test -x'
5728 as_executable_p=as_fn_executable_p
5729
5730 # Sed expression to map a string onto a valid CPP name.
5731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5732
5733 # Sed expression to map a string onto a valid variable name.
5734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5735
5736
5737 exec 6>&1
5738 ## ----------------------------------- ##
5739 ## Main body of $CONFIG_STATUS script. ##
5740 ## ----------------------------------- ##
5741 _ASEOF
5742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5743
5744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5745 # Save the log message, to keep $0 and so on meaningful, and to
5746 # report actual input values of CONFIG_FILES etc. instead of their
5747 # values after options handling.
5748 ac_log="
5749 This file was extended by $as_me, which was
5750 generated by GNU Autoconf 2.71. Invocation command line was
5751
5752 CONFIG_FILES = $CONFIG_FILES
5753 CONFIG_HEADERS = $CONFIG_HEADERS
5754 CONFIG_LINKS = $CONFIG_LINKS
5755 CONFIG_COMMANDS = $CONFIG_COMMANDS
5756 $ $0 $@
5757
5758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5759 "
5760
5761 _ACEOF
5762
5763 case $ac_config_files in *"
5764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5765 esac
5766
5767
5768
5769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5770 # Files that config.status was made for.
5771 config_files="$ac_config_files"
5772
5773 _ACEOF
5774
5775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5776 ac_cs_usage="\
5777 \`$as_me' instantiates files and other configuration actions
5778 from templates according to the current configuration. Unless the files
5779 and actions are specified as TAGs, all are instantiated by default.
5780
5781 Usage: $0 [OPTION]... [TAG]...
5782
5783 -h, --help print this help, then exit
5784 -V, --version print version number and configuration settings, then exit
5785 --config print configuration, then exit
5786 -q, --quiet, --silent
5787 do not print progress messages
5788 -d, --debug don't remove temporary files
5789 --recheck update $as_me by reconfiguring in the same conditions
5790 --file=FILE[:TEMPLATE]
5791 instantiate the configuration file FILE
5792
5793 Configuration files:
5794 $config_files
5795
5796 Report bugs to the package provider."
5797
5798 _ACEOF
5799 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5800 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5802 ac_cs_config='$ac_cs_config_escaped'
5803 ac_cs_version="\\
5804 config.status
5805 configured by $0, generated by GNU Autoconf 2.71,
5806 with options \\"\$ac_cs_config\\"
5807
5808 Copyright (C) 2021 Free Software Foundation, Inc.
5809 This config.status script is free software; the Free Software Foundation
5810 gives unlimited permission to copy, distribute and modify it."
5811
5812 ac_pwd='$ac_pwd'
5813 srcdir='$srcdir'
5814 INSTALL='$INSTALL'
5815 test -n "\$AWK" || AWK=awk
5816 _ACEOF
5817
5818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5819 # The default lists apply if the user does not specify any file.
5820 ac_need_defaults=:
5821 while test $# != 0
5822 do
5823 case $1 in
5824 --*=?*)
5825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5827 ac_shift=:
5828 ;;
5829 --*=)
5830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5831 ac_optarg=
5832 ac_shift=:
5833 ;;
5834 *)
5835 ac_option=$1
5836 ac_optarg=$2
5837 ac_shift=shift
5838 ;;
5839 esac
5840
5841 case $ac_option in
5842 # Handling of the options.
5843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5844 ac_cs_recheck=: ;;
5845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5846 printf "%s\n" "$ac_cs_version"; exit ;;
5847 --config | --confi | --conf | --con | --co | --c )
5848 printf "%s\n" "$ac_cs_config"; exit ;;
5849 --debug | --debu | --deb | --de | --d | -d )
5850 debug=: ;;
5851 --file | --fil | --fi | --f )
5852 $ac_shift
5853 case $ac_optarg in
5854 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5855 '') as_fn_error $? "missing file argument" ;;
5856 esac
5857 as_fn_append CONFIG_FILES " '$ac_optarg'"
5858 ac_need_defaults=false;;
5859 --he | --h | --help | --hel | -h )
5860 printf "%s\n" "$ac_cs_usage"; exit ;;
5861 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5862 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5863 ac_cs_silent=: ;;
5864
5865 # This is an error.
5866 -*) as_fn_error $? "unrecognized option: \`$1'
5867 Try \`$0 --help' for more information." ;;
5868
5869 *) as_fn_append ac_config_targets " $1"
5870 ac_need_defaults=false ;;
5871
5872 esac
5873 shift
5874 done
5875
5876 ac_configure_extra_args=
5877
5878 if $ac_cs_silent; then
5879 exec 6>/dev/null
5880 ac_configure_extra_args="$ac_configure_extra_args --silent"
5881 fi
5882
5883 _ACEOF
5884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5885 if \$ac_cs_recheck; then
5886 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5887 shift
5888 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5889 CONFIG_SHELL='$SHELL'
5890 export CONFIG_SHELL
5891 exec "\$@"
5892 fi
5893
5894 _ACEOF
5895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5896 exec 5>>config.log
5897 {
5898 echo
5899 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5900 ## Running $as_me. ##
5901 _ASBOX
5902 printf "%s\n" "$ac_log"
5903 } >&5
5904
5905 _ACEOF
5906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5907 _ACEOF
5908
5909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5910
5911 # Handling of arguments.
5912 for ac_config_target in $ac_config_targets
5913 do
5914 case $ac_config_target in
5915 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5916
5917 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5918 esac
5919 done
5920
5921
5922 # If the user did not use the arguments to specify the items to instantiate,
5923 # then the envvar interface is used. Set only those that are not.
5924 # We use the long form for the default assignment because of an extremely
5925 # bizarre bug on SunOS 4.1.3.
5926 if $ac_need_defaults; then
5927 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5928 fi
5929
5930 # Have a temporary directory for convenience. Make it in the build tree
5931 # simply because there is no reason against having it here, and in addition,
5932 # creating and moving files from /tmp can sometimes cause problems.
5933 # Hook for its removal unless debugging.
5934 # Note that there is a small window in which the directory will not be cleaned:
5935 # after its creation but before its name has been assigned to `$tmp'.
5936 $debug ||
5937 {
5938 tmp= ac_tmp=
5939 trap 'exit_status=$?
5940 : "${ac_tmp:=$tmp}"
5941 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5942 ' 0
5943 trap 'as_fn_exit 1' 1 2 13 15
5944 }
5945 # Create a (secure) tmp directory for tmp files.
5946
5947 {
5948 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5949 test -d "$tmp"
5950 } ||
5951 {
5952 tmp=./conf$$-$RANDOM
5953 (umask 077 && mkdir "$tmp")
5954 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5955 ac_tmp=$tmp
5956
5957 # Set up the scripts for CONFIG_FILES section.
5958 # No need to generate them if there are no CONFIG_FILES.
5959 # This happens for instance with `./config.status config.h'.
5960 if test -n "$CONFIG_FILES"; then
5961
5962
5963 ac_cr=`echo X | tr X '\015'`
5964 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5965 # But we know of no other shell where ac_cr would be empty at this
5966 # point, so we can use a bashism as a fallback.
5967 if test "x$ac_cr" = x; then
5968 eval ac_cr=\$\'\\r\'
5969 fi
5970 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5971 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5972 ac_cs_awk_cr='\\r'
5973 else
5974 ac_cs_awk_cr=$ac_cr
5975 fi
5976
5977 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5978 _ACEOF
5979
5980
5981 {
5982 echo "cat >conf$$subs.awk <<_ACEOF" &&
5983 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5984 echo "_ACEOF"
5985 } >conf$$subs.sh ||
5986 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5987 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5988 ac_delim='%!_!# '
5989 for ac_last_try in false false false false false :; do
5990 . ./conf$$subs.sh ||
5991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5992
5993 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5994 if test $ac_delim_n = $ac_delim_num; then
5995 break
5996 elif $ac_last_try; then
5997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5998 else
5999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6000 fi
6001 done
6002 rm -f conf$$subs.sh
6003
6004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6005 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6006 _ACEOF
6007 sed -n '
6008 h
6009 s/^/S["/; s/!.*/"]=/
6010 p
6011 g
6012 s/^[^!]*!//
6013 :repl
6014 t repl
6015 s/'"$ac_delim"'$//
6016 t delim
6017 :nl
6018 h
6019 s/\(.\{148\}\)..*/\1/
6020 t more1
6021 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6022 p
6023 n
6024 b repl
6025 :more1
6026 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6027 p
6028 g
6029 s/.\{148\}//
6030 t nl
6031 :delim
6032 h
6033 s/\(.\{148\}\)..*/\1/
6034 t more2
6035 s/["\\]/\\&/g; s/^/"/; s/$/"/
6036 p
6037 b
6038 :more2
6039 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6040 p
6041 g
6042 s/.\{148\}//
6043 t delim
6044 ' <conf$$subs.awk | sed '
6045 /^[^""]/{
6046 N
6047 s/\n//
6048 }
6049 ' >>$CONFIG_STATUS || ac_write_fail=1
6050 rm -f conf$$subs.awk
6051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6052 _ACAWK
6053 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6054 for (key in S) S_is_set[key] = 1
6055 FS = ""
6056
6057 }
6058 {
6059 line = $ 0
6060 nfields = split(line, field, "@")
6061 substed = 0
6062 len = length(field[1])
6063 for (i = 2; i < nfields; i++) {
6064 key = field[i]
6065 keylen = length(key)
6066 if (S_is_set[key]) {
6067 value = S[key]
6068 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6069 len += length(value) + length(field[++i])
6070 substed = 1
6071 } else
6072 len += 1 + keylen
6073 }
6074
6075 print line
6076 }
6077
6078 _ACAWK
6079 _ACEOF
6080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6081 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6082 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6083 else
6084 cat
6085 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6086 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6087 _ACEOF
6088
6089 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6090 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6091 # trailing colons and then remove the whole line if VPATH becomes empty
6092 # (actually we leave an empty line to preserve line numbers).
6093 if test "x$srcdir" = x.; then
6094 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6095 h
6096 s///
6097 s/^/:/
6098 s/[ ]*$/:/
6099 s/:\$(srcdir):/:/g
6100 s/:\${srcdir}:/:/g
6101 s/:@srcdir@:/:/g
6102 s/^:*//
6103 s/:*$//
6104 x
6105 s/\(=[ ]*\).*/\1/
6106 G
6107 s/\n//
6108 s/^[^=]*=[ ]*$//
6109 }'
6110 fi
6111
6112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6113 fi # test -n "$CONFIG_FILES"
6114
6115
6116 eval set X " :F $CONFIG_FILES "
6117 shift
6118 for ac_tag
6119 do
6120 case $ac_tag in
6121 :[FHLC]) ac_mode=$ac_tag; continue;;
6122 esac
6123 case $ac_mode$ac_tag in
6124 :[FHL]*:*);;
6125 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6126 :[FH]-) ac_tag=-:-;;
6127 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6128 esac
6129 ac_save_IFS=$IFS
6130 IFS=:
6131 set x $ac_tag
6132 IFS=$ac_save_IFS
6133 shift
6134 ac_file=$1
6135 shift
6136
6137 case $ac_mode in
6138 :L) ac_source=$1;;
6139 :[FH])
6140 ac_file_inputs=
6141 for ac_f
6142 do
6143 case $ac_f in
6144 -) ac_f="$ac_tmp/stdin";;
6145 *) # Look for the file first in the build tree, then in the source tree
6146 # (if the path is not absolute). The absolute path cannot be DOS-style,
6147 # because $ac_f cannot contain `:'.
6148 test -f "$ac_f" ||
6149 case $ac_f in
6150 [\\/$]*) false;;
6151 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6152 esac ||
6153 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6154 esac
6155 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6156 as_fn_append ac_file_inputs " '$ac_f'"
6157 done
6158
6159 # Let's still pretend it is `configure' which instantiates (i.e., don't
6160 # use $as_me), people would be surprised to read:
6161 # /* config.h. Generated by config.status. */
6162 configure_input='Generated from '`
6163 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6164 `' by configure.'
6165 if test x"$ac_file" != x-; then
6166 configure_input="$ac_file. $configure_input"
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6168 printf "%s\n" "$as_me: creating $ac_file" >&6;}
6169 fi
6170 # Neutralize special characters interpreted by sed in replacement strings.
6171 case $configure_input in #(
6172 *\&* | *\|* | *\\* )
6173 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6174 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6175 *) ac_sed_conf_input=$configure_input;;
6176 esac
6177
6178 case $ac_tag in
6179 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6181 esac
6182 ;;
6183 esac
6184
6185 ac_dir=`$as_dirname -- "$ac_file" ||
6186 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6187 X"$ac_file" : 'X\(//\)[^/]' \| \
6188 X"$ac_file" : 'X\(//\)$' \| \
6189 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6190 printf "%s\n" X"$ac_file" |
6191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6192 s//\1/
6193 q
6194 }
6195 /^X\(\/\/\)[^/].*/{
6196 s//\1/
6197 q
6198 }
6199 /^X\(\/\/\)$/{
6200 s//\1/
6201 q
6202 }
6203 /^X\(\/\).*/{
6204 s//\1/
6205 q
6206 }
6207 s/.*/./; q'`
6208 as_dir="$ac_dir"; as_fn_mkdir_p
6209 ac_builddir=.
6210
6211 case "$ac_dir" in
6212 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6213 *)
6214 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6215 # A ".." for each directory in $ac_dir_suffix.
6216 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6217 case $ac_top_builddir_sub in
6218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6220 esac ;;
6221 esac
6222 ac_abs_top_builddir=$ac_pwd
6223 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6224 # for backward compatibility:
6225 ac_top_builddir=$ac_top_build_prefix
6226
6227 case $srcdir in
6228 .) # We are building in place.
6229 ac_srcdir=.
6230 ac_top_srcdir=$ac_top_builddir_sub
6231 ac_abs_top_srcdir=$ac_pwd ;;
6232 [\\/]* | ?:[\\/]* ) # Absolute name.
6233 ac_srcdir=$srcdir$ac_dir_suffix;
6234 ac_top_srcdir=$srcdir
6235 ac_abs_top_srcdir=$srcdir ;;
6236 *) # Relative name.
6237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6238 ac_top_srcdir=$ac_top_build_prefix$srcdir
6239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6240 esac
6241 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6242
6243
6244 case $ac_mode in
6245 :F)
6246 #
6247 # CONFIG_FILE
6248 #
6249
6250 case $INSTALL in
6251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6252 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6253 esac
6254 _ACEOF
6255
6256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6257 # If the template does not know about datarootdir, expand it.
6258 # FIXME: This hack should be removed a few years after 2.60.
6259 ac_datarootdir_hack=; ac_datarootdir_seen=
6260 ac_sed_dataroot='
6261 /datarootdir/ {
6262 p
6263 q
6264 }
6265 /@datadir@/p
6266 /@docdir@/p
6267 /@infodir@/p
6268 /@localedir@/p
6269 /@mandir@/p'
6270 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6271 *datarootdir*) ac_datarootdir_seen=yes;;
6272 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6274 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6275 _ACEOF
6276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6277 ac_datarootdir_hack='
6278 s&@datadir@&$datadir&g
6279 s&@docdir@&$docdir&g
6280 s&@infodir@&$infodir&g
6281 s&@localedir@&$localedir&g
6282 s&@mandir@&$mandir&g
6283 s&\\\${datarootdir}&$datarootdir&g' ;;
6284 esac
6285 _ACEOF
6286
6287 # Neutralize VPATH when `$srcdir' = `.'.
6288 # Shell code in configure.ac might set extrasub.
6289 # FIXME: do we really want to maintain this feature?
6290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6291 ac_sed_extra="$ac_vpsub
6292 $extrasub
6293 _ACEOF
6294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6295 :t
6296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6297 s|@configure_input@|$ac_sed_conf_input|;t t
6298 s&@top_builddir@&$ac_top_builddir_sub&;t t
6299 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6300 s&@srcdir@&$ac_srcdir&;t t
6301 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6302 s&@top_srcdir@&$ac_top_srcdir&;t t
6303 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6304 s&@builddir@&$ac_builddir&;t t
6305 s&@abs_builddir@&$ac_abs_builddir&;t t
6306 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6307 s&@INSTALL@&$ac_INSTALL&;t t
6308 $ac_datarootdir_hack
6309 "
6310 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6311 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6312
6313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6314 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6315 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6316 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6318 which seems to be undefined. Please make sure it is defined" >&5
6319 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6320 which seems to be undefined. Please make sure it is defined" >&2;}
6321
6322 rm -f "$ac_tmp/stdin"
6323 case $ac_file in
6324 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6325 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6326 esac \
6327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6328 ;;
6329
6330
6331
6332 esac
6333
6334 done # for ac_tag
6335
6336
6337 as_fn_exit 0
6338 _ACEOF
6339 ac_clean_files=$ac_clean_files_save
6340
6341 test $ac_write_fail = 0 ||
6342 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6343
6344
6345 # configure is writing to config.log, and then calls config.status.
6346 # config.status does its own redirection, appending to config.log.
6347 # Unfortunately, on DOS this fails, as config.log is still kept open
6348 # by configure, so config.status won't be able to write to it; its
6349 # output is simply discarded. So we exec the FD to /dev/null,
6350 # effectively closing config.log, so it can be properly (re)opened and
6351 # appended to by config.status. When coming back to configure, we
6352 # need to make the FD available again.
6353 if test "$no_create" != yes; then
6354 ac_cs_success=:
6355 ac_config_status_args=
6356 test "$silent" = yes &&
6357 ac_config_status_args="$ac_config_status_args --quiet"
6358 exec 5>/dev/null
6359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6360 exec 5>>config.log
6361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6362 # would make configure fail if this is the last instruction.
6363 $ac_cs_success || as_fn_exit 1
6364 fi
6365 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6367 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6368 fi
6369
6370
6371 if test -f .devel ; then
6372 make depend
6373 fi
6374 exit 0
6375