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