]> icculus.org git repositories - btb/d2x.git/blob - configure
use the orientation parameter of g3_draw_bitmap
[btb/d2x.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for d2x 0.2.6.
4 #
5 # Report bugs to <https://github.com/btb/d2x/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
100     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187   if (eval "$as_required") 2>/dev/null
188 then :
189   as_have_required=yes
190 else $as_nop
191   as_have_required=no
192 fi
193   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201   IFS=$as_save_IFS
202   case $as_dir in #(((
203     '') as_dir=./ ;;
204     */) ;;
205     *) as_dir=$as_dir/ ;;
206   esac
207   as_found=:
208   case $as_dir in #(
209          /*)
210            for as_base in sh bash ksh sh5; do
211              # Try only shells that exist, to save several forks.
212              as_shell=$as_dir$as_base
213              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216   CONFIG_SHELL=$as_shell as_have_required=yes
217                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219   break 2
220 fi
221 fi
222            done;;
223        esac
224   as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234   CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239       if test "x$CONFIG_SHELL" != x
240 then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno
263 then :
264   printf "%s\n" "$0: This script requires a shell more modern than all"
265   printf "%s\n" "$0: the shells that I found on your system."
266   if test ${ZSH_VERSION+y} ; then
267     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269   else
270     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: https://github.com/btb/d2x/issues about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
275   fi
276   exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294   { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304   return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312   set +e
313   as_fn_set_status $1
314   exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321   return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331   case $as_dir in #(
332   -*) as_dir=./$as_dir;;
333   esac
334   test -d "$as_dir" || eval $as_mkdir_p || {
335     as_dirs=
336     while :; do
337       case $as_dir in #(
338       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339       *) as_qdir=$as_dir;;
340       esac
341       as_dirs="'$as_qdir' $as_dirs"
342       as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344          X"$as_dir" : 'X\(//\)[^/]' \| \
345          X"$as_dir" : 'X\(//\)$' \| \
346          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349             s//\1/
350             q
351           }
352           /^X\(\/\/\)[^/].*/{
353             s//\1/
354             q
355           }
356           /^X\(\/\/\)$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\).*/{
361             s//\1/
362             q
363           }
364           s/.*/./; q'`
365       test -d "$as_dir" && break
366     done
367     test -z "$as_dirs" || eval "mkdir $as_dirs"
368   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378   test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388   eval 'as_fn_append ()
389   {
390     eval $1+=\$2
391   }'
392 else $as_nop
393   as_fn_append ()
394   {
395     eval $1=\$$1\$2
396   }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406   eval 'as_fn_arith ()
407   {
408     as_val=$(( $* ))
409   }'
410 else $as_nop
411   as_fn_arith ()
412   {
413     as_val=`expr "$@" || test $? -eq 1`
414   }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422   return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433   as_status=$1; test $as_status -eq 0 && as_status=1
434   if test "$4"; then
435     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437   fi
438   printf "%s\n" "$as_me: error: $2" >&2
439   as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443    test "X`expr 00001 : '.*\(...\)'`" = X001; then
444   as_expr=expr
445 else
446   as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450   as_basename=basename
451 else
452   as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456   as_dirname=dirname
457 else
458   as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463          X"$0" : 'X\(//\)$' \| \
464          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466     sed '/^.*\/\([^/][^/]*\)\/*$/{
467             s//\1/
468             q
469           }
470           /^X\/\(\/\/\)$/{
471             s//\1/
472             q
473           }
474           /^X\/\(\/\).*/{
475             s//\1/
476             q
477           }
478           s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488   as_lineno_1=$LINENO as_lineno_1a=$LINENO
489   as_lineno_2=$LINENO as_lineno_2a=$LINENO
490   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
493   sed -n '
494     p
495     /[$]LINENO/=
496   ' <$as_myself |
497     sed '
498       s/[$]LINENO.*/&-/
499       t lineno
500       b
501       :lineno
502       N
503       :loop
504       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505       t loop
506       s/-\n.*//
507     ' >$as_me.lineno &&
508   chmod +x "$as_me.lineno" ||
509     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512   # already done that, so ensure we don't try to do so again and fall
513   # in an infinite loop.  This has already happened in practice.
514   _as_can_reexec=no; export _as_can_reexec
515   # Don't try to exec as it changes $[0], causing all sort of problems
516   # (the dirname of $[0] is not the place where we might find the
517   # original and so on.  Autoconf is especially sensitive to this).
518   . "./$as_me.lineno"
519   # Exit status is that of the last command.
520   exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530   case `echo 'xy\c'` in
531   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
532   xy)  ECHO_C='\c';;
533   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
534        ECHO_T=' ';;
535   esac;;
536 *)
537   ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n.  New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549   rm -f conf$$.dir/conf$$.file
550 else
551   rm -f conf$$.dir
552   mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555   if ln -s conf$$.file conf$$ 2>/dev/null; then
556     as_ln_s='ln -s'
557     # ... but there are two gotchas:
558     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560     # In both cases, we have to default to `cp -pR'.
561     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562       as_ln_s='cp -pR'
563   elif ln conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s=ln
565   else
566     as_ln_s='cp -pR'
567   fi
568 else
569   as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575   as_mkdir_p='mkdir -p "$as_dir"'
576 else
577   test -d ./-p && rmdir ./-p
578   as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='d2x'
613 PACKAGE_TARNAME='d2x'
614 PACKAGE_VERSION='0.2.6'
615 PACKAGE_STRING='d2x 0.2.6'
616 PACKAGE_BUGREPORT='https://github.com/btb/d2x/issues'
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_subst_vars='am__EXEEXT_FALSE
652 am__EXEEXT_TRUE
653 LTLIBOBJS
654 LIBOBJS
655 NASMFLAGS
656 TARGETS
657 am__fastdepCCAS_FALSE
658 am__fastdepCCAS_TRUE
659 CCASDEPMODE
660 CCASFLAGS
661 CCAS
662 USE_ASM_FALSE
663 USE_ASM_TRUE
664 USE_KALINIX_FALSE
665 USE_KALINIX_TRUE
666 USE_NATIVE_IPX_FALSE
667 USE_NATIVE_IPX_TRUE
668 USE_NETWORK_FALSE
669 USE_NETWORK_TRUE
670 SVGA_LIBS
671 PHYSFS_LIBS
672 PHYSFS_CFLAGS
673 USE_LIBPNG_FALSE
674 USE_LIBPNG_TRUE
675 SDLMIXER_LIBS
676 SDLMIXER_CFLAGS
677 PKG_CONFIG_LIBDIR
678 PKG_CONFIG_PATH
679 PKG_CONFIG
680 SDLIMAGE_LIBS
681 SDL_LIBS
682 SDL_CFLAGS
683 SDL_CONFIG
684 sharepath
685 USE_LINUX_JOY_FALSE
686 USE_LINUX_JOY_TRUE
687 MACDATA_FALSE
688 MACDATA_TRUE
689 MSDOS_FALSE
690 MSDOS_TRUE
691 MACOSX_FALSE
692 MACOSX_TRUE
693 MINGW32_FALSE
694 MINGW32_TRUE
695 NASM
696 AR
697 RANLIB
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 runstatedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL
795 am__quote'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 enable_silent_rules
800 enable_maintainer_mode
801 enable_dependency_tracking
802 enable_editor
803 enable_macdata
804 enable_debug
805 enable_release
806 enable_linuxjoy
807 enable_fastfileio
808 with_sharepath
809 with_sdl_prefix
810 with_sdl_exec_prefix
811 enable_sdltest
812 with_opengl
813 with_svga
814 enable_network
815 enable_kalinix
816 enable_assembler
817 '
818       ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 LIBS
825 CPPFLAGS
826 PKG_CONFIG
827 PKG_CONFIG_PATH
828 PKG_CONFIG_LIBDIR
829 SDLMIXER_CFLAGS
830 SDLMIXER_LIBS
831 PHYSFS_CFLAGS
832 PHYSFS_LIBS
833 CCAS
834 CCASFLAGS'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 runstatedir='${localstatedir}/run'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
885
886 ac_prev=
887 ac_dashdash=
888 for ac_option
889 do
890   # If the previous option needs an argument, assign it.
891   if test -n "$ac_prev"; then
892     eval $ac_prev=\$ac_option
893     ac_prev=
894     continue
895   fi
896
897   case $ac_option in
898   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899   *=)   ac_optarg= ;;
900   *)    ac_optarg=yes ;;
901   esac
902
903   case $ac_dashdash$ac_option in
904   --)
905     ac_dashdash=yes ;;
906
907   -bindir | --bindir | --bindi | --bind | --bin | --bi)
908     ac_prev=bindir ;;
909   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910     bindir=$ac_optarg ;;
911
912   -build | --build | --buil | --bui | --bu)
913     ac_prev=build_alias ;;
914   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915     build_alias=$ac_optarg ;;
916
917   -cache-file | --cache-file | --cache-fil | --cache-fi \
918   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919     ac_prev=cache_file ;;
920   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922     cache_file=$ac_optarg ;;
923
924   --config-cache | -C)
925     cache_file=config.cache ;;
926
927   -datadir | --datadir | --datadi | --datad)
928     ac_prev=datadir ;;
929   -datadir=* | --datadir=* | --datadi=* | --datad=*)
930     datadir=$ac_optarg ;;
931
932   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933   | --dataroo | --dataro | --datar)
934     ac_prev=datarootdir ;;
935   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937     datarootdir=$ac_optarg ;;
938
939   -disable-* | --disable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: \`$ac_useropt'"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=no ;;
954
955   -docdir | --docdir | --docdi | --doc | --do)
956     ac_prev=docdir ;;
957   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958     docdir=$ac_optarg ;;
959
960   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961     ac_prev=dvidir ;;
962   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963     dvidir=$ac_optarg ;;
964
965   -enable-* | --enable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error $? "invalid feature name: \`$ac_useropt'"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=\$ac_optarg ;;
980
981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983   | --exec | --exe | --ex)
984     ac_prev=exec_prefix ;;
985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987   | --exec=* | --exe=* | --ex=*)
988     exec_prefix=$ac_optarg ;;
989
990   -gas | --gas | --ga | --g)
991     # Obsolete; use --with-gas.
992     with_gas=yes ;;
993
994   -help | --help | --hel | --he | -h)
995     ac_init_help=long ;;
996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997     ac_init_help=recursive ;;
998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999     ac_init_help=short ;;
1000
1001   -host | --host | --hos | --ho)
1002     ac_prev=host_alias ;;
1003   -host=* | --host=* | --hos=* | --ho=*)
1004     host_alias=$ac_optarg ;;
1005
1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007     ac_prev=htmldir ;;
1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009   | --ht=*)
1010     htmldir=$ac_optarg ;;
1011
1012   -includedir | --includedir | --includedi | --included | --include \
1013   | --includ | --inclu | --incl | --inc)
1014     ac_prev=includedir ;;
1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
1017     includedir=$ac_optarg ;;
1018
1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
1020     ac_prev=infodir ;;
1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022     infodir=$ac_optarg ;;
1023
1024   -libdir | --libdir | --libdi | --libd)
1025     ac_prev=libdir ;;
1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027     libdir=$ac_optarg ;;
1028
1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030   | --libexe | --libex | --libe)
1031     ac_prev=libexecdir ;;
1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033   | --libexe=* | --libex=* | --libe=*)
1034     libexecdir=$ac_optarg ;;
1035
1036   -localedir | --localedir | --localedi | --localed | --locale)
1037     ac_prev=localedir ;;
1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039     localedir=$ac_optarg ;;
1040
1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
1042   | --localstate | --localstat | --localsta | --localst | --locals)
1043     ac_prev=localstatedir ;;
1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046     localstatedir=$ac_optarg ;;
1047
1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049     ac_prev=mandir ;;
1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051     mandir=$ac_optarg ;;
1052
1053   -nfp | --nfp | --nf)
1054     # Obsolete; use --without-fp.
1055     with_fp=no ;;
1056
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n)
1059     no_create=yes ;;
1060
1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063     no_recursion=yes ;;
1064
1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067   | --oldin | --oldi | --old | --ol | --o)
1068     ac_prev=oldincludedir ;;
1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072     oldincludedir=$ac_optarg ;;
1073
1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075     ac_prev=prefix ;;
1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077     prefix=$ac_optarg ;;
1078
1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080   | --program-pre | --program-pr | --program-p)
1081     ac_prev=program_prefix ;;
1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084     program_prefix=$ac_optarg ;;
1085
1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087   | --program-suf | --program-su | --program-s)
1088     ac_prev=program_suffix ;;
1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091     program_suffix=$ac_optarg ;;
1092
1093   -program-transform-name | --program-transform-name \
1094   | --program-transform-nam | --program-transform-na \
1095   | --program-transform-n | --program-transform- \
1096   | --program-transform | --program-transfor \
1097   | --program-transfo | --program-transf \
1098   | --program-trans | --program-tran \
1099   | --progr-tra | --program-tr | --program-t)
1100     ac_prev=program_transform_name ;;
1101   -program-transform-name=* | --program-transform-name=* \
1102   | --program-transform-nam=* | --program-transform-na=* \
1103   | --program-transform-n=* | --program-transform-=* \
1104   | --program-transform=* | --program-transfor=* \
1105   | --program-transfo=* | --program-transf=* \
1106   | --program-trans=* | --program-tran=* \
1107   | --progr-tra=* | --program-tr=* | --program-t=*)
1108     program_transform_name=$ac_optarg ;;
1109
1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111     ac_prev=pdfdir ;;
1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113     pdfdir=$ac_optarg ;;
1114
1115   -psdir | --psdir | --psdi | --psd | --ps)
1116     ac_prev=psdir ;;
1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118     psdir=$ac_optarg ;;
1119
1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121   | -silent | --silent | --silen | --sile | --sil)
1122     silent=yes ;;
1123
1124   -runstatedir | --runstatedir | --runstatedi | --runstated \
1125   | --runstate | --runstat | --runsta | --runst | --runs \
1126   | --run | --ru | --r)
1127     ac_prev=runstatedir ;;
1128   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1129   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1130   | --run=* | --ru=* | --r=*)
1131     runstatedir=$ac_optarg ;;
1132
1133   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134     ac_prev=sbindir ;;
1135   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136   | --sbi=* | --sb=*)
1137     sbindir=$ac_optarg ;;
1138
1139   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141   | --sharedst | --shareds | --shared | --share | --shar \
1142   | --sha | --sh)
1143     ac_prev=sharedstatedir ;;
1144   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147   | --sha=* | --sh=*)
1148     sharedstatedir=$ac_optarg ;;
1149
1150   -site | --site | --sit)
1151     ac_prev=site ;;
1152   -site=* | --site=* | --sit=*)
1153     site=$ac_optarg ;;
1154
1155   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156     ac_prev=srcdir ;;
1157   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158     srcdir=$ac_optarg ;;
1159
1160   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161   | --syscon | --sysco | --sysc | --sys | --sy)
1162     ac_prev=sysconfdir ;;
1163   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165     sysconfdir=$ac_optarg ;;
1166
1167   -target | --target | --targe | --targ | --tar | --ta | --t)
1168     ac_prev=target_alias ;;
1169   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170     target_alias=$ac_optarg ;;
1171
1172   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173     verbose=yes ;;
1174
1175   -version | --version | --versio | --versi | --vers | -V)
1176     ac_init_version=: ;;
1177
1178   -with-* | --with-*)
1179     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182       as_fn_error $? "invalid package name: \`$ac_useropt'"
1183     ac_useropt_orig=$ac_useropt
1184     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185     case $ac_user_opts in
1186       *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190          ac_unrecognized_sep=', ';;
1191     esac
1192     eval with_$ac_useropt=\$ac_optarg ;;
1193
1194   -without-* | --without-*)
1195     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198       as_fn_error $? "invalid package name: \`$ac_useropt'"
1199     ac_useropt_orig=$ac_useropt
1200     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1201     case $ac_user_opts in
1202       *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206          ac_unrecognized_sep=', ';;
1207     esac
1208     eval with_$ac_useropt=no ;;
1209
1210   --x)
1211     # Obsolete; use --with-x.
1212     with_x=yes ;;
1213
1214   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215   | --x-incl | --x-inc | --x-in | --x-i)
1216     ac_prev=x_includes ;;
1217   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219     x_includes=$ac_optarg ;;
1220
1221   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223     ac_prev=x_libraries ;;
1224   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226     x_libraries=$ac_optarg ;;
1227
1228   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1230     ;;
1231
1232   *=*)
1233     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234     # Reject names that are not valid shell variable names.
1235     case $ac_envvar in #(
1236       '' | [0-9]* | *[!_$as_cr_alnum]* )
1237       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238     esac
1239     eval $ac_envvar=\$ac_optarg
1240     export $ac_envvar ;;
1241
1242   *)
1243     # FIXME: should be removed in autoconf 3.0.
1244     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1245     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1247     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248     ;;
1249
1250   esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255   as_fn_error $? "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259   case $enable_option_checking in
1260     no) ;;
1261     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263   esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                 datadir sysconfdir sharedstatedir localstatedir includedir \
1269                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270                 libdir localedir mandir runstatedir
1271 do
1272   eval ac_val=\$$ac_var
1273   # Remove trailing slashes.
1274   case $ac_val in
1275     */ )
1276       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277       eval $ac_var=\$ac_val;;
1278   esac
1279   # Be sure to have absolute directory names.
1280   case $ac_val in
1281     [\\/$]* | ?:[\\/]* )  continue;;
1282     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283   esac
1284   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296   if test "x$build_alias" = x; then
1297     cross_compiling=maybe
1298   elif test "x$build_alias" != "x$host_alias"; then
1299     cross_compiling=yes
1300   fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312   as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314   as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319   ac_srcdir_defaulted=yes
1320   # Try the directory containing this script, then the parent directory.
1321   ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323          X"$as_myself" : 'X\(//\)[^/]' \| \
1324          X"$as_myself" : 'X\(//\)$' \| \
1325          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 printf "%s\n" X"$as_myself" |
1327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)[^/].*/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\).*/{
1340             s//\1/
1341             q
1342           }
1343           s/.*/./; q'`
1344   srcdir=$ac_confdir
1345   if test ! -r "$srcdir/$ac_unique_file"; then
1346     srcdir=..
1347   fi
1348 else
1349   ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358         pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361   srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures d2x 0.2.6 to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking ...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR            user executables [EPREFIX/bin]
1418   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR        program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1423   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1424   --libdir=DIR            object code libraries [EPREFIX/lib]
1425   --includedir=DIR        C header files [PREFIX/include]
1426   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1427   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1428   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1429   --infodir=DIR           info documentation [DATAROOTDIR/info]
1430   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1431   --mandir=DIR            man documentation [DATAROOTDIR/man]
1432   --docdir=DIR            documentation root [DATAROOTDIR/doc/d2x]
1433   --htmldir=DIR           html documentation [DOCDIR]
1434   --dvidir=DIR            dvi documentation [DOCDIR]
1435   --pdfdir=DIR            pdf documentation [DOCDIR]
1436   --psdir=DIR             ps documentation [DOCDIR]
1437 _ACEOF
1438
1439   cat <<\_ACEOF
1440
1441 Program names:
1442   --program-prefix=PREFIX            prepend PREFIX to installed program names
1443   --program-suffix=SUFFIX            append SUFFIX to installed program names
1444   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1445
1446 System types:
1447   --build=BUILD     configure for building on BUILD [guessed]
1448   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1449   --target=TARGET   configure for building compilers for TARGET [HOST]
1450 _ACEOF
1451 fi
1452
1453 if test -n "$ac_init_help"; then
1454   case $ac_init_help in
1455      short | recursive ) echo "Configuration of d2x 0.2.6:";;
1456    esac
1457   cat <<\_ACEOF
1458
1459 Optional Features:
1460   --disable-option-checking  ignore unrecognized --enable/--with options
1461   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463   --enable-silent-rules   less verbose build output (undo: "make V=1")
1464   --disable-silent-rules  verbose build output (undo: "make V=0")
1465   --enable-maintainer-mode
1466                           enable make rules and dependencies not useful (and
1467                           sometimes confusing) to the casual installer
1468   --enable-dependency-tracking
1469                           do not reject slow dependency extractors
1470   --disable-dependency-tracking
1471                           speeds up one-time build
1472   --enable-editor         Build editor? (not functional)
1473   --enable-macdata        Build for mac datafiles
1474   --disable-debug         Take out debug symbols, Asserts, Int3, etc
1475   --enable-release        Release build.  Removes debug/editor things
1476   --enable-linuxjoy       do not use the SDL Joystick. (eg for MS Sidewinder)
1477   --disable-fastfileio    Disable fast file i/o.
1478   --disable-sdltest       Do not try to compile and run a test SDL program
1479   --disable-network       Do not build network/serial support
1480   --disable-kalinix       Disable the KaliNix driver (unix-only)
1481   --disable-assembler     Do not use assembler optimization
1482
1483 Optional Packages:
1484   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486   --with-sharepath=DIR    Use DIR for shared game data (unix only) [DATADIR/games/d2x]
1487   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1488   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1489   --with-opengl           Build OpenGL support
1490   --with-svga             Build SVGALib support
1491
1492 Some influential environment variables:
1493   CC          C compiler command
1494   CFLAGS      C compiler flags
1495   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496               nonstandard directory <lib dir>
1497   LIBS        libraries to pass to the linker, e.g. -l<library>
1498   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499               you have headers in a nonstandard directory <include dir>
1500   PKG_CONFIG  path to pkg-config utility
1501   PKG_CONFIG_PATH
1502               directories to add to pkg-config's search path
1503   PKG_CONFIG_LIBDIR
1504               path overriding pkg-config's built-in search path
1505   SDLMIXER_CFLAGS
1506               C compiler flags for SDLMIXER, overriding pkg-config
1507   SDLMIXER_LIBS
1508               linker flags for SDLMIXER, overriding pkg-config
1509   PHYSFS_CFLAGS
1510               C compiler flags for PHYSFS, overriding pkg-config
1511   PHYSFS_LIBS linker flags for PHYSFS, overriding pkg-config
1512   CCAS        assembler compiler command (defaults to CC)
1513   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <https://github.com/btb/d2x/issues>.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524   # If there are subdirs, report their specific --help.
1525   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526     test -d "$ac_dir" ||
1527       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528       continue
1529     ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1535   # A ".." for each directory in $ac_dir_suffix.
1536   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537   case $ac_top_builddir_sub in
1538   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540   esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548   .)  # We are building in place.
1549     ac_srcdir=.
1550     ac_top_srcdir=$ac_top_builddir_sub
1551     ac_abs_top_srcdir=$ac_pwd ;;
1552   [\\/]* | ?:[\\/]* )  # Absolute name.
1553     ac_srcdir=$srcdir$ac_dir_suffix;
1554     ac_top_srcdir=$srcdir
1555     ac_abs_top_srcdir=$srcdir ;;
1556   *) # Relative name.
1557     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558     ac_top_srcdir=$ac_top_build_prefix$srcdir
1559     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563     cd "$ac_dir" || { ac_status=$?; continue; }
1564     # Check for configure.gnu first; this name is used for a wrapper for
1565     # Metaconfig's "Configure" on case-insensitive file systems.
1566     if test -f "$ac_srcdir/configure.gnu"; then
1567       echo &&
1568       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569     elif test -f "$ac_srcdir/configure"; then
1570       echo &&
1571       $SHELL "$ac_srcdir/configure" --help=recursive
1572     else
1573       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574     fi || ac_status=$?
1575     cd "$ac_pwd" || { ac_status=$?; break; }
1576   done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581   cat <<\_ACEOF
1582 d2x configure 0.2.6
1583 generated by GNU Autoconf 2.71
1584
1585 Copyright (C) 2021 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589   exit
1590 fi
1591
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1595
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   rm -f conftest.$ac_objext conftest.beam
1603   if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 printf "%s\n" "$ac_try_echo"; } >&5
1610   (eval "$ac_compile") 2>conftest.err
1611   ac_status=$?
1612   if test -s conftest.err; then
1613     grep -v '^ *+' conftest.err >conftest.er1
1614     cat conftest.er1 >&5
1615     mv -f conftest.er1 conftest.err
1616   fi
1617   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } && {
1619          test -z "$ac_c_werror_flag" ||
1620          test ! -s conftest.err
1621        } && test -s conftest.$ac_objext
1622 then :
1623   ac_retval=0
1624 else $as_nop
1625   printf "%s\n" "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628         ac_retval=1
1629 fi
1630   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631   as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_compile
1634
1635 # ac_fn_c_try_link LINENO
1636 # -----------------------
1637 # Try to link conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_link ()
1639 {
1640   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1642   if { { ac_try="$ac_link"
1643 case "(($ac_try" in
1644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645   *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 printf "%s\n" "$ac_try_echo"; } >&5
1649   (eval "$ac_link") 2>conftest.err
1650   ac_status=$?
1651   if test -s conftest.err; then
1652     grep -v '^ *+' conftest.err >conftest.er1
1653     cat conftest.er1 >&5
1654     mv -f conftest.er1 conftest.err
1655   fi
1656   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657   test $ac_status = 0; } && {
1658          test -z "$ac_c_werror_flag" ||
1659          test ! -s conftest.err
1660        } && test -s conftest$ac_exeext && {
1661          test "$cross_compiling" = yes ||
1662          test -x conftest$ac_exeext
1663        }
1664 then :
1665   ac_retval=0
1666 else $as_nop
1667   printf "%s\n" "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670         ac_retval=1
1671 fi
1672   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1673   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1674   # interfere with the next link command; also delete a directory that is
1675   # left behind by Apple's compiler.  We do this before executing the actions.
1676   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678   as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_link
1681
1682 # ac_fn_c_try_run LINENO
1683 # ----------------------
1684 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1685 # executables *can* be run.
1686 ac_fn_c_try_run ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692   *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 printf "%s\n" "$ac_try_echo"; } >&5
1696   (eval "$ac_link") 2>&5
1697   ac_status=$?
1698   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700   { { case "(($ac_try" in
1701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702   *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 printf "%s\n" "$ac_try_echo"; } >&5
1706   (eval "$ac_try") 2>&5
1707   ac_status=$?
1708   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; }; }
1710 then :
1711   ac_retval=0
1712 else $as_nop
1713   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1714        printf "%s\n" "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717        ac_retval=$ac_status
1718 fi
1719   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721   as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_run
1724
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 printf %s "checking for $2... " >&6; }
1734 if eval test \${$3+y}
1735 then :
1736   printf %s "(cached) " >&6
1737 else $as_nop
1738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h.  */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"
1744 then :
1745   eval "$3=yes"
1746 else $as_nop
1747   eval "$3=no"
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1750 fi
1751 eval ac_res=\$$3
1752                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 printf "%s\n" "$ac_res" >&6; }
1754   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756 } # ac_fn_c_check_header_compile
1757
1758 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1759 # --------------------------------------------
1760 # Tries to find the compile-time value of EXPR in a program that includes
1761 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1762 # computed
1763 ac_fn_c_compute_int ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   if test "$cross_compiling" = yes; then
1767     # Depending upon the size, compute the lo and hi bounds.
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h.  */
1770 $4
1771 int
1772 main (void)
1773 {
1774 static int test_array [1 - 2 * !(($2) >= 0)];
1775 test_array [0] = 0;
1776 return test_array [0];
1777
1778   ;
1779   return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"
1783 then :
1784   ac_lo=0 ac_mid=0
1785   while :; do
1786     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h.  */
1788 $4
1789 int
1790 main (void)
1791 {
1792 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1793 test_array [0] = 0;
1794 return test_array [0];
1795
1796   ;
1797   return 0;
1798 }
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"
1801 then :
1802   ac_hi=$ac_mid; break
1803 else $as_nop
1804   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1805                         if test $ac_lo -le $ac_mid; then
1806                           ac_lo= ac_hi=
1807                           break
1808                         fi
1809                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1812   done
1813 else $as_nop
1814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h.  */
1816 $4
1817 int
1818 main (void)
1819 {
1820 static int test_array [1 - 2 * !(($2) < 0)];
1821 test_array [0] = 0;
1822 return test_array [0];
1823
1824   ;
1825   return 0;
1826 }
1827 _ACEOF
1828 if ac_fn_c_try_compile "$LINENO"
1829 then :
1830   ac_hi=-1 ac_mid=-1
1831   while :; do
1832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h.  */
1834 $4
1835 int
1836 main (void)
1837 {
1838 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1839 test_array [0] = 0;
1840 return test_array [0];
1841
1842   ;
1843   return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"
1847 then :
1848   ac_lo=$ac_mid; break
1849 else $as_nop
1850   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1851                         if test $ac_mid -le $ac_hi; then
1852                           ac_lo= ac_hi=
1853                           break
1854                         fi
1855                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1858   done
1859 else $as_nop
1860   ac_lo= ac_hi=
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1865 # Binary search between lo and hi bounds.
1866 while test "x$ac_lo" != "x$ac_hi"; do
1867   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h.  */
1870 $4
1871 int
1872 main (void)
1873 {
1874 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1875 test_array [0] = 0;
1876 return test_array [0];
1877
1878   ;
1879   return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"
1883 then :
1884   ac_hi=$ac_mid
1885 else $as_nop
1886   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1889 done
1890 case $ac_lo in #((
1891 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1892 '') ac_retval=1 ;;
1893 esac
1894   else
1895     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h.  */
1897 $4
1898 static long int longval (void) { return $2; }
1899 static unsigned long int ulongval (void) { return $2; }
1900 #include <stdio.h>
1901 #include <stdlib.h>
1902 int
1903 main (void)
1904 {
1905
1906   FILE *f = fopen ("conftest.val", "w");
1907   if (! f)
1908     return 1;
1909   if (($2) < 0)
1910     {
1911       long int i = longval ();
1912       if (i != ($2))
1913         return 1;
1914       fprintf (f, "%ld", i);
1915     }
1916   else
1917     {
1918       unsigned long int i = ulongval ();
1919       if (i != ($2))
1920         return 1;
1921       fprintf (f, "%lu", i);
1922     }
1923   /* Do not output a trailing newline, as this causes \r\n confusion
1924      on some platforms.  */
1925   return ferror (f) || fclose (f) != 0;
1926
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_run "$LINENO"
1932 then :
1933   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1934 else $as_nop
1935   ac_retval=1
1936 fi
1937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1938   conftest.$ac_objext conftest.beam conftest.$ac_ext
1939 rm -f conftest.val
1940
1941   fi
1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943   as_fn_set_status $ac_retval
1944
1945 } # ac_fn_c_compute_int
1946
1947 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1948 # ------------------------------------------------------------------
1949 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1950 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1951 ac_fn_check_decl ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   as_decl_name=`echo $2|sed 's/ *(.*//'`
1955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1956 printf %s "checking whether $as_decl_name is declared... " >&6; }
1957 if eval test \${$3+y}
1958 then :
1959   printf %s "(cached) " >&6
1960 else $as_nop
1961   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1962   eval ac_save_FLAGS=\$$6
1963   as_fn_append $6 " $5"
1964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 int
1968 main (void)
1969 {
1970 #ifndef $as_decl_name
1971 #ifdef __cplusplus
1972   (void) $as_decl_use;
1973 #else
1974   (void) $as_decl_name;
1975 #endif
1976 #endif
1977
1978   ;
1979   return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"
1983 then :
1984   eval "$3=yes"
1985 else $as_nop
1986   eval "$3=no"
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1989   eval $6=\$ac_save_FLAGS
1990
1991 fi
1992 eval ac_res=\$$3
1993                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 printf "%s\n" "$ac_res" >&6; }
1995   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996
1997 } # ac_fn_check_decl
1998
1999 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2000 # -------------------------------------------
2001 # Tests whether TYPE exists after having included INCLUDES, setting cache
2002 # variable VAR accordingly.
2003 ac_fn_c_check_type ()
2004 {
2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 printf %s "checking for $2... " >&6; }
2008 if eval test \${$3+y}
2009 then :
2010   printf %s "(cached) " >&6
2011 else $as_nop
2012   eval "$3=no"
2013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 $4
2016 int
2017 main (void)
2018 {
2019 if (sizeof ($2))
2020          return 0;
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"
2026 then :
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 int
2031 main (void)
2032 {
2033 if (sizeof (($2)))
2034             return 0;
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"
2040 then :
2041
2042 else $as_nop
2043   eval "$3=yes"
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 printf "%s\n" "$ac_res" >&6; }
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_c_check_type
2055 ac_configure_args_raw=
2056 for ac_arg
2057 do
2058   case $ac_arg in
2059   *\'*)
2060     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061   esac
2062   as_fn_append ac_configure_args_raw " '$ac_arg'"
2063 done
2064
2065 case $ac_configure_args_raw in
2066   *$as_nl*)
2067     ac_safe_unquote= ;;
2068   *)
2069     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2070     ac_unsafe_a="$ac_unsafe_z#~"
2071     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2072     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2073 esac
2074
2075 cat >config.log <<_ACEOF
2076 This file contains any messages produced by compilers while
2077 running configure, to aid debugging if configure makes a mistake.
2078
2079 It was created by d2x $as_me 0.2.6, which was
2080 generated by GNU Autoconf 2.71.  Invocation command line was
2081
2082   $ $0$ac_configure_args_raw
2083
2084 _ACEOF
2085 exec 5>>config.log
2086 {
2087 cat <<_ASUNAME
2088 ## --------- ##
2089 ## Platform. ##
2090 ## --------- ##
2091
2092 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2097
2098 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2100
2101 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2102 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2103 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2104 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2105 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2106 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2107 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2108
2109 _ASUNAME
2110
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114   IFS=$as_save_IFS
2115   case $as_dir in #(((
2116     '') as_dir=./ ;;
2117     */) ;;
2118     *) as_dir=$as_dir/ ;;
2119   esac
2120     printf "%s\n" "PATH: $as_dir"
2121   done
2122 IFS=$as_save_IFS
2123
2124 } >&5
2125
2126 cat >&5 <<_ACEOF
2127
2128
2129 ## ----------- ##
2130 ## Core tests. ##
2131 ## ----------- ##
2132
2133 _ACEOF
2134
2135
2136 # Keep a trace of the command line.
2137 # Strip out --no-create and --no-recursion so they do not pile up.
2138 # Strip out --silent because we don't want to record it for future runs.
2139 # Also quote any args containing shell meta-characters.
2140 # Make two passes to allow for proper duplicate-argument suppression.
2141 ac_configure_args=
2142 ac_configure_args0=
2143 ac_configure_args1=
2144 ac_must_keep_next=false
2145 for ac_pass in 1 2
2146 do
2147   for ac_arg
2148   do
2149     case $ac_arg in
2150     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2151     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2152     | -silent | --silent | --silen | --sile | --sil)
2153       continue ;;
2154     *\'*)
2155       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2156     esac
2157     case $ac_pass in
2158     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2159     2)
2160       as_fn_append ac_configure_args1 " '$ac_arg'"
2161       if test $ac_must_keep_next = true; then
2162         ac_must_keep_next=false # Got value, back to normal.
2163       else
2164         case $ac_arg in
2165           *=* | --config-cache | -C | -disable-* | --disable-* \
2166           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2167           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2168           | -with-* | --with-* | -without-* | --without-* | --x)
2169             case "$ac_configure_args0 " in
2170               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2171             esac
2172             ;;
2173           -* ) ac_must_keep_next=true ;;
2174         esac
2175       fi
2176       as_fn_append ac_configure_args " '$ac_arg'"
2177       ;;
2178     esac
2179   done
2180 done
2181 { ac_configure_args0=; unset ac_configure_args0;}
2182 { ac_configure_args1=; unset ac_configure_args1;}
2183
2184 # When interrupted or exit'd, cleanup temporary files, and complete
2185 # config.log.  We remove comments because anyway the quotes in there
2186 # would cause problems or look ugly.
2187 # WARNING: Use '\'' to represent an apostrophe within the trap.
2188 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2189 trap 'exit_status=$?
2190   # Sanitize IFS.
2191   IFS=" ""      $as_nl"
2192   # Save into config.log some information that might help in debugging.
2193   {
2194     echo
2195
2196     printf "%s\n" "## ---------------- ##
2197 ## Cache variables. ##
2198 ## ---------------- ##"
2199     echo
2200     # The following way of writing the cache mishandles newlines in values,
2201 (
2202   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2203     eval ac_val=\$$ac_var
2204     case $ac_val in #(
2205     *${as_nl}*)
2206       case $ac_var in #(
2207       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2208 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2209       esac
2210       case $ac_var in #(
2211       _ | IFS | as_nl) ;; #(
2212       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2213       *) { eval $ac_var=; unset $ac_var;} ;;
2214       esac ;;
2215     esac
2216   done
2217   (set) 2>&1 |
2218     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2219     *${as_nl}ac_space=\ *)
2220       sed -n \
2221         "s/'\''/'\''\\\\'\'''\''/g;
2222           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2223       ;; #(
2224     *)
2225       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2226       ;;
2227     esac |
2228     sort
2229 )
2230     echo
2231
2232     printf "%s\n" "## ----------------- ##
2233 ## Output variables. ##
2234 ## ----------------- ##"
2235     echo
2236     for ac_var in $ac_subst_vars
2237     do
2238       eval ac_val=\$$ac_var
2239       case $ac_val in
2240       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241       esac
2242       printf "%s\n" "$ac_var='\''$ac_val'\''"
2243     done | sort
2244     echo
2245
2246     if test -n "$ac_subst_files"; then
2247       printf "%s\n" "## ------------------- ##
2248 ## File substitutions. ##
2249 ## ------------------- ##"
2250       echo
2251       for ac_var in $ac_subst_files
2252       do
2253         eval ac_val=\$$ac_var
2254         case $ac_val in
2255         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256         esac
2257         printf "%s\n" "$ac_var='\''$ac_val'\''"
2258       done | sort
2259       echo
2260     fi
2261
2262     if test -s confdefs.h; then
2263       printf "%s\n" "## ----------- ##
2264 ## confdefs.h. ##
2265 ## ----------- ##"
2266       echo
2267       cat confdefs.h
2268       echo
2269     fi
2270     test "$ac_signal" != 0 &&
2271       printf "%s\n" "$as_me: caught signal $ac_signal"
2272     printf "%s\n" "$as_me: exit $exit_status"
2273   } >&5
2274   rm -f core *.core core.conftest.* &&
2275     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2276     exit $exit_status
2277 ' 0
2278 for ac_signal in 1 2 13 15; do
2279   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2280 done
2281 ac_signal=0
2282
2283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2284 rm -f -r conftest* confdefs.h
2285
2286 printf "%s\n" "/* confdefs.h */" > confdefs.h
2287
2288 # Predefined preprocessor variables.
2289
2290 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2291
2292 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2293
2294 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2295
2296 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2297
2298 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2299
2300 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2301
2302
2303 # Let the site file select an alternate cache file if it wants to.
2304 # Prefer an explicitly selected file to automatically selected ones.
2305 if test -n "$CONFIG_SITE"; then
2306   ac_site_files="$CONFIG_SITE"
2307 elif test "x$prefix" != xNONE; then
2308   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2309 else
2310   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2311 fi
2312
2313 for ac_site_file in $ac_site_files
2314 do
2315   case $ac_site_file in #(
2316   */*) :
2317      ;; #(
2318   *) :
2319     ac_site_file=./$ac_site_file ;;
2320 esac
2321   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2322     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2323 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2324     sed 's/^/| /' "$ac_site_file" >&5
2325     . "$ac_site_file" \
2326       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2328 as_fn_error $? "failed to load site script $ac_site_file
2329 See \`config.log' for more details" "$LINENO" 5; }
2330   fi
2331 done
2332
2333 if test -r "$cache_file"; then
2334   # Some versions of bash will fail to source /dev/null (special files
2335   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2336   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2337     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2338 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2339     case $cache_file in
2340       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2341       *)                      . "./$cache_file";;
2342     esac
2343   fi
2344 else
2345   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2346 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2347   >$cache_file
2348 fi
2349
2350 # Test code for whether the C compiler supports C89 (global declarations)
2351 ac_c_conftest_c89_globals='
2352 /* Does the compiler advertise C89 conformance?
2353    Do not test the value of __STDC__, because some compilers set it to 0
2354    while being otherwise adequately conformant. */
2355 #if !defined __STDC__
2356 # error "Compiler does not advertise C89 conformance"
2357 #endif
2358
2359 #include <stddef.h>
2360 #include <stdarg.h>
2361 struct stat;
2362 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2363 struct buf { int x; };
2364 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2365 static char *e (p, i)
2366      char **p;
2367      int i;
2368 {
2369   return p[i];
2370 }
2371 static char *f (char * (*g) (char **, int), char **p, ...)
2372 {
2373   char *s;
2374   va_list v;
2375   va_start (v,p);
2376   s = g (p, va_arg (v,int));
2377   va_end (v);
2378   return s;
2379 }
2380
2381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2382    function prototypes and stuff, but not \xHH hex character constants.
2383    These do not provoke an error unfortunately, instead are silently treated
2384    as an "x".  The following induces an error, until -std is added to get
2385    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2386    array size at least.  It is necessary to write \x00 == 0 to get something
2387    that is true only with -std.  */
2388 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2389
2390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2391    inside strings and character constants.  */
2392 #define FOO(x) '\''x'\''
2393 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2394
2395 int test (int i, double x);
2396 struct s1 {int (*f) (int a);};
2397 struct s2 {int (*f) (double a);};
2398 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2399                int, int);'
2400
2401 # Test code for whether the C compiler supports C89 (body of main).
2402 ac_c_conftest_c89_main='
2403 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2404 '
2405
2406 # Test code for whether the C compiler supports C99 (global declarations)
2407 ac_c_conftest_c99_globals='
2408 // Does the compiler advertise C99 conformance?
2409 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2410 # error "Compiler does not advertise C99 conformance"
2411 #endif
2412
2413 #include <stdbool.h>
2414 extern int puts (const char *);
2415 extern int printf (const char *, ...);
2416 extern int dprintf (int, const char *, ...);
2417 extern void *malloc (size_t);
2418
2419 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2420 // dprintf is used instead of fprintf to avoid needing to declare
2421 // FILE and stderr.
2422 #define debug(...) dprintf (2, __VA_ARGS__)
2423 #define showlist(...) puts (#__VA_ARGS__)
2424 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2425 static void
2426 test_varargs_macros (void)
2427 {
2428   int x = 1234;
2429   int y = 5678;
2430   debug ("Flag");
2431   debug ("X = %d\n", x);
2432   showlist (The first, second, and third items.);
2433   report (x>y, "x is %d but y is %d", x, y);
2434 }
2435
2436 // Check long long types.
2437 #define BIG64 18446744073709551615ull
2438 #define BIG32 4294967295ul
2439 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2440 #if !BIG_OK
2441   #error "your preprocessor is broken"
2442 #endif
2443 #if BIG_OK
2444 #else
2445   #error "your preprocessor is broken"
2446 #endif
2447 static long long int bignum = -9223372036854775807LL;
2448 static unsigned long long int ubignum = BIG64;
2449
2450 struct incomplete_array
2451 {
2452   int datasize;
2453   double data[];
2454 };
2455
2456 struct named_init {
2457   int number;
2458   const wchar_t *name;
2459   double average;
2460 };
2461
2462 typedef const char *ccp;
2463
2464 static inline int
2465 test_restrict (ccp restrict text)
2466 {
2467   // See if C++-style comments work.
2468   // Iterate through items via the restricted pointer.
2469   // Also check for declarations in for loops.
2470   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2471     continue;
2472   return 0;
2473 }
2474
2475 // Check varargs and va_copy.
2476 static bool
2477 test_varargs (const char *format, ...)
2478 {
2479   va_list args;
2480   va_start (args, format);
2481   va_list args_copy;
2482   va_copy (args_copy, args);
2483
2484   const char *str = "";
2485   int number = 0;
2486   float fnumber = 0;
2487
2488   while (*format)
2489     {
2490       switch (*format++)
2491         {
2492         case '\''s'\'': // string
2493           str = va_arg (args_copy, const char *);
2494           break;
2495         case '\''d'\'': // int
2496           number = va_arg (args_copy, int);
2497           break;
2498         case '\''f'\'': // float
2499           fnumber = va_arg (args_copy, double);
2500           break;
2501         default:
2502           break;
2503         }
2504     }
2505   va_end (args_copy);
2506   va_end (args);
2507
2508   return *str && number && fnumber;
2509 }
2510 '
2511
2512 # Test code for whether the C compiler supports C99 (body of main).
2513 ac_c_conftest_c99_main='
2514   // Check bool.
2515   _Bool success = false;
2516   success |= (argc != 0);
2517
2518   // Check restrict.
2519   if (test_restrict ("String literal") == 0)
2520     success = true;
2521   char *restrict newvar = "Another string";
2522
2523   // Check varargs.
2524   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2525   test_varargs_macros ();
2526
2527   // Check flexible array members.
2528   struct incomplete_array *ia =
2529     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2530   ia->datasize = 10;
2531   for (int i = 0; i < ia->datasize; ++i)
2532     ia->data[i] = i * 1.234;
2533
2534   // Check named initializers.
2535   struct named_init ni = {
2536     .number = 34,
2537     .name = L"Test wide string",
2538     .average = 543.34343,
2539   };
2540
2541   ni.number = 58;
2542
2543   int dynamic_array[ni.number];
2544   dynamic_array[0] = argv[0][0];
2545   dynamic_array[ni.number - 1] = 543;
2546
2547   // work around unused variable warnings
2548   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2549          || dynamic_array[ni.number - 1] != 543);
2550 '
2551
2552 # Test code for whether the C compiler supports C11 (global declarations)
2553 ac_c_conftest_c11_globals='
2554 // Does the compiler advertise C11 conformance?
2555 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2556 # error "Compiler does not advertise C11 conformance"
2557 #endif
2558
2559 // Check _Alignas.
2560 char _Alignas (double) aligned_as_double;
2561 char _Alignas (0) no_special_alignment;
2562 extern char aligned_as_int;
2563 char _Alignas (0) _Alignas (int) aligned_as_int;
2564
2565 // Check _Alignof.
2566 enum
2567 {
2568   int_alignment = _Alignof (int),
2569   int_array_alignment = _Alignof (int[100]),
2570   char_alignment = _Alignof (char)
2571 };
2572 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2573
2574 // Check _Noreturn.
2575 int _Noreturn does_not_return (void) { for (;;) continue; }
2576
2577 // Check _Static_assert.
2578 struct test_static_assert
2579 {
2580   int x;
2581   _Static_assert (sizeof (int) <= sizeof (long int),
2582                   "_Static_assert does not work in struct");
2583   long int y;
2584 };
2585
2586 // Check UTF-8 literals.
2587 #define u8 syntax error!
2588 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2589
2590 // Check duplicate typedefs.
2591 typedef long *long_ptr;
2592 typedef long int *long_ptr;
2593 typedef long_ptr long_ptr;
2594
2595 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2596 struct anonymous
2597 {
2598   union {
2599     struct { int i; int j; };
2600     struct { int k; long int l; } w;
2601   };
2602   int m;
2603 } v1;
2604 '
2605
2606 # Test code for whether the C compiler supports C11 (body of main).
2607 ac_c_conftest_c11_main='
2608   _Static_assert ((offsetof (struct anonymous, i)
2609                    == offsetof (struct anonymous, w.k)),
2610                   "Anonymous union alignment botch");
2611   v1.i = 2;
2612   v1.w.k = 5;
2613   ok |= v1.i != 5;
2614 '
2615
2616 # Test code for whether the C compiler supports C11 (complete).
2617 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2618 ${ac_c_conftest_c99_globals}
2619 ${ac_c_conftest_c11_globals}
2620
2621 int
2622 main (int argc, char **argv)
2623 {
2624   int ok = 0;
2625   ${ac_c_conftest_c89_main}
2626   ${ac_c_conftest_c99_main}
2627   ${ac_c_conftest_c11_main}
2628   return ok;
2629 }
2630 "
2631
2632 # Test code for whether the C compiler supports C99 (complete).
2633 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2634 ${ac_c_conftest_c99_globals}
2635
2636 int
2637 main (int argc, char **argv)
2638 {
2639   int ok = 0;
2640   ${ac_c_conftest_c89_main}
2641   ${ac_c_conftest_c99_main}
2642   return ok;
2643 }
2644 "
2645
2646 # Test code for whether the C compiler supports C89 (complete).
2647 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2648
2649 int
2650 main (int argc, char **argv)
2651 {
2652   int ok = 0;
2653   ${ac_c_conftest_c89_main}
2654   return ok;
2655 }
2656 "
2657
2658 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2659 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2660 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2661 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2662 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2663 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2664 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2665 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2666 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2667
2668 # Auxiliary files required by this configure script.
2669 ac_aux_files="compile missing install-sh config.guess config.sub"
2670
2671 # Locations in which to look for auxiliary files.
2672 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2673
2674 # Search for a directory containing all of the required auxiliary files,
2675 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2676 # If we don't find one directory that contains all the files we need,
2677 # we report the set of missing files from the *first* directory in
2678 # $ac_aux_dir_candidates and give up.
2679 ac_missing_aux_files=""
2680 ac_first_candidate=:
2681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 as_found=false
2684 for as_dir in $ac_aux_dir_candidates
2685 do
2686   IFS=$as_save_IFS
2687   case $as_dir in #(((
2688     '') as_dir=./ ;;
2689     */) ;;
2690     *) as_dir=$as_dir/ ;;
2691   esac
2692   as_found=:
2693
2694   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2695   ac_aux_dir_found=yes
2696   ac_install_sh=
2697   for ac_aux in $ac_aux_files
2698   do
2699     # As a special case, if "install-sh" is required, that requirement
2700     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2701     # and $ac_install_sh is set appropriately for whichever one is found.
2702     if test x"$ac_aux" = x"install-sh"
2703     then
2704       if test -f "${as_dir}install-sh"; then
2705         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2706         ac_install_sh="${as_dir}install-sh -c"
2707       elif test -f "${as_dir}install.sh"; then
2708         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2709         ac_install_sh="${as_dir}install.sh -c"
2710       elif test -f "${as_dir}shtool"; then
2711         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2712         ac_install_sh="${as_dir}shtool install -c"
2713       else
2714         ac_aux_dir_found=no
2715         if $ac_first_candidate; then
2716           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2717         else
2718           break
2719         fi
2720       fi
2721     else
2722       if test -f "${as_dir}${ac_aux}"; then
2723         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2724       else
2725         ac_aux_dir_found=no
2726         if $ac_first_candidate; then
2727           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2728         else
2729           break
2730         fi
2731       fi
2732     fi
2733   done
2734   if test "$ac_aux_dir_found" = yes; then
2735     ac_aux_dir="$as_dir"
2736     break
2737   fi
2738   ac_first_candidate=false
2739
2740   as_found=false
2741 done
2742 IFS=$as_save_IFS
2743 if $as_found
2744 then :
2745
2746 else $as_nop
2747   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2748 fi
2749
2750
2751 # These three variables are undocumented and unsupported,
2752 # and are intended to be withdrawn in a future Autoconf release.
2753 # They can cause serious problems if a builder's source tree is in a directory
2754 # whose full name contains unusual characters.
2755 if test -f "${ac_aux_dir}config.guess"; then
2756   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2757 fi
2758 if test -f "${ac_aux_dir}config.sub"; then
2759   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2760 fi
2761 if test -f "$ac_aux_dir/configure"; then
2762   ac_configure="$SHELL ${ac_aux_dir}configure"
2763 fi
2764
2765 # Check that the precious variables saved in the cache have kept the same
2766 # value.
2767 ac_cache_corrupted=false
2768 for ac_var in $ac_precious_vars; do
2769   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2770   eval ac_new_set=\$ac_env_${ac_var}_set
2771   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2772   eval ac_new_val=\$ac_env_${ac_var}_value
2773   case $ac_old_set,$ac_new_set in
2774     set,)
2775       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2776 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2777       ac_cache_corrupted=: ;;
2778     ,set)
2779       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2780 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2781       ac_cache_corrupted=: ;;
2782     ,);;
2783     *)
2784       if test "x$ac_old_val" != "x$ac_new_val"; then
2785         # differences in whitespace do not lead to failure.
2786         ac_old_val_w=`echo x $ac_old_val`
2787         ac_new_val_w=`echo x $ac_new_val`
2788         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2789           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2790 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2791           ac_cache_corrupted=:
2792         else
2793           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2794 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2795           eval $ac_var=\$ac_old_val
2796         fi
2797         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2798 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2799         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2800 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2801       fi;;
2802   esac
2803   # Pass precious variables to config.status.
2804   if test "$ac_new_set" = set; then
2805     case $ac_new_val in
2806     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2807     *) ac_arg=$ac_var=$ac_new_val ;;
2808     esac
2809     case " $ac_configure_args " in
2810       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2811       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2812     esac
2813   fi
2814 done
2815 if $ac_cache_corrupted; then
2816   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2818   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2819 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2820   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2821             and start over" "$LINENO" 5
2822 fi
2823 ## -------------------- ##
2824 ## Main body of script. ##
2825 ## -------------------- ##
2826
2827 ac_ext=c
2828 ac_cpp='$CPP $CPPFLAGS'
2829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832
2833
2834
2835
2836
2837
2838
2839   # Make sure we can run config.sub.
2840 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2841   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2842
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2844 printf %s "checking build system type... " >&6; }
2845 if test ${ac_cv_build+y}
2846 then :
2847   printf %s "(cached) " >&6
2848 else $as_nop
2849   ac_build_alias=$build_alias
2850 test "x$ac_build_alias" = x &&
2851   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2852 test "x$ac_build_alias" = x &&
2853   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2854 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2855   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2856
2857 fi
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2859 printf "%s\n" "$ac_cv_build" >&6; }
2860 case $ac_cv_build in
2861 *-*-*) ;;
2862 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2863 esac
2864 build=$ac_cv_build
2865 ac_save_IFS=$IFS; IFS='-'
2866 set x $ac_cv_build
2867 shift
2868 build_cpu=$1
2869 build_vendor=$2
2870 shift; shift
2871 # Remember, the first character of IFS is used to create $*,
2872 # except with old shells:
2873 build_os=$*
2874 IFS=$ac_save_IFS
2875 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2876
2877
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2879 printf %s "checking host system type... " >&6; }
2880 if test ${ac_cv_host+y}
2881 then :
2882   printf %s "(cached) " >&6
2883 else $as_nop
2884   if test "x$host_alias" = x; then
2885   ac_cv_host=$ac_cv_build
2886 else
2887   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2888     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2889 fi
2890
2891 fi
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2893 printf "%s\n" "$ac_cv_host" >&6; }
2894 case $ac_cv_host in
2895 *-*-*) ;;
2896 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2897 esac
2898 host=$ac_cv_host
2899 ac_save_IFS=$IFS; IFS='-'
2900 set x $ac_cv_host
2901 shift
2902 host_cpu=$1
2903 host_vendor=$2
2904 shift; shift
2905 # Remember, the first character of IFS is used to create $*,
2906 # except with old shells:
2907 host_os=$*
2908 IFS=$ac_save_IFS
2909 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2910
2911
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2913 printf %s "checking target system type... " >&6; }
2914 if test ${ac_cv_target+y}
2915 then :
2916   printf %s "(cached) " >&6
2917 else $as_nop
2918   if test "x$target_alias" = x; then
2919   ac_cv_target=$ac_cv_host
2920 else
2921   ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2922     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2923 fi
2924
2925 fi
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2927 printf "%s\n" "$ac_cv_target" >&6; }
2928 case $ac_cv_target in
2929 *-*-*) ;;
2930 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2931 esac
2932 target=$ac_cv_target
2933 ac_save_IFS=$IFS; IFS='-'
2934 set x $ac_cv_target
2935 shift
2936 target_cpu=$1
2937 target_vendor=$2
2938 shift; shift
2939 # Remember, the first character of IFS is used to create $*,
2940 # except with old shells:
2941 target_os=$*
2942 IFS=$ac_save_IFS
2943 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2944
2945
2946 # The aliases save the names the user supplied, while $host etc.
2947 # will get canonicalized.
2948 test -n "$target_alias" &&
2949   test "$program_prefix$program_suffix$program_transform_name" = \
2950     NONENONEs,x,x, &&
2951   program_prefix=${target_alias}-
2952
2953 am__api_version='1.16'
2954
2955
2956   # Find a good install program.  We prefer a C program (faster),
2957 # so one script is as good as another.  But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2962 # AIX /bin/install
2963 # AmigaOS /C/install, which installs bootblocks on floppy discs
2964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967 # OS/2's system install, which has a completely different semantic
2968 # ./install, which can be erroneously created by make from ./install.sh.
2969 # Reject install programs that cannot install multiple files.
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2971 printf %s "checking for a BSD-compatible install... " >&6; }
2972 if test -z "$INSTALL"; then
2973 if test ${ac_cv_path_install+y}
2974 then :
2975   printf %s "(cached) " >&6
2976 else $as_nop
2977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   case $as_dir in #(((
2982     '') as_dir=./ ;;
2983     */) ;;
2984     *) as_dir=$as_dir/ ;;
2985   esac
2986     # Account for fact that we put trailing slashes in our PATH walk.
2987 case $as_dir in #((
2988   ./ | /[cC]/* | \
2989   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2990   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2991   /usr/ucb/* ) ;;
2992   *)
2993     # OSF1 and SCO ODT 3.0 have their own names for install.
2994     # Don't use installbsd from OSF since it installs stuff as root
2995     # by default.
2996     for ac_prog in ginstall scoinst install; do
2997       for ac_exec_ext in '' $ac_executable_extensions; do
2998         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2999           if test $ac_prog = install &&
3000             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3001             # AIX install.  It has an incompatible calling convention.
3002             :
3003           elif test $ac_prog = install &&
3004             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3005             # program-specific install script used by HP pwplus--don't use.
3006             :
3007           else
3008             rm -rf conftest.one conftest.two conftest.dir
3009             echo one > conftest.one
3010             echo two > conftest.two
3011             mkdir conftest.dir
3012             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3013               test -s conftest.one && test -s conftest.two &&
3014               test -s conftest.dir/conftest.one &&
3015               test -s conftest.dir/conftest.two
3016             then
3017               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3018               break 3
3019             fi
3020           fi
3021         fi
3022       done
3023     done
3024     ;;
3025 esac
3026
3027   done
3028 IFS=$as_save_IFS
3029
3030 rm -rf conftest.one conftest.two conftest.dir
3031
3032 fi
3033   if test ${ac_cv_path_install+y}; then
3034     INSTALL=$ac_cv_path_install
3035   else
3036     # As a last resort, use the slow shell script.  Don't cache a
3037     # value for INSTALL within a source directory, because that will
3038     # break other packages using the cache if that directory is
3039     # removed, or if the value is a relative name.
3040     INSTALL=$ac_install_sh
3041   fi
3042 fi
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3044 printf "%s\n" "$INSTALL" >&6; }
3045
3046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3047 # It thinks the first close brace ends the variable substitution.
3048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3049
3050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3051
3052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3053
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3055 printf %s "checking whether build environment is sane... " >&6; }
3056 # Reject unsafe characters in $srcdir or the absolute working directory
3057 # name.  Accept space and tab only in the latter.
3058 am_lf='
3059 '
3060 case `pwd` in
3061   *[\\\"\#\$\&\'\`$am_lf]*)
3062     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3063 esac
3064 case $srcdir in
3065   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3066     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3067 esac
3068
3069 # Do 'set' in a subshell so we don't clobber the current shell's
3070 # arguments.  Must try -L first in case configure is actually a
3071 # symlink; some systems play weird games with the mod time of symlinks
3072 # (eg FreeBSD returns the mod time of the symlink's containing
3073 # directory).
3074 if (
3075    am_has_slept=no
3076    for am_try in 1 2; do
3077      echo "timestamp, slept: $am_has_slept" > conftest.file
3078      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3079      if test "$*" = "X"; then
3080         # -L didn't work.
3081         set X `ls -t "$srcdir/configure" conftest.file`
3082      fi
3083      if test "$*" != "X $srcdir/configure conftest.file" \
3084         && test "$*" != "X conftest.file $srcdir/configure"; then
3085
3086         # If neither matched, then we have a broken ls.  This can happen
3087         # if, for instance, CONFIG_SHELL is bash and it inherits a
3088         # broken ls alias from the environment.  This has actually
3089         # happened.  Such a system could not be considered "sane".
3090         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3091   alias in your environment" "$LINENO" 5
3092      fi
3093      if test "$2" = conftest.file || test $am_try -eq 2; then
3094        break
3095      fi
3096      # Just in case.
3097      sleep 1
3098      am_has_slept=yes
3099    done
3100    test "$2" = conftest.file
3101    )
3102 then
3103    # Ok.
3104    :
3105 else
3106    as_fn_error $? "newly created file is older than distributed files!
3107 Check your system clock" "$LINENO" 5
3108 fi
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 printf "%s\n" "yes" >&6; }
3111 # If we didn't sleep, we still need to ensure time stamps of config.status and
3112 # generated files are strictly newer.
3113 am_sleep_pid=
3114 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3115   ( sleep 1 ) &
3116   am_sleep_pid=$!
3117 fi
3118
3119 rm -f conftest.file
3120
3121 test "$program_prefix" != NONE &&
3122   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3123 # Use a double $ so make ignores it.
3124 test "$program_suffix" != NONE &&
3125   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3126 # Double any \ or $.
3127 # By default was `s,x,x', remove it if useless.
3128 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3129 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3130
3131
3132 # Expand $ac_aux_dir to an absolute path.
3133 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3134
3135
3136   if test x"${MISSING+set}" != xset; then
3137   MISSING="\${SHELL} '$am_aux_dir/missing'"
3138 fi
3139 # Use eval to expand $SHELL
3140 if eval "$MISSING --is-lightweight"; then
3141   am_missing_run="$MISSING "
3142 else
3143   am_missing_run=
3144   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3145 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3146 fi
3147
3148 if test x"${install_sh+set}" != xset; then
3149   case $am_aux_dir in
3150   *\ * | *\     *)
3151     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3152   *)
3153     install_sh="\${SHELL} $am_aux_dir/install-sh"
3154   esac
3155 fi
3156
3157 # Installed binaries are usually stripped using 'strip' when the user
3158 # run "make install-strip".  However 'strip' might not be the right
3159 # tool to use in cross-compilation environments, therefore Automake
3160 # will honor the 'STRIP' environment variable to overrule this program.
3161 if test "$cross_compiling" != no; then
3162   if test -n "$ac_tool_prefix"; then
3163   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}strip; ac_word=$2
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 printf %s "checking for $ac_word... " >&6; }
3167 if test ${ac_cv_prog_STRIP+y}
3168 then :
3169   printf %s "(cached) " >&6
3170 else $as_nop
3171   if test -n "$STRIP"; then
3172   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   case $as_dir in #(((
3179     '') as_dir=./ ;;
3180     */) ;;
3181     *) as_dir=$as_dir/ ;;
3182   esac
3183     for ac_exec_ext in '' $ac_executable_extensions; do
3184   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3185     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3186     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3187     break 2
3188   fi
3189 done
3190   done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 STRIP=$ac_cv_prog_STRIP
3196 if test -n "$STRIP"; then
3197   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3198 printf "%s\n" "$STRIP" >&6; }
3199 else
3200   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 printf "%s\n" "no" >&6; }
3202 fi
3203
3204
3205 fi
3206 if test -z "$ac_cv_prog_STRIP"; then
3207   ac_ct_STRIP=$STRIP
3208   # Extract the first word of "strip", so it can be a program name with args.
3209 set dummy strip; ac_word=$2
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 printf %s "checking for $ac_word... " >&6; }
3212 if test ${ac_cv_prog_ac_ct_STRIP+y}
3213 then :
3214   printf %s "(cached) " >&6
3215 else $as_nop
3216   if test -n "$ac_ct_STRIP"; then
3217   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222   IFS=$as_save_IFS
3223   case $as_dir in #(((
3224     '') as_dir=./ ;;
3225     */) ;;
3226     *) as_dir=$as_dir/ ;;
3227   esac
3228     for ac_exec_ext in '' $ac_executable_extensions; do
3229   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3230     ac_cv_prog_ac_ct_STRIP="strip"
3231     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235   done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3241 if test -n "$ac_ct_STRIP"; then
3242   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3243 printf "%s\n" "$ac_ct_STRIP" >&6; }
3244 else
3245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 printf "%s\n" "no" >&6; }
3247 fi
3248
3249   if test "x$ac_ct_STRIP" = x; then
3250     STRIP=":"
3251   else
3252     case $cross_compiling:$ac_tool_warned in
3253 yes:)
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3255 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3256 ac_tool_warned=yes ;;
3257 esac
3258     STRIP=$ac_ct_STRIP
3259   fi
3260 else
3261   STRIP="$ac_cv_prog_STRIP"
3262 fi
3263
3264 fi
3265 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3266
3267
3268   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3269 printf %s "checking for a race-free mkdir -p... " >&6; }
3270 if test -z "$MKDIR_P"; then
3271   if test ${ac_cv_path_mkdir+y}
3272 then :
3273   printf %s "(cached) " >&6
3274 else $as_nop
3275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3277 do
3278   IFS=$as_save_IFS
3279   case $as_dir in #(((
3280     '') as_dir=./ ;;
3281     */) ;;
3282     *) as_dir=$as_dir/ ;;
3283   esac
3284     for ac_prog in mkdir gmkdir; do
3285          for ac_exec_ext in '' $ac_executable_extensions; do
3286            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3287            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3288              'mkdir ('*'coreutils) '* | \
3289              'BusyBox '* | \
3290              'mkdir (fileutils) '4.1*)
3291                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3292                break 3;;
3293            esac
3294          done
3295        done
3296   done
3297 IFS=$as_save_IFS
3298
3299 fi
3300
3301   test -d ./--version && rmdir ./--version
3302   if test ${ac_cv_path_mkdir+y}; then
3303     MKDIR_P="$ac_cv_path_mkdir -p"
3304   else
3305     # As a last resort, use the slow shell script.  Don't cache a
3306     # value for MKDIR_P within a source directory, because that will
3307     # break other packages using the cache if that directory is
3308     # removed, or if the value is a relative name.
3309     MKDIR_P="$ac_install_sh -d"
3310   fi
3311 fi
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3313 printf "%s\n" "$MKDIR_P" >&6; }
3314
3315 for ac_prog in gawk mawk nawk awk
3316 do
3317   # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 printf %s "checking for $ac_word... " >&6; }
3321 if test ${ac_cv_prog_AWK+y}
3322 then :
3323   printf %s "(cached) " >&6
3324 else $as_nop
3325   if test -n "$AWK"; then
3326   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   case $as_dir in #(((
3333     '') as_dir=./ ;;
3334     */) ;;
3335     *) as_dir=$as_dir/ ;;
3336   esac
3337     for ac_exec_ext in '' $ac_executable_extensions; do
3338   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3339     ac_cv_prog_AWK="$ac_prog"
3340     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344   done
3345 IFS=$as_save_IFS
3346
3347 fi
3348 fi
3349 AWK=$ac_cv_prog_AWK
3350 if test -n "$AWK"; then
3351   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3352 printf "%s\n" "$AWK" >&6; }
3353 else
3354   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 printf "%s\n" "no" >&6; }
3356 fi
3357
3358
3359   test -n "$AWK" && break
3360 done
3361
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3363 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3364 set x ${MAKE-make}
3365 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3366 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3367 then :
3368   printf %s "(cached) " >&6
3369 else $as_nop
3370   cat >conftest.make <<\_ACEOF
3371 SHELL = /bin/sh
3372 all:
3373         @echo '@@@%%%=$(MAKE)=@@@%%%'
3374 _ACEOF
3375 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3377   *@@@%%%=?*=@@@%%%*)
3378     eval ac_cv_prog_make_${ac_make}_set=yes;;
3379   *)
3380     eval ac_cv_prog_make_${ac_make}_set=no;;
3381 esac
3382 rm -f conftest.make
3383 fi
3384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3385   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 printf "%s\n" "yes" >&6; }
3387   SET_MAKE=
3388 else
3389   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 printf "%s\n" "no" >&6; }
3391   SET_MAKE="MAKE=${MAKE-make}"
3392 fi
3393
3394 rm -rf .tst 2>/dev/null
3395 mkdir .tst 2>/dev/null
3396 if test -d .tst; then
3397   am__leading_dot=.
3398 else
3399   am__leading_dot=_
3400 fi
3401 rmdir .tst 2>/dev/null
3402
3403 # Check whether --enable-silent-rules was given.
3404 if test ${enable_silent_rules+y}
3405 then :
3406   enableval=$enable_silent_rules;
3407 fi
3408
3409 case $enable_silent_rules in # (((
3410   yes) AM_DEFAULT_VERBOSITY=0;;
3411    no) AM_DEFAULT_VERBOSITY=1;;
3412     *) AM_DEFAULT_VERBOSITY=1;;
3413 esac
3414 am_make=${MAKE-make}
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3416 printf %s "checking whether $am_make supports nested variables... " >&6; }
3417 if test ${am_cv_make_support_nested_variables+y}
3418 then :
3419   printf %s "(cached) " >&6
3420 else $as_nop
3421   if printf "%s\n" 'TRUE=$(BAR$(V))
3422 BAR0=false
3423 BAR1=true
3424 V=1
3425 am__doit:
3426         @$(TRUE)
3427 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3428   am_cv_make_support_nested_variables=yes
3429 else
3430   am_cv_make_support_nested_variables=no
3431 fi
3432 fi
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3434 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3435 if test $am_cv_make_support_nested_variables = yes; then
3436     AM_V='$(V)'
3437   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3438 else
3439   AM_V=$AM_DEFAULT_VERBOSITY
3440   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3441 fi
3442 AM_BACKSLASH='\'
3443
3444 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3445   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3446   # is not polluted with repeated "-I."
3447   am__isrc=' -I$(srcdir)'
3448   # test to see if srcdir already configured
3449   if test -f $srcdir/config.status; then
3450     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3451   fi
3452 fi
3453
3454 # test whether we have cygpath
3455 if test -z "$CYGPATH_W"; then
3456   if (cygpath --version) >/dev/null 2>/dev/null; then
3457     CYGPATH_W='cygpath -w'
3458   else
3459     CYGPATH_W=echo
3460   fi
3461 fi
3462
3463
3464 # Define the identity of the package.
3465  PACKAGE='d2x'
3466  VERSION='0.2.6'
3467
3468
3469 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3470
3471
3472 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3473
3474 # Some tools Automake needs.
3475
3476 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3477
3478
3479 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3480
3481
3482 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3483
3484
3485 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3486
3487
3488 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3489
3490 # For better backward compatibility.  To be removed once Automake 1.9.x
3491 # dies out for good.  For more background, see:
3492 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3493 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3494 mkdir_p='$(MKDIR_P)'
3495
3496 # We need awk for the "check" target (and possibly the TAP driver).  The
3497 # system "awk" is bad on some platforms.
3498 # Always define AMTAR for backward compatibility.  Yes, it's still used
3499 # in the wild :-(  We should find a proper way to deprecate it ...
3500 AMTAR='$${TAR-tar}'
3501
3502
3503 # We'll loop over all known methods to create a tar archive until one works.
3504 _am_tools='gnutar  pax cpio none'
3505
3506 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3507
3508
3509
3510
3511
3512
3513 # POSIX will say in a future version that running "rm -f" with no argument
3514 # is OK; and we want to be able to make that assumption in our Makefile
3515 # recipes.  So use an aggressive probe to check that the usage we want is
3516 # actually supported "in the wild" to an acceptable degree.
3517 # See automake bug#10828.
3518 # To make any issue more visible, cause the running configure to be aborted
3519 # by default if the 'rm' program in use doesn't match our expectations; the
3520 # user can still override this though.
3521 if rm -f && rm -fr && rm -rf; then : OK; else
3522   cat >&2 <<'END'
3523 Oops!
3524
3525 Your 'rm' program seems unable to run without file operands specified
3526 on the command line, even when the '-f' option is present.  This is contrary
3527 to the behaviour of most rm programs out there, and not conforming with
3528 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3529
3530 Please tell bug-automake@gnu.org about your system, including the value
3531 of your $PATH and any error possibly output before this message.  This
3532 can help us improve future automake versions.
3533
3534 END
3535   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3536     echo 'Configuration will proceed anyway, since you have set the' >&2
3537     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3538     echo >&2
3539   else
3540     cat >&2 <<'END'
3541 Aborting the configuration process, to ensure you take notice of the issue.
3542
3543 You can download and install GNU coreutils to get an 'rm' implementation
3544 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3545
3546 If you want to complete the configuration process using your problematic
3547 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3548 to "yes", and re-run configure.
3549
3550 END
3551     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3552   fi
3553 fi
3554
3555
3556 ac_config_headers="$ac_config_headers conf.h"
3557
3558
3559
3560 printf "%s\n" "#define D2XMAJOR 0" >>confdefs.h
3561
3562
3563 printf "%s\n" "#define D2XMINOR 2" >>confdefs.h
3564
3565
3566 printf "%s\n" "#define D2XMICRO 6" >>confdefs.h
3567
3568
3569
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3571 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3572     # Check whether --enable-maintainer-mode was given.
3573 if test ${enable_maintainer_mode+y}
3574 then :
3575   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3576 else $as_nop
3577   USE_MAINTAINER_MODE=no
3578 fi
3579
3580   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3581 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3582    if test $USE_MAINTAINER_MODE = yes; then
3583   MAINTAINER_MODE_TRUE=
3584   MAINTAINER_MODE_FALSE='#'
3585 else
3586   MAINTAINER_MODE_TRUE='#'
3587   MAINTAINER_MODE_FALSE=
3588 fi
3589
3590   MAINT=$MAINTAINER_MODE_TRUE
3591
3592
3593
3594 #kludge to keep autoconf from adding -g -O2
3595 CFLAGS=" $CFLAGS"
3596
3597
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3599 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3600 set x ${MAKE-make}
3601 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3602 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3603 then :
3604   printf %s "(cached) " >&6
3605 else $as_nop
3606   cat >conftest.make <<\_ACEOF
3607 SHELL = /bin/sh
3608 all:
3609         @echo '@@@%%%=$(MAKE)=@@@%%%'
3610 _ACEOF
3611 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3612 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3613   *@@@%%%=?*=@@@%%%*)
3614     eval ac_cv_prog_make_${ac_make}_set=yes;;
3615   *)
3616     eval ac_cv_prog_make_${ac_make}_set=no;;
3617 esac
3618 rm -f conftest.make
3619 fi
3620 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3621   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3622 printf "%s\n" "yes" >&6; }
3623   SET_MAKE=
3624 else
3625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 printf "%s\n" "no" >&6; }
3627   SET_MAKE="MAKE=${MAKE-make}"
3628 fi
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639 DEPDIR="${am__leading_dot}deps"
3640
3641 ac_config_commands="$ac_config_commands depfiles"
3642
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3644 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3645 cat > confinc.mk << 'END'
3646 am__doit:
3647         @echo this is the am__doit target >confinc.out
3648 .PHONY: am__doit
3649 END
3650 am__include="#"
3651 am__quote=
3652 # BSD make does it like this.
3653 echo '.include "confinc.mk" # ignored' > confmf.BSD
3654 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3655 echo 'include confinc.mk # ignored' > confmf.GNU
3656 _am_result=no
3657 for s in GNU BSD; do
3658   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3659    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3660    ac_status=$?
3661    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662    (exit $ac_status); }
3663   case $?:`cat confinc.out 2>/dev/null` in #(
3664   '0:this is the am__doit target') :
3665     case $s in #(
3666   BSD) :
3667     am__include='.include' am__quote='"' ;; #(
3668   *) :
3669     am__include='include' am__quote='' ;;
3670 esac ;; #(
3671   *) :
3672      ;;
3673 esac
3674   if test "$am__include" != "#"; then
3675     _am_result="yes ($s style)"
3676     break
3677   fi
3678 done
3679 rm -f confinc.* confmf.*
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3681 printf "%s\n" "${_am_result}" >&6; }
3682
3683 # Check whether --enable-dependency-tracking was given.
3684 if test ${enable_dependency_tracking+y}
3685 then :
3686   enableval=$enable_dependency_tracking;
3687 fi
3688
3689 if test "x$enable_dependency_tracking" != xno; then
3690   am_depcomp="$ac_aux_dir/depcomp"
3691   AMDEPBACKSLASH='\'
3692   am__nodep='_no'
3693 fi
3694  if test "x$enable_dependency_tracking" != xno; then
3695   AMDEP_TRUE=
3696   AMDEP_FALSE='#'
3697 else
3698   AMDEP_TRUE='#'
3699   AMDEP_FALSE=
3700 fi
3701
3702
3703 ac_ext=c
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 if test -n "$ac_tool_prefix"; then
3709   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 printf %s "checking for $ac_word... " >&6; }
3713 if test ${ac_cv_prog_CC+y}
3714 then :
3715   printf %s "(cached) " >&6
3716 else $as_nop
3717   if test -n "$CC"; then
3718   ac_cv_prog_CC="$CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   case $as_dir in #(((
3725     '') as_dir=./ ;;
3726     */) ;;
3727     *) as_dir=$as_dir/ ;;
3728   esac
3729     for ac_exec_ext in '' $ac_executable_extensions; do
3730   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3731     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3732     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3733     break 2
3734   fi
3735 done
3736   done
3737 IFS=$as_save_IFS
3738
3739 fi
3740 fi
3741 CC=$ac_cv_prog_CC
3742 if test -n "$CC"; then
3743   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744 printf "%s\n" "$CC" >&6; }
3745 else
3746   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 printf "%s\n" "no" >&6; }
3748 fi
3749
3750
3751 fi
3752 if test -z "$ac_cv_prog_CC"; then
3753   ac_ct_CC=$CC
3754   # Extract the first word of "gcc", so it can be a program name with args.
3755 set dummy gcc; ac_word=$2
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 printf %s "checking for $ac_word... " >&6; }
3758 if test ${ac_cv_prog_ac_ct_CC+y}
3759 then :
3760   printf %s "(cached) " >&6
3761 else $as_nop
3762   if test -n "$ac_ct_CC"; then
3763   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768   IFS=$as_save_IFS
3769   case $as_dir in #(((
3770     '') as_dir=./ ;;
3771     */) ;;
3772     *) as_dir=$as_dir/ ;;
3773   esac
3774     for ac_exec_ext in '' $ac_executable_extensions; do
3775   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3776     ac_cv_prog_ac_ct_CC="gcc"
3777     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781   done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3787 if test -n "$ac_ct_CC"; then
3788   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3789 printf "%s\n" "$ac_ct_CC" >&6; }
3790 else
3791   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 printf "%s\n" "no" >&6; }
3793 fi
3794
3795   if test "x$ac_ct_CC" = x; then
3796     CC=""
3797   else
3798     case $cross_compiling:$ac_tool_warned in
3799 yes:)
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3803 esac
3804     CC=$ac_ct_CC
3805   fi
3806 else
3807   CC="$ac_cv_prog_CC"
3808 fi
3809
3810 if test -z "$CC"; then
3811           if test -n "$ac_tool_prefix"; then
3812     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}cc; ac_word=$2
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 printf %s "checking for $ac_word... " >&6; }
3816 if test ${ac_cv_prog_CC+y}
3817 then :
3818   printf %s "(cached) " >&6
3819 else $as_nop
3820   if test -n "$CC"; then
3821   ac_cv_prog_CC="$CC" # Let the user override the test.
3822 else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3825 do
3826   IFS=$as_save_IFS
3827   case $as_dir in #(((
3828     '') as_dir=./ ;;
3829     */) ;;
3830     *) as_dir=$as_dir/ ;;
3831   esac
3832     for ac_exec_ext in '' $ac_executable_extensions; do
3833   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3834     ac_cv_prog_CC="${ac_tool_prefix}cc"
3835     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3836     break 2
3837   fi
3838 done
3839   done
3840 IFS=$as_save_IFS
3841
3842 fi
3843 fi
3844 CC=$ac_cv_prog_CC
3845 if test -n "$CC"; then
3846   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3847 printf "%s\n" "$CC" >&6; }
3848 else
3849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 printf "%s\n" "no" >&6; }
3851 fi
3852
3853
3854   fi
3855 fi
3856 if test -z "$CC"; then
3857   # Extract the first word of "cc", so it can be a program name with args.
3858 set dummy cc; ac_word=$2
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 printf %s "checking for $ac_word... " >&6; }
3861 if test ${ac_cv_prog_CC+y}
3862 then :
3863   printf %s "(cached) " >&6
3864 else $as_nop
3865   if test -n "$CC"; then
3866   ac_cv_prog_CC="$CC" # Let the user override the test.
3867 else
3868   ac_prog_rejected=no
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872   IFS=$as_save_IFS
3873   case $as_dir in #(((
3874     '') as_dir=./ ;;
3875     */) ;;
3876     *) as_dir=$as_dir/ ;;
3877   esac
3878     for ac_exec_ext in '' $ac_executable_extensions; do
3879   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3880     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3881        ac_prog_rejected=yes
3882        continue
3883      fi
3884     ac_cv_prog_CC="cc"
3885     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3886     break 2
3887   fi
3888 done
3889   done
3890 IFS=$as_save_IFS
3891
3892 if test $ac_prog_rejected = yes; then
3893   # We found a bogon in the path, so make sure we never use it.
3894   set dummy $ac_cv_prog_CC
3895   shift
3896   if test $# != 0; then
3897     # We chose a different compiler from the bogus one.
3898     # However, it has the same basename, so the bogon will be chosen
3899     # first if we set CC to just the basename; use the full file name.
3900     shift
3901     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3902   fi
3903 fi
3904 fi
3905 fi
3906 CC=$ac_cv_prog_CC
3907 if test -n "$CC"; then
3908   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909 printf "%s\n" "$CC" >&6; }
3910 else
3911   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 printf "%s\n" "no" >&6; }
3913 fi
3914
3915
3916 fi
3917 if test -z "$CC"; then
3918   if test -n "$ac_tool_prefix"; then
3919   for ac_prog in cl.exe
3920   do
3921     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 printf %s "checking for $ac_word... " >&6; }
3925 if test ${ac_cv_prog_CC+y}
3926 then :
3927   printf %s "(cached) " >&6
3928 else $as_nop
3929   if test -n "$CC"; then
3930   ac_cv_prog_CC="$CC" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935   IFS=$as_save_IFS
3936   case $as_dir in #(((
3937     '') as_dir=./ ;;
3938     */) ;;
3939     *) as_dir=$as_dir/ ;;
3940   esac
3941     for ac_exec_ext in '' $ac_executable_extensions; do
3942   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3944     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948   done
3949 IFS=$as_save_IFS
3950
3951 fi
3952 fi
3953 CC=$ac_cv_prog_CC
3954 if test -n "$CC"; then
3955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956 printf "%s\n" "$CC" >&6; }
3957 else
3958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3960 fi
3961
3962
3963     test -n "$CC" && break
3964   done
3965 fi
3966 if test -z "$CC"; then
3967   ac_ct_CC=$CC
3968   for ac_prog in cl.exe
3969 do
3970   # Extract the first word of "$ac_prog", so it can be a program name with args.
3971 set dummy $ac_prog; ac_word=$2
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 printf %s "checking for $ac_word... " >&6; }
3974 if test ${ac_cv_prog_ac_ct_CC+y}
3975 then :
3976   printf %s "(cached) " >&6
3977 else $as_nop
3978   if test -n "$ac_ct_CC"; then
3979   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3983 do
3984   IFS=$as_save_IFS
3985   case $as_dir in #(((
3986     '') as_dir=./ ;;
3987     */) ;;
3988     *) as_dir=$as_dir/ ;;
3989   esac
3990     for ac_exec_ext in '' $ac_executable_extensions; do
3991   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3992     ac_cv_prog_ac_ct_CC="$ac_prog"
3993     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3994     break 2
3995   fi
3996 done
3997   done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4003 if test -n "$ac_ct_CC"; then
4004   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4005 printf "%s\n" "$ac_ct_CC" >&6; }
4006 else
4007   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 printf "%s\n" "no" >&6; }
4009 fi
4010
4011
4012   test -n "$ac_ct_CC" && break
4013 done
4014
4015   if test "x$ac_ct_CC" = x; then
4016     CC=""
4017   else
4018     case $cross_compiling:$ac_tool_warned in
4019 yes:)
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022 ac_tool_warned=yes ;;
4023 esac
4024     CC=$ac_ct_CC
4025   fi
4026 fi
4027
4028 fi
4029 if test -z "$CC"; then
4030   if test -n "$ac_tool_prefix"; then
4031   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4032 set dummy ${ac_tool_prefix}clang; ac_word=$2
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 printf %s "checking for $ac_word... " >&6; }
4035 if test ${ac_cv_prog_CC+y}
4036 then :
4037   printf %s "(cached) " >&6
4038 else $as_nop
4039   if test -n "$CC"; then
4040   ac_cv_prog_CC="$CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   case $as_dir in #(((
4047     '') as_dir=./ ;;
4048     */) ;;
4049     *) as_dir=$as_dir/ ;;
4050   esac
4051     for ac_exec_ext in '' $ac_executable_extensions; do
4052   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4053     ac_cv_prog_CC="${ac_tool_prefix}clang"
4054     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4055     break 2
4056   fi
4057 done
4058   done
4059 IFS=$as_save_IFS
4060
4061 fi
4062 fi
4063 CC=$ac_cv_prog_CC
4064 if test -n "$CC"; then
4065   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066 printf "%s\n" "$CC" >&6; }
4067 else
4068   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 printf "%s\n" "no" >&6; }
4070 fi
4071
4072
4073 fi
4074 if test -z "$ac_cv_prog_CC"; then
4075   ac_ct_CC=$CC
4076   # Extract the first word of "clang", so it can be a program name with args.
4077 set dummy clang; ac_word=$2
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 printf %s "checking for $ac_word... " >&6; }
4080 if test ${ac_cv_prog_ac_ct_CC+y}
4081 then :
4082   printf %s "(cached) " >&6
4083 else $as_nop
4084   if test -n "$ac_ct_CC"; then
4085   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090   IFS=$as_save_IFS
4091   case $as_dir in #(((
4092     '') as_dir=./ ;;
4093     */) ;;
4094     *) as_dir=$as_dir/ ;;
4095   esac
4096     for ac_exec_ext in '' $ac_executable_extensions; do
4097   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4098     ac_cv_prog_ac_ct_CC="clang"
4099     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103   done
4104 IFS=$as_save_IFS
4105
4106 fi
4107 fi
4108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109 if test -n "$ac_ct_CC"; then
4110   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4111 printf "%s\n" "$ac_ct_CC" >&6; }
4112 else
4113   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 printf "%s\n" "no" >&6; }
4115 fi
4116
4117   if test "x$ac_ct_CC" = x; then
4118     CC=""
4119   else
4120     case $cross_compiling:$ac_tool_warned in
4121 yes:)
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4123 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4124 ac_tool_warned=yes ;;
4125 esac
4126     CC=$ac_ct_CC
4127   fi
4128 else
4129   CC="$ac_cv_prog_CC"
4130 fi
4131
4132 fi
4133
4134
4135 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "no acceptable C compiler found in \$PATH
4138 See \`config.log' for more details" "$LINENO" 5; }
4139
4140 # Provide some information about the compiler.
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4142 set X $ac_compile
4143 ac_compiler=$2
4144 for ac_option in --version -v -V -qversion -version; do
4145   { { ac_try="$ac_compiler $ac_option >&5"
4146 case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151 printf "%s\n" "$ac_try_echo"; } >&5
4152   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4153   ac_status=$?
4154   if test -s conftest.err; then
4155     sed '10a\
4156 ... rest of stderr output deleted ...
4157          10q' conftest.err >conftest.er1
4158     cat conftest.er1 >&5
4159   fi
4160   rm -f conftest.er1 conftest.err
4161   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162   test $ac_status = 0; }
4163 done
4164
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h.  */
4167
4168 int
4169 main (void)
4170 {
4171
4172   ;
4173   return 0;
4174 }
4175 _ACEOF
4176 ac_clean_files_save=$ac_clean_files
4177 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4178 # Try to create an executable without -o first, disregard a.out.
4179 # It will help us diagnose broken compilers, and finding out an intuition
4180 # of exeext.
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4182 printf %s "checking whether the C compiler works... " >&6; }
4183 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4184
4185 # The possible output files:
4186 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4187
4188 ac_rmfiles=
4189 for ac_file in $ac_files
4190 do
4191   case $ac_file in
4192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4193     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4194   esac
4195 done
4196 rm -f $ac_rmfiles
4197
4198 if { { ac_try="$ac_link_default"
4199 case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 printf "%s\n" "$ac_try_echo"; } >&5
4205   (eval "$ac_link_default") 2>&5
4206   ac_status=$?
4207   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208   test $ac_status = 0; }
4209 then :
4210   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4211 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4212 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4213 # so that the user can short-circuit this test for compilers unknown to
4214 # Autoconf.
4215 for ac_file in $ac_files ''
4216 do
4217   test -f "$ac_file" || continue
4218   case $ac_file in
4219     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4220         ;;
4221     [ab].out )
4222         # We found the default executable, but exeext='' is most
4223         # certainly right.
4224         break;;
4225     *.* )
4226         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4227         then :; else
4228            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4229         fi
4230         # We set ac_cv_exeext here because the later test for it is not
4231         # safe: cross compilers may not add the suffix if given an `-o'
4232         # argument, so we may need to know it at that point already.
4233         # Even if this section looks crufty: it has the advantage of
4234         # actually working.
4235         break;;
4236     * )
4237         break;;
4238   esac
4239 done
4240 test "$ac_cv_exeext" = no && ac_cv_exeext=
4241
4242 else $as_nop
4243   ac_file=''
4244 fi
4245 if test -z "$ac_file"
4246 then :
4247   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 printf "%s\n" "no" >&6; }
4249 printf "%s\n" "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error 77 "C compiler cannot create executables
4255 See \`config.log' for more details" "$LINENO" 5; }
4256 else $as_nop
4257   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4258 printf "%s\n" "yes" >&6; }
4259 fi
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4261 printf %s "checking for C compiler default output file name... " >&6; }
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4263 printf "%s\n" "$ac_file" >&6; }
4264 ac_exeext=$ac_cv_exeext
4265
4266 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4267 ac_clean_files=$ac_clean_files_save
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4269 printf %s "checking for suffix of executables... " >&6; }
4270 if { { ac_try="$ac_link"
4271 case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276 printf "%s\n" "$ac_try_echo"; } >&5
4277   (eval "$ac_link") 2>&5
4278   ac_status=$?
4279   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280   test $ac_status = 0; }
4281 then :
4282   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4283 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4284 # work properly (i.e., refer to `conftest.exe'), while it won't with
4285 # `rm'.
4286 for ac_file in conftest.exe conftest conftest.*; do
4287   test -f "$ac_file" || continue
4288   case $ac_file in
4289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4290     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4291           break;;
4292     * ) break;;
4293   esac
4294 done
4295 else $as_nop
4296   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4298 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4299 See \`config.log' for more details" "$LINENO" 5; }
4300 fi
4301 rm -f conftest conftest$ac_cv_exeext
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4303 printf "%s\n" "$ac_cv_exeext" >&6; }
4304
4305 rm -f conftest.$ac_ext
4306 EXEEXT=$ac_cv_exeext
4307 ac_exeext=$EXEEXT
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h.  */
4310 #include <stdio.h>
4311 int
4312 main (void)
4313 {
4314 FILE *f = fopen ("conftest.out", "w");
4315  return ferror (f) || fclose (f) != 0;
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 ac_clean_files="$ac_clean_files conftest.out"
4322 # Check that the compiler produces executables we can run.  If not, either
4323 # the compiler is broken, or we cross compile.
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4325 printf %s "checking whether we are cross compiling... " >&6; }
4326 if test "$cross_compiling" != yes; then
4327   { { ac_try="$ac_link"
4328 case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 printf "%s\n" "$ac_try_echo"; } >&5
4334   (eval "$ac_link") 2>&5
4335   ac_status=$?
4336   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337   test $ac_status = 0; }
4338   if { ac_try='./conftest$ac_cv_exeext'
4339   { { case "(($ac_try" in
4340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341   *) ac_try_echo=$ac_try;;
4342 esac
4343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344 printf "%s\n" "$ac_try_echo"; } >&5
4345   (eval "$ac_try") 2>&5
4346   ac_status=$?
4347   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348   test $ac_status = 0; }; }; then
4349     cross_compiling=no
4350   else
4351     if test "$cross_compiling" = maybe; then
4352         cross_compiling=yes
4353     else
4354         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4355 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4356 as_fn_error 77 "cannot run C compiled programs.
4357 If you meant to cross compile, use \`--host'.
4358 See \`config.log' for more details" "$LINENO" 5; }
4359     fi
4360   fi
4361 fi
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4363 printf "%s\n" "$cross_compiling" >&6; }
4364
4365 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4366 ac_clean_files=$ac_clean_files_save
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4368 printf %s "checking for suffix of object files... " >&6; }
4369 if test ${ac_cv_objext+y}
4370 then :
4371   printf %s "(cached) " >&6
4372 else $as_nop
4373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h.  */
4375
4376 int
4377 main (void)
4378 {
4379
4380   ;
4381   return 0;
4382 }
4383 _ACEOF
4384 rm -f conftest.o conftest.obj
4385 if { { ac_try="$ac_compile"
4386 case "(($ac_try" in
4387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388   *) ac_try_echo=$ac_try;;
4389 esac
4390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391 printf "%s\n" "$ac_try_echo"; } >&5
4392   (eval "$ac_compile") 2>&5
4393   ac_status=$?
4394   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395   test $ac_status = 0; }
4396 then :
4397   for ac_file in conftest.o conftest.obj conftest.*; do
4398   test -f "$ac_file" || continue;
4399   case $ac_file in
4400     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4401     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4402        break;;
4403   esac
4404 done
4405 else $as_nop
4406   printf "%s\n" "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error $? "cannot compute suffix of object files: cannot compile
4412 See \`config.log' for more details" "$LINENO" 5; }
4413 fi
4414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4415 fi
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4417 printf "%s\n" "$ac_cv_objext" >&6; }
4418 OBJEXT=$ac_cv_objext
4419 ac_objext=$OBJEXT
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4421 printf %s "checking whether the compiler supports GNU C... " >&6; }
4422 if test ${ac_cv_c_compiler_gnu+y}
4423 then :
4424   printf %s "(cached) " >&6
4425 else $as_nop
4426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h.  */
4428
4429 int
4430 main (void)
4431 {
4432 #ifndef __GNUC__
4433        choke me
4434 #endif
4435
4436   ;
4437   return 0;
4438 }
4439 _ACEOF
4440 if ac_fn_c_try_compile "$LINENO"
4441 then :
4442   ac_compiler_gnu=yes
4443 else $as_nop
4444   ac_compiler_gnu=no
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4448
4449 fi
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4451 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454 if test $ac_compiler_gnu = yes; then
4455   GCC=yes
4456 else
4457   GCC=
4458 fi
4459 ac_test_CFLAGS=${CFLAGS+y}
4460 ac_save_CFLAGS=$CFLAGS
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4462 printf %s "checking whether $CC accepts -g... " >&6; }
4463 if test ${ac_cv_prog_cc_g+y}
4464 then :
4465   printf %s "(cached) " >&6
4466 else $as_nop
4467   ac_save_c_werror_flag=$ac_c_werror_flag
4468    ac_c_werror_flag=yes
4469    ac_cv_prog_cc_g=no
4470    CFLAGS="-g"
4471    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h.  */
4473
4474 int
4475 main (void)
4476 {
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_c_try_compile "$LINENO"
4483 then :
4484   ac_cv_prog_cc_g=yes
4485 else $as_nop
4486   CFLAGS=""
4487       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h.  */
4489
4490 int
4491 main (void)
4492 {
4493
4494   ;
4495   return 0;
4496 }
4497 _ACEOF
4498 if ac_fn_c_try_compile "$LINENO"
4499 then :
4500
4501 else $as_nop
4502   ac_c_werror_flag=$ac_save_c_werror_flag
4503          CFLAGS="-g"
4504          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h.  */
4506
4507 int
4508 main (void)
4509 {
4510
4511   ;
4512   return 0;
4513 }
4514 _ACEOF
4515 if ac_fn_c_try_compile "$LINENO"
4516 then :
4517   ac_cv_prog_cc_g=yes
4518 fi
4519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4524    ac_c_werror_flag=$ac_save_c_werror_flag
4525 fi
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4527 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4528 if test $ac_test_CFLAGS; then
4529   CFLAGS=$ac_save_CFLAGS
4530 elif test $ac_cv_prog_cc_g = yes; then
4531   if test "$GCC" = yes; then
4532     CFLAGS="-g -O2"
4533   else
4534     CFLAGS="-g"
4535   fi
4536 else
4537   if test "$GCC" = yes; then
4538     CFLAGS="-O2"
4539   else
4540     CFLAGS=
4541   fi
4542 fi
4543 ac_prog_cc_stdc=no
4544 if test x$ac_prog_cc_stdc = xno
4545 then :
4546   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4547 printf %s "checking for $CC option to enable C11 features... " >&6; }
4548 if test ${ac_cv_prog_cc_c11+y}
4549 then :
4550   printf %s "(cached) " >&6
4551 else $as_nop
4552   ac_cv_prog_cc_c11=no
4553 ac_save_CC=$CC
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h.  */
4556 $ac_c_conftest_c11_program
4557 _ACEOF
4558 for ac_arg in '' -std=gnu11
4559 do
4560   CC="$ac_save_CC $ac_arg"
4561   if ac_fn_c_try_compile "$LINENO"
4562 then :
4563   ac_cv_prog_cc_c11=$ac_arg
4564 fi
4565 rm -f core conftest.err conftest.$ac_objext conftest.beam
4566   test "x$ac_cv_prog_cc_c11" != "xno" && break
4567 done
4568 rm -f conftest.$ac_ext
4569 CC=$ac_save_CC
4570 fi
4571
4572 if test "x$ac_cv_prog_cc_c11" = xno
4573 then :
4574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4575 printf "%s\n" "unsupported" >&6; }
4576 else $as_nop
4577   if test "x$ac_cv_prog_cc_c11" = x
4578 then :
4579   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4580 printf "%s\n" "none needed" >&6; }
4581 else $as_nop
4582   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4583 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4584      CC="$CC $ac_cv_prog_cc_c11"
4585 fi
4586   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4587   ac_prog_cc_stdc=c11
4588 fi
4589 fi
4590 if test x$ac_prog_cc_stdc = xno
4591 then :
4592   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4593 printf %s "checking for $CC option to enable C99 features... " >&6; }
4594 if test ${ac_cv_prog_cc_c99+y}
4595 then :
4596   printf %s "(cached) " >&6
4597 else $as_nop
4598   ac_cv_prog_cc_c99=no
4599 ac_save_CC=$CC
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h.  */
4602 $ac_c_conftest_c99_program
4603 _ACEOF
4604 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4605 do
4606   CC="$ac_save_CC $ac_arg"
4607   if ac_fn_c_try_compile "$LINENO"
4608 then :
4609   ac_cv_prog_cc_c99=$ac_arg
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.beam
4612   test "x$ac_cv_prog_cc_c99" != "xno" && break
4613 done
4614 rm -f conftest.$ac_ext
4615 CC=$ac_save_CC
4616 fi
4617
4618 if test "x$ac_cv_prog_cc_c99" = xno
4619 then :
4620   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4621 printf "%s\n" "unsupported" >&6; }
4622 else $as_nop
4623   if test "x$ac_cv_prog_cc_c99" = x
4624 then :
4625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4626 printf "%s\n" "none needed" >&6; }
4627 else $as_nop
4628   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4629 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4630      CC="$CC $ac_cv_prog_cc_c99"
4631 fi
4632   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4633   ac_prog_cc_stdc=c99
4634 fi
4635 fi
4636 if test x$ac_prog_cc_stdc = xno
4637 then :
4638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4639 printf %s "checking for $CC option to enable C89 features... " >&6; }
4640 if test ${ac_cv_prog_cc_c89+y}
4641 then :
4642   printf %s "(cached) " >&6
4643 else $as_nop
4644   ac_cv_prog_cc_c89=no
4645 ac_save_CC=$CC
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h.  */
4648 $ac_c_conftest_c89_program
4649 _ACEOF
4650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4651 do
4652   CC="$ac_save_CC $ac_arg"
4653   if ac_fn_c_try_compile "$LINENO"
4654 then :
4655   ac_cv_prog_cc_c89=$ac_arg
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.beam
4658   test "x$ac_cv_prog_cc_c89" != "xno" && break
4659 done
4660 rm -f conftest.$ac_ext
4661 CC=$ac_save_CC
4662 fi
4663
4664 if test "x$ac_cv_prog_cc_c89" = xno
4665 then :
4666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4667 printf "%s\n" "unsupported" >&6; }
4668 else $as_nop
4669   if test "x$ac_cv_prog_cc_c89" = x
4670 then :
4671   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4672 printf "%s\n" "none needed" >&6; }
4673 else $as_nop
4674   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4675 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4676      CC="$CC $ac_cv_prog_cc_c89"
4677 fi
4678   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4679   ac_prog_cc_stdc=c89
4680 fi
4681 fi
4682
4683 ac_ext=c
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689
4690   ac_ext=c
4691 ac_cpp='$CPP $CPPFLAGS'
4692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4696 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4697 if test ${am_cv_prog_cc_c_o+y}
4698 then :
4699   printf %s "(cached) " >&6
4700 else $as_nop
4701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h.  */
4703
4704 int
4705 main (void)
4706 {
4707
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712   # Make sure it works both with $CC and with simple cc.
4713   # Following AC_PROG_CC_C_O, we do the test twice because some
4714   # compilers refuse to overwrite an existing .o file with -o,
4715   # though they will create one.
4716   am_cv_prog_cc_c_o=yes
4717   for am_i in 1 2; do
4718     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4719    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4720    ac_status=$?
4721    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722    (exit $ac_status); } \
4723          && test -f conftest2.$ac_objext; then
4724       : OK
4725     else
4726       am_cv_prog_cc_c_o=no
4727       break
4728     fi
4729   done
4730   rm -f core conftest*
4731   unset am_i
4732 fi
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4734 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4735 if test "$am_cv_prog_cc_c_o" != yes; then
4736    # Losing compiler, so override with the script.
4737    # FIXME: It is wrong to rewrite CC.
4738    # But if we don't then we get into trouble of one sort or another.
4739    # A longer-term fix would be to have automake use am__CC in this case,
4740    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4741    CC="$am_aux_dir/compile $CC"
4742 fi
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749
4750 depcc="$CC"   am_compiler_list=
4751
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4753 printf %s "checking dependency style of $depcc... " >&6; }
4754 if test ${am_cv_CC_dependencies_compiler_type+y}
4755 then :
4756   printf %s "(cached) " >&6
4757 else $as_nop
4758   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4759   # We make a subdir and do the tests there.  Otherwise we can end up
4760   # making bogus files that we don't know about and never remove.  For
4761   # instance it was reported that on HP-UX the gcc test will end up
4762   # making a dummy file named 'D' -- because '-MD' means "put the output
4763   # in D".
4764   rm -rf conftest.dir
4765   mkdir conftest.dir
4766   # Copy depcomp to subdir because otherwise we won't find it if we're
4767   # using a relative directory.
4768   cp "$am_depcomp" conftest.dir
4769   cd conftest.dir
4770   # We will build objects and dependencies in a subdirectory because
4771   # it helps to detect inapplicable dependency modes.  For instance
4772   # both Tru64's cc and ICC support -MD to output dependencies as a
4773   # side effect of compilation, but ICC will put the dependencies in
4774   # the current directory while Tru64 will put them in the object
4775   # directory.
4776   mkdir sub
4777
4778   am_cv_CC_dependencies_compiler_type=none
4779   if test "$am_compiler_list" = ""; then
4780      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4781   fi
4782   am__universal=false
4783   case " $depcc " in #(
4784      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4785      esac
4786
4787   for depmode in $am_compiler_list; do
4788     # Setup a source with many dependencies, because some compilers
4789     # like to wrap large dependency lists on column 80 (with \), and
4790     # we should not choose a depcomp mode which is confused by this.
4791     #
4792     # We need to recreate these files for each test, as the compiler may
4793     # overwrite some of them when testing with obscure command lines.
4794     # This happens at least with the AIX C compiler.
4795     : > sub/conftest.c
4796     for i in 1 2 3 4 5 6; do
4797       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4798       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4799       # Solaris 10 /bin/sh.
4800       echo '/* dummy */' > sub/conftst$i.h
4801     done
4802     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4803
4804     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4805     # mode.  It turns out that the SunPro C++ compiler does not properly
4806     # handle '-M -o', and we need to detect this.  Also, some Intel
4807     # versions had trouble with output in subdirs.
4808     am__obj=sub/conftest.${OBJEXT-o}
4809     am__minus_obj="-o $am__obj"
4810     case $depmode in
4811     gcc)
4812       # This depmode causes a compiler race in universal mode.
4813       test "$am__universal" = false || continue
4814       ;;
4815     nosideeffect)
4816       # After this tag, mechanisms are not by side-effect, so they'll
4817       # only be used when explicitly requested.
4818       if test "x$enable_dependency_tracking" = xyes; then
4819         continue
4820       else
4821         break
4822       fi
4823       ;;
4824     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4825       # This compiler won't grok '-c -o', but also, the minuso test has
4826       # not run yet.  These depmodes are late enough in the game, and
4827       # so weak that their functioning should not be impacted.
4828       am__obj=conftest.${OBJEXT-o}
4829       am__minus_obj=
4830       ;;
4831     none) break ;;
4832     esac
4833     if depmode=$depmode \
4834        source=sub/conftest.c object=$am__obj \
4835        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4836        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4837          >/dev/null 2>conftest.err &&
4838        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4839        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4840        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4841        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4842       # icc doesn't choke on unknown options, it will just issue warnings
4843       # or remarks (even with -Werror).  So we grep stderr for any message
4844       # that says an option was ignored or not supported.
4845       # When given -MP, icc 7.0 and 7.1 complain thusly:
4846       #   icc: Command line warning: ignoring option '-M'; no argument required
4847       # The diagnosis changed in icc 8.0:
4848       #   icc: Command line remark: option '-MP' not supported
4849       if (grep 'ignoring option' conftest.err ||
4850           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4851         am_cv_CC_dependencies_compiler_type=$depmode
4852         break
4853       fi
4854     fi
4855   done
4856
4857   cd ..
4858   rm -rf conftest.dir
4859 else
4860   am_cv_CC_dependencies_compiler_type=none
4861 fi
4862
4863 fi
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4865 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4866 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4867
4868  if
4869   test "x$enable_dependency_tracking" != xno \
4870   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4871   am__fastdepCC_TRUE=
4872   am__fastdepCC_FALSE='#'
4873 else
4874   am__fastdepCC_TRUE='#'
4875   am__fastdepCC_FALSE=
4876 fi
4877
4878
4879
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4881 printf %s "checking for library containing strerror... " >&6; }
4882 if test ${ac_cv_search_strerror+y}
4883 then :
4884   printf %s "(cached) " >&6
4885 else $as_nop
4886   ac_func_search_save_LIBS=$LIBS
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h.  */
4889
4890 /* Override any GCC internal prototype to avoid an error.
4891    Use char because int might match the return type of a GCC
4892    builtin and then its argument prototype would still apply.  */
4893 char strerror ();
4894 int
4895 main (void)
4896 {
4897 return strerror ();
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 for ac_lib in '' cposix
4903 do
4904   if test -z "$ac_lib"; then
4905     ac_res="none required"
4906   else
4907     ac_res=-l$ac_lib
4908     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4909   fi
4910   if ac_fn_c_try_link "$LINENO"
4911 then :
4912   ac_cv_search_strerror=$ac_res
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4915     conftest$ac_exeext
4916   if test ${ac_cv_search_strerror+y}
4917 then :
4918   break
4919 fi
4920 done
4921 if test ${ac_cv_search_strerror+y}
4922 then :
4923
4924 else $as_nop
4925   ac_cv_search_strerror=no
4926 fi
4927 rm conftest.$ac_ext
4928 LIBS=$ac_func_search_save_LIBS
4929 fi
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4931 printf "%s\n" "$ac_cv_search_strerror" >&6; }
4932 ac_res=$ac_cv_search_strerror
4933 if test "$ac_res" != no
4934 then :
4935   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4936
4937 fi
4938
4939 if test -n "$ac_tool_prefix"; then
4940   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 printf %s "checking for $ac_word... " >&6; }
4944 if test ${ac_cv_prog_CC+y}
4945 then :
4946   printf %s "(cached) " >&6
4947 else $as_nop
4948   if test -n "$CC"; then
4949   ac_cv_prog_CC="$CC" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   case $as_dir in #(((
4956     '') as_dir=./ ;;
4957     */) ;;
4958     *) as_dir=$as_dir/ ;;
4959   esac
4960     for ac_exec_ext in '' $ac_executable_extensions; do
4961   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4962     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4963     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967   done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 CC=$ac_cv_prog_CC
4973 if test -n "$CC"; then
4974   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4975 printf "%s\n" "$CC" >&6; }
4976 else
4977   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 printf "%s\n" "no" >&6; }
4979 fi
4980
4981
4982 fi
4983 if test -z "$ac_cv_prog_CC"; then
4984   ac_ct_CC=$CC
4985   # Extract the first word of "gcc", so it can be a program name with args.
4986 set dummy gcc; ac_word=$2
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 printf %s "checking for $ac_word... " >&6; }
4989 if test ${ac_cv_prog_ac_ct_CC+y}
4990 then :
4991   printf %s "(cached) " >&6
4992 else $as_nop
4993   if test -n "$ac_ct_CC"; then
4994   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   case $as_dir in #(((
5001     '') as_dir=./ ;;
5002     */) ;;
5003     *) as_dir=$as_dir/ ;;
5004   esac
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5007     ac_cv_prog_ac_ct_CC="gcc"
5008     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012   done
5013 IFS=$as_save_IFS
5014
5015 fi
5016 fi
5017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5018 if test -n "$ac_ct_CC"; then
5019   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5020 printf "%s\n" "$ac_ct_CC" >&6; }
5021 else
5022   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 printf "%s\n" "no" >&6; }
5024 fi
5025
5026   if test "x$ac_ct_CC" = x; then
5027     CC=":"
5028   else
5029     case $cross_compiling:$ac_tool_warned in
5030 yes:)
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5033 ac_tool_warned=yes ;;
5034 esac
5035     CC=$ac_ct_CC
5036   fi
5037 else
5038   CC="$ac_cv_prog_CC"
5039 fi
5040
5041 if test -n "$ac_tool_prefix"; then
5042   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 printf %s "checking for $ac_word... " >&6; }
5046 if test ${ac_cv_prog_RANLIB+y}
5047 then :
5048   printf %s "(cached) " >&6
5049 else $as_nop
5050   if test -n "$RANLIB"; then
5051   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056   IFS=$as_save_IFS
5057   case $as_dir in #(((
5058     '') as_dir=./ ;;
5059     */) ;;
5060     *) as_dir=$as_dir/ ;;
5061   esac
5062     for ac_exec_ext in '' $ac_executable_extensions; do
5063   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5064     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5065     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069   done
5070 IFS=$as_save_IFS
5071
5072 fi
5073 fi
5074 RANLIB=$ac_cv_prog_RANLIB
5075 if test -n "$RANLIB"; then
5076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5077 printf "%s\n" "$RANLIB" >&6; }
5078 else
5079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 printf "%s\n" "no" >&6; }
5081 fi
5082
5083
5084 fi
5085 if test -z "$ac_cv_prog_RANLIB"; then
5086   ac_ct_RANLIB=$RANLIB
5087   # Extract the first word of "ranlib", so it can be a program name with args.
5088 set dummy ranlib; ac_word=$2
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 printf %s "checking for $ac_word... " >&6; }
5091 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5092 then :
5093   printf %s "(cached) " >&6
5094 else $as_nop
5095   if test -n "$ac_ct_RANLIB"; then
5096   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101   IFS=$as_save_IFS
5102   case $as_dir in #(((
5103     '') as_dir=./ ;;
5104     */) ;;
5105     *) as_dir=$as_dir/ ;;
5106   esac
5107     for ac_exec_ext in '' $ac_executable_extensions; do
5108   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5109     ac_cv_prog_ac_ct_RANLIB="ranlib"
5110     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5111     break 2
5112   fi
5113 done
5114   done
5115 IFS=$as_save_IFS
5116
5117 fi
5118 fi
5119 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5120 if test -n "$ac_ct_RANLIB"; then
5121   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5122 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5123 else
5124   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 printf "%s\n" "no" >&6; }
5126 fi
5127
5128   if test "x$ac_ct_RANLIB" = x; then
5129     RANLIB=":"
5130   else
5131     case $cross_compiling:$ac_tool_warned in
5132 yes:)
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5135 ac_tool_warned=yes ;;
5136 esac
5137     RANLIB=$ac_ct_RANLIB
5138   fi
5139 else
5140   RANLIB="$ac_cv_prog_RANLIB"
5141 fi
5142
5143 if test -n "$ac_tool_prefix"; then
5144   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5145 set dummy ${ac_tool_prefix}strip; ac_word=$2
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 printf %s "checking for $ac_word... " >&6; }
5148 if test ${ac_cv_prog_STRIP+y}
5149 then :
5150   printf %s "(cached) " >&6
5151 else $as_nop
5152   if test -n "$STRIP"; then
5153   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158   IFS=$as_save_IFS
5159   case $as_dir in #(((
5160     '') as_dir=./ ;;
5161     */) ;;
5162     *) as_dir=$as_dir/ ;;
5163   esac
5164     for ac_exec_ext in '' $ac_executable_extensions; do
5165   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5166     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5167     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5168     break 2
5169   fi
5170 done
5171   done
5172 IFS=$as_save_IFS
5173
5174 fi
5175 fi
5176 STRIP=$ac_cv_prog_STRIP
5177 if test -n "$STRIP"; then
5178   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5179 printf "%s\n" "$STRIP" >&6; }
5180 else
5181   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 printf "%s\n" "no" >&6; }
5183 fi
5184
5185
5186 fi
5187 if test -z "$ac_cv_prog_STRIP"; then
5188   ac_ct_STRIP=$STRIP
5189   # Extract the first word of "strip", so it can be a program name with args.
5190 set dummy strip; ac_word=$2
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 printf %s "checking for $ac_word... " >&6; }
5193 if test ${ac_cv_prog_ac_ct_STRIP+y}
5194 then :
5195   printf %s "(cached) " >&6
5196 else $as_nop
5197   if test -n "$ac_ct_STRIP"; then
5198   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203   IFS=$as_save_IFS
5204   case $as_dir in #(((
5205     '') as_dir=./ ;;
5206     */) ;;
5207     *) as_dir=$as_dir/ ;;
5208   esac
5209     for ac_exec_ext in '' $ac_executable_extensions; do
5210   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5211     ac_cv_prog_ac_ct_STRIP="strip"
5212     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5213     break 2
5214   fi
5215 done
5216   done
5217 IFS=$as_save_IFS
5218
5219 fi
5220 fi
5221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5222 if test -n "$ac_ct_STRIP"; then
5223   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5224 printf "%s\n" "$ac_ct_STRIP" >&6; }
5225 else
5226   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 printf "%s\n" "no" >&6; }
5228 fi
5229
5230   if test "x$ac_ct_STRIP" = x; then
5231     STRIP=":"
5232   else
5233     case $cross_compiling:$ac_tool_warned in
5234 yes:)
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5236 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5237 ac_tool_warned=yes ;;
5238 esac
5239     STRIP=$ac_ct_STRIP
5240   fi
5241 else
5242   STRIP="$ac_cv_prog_STRIP"
5243 fi
5244
5245 if test -n "$ac_tool_prefix"; then
5246   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5247 set dummy ${ac_tool_prefix}ar; ac_word=$2
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 printf %s "checking for $ac_word... " >&6; }
5250 if test ${ac_cv_prog_AR+y}
5251 then :
5252   printf %s "(cached) " >&6
5253 else $as_nop
5254   if test -n "$AR"; then
5255   ac_cv_prog_AR="$AR" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260   IFS=$as_save_IFS
5261   case $as_dir in #(((
5262     '') as_dir=./ ;;
5263     */) ;;
5264     *) as_dir=$as_dir/ ;;
5265   esac
5266     for ac_exec_ext in '' $ac_executable_extensions; do
5267   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5268     ac_cv_prog_AR="${ac_tool_prefix}ar"
5269     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5270     break 2
5271   fi
5272 done
5273   done
5274 IFS=$as_save_IFS
5275
5276 fi
5277 fi
5278 AR=$ac_cv_prog_AR
5279 if test -n "$AR"; then
5280   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5281 printf "%s\n" "$AR" >&6; }
5282 else
5283   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 printf "%s\n" "no" >&6; }
5285 fi
5286
5287
5288 fi
5289 if test -z "$ac_cv_prog_AR"; then
5290   ac_ct_AR=$AR
5291   # Extract the first word of "ar", so it can be a program name with args.
5292 set dummy ar; ac_word=$2
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 printf %s "checking for $ac_word... " >&6; }
5295 if test ${ac_cv_prog_ac_ct_AR+y}
5296 then :
5297   printf %s "(cached) " >&6
5298 else $as_nop
5299   if test -n "$ac_ct_AR"; then
5300   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305   IFS=$as_save_IFS
5306   case $as_dir in #(((
5307     '') as_dir=./ ;;
5308     */) ;;
5309     *) as_dir=$as_dir/ ;;
5310   esac
5311     for ac_exec_ext in '' $ac_executable_extensions; do
5312   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5313     ac_cv_prog_ac_ct_AR="ar"
5314     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5315     break 2
5316   fi
5317 done
5318   done
5319 IFS=$as_save_IFS
5320
5321 fi
5322 fi
5323 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5324 if test -n "$ac_ct_AR"; then
5325   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5326 printf "%s\n" "$ac_ct_AR" >&6; }
5327 else
5328   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 printf "%s\n" "no" >&6; }
5330 fi
5331
5332   if test "x$ac_ct_AR" = x; then
5333     AR=":"
5334   else
5335     case $cross_compiling:$ac_tool_warned in
5336 yes:)
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5340 esac
5341     AR=$ac_ct_AR
5342   fi
5343 else
5344   AR="$ac_cv_prog_AR"
5345 fi
5346
5347 ac_ext=c
5348 ac_cpp='$CPP $CPPFLAGS'
5349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352 if test -n "$ac_tool_prefix"; then
5353   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 printf %s "checking for $ac_word... " >&6; }
5357 if test ${ac_cv_prog_CC+y}
5358 then :
5359   printf %s "(cached) " >&6
5360 else $as_nop
5361   if test -n "$CC"; then
5362   ac_cv_prog_CC="$CC" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367   IFS=$as_save_IFS
5368   case $as_dir in #(((
5369     '') as_dir=./ ;;
5370     */) ;;
5371     *) as_dir=$as_dir/ ;;
5372   esac
5373     for ac_exec_ext in '' $ac_executable_extensions; do
5374   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5375     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5376     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5377     break 2
5378   fi
5379 done
5380   done
5381 IFS=$as_save_IFS
5382
5383 fi
5384 fi
5385 CC=$ac_cv_prog_CC
5386 if test -n "$CC"; then
5387   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5388 printf "%s\n" "$CC" >&6; }
5389 else
5390   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 printf "%s\n" "no" >&6; }
5392 fi
5393
5394
5395 fi
5396 if test -z "$ac_cv_prog_CC"; then
5397   ac_ct_CC=$CC
5398   # Extract the first word of "gcc", so it can be a program name with args.
5399 set dummy gcc; ac_word=$2
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 printf %s "checking for $ac_word... " >&6; }
5402 if test ${ac_cv_prog_ac_ct_CC+y}
5403 then :
5404   printf %s "(cached) " >&6
5405 else $as_nop
5406   if test -n "$ac_ct_CC"; then
5407   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412   IFS=$as_save_IFS
5413   case $as_dir in #(((
5414     '') as_dir=./ ;;
5415     */) ;;
5416     *) as_dir=$as_dir/ ;;
5417   esac
5418     for ac_exec_ext in '' $ac_executable_extensions; do
5419   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5420     ac_cv_prog_ac_ct_CC="gcc"
5421     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5422     break 2
5423   fi
5424 done
5425   done
5426 IFS=$as_save_IFS
5427
5428 fi
5429 fi
5430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5431 if test -n "$ac_ct_CC"; then
5432   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5433 printf "%s\n" "$ac_ct_CC" >&6; }
5434 else
5435   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 printf "%s\n" "no" >&6; }
5437 fi
5438
5439   if test "x$ac_ct_CC" = x; then
5440     CC=""
5441   else
5442     case $cross_compiling:$ac_tool_warned in
5443 yes:)
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5445 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446 ac_tool_warned=yes ;;
5447 esac
5448     CC=$ac_ct_CC
5449   fi
5450 else
5451   CC="$ac_cv_prog_CC"
5452 fi
5453
5454 if test -z "$CC"; then
5455           if test -n "$ac_tool_prefix"; then
5456     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5457 set dummy ${ac_tool_prefix}cc; ac_word=$2
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 printf %s "checking for $ac_word... " >&6; }
5460 if test ${ac_cv_prog_CC+y}
5461 then :
5462   printf %s "(cached) " >&6
5463 else $as_nop
5464   if test -n "$CC"; then
5465   ac_cv_prog_CC="$CC" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470   IFS=$as_save_IFS
5471   case $as_dir in #(((
5472     '') as_dir=./ ;;
5473     */) ;;
5474     *) as_dir=$as_dir/ ;;
5475   esac
5476     for ac_exec_ext in '' $ac_executable_extensions; do
5477   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5478     ac_cv_prog_CC="${ac_tool_prefix}cc"
5479     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5480     break 2
5481   fi
5482 done
5483   done
5484 IFS=$as_save_IFS
5485
5486 fi
5487 fi
5488 CC=$ac_cv_prog_CC
5489 if test -n "$CC"; then
5490   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5491 printf "%s\n" "$CC" >&6; }
5492 else
5493   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 printf "%s\n" "no" >&6; }
5495 fi
5496
5497
5498   fi
5499 fi
5500 if test -z "$CC"; then
5501   # Extract the first word of "cc", so it can be a program name with args.
5502 set dummy cc; ac_word=$2
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 printf %s "checking for $ac_word... " >&6; }
5505 if test ${ac_cv_prog_CC+y}
5506 then :
5507   printf %s "(cached) " >&6
5508 else $as_nop
5509   if test -n "$CC"; then
5510   ac_cv_prog_CC="$CC" # Let the user override the test.
5511 else
5512   ac_prog_rejected=no
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   case $as_dir in #(((
5518     '') as_dir=./ ;;
5519     */) ;;
5520     *) as_dir=$as_dir/ ;;
5521   esac
5522     for ac_exec_ext in '' $ac_executable_extensions; do
5523   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5524     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5525        ac_prog_rejected=yes
5526        continue
5527      fi
5528     ac_cv_prog_CC="cc"
5529     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5530     break 2
5531   fi
5532 done
5533   done
5534 IFS=$as_save_IFS
5535
5536 if test $ac_prog_rejected = yes; then
5537   # We found a bogon in the path, so make sure we never use it.
5538   set dummy $ac_cv_prog_CC
5539   shift
5540   if test $# != 0; then
5541     # We chose a different compiler from the bogus one.
5542     # However, it has the same basename, so the bogon will be chosen
5543     # first if we set CC to just the basename; use the full file name.
5544     shift
5545     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5546   fi
5547 fi
5548 fi
5549 fi
5550 CC=$ac_cv_prog_CC
5551 if test -n "$CC"; then
5552   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5553 printf "%s\n" "$CC" >&6; }
5554 else
5555   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 printf "%s\n" "no" >&6; }
5557 fi
5558
5559
5560 fi
5561 if test -z "$CC"; then
5562   if test -n "$ac_tool_prefix"; then
5563   for ac_prog in cl.exe
5564   do
5565     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 printf %s "checking for $ac_word... " >&6; }
5569 if test ${ac_cv_prog_CC+y}
5570 then :
5571   printf %s "(cached) " >&6
5572 else $as_nop
5573   if test -n "$CC"; then
5574   ac_cv_prog_CC="$CC" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579   IFS=$as_save_IFS
5580   case $as_dir in #(((
5581     '') as_dir=./ ;;
5582     */) ;;
5583     *) as_dir=$as_dir/ ;;
5584   esac
5585     for ac_exec_ext in '' $ac_executable_extensions; do
5586   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5587     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5588     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592   done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 CC=$ac_cv_prog_CC
5598 if test -n "$CC"; then
5599   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5600 printf "%s\n" "$CC" >&6; }
5601 else
5602   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 printf "%s\n" "no" >&6; }
5604 fi
5605
5606
5607     test -n "$CC" && break
5608   done
5609 fi
5610 if test -z "$CC"; then
5611   ac_ct_CC=$CC
5612   for ac_prog in cl.exe
5613 do
5614   # Extract the first word of "$ac_prog", so it can be a program name with args.
5615 set dummy $ac_prog; ac_word=$2
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 printf %s "checking for $ac_word... " >&6; }
5618 if test ${ac_cv_prog_ac_ct_CC+y}
5619 then :
5620   printf %s "(cached) " >&6
5621 else $as_nop
5622   if test -n "$ac_ct_CC"; then
5623   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   case $as_dir in #(((
5630     '') as_dir=./ ;;
5631     */) ;;
5632     *) as_dir=$as_dir/ ;;
5633   esac
5634     for ac_exec_ext in '' $ac_executable_extensions; do
5635   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5636     ac_cv_prog_ac_ct_CC="$ac_prog"
5637     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641   done
5642 IFS=$as_save_IFS
5643
5644 fi
5645 fi
5646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5647 if test -n "$ac_ct_CC"; then
5648   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5649 printf "%s\n" "$ac_ct_CC" >&6; }
5650 else
5651   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 printf "%s\n" "no" >&6; }
5653 fi
5654
5655
5656   test -n "$ac_ct_CC" && break
5657 done
5658
5659   if test "x$ac_ct_CC" = x; then
5660     CC=""
5661   else
5662     case $cross_compiling:$ac_tool_warned in
5663 yes:)
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666 ac_tool_warned=yes ;;
5667 esac
5668     CC=$ac_ct_CC
5669   fi
5670 fi
5671
5672 fi
5673 if test -z "$CC"; then
5674   if test -n "$ac_tool_prefix"; then
5675   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5676 set dummy ${ac_tool_prefix}clang; ac_word=$2
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 printf %s "checking for $ac_word... " >&6; }
5679 if test ${ac_cv_prog_CC+y}
5680 then :
5681   printf %s "(cached) " >&6
5682 else $as_nop
5683   if test -n "$CC"; then
5684   ac_cv_prog_CC="$CC" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   case $as_dir in #(((
5691     '') as_dir=./ ;;
5692     */) ;;
5693     *) as_dir=$as_dir/ ;;
5694   esac
5695     for ac_exec_ext in '' $ac_executable_extensions; do
5696   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5697     ac_cv_prog_CC="${ac_tool_prefix}clang"
5698     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5699     break 2
5700   fi
5701 done
5702   done
5703 IFS=$as_save_IFS
5704
5705 fi
5706 fi
5707 CC=$ac_cv_prog_CC
5708 if test -n "$CC"; then
5709   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5710 printf "%s\n" "$CC" >&6; }
5711 else
5712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 printf "%s\n" "no" >&6; }
5714 fi
5715
5716
5717 fi
5718 if test -z "$ac_cv_prog_CC"; then
5719   ac_ct_CC=$CC
5720   # Extract the first word of "clang", so it can be a program name with args.
5721 set dummy clang; ac_word=$2
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 printf %s "checking for $ac_word... " >&6; }
5724 if test ${ac_cv_prog_ac_ct_CC+y}
5725 then :
5726   printf %s "(cached) " >&6
5727 else $as_nop
5728   if test -n "$ac_ct_CC"; then
5729   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   case $as_dir in #(((
5736     '') as_dir=./ ;;
5737     */) ;;
5738     *) as_dir=$as_dir/ ;;
5739   esac
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5742     ac_cv_prog_ac_ct_CC="clang"
5743     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5749
5750 fi
5751 fi
5752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5753 if test -n "$ac_ct_CC"; then
5754   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5755 printf "%s\n" "$ac_ct_CC" >&6; }
5756 else
5757   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 printf "%s\n" "no" >&6; }
5759 fi
5760
5761   if test "x$ac_ct_CC" = x; then
5762     CC=""
5763   else
5764     case $cross_compiling:$ac_tool_warned in
5765 yes:)
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768 ac_tool_warned=yes ;;
5769 esac
5770     CC=$ac_ct_CC
5771   fi
5772 else
5773   CC="$ac_cv_prog_CC"
5774 fi
5775
5776 fi
5777
5778
5779 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5780 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5781 as_fn_error $? "no acceptable C compiler found in \$PATH
5782 See \`config.log' for more details" "$LINENO" 5; }
5783
5784 # Provide some information about the compiler.
5785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5786 set X $ac_compile
5787 ac_compiler=$2
5788 for ac_option in --version -v -V -qversion -version; do
5789   { { ac_try="$ac_compiler $ac_option >&5"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5795 printf "%s\n" "$ac_try_echo"; } >&5
5796   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5797   ac_status=$?
5798   if test -s conftest.err; then
5799     sed '10a\
5800 ... rest of stderr output deleted ...
5801          10q' conftest.err >conftest.er1
5802     cat conftest.er1 >&5
5803   fi
5804   rm -f conftest.er1 conftest.err
5805   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5806   test $ac_status = 0; }
5807 done
5808
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5810 printf %s "checking whether the compiler supports GNU C... " >&6; }
5811 if test ${ac_cv_c_compiler_gnu+y}
5812 then :
5813   printf %s "(cached) " >&6
5814 else $as_nop
5815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h.  */
5817
5818 int
5819 main (void)
5820 {
5821 #ifndef __GNUC__
5822        choke me
5823 #endif
5824
5825   ;
5826   return 0;
5827 }
5828 _ACEOF
5829 if ac_fn_c_try_compile "$LINENO"
5830 then :
5831   ac_compiler_gnu=yes
5832 else $as_nop
5833   ac_compiler_gnu=no
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5836 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5837
5838 fi
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5840 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5842
5843 if test $ac_compiler_gnu = yes; then
5844   GCC=yes
5845 else
5846   GCC=
5847 fi
5848 ac_test_CFLAGS=${CFLAGS+y}
5849 ac_save_CFLAGS=$CFLAGS
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5851 printf %s "checking whether $CC accepts -g... " >&6; }
5852 if test ${ac_cv_prog_cc_g+y}
5853 then :
5854   printf %s "(cached) " >&6
5855 else $as_nop
5856   ac_save_c_werror_flag=$ac_c_werror_flag
5857    ac_c_werror_flag=yes
5858    ac_cv_prog_cc_g=no
5859    CFLAGS="-g"
5860    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h.  */
5862
5863 int
5864 main (void)
5865 {
5866
5867   ;
5868   return 0;
5869 }
5870 _ACEOF
5871 if ac_fn_c_try_compile "$LINENO"
5872 then :
5873   ac_cv_prog_cc_g=yes
5874 else $as_nop
5875   CFLAGS=""
5876       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h.  */
5878
5879 int
5880 main (void)
5881 {
5882
5883   ;
5884   return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_compile "$LINENO"
5888 then :
5889
5890 else $as_nop
5891   ac_c_werror_flag=$ac_save_c_werror_flag
5892          CFLAGS="-g"
5893          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h.  */
5895
5896 int
5897 main (void)
5898 {
5899
5900   ;
5901   return 0;
5902 }
5903 _ACEOF
5904 if ac_fn_c_try_compile "$LINENO"
5905 then :
5906   ac_cv_prog_cc_g=yes
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5909 fi
5910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5913    ac_c_werror_flag=$ac_save_c_werror_flag
5914 fi
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5916 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5917 if test $ac_test_CFLAGS; then
5918   CFLAGS=$ac_save_CFLAGS
5919 elif test $ac_cv_prog_cc_g = yes; then
5920   if test "$GCC" = yes; then
5921     CFLAGS="-g -O2"
5922   else
5923     CFLAGS="-g"
5924   fi
5925 else
5926   if test "$GCC" = yes; then
5927     CFLAGS="-O2"
5928   else
5929     CFLAGS=
5930   fi
5931 fi
5932 ac_prog_cc_stdc=no
5933 if test x$ac_prog_cc_stdc = xno
5934 then :
5935   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5936 printf %s "checking for $CC option to enable C11 features... " >&6; }
5937 if test ${ac_cv_prog_cc_c11+y}
5938 then :
5939   printf %s "(cached) " >&6
5940 else $as_nop
5941   ac_cv_prog_cc_c11=no
5942 ac_save_CC=$CC
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h.  */
5945 $ac_c_conftest_c11_program
5946 _ACEOF
5947 for ac_arg in '' -std=gnu11
5948 do
5949   CC="$ac_save_CC $ac_arg"
5950   if ac_fn_c_try_compile "$LINENO"
5951 then :
5952   ac_cv_prog_cc_c11=$ac_arg
5953 fi
5954 rm -f core conftest.err conftest.$ac_objext conftest.beam
5955   test "x$ac_cv_prog_cc_c11" != "xno" && break
5956 done
5957 rm -f conftest.$ac_ext
5958 CC=$ac_save_CC
5959 fi
5960
5961 if test "x$ac_cv_prog_cc_c11" = xno
5962 then :
5963   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5964 printf "%s\n" "unsupported" >&6; }
5965 else $as_nop
5966   if test "x$ac_cv_prog_cc_c11" = x
5967 then :
5968   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5969 printf "%s\n" "none needed" >&6; }
5970 else $as_nop
5971   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5972 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5973      CC="$CC $ac_cv_prog_cc_c11"
5974 fi
5975   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5976   ac_prog_cc_stdc=c11
5977 fi
5978 fi
5979 if test x$ac_prog_cc_stdc = xno
5980 then :
5981   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5982 printf %s "checking for $CC option to enable C99 features... " >&6; }
5983 if test ${ac_cv_prog_cc_c99+y}
5984 then :
5985   printf %s "(cached) " >&6
5986 else $as_nop
5987   ac_cv_prog_cc_c99=no
5988 ac_save_CC=$CC
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h.  */
5991 $ac_c_conftest_c99_program
5992 _ACEOF
5993 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5994 do
5995   CC="$ac_save_CC $ac_arg"
5996   if ac_fn_c_try_compile "$LINENO"
5997 then :
5998   ac_cv_prog_cc_c99=$ac_arg
5999 fi
6000 rm -f core conftest.err conftest.$ac_objext conftest.beam
6001   test "x$ac_cv_prog_cc_c99" != "xno" && break
6002 done
6003 rm -f conftest.$ac_ext
6004 CC=$ac_save_CC
6005 fi
6006
6007 if test "x$ac_cv_prog_cc_c99" = xno
6008 then :
6009   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6010 printf "%s\n" "unsupported" >&6; }
6011 else $as_nop
6012   if test "x$ac_cv_prog_cc_c99" = x
6013 then :
6014   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6015 printf "%s\n" "none needed" >&6; }
6016 else $as_nop
6017   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6018 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6019      CC="$CC $ac_cv_prog_cc_c99"
6020 fi
6021   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6022   ac_prog_cc_stdc=c99
6023 fi
6024 fi
6025 if test x$ac_prog_cc_stdc = xno
6026 then :
6027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6028 printf %s "checking for $CC option to enable C89 features... " >&6; }
6029 if test ${ac_cv_prog_cc_c89+y}
6030 then :
6031   printf %s "(cached) " >&6
6032 else $as_nop
6033   ac_cv_prog_cc_c89=no
6034 ac_save_CC=$CC
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h.  */
6037 $ac_c_conftest_c89_program
6038 _ACEOF
6039 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6040 do
6041   CC="$ac_save_CC $ac_arg"
6042   if ac_fn_c_try_compile "$LINENO"
6043 then :
6044   ac_cv_prog_cc_c89=$ac_arg
6045 fi
6046 rm -f core conftest.err conftest.$ac_objext conftest.beam
6047   test "x$ac_cv_prog_cc_c89" != "xno" && break
6048 done
6049 rm -f conftest.$ac_ext
6050 CC=$ac_save_CC
6051 fi
6052
6053 if test "x$ac_cv_prog_cc_c89" = xno
6054 then :
6055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6056 printf "%s\n" "unsupported" >&6; }
6057 else $as_nop
6058   if test "x$ac_cv_prog_cc_c89" = x
6059 then :
6060   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6061 printf "%s\n" "none needed" >&6; }
6062 else $as_nop
6063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6064 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6065      CC="$CC $ac_cv_prog_cc_c89"
6066 fi
6067   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6068   ac_prog_cc_stdc=c89
6069 fi
6070 fi
6071
6072 ac_ext=c
6073 ac_cpp='$CPP $CPPFLAGS'
6074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6077
6078
6079   ac_ext=c
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6085 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6086 if test ${am_cv_prog_cc_c_o+y}
6087 then :
6088   printf %s "(cached) " >&6
6089 else $as_nop
6090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h.  */
6092
6093 int
6094 main (void)
6095 {
6096
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101   # Make sure it works both with $CC and with simple cc.
6102   # Following AC_PROG_CC_C_O, we do the test twice because some
6103   # compilers refuse to overwrite an existing .o file with -o,
6104   # though they will create one.
6105   am_cv_prog_cc_c_o=yes
6106   for am_i in 1 2; do
6107     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6108    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6109    ac_status=$?
6110    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111    (exit $ac_status); } \
6112          && test -f conftest2.$ac_objext; then
6113       : OK
6114     else
6115       am_cv_prog_cc_c_o=no
6116       break
6117     fi
6118   done
6119   rm -f core conftest*
6120   unset am_i
6121 fi
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6123 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6124 if test "$am_cv_prog_cc_c_o" != yes; then
6125    # Losing compiler, so override with the script.
6126    # FIXME: It is wrong to rewrite CC.
6127    # But if we don't then we get into trouble of one sort or another.
6128    # A longer-term fix would be to have automake use am__CC in this case,
6129    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6130    CC="$am_aux_dir/compile $CC"
6131 fi
6132 ac_ext=c
6133 ac_cpp='$CPP $CPPFLAGS'
6134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137
6138
6139 depcc="$CC"   am_compiler_list=
6140
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6142 printf %s "checking dependency style of $depcc... " >&6; }
6143 if test ${am_cv_CC_dependencies_compiler_type+y}
6144 then :
6145   printf %s "(cached) " >&6
6146 else $as_nop
6147   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6148   # We make a subdir and do the tests there.  Otherwise we can end up
6149   # making bogus files that we don't know about and never remove.  For
6150   # instance it was reported that on HP-UX the gcc test will end up
6151   # making a dummy file named 'D' -- because '-MD' means "put the output
6152   # in D".
6153   rm -rf conftest.dir
6154   mkdir conftest.dir
6155   # Copy depcomp to subdir because otherwise we won't find it if we're
6156   # using a relative directory.
6157   cp "$am_depcomp" conftest.dir
6158   cd conftest.dir
6159   # We will build objects and dependencies in a subdirectory because
6160   # it helps to detect inapplicable dependency modes.  For instance
6161   # both Tru64's cc and ICC support -MD to output dependencies as a
6162   # side effect of compilation, but ICC will put the dependencies in
6163   # the current directory while Tru64 will put them in the object
6164   # directory.
6165   mkdir sub
6166
6167   am_cv_CC_dependencies_compiler_type=none
6168   if test "$am_compiler_list" = ""; then
6169      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6170   fi
6171   am__universal=false
6172   case " $depcc " in #(
6173      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6174      esac
6175
6176   for depmode in $am_compiler_list; do
6177     # Setup a source with many dependencies, because some compilers
6178     # like to wrap large dependency lists on column 80 (with \), and
6179     # we should not choose a depcomp mode which is confused by this.
6180     #
6181     # We need to recreate these files for each test, as the compiler may
6182     # overwrite some of them when testing with obscure command lines.
6183     # This happens at least with the AIX C compiler.
6184     : > sub/conftest.c
6185     for i in 1 2 3 4 5 6; do
6186       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6187       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6188       # Solaris 10 /bin/sh.
6189       echo '/* dummy */' > sub/conftst$i.h
6190     done
6191     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6192
6193     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6194     # mode.  It turns out that the SunPro C++ compiler does not properly
6195     # handle '-M -o', and we need to detect this.  Also, some Intel
6196     # versions had trouble with output in subdirs.
6197     am__obj=sub/conftest.${OBJEXT-o}
6198     am__minus_obj="-o $am__obj"
6199     case $depmode in
6200     gcc)
6201       # This depmode causes a compiler race in universal mode.
6202       test "$am__universal" = false || continue
6203       ;;
6204     nosideeffect)
6205       # After this tag, mechanisms are not by side-effect, so they'll
6206       # only be used when explicitly requested.
6207       if test "x$enable_dependency_tracking" = xyes; then
6208         continue
6209       else
6210         break
6211       fi
6212       ;;
6213     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6214       # This compiler won't grok '-c -o', but also, the minuso test has
6215       # not run yet.  These depmodes are late enough in the game, and
6216       # so weak that their functioning should not be impacted.
6217       am__obj=conftest.${OBJEXT-o}
6218       am__minus_obj=
6219       ;;
6220     none) break ;;
6221     esac
6222     if depmode=$depmode \
6223        source=sub/conftest.c object=$am__obj \
6224        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6225        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6226          >/dev/null 2>conftest.err &&
6227        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6228        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6229        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6230        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6231       # icc doesn't choke on unknown options, it will just issue warnings
6232       # or remarks (even with -Werror).  So we grep stderr for any message
6233       # that says an option was ignored or not supported.
6234       # When given -MP, icc 7.0 and 7.1 complain thusly:
6235       #   icc: Command line warning: ignoring option '-M'; no argument required
6236       # The diagnosis changed in icc 8.0:
6237       #   icc: Command line remark: option '-MP' not supported
6238       if (grep 'ignoring option' conftest.err ||
6239           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6240         am_cv_CC_dependencies_compiler_type=$depmode
6241         break
6242       fi
6243     fi
6244   done
6245
6246   cd ..
6247   rm -rf conftest.dir
6248 else
6249   am_cv_CC_dependencies_compiler_type=none
6250 fi
6251
6252 fi
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6254 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6256
6257  if
6258   test "x$enable_dependency_tracking" != xno \
6259   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6260   am__fastdepCC_TRUE=
6261   am__fastdepCC_FALSE='#'
6262 else
6263   am__fastdepCC_TRUE='#'
6264   am__fastdepCC_FALSE=
6265 fi
6266
6267
6268 for ac_prog in nasm nasmw
6269 do
6270   # Extract the first word of "$ac_prog", so it can be a program name with args.
6271 set dummy $ac_prog; ac_word=$2
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 printf %s "checking for $ac_word... " >&6; }
6274 if test ${ac_cv_path_NASM+y}
6275 then :
6276   printf %s "(cached) " >&6
6277 else $as_nop
6278   case $NASM in
6279   [\\/]* | ?:[\\/]*)
6280   ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
6281   ;;
6282   *)
6283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   case $as_dir in #(((
6288     '') as_dir=./ ;;
6289     */) ;;
6290     *) as_dir=$as_dir/ ;;
6291   esac
6292     for ac_exec_ext in '' $ac_executable_extensions; do
6293   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6294     ac_cv_path_NASM="$as_dir$ac_word$ac_exec_ext"
6295     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299   done
6300 IFS=$as_save_IFS
6301
6302   ;;
6303 esac
6304 fi
6305 NASM=$ac_cv_path_NASM
6306 if test -n "$NASM"; then
6307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
6308 printf "%s\n" "$NASM" >&6; }
6309 else
6310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 printf "%s\n" "no" >&6; }
6312 fi
6313
6314
6315   test -n "$NASM" && break
6316 done
6317 test -n "$NASM" || NASM="no"
6318
6319 ac_header= ac_cache=
6320 for ac_item in $ac_header_c_list
6321 do
6322   if test $ac_cache; then
6323     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6324     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6325       printf "%s\n" "#define $ac_item 1" >> confdefs.h
6326     fi
6327     ac_header= ac_cache=
6328   elif test $ac_header; then
6329     ac_cache=$ac_item
6330   else
6331     ac_header=$ac_item
6332   fi
6333 done
6334
6335
6336
6337
6338
6339
6340
6341
6342 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6343 then :
6344
6345 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6346
6347 fi
6348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6349 printf %s "checking whether byte ordering is bigendian... " >&6; }
6350 if test ${ac_cv_c_bigendian+y}
6351 then :
6352   printf %s "(cached) " >&6
6353 else $as_nop
6354   ac_cv_c_bigendian=unknown
6355     # See if we're dealing with a universal compiler.
6356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h.  */
6358 #ifndef __APPLE_CC__
6359                not a universal capable compiler
6360              #endif
6361              typedef int dummy;
6362
6363 _ACEOF
6364 if ac_fn_c_try_compile "$LINENO"
6365 then :
6366
6367         # Check for potential -arch flags.  It is not universal unless
6368         # there are at least two -arch flags with different values.
6369         ac_arch=
6370         ac_prev=
6371         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6372          if test -n "$ac_prev"; then
6373            case $ac_word in
6374              i?86 | x86_64 | ppc | ppc64)
6375                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6376                  ac_arch=$ac_word
6377                else
6378                  ac_cv_c_bigendian=universal
6379                  break
6380                fi
6381                ;;
6382            esac
6383            ac_prev=
6384          elif test "x$ac_word" = "x-arch"; then
6385            ac_prev=arch
6386          fi
6387        done
6388 fi
6389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6390     if test $ac_cv_c_bigendian = unknown; then
6391       # See if sys/param.h defines the BYTE_ORDER macro.
6392       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h.  */
6394 #include <sys/types.h>
6395              #include <sys/param.h>
6396
6397 int
6398 main (void)
6399 {
6400 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6401                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6402                      && LITTLE_ENDIAN)
6403               bogus endian macros
6404              #endif
6405
6406   ;
6407   return 0;
6408 }
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"
6411 then :
6412   # It does; now see whether it defined to BIG_ENDIAN or not.
6413          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h.  */
6415 #include <sys/types.h>
6416                 #include <sys/param.h>
6417
6418 int
6419 main (void)
6420 {
6421 #if BYTE_ORDER != BIG_ENDIAN
6422                  not big endian
6423                 #endif
6424
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"
6430 then :
6431   ac_cv_c_bigendian=yes
6432 else $as_nop
6433   ac_cv_c_bigendian=no
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6438     fi
6439     if test $ac_cv_c_bigendian = unknown; then
6440       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6441       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h.  */
6443 #include <limits.h>
6444
6445 int
6446 main (void)
6447 {
6448 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6449               bogus endian macros
6450              #endif
6451
6452   ;
6453   return 0;
6454 }
6455 _ACEOF
6456 if ac_fn_c_try_compile "$LINENO"
6457 then :
6458   # It does; now see whether it defined to _BIG_ENDIAN or not.
6459          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h.  */
6461 #include <limits.h>
6462
6463 int
6464 main (void)
6465 {
6466 #ifndef _BIG_ENDIAN
6467                  not big endian
6468                 #endif
6469
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"
6475 then :
6476   ac_cv_c_bigendian=yes
6477 else $as_nop
6478   ac_cv_c_bigendian=no
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6483     fi
6484     if test $ac_cv_c_bigendian = unknown; then
6485       # Compile a test program.
6486       if test "$cross_compiling" = yes
6487 then :
6488   # Try to guess by grepping values from an object file.
6489          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h.  */
6491 unsigned short int ascii_mm[] =
6492                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6493                 unsigned short int ascii_ii[] =
6494                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6495                 int use_ascii (int i) {
6496                   return ascii_mm[i] + ascii_ii[i];
6497                 }
6498                 unsigned short int ebcdic_ii[] =
6499                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6500                 unsigned short int ebcdic_mm[] =
6501                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6502                 int use_ebcdic (int i) {
6503                   return ebcdic_mm[i] + ebcdic_ii[i];
6504                 }
6505                 extern int foo;
6506
6507 int
6508 main (void)
6509 {
6510 return use_ascii (foo) == use_ebcdic (foo);
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 if ac_fn_c_try_compile "$LINENO"
6516 then :
6517   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6518               ac_cv_c_bigendian=yes
6519             fi
6520             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6521               if test "$ac_cv_c_bigendian" = unknown; then
6522                 ac_cv_c_bigendian=no
6523               else
6524                 # finding both strings is unlikely to happen, but who knows?
6525                 ac_cv_c_bigendian=unknown
6526               fi
6527             fi
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6530 else $as_nop
6531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h.  */
6533 $ac_includes_default
6534 int
6535 main (void)
6536 {
6537
6538              /* Are we little or big endian?  From Harbison&Steele.  */
6539              union
6540              {
6541                long int l;
6542                char c[sizeof (long int)];
6543              } u;
6544              u.l = 1;
6545              return u.c[sizeof (long int) - 1] == 1;
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_run "$LINENO"
6552 then :
6553   ac_cv_c_bigendian=no
6554 else $as_nop
6555   ac_cv_c_bigendian=yes
6556 fi
6557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6558   conftest.$ac_objext conftest.beam conftest.$ac_ext
6559 fi
6560
6561     fi
6562 fi
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6564 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
6565  case $ac_cv_c_bigendian in #(
6566    yes)
6567      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
6568 ;; #(
6569    no)
6570       ;; #(
6571    universal)
6572
6573 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6574
6575      ;; #(
6576    *)
6577      as_fn_error $? "unknown endianness
6578  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6579  esac
6580
6581 # The cast to long int works around a bug in the HP C Compiler
6582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6584 # This bug is HP SR number 8606223364.
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6586 printf %s "checking size of void *... " >&6; }
6587 if test ${ac_cv_sizeof_void_p+y}
6588 then :
6589   printf %s "(cached) " >&6
6590 else $as_nop
6591   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
6592 then :
6593
6594 else $as_nop
6595   if test "$ac_cv_type_void_p" = yes; then
6596      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6597 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6598 as_fn_error 77 "cannot compute sizeof (void *)
6599 See \`config.log' for more details" "$LINENO" 5; }
6600    else
6601      ac_cv_sizeof_void_p=0
6602    fi
6603 fi
6604
6605 fi
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6607 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
6608
6609
6610
6611 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
6612
6613
6614
6615 case $host_cpu in
6616     sparc)
6617
6618 printf "%s\n" "#define WORDS_NEED_ALIGNMENT /**/" >>confdefs.h
6619
6620     ;;
6621 esac
6622
6623 case $host_os in
6624     cygwin)
6625         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cygwin found, setting -mno-cygwin" >&5
6626 printf "%s\n" "$as_me: WARNING: Cygwin found, setting -mno-cygwin" >&2;}
6627         CFLAGS="-mno-cygwin $CFLAGS"
6628         MINGW32=yes
6629         ;;
6630     mingw*)
6631         MINGW32=yes
6632         ;;
6633     darwin*)
6634         MACOSX=yes
6635         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-cpp-precomp" >&5
6636 printf %s "checking whether C compiler accepts -no-cpp-precomp... " >&6; }
6637 if test ${ax_cv_check_cflags___no_cpp_precomp+y}
6638 then :
6639   printf %s "(cached) " >&6
6640 else $as_nop
6641
6642   ax_check_save_flags=$CFLAGS
6643   CFLAGS="$CFLAGS  -no-cpp-precomp"
6644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h.  */
6646
6647 int
6648 main (void)
6649 {
6650
6651   ;
6652   return 0;
6653 }
6654 _ACEOF
6655 if ac_fn_c_try_compile "$LINENO"
6656 then :
6657   ax_cv_check_cflags___no_cpp_precomp=yes
6658 else $as_nop
6659   ax_cv_check_cflags___no_cpp_precomp=no
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6662   CFLAGS=$ax_check_save_flags
6663 fi
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___no_cpp_precomp" >&5
6665 printf "%s\n" "$ax_cv_check_cflags___no_cpp_precomp" >&6; }
6666 if test "x$ax_cv_check_cflags___no_cpp_precomp" = xyes
6667 then :
6668   CFLAGS="$CFLAGS -no-cpp-precomp"
6669 else $as_nop
6670   :
6671 fi
6672
6673         ;;
6674     msdos*)
6675         MSDOS=yes
6676         ;;
6677 esac
6678
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
6680 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
6681 if test ${ac_cv_c_undeclared_builtin_options+y}
6682 then :
6683   printf %s "(cached) " >&6
6684 else $as_nop
6685   ac_save_CFLAGS=$CFLAGS
6686    ac_cv_c_undeclared_builtin_options='cannot detect'
6687    for ac_arg in '' -fno-builtin; do
6688      CFLAGS="$ac_save_CFLAGS $ac_arg"
6689      # This test program should *not* compile successfully.
6690      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h.  */
6692
6693 int
6694 main (void)
6695 {
6696 (void) strchr;
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"
6702 then :
6703
6704 else $as_nop
6705   # This test program should compile successfully.
6706         # No library function is consistently available on
6707         # freestanding implementations, so test against a dummy
6708         # declaration.  Include always-available headers on the
6709         # off chance that they somehow elicit warnings.
6710         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h.  */
6712 #include <float.h>
6713 #include <limits.h>
6714 #include <stdarg.h>
6715 #include <stddef.h>
6716 extern void ac_decl (int, char *);
6717
6718 int
6719 main (void)
6720 {
6721 (void) ac_decl (0, (char *) 0);
6722   (void) ac_decl;
6723
6724   ;
6725   return 0;
6726 }
6727 _ACEOF
6728 if ac_fn_c_try_compile "$LINENO"
6729 then :
6730   if test x"$ac_arg" = x
6731 then :
6732   ac_cv_c_undeclared_builtin_options='none needed'
6733 else $as_nop
6734   ac_cv_c_undeclared_builtin_options=$ac_arg
6735 fi
6736           break
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6739 fi
6740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6741     done
6742     CFLAGS=$ac_save_CFLAGS
6743
6744 fi
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
6746 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
6747   case $ac_cv_c_undeclared_builtin_options in #(
6748   'cannot detect') :
6749     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6750 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6751 as_fn_error $? "cannot make $CC report undeclared builtins
6752 See \`config.log' for more details" "$LINENO" 5; } ;; #(
6753   'none needed') :
6754     ac_c_undeclared_builtin_options='' ;; #(
6755   *) :
6756     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
6757 esac
6758
6759 ac_fn_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h>
6760 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6761 if test "x$ac_cv_have_decl_nanosleep" = xyes
6762 then :
6763   ac_have_decl=1
6764 else $as_nop
6765   ac_have_decl=0
6766 fi
6767 printf "%s\n" "#define HAVE_DECL_NANOSLEEP $ac_have_decl" >>confdefs.h
6768
6769 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/time.h>
6770 "
6771 if test "x$ac_cv_type_struct_timespec" = xyes
6772 then :
6773
6774 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
6775
6776
6777 fi
6778 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "#include <sys/time.h>
6779 "
6780 if test "x$ac_cv_type_struct_timeval" = xyes
6781 then :
6782
6783 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
6784
6785
6786 fi
6787
6788
6789  if test x$MINGW32 = xyes; then
6790   MINGW32_TRUE=
6791   MINGW32_FALSE='#'
6792 else
6793   MINGW32_TRUE='#'
6794   MINGW32_FALSE=
6795 fi
6796
6797
6798  if test x$MACOSX = xyes; then
6799   MACOSX_TRUE=
6800   MACOSX_FALSE='#'
6801 else
6802   MACOSX_TRUE='#'
6803   MACOSX_FALSE=
6804 fi
6805
6806
6807  if test x$MSDOS = xyes; then
6808   MSDOS_TRUE=
6809   MSDOS_FALSE='#'
6810 else
6811   MSDOS_TRUE='#'
6812   MSDOS_FALSE=
6813 fi
6814
6815
6816 test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
6817 test "x$exec_prefix" = "xNONE" && exec_prefix="${prefix}"
6818
6819 default_sharepath="$datadir/games/$PACKAGE"
6820
6821 CFLAGS="-Wall -Werror -Wno-deprecated-declarations -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -Wno-unused-value -Wno-address $CFLAGS"
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-ignored-attributes" >&5
6823 printf %s "checking whether C compiler accepts -Wno-ignored-attributes... " >&6; }
6824 if test ${ax_cv_check_cflags___Wno_ignored_attributes+y}
6825 then :
6826   printf %s "(cached) " >&6
6827 else $as_nop
6828
6829   ax_check_save_flags=$CFLAGS
6830   CFLAGS="$CFLAGS  -Wno-ignored-attributes"
6831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h.  */
6833
6834 int
6835 main (void)
6836 {
6837
6838   ;
6839   return 0;
6840 }
6841 _ACEOF
6842 if ac_fn_c_try_compile "$LINENO"
6843 then :
6844   ax_cv_check_cflags___Wno_ignored_attributes=yes
6845 else $as_nop
6846   ax_cv_check_cflags___Wno_ignored_attributes=no
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6849   CFLAGS=$ax_check_save_flags
6850 fi
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_ignored_attributes" >&5
6852 printf "%s\n" "$ax_cv_check_cflags___Wno_ignored_attributes" >&6; }
6853 if test "x$ax_cv_check_cflags___Wno_ignored_attributes" = xyes
6854 then :
6855   CFLAGS="$CFLAGS -Wno-ignored-attributes"
6856 else $as_nop
6857   :
6858 fi
6859
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-unused-but-set-variable" >&5
6861 printf %s "checking whether C compiler accepts -Wno-unused-but-set-variable... " >&6; }
6862 if test ${ax_cv_check_cflags___Wno_unused_but_set_variable+y}
6863 then :
6864   printf %s "(cached) " >&6
6865 else $as_nop
6866
6867   ax_check_save_flags=$CFLAGS
6868   CFLAGS="$CFLAGS  -Wno-unused-but-set-variable"
6869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h.  */
6871
6872 int
6873 main (void)
6874 {
6875
6876   ;
6877   return 0;
6878 }
6879 _ACEOF
6880 if ac_fn_c_try_compile "$LINENO"
6881 then :
6882   ax_cv_check_cflags___Wno_unused_but_set_variable=yes
6883 else $as_nop
6884   ax_cv_check_cflags___Wno_unused_but_set_variable=no
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6887   CFLAGS=$ax_check_save_flags
6888 fi
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_unused_but_set_variable" >&5
6890 printf "%s\n" "$ax_cv_check_cflags___Wno_unused_but_set_variable" >&6; }
6891 if test "x$ax_cv_check_cflags___Wno_unused_but_set_variable" = xyes
6892 then :
6893   CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
6894 else $as_nop
6895   :
6896 fi
6897
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-address-of-packed-member" >&5
6899 printf %s "checking whether C compiler accepts -Wno-address-of-packed-member... " >&6; }
6900 if test ${ax_cv_check_cflags___Wno_address_of_packed_member+y}
6901 then :
6902   printf %s "(cached) " >&6
6903 else $as_nop
6904
6905   ax_check_save_flags=$CFLAGS
6906   CFLAGS="$CFLAGS  -Wno-address-of-packed-member"
6907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h.  */
6909
6910 int
6911 main (void)
6912 {
6913
6914   ;
6915   return 0;
6916 }
6917 _ACEOF
6918 if ac_fn_c_try_compile "$LINENO"
6919 then :
6920   ax_cv_check_cflags___Wno_address_of_packed_member=yes
6921 else $as_nop
6922   ax_cv_check_cflags___Wno_address_of_packed_member=no
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6925   CFLAGS=$ax_check_save_flags
6926 fi
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_address_of_packed_member" >&5
6928 printf "%s\n" "$ax_cv_check_cflags___Wno_address_of_packed_member" >&6; }
6929 if test "x$ax_cv_check_cflags___Wno_address_of_packed_member" = xyes
6930 then :
6931   CFLAGS="$CFLAGS -Wno-address-of-packed-member"
6932 else $as_nop
6933   :
6934 fi
6935
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-stringop-truncation" >&5
6937 printf %s "checking whether C compiler accepts -Wno-stringop-truncation... " >&6; }
6938 if test ${ax_cv_check_cflags___Wno_stringop_truncation+y}
6939 then :
6940   printf %s "(cached) " >&6
6941 else $as_nop
6942
6943   ax_check_save_flags=$CFLAGS
6944   CFLAGS="$CFLAGS  -Wno-stringop-truncation"
6945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h.  */
6947
6948 int
6949 main (void)
6950 {
6951
6952   ;
6953   return 0;
6954 }
6955 _ACEOF
6956 if ac_fn_c_try_compile "$LINENO"
6957 then :
6958   ax_cv_check_cflags___Wno_stringop_truncation=yes
6959 else $as_nop
6960   ax_cv_check_cflags___Wno_stringop_truncation=no
6961 fi
6962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6963   CFLAGS=$ax_check_save_flags
6964 fi
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_stringop_truncation" >&5
6966 printf "%s\n" "$ax_cv_check_cflags___Wno_stringop_truncation" >&6; }
6967 if test "x$ax_cv_check_cflags___Wno_stringop_truncation" = xyes
6968 then :
6969   CFLAGS="$CFLAGS -Wno-stringop-truncation"
6970 else $as_nop
6971   :
6972 fi
6973
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-truncation" >&5
6975 printf %s "checking whether C compiler accepts -Wno-format-truncation... " >&6; }
6976 if test ${ax_cv_check_cflags___Wno_format_truncation+y}
6977 then :
6978   printf %s "(cached) " >&6
6979 else $as_nop
6980
6981   ax_check_save_flags=$CFLAGS
6982   CFLAGS="$CFLAGS  -Wno-format-truncation"
6983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h.  */
6985
6986 int
6987 main (void)
6988 {
6989
6990   ;
6991   return 0;
6992 }
6993 _ACEOF
6994 if ac_fn_c_try_compile "$LINENO"
6995 then :
6996   ax_cv_check_cflags___Wno_format_truncation=yes
6997 else $as_nop
6998   ax_cv_check_cflags___Wno_format_truncation=no
6999 fi
7000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7001   CFLAGS=$ax_check_save_flags
7002 fi
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_format_truncation" >&5
7004 printf "%s\n" "$ax_cv_check_cflags___Wno_format_truncation" >&6; }
7005 if test "x$ax_cv_check_cflags___Wno_format_truncation" = xyes
7006 then :
7007   CFLAGS="$CFLAGS -Wno-format-truncation"
7008 else $as_nop
7009   :
7010 fi
7011
7012
7013 # Check whether --enable-editor was given.
7014 if test ${enable_editor+y}
7015 then :
7016   enableval=$enable_editor;
7017 fi
7018
7019
7020 # Check whether --enable-macdata was given.
7021 if test ${enable_macdata+y}
7022 then :
7023   enableval=$enable_macdata;
7024 fi
7025
7026 if test x$enable_macdata = xyes; then
7027
7028 printf "%s\n" "#define MACDATA /**/" >>confdefs.h
7029
7030     D2X_FEATURES="macdata ${D2X_FEATURES}"
7031 fi
7032  if test x$enable_macdata = xyes; then
7033   MACDATA_TRUE=
7034   MACDATA_FALSE='#'
7035 else
7036   MACDATA_TRUE='#'
7037   MACDATA_FALSE=
7038 fi
7039
7040
7041 # Check whether --enable-debug was given.
7042 if test ${enable_debug+y}
7043 then :
7044   enableval=$enable_debug;
7045 fi
7046
7047 if test x$enable_debug = xno; then
7048
7049 printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
7050
7051     CFLAGS="-O2 $CFLAGS"
7052 else
7053     CFLAGS="-g $CFLAGS"
7054     D2X_FEATURES="debug ${D2X_FEATURES}"
7055 fi
7056
7057 # Check whether --enable-release was given.
7058 if test ${enable_release+y}
7059 then :
7060   enableval=$enable_release;
7061 fi
7062
7063 if test x$enable_release = xyes; then
7064
7065 printf "%s\n" "#define RELEASE /**/" >>confdefs.h
7066
7067     D2X_FEATURES="release ${D2X_FEATURES}"
7068 fi
7069
7070 # Check whether --enable-linuxjoy was given.
7071 if test ${enable_linuxjoy+y}
7072 then :
7073   enableval=$enable_linuxjoy;
7074 fi
7075
7076 if test x$enable_linuxjoy = xyes; then
7077
7078 printf "%s\n" "#define USE_LINUX_JOY /**/" >>confdefs.h
7079
7080     D2X_FEATURES="linuxjoy ${D2X_FEATURES}"
7081 fi
7082  if test x$enable_linuxjoy = xyes; then
7083   USE_LINUX_JOY_TRUE=
7084   USE_LINUX_JOY_FALSE='#'
7085 else
7086   USE_LINUX_JOY_TRUE='#'
7087   USE_LINUX_JOY_FALSE=
7088 fi
7089
7090
7091 # Check whether --enable-fastfileio was given.
7092 if test ${enable_fastfileio+y}
7093 then :
7094   enableval=$enable_fastfileio;
7095 fi
7096
7097 if test x$enable_fastfileio != xno; then
7098     if test x$ac_cv_c_bigendian = xyes; then
7099         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: big-endian cpu detected.  disabling fastfileio" >&5
7100 printf "%s\n" "$as_me: WARNING: big-endian cpu detected.  disabling fastfileio" >&2;}
7101         enable_fastfileio="no";
7102     fi
7103     if test $ac_cv_sizeof_void_p != 4; then
7104         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pointers not 32 bits.  disabling fastfileio" >&5
7105 printf "%s\n" "$as_me: WARNING: pointers not 32 bits.  disabling fastfileio" >&2;}
7106         enable_fastfileio="no";
7107     fi
7108 fi
7109 if test x$enable_fastfileio != xno; then
7110
7111 printf "%s\n" "#define FAST_FILE_IO /**/" >>confdefs.h
7112
7113     D2X_FEATURES="fastfileio ${D2X_FEATURES}"
7114 fi
7115
7116
7117 # Check whether --with-sharepath was given.
7118 if test ${with_sharepath+y}
7119 then :
7120   withval=$with_sharepath; sharepath=$withval
7121 else $as_nop
7122   sharepath="auto"
7123 fi
7124
7125 if test "x$sharepath" = "xauto" -o "x$sharepath" = "xyes" -o "x$sharepath" = "x"; then
7126     sharepath="$default_sharepath"
7127 fi
7128
7129 eval sharepath=$sharepath
7130 eval sharepath=$sharepath
7131
7132 printf "%s\n" "#define SHAREPATH \"$sharepath\"" >>confdefs.h
7133
7134
7135 TARGETS=
7136
7137 # Test for MSDOS
7138 if test x$MSDOS = xyes; then
7139     TARGETS="d2x$ac_cv_exeext $TARGETS"
7140         if test x$enable_editor = xyes; then
7141                 TARGETS="miner$ac_cv_exeext $TARGETS"
7142         fi
7143 else
7144
7145     CFLAGS="-pipe $CFLAGS"
7146
7147
7148 # Check whether --with-sdl-prefix was given.
7149 if test ${with_sdl_prefix+y}
7150 then :
7151   withval=$with_sdl_prefix; sdl_prefix="$withval"
7152 else $as_nop
7153   sdl_prefix=""
7154 fi
7155
7156
7157 # Check whether --with-sdl-exec-prefix was given.
7158 if test ${with_sdl_exec_prefix+y}
7159 then :
7160   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7161 else $as_nop
7162   sdl_exec_prefix=""
7163 fi
7164
7165 # Check whether --enable-sdltest was given.
7166 if test ${enable_sdltest+y}
7167 then :
7168   enableval=$enable_sdltest;
7169 else $as_nop
7170   enable_sdltest=yes
7171 fi
7172
7173
7174   if test x$sdl_exec_prefix != x ; then
7175     sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
7176     if test x${SDL_CONFIG+set} != xset ; then
7177       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7178     fi
7179   fi
7180   if test x$sdl_prefix != x ; then
7181     sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
7182     if test x${SDL_CONFIG+set} != xset ; then
7183       SDL_CONFIG=$sdl_prefix/bin/sdl-config
7184     fi
7185   fi
7186
7187   as_save_PATH="$PATH"
7188   if test "x$prefix" != xNONE; then
7189     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7190   fi
7191   # Extract the first word of "sdl-config", so it can be a program name with args.
7192 set dummy sdl-config; ac_word=$2
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 printf %s "checking for $ac_word... " >&6; }
7195 if test ${ac_cv_path_SDL_CONFIG+y}
7196 then :
7197   printf %s "(cached) " >&6
7198 else $as_nop
7199   case $SDL_CONFIG in
7200   [\\/]* | ?:[\\/]*)
7201   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7202   ;;
7203   *)
7204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207   IFS=$as_save_IFS
7208   case $as_dir in #(((
7209     '') as_dir=./ ;;
7210     */) ;;
7211     *) as_dir=$as_dir/ ;;
7212   esac
7213     for ac_exec_ext in '' $ac_executable_extensions; do
7214   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7215     ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext"
7216     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7217     break 2
7218   fi
7219 done
7220   done
7221 IFS=$as_save_IFS
7222
7223   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7224   ;;
7225 esac
7226 fi
7227 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7228 if test -n "$SDL_CONFIG"; then
7229   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
7230 printf "%s\n" "$SDL_CONFIG" >&6; }
7231 else
7232   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 printf "%s\n" "no" >&6; }
7234 fi
7235
7236
7237   PATH="$as_save_PATH"
7238   min_sdl_version=1.1.0
7239   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
7240 printf %s "checking for SDL - version >= $min_sdl_version... " >&6; }
7241   no_sdl=""
7242   if test "$SDL_CONFIG" = "no" ; then
7243     no_sdl=yes
7244   else
7245     SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
7246     SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
7247
7248     sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
7249            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7250     sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
7251            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7252     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7253            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7254     if test "x$enable_sdltest" = "xyes" ; then
7255       ac_save_CFLAGS="$CFLAGS"
7256       ac_save_CXXFLAGS="$CXXFLAGS"
7257       ac_save_LIBS="$LIBS"
7258       CFLAGS="$CFLAGS $SDL_CFLAGS"
7259       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7260       LIBS="$LIBS $SDL_LIBS"
7261       rm -f conf.sdltest
7262       if test "$cross_compiling" = yes
7263 then :
7264   echo $ac_n "cross compiling; assumed OK... $ac_c"
7265 else $as_nop
7266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h.  */
7268
7269 #include <stdio.h>
7270 #include <stdlib.h>
7271 #include <string.h>
7272 #include "SDL.h"
7273
7274 char*
7275 my_strdup (char *str)
7276 {
7277   char *new_str;
7278
7279   if (str)
7280     {
7281       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7282       strcpy (new_str, str);
7283     }
7284   else
7285     new_str = NULL;
7286
7287   return new_str;
7288 }
7289
7290 int main (int argc, char *argv[])
7291 {
7292   int major, minor, micro;
7293   char *tmp_version;
7294
7295   /* This hangs on some systems (?)
7296   system ("touch conf.sdltest");
7297   */
7298   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
7299
7300   /* HP/UX 9 (%@#!) writes to sscanf strings */
7301   tmp_version = my_strdup("$min_sdl_version");
7302   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7303      printf("%s, bad version string\n", "$min_sdl_version");
7304      exit(1);
7305    }
7306
7307    if (($sdl_major_version > major) ||
7308       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
7309       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
7310     {
7311       return 0;
7312     }
7313   else
7314     {
7315       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
7316       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
7317       printf("*** best to upgrade to the required version.\n");
7318       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
7319       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
7320       printf("*** config.cache before re-running configure\n");
7321       return 1;
7322     }
7323 }
7324
7325
7326 _ACEOF
7327 if ac_fn_c_try_run "$LINENO"
7328 then :
7329
7330 else $as_nop
7331   no_sdl=yes
7332 fi
7333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7334   conftest.$ac_objext conftest.beam conftest.$ac_ext
7335 fi
7336
7337        CFLAGS="$ac_save_CFLAGS"
7338        CXXFLAGS="$ac_save_CXXFLAGS"
7339        LIBS="$ac_save_LIBS"
7340      fi
7341   fi
7342   if test "x$no_sdl" = x ; then
7343      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7344 printf "%s\n" "yes" >&6; }
7345      :
7346   else
7347      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 printf "%s\n" "no" >&6; }
7349      if test "$SDL_CONFIG" = "no" ; then
7350        echo "*** The sdl-config script installed by SDL could not be found"
7351        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
7352        echo "*** your path, or set the SDL_CONFIG environment variable to the"
7353        echo "*** full path to sdl-config."
7354      else
7355        if test -f conf.sdltest ; then
7356         :
7357        else
7358           echo "*** Could not run SDL test program, checking why..."
7359           CFLAGS="$CFLAGS $SDL_CFLAGS"
7360           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7361           LIBS="$LIBS $SDL_LIBS"
7362           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h.  */
7364
7365 #include <stdio.h>
7366 #include "SDL.h"
7367
7368 int main(int argc, char *argv[])
7369 { return 0; }
7370 #undef  main
7371 #define main K_and_R_C_main
7372
7373 int
7374 main (void)
7375 {
7376  return 0;
7377   ;
7378   return 0;
7379 }
7380 _ACEOF
7381 if ac_fn_c_try_link "$LINENO"
7382 then :
7383    echo "*** The test program compiled, but did not run. This usually means"
7384           echo "*** that the run-time linker is not finding SDL or finding the wrong"
7385           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
7386           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7387           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
7388           echo "*** is required on your system"
7389           echo "***"
7390           echo "*** If you have an old version installed, it is best to remove it, although"
7391           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7392 else $as_nop
7393    echo "*** The test program failed to compile or link. See the file config.log for the"
7394           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
7395           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
7396           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
7397 fi
7398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7399     conftest$ac_exeext conftest.$ac_ext
7400           CFLAGS="$ac_save_CFLAGS"
7401           CXXFLAGS="$ac_save_CXXFLAGS"
7402           LIBS="$ac_save_LIBS"
7403        fi
7404      fi
7405      SDL_CFLAGS=""
7406      SDL_LIBS=""
7407      as_fn_error or specify with --with-sdl-prefix "SDL not found. Make sure sdl-config is in your PATH" "$LINENO" 5
7408
7409   fi
7410
7411
7412   rm -f conf.sdltest
7413
7414
7415     TARGETS="d2x-sdl$ac_cv_exeext $TARGETS"
7416         if test x$enable_editor = xyes; then
7417                 TARGETS="miner-sdl$ac_cv_exeext $TARGETS"
7418         fi
7419
7420     ac_fn_c_check_header_compile "$LINENO" "netipx/ipx.h" "ac_cv_header_netipx_ipx_h" "$ac_includes_default"
7421 if test "x$ac_cv_header_netipx_ipx_h" = xyes
7422 then :
7423   printf "%s\n" "#define HAVE_NETIPX_IPX_H 1" >>confdefs.h
7424
7425 fi
7426
7427
7428   # Check for SDL_image
7429     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IMG_ReadXPMFromArray in -lSDL_image" >&5
7430 printf %s "checking for IMG_ReadXPMFromArray in -lSDL_image... " >&6; }
7431 if test ${ac_cv_lib_SDL_image_IMG_ReadXPMFromArray+y}
7432 then :
7433   printf %s "(cached) " >&6
7434 else $as_nop
7435   ac_check_lib_save_LIBS=$LIBS
7436 LIBS="-lSDL_image  $LIBS"
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h.  */
7439
7440 /* Override any GCC internal prototype to avoid an error.
7441    Use char because int might match the return type of a GCC
7442    builtin and then its argument prototype would still apply.  */
7443 char IMG_ReadXPMFromArray ();
7444 int
7445 main (void)
7446 {
7447 return IMG_ReadXPMFromArray ();
7448   ;
7449   return 0;
7450 }
7451 _ACEOF
7452 if ac_fn_c_try_link "$LINENO"
7453 then :
7454   ac_cv_lib_SDL_image_IMG_ReadXPMFromArray=yes
7455 else $as_nop
7456   ac_cv_lib_SDL_image_IMG_ReadXPMFromArray=no
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7459     conftest$ac_exeext conftest.$ac_ext
7460 LIBS=$ac_check_lib_save_LIBS
7461 fi
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_ReadXPMFromArray" >&5
7463 printf "%s\n" "$ac_cv_lib_SDL_image_IMG_ReadXPMFromArray" >&6; }
7464 if test "x$ac_cv_lib_SDL_image_IMG_ReadXPMFromArray" = xyes
7465 then :
7466   SDLIMAGE_LIBS="-lSDL_image"
7467
7468 printf "%s\n" "#define SDL_IMAGE /**/" >>confdefs.h
7469
7470 fi
7471
7472
7473
7474   # Check for SDL_mixer
7475
7476
7477
7478
7479
7480
7481
7482 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7483         if test -n "$ac_tool_prefix"; then
7484   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7485 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 printf %s "checking for $ac_word... " >&6; }
7488 if test ${ac_cv_path_PKG_CONFIG+y}
7489 then :
7490   printf %s "(cached) " >&6
7491 else $as_nop
7492   case $PKG_CONFIG in
7493   [\\/]* | ?:[\\/]*)
7494   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7495   ;;
7496   *)
7497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   case $as_dir in #(((
7502     '') as_dir=./ ;;
7503     */) ;;
7504     *) as_dir=$as_dir/ ;;
7505   esac
7506     for ac_exec_ext in '' $ac_executable_extensions; do
7507   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7508     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7509     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513   done
7514 IFS=$as_save_IFS
7515
7516   ;;
7517 esac
7518 fi
7519 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7520 if test -n "$PKG_CONFIG"; then
7521   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7522 printf "%s\n" "$PKG_CONFIG" >&6; }
7523 else
7524   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 printf "%s\n" "no" >&6; }
7526 fi
7527
7528
7529 fi
7530 if test -z "$ac_cv_path_PKG_CONFIG"; then
7531   ac_pt_PKG_CONFIG=$PKG_CONFIG
7532   # Extract the first word of "pkg-config", so it can be a program name with args.
7533 set dummy pkg-config; ac_word=$2
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 printf %s "checking for $ac_word... " >&6; }
7536 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
7537 then :
7538   printf %s "(cached) " >&6
7539 else $as_nop
7540   case $ac_pt_PKG_CONFIG in
7541   [\\/]* | ?:[\\/]*)
7542   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7543   ;;
7544   *)
7545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   case $as_dir in #(((
7550     '') as_dir=./ ;;
7551     */) ;;
7552     *) as_dir=$as_dir/ ;;
7553   esac
7554     for ac_exec_ext in '' $ac_executable_extensions; do
7555   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7556     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7557     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7558     break 2
7559   fi
7560 done
7561   done
7562 IFS=$as_save_IFS
7563
7564   ;;
7565 esac
7566 fi
7567 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7568 if test -n "$ac_pt_PKG_CONFIG"; then
7569   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7570 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
7571 else
7572   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 printf "%s\n" "no" >&6; }
7574 fi
7575
7576   if test "x$ac_pt_PKG_CONFIG" = x; then
7577     PKG_CONFIG=""
7578   else
7579     case $cross_compiling:$ac_tool_warned in
7580 yes:)
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7582 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7583 ac_tool_warned=yes ;;
7584 esac
7585     PKG_CONFIG=$ac_pt_PKG_CONFIG
7586   fi
7587 else
7588   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7589 fi
7590
7591 fi
7592 if test -n "$PKG_CONFIG"; then
7593         _pkg_min_version=0.9.0
7594         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7595 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7596         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7597                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7598 printf "%s\n" "yes" >&6; }
7599         else
7600                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 printf "%s\n" "no" >&6; }
7602                 PKG_CONFIG=""
7603         fi
7604 fi
7605
7606 pkg_failed=no
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDLMIXER" >&5
7608 printf %s "checking for SDLMIXER... " >&6; }
7609
7610 if test -n "$SDLMIXER_CFLAGS"; then
7611     pkg_cv_SDLMIXER_CFLAGS="$SDLMIXER_CFLAGS"
7612  elif test -n "$PKG_CONFIG"; then
7613     if test -n "$PKG_CONFIG" && \
7614     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5
7615   ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5
7616   ac_status=$?
7617   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7618   test $ac_status = 0; }; then
7619   pkg_cv_SDLMIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL_mixer" 2>/dev/null`
7620                       test "x$?" != "x0" && pkg_failed=yes
7621 else
7622   pkg_failed=yes
7623 fi
7624  else
7625     pkg_failed=untried
7626 fi
7627 if test -n "$SDLMIXER_LIBS"; then
7628     pkg_cv_SDLMIXER_LIBS="$SDLMIXER_LIBS"
7629  elif test -n "$PKG_CONFIG"; then
7630     if test -n "$PKG_CONFIG" && \
7631     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5
7632   ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5
7633   ac_status=$?
7634   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7635   test $ac_status = 0; }; then
7636   pkg_cv_SDLMIXER_LIBS=`$PKG_CONFIG --libs "SDL_mixer" 2>/dev/null`
7637                       test "x$?" != "x0" && pkg_failed=yes
7638 else
7639   pkg_failed=yes
7640 fi
7641  else
7642     pkg_failed=untried
7643 fi
7644
7645
7646
7647 if test $pkg_failed = yes; then
7648         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 printf "%s\n" "no" >&6; }
7650
7651 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7652         _pkg_short_errors_supported=yes
7653 else
7654         _pkg_short_errors_supported=no
7655 fi
7656         if test $_pkg_short_errors_supported = yes; then
7657                 SDLMIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_mixer" 2>&1`
7658         else
7659                 SDLMIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_mixer" 2>&1`
7660         fi
7661         # Put the nasty error message in config.log where it belongs
7662         echo "$SDLMIXER_PKG_ERRORS" >&5
7663
7664         as_fn_error $? "Package requirements (SDL_mixer) were not met:
7665
7666 $SDLMIXER_PKG_ERRORS
7667
7668 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7669 installed software in a non-standard prefix.
7670
7671 Alternatively, you may set the environment variables SDLMIXER_CFLAGS
7672 and SDLMIXER_LIBS to avoid the need to call pkg-config.
7673 See the pkg-config man page for more details." "$LINENO" 5
7674 elif test $pkg_failed = untried; then
7675         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 printf "%s\n" "no" >&6; }
7677         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7678 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7679 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7680 is in your PATH or set the PKG_CONFIG environment variable to the full
7681 path to pkg-config.
7682
7683 Alternatively, you may set the environment variables SDLMIXER_CFLAGS
7684 and SDLMIXER_LIBS to avoid the need to call pkg-config.
7685 See the pkg-config man page for more details.
7686
7687 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7688 See \`config.log' for more details" "$LINENO" 5; }
7689 else
7690         SDLMIXER_CFLAGS=$pkg_cv_SDLMIXER_CFLAGS
7691         SDLMIXER_LIBS=$pkg_cv_SDLMIXER_LIBS
7692         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7693 printf "%s\n" "yes" >&6; }
7694
7695 fi
7696
7697
7698
7699   # Check for libpng
7700     have_libpng=no
7701     #PKG_CHECK_MODULES(LIBPNG, libpng,
7702     #    AC_DEFINE(HAVE_LIBPNG,,[Define if you have libpng])
7703     #    have_libpng=yes
7704     #    LIBS="$LIBPNG_LIBS $LIBS",
7705     #    AC_MSG_WARN([libpng not found. disabling png replacement texture support])
7706     #)
7707      if test x$have_libpng = xyes; then
7708   USE_LIBPNG_TRUE=
7709   USE_LIBPNG_FALSE='#'
7710 else
7711   USE_LIBPNG_TRUE='#'
7712   USE_LIBPNG_FALSE=
7713 fi
7714
7715
7716   # Check for PhysicsFS
7717
7718 pkg_failed=no
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PHYSFS" >&5
7720 printf %s "checking for PHYSFS... " >&6; }
7721
7722 if test -n "$PHYSFS_CFLAGS"; then
7723     pkg_cv_PHYSFS_CFLAGS="$PHYSFS_CFLAGS"
7724  elif test -n "$PKG_CONFIG"; then
7725     if test -n "$PKG_CONFIG" && \
7726     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"physfs\""; } >&5
7727   ($PKG_CONFIG --exists --print-errors "physfs") 2>&5
7728   ac_status=$?
7729   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730   test $ac_status = 0; }; then
7731   pkg_cv_PHYSFS_CFLAGS=`$PKG_CONFIG --cflags "physfs" 2>/dev/null`
7732                       test "x$?" != "x0" && pkg_failed=yes
7733 else
7734   pkg_failed=yes
7735 fi
7736  else
7737     pkg_failed=untried
7738 fi
7739 if test -n "$PHYSFS_LIBS"; then
7740     pkg_cv_PHYSFS_LIBS="$PHYSFS_LIBS"
7741  elif test -n "$PKG_CONFIG"; then
7742     if test -n "$PKG_CONFIG" && \
7743     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"physfs\""; } >&5
7744   ($PKG_CONFIG --exists --print-errors "physfs") 2>&5
7745   ac_status=$?
7746   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747   test $ac_status = 0; }; then
7748   pkg_cv_PHYSFS_LIBS=`$PKG_CONFIG --libs "physfs" 2>/dev/null`
7749                       test "x$?" != "x0" && pkg_failed=yes
7750 else
7751   pkg_failed=yes
7752 fi
7753  else
7754     pkg_failed=untried
7755 fi
7756
7757
7758
7759 if test $pkg_failed = yes; then
7760         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 printf "%s\n" "no" >&6; }
7762
7763 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7764         _pkg_short_errors_supported=yes
7765 else
7766         _pkg_short_errors_supported=no
7767 fi
7768         if test $_pkg_short_errors_supported = yes; then
7769                 PHYSFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "physfs" 2>&1`
7770         else
7771                 PHYSFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "physfs" 2>&1`
7772         fi
7773         # Put the nasty error message in config.log where it belongs
7774         echo "$PHYSFS_PKG_ERRORS" >&5
7775
7776                for ac_header in physfs.h
7777 do :
7778   ac_fn_c_check_header_compile "$LINENO" "physfs.h" "ac_cv_header_physfs_h" "$ac_includes_default"
7779 if test "x$ac_cv_header_physfs_h" = xyes
7780 then :
7781   printf "%s\n" "#define HAVE_PHYSFS_H 1" >>confdefs.h
7782
7783 else $as_nop
7784   as_fn_error $? "physfs.h required" "$LINENO" 5
7785 fi
7786
7787 done
7788     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PHYSFS_init in -lphysfs" >&5
7789 printf %s "checking for PHYSFS_init in -lphysfs... " >&6; }
7790 if test ${ac_cv_lib_physfs_PHYSFS_init+y}
7791 then :
7792   printf %s "(cached) " >&6
7793 else $as_nop
7794   ac_check_lib_save_LIBS=$LIBS
7795 LIBS="-lphysfs  $LIBS"
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h.  */
7798
7799 /* Override any GCC internal prototype to avoid an error.
7800    Use char because int might match the return type of a GCC
7801    builtin and then its argument prototype would still apply.  */
7802 char PHYSFS_init ();
7803 int
7804 main (void)
7805 {
7806 return PHYSFS_init ();
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 if ac_fn_c_try_link "$LINENO"
7812 then :
7813   ac_cv_lib_physfs_PHYSFS_init=yes
7814 else $as_nop
7815   ac_cv_lib_physfs_PHYSFS_init=no
7816 fi
7817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7818     conftest$ac_exeext conftest.$ac_ext
7819 LIBS=$ac_check_lib_save_LIBS
7820 fi
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_physfs_PHYSFS_init" >&5
7822 printf "%s\n" "$ac_cv_lib_physfs_PHYSFS_init" >&6; }
7823 if test "x$ac_cv_lib_physfs_PHYSFS_init" = xyes
7824 then :
7825   PHYSFS_LIBS="-lphysfs"
7826 else $as_nop
7827   as_fn_error $? "physfs library required" "$LINENO" 5
7828 fi
7829
7830
7831 elif test $pkg_failed = untried; then
7832         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 printf "%s\n" "no" >&6; }
7834                for ac_header in physfs.h
7835 do :
7836   ac_fn_c_check_header_compile "$LINENO" "physfs.h" "ac_cv_header_physfs_h" "$ac_includes_default"
7837 if test "x$ac_cv_header_physfs_h" = xyes
7838 then :
7839   printf "%s\n" "#define HAVE_PHYSFS_H 1" >>confdefs.h
7840
7841 else $as_nop
7842   as_fn_error $? "physfs.h required" "$LINENO" 5
7843 fi
7844
7845 done
7846     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PHYSFS_init in -lphysfs" >&5
7847 printf %s "checking for PHYSFS_init in -lphysfs... " >&6; }
7848 if test ${ac_cv_lib_physfs_PHYSFS_init+y}
7849 then :
7850   printf %s "(cached) " >&6
7851 else $as_nop
7852   ac_check_lib_save_LIBS=$LIBS
7853 LIBS="-lphysfs  $LIBS"
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h.  */
7856
7857 /* Override any GCC internal prototype to avoid an error.
7858    Use char because int might match the return type of a GCC
7859    builtin and then its argument prototype would still apply.  */
7860 char PHYSFS_init ();
7861 int
7862 main (void)
7863 {
7864 return PHYSFS_init ();
7865   ;
7866   return 0;
7867 }
7868 _ACEOF
7869 if ac_fn_c_try_link "$LINENO"
7870 then :
7871   ac_cv_lib_physfs_PHYSFS_init=yes
7872 else $as_nop
7873   ac_cv_lib_physfs_PHYSFS_init=no
7874 fi
7875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7876     conftest$ac_exeext conftest.$ac_ext
7877 LIBS=$ac_check_lib_save_LIBS
7878 fi
7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_physfs_PHYSFS_init" >&5
7880 printf "%s\n" "$ac_cv_lib_physfs_PHYSFS_init" >&6; }
7881 if test "x$ac_cv_lib_physfs_PHYSFS_init" = xyes
7882 then :
7883   PHYSFS_LIBS="-lphysfs"
7884 else $as_nop
7885   as_fn_error $? "physfs library required" "$LINENO" 5
7886 fi
7887
7888
7889 else
7890         PHYSFS_CFLAGS=$pkg_cv_PHYSFS_CFLAGS
7891         PHYSFS_LIBS=$pkg_cv_PHYSFS_LIBS
7892         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7893 printf "%s\n" "yes" >&6; }
7894         CFLAGS="$CFLAGS -D__EXPORT__=PHYSFS_DECL"
7895 fi
7896
7897
7898
7899   # Check for OpenGL
7900
7901 # Check whether --with-opengl was given.
7902 if test ${with_opengl+y}
7903 then :
7904   withval=$with_opengl;
7905 fi
7906
7907     if test x$with_opengl = xyes; then
7908         TARGETS="d2x-gl$ac_cv_exeext $TARGETS"
7909                 if test x$enable_editor = xyes; then
7910                         TARGETS="miner-gl$ac_cv_exeext $TARGETS"
7911                 fi
7912     fi
7913
7914   # Check for SVGALib
7915
7916 # Check whether --with-svga was given.
7917 if test ${with_svga+y}
7918 then :
7919   withval=$with_svga;
7920 fi
7921
7922     if test x$with_svga = xyes; then
7923         TARGETS="d2x-svga$ac_cv_exeext $TARGETS"
7924                 if test x$enable_editor = xyes; then
7925                         TARGETS="miner-svga$ac_cv_exeext $TARGETS"
7926                 fi
7927     fi
7928
7929 fi
7930
7931 # Check whether --enable-network was given.
7932 if test ${enable_network+y}
7933 then :
7934   enableval=$enable_network;
7935 fi
7936
7937 if test x$enable_network != xno; then
7938     case $host_os in
7939         cygwin* | mingw* | msdos* | linux*)
7940             enable_native_ipx="yes";
7941            ;;
7942        *)
7943             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: d2x does not support native ipx on this host.  disabling native ipx" >&5
7944 printf "%s\n" "$as_me: WARNING: d2x does not support native ipx on this host.  disabling native ipx" >&2;}
7945             enable_native_ipx="no";
7946             ;;
7947     esac
7948     case $host_os in
7949         cygwin* | mingw* | msdos*)
7950             enable_kalinix="no";
7951             ;;
7952     esac
7953     case $host_os in
7954         *solaris*)
7955             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7956 printf %s "checking for socket in -lsocket... " >&6; }
7957 if test ${ac_cv_lib_socket_socket+y}
7958 then :
7959   printf %s "(cached) " >&6
7960 else $as_nop
7961   ac_check_lib_save_LIBS=$LIBS
7962 LIBS="-lsocket  $LIBS"
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h.  */
7965
7966 /* Override any GCC internal prototype to avoid an error.
7967    Use char because int might match the return type of a GCC
7968    builtin and then its argument prototype would still apply.  */
7969 char socket ();
7970 int
7971 main (void)
7972 {
7973 return socket ();
7974   ;
7975   return 0;
7976 }
7977 _ACEOF
7978 if ac_fn_c_try_link "$LINENO"
7979 then :
7980   ac_cv_lib_socket_socket=yes
7981 else $as_nop
7982   ac_cv_lib_socket_socket=no
7983 fi
7984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7985     conftest$ac_exeext conftest.$ac_ext
7986 LIBS=$ac_check_lib_save_LIBS
7987 fi
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7989 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
7990 if test "x$ac_cv_lib_socket_socket" = xyes
7991 then :
7992   LIBS="${LIBS} -lsocket"
7993 else $as_nop
7994   as_fn_error $? "socket lib required for net support on solaris not found" "$LINENO" 5
7995 fi
7996
7997             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
7998 printf %s "checking for inet_addr in -lnsl... " >&6; }
7999 if test ${ac_cv_lib_nsl_inet_addr+y}
8000 then :
8001   printf %s "(cached) " >&6
8002 else $as_nop
8003   ac_check_lib_save_LIBS=$LIBS
8004 LIBS="-lnsl  $LIBS"
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h.  */
8007
8008 /* Override any GCC internal prototype to avoid an error.
8009    Use char because int might match the return type of a GCC
8010    builtin and then its argument prototype would still apply.  */
8011 char inet_addr ();
8012 int
8013 main (void)
8014 {
8015 return inet_addr ();
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 if ac_fn_c_try_link "$LINENO"
8021 then :
8022   ac_cv_lib_nsl_inet_addr=yes
8023 else $as_nop
8024   ac_cv_lib_nsl_inet_addr=no
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8027     conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8029 fi
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
8031 printf "%s\n" "$ac_cv_lib_nsl_inet_addr" >&6; }
8032 if test "x$ac_cv_lib_nsl_inet_addr" = xyes
8033 then :
8034   LIBS="${LIBS} -lnsl"
8035 else $as_nop
8036   as_fn_error $? "nsl lib required for net support on solaris not found" "$LINENO" 5
8037 fi
8038
8039             ;;
8040     esac
8041 fi
8042 # Check whether --enable-kalinix was given.
8043 if test ${enable_kalinix+y}
8044 then :
8045   enableval=$enable_kalinix;
8046 fi
8047
8048 if test x$enable_network != xno; then
8049     if test x$enable_native_ipx != xno; then
8050         D2X_FEATURES="ipx ${D2X_FEATURES}"
8051
8052 printf "%s\n" "#define NATIVE_IPX /**/" >>confdefs.h
8053
8054     fi
8055     if test x$enable_kalinix != xno; then
8056         D2X_FEATURES="kalinix ${D2X_FEATURES}"
8057
8058 printf "%s\n" "#define KALINIX /**/" >>confdefs.h
8059
8060     fi
8061
8062 printf "%s\n" "#define NETWORK /**/" >>confdefs.h
8063
8064     D2X_FEATURES="network ${D2X_FEATURES}"
8065 fi
8066  if test x$enable_network != xno; then
8067   USE_NETWORK_TRUE=
8068   USE_NETWORK_FALSE='#'
8069 else
8070   USE_NETWORK_TRUE='#'
8071   USE_NETWORK_FALSE=
8072 fi
8073
8074  if test x$enable_native_ipx != xno; then
8075   USE_NATIVE_IPX_TRUE=
8076   USE_NATIVE_IPX_FALSE='#'
8077 else
8078   USE_NATIVE_IPX_TRUE='#'
8079   USE_NATIVE_IPX_FALSE=
8080 fi
8081
8082  if test x$enable_kalinix != xno; then
8083   USE_KALINIX_TRUE=
8084   USE_KALINIX_FALSE='#'
8085 else
8086   USE_KALINIX_TRUE='#'
8087   USE_KALINIX_FALSE=
8088 fi
8089
8090
8091 # Check whether --enable-assembler was given.
8092 if test ${enable_assembler+y}
8093 then :
8094   enableval=$enable_assembler;
8095 fi
8096
8097 if test x$enable_assembler != xno; then
8098     if test x$NASM = xno; then
8099         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nasm not found. disabling assembler" >&5
8100 printf "%s\n" "$as_me: WARNING: nasm not found. disabling assembler" >&2;}
8101         enable_assembler="no"
8102     else
8103         NASMFLAGS="-i\$(srcdir)/ $NASMFLAGS"
8104         case $host_os in
8105             cygwin* | mingw*)
8106                 NASMFLAGS="-f win32 $NASMFLAGS"
8107                 ;;
8108             msdos*)
8109                 NASMFLAGS="-f coff $NASMFLAGS"
8110                 ;;
8111             linux* | freebsd*)
8112                 NASMFLAGS="-f elf -d__ELF__ $NASMFLAGS"
8113                 ;;
8114             *)
8115                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nasm not supported for this OS. disabling assembler" >&5
8116 printf "%s\n" "$as_me: WARNING: nasm not supported for this OS. disabling assembler" >&2;}
8117                 enable_assembler="no"
8118                 ;;
8119         esac
8120         case $host_cpu in
8121             x86_64)
8122                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nasm not supported for this cpu. disabling assembler" >&5
8123 printf "%s\n" "$as_me: WARNING: nasm not supported for this cpu. disabling assembler" >&2;}
8124                 enable_assembler="no"
8125                 ;;
8126         esac
8127     fi
8128 fi
8129 if test x$enable_assembler = xno; then
8130
8131 printf "%s\n" "#define NO_ASM /**/" >>confdefs.h
8132
8133     D2X_FEATURES="no_asm ${D2X_FEATURES}"
8134 fi
8135  if test x$enable_assembler != xno; then
8136   USE_ASM_TRUE=
8137   USE_ASM_FALSE='#'
8138 else
8139   USE_ASM_TRUE='#'
8140   USE_ASM_FALSE=
8141 fi
8142
8143
8144
8145
8146 # By default we simply use the C compiler to build assembly code.
8147
8148 test "${CCAS+set}" = set || CCAS=$CC
8149 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8150
8151
8152
8153 depcc="$CCAS"   am_compiler_list=
8154
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8156 printf %s "checking dependency style of $depcc... " >&6; }
8157 if test ${am_cv_CCAS_dependencies_compiler_type+y}
8158 then :
8159   printf %s "(cached) " >&6
8160 else $as_nop
8161   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8162   # We make a subdir and do the tests there.  Otherwise we can end up
8163   # making bogus files that we don't know about and never remove.  For
8164   # instance it was reported that on HP-UX the gcc test will end up
8165   # making a dummy file named 'D' -- because '-MD' means "put the output
8166   # in D".
8167   rm -rf conftest.dir
8168   mkdir conftest.dir
8169   # Copy depcomp to subdir because otherwise we won't find it if we're
8170   # using a relative directory.
8171   cp "$am_depcomp" conftest.dir
8172   cd conftest.dir
8173   # We will build objects and dependencies in a subdirectory because
8174   # it helps to detect inapplicable dependency modes.  For instance
8175   # both Tru64's cc and ICC support -MD to output dependencies as a
8176   # side effect of compilation, but ICC will put the dependencies in
8177   # the current directory while Tru64 will put them in the object
8178   # directory.
8179   mkdir sub
8180
8181   am_cv_CCAS_dependencies_compiler_type=none
8182   if test "$am_compiler_list" = ""; then
8183      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8184   fi
8185   am__universal=false
8186
8187
8188   for depmode in $am_compiler_list; do
8189     # Setup a source with many dependencies, because some compilers
8190     # like to wrap large dependency lists on column 80 (with \), and
8191     # we should not choose a depcomp mode which is confused by this.
8192     #
8193     # We need to recreate these files for each test, as the compiler may
8194     # overwrite some of them when testing with obscure command lines.
8195     # This happens at least with the AIX C compiler.
8196     : > sub/conftest.c
8197     for i in 1 2 3 4 5 6; do
8198       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8199       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8200       # Solaris 10 /bin/sh.
8201       echo '/* dummy */' > sub/conftst$i.h
8202     done
8203     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8204
8205     # We check with '-c' and '-o' for the sake of the "dashmstdout"
8206     # mode.  It turns out that the SunPro C++ compiler does not properly
8207     # handle '-M -o', and we need to detect this.  Also, some Intel
8208     # versions had trouble with output in subdirs.
8209     am__obj=sub/conftest.${OBJEXT-o}
8210     am__minus_obj="-o $am__obj"
8211     case $depmode in
8212     gcc)
8213       # This depmode causes a compiler race in universal mode.
8214       test "$am__universal" = false || continue
8215       ;;
8216     nosideeffect)
8217       # After this tag, mechanisms are not by side-effect, so they'll
8218       # only be used when explicitly requested.
8219       if test "x$enable_dependency_tracking" = xyes; then
8220         continue
8221       else
8222         break
8223       fi
8224       ;;
8225     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8226       # This compiler won't grok '-c -o', but also, the minuso test has
8227       # not run yet.  These depmodes are late enough in the game, and
8228       # so weak that their functioning should not be impacted.
8229       am__obj=conftest.${OBJEXT-o}
8230       am__minus_obj=
8231       ;;
8232     none) break ;;
8233     esac
8234     if depmode=$depmode \
8235        source=sub/conftest.c object=$am__obj \
8236        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8237        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8238          >/dev/null 2>conftest.err &&
8239        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8240        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8241        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8242        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8243       # icc doesn't choke on unknown options, it will just issue warnings
8244       # or remarks (even with -Werror).  So we grep stderr for any message
8245       # that says an option was ignored or not supported.
8246       # When given -MP, icc 7.0 and 7.1 complain thusly:
8247       #   icc: Command line warning: ignoring option '-M'; no argument required
8248       # The diagnosis changed in icc 8.0:
8249       #   icc: Command line remark: option '-MP' not supported
8250       if (grep 'ignoring option' conftest.err ||
8251           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8252         am_cv_CCAS_dependencies_compiler_type=$depmode
8253         break
8254       fi
8255     fi
8256   done
8257
8258   cd ..
8259   rm -rf conftest.dir
8260 else
8261   am_cv_CCAS_dependencies_compiler_type=none
8262 fi
8263
8264 fi
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8266 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8267 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
8268
8269  if
8270   test "x$enable_dependency_tracking" != xno \
8271   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
8272   am__fastdepCCAS_TRUE=
8273   am__fastdepCCAS_FALSE='#'
8274 else
8275   am__fastdepCCAS_TRUE='#'
8276   am__fastdepCCAS_FALSE=
8277 fi
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287 ac_config_files="$ac_config_files Makefile debian/changelog rpm/d2x.spec"
8288
8289 cat >confcache <<\_ACEOF
8290 # This file is a shell script that caches the results of configure
8291 # tests run on this system so they can be shared between configure
8292 # scripts and configure runs, see configure's option --config-cache.
8293 # It is not useful on other systems.  If it contains results you don't
8294 # want to keep, you may remove or edit it.
8295 #
8296 # config.status only pays attention to the cache file if you give it
8297 # the --recheck option to rerun configure.
8298 #
8299 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8300 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8301 # following values.
8302
8303 _ACEOF
8304
8305 # The following way of writing the cache mishandles newlines in values,
8306 # but we know of no workaround that is simple, portable, and efficient.
8307 # So, we kill variables containing newlines.
8308 # Ultrix sh set writes to stderr and can't be redirected directly,
8309 # and sets the high bit in the cache file unless we assign to the vars.
8310 (
8311   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8312     eval ac_val=\$$ac_var
8313     case $ac_val in #(
8314     *${as_nl}*)
8315       case $ac_var in #(
8316       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8317 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8318       esac
8319       case $ac_var in #(
8320       _ | IFS | as_nl) ;; #(
8321       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8322       *) { eval $ac_var=; unset $ac_var;} ;;
8323       esac ;;
8324     esac
8325   done
8326
8327   (set) 2>&1 |
8328     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8329     *${as_nl}ac_space=\ *)
8330       # `set' does not quote correctly, so add quotes: double-quote
8331       # substitution turns \\\\ into \\, and sed turns \\ into \.
8332       sed -n \
8333         "s/'/'\\\\''/g;
8334           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8335       ;; #(
8336     *)
8337       # `set' quotes correctly as required by POSIX, so do not add quotes.
8338       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8339       ;;
8340     esac |
8341     sort
8342 ) |
8343   sed '
8344      /^ac_cv_env_/b end
8345      t clear
8346      :clear
8347      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8348      t end
8349      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8350      :end' >>confcache
8351 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8352   if test -w "$cache_file"; then
8353     if test "x$cache_file" != "x/dev/null"; then
8354       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8355 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8356       if test ! -f "$cache_file" || test -h "$cache_file"; then
8357         cat confcache >"$cache_file"
8358       else
8359         case $cache_file in #(
8360         */* | ?:*)
8361           mv -f confcache "$cache_file"$$ &&
8362           mv -f "$cache_file"$$ "$cache_file" ;; #(
8363         *)
8364           mv -f confcache "$cache_file" ;;
8365         esac
8366       fi
8367     fi
8368   else
8369     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8370 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8371   fi
8372 fi
8373 rm -f confcache
8374
8375 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8376 # Let make expand exec_prefix.
8377 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8378
8379 DEFS=-DHAVE_CONFIG_H
8380
8381 ac_libobjs=
8382 ac_ltlibobjs=
8383 U=
8384 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8385   # 1. Remove the extension, and $U if already installed.
8386   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8387   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8388   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8389   #    will be set to the directory where LIBOBJS objects are built.
8390   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8391   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8392 done
8393 LIBOBJS=$ac_libobjs
8394
8395 LTLIBOBJS=$ac_ltlibobjs
8396
8397
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8399 printf %s "checking that generated files are newer than configure... " >&6; }
8400    if test -n "$am_sleep_pid"; then
8401      # Hide warnings about reused PIDs.
8402      wait $am_sleep_pid 2>/dev/null
8403    fi
8404    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
8405 printf "%s\n" "done" >&6; }
8406  if test -n "$EXEEXT"; then
8407   am__EXEEXT_TRUE=
8408   am__EXEEXT_FALSE='#'
8409 else
8410   am__EXEEXT_TRUE='#'
8411   am__EXEEXT_FALSE=
8412 fi
8413
8414 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8415   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8417 fi
8418 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8419   as_fn_error $? "conditional \"AMDEP\" was never defined.
8420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8421 fi
8422 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8423   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8425 fi
8426 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8427   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8429 fi
8430
8431 if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
8432   as_fn_error $? "conditional \"MINGW32\" was never defined.
8433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8434 fi
8435 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
8436   as_fn_error $? "conditional \"MACOSX\" was never defined.
8437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8438 fi
8439 if test -z "${MSDOS_TRUE}" && test -z "${MSDOS_FALSE}"; then
8440   as_fn_error $? "conditional \"MSDOS\" was never defined.
8441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8442 fi
8443 if test -z "${MACDATA_TRUE}" && test -z "${MACDATA_FALSE}"; then
8444   as_fn_error $? "conditional \"MACDATA\" was never defined.
8445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8446 fi
8447 if test -z "${USE_LINUX_JOY_TRUE}" && test -z "${USE_LINUX_JOY_FALSE}"; then
8448   as_fn_error $? "conditional \"USE_LINUX_JOY\" was never defined.
8449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8450 fi
8451 if test -z "${USE_LIBPNG_TRUE}" && test -z "${USE_LIBPNG_FALSE}"; then
8452   as_fn_error $? "conditional \"USE_LIBPNG\" was never defined.
8453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8454 fi
8455 if test -z "${USE_NETWORK_TRUE}" && test -z "${USE_NETWORK_FALSE}"; then
8456   as_fn_error $? "conditional \"USE_NETWORK\" was never defined.
8457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8458 fi
8459 if test -z "${USE_NATIVE_IPX_TRUE}" && test -z "${USE_NATIVE_IPX_FALSE}"; then
8460   as_fn_error $? "conditional \"USE_NATIVE_IPX\" was never defined.
8461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8462 fi
8463 if test -z "${USE_KALINIX_TRUE}" && test -z "${USE_KALINIX_FALSE}"; then
8464   as_fn_error $? "conditional \"USE_KALINIX\" was never defined.
8465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8466 fi
8467 if test -z "${USE_ASM_TRUE}" && test -z "${USE_ASM_FALSE}"; then
8468   as_fn_error $? "conditional \"USE_ASM\" was never defined.
8469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8470 fi
8471 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
8472   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
8473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8474 fi
8475
8476 : "${CONFIG_STATUS=./config.status}"
8477 ac_write_fail=0
8478 ac_clean_files_save=$ac_clean_files
8479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8481 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8482 as_write_fail=0
8483 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8484 #! $SHELL
8485 # Generated by $as_me.
8486 # Run this file to recreate the current configuration.
8487 # Compiler output produced by configure, useful for debugging
8488 # configure, is in config.log if it exists.
8489
8490 debug=false
8491 ac_cs_recheck=false
8492 ac_cs_silent=false
8493
8494 SHELL=\${CONFIG_SHELL-$SHELL}
8495 export SHELL
8496 _ASEOF
8497 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8498 ## -------------------- ##
8499 ## M4sh Initialization. ##
8500 ## -------------------- ##
8501
8502 # Be more Bourne compatible
8503 DUALCASE=1; export DUALCASE # for MKS sh
8504 as_nop=:
8505 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8506 then :
8507   emulate sh
8508   NULLCMD=:
8509   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8510   # is contrary to our usage.  Disable this feature.
8511   alias -g '${1+"$@"}'='"$@"'
8512   setopt NO_GLOB_SUBST
8513 else $as_nop
8514   case `(set -o) 2>/dev/null` in #(
8515   *posix*) :
8516     set -o posix ;; #(
8517   *) :
8518      ;;
8519 esac
8520 fi
8521
8522
8523
8524 # Reset variables that may have inherited troublesome values from
8525 # the environment.
8526
8527 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8528 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8529 # side effect of setting IFS to empty, thus disabling word splitting.)
8530 # Quoting is to prevent editors from complaining about space-tab.
8531 as_nl='
8532 '
8533 export as_nl
8534 IFS=" ""        $as_nl"
8535
8536 PS1='$ '
8537 PS2='> '
8538 PS4='+ '
8539
8540 # Ensure predictable behavior from utilities with locale-dependent output.
8541 LC_ALL=C
8542 export LC_ALL
8543 LANGUAGE=C
8544 export LANGUAGE
8545
8546 # We cannot yet rely on "unset" to work, but we need these variables
8547 # to be unset--not just set to an empty or harmless value--now, to
8548 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
8549 # also avoids known problems related to "unset" and subshell syntax
8550 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8551 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8552 do eval test \${$as_var+y} \
8553   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8554 done
8555
8556 # Ensure that fds 0, 1, and 2 are open.
8557 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8558 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8559 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
8560
8561 # The user is always right.
8562 if ${PATH_SEPARATOR+false} :; then
8563   PATH_SEPARATOR=:
8564   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8565     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8566       PATH_SEPARATOR=';'
8567   }
8568 fi
8569
8570
8571 # Find who we are.  Look in the path if we contain no directory separator.
8572 as_myself=
8573 case $0 in #((
8574   *[\\/]* ) as_myself=$0 ;;
8575   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8577 do
8578   IFS=$as_save_IFS
8579   case $as_dir in #(((
8580     '') as_dir=./ ;;
8581     */) ;;
8582     *) as_dir=$as_dir/ ;;
8583   esac
8584     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8585   done
8586 IFS=$as_save_IFS
8587
8588      ;;
8589 esac
8590 # We did not find ourselves, most probably we were run as `sh COMMAND'
8591 # in which case we are not to be found in the path.
8592 if test "x$as_myself" = x; then
8593   as_myself=$0
8594 fi
8595 if test ! -f "$as_myself"; then
8596   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8597   exit 1
8598 fi
8599
8600
8601
8602 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8603 # ----------------------------------------
8604 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8605 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8606 # script with STATUS, using 1 if that was 0.
8607 as_fn_error ()
8608 {
8609   as_status=$1; test $as_status -eq 0 && as_status=1
8610   if test "$4"; then
8611     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8612     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8613   fi
8614   printf "%s\n" "$as_me: error: $2" >&2
8615   as_fn_exit $as_status
8616 } # as_fn_error
8617
8618
8619
8620 # as_fn_set_status STATUS
8621 # -----------------------
8622 # Set $? to STATUS, without forking.
8623 as_fn_set_status ()
8624 {
8625   return $1
8626 } # as_fn_set_status
8627
8628 # as_fn_exit STATUS
8629 # -----------------
8630 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8631 as_fn_exit ()
8632 {
8633   set +e
8634   as_fn_set_status $1
8635   exit $1
8636 } # as_fn_exit
8637
8638 # as_fn_unset VAR
8639 # ---------------
8640 # Portably unset VAR.
8641 as_fn_unset ()
8642 {
8643   { eval $1=; unset $1;}
8644 }
8645 as_unset=as_fn_unset
8646
8647 # as_fn_append VAR VALUE
8648 # ----------------------
8649 # Append the text in VALUE to the end of the definition contained in VAR. Take
8650 # advantage of any shell optimizations that allow amortized linear growth over
8651 # repeated appends, instead of the typical quadratic growth present in naive
8652 # implementations.
8653 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8654 then :
8655   eval 'as_fn_append ()
8656   {
8657     eval $1+=\$2
8658   }'
8659 else $as_nop
8660   as_fn_append ()
8661   {
8662     eval $1=\$$1\$2
8663   }
8664 fi # as_fn_append
8665
8666 # as_fn_arith ARG...
8667 # ------------------
8668 # Perform arithmetic evaluation on the ARGs, and store the result in the
8669 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8670 # must be portable across $(()) and expr.
8671 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8672 then :
8673   eval 'as_fn_arith ()
8674   {
8675     as_val=$(( $* ))
8676   }'
8677 else $as_nop
8678   as_fn_arith ()
8679   {
8680     as_val=`expr "$@" || test $? -eq 1`
8681   }
8682 fi # as_fn_arith
8683
8684
8685 if expr a : '\(a\)' >/dev/null 2>&1 &&
8686    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8687   as_expr=expr
8688 else
8689   as_expr=false
8690 fi
8691
8692 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8693   as_basename=basename
8694 else
8695   as_basename=false
8696 fi
8697
8698 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8699   as_dirname=dirname
8700 else
8701   as_dirname=false
8702 fi
8703
8704 as_me=`$as_basename -- "$0" ||
8705 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8706          X"$0" : 'X\(//\)$' \| \
8707          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8708 printf "%s\n" X/"$0" |
8709     sed '/^.*\/\([^/][^/]*\)\/*$/{
8710             s//\1/
8711             q
8712           }
8713           /^X\/\(\/\/\)$/{
8714             s//\1/
8715             q
8716           }
8717           /^X\/\(\/\).*/{
8718             s//\1/
8719             q
8720           }
8721           s/.*/./; q'`
8722
8723 # Avoid depending upon Character Ranges.
8724 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8725 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8726 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8727 as_cr_digits='0123456789'
8728 as_cr_alnum=$as_cr_Letters$as_cr_digits
8729
8730
8731 # Determine whether it's possible to make 'echo' print without a newline.
8732 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8733 # for compatibility with existing Makefiles.
8734 ECHO_C= ECHO_N= ECHO_T=
8735 case `echo -n x` in #(((((
8736 -n*)
8737   case `echo 'xy\c'` in
8738   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8739   xy)  ECHO_C='\c';;
8740   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8741        ECHO_T=' ';;
8742   esac;;
8743 *)
8744   ECHO_N='-n';;
8745 esac
8746
8747 # For backward compatibility with old third-party macros, we provide
8748 # the shell variables $as_echo and $as_echo_n.  New code should use
8749 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8750 as_echo='printf %s\n'
8751 as_echo_n='printf %s'
8752
8753 rm -f conf$$ conf$$.exe conf$$.file
8754 if test -d conf$$.dir; then
8755   rm -f conf$$.dir/conf$$.file
8756 else
8757   rm -f conf$$.dir
8758   mkdir conf$$.dir 2>/dev/null
8759 fi
8760 if (echo >conf$$.file) 2>/dev/null; then
8761   if ln -s conf$$.file conf$$ 2>/dev/null; then
8762     as_ln_s='ln -s'
8763     # ... but there are two gotchas:
8764     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8765     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8766     # In both cases, we have to default to `cp -pR'.
8767     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8768       as_ln_s='cp -pR'
8769   elif ln conf$$.file conf$$ 2>/dev/null; then
8770     as_ln_s=ln
8771   else
8772     as_ln_s='cp -pR'
8773   fi
8774 else
8775   as_ln_s='cp -pR'
8776 fi
8777 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8778 rmdir conf$$.dir 2>/dev/null
8779
8780
8781 # as_fn_mkdir_p
8782 # -------------
8783 # Create "$as_dir" as a directory, including parents if necessary.
8784 as_fn_mkdir_p ()
8785 {
8786
8787   case $as_dir in #(
8788   -*) as_dir=./$as_dir;;
8789   esac
8790   test -d "$as_dir" || eval $as_mkdir_p || {
8791     as_dirs=
8792     while :; do
8793       case $as_dir in #(
8794       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8795       *) as_qdir=$as_dir;;
8796       esac
8797       as_dirs="'$as_qdir' $as_dirs"
8798       as_dir=`$as_dirname -- "$as_dir" ||
8799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8800          X"$as_dir" : 'X\(//\)[^/]' \| \
8801          X"$as_dir" : 'X\(//\)$' \| \
8802          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8803 printf "%s\n" X"$as_dir" |
8804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8805             s//\1/
8806             q
8807           }
8808           /^X\(\/\/\)[^/].*/{
8809             s//\1/
8810             q
8811           }
8812           /^X\(\/\/\)$/{
8813             s//\1/
8814             q
8815           }
8816           /^X\(\/\).*/{
8817             s//\1/
8818             q
8819           }
8820           s/.*/./; q'`
8821       test -d "$as_dir" && break
8822     done
8823     test -z "$as_dirs" || eval "mkdir $as_dirs"
8824   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8825
8826
8827 } # as_fn_mkdir_p
8828 if mkdir -p . 2>/dev/null; then
8829   as_mkdir_p='mkdir -p "$as_dir"'
8830 else
8831   test -d ./-p && rmdir ./-p
8832   as_mkdir_p=false
8833 fi
8834
8835
8836 # as_fn_executable_p FILE
8837 # -----------------------
8838 # Test if FILE is an executable regular file.
8839 as_fn_executable_p ()
8840 {
8841   test -f "$1" && test -x "$1"
8842 } # as_fn_executable_p
8843 as_test_x='test -x'
8844 as_executable_p=as_fn_executable_p
8845
8846 # Sed expression to map a string onto a valid CPP name.
8847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8848
8849 # Sed expression to map a string onto a valid variable name.
8850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8851
8852
8853 exec 6>&1
8854 ## ----------------------------------- ##
8855 ## Main body of $CONFIG_STATUS script. ##
8856 ## ----------------------------------- ##
8857 _ASEOF
8858 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8859
8860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8861 # Save the log message, to keep $0 and so on meaningful, and to
8862 # report actual input values of CONFIG_FILES etc. instead of their
8863 # values after options handling.
8864 ac_log="
8865 This file was extended by d2x $as_me 0.2.6, which was
8866 generated by GNU Autoconf 2.71.  Invocation command line was
8867
8868   CONFIG_FILES    = $CONFIG_FILES
8869   CONFIG_HEADERS  = $CONFIG_HEADERS
8870   CONFIG_LINKS    = $CONFIG_LINKS
8871   CONFIG_COMMANDS = $CONFIG_COMMANDS
8872   $ $0 $@
8873
8874 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8875 "
8876
8877 _ACEOF
8878
8879 case $ac_config_files in *"
8880 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8881 esac
8882
8883 case $ac_config_headers in *"
8884 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8885 esac
8886
8887
8888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8889 # Files that config.status was made for.
8890 config_files="$ac_config_files"
8891 config_headers="$ac_config_headers"
8892 config_commands="$ac_config_commands"
8893
8894 _ACEOF
8895
8896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8897 ac_cs_usage="\
8898 \`$as_me' instantiates files and other configuration actions
8899 from templates according to the current configuration.  Unless the files
8900 and actions are specified as TAGs, all are instantiated by default.
8901
8902 Usage: $0 [OPTION]... [TAG]...
8903
8904   -h, --help       print this help, then exit
8905   -V, --version    print version number and configuration settings, then exit
8906       --config     print configuration, then exit
8907   -q, --quiet, --silent
8908                    do not print progress messages
8909   -d, --debug      don't remove temporary files
8910       --recheck    update $as_me by reconfiguring in the same conditions
8911       --file=FILE[:TEMPLATE]
8912                    instantiate the configuration file FILE
8913       --header=FILE[:TEMPLATE]
8914                    instantiate the configuration header FILE
8915
8916 Configuration files:
8917 $config_files
8918
8919 Configuration headers:
8920 $config_headers
8921
8922 Configuration commands:
8923 $config_commands
8924
8925 Report bugs to <https://github.com/btb/d2x/issues>."
8926
8927 _ACEOF
8928 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8929 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8931 ac_cs_config='$ac_cs_config_escaped'
8932 ac_cs_version="\\
8933 d2x config.status 0.2.6
8934 configured by $0, generated by GNU Autoconf 2.71,
8935   with options \\"\$ac_cs_config\\"
8936
8937 Copyright (C) 2021 Free Software Foundation, Inc.
8938 This config.status script is free software; the Free Software Foundation
8939 gives unlimited permission to copy, distribute and modify it."
8940
8941 ac_pwd='$ac_pwd'
8942 srcdir='$srcdir'
8943 INSTALL='$INSTALL'
8944 MKDIR_P='$MKDIR_P'
8945 AWK='$AWK'
8946 test -n "\$AWK" || AWK=awk
8947 _ACEOF
8948
8949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8950 # The default lists apply if the user does not specify any file.
8951 ac_need_defaults=:
8952 while test $# != 0
8953 do
8954   case $1 in
8955   --*=?*)
8956     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8957     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8958     ac_shift=:
8959     ;;
8960   --*=)
8961     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8962     ac_optarg=
8963     ac_shift=:
8964     ;;
8965   *)
8966     ac_option=$1
8967     ac_optarg=$2
8968     ac_shift=shift
8969     ;;
8970   esac
8971
8972   case $ac_option in
8973   # Handling of the options.
8974   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8975     ac_cs_recheck=: ;;
8976   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8977     printf "%s\n" "$ac_cs_version"; exit ;;
8978   --config | --confi | --conf | --con | --co | --c )
8979     printf "%s\n" "$ac_cs_config"; exit ;;
8980   --debug | --debu | --deb | --de | --d | -d )
8981     debug=: ;;
8982   --file | --fil | --fi | --f )
8983     $ac_shift
8984     case $ac_optarg in
8985     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8986     '') as_fn_error $? "missing file argument" ;;
8987     esac
8988     as_fn_append CONFIG_FILES " '$ac_optarg'"
8989     ac_need_defaults=false;;
8990   --header | --heade | --head | --hea )
8991     $ac_shift
8992     case $ac_optarg in
8993     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8994     esac
8995     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8996     ac_need_defaults=false;;
8997   --he | --h)
8998     # Conflict between --help and --header
8999     as_fn_error $? "ambiguous option: \`$1'
9000 Try \`$0 --help' for more information.";;
9001   --help | --hel | -h )
9002     printf "%s\n" "$ac_cs_usage"; exit ;;
9003   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9004   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9005     ac_cs_silent=: ;;
9006
9007   # This is an error.
9008   -*) as_fn_error $? "unrecognized option: \`$1'
9009 Try \`$0 --help' for more information." ;;
9010
9011   *) as_fn_append ac_config_targets " $1"
9012      ac_need_defaults=false ;;
9013
9014   esac
9015   shift
9016 done
9017
9018 ac_configure_extra_args=
9019
9020 if $ac_cs_silent; then
9021   exec 6>/dev/null
9022   ac_configure_extra_args="$ac_configure_extra_args --silent"
9023 fi
9024
9025 _ACEOF
9026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9027 if \$ac_cs_recheck; then
9028   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9029   shift
9030   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9031   CONFIG_SHELL='$SHELL'
9032   export CONFIG_SHELL
9033   exec "\$@"
9034 fi
9035
9036 _ACEOF
9037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9038 exec 5>>config.log
9039 {
9040   echo
9041   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9042 ## Running $as_me. ##
9043 _ASBOX
9044   printf "%s\n" "$ac_log"
9045 } >&5
9046
9047 _ACEOF
9048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9049 #
9050 # INIT-COMMANDS
9051 #
9052 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
9053
9054 _ACEOF
9055
9056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9057
9058 # Handling of arguments.
9059 for ac_config_target in $ac_config_targets
9060 do
9061   case $ac_config_target in
9062     "conf.h") CONFIG_HEADERS="$CONFIG_HEADERS conf.h" ;;
9063     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9064     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9065     "debian/changelog") CONFIG_FILES="$CONFIG_FILES debian/changelog" ;;
9066     "rpm/d2x.spec") CONFIG_FILES="$CONFIG_FILES rpm/d2x.spec" ;;
9067
9068   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9069   esac
9070 done
9071
9072
9073 # If the user did not use the arguments to specify the items to instantiate,
9074 # then the envvar interface is used.  Set only those that are not.
9075 # We use the long form for the default assignment because of an extremely
9076 # bizarre bug on SunOS 4.1.3.
9077 if $ac_need_defaults; then
9078   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9079   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
9080   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
9081 fi
9082
9083 # Have a temporary directory for convenience.  Make it in the build tree
9084 # simply because there is no reason against having it here, and in addition,
9085 # creating and moving files from /tmp can sometimes cause problems.
9086 # Hook for its removal unless debugging.
9087 # Note that there is a small window in which the directory will not be cleaned:
9088 # after its creation but before its name has been assigned to `$tmp'.
9089 $debug ||
9090 {
9091   tmp= ac_tmp=
9092   trap 'exit_status=$?
9093   : "${ac_tmp:=$tmp}"
9094   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9095 ' 0
9096   trap 'as_fn_exit 1' 1 2 13 15
9097 }
9098 # Create a (secure) tmp directory for tmp files.
9099
9100 {
9101   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9102   test -d "$tmp"
9103 }  ||
9104 {
9105   tmp=./conf$$-$RANDOM
9106   (umask 077 && mkdir "$tmp")
9107 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9108 ac_tmp=$tmp
9109
9110 # Set up the scripts for CONFIG_FILES section.
9111 # No need to generate them if there are no CONFIG_FILES.
9112 # This happens for instance with `./config.status config.h'.
9113 if test -n "$CONFIG_FILES"; then
9114
9115
9116 ac_cr=`echo X | tr X '\015'`
9117 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9118 # But we know of no other shell where ac_cr would be empty at this
9119 # point, so we can use a bashism as a fallback.
9120 if test "x$ac_cr" = x; then
9121   eval ac_cr=\$\'\\r\'
9122 fi
9123 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9124 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9125   ac_cs_awk_cr='\\r'
9126 else
9127   ac_cs_awk_cr=$ac_cr
9128 fi
9129
9130 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9131 _ACEOF
9132
9133
9134 {
9135   echo "cat >conf$$subs.awk <<_ACEOF" &&
9136   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9137   echo "_ACEOF"
9138 } >conf$$subs.sh ||
9139   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9140 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9141 ac_delim='%!_!# '
9142 for ac_last_try in false false false false false :; do
9143   . ./conf$$subs.sh ||
9144     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9145
9146   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9147   if test $ac_delim_n = $ac_delim_num; then
9148     break
9149   elif $ac_last_try; then
9150     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9151   else
9152     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9153   fi
9154 done
9155 rm -f conf$$subs.sh
9156
9157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9158 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9159 _ACEOF
9160 sed -n '
9161 h
9162 s/^/S["/; s/!.*/"]=/
9163 p
9164 g
9165 s/^[^!]*!//
9166 :repl
9167 t repl
9168 s/'"$ac_delim"'$//
9169 t delim
9170 :nl
9171 h
9172 s/\(.\{148\}\)..*/\1/
9173 t more1
9174 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9175 p
9176 n
9177 b repl
9178 :more1
9179 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9180 p
9181 g
9182 s/.\{148\}//
9183 t nl
9184 :delim
9185 h
9186 s/\(.\{148\}\)..*/\1/
9187 t more2
9188 s/["\\]/\\&/g; s/^/"/; s/$/"/
9189 p
9190 b
9191 :more2
9192 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9193 p
9194 g
9195 s/.\{148\}//
9196 t delim
9197 ' <conf$$subs.awk | sed '
9198 /^[^""]/{
9199   N
9200   s/\n//
9201 }
9202 ' >>$CONFIG_STATUS || ac_write_fail=1
9203 rm -f conf$$subs.awk
9204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9205 _ACAWK
9206 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9207   for (key in S) S_is_set[key] = 1
9208   FS = "\a"
9209
9210 }
9211 {
9212   line = $ 0
9213   nfields = split(line, field, "@")
9214   substed = 0
9215   len = length(field[1])
9216   for (i = 2; i < nfields; i++) {
9217     key = field[i]
9218     keylen = length(key)
9219     if (S_is_set[key]) {
9220       value = S[key]
9221       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9222       len += length(value) + length(field[++i])
9223       substed = 1
9224     } else
9225       len += 1 + keylen
9226   }
9227
9228   print line
9229 }
9230
9231 _ACAWK
9232 _ACEOF
9233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9234 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9235   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9236 else
9237   cat
9238 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9239   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9240 _ACEOF
9241
9242 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9243 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9244 # trailing colons and then remove the whole line if VPATH becomes empty
9245 # (actually we leave an empty line to preserve line numbers).
9246 if test "x$srcdir" = x.; then
9247   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
9248 h
9249 s///
9250 s/^/:/
9251 s/[      ]*$/:/
9252 s/:\$(srcdir):/:/g
9253 s/:\${srcdir}:/:/g
9254 s/:@srcdir@:/:/g
9255 s/^:*//
9256 s/:*$//
9257 x
9258 s/\(=[   ]*\).*/\1/
9259 G
9260 s/\n//
9261 s/^[^=]*=[       ]*$//
9262 }'
9263 fi
9264
9265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9266 fi # test -n "$CONFIG_FILES"
9267
9268 # Set up the scripts for CONFIG_HEADERS section.
9269 # No need to generate them if there are no CONFIG_HEADERS.
9270 # This happens for instance with `./config.status Makefile'.
9271 if test -n "$CONFIG_HEADERS"; then
9272 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9273 BEGIN {
9274 _ACEOF
9275
9276 # Transform confdefs.h into an awk script `defines.awk', embedded as
9277 # here-document in config.status, that substitutes the proper values into
9278 # config.h.in to produce config.h.
9279
9280 # Create a delimiter string that does not exist in confdefs.h, to ease
9281 # handling of long lines.
9282 ac_delim='%!_!# '
9283 for ac_last_try in false false :; do
9284   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9285   if test -z "$ac_tt"; then
9286     break
9287   elif $ac_last_try; then
9288     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9289   else
9290     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9291   fi
9292 done
9293
9294 # For the awk script, D is an array of macro values keyed by name,
9295 # likewise P contains macro parameters if any.  Preserve backslash
9296 # newline sequences.
9297
9298 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9299 sed -n '
9300 s/.\{148\}/&'"$ac_delim"'/g
9301 t rset
9302 :rset
9303 s/^[     ]*#[    ]*define[       ][      ]*/ /
9304 t def
9305 d
9306 :def
9307 s/\\$//
9308 t bsnl
9309 s/["\\]/\\&/g
9310 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9311 D["\1"]=" \3"/p
9312 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9313 d
9314 :bsnl
9315 s/["\\]/\\&/g
9316 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9317 D["\1"]=" \3\\\\\\n"\\/p
9318 t cont
9319 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9320 t cont
9321 d
9322 :cont
9323 n
9324 s/.\{148\}/&'"$ac_delim"'/g
9325 t clear
9326 :clear
9327 s/\\$//
9328 t bsnlc
9329 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9330 d
9331 :bsnlc
9332 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9333 b cont
9334 ' <confdefs.h | sed '
9335 s/'"$ac_delim"'/"\\\
9336 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9337
9338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9339   for (key in D) D_is_set[key] = 1
9340   FS = "\a"
9341 }
9342 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9343   line = \$ 0
9344   split(line, arg, " ")
9345   if (arg[1] == "#") {
9346     defundef = arg[2]
9347     mac1 = arg[3]
9348   } else {
9349     defundef = substr(arg[1], 2)
9350     mac1 = arg[2]
9351   }
9352   split(mac1, mac2, "(") #)
9353   macro = mac2[1]
9354   prefix = substr(line, 1, index(line, defundef) - 1)
9355   if (D_is_set[macro]) {
9356     # Preserve the white space surrounding the "#".
9357     print prefix "define", macro P[macro] D[macro]
9358     next
9359   } else {
9360     # Replace #undef with comments.  This is necessary, for example,
9361     # in the case of _POSIX_SOURCE, which is predefined and required
9362     # on some systems where configure will not decide to define it.
9363     if (defundef == "undef") {
9364       print "/*", prefix defundef, macro, "*/"
9365       next
9366     }
9367   }
9368 }
9369 { print }
9370 _ACAWK
9371 _ACEOF
9372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9373   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9374 fi # test -n "$CONFIG_HEADERS"
9375
9376
9377 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9378 shift
9379 for ac_tag
9380 do
9381   case $ac_tag in
9382   :[FHLC]) ac_mode=$ac_tag; continue;;
9383   esac
9384   case $ac_mode$ac_tag in
9385   :[FHL]*:*);;
9386   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9387   :[FH]-) ac_tag=-:-;;
9388   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9389   esac
9390   ac_save_IFS=$IFS
9391   IFS=:
9392   set x $ac_tag
9393   IFS=$ac_save_IFS
9394   shift
9395   ac_file=$1
9396   shift
9397
9398   case $ac_mode in
9399   :L) ac_source=$1;;
9400   :[FH])
9401     ac_file_inputs=
9402     for ac_f
9403     do
9404       case $ac_f in
9405       -) ac_f="$ac_tmp/stdin";;
9406       *) # Look for the file first in the build tree, then in the source tree
9407          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9408          # because $ac_f cannot contain `:'.
9409          test -f "$ac_f" ||
9410            case $ac_f in
9411            [\\/$]*) false;;
9412            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9413            esac ||
9414            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9415       esac
9416       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9417       as_fn_append ac_file_inputs " '$ac_f'"
9418     done
9419
9420     # Let's still pretend it is `configure' which instantiates (i.e., don't
9421     # use $as_me), people would be surprised to read:
9422     #    /* config.h.  Generated by config.status.  */
9423     configure_input='Generated from '`
9424           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9425         `' by configure.'
9426     if test x"$ac_file" != x-; then
9427       configure_input="$ac_file.  $configure_input"
9428       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9429 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9430     fi
9431     # Neutralize special characters interpreted by sed in replacement strings.
9432     case $configure_input in #(
9433     *\&* | *\|* | *\\* )
9434        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9435        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9436     *) ac_sed_conf_input=$configure_input;;
9437     esac
9438
9439     case $ac_tag in
9440     *:-:* | *:-) cat >"$ac_tmp/stdin" \
9441       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9442     esac
9443     ;;
9444   esac
9445
9446   ac_dir=`$as_dirname -- "$ac_file" ||
9447 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9448          X"$ac_file" : 'X\(//\)[^/]' \| \
9449          X"$ac_file" : 'X\(//\)$' \| \
9450          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9451 printf "%s\n" X"$ac_file" |
9452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9453             s//\1/
9454             q
9455           }
9456           /^X\(\/\/\)[^/].*/{
9457             s//\1/
9458             q
9459           }
9460           /^X\(\/\/\)$/{
9461             s//\1/
9462             q
9463           }
9464           /^X\(\/\).*/{
9465             s//\1/
9466             q
9467           }
9468           s/.*/./; q'`
9469   as_dir="$ac_dir"; as_fn_mkdir_p
9470   ac_builddir=.
9471
9472 case "$ac_dir" in
9473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9474 *)
9475   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9476   # A ".." for each directory in $ac_dir_suffix.
9477   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9478   case $ac_top_builddir_sub in
9479   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9480   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9481   esac ;;
9482 esac
9483 ac_abs_top_builddir=$ac_pwd
9484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9485 # for backward compatibility:
9486 ac_top_builddir=$ac_top_build_prefix
9487
9488 case $srcdir in
9489   .)  # We are building in place.
9490     ac_srcdir=.
9491     ac_top_srcdir=$ac_top_builddir_sub
9492     ac_abs_top_srcdir=$ac_pwd ;;
9493   [\\/]* | ?:[\\/]* )  # Absolute name.
9494     ac_srcdir=$srcdir$ac_dir_suffix;
9495     ac_top_srcdir=$srcdir
9496     ac_abs_top_srcdir=$srcdir ;;
9497   *) # Relative name.
9498     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9499     ac_top_srcdir=$ac_top_build_prefix$srcdir
9500     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9501 esac
9502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9503
9504
9505   case $ac_mode in
9506   :F)
9507   #
9508   # CONFIG_FILE
9509   #
9510
9511   case $INSTALL in
9512   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9513   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9514   esac
9515   ac_MKDIR_P=$MKDIR_P
9516   case $MKDIR_P in
9517   [\\/$]* | ?:[\\/]* ) ;;
9518   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9519   esac
9520 _ACEOF
9521
9522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9523 # If the template does not know about datarootdir, expand it.
9524 # FIXME: This hack should be removed a few years after 2.60.
9525 ac_datarootdir_hack=; ac_datarootdir_seen=
9526 ac_sed_dataroot='
9527 /datarootdir/ {
9528   p
9529   q
9530 }
9531 /@datadir@/p
9532 /@docdir@/p
9533 /@infodir@/p
9534 /@localedir@/p
9535 /@mandir@/p'
9536 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9537 *datarootdir*) ac_datarootdir_seen=yes;;
9538 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9540 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9541 _ACEOF
9542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9543   ac_datarootdir_hack='
9544   s&@datadir@&$datadir&g
9545   s&@docdir@&$docdir&g
9546   s&@infodir@&$infodir&g
9547   s&@localedir@&$localedir&g
9548   s&@mandir@&$mandir&g
9549   s&\\\${datarootdir}&$datarootdir&g' ;;
9550 esac
9551 _ACEOF
9552
9553 # Neutralize VPATH when `$srcdir' = `.'.
9554 # Shell code in configure.ac might set extrasub.
9555 # FIXME: do we really want to maintain this feature?
9556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9557 ac_sed_extra="$ac_vpsub
9558 $extrasub
9559 _ACEOF
9560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9561 :t
9562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9563 s|@configure_input@|$ac_sed_conf_input|;t t
9564 s&@top_builddir@&$ac_top_builddir_sub&;t t
9565 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9566 s&@srcdir@&$ac_srcdir&;t t
9567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9568 s&@top_srcdir@&$ac_top_srcdir&;t t
9569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9570 s&@builddir@&$ac_builddir&;t t
9571 s&@abs_builddir@&$ac_abs_builddir&;t t
9572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9573 s&@INSTALL@&$ac_INSTALL&;t t
9574 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9575 $ac_datarootdir_hack
9576 "
9577 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9578   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9579
9580 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9581   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9582   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9583       "$ac_tmp/out"`; test -z "$ac_out"; } &&
9584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9585 which seems to be undefined.  Please make sure it is defined" >&5
9586 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9587 which seems to be undefined.  Please make sure it is defined" >&2;}
9588
9589   rm -f "$ac_tmp/stdin"
9590   case $ac_file in
9591   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9592   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9593   esac \
9594   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9595  ;;
9596   :H)
9597   #
9598   # CONFIG_HEADER
9599   #
9600   if test x"$ac_file" != x-; then
9601     {
9602       printf "%s\n" "/* $configure_input  */" >&1 \
9603       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9604     } >"$ac_tmp/config.h" \
9605       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9606     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9607       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9608 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9609     else
9610       rm -f "$ac_file"
9611       mv "$ac_tmp/config.h" "$ac_file" \
9612         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9613     fi
9614   else
9615     printf "%s\n" "/* $configure_input  */" >&1 \
9616       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9617       || as_fn_error $? "could not create -" "$LINENO" 5
9618   fi
9619 # Compute "$ac_file"'s index in $config_headers.
9620 _am_arg="$ac_file"
9621 _am_stamp_count=1
9622 for _am_header in $config_headers :; do
9623   case $_am_header in
9624     $_am_arg | $_am_arg:* )
9625       break ;;
9626     * )
9627       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9628   esac
9629 done
9630 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9631 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9632          X"$_am_arg" : 'X\(//\)[^/]' \| \
9633          X"$_am_arg" : 'X\(//\)$' \| \
9634          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9635 printf "%s\n" X"$_am_arg" |
9636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9637             s//\1/
9638             q
9639           }
9640           /^X\(\/\/\)[^/].*/{
9641             s//\1/
9642             q
9643           }
9644           /^X\(\/\/\)$/{
9645             s//\1/
9646             q
9647           }
9648           /^X\(\/\).*/{
9649             s//\1/
9650             q
9651           }
9652           s/.*/./; q'`/stamp-h$_am_stamp_count
9653  ;;
9654
9655   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9656 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
9657  ;;
9658   esac
9659
9660
9661   case $ac_file$ac_mode in
9662     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9663   # Older Autoconf quotes --file arguments for eval, but not when files
9664   # are listed without --file.  Let's play safe and only enable the eval
9665   # if we detect the quoting.
9666   # TODO: see whether this extra hack can be removed once we start
9667   # requiring Autoconf 2.70 or later.
9668   case $CONFIG_FILES in #(
9669   *\'*) :
9670     eval set x "$CONFIG_FILES" ;; #(
9671   *) :
9672     set x $CONFIG_FILES ;; #(
9673   *) :
9674      ;;
9675 esac
9676   shift
9677   # Used to flag and report bootstrapping failures.
9678   am_rc=0
9679   for am_mf
9680   do
9681     # Strip MF so we end up with the name of the file.
9682     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
9683     # Check whether this is an Automake generated Makefile which includes
9684     # dependency-tracking related rules and includes.
9685     # Grep'ing the whole file directly is not great: AIX grep has a line
9686     # limit of 2048, but all sed's we know have understand at least 4000.
9687     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
9688       || continue
9689     am_dirpart=`$as_dirname -- "$am_mf" ||
9690 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9691          X"$am_mf" : 'X\(//\)[^/]' \| \
9692          X"$am_mf" : 'X\(//\)$' \| \
9693          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9694 printf "%s\n" X"$am_mf" |
9695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9696             s//\1/
9697             q
9698           }
9699           /^X\(\/\/\)[^/].*/{
9700             s//\1/
9701             q
9702           }
9703           /^X\(\/\/\)$/{
9704             s//\1/
9705             q
9706           }
9707           /^X\(\/\).*/{
9708             s//\1/
9709             q
9710           }
9711           s/.*/./; q'`
9712     am_filepart=`$as_basename -- "$am_mf" ||
9713 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
9714          X"$am_mf" : 'X\(//\)$' \| \
9715          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9716 printf "%s\n" X/"$am_mf" |
9717     sed '/^.*\/\([^/][^/]*\)\/*$/{
9718             s//\1/
9719             q
9720           }
9721           /^X\/\(\/\/\)$/{
9722             s//\1/
9723             q
9724           }
9725           /^X\/\(\/\).*/{
9726             s//\1/
9727             q
9728           }
9729           s/.*/./; q'`
9730     { echo "$as_me:$LINENO: cd "$am_dirpart" \
9731       && sed -e '/# am--include-marker/d' "$am_filepart" \
9732         | $MAKE -f - am--depfiles" >&5
9733    (cd "$am_dirpart" \
9734       && sed -e '/# am--include-marker/d' "$am_filepart" \
9735         | $MAKE -f - am--depfiles) >&5 2>&5
9736    ac_status=$?
9737    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738    (exit $ac_status); } || am_rc=$?
9739   done
9740   if test $am_rc -ne 0; then
9741     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9742 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9743 as_fn_error $? "Something went wrong bootstrapping makefile fragments
9744     for automatic dependency tracking.  If GNU make was not used, consider
9745     re-running the configure script with MAKE=\"gmake\" (or whatever is
9746     necessary).  You can also try re-running configure with the
9747     '--disable-dependency-tracking' option to at least be able to build
9748     the package (albeit without support for automatic dependency tracking).
9749 See \`config.log' for more details" "$LINENO" 5; }
9750   fi
9751   { am_dirpart=; unset am_dirpart;}
9752   { am_filepart=; unset am_filepart;}
9753   { am_mf=; unset am_mf;}
9754   { am_rc=; unset am_rc;}
9755   rm -f conftest-deps.mk
9756 }
9757  ;;
9758
9759   esac
9760 done # for ac_tag
9761
9762
9763 as_fn_exit 0
9764 _ACEOF
9765 ac_clean_files=$ac_clean_files_save
9766
9767 test $ac_write_fail = 0 ||
9768   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9769
9770
9771 # configure is writing to config.log, and then calls config.status.
9772 # config.status does its own redirection, appending to config.log.
9773 # Unfortunately, on DOS this fails, as config.log is still kept open
9774 # by configure, so config.status won't be able to write to it; its
9775 # output is simply discarded.  So we exec the FD to /dev/null,
9776 # effectively closing config.log, so it can be properly (re)opened and
9777 # appended to by config.status.  When coming back to configure, we
9778 # need to make the FD available again.
9779 if test "$no_create" != yes; then
9780   ac_cs_success=:
9781   ac_config_status_args=
9782   test "$silent" = yes &&
9783     ac_config_status_args="$ac_config_status_args --quiet"
9784   exec 5>/dev/null
9785   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9786   exec 5>>config.log
9787   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9788   # would make configure fail if this is the last instruction.
9789   $ac_cs_success || as_fn_exit 1
9790 fi
9791 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9793 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9794 fi
9795
9796
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
9798         d2x has been configured successfully.
9799
9800         Targets: $TARGETS
9801         Features: $D2X_FEATURES
9802
9803         Shared game data directory (unix only): $sharepath
9804         " >&5
9805 printf "%s\n" "
9806         d2x has been configured successfully.
9807
9808         Targets: $TARGETS
9809         Features: $D2X_FEATURES
9810
9811         Shared game data directory (unix only): $sharepath
9812         " >&6; }
9813