Debian Codegraph @

configure

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