Debian Codegraph @

configure

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