[ucsim] Intro -U, -u options and configurable NL in UART display
[sdcc.git] / sdcc / configure
blobb509c84328e438c054fb844ddc63b18f0ba1d034
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
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 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
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
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
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.
45 as_nl='
47 export as_nl
48 IFS=" "" $as_nl"
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
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).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75 # The user is always right.
76 if ${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=';'
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
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
100 IFS=$as_save_IFS
103 esac
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.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if 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
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.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $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'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
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
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
156 esac
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -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 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else $as_nop
189 as_have_required=no
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
194 else $as_nop
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 IFS=$as_save_IFS
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
205 as_found=:
206 case $as_dir in #(
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217 break 2
220 done;;
221 esac
222 as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
228 else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
237 if test "x$CONFIG_SHELL" != x
238 then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno
261 then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
273 exit 1
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
291 { eval $1=; unset $1;}
293 as_unset=as_fn_unset
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
301 return $1
302 } # as_fn_set_status
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
318 return $?
320 as_nop=as_fn_nop
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
353 /^X\(\/\/\)$/{
354 s//\1/
357 /^X\(\/\).*/{
358 s//\1/
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 } # as_fn_mkdir_p
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else $as_nop
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
405 as_val=$(( $* ))
407 else $as_nop
408 as_fn_arith ()
410 as_val=`expr "$@" || test $? -eq 1`
412 fi # as_fn_arith
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
419 return $?
421 as_nop=as_fn_nop
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
467 /^X\/\(\/\/\)$/{
468 s//\1/
471 /^X\/\(\/\).*/{
472 s//\1/
475 s/.*/./; q'`
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
498 :lineno
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
534 ECHO_N='-n';;
535 esac
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
547 else
548 rm -f conf$$.dir
549 mkdir conf$$.dir 2>/dev/null
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s='ln -s'
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559 as_ln_s='cp -pR'
560 elif ln conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s=ln
562 else
563 as_ln_s='cp -pR'
565 else
566 as_ln_s='cp -pR'
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
573 else
574 test -d ./-p && rmdir ./-p
575 as_mkdir_p=false
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597 # Initializations.
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
608 # Identity of this package.
609 PACKAGE_NAME=''
610 PACKAGE_TARNAME=''
611 PACKAGE_VERSION=''
612 PACKAGE_STRING=''
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
616 ac_unique_file=".version"
617 ac_unique_file="Makefile.in"
618 # Factoring default headers for most tests.
619 ac_includes_default="\
620 #include <stddef.h>
621 #ifdef HAVE_STDIO_H
622 # include <stdio.h>
623 #endif
624 #ifdef HAVE_STDLIB_H
625 # include <stdlib.h>
626 #endif
627 #ifdef HAVE_STRING_H
628 # include <string.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
638 #endif
639 #ifdef HAVE_SYS_TYPES_H
640 # include <sys/types.h>
641 #endif
642 #ifdef HAVE_SYS_STAT_H
643 # include <sys/stat.h>
644 #endif
645 #ifdef HAVE_UNISTD_H
646 # include <unistd.h>
647 #endif"
649 ac_header_c_list=
650 enable_option_checking=no
651 ac_subst_vars='LTLIBOBJS
652 LIBOBJS
653 subdirs
654 OPT_ENABLE_LIBGC
655 MAKEINDEX
656 PDFLATEX
657 DVIPDFM
658 LATEX
659 LATEX2HTML
661 OPT_ENABLE_DOC
662 OPT_DISABLE_NON_FREE
663 OPT_DISABLE_SDBINUTILS
664 OPT_DISABLE_SDCDB
665 OPT_DISABLE_SDCPP
666 OPT_DISABLE_PACKIHX
667 OPT_DISABLE_DEVICE_LIB
668 OPT_DISABLE_UCSIM
669 OPT_DISABLE_AVR
670 OPT_DISABLE_MOS65C02
671 OPT_DISABLE_MOS6502
672 OPT_DISABLE_PDK16
673 OPT_DISABLE_PDK15
674 OPT_DISABLE_PDK14
675 OPT_DISABLE_PDK13
676 OPT_DISABLE_STM8
677 OPT_DISABLE_S08
678 OPT_DISABLE_HC08
679 OPT_DISABLE_PIC16
680 OPT_DISABLE_PIC14
681 OPT_DISABLE_DS400
682 OPT_DISABLE_DS390
683 OPT_DISABLE_R800
684 OPT_DISABLE_Z80N
685 OPT_DISABLE_EZ80_Z80
686 OPT_DISABLE_TLCS90
687 OPT_DISABLE_SM83
688 OPT_DISABLE_R3KA
689 OPT_DISABLE_R2KA
690 OPT_DISABLE_R2K
691 OPT_DISABLE_Z180
692 OPT_DISABLE_Z80
693 OPT_DISABLE_MCS51
694 SVN_REVISION
695 GIT_REVISION
696 non_free_lib_dir_suffix
697 lib_dir_suffix
698 non_free_include_dir_suffix
699 non_free_inclib_dir_suffix
700 include_dir_suffix
701 inclib_dir_suffix
702 LIB_TYPE
703 sdccconf_h_dir_separator
704 WALL_FLAG
705 MAKEDEP_CXX
706 MAKEDEP
707 HAVE_CXX11
708 CCACHE
709 pkgpyexecdir
710 pyexecdir
711 pkgpythondir
712 pythondir
713 PYTHON_EXEC_PREFIX
714 PYTHON_PREFIX
715 PYTHON_PLATFORM
716 PYTHON_VERSION
717 PYTHON
718 YACC
724 STRIP
725 AUTOCONF
726 RANLIB
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 ac_ct_CXX
731 CXXFLAGS
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
741 VERSIONP
742 VERSIONLO
743 VERSIONHI
744 VERSION
745 PACKAGE
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 runstatedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 with_python_sys_prefix
798 with_python_prefix
799 with_python_exec_prefix
800 with_ccache
801 enable_mcs51_port
802 enable_z80_port
803 enable_z180_port
804 enable_r2k_port
805 enable_r2ka_port
806 enable_r3ka_port
807 enable_sm83_port
808 enable_tlcs90_port
809 enable_ez80_z80_port
810 enable_z80n_port
811 enable_r800_port
812 enable_ds390_port
813 enable_ds400_port
814 enable_pic14_port
815 enable_pic16_port
816 enable_hc08_port
817 enable_s08_port
818 enable_stm8_port
819 enable_pdk13_port
820 enable_pdk14_port
821 enable_pdk15_port
822 enable_pdk16_port
823 enable_mos6502_port
824 enable_mos65c02_port
825 enable_ucsim
826 enable_device_lib
827 enable_packihx
828 enable_sdcpp
829 enable_sdcdb
830 enable_sdbinutils
831 enable_non_free
832 enable_doc
833 enable_libgc
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
845 CXXFLAGS
847 PYTHON
848 sdccconf_h_dir_separator
849 LIB_TYPE
850 inclib_dir_suffix
851 include_dir_suffix
852 non_free_inclib_dir_suffix
853 non_free_include_dir_suffix
854 lib_dir_suffix
855 non_free_lib_dir_suffix
856 docdir'
857 ac_subdirs_all='support/cpp
858 support/packihx
859 sim/ucsim
860 debugger/mcs51
861 support/sdbinutils
862 device/lib/pic14
863 device/non-free/lib/pic14
864 device/lib/pic16
865 device/non-free/lib/pic16'
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 runstatedir='${localstatedir}/run'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
916 ac_prev=
917 ac_dashdash=
918 for ac_option
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
923 ac_prev=
924 continue
927 case $ac_option in
928 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 *=) ac_optarg= ;;
930 *) ac_optarg=yes ;;
931 esac
933 case $ac_dashdash$ac_option in
935 ac_dashdash=yes ;;
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 bindir=$ac_optarg ;;
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
954 --config-cache | -C)
955 cache_file=config.cache ;;
957 -datadir | --datadir | --datadi | --datad)
958 ac_prev=datadir ;;
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: \`$ac_useropt'"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1154 -runstatedir | --runstatedir | --runstatedi | --runstated \
1155 | --runstate | --runstat | --runsta | --runst | --runs \
1156 | --run | --ru | --r)
1157 ac_prev=runstatedir ;;
1158 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1159 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1160 | --run=* | --ru=* | --r=*)
1161 runstatedir=$ac_optarg ;;
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
1167 sbindir=$ac_optarg ;;
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
1178 sharedstatedir=$ac_optarg ;;
1180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
1183 site=$ac_optarg ;;
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1208 -with-* | --with-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: \`$ac_useropt'"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: \`$ac_useropt'"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=no ;;
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 esac
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1273 # FIXME: should be removed in autoconf 3.0.
1274 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280 esac
1281 done
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $? "missing argument to $ac_option"
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1290 no) ;;
1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 esac
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir runstatedir
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
1310 case $ac_val in
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 esac
1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $? "pwd does not report name of working directory"
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 printf "%s\n" X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1365 /^X\(\/\/\)$/{
1366 s//\1/
1369 /^X\(\/\).*/{
1370 s//\1/
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1378 else
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413 \`configure' configures this package to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1422 Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 [PREFIX]
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1467 _ACEOF
1469 cat <<\_ACEOF
1471 Program names:
1472 --program-prefix=PREFIX prepend PREFIX to installed program names
1473 --program-suffix=SUFFIX append SUFFIX to installed program names
1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476 System types:
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 _ACEOF
1482 if test -n "$ac_init_help"; then
1484 cat <<\_ACEOF
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --disable-mcs51-port Excludes the Intel mcs51 port
1491 --disable-z80-port Excludes the Z80 port
1492 --disable-z180-port Excludes the Z180 port
1493 --disable-r2k-port Excludes the Rabbit 2000 port
1494 --disable-r2ka-port Excludes the Rabbit 2000A port
1495 --disable-r3ka-port Excludes the Rabbit 3000A port
1496 --disable-sm83-port Excludes the SM83 port
1497 --disable-tlcs90-port Excludes the TLCS-90 port
1498 --disable-ez80_z80-port Excludes the EZ80-Z80 port
1499 --disable-z80n-port Excludes the Z80N port
1500 --disable-r800-port Excludes the R800 port
1501 --disable-ds390-port Excludes the DS390 port
1502 --disable-ds400-port Excludes the DS400 port
1503 --disable-pic14-port Excludes the PIC14 port
1504 --disable-pic16-port Excludes the PIC16 port
1505 --disable-hc08-port Excludes the HC08 port
1506 --disable-s08-port Excludes the S08 port
1507 --disable-stm8-port Excludes the STM8 port
1508 --disable-pdk13-port Excludes the PDK13 port
1509 --disable-pdk14-port Excludes the PDK14 port
1510 --disable-pdk15-port Excludes the PDK15 port
1511 --enable-pdk16-port Includes the PDK16 port
1512 --disable-mos6502-port Excludes the MOS6502 port
1513 --disable-mos65c02-port Excludes the MOS65C02 port
1514 --disable-ucsim Disables configuring and building of ucsim
1515 --disable-device-lib Disables building device libraries
1516 --disable-packihx Disables building packihx
1517 --disable-sdcpp Disables building sdcpp
1518 --disable-sdcdb Disables building sdcdb
1519 --disable-sdbinutils Disables configuring and building of sdbinutils
1520 --disable-non-free Disables non-free runtime library parts
1521 --enable-doc Enables building the documentation
1522 --enable-libgc Use the Bohem memory allocator. Lower runtime
1523 footprint.
1525 Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1528 --with-python-sys-prefix
1529 use Python's sys.prefix and sys.exec_prefix values
1530 --with-python_prefix override the default PYTHON_PREFIX
1531 --with-python_exec_prefix
1532 override the default PYTHON_EXEC_PREFIX
1533 --without-ccache do not use ccache even if available
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 CPP C preprocessor
1544 CXX C++ compiler command
1545 CXXFLAGS C++ compiler flags
1546 PYTHON the Python interpreter
1547 sdccconf_h_dir_separator
1548 needed in sdccconf.h: either "/" (default) or "\\"
1549 LIB_TYPE library type: LIB, SDCCLIB, AR or RANLIB (default)
1550 inclib_dir_suffix
1551 appended to datadir to define SDCC's include/lib directory
1552 include_dir_suffix
1553 appended to datadir to define SDCC's include directory
1554 non_free_inclib_dir_suffix
1555 appended to datadir to define SDCC's non-free include/lib
1556 directory
1557 non_free_include_dir_suffix
1558 appended to datadir to define SDCC's non-free include directory
1559 lib_dir_suffix
1560 appended to datadir to define SDCC's library root directory
1561 non_free_lib_dir_suffix
1562 appended to datadir to define SDCC's non-free library root
1563 directory
1564 docdir documentation installation directory
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1569 Report bugs to the package provider.
1570 _ACEOF
1571 ac_status=$?
1574 if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577 test -d "$ac_dir" ||
1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579 continue
1580 ac_builddir=.
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1598 case $srcdir in
1599 .) # We are building in place.
1600 ac_srcdir=.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for configure.gnu first; this name is used for a wrapper for
1616 # Metaconfig's "Configure" on case-insensitive file systems.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure" --help=recursive
1623 else
1624 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 fi || ac_status=$?
1626 cd "$ac_pwd" || { ac_status=$?; break; }
1627 done
1630 test -n "$ac_init_help" && exit $ac_status
1631 if $ac_init_version; then
1632 cat <<\_ACEOF
1633 configure
1634 generated by GNU Autoconf 2.71
1636 Copyright (C) 2021 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1639 _ACEOF
1640 exit
1643 ## ------------------------ ##
1644 ## Autoconf initialization. ##
1645 ## ------------------------ ##
1647 # ac_fn_c_try_compile LINENO
1648 # --------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext conftest.beam
1654 if { { ac_try="$ac_compile"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 printf "%s\n" "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext
1673 then :
1674 ac_retval=0
1675 else $as_nop
1676 printf "%s\n" "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=1
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1684 } # ac_fn_c_try_compile
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_cpp ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 printf "%s\n" "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } > conftest.i && {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1711 then :
1712 ac_retval=0
1713 else $as_nop
1714 printf "%s\n" "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1717 ac_retval=1
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1722 } # ac_fn_c_try_cpp
1724 # ac_fn_cxx_try_compile LINENO
1725 # ----------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_cxx_try_compile ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext conftest.beam
1731 if { { ac_try="$ac_compile"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 printf "%s\n" "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext
1750 then :
1751 ac_retval=0
1752 else $as_nop
1753 printf "%s\n" "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1756 ac_retval=1
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_cxx_try_compile
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 printf %s "checking for $2... " >&6; }
1772 if eval test \${$3+y}
1773 then :
1774 printf %s "(cached) " >&6
1775 else $as_nop
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1779 #include <$2>
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"
1782 then :
1783 eval "$3=yes"
1784 else $as_nop
1785 eval "$3=no"
1787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1789 eval ac_res=\$$3
1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 printf "%s\n" "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 } # ac_fn_c_check_header_compile
1796 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1797 # ---------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_cxx_check_header_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 printf %s "checking for $2... " >&6; }
1805 if eval test \${$3+y}
1806 then :
1807 printf %s "(cached) " >&6
1808 else $as_nop
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_cxx_try_compile "$LINENO"
1815 then :
1816 eval "$3=yes"
1817 else $as_nop
1818 eval "$3=no"
1820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1822 eval ac_res=\$$3
1823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 printf "%s\n" "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_cxx_check_header_compile
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 printf "%s\n" "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 test -x conftest$ac_exeext
1858 then :
1859 ac_retval=0
1860 else $as_nop
1861 printf "%s\n" "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868 # interfere with the next link command; also delete a directory that is
1869 # left behind by Apple's compiler. We do this before executing the actions.
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1874 } # ac_fn_c_try_link
1876 # ac_fn_c_check_func LINENO FUNC VAR
1877 # ----------------------------------
1878 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1879 ac_fn_c_check_func ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 printf %s "checking for $2... " >&6; }
1884 if eval test \${$3+y}
1885 then :
1886 printf %s "(cached) " >&6
1887 else $as_nop
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below. */
1897 #include <limits.h>
1898 #undef $2
1900 /* Override any GCC internal prototype to avoid an error.
1901 Use char because int might match the return type of a GCC
1902 builtin and then its argument prototype would still apply. */
1903 #ifdef __cplusplus
1904 extern "C"
1905 #endif
1906 char $2 ();
1907 /* The GNU C library defines this for functions which it implements
1908 to always fail with ENOSYS. Some functions are actually named
1909 something starting with __ and the normal name is an alias. */
1910 #if defined __stub_$2 || defined __stub___$2
1911 choke me
1912 #endif
1915 main (void)
1917 return $2 ();
1919 return 0;
1921 _ACEOF
1922 if ac_fn_c_try_link "$LINENO"
1923 then :
1924 eval "$3=yes"
1925 else $as_nop
1926 eval "$3=no"
1928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1929 conftest$ac_exeext conftest.$ac_ext
1931 eval ac_res=\$$3
1932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 printf "%s\n" "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_func
1938 # ac_fn_c_try_run LINENO
1939 # ----------------------
1940 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1941 # executables *can* be run.
1942 ac_fn_c_try_run ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_link"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 printf "%s\n" "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>&5
1953 ac_status=$?
1954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1956 { { case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 printf "%s\n" "$ac_try_echo"; } >&5
1962 (eval "$ac_try") 2>&5
1963 ac_status=$?
1964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; }; }
1966 then :
1967 ac_retval=0
1968 else $as_nop
1969 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1970 printf "%s\n" "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1973 ac_retval=$ac_status
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1979 } # ac_fn_c_try_run
1981 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1982 # --------------------------------------------
1983 # Tries to find the compile-time value of EXPR in a program that includes
1984 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1985 # computed
1986 ac_fn_c_compute_int ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if test "$cross_compiling" = yes; then
1990 # Depending upon the size, compute the lo and hi bounds.
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 main (void)
1997 static int test_array [1 - 2 * !(($2) >= 0)];
1998 test_array [0] = 0;
1999 return test_array [0];
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"
2006 then :
2007 ac_lo=0 ac_mid=0
2008 while :; do
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2013 main (void)
2015 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2016 test_array [0] = 0;
2017 return test_array [0];
2020 return 0;
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"
2024 then :
2025 ac_hi=$ac_mid; break
2026 else $as_nop
2027 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2028 if test $ac_lo -le $ac_mid; then
2029 ac_lo= ac_hi=
2030 break
2032 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2035 done
2036 else $as_nop
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2041 main (void)
2043 static int test_array [1 - 2 * !(($2) < 0)];
2044 test_array [0] = 0;
2045 return test_array [0];
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"
2052 then :
2053 ac_hi=-1 ac_mid=-1
2054 while :; do
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2059 main (void)
2061 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2062 test_array [0] = 0;
2063 return test_array [0];
2066 return 0;
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"
2070 then :
2071 ac_lo=$ac_mid; break
2072 else $as_nop
2073 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2074 if test $ac_mid -le $ac_hi; then
2075 ac_lo= ac_hi=
2076 break
2078 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2081 done
2082 else $as_nop
2083 ac_lo= ac_hi=
2085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2088 # Binary search between lo and hi bounds.
2089 while test "x$ac_lo" != "x$ac_hi"; do
2090 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2095 main (void)
2097 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2098 test_array [0] = 0;
2099 return test_array [0];
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"
2106 then :
2107 ac_hi=$ac_mid
2108 else $as_nop
2109 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2112 done
2113 case $ac_lo in #((
2114 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2115 '') ac_retval=1 ;;
2116 esac
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2121 static long int longval (void) { return $2; }
2122 static unsigned long int ulongval (void) { return $2; }
2123 #include <stdio.h>
2124 #include <stdlib.h>
2126 main (void)
2129 FILE *f = fopen ("conftest.val", "w");
2130 if (! f)
2131 return 1;
2132 if (($2) < 0)
2134 long int i = longval ();
2135 if (i != ($2))
2136 return 1;
2137 fprintf (f, "%ld", i);
2139 else
2141 unsigned long int i = ulongval ();
2142 if (i != ($2))
2143 return 1;
2144 fprintf (f, "%lu", i);
2146 /* Do not output a trailing newline, as this causes \r\n confusion
2147 on some platforms. */
2148 return ferror (f) || fclose (f) != 0;
2151 return 0;
2153 _ACEOF
2154 if ac_fn_c_try_run "$LINENO"
2155 then :
2156 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2157 else $as_nop
2158 ac_retval=1
2160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2161 conftest.$ac_objext conftest.beam conftest.$ac_ext
2162 rm -f conftest.val
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 as_fn_set_status $ac_retval
2168 } # ac_fn_c_compute_int
2169 ac_configure_args_raw=
2170 for ac_arg
2172 case $ac_arg in
2173 *\'*)
2174 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 esac
2176 as_fn_append ac_configure_args_raw " '$ac_arg'"
2177 done
2179 case $ac_configure_args_raw in
2180 *$as_nl*)
2181 ac_safe_unquote= ;;
2183 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2184 ac_unsafe_a="$ac_unsafe_z#~"
2185 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2186 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2187 esac
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2193 It was created by $as_me, which was
2194 generated by GNU Autoconf 2.71. Invocation command line was
2196 $ $0$ac_configure_args_raw
2198 _ACEOF
2199 exec 5>>config.log
2201 cat <<_ASUNAME
2202 ## --------- ##
2203 ## Platform. ##
2204 ## --------- ##
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2223 _ASUNAME
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2228 IFS=$as_save_IFS
2229 case $as_dir in #(((
2230 '') as_dir=./ ;;
2231 */) ;;
2232 *) as_dir=$as_dir/ ;;
2233 esac
2234 printf "%s\n" "PATH: $as_dir"
2235 done
2236 IFS=$as_save_IFS
2238 } >&5
2240 cat >&5 <<_ACEOF
2243 ## ----------- ##
2244 ## Core tests. ##
2245 ## ----------- ##
2247 _ACEOF
2250 # Keep a trace of the command line.
2251 # Strip out --no-create and --no-recursion so they do not pile up.
2252 # Strip out --silent because we don't want to record it for future runs.
2253 # Also quote any args containing shell meta-characters.
2254 # Make two passes to allow for proper duplicate-argument suppression.
2255 ac_configure_args=
2256 ac_configure_args0=
2257 ac_configure_args1=
2258 ac_must_keep_next=false
2259 for ac_pass in 1 2
2261 for ac_arg
2263 case $ac_arg in
2264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2266 | -silent | --silent | --silen | --sile | --sil)
2267 continue ;;
2268 *\'*)
2269 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 esac
2271 case $ac_pass in
2272 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2274 as_fn_append ac_configure_args1 " '$ac_arg'"
2275 if test $ac_must_keep_next = true; then
2276 ac_must_keep_next=false # Got value, back to normal.
2277 else
2278 case $ac_arg in
2279 *=* | --config-cache | -C | -disable-* | --disable-* \
2280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2282 | -with-* | --with-* | -without-* | --without-* | --x)
2283 case "$ac_configure_args0 " in
2284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2285 esac
2287 -* ) ac_must_keep_next=true ;;
2288 esac
2290 as_fn_append ac_configure_args " '$ac_arg'"
2292 esac
2293 done
2294 done
2295 { ac_configure_args0=; unset ac_configure_args0;}
2296 { ac_configure_args1=; unset ac_configure_args1;}
2298 # When interrupted or exit'd, cleanup temporary files, and complete
2299 # config.log. We remove comments because anyway the quotes in there
2300 # would cause problems or look ugly.
2301 # WARNING: Use '\'' to represent an apostrophe within the trap.
2302 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2303 trap 'exit_status=$?
2304 # Sanitize IFS.
2305 IFS=" "" $as_nl"
2306 # Save into config.log some information that might help in debugging.
2308 echo
2310 printf "%s\n" "## ---------------- ##
2311 ## Cache variables. ##
2312 ## ---------------- ##"
2313 echo
2314 # The following way of writing the cache mishandles newlines in values,
2316 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2317 eval ac_val=\$$ac_var
2318 case $ac_val in #(
2319 *${as_nl}*)
2320 case $ac_var in #(
2321 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2322 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2323 esac
2324 case $ac_var in #(
2325 _ | IFS | as_nl) ;; #(
2326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2327 *) { eval $ac_var=; unset $ac_var;} ;;
2328 esac ;;
2329 esac
2330 done
2331 (set) 2>&1 |
2332 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2333 *${as_nl}ac_space=\ *)
2334 sed -n \
2335 "s/'\''/'\''\\\\'\'''\''/g;
2336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2337 ;; #(
2339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2341 esac |
2342 sort
2344 echo
2346 printf "%s\n" "## ----------------- ##
2347 ## Output variables. ##
2348 ## ----------------- ##"
2349 echo
2350 for ac_var in $ac_subst_vars
2352 eval ac_val=\$$ac_var
2353 case $ac_val in
2354 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 esac
2356 printf "%s\n" "$ac_var='\''$ac_val'\''"
2357 done | sort
2358 echo
2360 if test -n "$ac_subst_files"; then
2361 printf "%s\n" "## ------------------- ##
2362 ## File substitutions. ##
2363 ## ------------------- ##"
2364 echo
2365 for ac_var in $ac_subst_files
2367 eval ac_val=\$$ac_var
2368 case $ac_val in
2369 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 esac
2371 printf "%s\n" "$ac_var='\''$ac_val'\''"
2372 done | sort
2373 echo
2376 if test -s confdefs.h; then
2377 printf "%s\n" "## ----------- ##
2378 ## confdefs.h. ##
2379 ## ----------- ##"
2380 echo
2381 cat confdefs.h
2382 echo
2384 test "$ac_signal" != 0 &&
2385 printf "%s\n" "$as_me: caught signal $ac_signal"
2386 printf "%s\n" "$as_me: exit $exit_status"
2387 } >&5
2388 rm -f core *.core core.conftest.* &&
2389 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2390 exit $exit_status
2392 for ac_signal in 1 2 13 15; do
2393 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2394 done
2395 ac_signal=0
2397 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2398 rm -f -r conftest* confdefs.h
2400 printf "%s\n" "/* confdefs.h */" > confdefs.h
2402 # Predefined preprocessor variables.
2404 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2406 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2408 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2410 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2412 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2414 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2417 # Let the site file select an alternate cache file if it wants to.
2418 # Prefer an explicitly selected file to automatically selected ones.
2419 if test -n "$CONFIG_SITE"; then
2420 ac_site_files="$CONFIG_SITE"
2421 elif test "x$prefix" != xNONE; then
2422 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2423 else
2424 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2427 for ac_site_file in $ac_site_files
2429 case $ac_site_file in #(
2430 */*) :
2431 ;; #(
2432 *) :
2433 ac_site_file=./$ac_site_file ;;
2434 esac
2435 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2437 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2438 sed 's/^/| /' "$ac_site_file" >&5
2439 . "$ac_site_file" \
2440 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2442 as_fn_error $? "failed to load site script $ac_site_file
2443 See \`config.log' for more details" "$LINENO" 5; }
2445 done
2447 if test -r "$cache_file"; then
2448 # Some versions of bash will fail to source /dev/null (special files
2449 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2450 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2452 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2453 case $cache_file in
2454 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2455 *) . "./$cache_file";;
2456 esac
2458 else
2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2460 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2461 >$cache_file
2464 # Test code for whether the C compiler supports C89 (global declarations)
2465 ac_c_conftest_c89_globals='
2466 /* Does the compiler advertise C89 conformance?
2467 Do not test the value of __STDC__, because some compilers set it to 0
2468 while being otherwise adequately conformant. */
2469 #if !defined __STDC__
2470 # error "Compiler does not advertise C89 conformance"
2471 #endif
2473 #include <stddef.h>
2474 #include <stdarg.h>
2475 struct stat;
2476 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2477 struct buf { int x; };
2478 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2479 static char *e (p, i)
2480 char **p;
2481 int i;
2483 return p[i];
2485 static char *f (char * (*g) (char **, int), char **p, ...)
2487 char *s;
2488 va_list v;
2489 va_start (v,p);
2490 s = g (p, va_arg (v,int));
2491 va_end (v);
2492 return s;
2495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2496 function prototypes and stuff, but not \xHH hex character constants.
2497 These do not provoke an error unfortunately, instead are silently treated
2498 as an "x". The following induces an error, until -std is added to get
2499 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2500 array size at least. It is necessary to write \x00 == 0 to get something
2501 that is true only with -std. */
2502 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2504 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2505 inside strings and character constants. */
2506 #define FOO(x) '\''x'\''
2507 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2509 int test (int i, double x);
2510 struct s1 {int (*f) (int a);};
2511 struct s2 {int (*f) (double a);};
2512 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2513 int, int);'
2515 # Test code for whether the C compiler supports C89 (body of main).
2516 ac_c_conftest_c89_main='
2517 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2520 # Test code for whether the C compiler supports C99 (global declarations)
2521 ac_c_conftest_c99_globals='
2522 // Does the compiler advertise C99 conformance?
2523 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2524 # error "Compiler does not advertise C99 conformance"
2525 #endif
2527 #include <stdbool.h>
2528 extern int puts (const char *);
2529 extern int printf (const char *, ...);
2530 extern int dprintf (int, const char *, ...);
2531 extern void *malloc (size_t);
2533 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2534 // dprintf is used instead of fprintf to avoid needing to declare
2535 // FILE and stderr.
2536 #define debug(...) dprintf (2, __VA_ARGS__)
2537 #define showlist(...) puts (#__VA_ARGS__)
2538 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2539 static void
2540 test_varargs_macros (void)
2542 int x = 1234;
2543 int y = 5678;
2544 debug ("Flag");
2545 debug ("X = %d\n", x);
2546 showlist (The first, second, and third items.);
2547 report (x>y, "x is %d but y is %d", x, y);
2550 // Check long long types.
2551 #define BIG64 18446744073709551615ull
2552 #define BIG32 4294967295ul
2553 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2554 #if !BIG_OK
2555 #error "your preprocessor is broken"
2556 #endif
2557 #if BIG_OK
2558 #else
2559 #error "your preprocessor is broken"
2560 #endif
2561 static long long int bignum = -9223372036854775807LL;
2562 static unsigned long long int ubignum = BIG64;
2564 struct incomplete_array
2566 int datasize;
2567 double data[];
2570 struct named_init {
2571 int number;
2572 const wchar_t *name;
2573 double average;
2576 typedef const char *ccp;
2578 static inline int
2579 test_restrict (ccp restrict text)
2581 // See if C++-style comments work.
2582 // Iterate through items via the restricted pointer.
2583 // Also check for declarations in for loops.
2584 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2585 continue;
2586 return 0;
2589 // Check varargs and va_copy.
2590 static bool
2591 test_varargs (const char *format, ...)
2593 va_list args;
2594 va_start (args, format);
2595 va_list args_copy;
2596 va_copy (args_copy, args);
2598 const char *str = "";
2599 int number = 0;
2600 float fnumber = 0;
2602 while (*format)
2604 switch (*format++)
2606 case '\''s'\'': // string
2607 str = va_arg (args_copy, const char *);
2608 break;
2609 case '\''d'\'': // int
2610 number = va_arg (args_copy, int);
2611 break;
2612 case '\''f'\'': // float
2613 fnumber = va_arg (args_copy, double);
2614 break;
2615 default:
2616 break;
2619 va_end (args_copy);
2620 va_end (args);
2622 return *str && number && fnumber;
2626 # Test code for whether the C compiler supports C99 (body of main).
2627 ac_c_conftest_c99_main='
2628 // Check bool.
2629 _Bool success = false;
2630 success |= (argc != 0);
2632 // Check restrict.
2633 if (test_restrict ("String literal") == 0)
2634 success = true;
2635 char *restrict newvar = "Another string";
2637 // Check varargs.
2638 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2639 test_varargs_macros ();
2641 // Check flexible array members.
2642 struct incomplete_array *ia =
2643 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2644 ia->datasize = 10;
2645 for (int i = 0; i < ia->datasize; ++i)
2646 ia->data[i] = i * 1.234;
2648 // Check named initializers.
2649 struct named_init ni = {
2650 .number = 34,
2651 .name = L"Test wide string",
2652 .average = 543.34343,
2655 ni.number = 58;
2657 int dynamic_array[ni.number];
2658 dynamic_array[0] = argv[0][0];
2659 dynamic_array[ni.number - 1] = 543;
2661 // work around unused variable warnings
2662 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2663 || dynamic_array[ni.number - 1] != 543);
2666 # Test code for whether the C compiler supports C11 (global declarations)
2667 ac_c_conftest_c11_globals='
2668 // Does the compiler advertise C11 conformance?
2669 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2670 # error "Compiler does not advertise C11 conformance"
2671 #endif
2673 // Check _Alignas.
2674 char _Alignas (double) aligned_as_double;
2675 char _Alignas (0) no_special_alignment;
2676 extern char aligned_as_int;
2677 char _Alignas (0) _Alignas (int) aligned_as_int;
2679 // Check _Alignof.
2680 enum
2682 int_alignment = _Alignof (int),
2683 int_array_alignment = _Alignof (int[100]),
2684 char_alignment = _Alignof (char)
2686 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2688 // Check _Noreturn.
2689 int _Noreturn does_not_return (void) { for (;;) continue; }
2691 // Check _Static_assert.
2692 struct test_static_assert
2694 int x;
2695 _Static_assert (sizeof (int) <= sizeof (long int),
2696 "_Static_assert does not work in struct");
2697 long int y;
2700 // Check UTF-8 literals.
2701 #define u8 syntax error!
2702 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2704 // Check duplicate typedefs.
2705 typedef long *long_ptr;
2706 typedef long int *long_ptr;
2707 typedef long_ptr long_ptr;
2709 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2710 struct anonymous
2712 union {
2713 struct { int i; int j; };
2714 struct { int k; long int l; } w;
2716 int m;
2717 } v1;
2720 # Test code for whether the C compiler supports C11 (body of main).
2721 ac_c_conftest_c11_main='
2722 _Static_assert ((offsetof (struct anonymous, i)
2723 == offsetof (struct anonymous, w.k)),
2724 "Anonymous union alignment botch");
2725 v1.i = 2;
2726 v1.w.k = 5;
2727 ok |= v1.i != 5;
2730 # Test code for whether the C compiler supports C11 (complete).
2731 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2732 ${ac_c_conftest_c99_globals}
2733 ${ac_c_conftest_c11_globals}
2736 main (int argc, char **argv)
2738 int ok = 0;
2739 ${ac_c_conftest_c89_main}
2740 ${ac_c_conftest_c99_main}
2741 ${ac_c_conftest_c11_main}
2742 return ok;
2746 # Test code for whether the C compiler supports C99 (complete).
2747 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2748 ${ac_c_conftest_c99_globals}
2751 main (int argc, char **argv)
2753 int ok = 0;
2754 ${ac_c_conftest_c89_main}
2755 ${ac_c_conftest_c99_main}
2756 return ok;
2760 # Test code for whether the C compiler supports C89 (complete).
2761 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2764 main (int argc, char **argv)
2766 int ok = 0;
2767 ${ac_c_conftest_c89_main}
2768 return ok;
2772 # Test code for whether the C++ compiler supports C++98 (global declarations)
2773 ac_cxx_conftest_cxx98_globals='
2774 // Does the compiler advertise C++98 conformance?
2775 #if !defined __cplusplus || __cplusplus < 199711L
2776 # error "Compiler does not advertise C++98 conformance"
2777 #endif
2779 // These inclusions are to reject old compilers that
2780 // lack the unsuffixed header files.
2781 #include <cstdlib>
2782 #include <exception>
2784 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2785 extern void assert (int);
2786 namespace std {
2787 extern int strcmp (const char *, const char *);
2790 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2791 using std::exception;
2792 using std::strcmp;
2794 namespace {
2796 void test_exception_syntax()
2798 try {
2799 throw "test";
2800 } catch (const char *s) {
2801 // Extra parentheses suppress a warning when building autoconf itself,
2802 // due to lint rules shared with more typical C programs.
2803 assert (!(strcmp) (s, "test"));
2807 template <typename T> struct test_template
2809 T const val;
2810 explicit test_template(T t) : val(t) {}
2811 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2814 } // anonymous namespace
2817 # Test code for whether the C++ compiler supports C++98 (body of main)
2818 ac_cxx_conftest_cxx98_main='
2819 assert (argc);
2820 assert (! argv[0]);
2822 test_exception_syntax ();
2823 test_template<double> tt (2.0);
2824 assert (tt.add (4) == 6.0);
2825 assert (true && !false);
2829 # Test code for whether the C++ compiler supports C++11 (global declarations)
2830 ac_cxx_conftest_cxx11_globals='
2831 // Does the compiler advertise C++ 2011 conformance?
2832 #if !defined __cplusplus || __cplusplus < 201103L
2833 # error "Compiler does not advertise C++11 conformance"
2834 #endif
2836 namespace cxx11test
2838 constexpr int get_val() { return 20; }
2840 struct testinit
2842 int i;
2843 double d;
2846 class delegate
2848 public:
2849 delegate(int n) : n(n) {}
2850 delegate(): delegate(2354) {}
2852 virtual int getval() { return this->n; };
2853 protected:
2854 int n;
2857 class overridden : public delegate
2859 public:
2860 overridden(int n): delegate(n) {}
2861 virtual int getval() override final { return this->n * 2; }
2864 class nocopy
2866 public:
2867 nocopy(int i): i(i) {}
2868 nocopy() = default;
2869 nocopy(const nocopy&) = delete;
2870 nocopy & operator=(const nocopy&) = delete;
2871 private:
2872 int i;
2875 // for testing lambda expressions
2876 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2878 return f(v);
2881 // for testing variadic templates and trailing return types
2882 template <typename V> auto sum(V first) -> V
2884 return first;
2886 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2888 return first + sum(rest...);
2893 # Test code for whether the C++ compiler supports C++11 (body of main)
2894 ac_cxx_conftest_cxx11_main='
2896 // Test auto and decltype
2897 auto a1 = 6538;
2898 auto a2 = 48573953.4;
2899 auto a3 = "String literal";
2901 int total = 0;
2902 for (auto i = a3; *i; ++i) { total += *i; }
2904 decltype(a2) a4 = 34895.034;
2907 // Test constexpr
2908 short sa[cxx11test::get_val()] = { 0 };
2911 // Test initializer lists
2912 cxx11test::testinit il = { 4323, 435234.23544 };
2915 // Test range-based for
2916 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2917 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2918 for (auto &x : array) { x += 23; }
2921 // Test lambda expressions
2922 using cxx11test::eval;
2923 assert (eval ([](int x) { return x*2; }, 21) == 42);
2924 double d = 2.0;
2925 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2926 assert (d == 5.0);
2927 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2928 assert (d == 5.0);
2931 // Test use of variadic templates
2932 using cxx11test::sum;
2933 auto a = sum(1);
2934 auto b = sum(1, 2);
2935 auto c = sum(1.0, 2.0, 3.0);
2938 // Test constructor delegation
2939 cxx11test::delegate d1;
2940 cxx11test::delegate d2();
2941 cxx11test::delegate d3(45);
2944 // Test override and final
2945 cxx11test::overridden o1(55464);
2948 // Test nullptr
2949 char *c = nullptr;
2952 // Test template brackets
2953 test_template<::test_template<int>> v(test_template<int>(12));
2956 // Unicode literals
2957 char const *utf8 = u8"UTF-8 string \u2500";
2958 char16_t const *utf16 = u"UTF-8 string \u2500";
2959 char32_t const *utf32 = U"UTF-32 string \u2500";
2963 # Test code for whether the C compiler supports C++11 (complete).
2964 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2965 ${ac_cxx_conftest_cxx11_globals}
2968 main (int argc, char **argv)
2970 int ok = 0;
2971 ${ac_cxx_conftest_cxx98_main}
2972 ${ac_cxx_conftest_cxx11_main}
2973 return ok;
2977 # Test code for whether the C compiler supports C++98 (complete).
2978 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2980 main (int argc, char **argv)
2982 int ok = 0;
2983 ${ac_cxx_conftest_cxx98_main}
2984 return ok;
2988 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2989 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2990 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2991 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2992 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2993 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2994 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2995 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2996 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2998 # Auxiliary files required by this configure script.
2999 ac_aux_files="install-sh config.guess config.sub"
3001 # Locations in which to look for auxiliary files.
3002 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3004 # Search for a directory containing all of the required auxiliary files,
3005 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3006 # If we don't find one directory that contains all the files we need,
3007 # we report the set of missing files from the *first* directory in
3008 # $ac_aux_dir_candidates and give up.
3009 ac_missing_aux_files=""
3010 ac_first_candidate=:
3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 as_found=false
3014 for as_dir in $ac_aux_dir_candidates
3016 IFS=$as_save_IFS
3017 case $as_dir in #(((
3018 '') as_dir=./ ;;
3019 */) ;;
3020 *) as_dir=$as_dir/ ;;
3021 esac
3022 as_found=:
3024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3025 ac_aux_dir_found=yes
3026 ac_install_sh=
3027 for ac_aux in $ac_aux_files
3029 # As a special case, if "install-sh" is required, that requirement
3030 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3031 # and $ac_install_sh is set appropriately for whichever one is found.
3032 if test x"$ac_aux" = x"install-sh"
3033 then
3034 if test -f "${as_dir}install-sh"; then
3035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3036 ac_install_sh="${as_dir}install-sh -c"
3037 elif test -f "${as_dir}install.sh"; then
3038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3039 ac_install_sh="${as_dir}install.sh -c"
3040 elif test -f "${as_dir}shtool"; then
3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3042 ac_install_sh="${as_dir}shtool install -c"
3043 else
3044 ac_aux_dir_found=no
3045 if $ac_first_candidate; then
3046 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3047 else
3048 break
3051 else
3052 if test -f "${as_dir}${ac_aux}"; then
3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3054 else
3055 ac_aux_dir_found=no
3056 if $ac_first_candidate; then
3057 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3058 else
3059 break
3063 done
3064 if test "$ac_aux_dir_found" = yes; then
3065 ac_aux_dir="$as_dir"
3066 break
3068 ac_first_candidate=false
3070 as_found=false
3071 done
3072 IFS=$as_save_IFS
3073 if $as_found
3074 then :
3076 else $as_nop
3077 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3081 # These three variables are undocumented and unsupported,
3082 # and are intended to be withdrawn in a future Autoconf release.
3083 # They can cause serious problems if a builder's source tree is in a directory
3084 # whose full name contains unusual characters.
3085 if test -f "${ac_aux_dir}config.guess"; then
3086 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3088 if test -f "${ac_aux_dir}config.sub"; then
3089 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3091 if test -f "$ac_aux_dir/configure"; then
3092 ac_configure="$SHELL ${ac_aux_dir}configure"
3095 # Check that the precious variables saved in the cache have kept the same
3096 # value.
3097 ac_cache_corrupted=false
3098 for ac_var in $ac_precious_vars; do
3099 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3100 eval ac_new_set=\$ac_env_${ac_var}_set
3101 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3102 eval ac_new_val=\$ac_env_${ac_var}_value
3103 case $ac_old_set,$ac_new_set in
3104 set,)
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3106 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3107 ac_cache_corrupted=: ;;
3108 ,set)
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3110 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3111 ac_cache_corrupted=: ;;
3112 ,);;
3114 if test "x$ac_old_val" != "x$ac_new_val"; then
3115 # differences in whitespace do not lead to failure.
3116 ac_old_val_w=`echo x $ac_old_val`
3117 ac_new_val_w=`echo x $ac_new_val`
3118 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3120 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3121 ac_cache_corrupted=:
3122 else
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3124 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3125 eval $ac_var=\$ac_old_val
3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3128 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3130 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3131 fi;;
3132 esac
3133 # Pass precious variables to config.status.
3134 if test "$ac_new_set" = set; then
3135 case $ac_new_val in
3136 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3137 *) ac_arg=$ac_var=$ac_new_val ;;
3138 esac
3139 case " $ac_configure_args " in
3140 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3141 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3142 esac
3144 done
3145 if $ac_cache_corrupted; then
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3149 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3150 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3151 and start over" "$LINENO" 5
3153 ## -------------------- ##
3154 ## Main body of script. ##
3155 ## -------------------- ##
3157 ac_ext=c
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167 # Determine the host and build type.
3168 # ===========================================================================
3172 # Make sure we can run config.sub.
3173 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3174 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3177 printf %s "checking build system type... " >&6; }
3178 if test ${ac_cv_build+y}
3179 then :
3180 printf %s "(cached) " >&6
3181 else $as_nop
3182 ac_build_alias=$build_alias
3183 test "x$ac_build_alias" = x &&
3184 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3185 test "x$ac_build_alias" = x &&
3186 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3187 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3188 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3192 printf "%s\n" "$ac_cv_build" >&6; }
3193 case $ac_cv_build in
3194 *-*-*) ;;
3195 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3196 esac
3197 build=$ac_cv_build
3198 ac_save_IFS=$IFS; IFS='-'
3199 set x $ac_cv_build
3200 shift
3201 build_cpu=$1
3202 build_vendor=$2
3203 shift; shift
3204 # Remember, the first character of IFS is used to create $*,
3205 # except with old shells:
3206 build_os=$*
3207 IFS=$ac_save_IFS
3208 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3212 printf %s "checking host system type... " >&6; }
3213 if test ${ac_cv_host+y}
3214 then :
3215 printf %s "(cached) " >&6
3216 else $as_nop
3217 if test "x$host_alias" = x; then
3218 ac_cv_host=$ac_cv_build
3219 else
3220 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3221 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3226 printf "%s\n" "$ac_cv_host" >&6; }
3227 case $ac_cv_host in
3228 *-*-*) ;;
3229 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3230 esac
3231 host=$ac_cv_host
3232 ac_save_IFS=$IFS; IFS='-'
3233 set x $ac_cv_host
3234 shift
3235 host_cpu=$1
3236 host_vendor=$2
3237 shift; shift
3238 # Remember, the first character of IFS is used to create $*,
3239 # except with old shells:
3240 host_os=$*
3241 IFS=$ac_save_IFS
3242 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3246 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h sdas/linksrc/asxxxx_config.h"
3249 for ac_prog in gawk mawk nawk awk
3251 # Extract the first word of "$ac_prog", so it can be a program name with args.
3252 set dummy $ac_prog; ac_word=$2
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 printf %s "checking for $ac_word... " >&6; }
3255 if test ${ac_cv_prog_AWK+y}
3256 then :
3257 printf %s "(cached) " >&6
3258 else $as_nop
3259 if test -n "$AWK"; then
3260 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3265 IFS=$as_save_IFS
3266 case $as_dir in #(((
3267 '') as_dir=./ ;;
3268 */) ;;
3269 *) as_dir=$as_dir/ ;;
3270 esac
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_AWK="$ac_prog"
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3275 break 2
3277 done
3278 done
3279 IFS=$as_save_IFS
3283 AWK=$ac_cv_prog_AWK
3284 if test -n "$AWK"; then
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3286 printf "%s\n" "$AWK" >&6; }
3287 else
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 printf "%s\n" "no" >&6; }
3293 test -n "$AWK" && break
3294 done
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of the package" >&5
3298 printf %s "checking version of the package... " >&6; }
3299 if test -f ${srcdir}/.version; then
3300 { read VERSION; } < ${srcdir}/.version
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3302 printf "%s\n" "$VERSION" >&6; }
3303 elif test -f ../.version; then
3304 { read VERSION; } < ../.version
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3306 printf "%s\n" "$VERSION" >&6; }
3307 else
3308 VERSION="0.0.0"
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown using 0.0.0" >&5
3310 printf "%s\n" "unknown using 0.0.0" >&6; }
3312 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
3313 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
3314 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
3316 PACKAGE=sdcc
3323 printf "%s\n" "#define SDCC_VERSION_LO ${VERSIONLO}" >>confdefs.h
3326 printf "%s\n" "#define SDCC_VERSION_HI ${VERSIONHI}" >>confdefs.h
3329 printf "%s\n" "#define SDCC_VERSION_P ${VERSIONP}" >>confdefs.h
3332 printf "%s\n" "#define SDCC_VERSION_STR \"${VERSION}\"" >>confdefs.h
3334 test "$program_prefix" != NONE &&
3335 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3336 # Use a double $ so make ignores it.
3337 test "$program_suffix" != NONE &&
3338 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3339 # Double any \ or $.
3340 # By default was `s,x,x', remove it if useless.
3341 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3342 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3344 sdcc_cv_version=$VERSION
3345 sdcc_cv_versionhi=$VERSIONHI
3346 sdcc_cv_versionlo=$VERSIONLO
3347 sdcc_cv_versionp=$VERSIONP
3350 # Required programs
3351 # ===========================================================================
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 printf %s "checking for $ac_word... " >&6; }
3371 if test ${ac_cv_prog_CC+y}
3372 then :
3373 printf %s "(cached) " >&6
3374 else $as_nop
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3381 IFS=$as_save_IFS
3382 case $as_dir in #(((
3383 '') as_dir=./ ;;
3384 */) ;;
3385 *) as_dir=$as_dir/ ;;
3386 esac
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3391 break 2
3393 done
3394 done
3395 IFS=$as_save_IFS
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 printf "%s\n" "$CC" >&6; }
3403 else
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 printf "%s\n" "no" >&6; }
3410 if test -z "$ac_cv_prog_CC"; then
3411 ac_ct_CC=$CC
3412 # Extract the first word of "gcc", so it can be a program name with args.
3413 set dummy gcc; ac_word=$2
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 printf %s "checking for $ac_word... " >&6; }
3416 if test ${ac_cv_prog_ac_ct_CC+y}
3417 then :
3418 printf %s "(cached) " >&6
3419 else $as_nop
3420 if test -n "$ac_ct_CC"; then
3421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3426 IFS=$as_save_IFS
3427 case $as_dir in #(((
3428 '') as_dir=./ ;;
3429 */) ;;
3430 *) as_dir=$as_dir/ ;;
3431 esac
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC="gcc"
3435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3436 break 2
3438 done
3439 done
3440 IFS=$as_save_IFS
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 printf "%s\n" "$ac_ct_CC" >&6; }
3448 else
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 printf "%s\n" "no" >&6; }
3453 if test "x$ac_ct_CC" = x; then
3454 CC=""
3455 else
3456 case $cross_compiling:$ac_tool_warned in
3457 yes:)
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3460 ac_tool_warned=yes ;;
3461 esac
3462 CC=$ac_ct_CC
3464 else
3465 CC="$ac_cv_prog_CC"
3468 if test -z "$CC"; then
3469 if test -n "$ac_tool_prefix"; then
3470 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3471 set dummy ${ac_tool_prefix}cc; ac_word=$2
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 printf %s "checking for $ac_word... " >&6; }
3474 if test ${ac_cv_prog_CC+y}
3475 then :
3476 printf %s "(cached) " >&6
3477 else $as_nop
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC="$CC" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3484 IFS=$as_save_IFS
3485 case $as_dir in #(((
3486 '') as_dir=./ ;;
3487 */) ;;
3488 *) as_dir=$as_dir/ ;;
3489 esac
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3492 ac_cv_prog_CC="${ac_tool_prefix}cc"
3493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3494 break 2
3496 done
3497 done
3498 IFS=$as_save_IFS
3502 CC=$ac_cv_prog_CC
3503 if test -n "$CC"; then
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 printf "%s\n" "$CC" >&6; }
3506 else
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 printf "%s\n" "no" >&6; }
3514 if test -z "$CC"; then
3515 # Extract the first word of "cc", so it can be a program name with args.
3516 set dummy cc; ac_word=$2
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 printf %s "checking for $ac_word... " >&6; }
3519 if test ${ac_cv_prog_CC+y}
3520 then :
3521 printf %s "(cached) " >&6
3522 else $as_nop
3523 if test -n "$CC"; then
3524 ac_cv_prog_CC="$CC" # Let the user override the test.
3525 else
3526 ac_prog_rejected=no
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3530 IFS=$as_save_IFS
3531 case $as_dir in #(((
3532 '') as_dir=./ ;;
3533 */) ;;
3534 *) as_dir=$as_dir/ ;;
3535 esac
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3538 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3539 ac_prog_rejected=yes
3540 continue
3542 ac_cv_prog_CC="cc"
3543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3544 break 2
3546 done
3547 done
3548 IFS=$as_save_IFS
3550 if test $ac_prog_rejected = yes; then
3551 # We found a bogon in the path, so make sure we never use it.
3552 set dummy $ac_cv_prog_CC
3553 shift
3554 if test $# != 0; then
3555 # We chose a different compiler from the bogus one.
3556 # However, it has the same basename, so the bogon will be chosen
3557 # first if we set CC to just the basename; use the full file name.
3558 shift
3559 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 printf "%s\n" "$CC" >&6; }
3568 else
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 printf "%s\n" "no" >&6; }
3575 if test -z "$CC"; then
3576 if test -n "$ac_tool_prefix"; then
3577 for ac_prog in cl.exe
3579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 printf %s "checking for $ac_word... " >&6; }
3583 if test ${ac_cv_prog_CC+y}
3584 then :
3585 printf %s "(cached) " >&6
3586 else $as_nop
3587 if test -n "$CC"; then
3588 ac_cv_prog_CC="$CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 case $as_dir in #(((
3595 '') as_dir=./ ;;
3596 */) ;;
3597 *) as_dir=$as_dir/ ;;
3598 esac
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3603 break 2
3605 done
3606 done
3607 IFS=$as_save_IFS
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 printf "%s\n" "$CC" >&6; }
3615 else
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 printf "%s\n" "no" >&6; }
3621 test -n "$CC" && break
3622 done
3624 if test -z "$CC"; then
3625 ac_ct_CC=$CC
3626 for ac_prog in cl.exe
3628 # Extract the first word of "$ac_prog", so it can be a program name with args.
3629 set dummy $ac_prog; ac_word=$2
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 printf %s "checking for $ac_word... " >&6; }
3632 if test ${ac_cv_prog_ac_ct_CC+y}
3633 then :
3634 printf %s "(cached) " >&6
3635 else $as_nop
3636 if test -n "$ac_ct_CC"; then
3637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 case $as_dir in #(((
3644 '') as_dir=./ ;;
3645 */) ;;
3646 *) as_dir=$as_dir/ ;;
3647 esac
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_ac_ct_CC="$ac_prog"
3651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3661 if test -n "$ac_ct_CC"; then
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3663 printf "%s\n" "$ac_ct_CC" >&6; }
3664 else
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 printf "%s\n" "no" >&6; }
3670 test -n "$ac_ct_CC" && break
3671 done
3673 if test "x$ac_ct_CC" = x; then
3674 CC=""
3675 else
3676 case $cross_compiling:$ac_tool_warned in
3677 yes:)
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680 ac_tool_warned=yes ;;
3681 esac
3682 CC=$ac_ct_CC
3687 if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3690 set dummy ${ac_tool_prefix}clang; ac_word=$2
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 printf %s "checking for $ac_word... " >&6; }
3693 if test ${ac_cv_prog_CC+y}
3694 then :
3695 printf %s "(cached) " >&6
3696 else $as_nop
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 case $as_dir in #(((
3705 '') as_dir=./ ;;
3706 */) ;;
3707 *) as_dir=$as_dir/ ;;
3708 esac
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_CC="${ac_tool_prefix}clang"
3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3717 IFS=$as_save_IFS
3721 CC=$ac_cv_prog_CC
3722 if test -n "$CC"; then
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 printf "%s\n" "$CC" >&6; }
3725 else
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 printf "%s\n" "no" >&6; }
3732 if test -z "$ac_cv_prog_CC"; then
3733 ac_ct_CC=$CC
3734 # Extract the first word of "clang", so it can be a program name with args.
3735 set dummy clang; ac_word=$2
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 printf %s "checking for $ac_word... " >&6; }
3738 if test ${ac_cv_prog_ac_ct_CC+y}
3739 then :
3740 printf %s "(cached) " >&6
3741 else $as_nop
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3748 IFS=$as_save_IFS
3749 case $as_dir in #(((
3750 '') as_dir=./ ;;
3751 */) ;;
3752 *) as_dir=$as_dir/ ;;
3753 esac
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_ac_ct_CC="clang"
3757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3758 break 2
3760 done
3761 done
3762 IFS=$as_save_IFS
3766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 printf "%s\n" "$ac_ct_CC" >&6; }
3770 else
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 printf "%s\n" "no" >&6; }
3775 if test "x$ac_ct_CC" = x; then
3776 CC=""
3777 else
3778 case $cross_compiling:$ac_tool_warned in
3779 yes:)
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3781 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3782 ac_tool_warned=yes ;;
3783 esac
3784 CC=$ac_ct_CC
3786 else
3787 CC="$ac_cv_prog_CC"
3793 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error $? "no acceptable C compiler found in \$PATH
3796 See \`config.log' for more details" "$LINENO" 5; }
3798 # Provide some information about the compiler.
3799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3800 set X $ac_compile
3801 ac_compiler=$2
3802 for ac_option in --version -v -V -qversion -version; do
3803 { { ac_try="$ac_compiler $ac_option >&5"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 printf "%s\n" "$ac_try_echo"; } >&5
3810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3811 ac_status=$?
3812 if test -s conftest.err; then
3813 sed '10a\
3814 ... rest of stderr output deleted ...
3815 10q' conftest.err >conftest.er1
3816 cat conftest.er1 >&5
3818 rm -f conftest.er1 conftest.err
3819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }
3821 done
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3827 main (void)
3831 return 0;
3833 _ACEOF
3834 ac_clean_files_save=$ac_clean_files
3835 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3836 # Try to create an executable without -o first, disregard a.out.
3837 # It will help us diagnose broken compilers, and finding out an intuition
3838 # of exeext.
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3840 printf %s "checking whether the C compiler works... " >&6; }
3841 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3843 # The possible output files:
3844 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3846 ac_rmfiles=
3847 for ac_file in $ac_files
3849 case $ac_file in
3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3851 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3852 esac
3853 done
3854 rm -f $ac_rmfiles
3856 if { { ac_try="$ac_link_default"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 printf "%s\n" "$ac_try_echo"; } >&5
3863 (eval "$ac_link_default") 2>&5
3864 ac_status=$?
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3867 then :
3868 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3869 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3870 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3871 # so that the user can short-circuit this test for compilers unknown to
3872 # Autoconf.
3873 for ac_file in $ac_files ''
3875 test -f "$ac_file" || continue
3876 case $ac_file in
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3879 [ab].out )
3880 # We found the default executable, but exeext='' is most
3881 # certainly right.
3882 break;;
3883 *.* )
3884 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3885 then :; else
3886 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3888 # We set ac_cv_exeext here because the later test for it is not
3889 # safe: cross compilers may not add the suffix if given an `-o'
3890 # argument, so we may need to know it at that point already.
3891 # Even if this section looks crufty: it has the advantage of
3892 # actually working.
3893 break;;
3895 break;;
3896 esac
3897 done
3898 test "$ac_cv_exeext" = no && ac_cv_exeext=
3900 else $as_nop
3901 ac_file=''
3903 if test -z "$ac_file"
3904 then :
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 printf "%s\n" "no" >&6; }
3907 printf "%s\n" "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error 77 "C compiler cannot create executables
3913 See \`config.log' for more details" "$LINENO" 5; }
3914 else $as_nop
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3916 printf "%s\n" "yes" >&6; }
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3919 printf %s "checking for C compiler default output file name... " >&6; }
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3921 printf "%s\n" "$ac_file" >&6; }
3922 ac_exeext=$ac_cv_exeext
3924 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3925 ac_clean_files=$ac_clean_files_save
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3927 printf %s "checking for suffix of executables... " >&6; }
3928 if { { ac_try="$ac_link"
3929 case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 printf "%s\n" "$ac_try_echo"; } >&5
3935 (eval "$ac_link") 2>&5
3936 ac_status=$?
3937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }
3939 then :
3940 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3941 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3942 # work properly (i.e., refer to `conftest.exe'), while it won't with
3943 # `rm'.
3944 for ac_file in conftest.exe conftest conftest.*; do
3945 test -f "$ac_file" || continue
3946 case $ac_file in
3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3948 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3949 break;;
3950 * ) break;;
3951 esac
3952 done
3953 else $as_nop
3954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3957 See \`config.log' for more details" "$LINENO" 5; }
3959 rm -f conftest conftest$ac_cv_exeext
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3961 printf "%s\n" "$ac_cv_exeext" >&6; }
3963 rm -f conftest.$ac_ext
3964 EXEEXT=$ac_cv_exeext
3965 ac_exeext=$EXEEXT
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968 #include <stdio.h>
3970 main (void)
3972 FILE *f = fopen ("conftest.out", "w");
3973 return ferror (f) || fclose (f) != 0;
3976 return 0;
3978 _ACEOF
3979 ac_clean_files="$ac_clean_files conftest.out"
3980 # Check that the compiler produces executables we can run. If not, either
3981 # the compiler is broken, or we cross compile.
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3983 printf %s "checking whether we are cross compiling... " >&6; }
3984 if test "$cross_compiling" != yes; then
3985 { { ac_try="$ac_link"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 printf "%s\n" "$ac_try_echo"; } >&5
3992 (eval "$ac_link") 2>&5
3993 ac_status=$?
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3996 if { ac_try='./conftest$ac_cv_exeext'
3997 { { case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 printf "%s\n" "$ac_try_echo"; } >&5
4003 (eval "$ac_try") 2>&5
4004 ac_status=$?
4005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006 test $ac_status = 0; }; }; then
4007 cross_compiling=no
4008 else
4009 if test "$cross_compiling" = maybe; then
4010 cross_compiling=yes
4011 else
4012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error 77 "cannot run C compiled programs.
4015 If you meant to cross compile, use \`--host'.
4016 See \`config.log' for more details" "$LINENO" 5; }
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4021 printf "%s\n" "$cross_compiling" >&6; }
4023 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4024 ac_clean_files=$ac_clean_files_save
4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4026 printf %s "checking for suffix of object files... " >&6; }
4027 if test ${ac_cv_objext+y}
4028 then :
4029 printf %s "(cached) " >&6
4030 else $as_nop
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4035 main (void)
4039 return 0;
4041 _ACEOF
4042 rm -f conftest.o conftest.obj
4043 if { { ac_try="$ac_compile"
4044 case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 printf "%s\n" "$ac_try_echo"; } >&5
4050 (eval "$ac_compile") 2>&5
4051 ac_status=$?
4052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }
4054 then :
4055 for ac_file in conftest.o conftest.obj conftest.*; do
4056 test -f "$ac_file" || continue;
4057 case $ac_file in
4058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4059 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4060 break;;
4061 esac
4062 done
4063 else $as_nop
4064 printf "%s\n" "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error $? "cannot compute suffix of object files: cannot compile
4070 See \`config.log' for more details" "$LINENO" 5; }
4072 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4075 printf "%s\n" "$ac_cv_objext" >&6; }
4076 OBJEXT=$ac_cv_objext
4077 ac_objext=$OBJEXT
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4079 printf %s "checking whether the compiler supports GNU C... " >&6; }
4080 if test ${ac_cv_c_compiler_gnu+y}
4081 then :
4082 printf %s "(cached) " >&6
4083 else $as_nop
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 main (void)
4090 #ifndef __GNUC__
4091 choke me
4092 #endif
4095 return 0;
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"
4099 then :
4100 ac_compiler_gnu=yes
4101 else $as_nop
4102 ac_compiler_gnu=no
4104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 if test $ac_compiler_gnu = yes; then
4113 GCC=yes
4114 else
4115 GCC=
4117 ac_test_CFLAGS=${CFLAGS+y}
4118 ac_save_CFLAGS=$CFLAGS
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 printf %s "checking whether $CC accepts -g... " >&6; }
4121 if test ${ac_cv_prog_cc_g+y}
4122 then :
4123 printf %s "(cached) " >&6
4124 else $as_nop
4125 ac_save_c_werror_flag=$ac_c_werror_flag
4126 ac_c_werror_flag=yes
4127 ac_cv_prog_cc_g=no
4128 CFLAGS="-g"
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4133 main (void)
4137 return 0;
4139 _ACEOF
4140 if ac_fn_c_try_compile "$LINENO"
4141 then :
4142 ac_cv_prog_cc_g=yes
4143 else $as_nop
4144 CFLAGS=""
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4149 main (void)
4153 return 0;
4155 _ACEOF
4156 if ac_fn_c_try_compile "$LINENO"
4157 then :
4159 else $as_nop
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4161 CFLAGS="-g"
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4166 main (void)
4170 return 0;
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"
4174 then :
4175 ac_cv_prog_cc_g=yes
4177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4185 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4186 if test $ac_test_CFLAGS; then
4187 CFLAGS=$ac_save_CFLAGS
4188 elif test $ac_cv_prog_cc_g = yes; then
4189 if test "$GCC" = yes; then
4190 CFLAGS="-g -O2"
4191 else
4192 CFLAGS="-g"
4194 else
4195 if test "$GCC" = yes; then
4196 CFLAGS="-O2"
4197 else
4198 CFLAGS=
4201 ac_prog_cc_stdc=no
4202 if test x$ac_prog_cc_stdc = xno
4203 then :
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4205 printf %s "checking for $CC option to enable C11 features... " >&6; }
4206 if test ${ac_cv_prog_cc_c11+y}
4207 then :
4208 printf %s "(cached) " >&6
4209 else $as_nop
4210 ac_cv_prog_cc_c11=no
4211 ac_save_CC=$CC
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 $ac_c_conftest_c11_program
4215 _ACEOF
4216 for ac_arg in '' -std=gnu11
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"
4220 then :
4221 ac_cv_prog_cc_c11=$ac_arg
4223 rm -f core conftest.err conftest.$ac_objext conftest.beam
4224 test "x$ac_cv_prog_cc_c11" != "xno" && break
4225 done
4226 rm -f conftest.$ac_ext
4227 CC=$ac_save_CC
4230 if test "x$ac_cv_prog_cc_c11" = xno
4231 then :
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4233 printf "%s\n" "unsupported" >&6; }
4234 else $as_nop
4235 if test "x$ac_cv_prog_cc_c11" = x
4236 then :
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 printf "%s\n" "none needed" >&6; }
4239 else $as_nop
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4241 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4242 CC="$CC $ac_cv_prog_cc_c11"
4244 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4245 ac_prog_cc_stdc=c11
4248 if test x$ac_prog_cc_stdc = xno
4249 then :
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4251 printf %s "checking for $CC option to enable C99 features... " >&6; }
4252 if test ${ac_cv_prog_cc_c99+y}
4253 then :
4254 printf %s "(cached) " >&6
4255 else $as_nop
4256 ac_cv_prog_cc_c99=no
4257 ac_save_CC=$CC
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 $ac_c_conftest_c99_program
4261 _ACEOF
4262 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4264 CC="$ac_save_CC $ac_arg"
4265 if ac_fn_c_try_compile "$LINENO"
4266 then :
4267 ac_cv_prog_cc_c99=$ac_arg
4269 rm -f core conftest.err conftest.$ac_objext conftest.beam
4270 test "x$ac_cv_prog_cc_c99" != "xno" && break
4271 done
4272 rm -f conftest.$ac_ext
4273 CC=$ac_save_CC
4276 if test "x$ac_cv_prog_cc_c99" = xno
4277 then :
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4279 printf "%s\n" "unsupported" >&6; }
4280 else $as_nop
4281 if test "x$ac_cv_prog_cc_c99" = x
4282 then :
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4284 printf "%s\n" "none needed" >&6; }
4285 else $as_nop
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4287 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4288 CC="$CC $ac_cv_prog_cc_c99"
4290 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4291 ac_prog_cc_stdc=c99
4294 if test x$ac_prog_cc_stdc = xno
4295 then :
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4297 printf %s "checking for $CC option to enable C89 features... " >&6; }
4298 if test ${ac_cv_prog_cc_c89+y}
4299 then :
4300 printf %s "(cached) " >&6
4301 else $as_nop
4302 ac_cv_prog_cc_c89=no
4303 ac_save_CC=$CC
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 $ac_c_conftest_c89_program
4307 _ACEOF
4308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4310 CC="$ac_save_CC $ac_arg"
4311 if ac_fn_c_try_compile "$LINENO"
4312 then :
4313 ac_cv_prog_cc_c89=$ac_arg
4315 rm -f core conftest.err conftest.$ac_objext conftest.beam
4316 test "x$ac_cv_prog_cc_c89" != "xno" && break
4317 done
4318 rm -f conftest.$ac_ext
4319 CC=$ac_save_CC
4322 if test "x$ac_cv_prog_cc_c89" = xno
4323 then :
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4325 printf "%s\n" "unsupported" >&6; }
4326 else $as_nop
4327 if test "x$ac_cv_prog_cc_c89" = x
4328 then :
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4330 printf "%s\n" "none needed" >&6; }
4331 else $as_nop
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4333 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4334 CC="$CC $ac_cv_prog_cc_c89"
4336 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4337 ac_prog_cc_stdc=c89
4341 ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 ac_ext=c
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4353 printf %s "checking how to run the C preprocessor... " >&6; }
4354 # On Suns, sometimes $CPP names a directory.
4355 if test -n "$CPP" && test -d "$CPP"; then
4356 CPP=
4358 if test -z "$CPP"; then
4359 if test ${ac_cv_prog_CPP+y}
4360 then :
4361 printf %s "(cached) " >&6
4362 else $as_nop
4363 # Double quotes because $CC needs to be expanded
4364 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4366 ac_preproc_ok=false
4367 for ac_c_preproc_warn_flag in '' yes
4369 # Use a header file that comes with gcc, so configuring glibc
4370 # with a fresh cross-compiler works.
4371 # On the NeXT, cc -E runs the code through the compiler's parser,
4372 # not just through cpp. "Syntax error" is here to catch this case.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #include <limits.h>
4376 Syntax error
4377 _ACEOF
4378 if ac_fn_c_try_cpp "$LINENO"
4379 then :
4381 else $as_nop
4382 # Broken: fails on valid input.
4383 continue
4385 rm -f conftest.err conftest.i conftest.$ac_ext
4387 # OK, works on sane cases. Now check whether nonexistent headers
4388 # can be detected and how.
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391 #include <ac_nonexistent.h>
4392 _ACEOF
4393 if ac_fn_c_try_cpp "$LINENO"
4394 then :
4395 # Broken: success on invalid input.
4396 continue
4397 else $as_nop
4398 # Passes both tests.
4399 ac_preproc_ok=:
4400 break
4402 rm -f conftest.err conftest.i conftest.$ac_ext
4404 done
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.i conftest.err conftest.$ac_ext
4407 if $ac_preproc_ok
4408 then :
4409 break
4412 done
4413 ac_cv_prog_CPP=$CPP
4416 CPP=$ac_cv_prog_CPP
4417 else
4418 ac_cv_prog_CPP=$CPP
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4421 printf "%s\n" "$CPP" >&6; }
4422 ac_preproc_ok=false
4423 for ac_c_preproc_warn_flag in '' yes
4425 # Use a header file that comes with gcc, so configuring glibc
4426 # with a fresh cross-compiler works.
4427 # On the NeXT, cc -E runs the code through the compiler's parser,
4428 # not just through cpp. "Syntax error" is here to catch this case.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <limits.h>
4432 Syntax error
4433 _ACEOF
4434 if ac_fn_c_try_cpp "$LINENO"
4435 then :
4437 else $as_nop
4438 # Broken: fails on valid input.
4439 continue
4441 rm -f conftest.err conftest.i conftest.$ac_ext
4443 # OK, works on sane cases. Now check whether nonexistent headers
4444 # can be detected and how.
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #include <ac_nonexistent.h>
4448 _ACEOF
4449 if ac_fn_c_try_cpp "$LINENO"
4450 then :
4451 # Broken: success on invalid input.
4452 continue
4453 else $as_nop
4454 # Passes both tests.
4455 ac_preproc_ok=:
4456 break
4458 rm -f conftest.err conftest.i conftest.$ac_ext
4460 done
4461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4462 rm -f conftest.i conftest.err conftest.$ac_ext
4463 if $ac_preproc_ok
4464 then :
4466 else $as_nop
4467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4470 See \`config.log' for more details" "$LINENO" 5; }
4473 ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485 ac_ext=cpp
4486 ac_cpp='$CXXCPP $CPPFLAGS'
4487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4490 if test -z "$CXX"; then
4491 if test -n "$CCC"; then
4492 CXX=$CCC
4493 else
4494 if test -n "$ac_tool_prefix"; then
4495 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 printf %s "checking for $ac_word... " >&6; }
4501 if test ${ac_cv_prog_CXX+y}
4502 then :
4503 printf %s "(cached) " >&6
4504 else $as_nop
4505 if test -n "$CXX"; then
4506 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4507 else
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4511 IFS=$as_save_IFS
4512 case $as_dir in #(((
4513 '') as_dir=./ ;;
4514 */) ;;
4515 *) as_dir=$as_dir/ ;;
4516 esac
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4521 break 2
4523 done
4524 done
4525 IFS=$as_save_IFS
4529 CXX=$ac_cv_prog_CXX
4530 if test -n "$CXX"; then
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4532 printf "%s\n" "$CXX" >&6; }
4533 else
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 printf "%s\n" "no" >&6; }
4539 test -n "$CXX" && break
4540 done
4542 if test -z "$CXX"; then
4543 ac_ct_CXX=$CXX
4544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 printf %s "checking for $ac_word... " >&6; }
4550 if test ${ac_cv_prog_ac_ct_CXX+y}
4551 then :
4552 printf %s "(cached) " >&6
4553 else $as_nop
4554 if test -n "$ac_ct_CXX"; then
4555 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 case $as_dir in #(((
4562 '') as_dir=./ ;;
4563 */) ;;
4564 *) as_dir=$as_dir/ ;;
4565 esac
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_ac_ct_CXX="$ac_prog"
4569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4578 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4579 if test -n "$ac_ct_CXX"; then
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4581 printf "%s\n" "$ac_ct_CXX" >&6; }
4582 else
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 printf "%s\n" "no" >&6; }
4588 test -n "$ac_ct_CXX" && break
4589 done
4591 if test "x$ac_ct_CXX" = x; then
4592 CXX="g++"
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595 yes:)
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 ac_tool_warned=yes ;;
4599 esac
4600 CXX=$ac_ct_CXX
4606 # Provide some information about the compiler.
4607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4608 set X $ac_compile
4609 ac_compiler=$2
4610 for ac_option in --version -v -V -qversion; do
4611 { { ac_try="$ac_compiler $ac_option >&5"
4612 case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615 esac
4616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617 printf "%s\n" "$ac_try_echo"; } >&5
4618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4619 ac_status=$?
4620 if test -s conftest.err; then
4621 sed '10a\
4622 ... rest of stderr output deleted ...
4623 10q' conftest.err >conftest.er1
4624 cat conftest.er1 >&5
4626 rm -f conftest.er1 conftest.err
4627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4629 done
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4632 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4633 if test ${ac_cv_cxx_compiler_gnu+y}
4634 then :
4635 printf %s "(cached) " >&6
4636 else $as_nop
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4641 main (void)
4643 #ifndef __GNUC__
4644 choke me
4645 #endif
4648 return 0;
4650 _ACEOF
4651 if ac_fn_cxx_try_compile "$LINENO"
4652 then :
4653 ac_compiler_gnu=yes
4654 else $as_nop
4655 ac_compiler_gnu=no
4657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4658 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4662 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4665 if test $ac_compiler_gnu = yes; then
4666 GXX=yes
4667 else
4668 GXX=
4670 ac_test_CXXFLAGS=${CXXFLAGS+y}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4673 printf %s "checking whether $CXX accepts -g... " >&6; }
4674 if test ${ac_cv_prog_cxx_g+y}
4675 then :
4676 printf %s "(cached) " >&6
4677 else $as_nop
4678 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4679 ac_cxx_werror_flag=yes
4680 ac_cv_prog_cxx_g=no
4681 CXXFLAGS="-g"
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4686 main (void)
4690 return 0;
4692 _ACEOF
4693 if ac_fn_cxx_try_compile "$LINENO"
4694 then :
4695 ac_cv_prog_cxx_g=yes
4696 else $as_nop
4697 CXXFLAGS=""
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 main (void)
4706 return 0;
4708 _ACEOF
4709 if ac_fn_cxx_try_compile "$LINENO"
4710 then :
4712 else $as_nop
4713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4714 CXXFLAGS="-g"
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4719 main (void)
4723 return 0;
4725 _ACEOF
4726 if ac_fn_cxx_try_compile "$LINENO"
4727 then :
4728 ac_cv_prog_cxx_g=yes
4730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4738 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4739 if test $ac_test_CXXFLAGS; then
4740 CXXFLAGS=$ac_save_CXXFLAGS
4741 elif test $ac_cv_prog_cxx_g = yes; then
4742 if test "$GXX" = yes; then
4743 CXXFLAGS="-g -O2"
4744 else
4745 CXXFLAGS="-g"
4747 else
4748 if test "$GXX" = yes; then
4749 CXXFLAGS="-O2"
4750 else
4751 CXXFLAGS=
4754 ac_prog_cxx_stdcxx=no
4755 if test x$ac_prog_cxx_stdcxx = xno
4756 then :
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4758 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4759 if test ${ac_cv_prog_cxx_cxx11+y}
4760 then :
4761 printf %s "(cached) " >&6
4762 else $as_nop
4763 ac_cv_prog_cxx_cxx11=no
4764 ac_save_CXX=$CXX
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 $ac_cxx_conftest_cxx11_program
4768 _ACEOF
4769 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4771 CXX="$ac_save_CXX $ac_arg"
4772 if ac_fn_cxx_try_compile "$LINENO"
4773 then :
4774 ac_cv_prog_cxx_cxx11=$ac_arg
4776 rm -f core conftest.err conftest.$ac_objext conftest.beam
4777 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4778 done
4779 rm -f conftest.$ac_ext
4780 CXX=$ac_save_CXX
4783 if test "x$ac_cv_prog_cxx_cxx11" = xno
4784 then :
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4786 printf "%s\n" "unsupported" >&6; }
4787 else $as_nop
4788 if test "x$ac_cv_prog_cxx_cxx11" = x
4789 then :
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4791 printf "%s\n" "none needed" >&6; }
4792 else $as_nop
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4794 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4795 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4797 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4798 ac_prog_cxx_stdcxx=cxx11
4801 if test x$ac_prog_cxx_stdcxx = xno
4802 then :
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4804 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4805 if test ${ac_cv_prog_cxx_cxx98+y}
4806 then :
4807 printf %s "(cached) " >&6
4808 else $as_nop
4809 ac_cv_prog_cxx_cxx98=no
4810 ac_save_CXX=$CXX
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 $ac_cxx_conftest_cxx98_program
4814 _ACEOF
4815 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4817 CXX="$ac_save_CXX $ac_arg"
4818 if ac_fn_cxx_try_compile "$LINENO"
4819 then :
4820 ac_cv_prog_cxx_cxx98=$ac_arg
4822 rm -f core conftest.err conftest.$ac_objext conftest.beam
4823 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4824 done
4825 rm -f conftest.$ac_ext
4826 CXX=$ac_save_CXX
4829 if test "x$ac_cv_prog_cxx_cxx98" = xno
4830 then :
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4832 printf "%s\n" "unsupported" >&6; }
4833 else $as_nop
4834 if test "x$ac_cv_prog_cxx_cxx98" = x
4835 then :
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4837 printf "%s\n" "none needed" >&6; }
4838 else $as_nop
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4840 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4841 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4843 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4844 ac_prog_cxx_stdcxx=cxx98
4848 ac_ext=c
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855 # Find a good install program. We prefer a C program (faster),
4856 # so one script is as good as another. But avoid the broken or
4857 # incompatible versions:
4858 # SysV /etc/install, /usr/sbin/install
4859 # SunOS /usr/etc/install
4860 # IRIX /sbin/install
4861 # AIX /bin/install
4862 # AmigaOS /C/install, which installs bootblocks on floppy discs
4863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4866 # OS/2's system install, which has a completely different semantic
4867 # ./install, which can be erroneously created by make from ./install.sh.
4868 # Reject install programs that cannot install multiple files.
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4870 printf %s "checking for a BSD-compatible install... " >&6; }
4871 if test -z "$INSTALL"; then
4872 if test ${ac_cv_path_install+y}
4873 then :
4874 printf %s "(cached) " >&6
4875 else $as_nop
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 case $as_dir in #(((
4881 '') as_dir=./ ;;
4882 */) ;;
4883 *) as_dir=$as_dir/ ;;
4884 esac
4885 # Account for fact that we put trailing slashes in our PATH walk.
4886 case $as_dir in #((
4887 ./ | /[cC]/* | \
4888 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4889 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4890 /usr/ucb/* ) ;;
4892 # OSF1 and SCO ODT 3.0 have their own names for install.
4893 # Don't use installbsd from OSF since it installs stuff as root
4894 # by default.
4895 for ac_prog in ginstall scoinst install; do
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4898 if test $ac_prog = install &&
4899 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4900 # AIX install. It has an incompatible calling convention.
4902 elif test $ac_prog = install &&
4903 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4904 # program-specific install script used by HP pwplus--don't use.
4906 else
4907 rm -rf conftest.one conftest.two conftest.dir
4908 echo one > conftest.one
4909 echo two > conftest.two
4910 mkdir conftest.dir
4911 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4912 test -s conftest.one && test -s conftest.two &&
4913 test -s conftest.dir/conftest.one &&
4914 test -s conftest.dir/conftest.two
4915 then
4916 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4917 break 3
4921 done
4922 done
4924 esac
4926 done
4927 IFS=$as_save_IFS
4929 rm -rf conftest.one conftest.two conftest.dir
4932 if test ${ac_cv_path_install+y}; then
4933 INSTALL=$ac_cv_path_install
4934 else
4935 # As a last resort, use the slow shell script. Don't cache a
4936 # value for INSTALL within a source directory, because that will
4937 # break other packages using the cache if that directory is
4938 # removed, or if the value is a relative name.
4939 INSTALL=$ac_install_sh
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4943 printf "%s\n" "$INSTALL" >&6; }
4945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4946 # It thinks the first close brace ends the variable substitution.
4947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4953 if test -n "$ac_tool_prefix"; then
4954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 printf %s "checking for $ac_word... " >&6; }
4958 if test ${ac_cv_prog_RANLIB+y}
4959 then :
4960 printf %s "(cached) " >&6
4961 else $as_nop
4962 if test -n "$RANLIB"; then
4963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4968 IFS=$as_save_IFS
4969 case $as_dir in #(((
4970 '') as_dir=./ ;;
4971 */) ;;
4972 *) as_dir=$as_dir/ ;;
4973 esac
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4976 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4986 RANLIB=$ac_cv_prog_RANLIB
4987 if test -n "$RANLIB"; then
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4989 printf "%s\n" "$RANLIB" >&6; }
4990 else
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 printf "%s\n" "no" >&6; }
4997 if test -z "$ac_cv_prog_RANLIB"; then
4998 ac_ct_RANLIB=$RANLIB
4999 # Extract the first word of "ranlib", so it can be a program name with args.
5000 set dummy ranlib; ac_word=$2
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 printf %s "checking for $ac_word... " >&6; }
5003 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5004 then :
5005 printf %s "(cached) " >&6
5006 else $as_nop
5007 if test -n "$ac_ct_RANLIB"; then
5008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 case $as_dir in #(((
5015 '') as_dir=./ ;;
5016 */) ;;
5017 *) as_dir=$as_dir/ ;;
5018 esac
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_ac_ct_RANLIB="ranlib"
5022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5027 IFS=$as_save_IFS
5031 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5032 if test -n "$ac_ct_RANLIB"; then
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5034 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5035 else
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 printf "%s\n" "no" >&6; }
5040 if test "x$ac_ct_RANLIB" = x; then
5041 RANLIB=":"
5042 else
5043 case $cross_compiling:$ac_tool_warned in
5044 yes:)
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049 RANLIB=$ac_ct_RANLIB
5051 else
5052 RANLIB="$ac_cv_prog_RANLIB"
5055 # Extract the first word of "autoconf", so it can be a program name with args.
5056 set dummy autoconf; ac_word=$2
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 printf %s "checking for $ac_word... " >&6; }
5059 if test ${ac_cv_prog_AUTOCONF+y}
5060 then :
5061 printf %s "(cached) " >&6
5062 else $as_nop
5063 if test -n "$AUTOCONF"; then
5064 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 case $as_dir in #(((
5071 '') as_dir=./ ;;
5072 */) ;;
5073 *) as_dir=$as_dir/ ;;
5074 esac
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5077 ac_cv_prog_AUTOCONF="autoconf"
5078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5085 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
5088 AUTOCONF=$ac_cv_prog_AUTOCONF
5089 if test -n "$AUTOCONF"; then
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5091 printf "%s\n" "$AUTOCONF" >&6; }
5092 else
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 printf "%s\n" "no" >&6; }
5098 # Extract the first word of "strip", so it can be a program name with args.
5099 set dummy strip; ac_word=$2
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 printf %s "checking for $ac_word... " >&6; }
5102 if test ${ac_cv_prog_STRIP+y}
5103 then :
5104 printf %s "(cached) " >&6
5105 else $as_nop
5106 if test -n "$STRIP"; then
5107 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5112 IFS=$as_save_IFS
5113 case $as_dir in #(((
5114 '') as_dir=./ ;;
5115 */) ;;
5116 *) as_dir=$as_dir/ ;;
5117 esac
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_STRIP="strip"
5121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5122 break 2
5124 done
5125 done
5126 IFS=$as_save_IFS
5128 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5131 STRIP=$ac_cv_prog_STRIP
5132 if test -n "$STRIP"; then
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5134 printf "%s\n" "$STRIP" >&6; }
5135 else
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 printf "%s\n" "no" >&6; }
5141 # Extract the first word of "as", so it can be a program name with args.
5142 set dummy as; ac_word=$2
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 printf %s "checking for $ac_word... " >&6; }
5145 if test ${ac_cv_prog_AS+y}
5146 then :
5147 printf %s "(cached) " >&6
5148 else $as_nop
5149 if test -n "$AS"; then
5150 ac_cv_prog_AS="$AS" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 case $as_dir in #(((
5157 '') as_dir=./ ;;
5158 */) ;;
5159 *) as_dir=$as_dir/ ;;
5160 esac
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_AS="as"
5164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5165 break 2
5167 done
5168 done
5169 IFS=$as_save_IFS
5171 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
5174 AS=$ac_cv_prog_AS
5175 if test -n "$AS"; then
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5177 printf "%s\n" "$AS" >&6; }
5178 else
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 printf "%s\n" "no" >&6; }
5184 # Extract the first word of "cp", so it can be a program name with args.
5185 set dummy cp; ac_word=$2
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 printf %s "checking for $ac_word... " >&6; }
5188 if test ${ac_cv_prog_CP+y}
5189 then :
5190 printf %s "(cached) " >&6
5191 else $as_nop
5192 if test -n "$CP"; then
5193 ac_cv_prog_CP="$CP" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5198 IFS=$as_save_IFS
5199 case $as_dir in #(((
5200 '') as_dir=./ ;;
5201 */) ;;
5202 *) as_dir=$as_dir/ ;;
5203 esac
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5206 ac_cv_prog_CP="cp"
5207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5214 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
5217 CP=$ac_cv_prog_CP
5218 if test -n "$CP"; then
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5220 printf "%s\n" "$CP" >&6; }
5221 else
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 printf "%s\n" "no" >&6; }
5227 # Extract the first word of "ar", so it can be a program name with args.
5228 set dummy ar; ac_word=$2
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 printf %s "checking for $ac_word... " >&6; }
5231 if test ${ac_cv_prog_AR+y}
5232 then :
5233 printf %s "(cached) " >&6
5234 else $as_nop
5235 if test -n "$AR"; then
5236 ac_cv_prog_AR="$AR" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5241 IFS=$as_save_IFS
5242 case $as_dir in #(((
5243 '') as_dir=./ ;;
5244 */) ;;
5245 *) as_dir=$as_dir/ ;;
5246 esac
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5249 ac_cv_prog_AR="ar"
5250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5251 break 2
5253 done
5254 done
5255 IFS=$as_save_IFS
5257 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
5260 AR=$ac_cv_prog_AR
5261 if test -n "$AR"; then
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5263 printf "%s\n" "$AR" >&6; }
5264 else
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 printf "%s\n" "no" >&6; }
5270 # Extract the first word of "gm4", so it can be a program name with args.
5271 set dummy gm4; ac_word=$2
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 printf %s "checking for $ac_word... " >&6; }
5274 if test ${ac_cv_prog_M4+y}
5275 then :
5276 printf %s "(cached) " >&6
5277 else $as_nop
5278 if test -n "$M4"; then
5279 ac_cv_prog_M4="$M4" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
5285 case $as_dir in #(((
5286 '') as_dir=./ ;;
5287 */) ;;
5288 *) as_dir=$as_dir/ ;;
5289 esac
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5292 ac_cv_prog_M4="gm4"
5293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5294 break 2
5296 done
5297 done
5298 IFS=$as_save_IFS
5300 test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="m4"
5303 M4=$ac_cv_prog_M4
5304 if test -n "$M4"; then
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
5306 printf "%s\n" "$M4" >&6; }
5307 else
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 printf "%s\n" "no" >&6; }
5314 for ac_prog in flex lex
5316 # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy $ac_prog; ac_word=$2
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 printf %s "checking for $ac_word... " >&6; }
5320 if test ${ac_cv_prog_LEX+y}
5321 then :
5322 printf %s "(cached) " >&6
5323 else $as_nop
5324 if test -n "$LEX"; then
5325 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 case $as_dir in #(((
5332 '') as_dir=./ ;;
5333 */) ;;
5334 *) as_dir=$as_dir/ ;;
5335 esac
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_LEX="$ac_prog"
5339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5344 IFS=$as_save_IFS
5348 LEX=$ac_cv_prog_LEX
5349 if test -n "$LEX"; then
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5351 printf "%s\n" "$LEX" >&6; }
5352 else
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 printf "%s\n" "no" >&6; }
5358 test -n "$LEX" && break
5359 done
5360 test -n "$LEX" || LEX=":"
5363 for ac_prog in 'bison -y' byacc yacc
5365 # Extract the first word of "$ac_prog", so it can be a program name with args.
5366 set dummy $ac_prog; ac_word=$2
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 printf %s "checking for $ac_word... " >&6; }
5369 if test ${ac_cv_prog_YACC+y}
5370 then :
5371 printf %s "(cached) " >&6
5372 else $as_nop
5373 if test -n "$YACC"; then
5374 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5379 IFS=$as_save_IFS
5380 case $as_dir in #(((
5381 '') as_dir=./ ;;
5382 */) ;;
5383 *) as_dir=$as_dir/ ;;
5384 esac
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5387 ac_cv_prog_YACC="$ac_prog"
5388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5389 break 2
5391 done
5392 done
5393 IFS=$as_save_IFS
5397 YACC=$ac_cv_prog_YACC
5398 if test -n "$YACC"; then
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5400 printf "%s\n" "$YACC" >&6; }
5401 else
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 printf "%s\n" "no" >&6; }
5407 test -n "$YACC" && break
5408 done
5409 test -n "$YACC" || YACC=":"
5412 # 2.7 is just a guess for the minimum version. I know it works with 2.7 (and 3.6 and 3.9), but should test if a lower version is sufficient.
5419 if test -n "$PYTHON"; then
5420 # If the user set $PYTHON, use it and don't search something else.
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
5422 printf %s "checking whether $PYTHON version is >= 2.7... " >&6; }
5423 prog="import sys
5424 # split strings by '.' and convert to numeric. Append some zeros
5425 # because we need at least 4 digits for the hex conversion.
5426 # map returns an iterator in Python 3.0 and a list in 2.x
5427 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5428 minverhex = 0
5429 # xrange is not present in Python 3.0 and range returns an iterator
5430 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5431 sys.exit(sys.hexversion < minverhex)"
5432 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5433 ($PYTHON -c "$prog") >&5 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }
5437 then :
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5439 printf "%s\n" "yes" >&6; }
5440 else $as_nop
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 printf "%s\n" "no" >&6; }
5443 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5445 am_display_PYTHON=$PYTHON
5446 else
5447 # Otherwise, try each interpreter until we find one that satisfies
5448 # VERSION.
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
5450 printf %s "checking for a Python interpreter with version >= 2.7... " >&6; }
5451 if test ${am_cv_pathless_PYTHON+y}
5452 then :
5453 printf %s "(cached) " >&6
5454 else $as_nop
5456 for am_cv_pathless_PYTHON in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5457 test "$am_cv_pathless_PYTHON" = none && break
5458 prog="import sys
5459 # split strings by '.' and convert to numeric. Append some zeros
5460 # because we need at least 4 digits for the hex conversion.
5461 # map returns an iterator in Python 3.0 and a list in 2.x
5462 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5463 minverhex = 0
5464 # xrange is not present in Python 3.0 and range returns an iterator
5465 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5466 sys.exit(sys.hexversion < minverhex)"
5467 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5468 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }
5472 then :
5473 break
5475 done
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5478 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5479 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5480 if test "$am_cv_pathless_PYTHON" = none; then
5481 PYTHON=:
5482 else
5483 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5484 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 printf %s "checking for $ac_word... " >&6; }
5487 if test ${ac_cv_path_PYTHON+y}
5488 then :
5489 printf %s "(cached) " >&6
5490 else $as_nop
5491 case $PYTHON in
5492 [\\/]* | ?:[\\/]*)
5493 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 case $as_dir in #(((
5501 '') as_dir=./ ;;
5502 */) ;;
5503 *) as_dir=$as_dir/ ;;
5504 esac
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5507 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5509 break 2
5511 done
5512 done
5513 IFS=$as_save_IFS
5516 esac
5518 PYTHON=$ac_cv_path_PYTHON
5519 if test -n "$PYTHON"; then
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5521 printf "%s\n" "$PYTHON" >&6; }
5522 else
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 printf "%s\n" "no" >&6; }
5529 am_display_PYTHON=$am_cv_pathless_PYTHON
5533 if test "$PYTHON" = :; then
5535 else
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5538 printf %s "checking for $am_display_PYTHON version... " >&6; }
5539 if test ${am_cv_python_version+y}
5540 then :
5541 printf %s "(cached) " >&6
5542 else $as_nop
5543 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5546 printf "%s\n" "$am_cv_python_version" >&6; }
5547 PYTHON_VERSION=$am_cv_python_version
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5551 printf %s "checking for $am_display_PYTHON platform... " >&6; }
5552 if test ${am_cv_python_platform+y}
5553 then :
5554 printf %s "(cached) " >&6
5555 else $as_nop
5556 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5559 printf "%s\n" "$am_cv_python_platform" >&6; }
5560 PYTHON_PLATFORM=$am_cv_python_platform
5563 if test "x$prefix" = xNONE; then
5564 am__usable_prefix=$ac_default_prefix
5565 else
5566 am__usable_prefix=$prefix
5569 # Allow user to request using sys.* values from Python,
5570 # instead of the GNU $prefix values.
5572 # Check whether --with-python-sys-prefix was given.
5573 if test ${with_python_sys_prefix+y}
5574 then :
5575 withval=$with_python_sys_prefix; am_use_python_sys=:
5576 else $as_nop
5577 am_use_python_sys=false
5581 # Allow user to override whatever the default Python prefix is.
5583 # Check whether --with-python_prefix was given.
5584 if test ${with_python_prefix+y}
5585 then :
5586 withval=$with_python_prefix; am_python_prefix_subst=$withval
5587 am_cv_python_prefix=$withval
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
5589 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5591 printf "%s\n" "$am_cv_python_prefix" >&6; }
5592 else $as_nop
5594 if $am_use_python_sys; then
5595 # using python sys.prefix value, not GNU
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
5597 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
5598 if test ${am_cv_python_prefix+y}
5599 then :
5600 printf %s "(cached) " >&6
5601 else $as_nop
5602 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5605 printf "%s\n" "$am_cv_python_prefix" >&6; }
5607 case $am_cv_python_prefix in
5608 $am__usable_prefix*)
5609 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
5610 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
5613 am_python_prefix_subst=$am_cv_python_prefix
5615 esac
5616 else # using GNU prefix value, not python sys.prefix
5617 am_python_prefix_subst='${prefix}'
5618 am_python_prefix=$am_python_prefix_subst
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
5620 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
5622 printf "%s\n" "$am_python_prefix" >&6; }
5626 # Substituting python_prefix_subst value.
5627 PYTHON_PREFIX=$am_python_prefix_subst
5630 # emacs-page Now do it all over again for Python exec_prefix, but with yet
5631 # another conditional: fall back to regular prefix if that was specified.
5633 # Check whether --with-python_exec_prefix was given.
5634 if test ${with_python_exec_prefix+y}
5635 then :
5636 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
5637 am_cv_python_exec_prefix=$withval
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
5639 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5641 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5642 else $as_nop
5644 # no explicit --with-python_exec_prefix, but if
5645 # --with-python_prefix was given, use its value for python_exec_prefix too.
5646 if test -n "$with_python_prefix"
5647 then :
5648 am_python_exec_prefix_subst=$with_python_prefix
5649 am_cv_python_exec_prefix=$with_python_prefix
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
5651 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5653 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5654 else $as_nop
5656 # Set am__usable_exec_prefix whether using GNU or Python values,
5657 # since we use that variable for pyexecdir.
5658 if test "x$exec_prefix" = xNONE; then
5659 am__usable_exec_prefix=$am__usable_prefix
5660 else
5661 am__usable_exec_prefix=$exec_prefix
5664 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
5666 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
5667 if test ${am_cv_python_exec_prefix+y}
5668 then :
5669 printf %s "(cached) " >&6
5670 else $as_nop
5671 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5674 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5675 case $am_cv_python_exec_prefix in
5676 $am__usable_exec_prefix*)
5677 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
5678 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
5681 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
5683 esac
5684 else # using GNU $exec_prefix, not python sys.exec_prefix
5685 am_python_exec_prefix_subst='${exec_prefix}'
5686 am_python_exec_prefix=$am_python_exec_prefix_subst
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
5688 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
5690 printf "%s\n" "$am_python_exec_prefix" >&6; }
5695 # Substituting python_exec_prefix_subst.
5696 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
5699 # Factor out some code duplication into this shell variable.
5700 am_python_setup_sysconfig="\
5701 import sys
5702 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5703 # with python 3.x. See automake bug#10227.
5704 try:
5705 import sysconfig
5706 except ImportError:
5707 can_use_sysconfig = 0
5708 else:
5709 can_use_sysconfig = 1
5710 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5711 # <https://github.com/pypa/virtualenv/issues/118>
5712 try:
5713 from platform import python_implementation
5714 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5715 can_use_sysconfig = 0
5716 except ImportError:
5717 pass"
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
5721 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
5722 if test ${am_cv_python_pythondir+y}
5723 then :
5724 printf %s "(cached) " >&6
5725 else $as_nop
5726 if test "x$am_cv_python_prefix" = x; then
5727 am_py_prefix=$am__usable_prefix
5728 else
5729 am_py_prefix=$am_cv_python_prefix
5731 am_cv_python_pythondir=`$PYTHON -c "
5732 $am_python_setup_sysconfig
5733 if can_use_sysconfig:
5734 if hasattr(sysconfig, 'get_default_scheme'):
5735 scheme = sysconfig.get_default_scheme()
5736 else:
5737 scheme = sysconfig._get_default_scheme()
5738 if scheme == 'posix_local':
5739 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
5740 scheme = 'posix_prefix'
5741 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
5742 else:
5743 from distutils import sysconfig
5744 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5745 sys.stdout.write(sitedir)"`
5747 case $am_cv_python_pythondir in
5748 $am_py_prefix*)
5749 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5750 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
5753 case $am_py_prefix in
5754 /usr|/System*) ;;
5755 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
5757 esac
5759 esac
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5763 printf "%s\n" "$am_cv_python_pythondir" >&6; }
5764 pythondir=$am_cv_python_pythondir
5767 pkgpythondir=\${pythondir}/$PACKAGE
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
5771 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
5772 if test ${am_cv_python_pyexecdir+y}
5773 then :
5774 printf %s "(cached) " >&6
5775 else $as_nop
5776 if test "x$am_cv_python_exec_prefix" = x; then
5777 am_py_exec_prefix=$am__usable_exec_prefix
5778 else
5779 am_py_exec_prefix=$am_cv_python_exec_prefix
5781 am_cv_python_pyexecdir=`$PYTHON -c "
5782 $am_python_setup_sysconfig
5783 if can_use_sysconfig:
5784 if hasattr(sysconfig, 'get_default_scheme'):
5785 scheme = sysconfig.get_default_scheme()
5786 else:
5787 scheme = sysconfig._get_default_scheme()
5788 if scheme == 'posix_local':
5789 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
5790 scheme = 'posix_prefix'
5791 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
5792 else:
5793 from distutils import sysconfig
5794 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
5795 sys.stdout.write(sitedir)"`
5797 case $am_cv_python_pyexecdir in
5798 $am_py_exec_prefix*)
5799 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5800 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
5803 case $am_py_exec_prefix in
5804 /usr|/System*) ;;
5805 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
5807 esac
5809 esac
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5813 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
5814 pyexecdir=$am_cv_python_pyexecdir
5817 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5826 if test "$YACC" = ":"; then
5827 as_fn_error $? "Cannot find required program bison." "$LINENO" 5
5830 if test "$LEX" = ":"; then
5831 as_fn_error $? "Cannot find required program flex." "$LINENO" 5
5835 ac_ext=c
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843 ac_header= ac_cache=
5844 for ac_item in $ac_header_c_list
5846 if test $ac_cache; then
5847 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5848 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5849 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5851 ac_header= ac_cache=
5852 elif test $ac_header; then
5853 ac_cache=$ac_item
5854 else
5855 ac_header=$ac_item
5857 done
5866 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5867 then :
5869 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5872 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
5873 if test "x$ac_cv_header_endian_h" = xyes
5874 then :
5875 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
5878 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
5879 if test "x$ac_cv_header_sys_endian_h" = xyes
5880 then :
5881 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
5884 ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
5885 if test "x$ac_cv_header_machine_endian_h" = xyes
5886 then :
5887 printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
5890 ac_fn_c_check_header_compile "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default"
5891 if test "x$ac_cv_header_sys_isa_defs_h" = xyes
5892 then :
5893 printf "%s\n" "#define HAVE_SYS_ISA_DEFS_H 1" >>confdefs.h
5897 ac_fn_c_check_header_compile "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
5898 if test "x$ac_cv_header_uchar_h" = xyes
5899 then :
5900 printf "%s\n" "#define HAVE_UCHAR_H 1" >>confdefs.h
5904 # zlib is not needed by sdcc itself, but by sdcpp and sdbinutils.
5905 for ac_header in zlib.h
5906 do :
5907 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5908 if test "x$ac_cv_header_zlib_h" = xyes
5909 then :
5910 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
5912 else $as_nop
5913 as_fn_error $? "zlib library not found (zlib.h)." "$LINENO" 5
5916 done
5917 ac_ext=cpp
5918 ac_cpp='$CXXCPP $CPPFLAGS'
5919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5924 for ac_header in treedec/combinations.hpp
5925 do :
5926 ac_fn_cxx_check_header_compile "$LINENO" "treedec/combinations.hpp" "ac_cv_header_treedec_combinations_hpp" "$ac_includes_default"
5927 if test "x$ac_cv_header_treedec_combinations_hpp" = xyes
5928 then :
5929 printf "%s\n" "#define HAVE_TREEDEC_COMBINATIONS_HPP 1" >>confdefs.h
5931 else $as_nop
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: treedec library missing, falling back to Thorup." >&5
5933 printf "%s\n" "$as_me: treedec library missing, falling back to Thorup." >&6;}
5936 done
5937 ac_fn_cxx_check_header_compile "$LINENO" "gala/graph.h" "ac_cv_header_gala_graph_h" "$ac_includes_default"
5938 if test "x$ac_cv_header_gala_graph_h" = xyes
5939 then :
5940 printf "%s\n" "#define HAVE_GALA_GRAPH_H 1" >>confdefs.h
5944 for ac_header in boost/graph/adjacency_list.hpp
5945 do :
5946 ac_fn_cxx_check_header_compile "$LINENO" "boost/graph/adjacency_list.hpp" "ac_cv_header_boost_graph_adjacency_list_hpp" "$ac_includes_default"
5947 if test "x$ac_cv_header_boost_graph_adjacency_list_hpp" = xyes
5948 then :
5949 printf "%s\n" "#define HAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP 1" >>confdefs.h
5951 else $as_nop
5952 as_fn_error $? "boost library not found (boost/graph/adjacency_list.hpp)." "$LINENO" 5
5955 done
5956 ac_ext=c
5957 ac_cpp='$CPP $CPPFLAGS'
5958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964 # Check whether --with-ccache was given.
5965 if test ${with_ccache+y}
5966 then :
5967 withval=$with_ccache;
5970 case x${with_ccache-yes} in
5971 xyes) # Extract the first word of "ccache", so it can be a program name with args.
5972 set dummy ccache; ac_word=$2
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 printf %s "checking for $ac_word... " >&6; }
5975 if test ${ac_cv_prog_CCACHE+y}
5976 then :
5977 printf %s "(cached) " >&6
5978 else $as_nop
5979 if test -n "$CCACHE"; then
5980 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5985 IFS=$as_save_IFS
5986 case $as_dir in #(((
5987 '') as_dir=./ ;;
5988 */) ;;
5989 *) as_dir=$as_dir/ ;;
5990 esac
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5993 ac_cv_prog_CCACHE="ccache"
5994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5995 break 2
5997 done
5998 done
5999 IFS=$as_save_IFS
6003 CCACHE=$ac_cv_prog_CCACHE
6004 if test -n "$CCACHE"; then
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6006 printf "%s\n" "$CCACHE" >&6; }
6007 else
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 printf "%s\n" "no" >&6; }
6013 xno) ;;
6014 *) CCACHE=$with_ccache
6016 esac
6019 # Checking for functions
6020 # ===========================================================================
6021 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
6022 if test "x$ac_cv_func_mkstemp" = xyes
6023 then :
6024 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
6027 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
6028 if test "x$ac_cv_func_strndup" = xyes
6029 then :
6030 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
6033 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
6034 if test "x$ac_cv_func_setrlimit" = xyes
6035 then :
6036 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
6039 ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
6040 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes
6041 then :
6042 printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS_FD 1" >>confdefs.h
6048 # Macro definitions
6049 # ===========================================================================
6051 # _sdcc_EXECUTE_IFELSE_BODY(COMMAND)
6052 # -----------------------
6053 # Shell function body for _AC_EXECUTE_IFELSE.
6054 # _sdcc_EXECUTE_IFELSE_BODY
6056 # sdcc_EXECUTE_IFELSE(COMMAND[ACTION-IF-TRUE], [ACTION-IF-FALSE])
6057 # ----------------------------------------------------------------
6058 # Try to execute COMMAND.
6059 # sdcc_EXECUTE_IFELSE
6061 # Check whether the compiler for the current language is SunPRO.
6065 # sdcc_IS_VALID_OPTION macro checks if the current compiler, selected by
6066 # AC_LANG, supports option specified as the 1st parameter. The test fails if
6067 # the compiler returns an error or in case something is writeen to stderr.
6068 # For example: sdcc_VALID_OPT(-fPIC)
6072 # This macro expands DIR and assigns it to RET.
6073 # If DIR is NONE, then it's replaced by DEFAULT.
6075 # Based on AC_DEFINE_DIR
6077 # Examples:
6079 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
6083 # adl_NORMALIZE_PATH
6085 # - empty paths are changed to '.'
6086 # - trailing slashes are removed
6087 # - repeated slashes are squeezed except a leading doubled slash '//'
6088 # (which might indicate a networked disk on some OS).
6091 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
6092 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
6093 # are turned into backslashes, otherwise they are all turned into slashes.
6095 # This makes processing of DOS filenames quite easier, because you can turn a
6096 # filename to the Unix notation, make your processing, and turn it back to
6097 # original notation.
6102 # adl_COMPUTE_RELATIVE_PATH
6104 # PATH_LIST is a space-separated list of colon-separated triplets of the form
6105 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
6106 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
6107 # absolute filenames for this macro to success.
6111 ## Note:
6112 ## *****
6113 ## The following helper macros are too fragile to be used out
6114 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
6115 ## paths are normalized), that's why I'm keeping them in the same file.
6116 ## Still, some of them maybe worth to reuse.
6133 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6134 ac_ext=cpp
6135 ac_cpp='$CXXCPP $CPPFLAGS'
6136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6139 ac_success=no
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6142 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
6143 if test ${ax_cv_cxx_compile_cxx11+y}
6144 then :
6145 printf %s "(cached) " >&6
6146 else $as_nop
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6151 // If the compiler admits that it is not ready for C++11, why torture it?
6152 // Hopefully, this will speed up the test.
6154 #ifndef __cplusplus
6156 #error "This is not a C++ compiler"
6158 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6159 // only set it correctly if /Zc:__cplusplus is specified as well as a
6160 // /std:c++NN switch:
6161 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6162 #elif __cplusplus < 201103L && !defined _MSC_VER
6164 #error "This is not a C++11 compiler"
6166 #else
6168 namespace cxx11
6171 namespace test_static_assert
6174 template <typename T>
6175 struct check
6177 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6182 namespace test_final_override
6185 struct Base
6187 virtual ~Base() {}
6188 virtual void f() {}
6191 struct Derived : public Base
6193 virtual ~Derived() override {}
6194 virtual void f() override {}
6199 namespace test_double_right_angle_brackets
6202 template < typename T >
6203 struct check {};
6205 typedef check<void> single_type;
6206 typedef check<check<void>> double_type;
6207 typedef check<check<check<void>>> triple_type;
6208 typedef check<check<check<check<void>>>> quadruple_type;
6212 namespace test_decltype
6218 int a = 1;
6219 decltype(a) b = 2;
6220 return a + b;
6225 namespace test_type_deduction
6228 template < typename T1, typename T2 >
6229 struct is_same
6231 static const bool value = false;
6234 template < typename T >
6235 struct is_same<T, T>
6237 static const bool value = true;
6240 template < typename T1, typename T2 >
6241 auto
6242 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6244 return a1 + a2;
6248 test(const int c, volatile int v)
6250 static_assert(is_same<int, decltype(0)>::value == true, "");
6251 static_assert(is_same<int, decltype(c)>::value == false, "");
6252 static_assert(is_same<int, decltype(v)>::value == false, "");
6253 auto ac = c;
6254 auto av = v;
6255 auto sumi = ac + av + 'x';
6256 auto sumf = ac + av + 1.0;
6257 static_assert(is_same<int, decltype(ac)>::value == true, "");
6258 static_assert(is_same<int, decltype(av)>::value == true, "");
6259 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6260 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6261 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6262 return (sumf > 0.0) ? sumi : add(c, v);
6267 namespace test_noexcept
6270 int f() { return 0; }
6271 int g() noexcept { return 0; }
6273 static_assert(noexcept(f()) == false, "");
6274 static_assert(noexcept(g()) == true, "");
6278 namespace test_constexpr
6281 template < typename CharT >
6282 unsigned long constexpr
6283 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6285 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6288 template < typename CharT >
6289 unsigned long constexpr
6290 strlen_c(const CharT *const s) noexcept
6292 return strlen_c_r(s, 0UL);
6295 static_assert(strlen_c("") == 0UL, "");
6296 static_assert(strlen_c("1") == 1UL, "");
6297 static_assert(strlen_c("example") == 7UL, "");
6298 static_assert(strlen_c("another\0example") == 7UL, "");
6302 namespace test_rvalue_references
6305 template < int N >
6306 struct answer
6308 static constexpr int value = N;
6311 answer<1> f(int&) { return answer<1>(); }
6312 answer<2> f(const int&) { return answer<2>(); }
6313 answer<3> f(int&&) { return answer<3>(); }
6315 void
6316 test()
6318 int i = 0;
6319 const int c = 0;
6320 static_assert(decltype(f(i))::value == 1, "");
6321 static_assert(decltype(f(c))::value == 2, "");
6322 static_assert(decltype(f(0))::value == 3, "");
6327 namespace test_uniform_initialization
6330 struct test
6332 static const int zero {};
6333 static const int one {1};
6336 static_assert(test::zero == 0, "");
6337 static_assert(test::one == 1, "");
6341 namespace test_lambdas
6344 void
6345 test1()
6347 auto lambda1 = [](){};
6348 auto lambda2 = lambda1;
6349 lambda1();
6350 lambda2();
6354 test2()
6356 auto a = [](int i, int j){ return i + j; }(1, 2);
6357 auto b = []() -> int { return '0'; }();
6358 auto c = [=](){ return a + b; }();
6359 auto d = [&](){ return c; }();
6360 auto e = [a, &b](int x) mutable {
6361 const auto identity = [](int y){ return y; };
6362 for (auto i = 0; i < a; ++i)
6363 a += b--;
6364 return x + identity(a + b);
6365 }(0);
6366 return a + b + c + d + e;
6370 test3()
6372 const auto nullary = [](){ return 0; };
6373 const auto unary = [](int x){ return x; };
6374 using nullary_t = decltype(nullary);
6375 using unary_t = decltype(unary);
6376 const auto higher1st = [](nullary_t f){ return f(); };
6377 const auto higher2nd = [unary](nullary_t f1){
6378 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6380 return higher1st(nullary) + higher2nd(nullary)(unary);
6385 namespace test_variadic_templates
6388 template <int...>
6389 struct sum;
6391 template <int N0, int... N1toN>
6392 struct sum<N0, N1toN...>
6394 static constexpr auto value = N0 + sum<N1toN...>::value;
6397 template <>
6398 struct sum<>
6400 static constexpr auto value = 0;
6403 static_assert(sum<>::value == 0, "");
6404 static_assert(sum<1>::value == 1, "");
6405 static_assert(sum<23>::value == 23, "");
6406 static_assert(sum<1, 2>::value == 3, "");
6407 static_assert(sum<5, 5, 11>::value == 21, "");
6408 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6412 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6413 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6414 // because of this.
6415 namespace test_template_alias_sfinae
6418 struct foo {};
6420 template<typename T>
6421 using member = typename T::member_type;
6423 template<typename T>
6424 void func(...) {}
6426 template<typename T>
6427 void func(member<T>*) {}
6429 void test();
6431 void test() { func<foo>(0); }
6435 } // namespace cxx11
6437 #endif // __cplusplus >= 201103L
6441 _ACEOF
6442 if ac_fn_cxx_try_compile "$LINENO"
6443 then :
6444 ax_cv_cxx_compile_cxx11=yes
6445 else $as_nop
6446 ax_cv_cxx_compile_cxx11=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6451 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
6452 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6453 ac_success=yes
6456 if test x$ac_success = xno; then
6457 for alternative in ${ax_cxx_compile_alternatives}; do
6458 switch="-std=gnu++${alternative}"
6459 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6461 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6462 if eval test \${$cachevar+y}
6463 then :
6464 printf %s "(cached) " >&6
6465 else $as_nop
6466 ac_save_CXX="$CXX"
6467 CXX="$CXX $switch"
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6472 // If the compiler admits that it is not ready for C++11, why torture it?
6473 // Hopefully, this will speed up the test.
6475 #ifndef __cplusplus
6477 #error "This is not a C++ compiler"
6479 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6480 // only set it correctly if /Zc:__cplusplus is specified as well as a
6481 // /std:c++NN switch:
6482 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6483 #elif __cplusplus < 201103L && !defined _MSC_VER
6485 #error "This is not a C++11 compiler"
6487 #else
6489 namespace cxx11
6492 namespace test_static_assert
6495 template <typename T>
6496 struct check
6498 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6503 namespace test_final_override
6506 struct Base
6508 virtual ~Base() {}
6509 virtual void f() {}
6512 struct Derived : public Base
6514 virtual ~Derived() override {}
6515 virtual void f() override {}
6520 namespace test_double_right_angle_brackets
6523 template < typename T >
6524 struct check {};
6526 typedef check<void> single_type;
6527 typedef check<check<void>> double_type;
6528 typedef check<check<check<void>>> triple_type;
6529 typedef check<check<check<check<void>>>> quadruple_type;
6533 namespace test_decltype
6539 int a = 1;
6540 decltype(a) b = 2;
6541 return a + b;
6546 namespace test_type_deduction
6549 template < typename T1, typename T2 >
6550 struct is_same
6552 static const bool value = false;
6555 template < typename T >
6556 struct is_same<T, T>
6558 static const bool value = true;
6561 template < typename T1, typename T2 >
6562 auto
6563 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6565 return a1 + a2;
6569 test(const int c, volatile int v)
6571 static_assert(is_same<int, decltype(0)>::value == true, "");
6572 static_assert(is_same<int, decltype(c)>::value == false, "");
6573 static_assert(is_same<int, decltype(v)>::value == false, "");
6574 auto ac = c;
6575 auto av = v;
6576 auto sumi = ac + av + 'x';
6577 auto sumf = ac + av + 1.0;
6578 static_assert(is_same<int, decltype(ac)>::value == true, "");
6579 static_assert(is_same<int, decltype(av)>::value == true, "");
6580 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6581 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6582 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6583 return (sumf > 0.0) ? sumi : add(c, v);
6588 namespace test_noexcept
6591 int f() { return 0; }
6592 int g() noexcept { return 0; }
6594 static_assert(noexcept(f()) == false, "");
6595 static_assert(noexcept(g()) == true, "");
6599 namespace test_constexpr
6602 template < typename CharT >
6603 unsigned long constexpr
6604 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6606 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6609 template < typename CharT >
6610 unsigned long constexpr
6611 strlen_c(const CharT *const s) noexcept
6613 return strlen_c_r(s, 0UL);
6616 static_assert(strlen_c("") == 0UL, "");
6617 static_assert(strlen_c("1") == 1UL, "");
6618 static_assert(strlen_c("example") == 7UL, "");
6619 static_assert(strlen_c("another\0example") == 7UL, "");
6623 namespace test_rvalue_references
6626 template < int N >
6627 struct answer
6629 static constexpr int value = N;
6632 answer<1> f(int&) { return answer<1>(); }
6633 answer<2> f(const int&) { return answer<2>(); }
6634 answer<3> f(int&&) { return answer<3>(); }
6636 void
6637 test()
6639 int i = 0;
6640 const int c = 0;
6641 static_assert(decltype(f(i))::value == 1, "");
6642 static_assert(decltype(f(c))::value == 2, "");
6643 static_assert(decltype(f(0))::value == 3, "");
6648 namespace test_uniform_initialization
6651 struct test
6653 static const int zero {};
6654 static const int one {1};
6657 static_assert(test::zero == 0, "");
6658 static_assert(test::one == 1, "");
6662 namespace test_lambdas
6665 void
6666 test1()
6668 auto lambda1 = [](){};
6669 auto lambda2 = lambda1;
6670 lambda1();
6671 lambda2();
6675 test2()
6677 auto a = [](int i, int j){ return i + j; }(1, 2);
6678 auto b = []() -> int { return '0'; }();
6679 auto c = [=](){ return a + b; }();
6680 auto d = [&](){ return c; }();
6681 auto e = [a, &b](int x) mutable {
6682 const auto identity = [](int y){ return y; };
6683 for (auto i = 0; i < a; ++i)
6684 a += b--;
6685 return x + identity(a + b);
6686 }(0);
6687 return a + b + c + d + e;
6691 test3()
6693 const auto nullary = [](){ return 0; };
6694 const auto unary = [](int x){ return x; };
6695 using nullary_t = decltype(nullary);
6696 using unary_t = decltype(unary);
6697 const auto higher1st = [](nullary_t f){ return f(); };
6698 const auto higher2nd = [unary](nullary_t f1){
6699 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6701 return higher1st(nullary) + higher2nd(nullary)(unary);
6706 namespace test_variadic_templates
6709 template <int...>
6710 struct sum;
6712 template <int N0, int... N1toN>
6713 struct sum<N0, N1toN...>
6715 static constexpr auto value = N0 + sum<N1toN...>::value;
6718 template <>
6719 struct sum<>
6721 static constexpr auto value = 0;
6724 static_assert(sum<>::value == 0, "");
6725 static_assert(sum<1>::value == 1, "");
6726 static_assert(sum<23>::value == 23, "");
6727 static_assert(sum<1, 2>::value == 3, "");
6728 static_assert(sum<5, 5, 11>::value == 21, "");
6729 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6733 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6734 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6735 // because of this.
6736 namespace test_template_alias_sfinae
6739 struct foo {};
6741 template<typename T>
6742 using member = typename T::member_type;
6744 template<typename T>
6745 void func(...) {}
6747 template<typename T>
6748 void func(member<T>*) {}
6750 void test();
6752 void test() { func<foo>(0); }
6756 } // namespace cxx11
6758 #endif // __cplusplus >= 201103L
6762 _ACEOF
6763 if ac_fn_cxx_try_compile "$LINENO"
6764 then :
6765 eval $cachevar=yes
6766 else $as_nop
6767 eval $cachevar=no
6769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6770 CXX="$ac_save_CXX"
6772 eval ac_res=\$$cachevar
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6774 printf "%s\n" "$ac_res" >&6; }
6775 if eval test x\$$cachevar = xyes; then
6776 CXX="$CXX $switch"
6777 if test -n "$CXXCPP" ; then
6778 CXXCPP="$CXXCPP $switch"
6780 ac_success=yes
6781 break
6783 done
6786 if test x$ac_success = xno; then
6787 for alternative in ${ax_cxx_compile_alternatives}; do
6788 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6789 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6791 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6792 if eval test \${$cachevar+y}
6793 then :
6794 printf %s "(cached) " >&6
6795 else $as_nop
6796 ac_save_CXX="$CXX"
6797 CXX="$CXX $switch"
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6802 // If the compiler admits that it is not ready for C++11, why torture it?
6803 // Hopefully, this will speed up the test.
6805 #ifndef __cplusplus
6807 #error "This is not a C++ compiler"
6809 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6810 // only set it correctly if /Zc:__cplusplus is specified as well as a
6811 // /std:c++NN switch:
6812 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6813 #elif __cplusplus < 201103L && !defined _MSC_VER
6815 #error "This is not a C++11 compiler"
6817 #else
6819 namespace cxx11
6822 namespace test_static_assert
6825 template <typename T>
6826 struct check
6828 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6833 namespace test_final_override
6836 struct Base
6838 virtual ~Base() {}
6839 virtual void f() {}
6842 struct Derived : public Base
6844 virtual ~Derived() override {}
6845 virtual void f() override {}
6850 namespace test_double_right_angle_brackets
6853 template < typename T >
6854 struct check {};
6856 typedef check<void> single_type;
6857 typedef check<check<void>> double_type;
6858 typedef check<check<check<void>>> triple_type;
6859 typedef check<check<check<check<void>>>> quadruple_type;
6863 namespace test_decltype
6869 int a = 1;
6870 decltype(a) b = 2;
6871 return a + b;
6876 namespace test_type_deduction
6879 template < typename T1, typename T2 >
6880 struct is_same
6882 static const bool value = false;
6885 template < typename T >
6886 struct is_same<T, T>
6888 static const bool value = true;
6891 template < typename T1, typename T2 >
6892 auto
6893 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6895 return a1 + a2;
6899 test(const int c, volatile int v)
6901 static_assert(is_same<int, decltype(0)>::value == true, "");
6902 static_assert(is_same<int, decltype(c)>::value == false, "");
6903 static_assert(is_same<int, decltype(v)>::value == false, "");
6904 auto ac = c;
6905 auto av = v;
6906 auto sumi = ac + av + 'x';
6907 auto sumf = ac + av + 1.0;
6908 static_assert(is_same<int, decltype(ac)>::value == true, "");
6909 static_assert(is_same<int, decltype(av)>::value == true, "");
6910 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6911 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6912 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6913 return (sumf > 0.0) ? sumi : add(c, v);
6918 namespace test_noexcept
6921 int f() { return 0; }
6922 int g() noexcept { return 0; }
6924 static_assert(noexcept(f()) == false, "");
6925 static_assert(noexcept(g()) == true, "");
6929 namespace test_constexpr
6932 template < typename CharT >
6933 unsigned long constexpr
6934 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6936 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6939 template < typename CharT >
6940 unsigned long constexpr
6941 strlen_c(const CharT *const s) noexcept
6943 return strlen_c_r(s, 0UL);
6946 static_assert(strlen_c("") == 0UL, "");
6947 static_assert(strlen_c("1") == 1UL, "");
6948 static_assert(strlen_c("example") == 7UL, "");
6949 static_assert(strlen_c("another\0example") == 7UL, "");
6953 namespace test_rvalue_references
6956 template < int N >
6957 struct answer
6959 static constexpr int value = N;
6962 answer<1> f(int&) { return answer<1>(); }
6963 answer<2> f(const int&) { return answer<2>(); }
6964 answer<3> f(int&&) { return answer<3>(); }
6966 void
6967 test()
6969 int i = 0;
6970 const int c = 0;
6971 static_assert(decltype(f(i))::value == 1, "");
6972 static_assert(decltype(f(c))::value == 2, "");
6973 static_assert(decltype(f(0))::value == 3, "");
6978 namespace test_uniform_initialization
6981 struct test
6983 static const int zero {};
6984 static const int one {1};
6987 static_assert(test::zero == 0, "");
6988 static_assert(test::one == 1, "");
6992 namespace test_lambdas
6995 void
6996 test1()
6998 auto lambda1 = [](){};
6999 auto lambda2 = lambda1;
7000 lambda1();
7001 lambda2();
7005 test2()
7007 auto a = [](int i, int j){ return i + j; }(1, 2);
7008 auto b = []() -> int { return '0'; }();
7009 auto c = [=](){ return a + b; }();
7010 auto d = [&](){ return c; }();
7011 auto e = [a, &b](int x) mutable {
7012 const auto identity = [](int y){ return y; };
7013 for (auto i = 0; i < a; ++i)
7014 a += b--;
7015 return x + identity(a + b);
7016 }(0);
7017 return a + b + c + d + e;
7021 test3()
7023 const auto nullary = [](){ return 0; };
7024 const auto unary = [](int x){ return x; };
7025 using nullary_t = decltype(nullary);
7026 using unary_t = decltype(unary);
7027 const auto higher1st = [](nullary_t f){ return f(); };
7028 const auto higher2nd = [unary](nullary_t f1){
7029 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7031 return higher1st(nullary) + higher2nd(nullary)(unary);
7036 namespace test_variadic_templates
7039 template <int...>
7040 struct sum;
7042 template <int N0, int... N1toN>
7043 struct sum<N0, N1toN...>
7045 static constexpr auto value = N0 + sum<N1toN...>::value;
7048 template <>
7049 struct sum<>
7051 static constexpr auto value = 0;
7054 static_assert(sum<>::value == 0, "");
7055 static_assert(sum<1>::value == 1, "");
7056 static_assert(sum<23>::value == 23, "");
7057 static_assert(sum<1, 2>::value == 3, "");
7058 static_assert(sum<5, 5, 11>::value == 21, "");
7059 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7063 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7064 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7065 // because of this.
7066 namespace test_template_alias_sfinae
7069 struct foo {};
7071 template<typename T>
7072 using member = typename T::member_type;
7074 template<typename T>
7075 void func(...) {}
7077 template<typename T>
7078 void func(member<T>*) {}
7080 void test();
7082 void test() { func<foo>(0); }
7086 } // namespace cxx11
7088 #endif // __cplusplus >= 201103L
7092 _ACEOF
7093 if ac_fn_cxx_try_compile "$LINENO"
7094 then :
7095 eval $cachevar=yes
7096 else $as_nop
7097 eval $cachevar=no
7099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7100 CXX="$ac_save_CXX"
7102 eval ac_res=\$$cachevar
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7104 printf "%s\n" "$ac_res" >&6; }
7105 if eval test x\$$cachevar = xyes; then
7106 CXX="$CXX $switch"
7107 if test -n "$CXXCPP" ; then
7108 CXXCPP="$CXXCPP $switch"
7110 ac_success=yes
7111 break
7113 done
7114 if test x$ac_success = xyes; then
7115 break
7117 done
7119 ac_ext=c
7120 ac_cpp='$CPP $CPPFLAGS'
7121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7126 if test x$ac_success = xno; then
7127 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7130 if test x$ac_success = xno; then
7131 HAVE_CXX11=0
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7133 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
7134 else
7135 HAVE_CXX11=1
7137 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
7143 # Checking characteristics of compilers and other programs
7144 # ===========================================================================
7145 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether preprocessor accepts -MM or -M" >&5
7147 printf %s "checking whether preprocessor accepts -MM or -M... " >&6; }
7148 if test ${sdcc_cv_MM+y}
7149 then :
7150 printf %s "(cached) " >&6
7151 else $as_nop
7152 echo "#include <stdio.h>" >_test_.c
7153 echo "" >>_test_.c
7154 $CPP -v -MM _test_.c 1>&5 2>&5
7155 if test "$?" = "0"; then
7156 sdcc_cv_MM="-MM"
7157 else
7158 sdcc_cv_MM="-M"
7160 rm -f _test_.*
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_MM" >&5
7163 printf "%s\n" "$sdcc_cv_MM" >&6; }
7165 # This is the first time when CFLAGS are set/modified!!
7166 arg1=`echo -ggdb | sed -e"s/^-*//" -e"s/-/_/"`
7167 ac_test_CFLAGS=${CFLAGS+set}
7168 sdcc_save_CFLAGS=$CFLAGS
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -ggdb" >&5
7170 printf %s "checking whether C accepts -ggdb... " >&6; }
7171 if eval test \${sdcc_cv_c_$arg1+y}
7172 then :
7173 printf %s "(cached) " >&6
7174 else $as_nop
7175 sdcc_save_c_werror_flag=$ac_c_werror_flag
7176 ac_c_werror_flag=yes
7178 CFLAGS="-ggdb"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7183 main (void)
7187 return 0;
7189 _ACEOF
7190 if ac_fn_c_try_compile "$LINENO"
7191 then :
7192 eval sdcc_cv_c_$arg1=yes
7193 else $as_nop
7194 eval sdcc_cv_c_$arg1=no
7196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7197 ac_c_werror_flag=$sdcc_save_c_werror_flag
7199 eval ac_res=\$sdcc_cv_c_$arg1
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7201 printf "%s\n" "$ac_res" >&6; }
7202 CFLAGS=$sdcc_save_CFLAGS
7204 if test "$sdcc_cv_c_ggdb" = "yes"; then
7205 CFLAGS="-ggdb ${CFLAGS}"
7206 CXXFLAGS="-ggdb ${CXXFLAGS}"
7209 arg1=`echo -pipe | sed -e"s/^-*//" -e"s/-/_/"`
7210 ac_test_CFLAGS=${CFLAGS+set}
7211 sdcc_save_CFLAGS=$CFLAGS
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -pipe" >&5
7213 printf %s "checking whether C accepts -pipe... " >&6; }
7214 if eval test \${sdcc_cv_c_$arg1+y}
7215 then :
7216 printf %s "(cached) " >&6
7217 else $as_nop
7218 sdcc_save_c_werror_flag=$ac_c_werror_flag
7219 ac_c_werror_flag=yes
7221 CFLAGS="-pipe"
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7226 main (void)
7230 return 0;
7232 _ACEOF
7233 if ac_fn_c_try_compile "$LINENO"
7234 then :
7235 eval sdcc_cv_c_$arg1=yes
7236 else $as_nop
7237 eval sdcc_cv_c_$arg1=no
7239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7240 ac_c_werror_flag=$sdcc_save_c_werror_flag
7242 eval ac_res=\$sdcc_cv_c_$arg1
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7244 printf "%s\n" "$ac_res" >&6; }
7245 CFLAGS=$sdcc_save_CFLAGS
7247 if test "$sdcc_cv_c_pipe" = "yes"; then
7248 CFLAGS="-pipe ${CFLAGS}"
7249 # Don't use "-pipe" on x86 Solaris g++, since src/z80/ralloc2.cc dies with:
7250 # Assembler: ralloc2.cc
7251 # "<stdin>", line 117637 : Internal: Out of symbol table
7252 if test `uname` != "SunOS" -o \( `uname` = "SunOS" -a `uname -m` != "i86pc" \); then
7253 CXXFLAGS="-pipe ${CXXFLAGS}"
7257 WALL_FLAG="-Wall -Wno-parentheses"
7258 MAKEDEP_CXX="$CXX $sdcc_cv_MM"
7259 MAKEDEP="$CC $sdcc_cv_MM"
7260 else
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the SunPRO C compiler" >&5
7262 printf %s "checking whether we are using the SunPRO C compiler... " >&6; }
7263 if test ${sdcc_cv_c_compiler_sunpro+y}
7264 then :
7265 printf %s "(cached) " >&6
7266 else $as_nop
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7271 main (void)
7273 #if !defined __SUNPRO_C && !defined __SUNPRO_CC
7274 choke me
7275 #endif
7278 return 0;
7280 _ACEOF
7281 if ac_fn_c_try_compile "$LINENO"
7282 then :
7283 sdcc_cv_c_compiler_sunpro=yes
7284 else $as_nop
7285 sdcc_cv_c_compiler_sunpro=no
7287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_c_compiler_sunpro" >&5
7291 printf "%s\n" "$sdcc_cv_c_compiler_sunpro" >&6; }
7298 # Check for c11
7299 # -------------------------------------------------------------------------
7300 if test "$ac_cv_prog_cc_c11" == "no"; then
7301 as_fn_error $? "Could not find C11-capable host compiler." "$LINENO" 5
7304 # Checks for typedefs, structures, and compiler characteristics.
7305 # ===========================================================================
7307 # The cast to long int works around a bug in the HP C Compiler
7308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7310 # This bug is HP SR number 8606223364.
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
7312 printf %s "checking size of char... " >&6; }
7313 if test ${ac_cv_sizeof_char+y}
7314 then :
7315 printf %s "(cached) " >&6
7316 else $as_nop
7317 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
7318 then :
7320 else $as_nop
7321 if test "$ac_cv_type_char" = yes; then
7322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7323 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7324 as_fn_error 77 "cannot compute sizeof (char)
7325 See \`config.log' for more details" "$LINENO" 5; }
7326 else
7327 ac_cv_sizeof_char=0
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
7333 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
7337 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
7340 # The cast to long int works around a bug in the HP C Compiler
7341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7343 # This bug is HP SR number 8606223364.
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7345 printf %s "checking size of short... " >&6; }
7346 if test ${ac_cv_sizeof_short+y}
7347 then :
7348 printf %s "(cached) " >&6
7349 else $as_nop
7350 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
7351 then :
7353 else $as_nop
7354 if test "$ac_cv_type_short" = yes; then
7355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7356 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7357 as_fn_error 77 "cannot compute sizeof (short)
7358 See \`config.log' for more details" "$LINENO" 5; }
7359 else
7360 ac_cv_sizeof_short=0
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7366 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
7370 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
7373 # The cast to long int works around a bug in the HP C Compiler
7374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7376 # This bug is HP SR number 8606223364.
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7378 printf %s "checking size of int... " >&6; }
7379 if test ${ac_cv_sizeof_int+y}
7380 then :
7381 printf %s "(cached) " >&6
7382 else $as_nop
7383 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
7384 then :
7386 else $as_nop
7387 if test "$ac_cv_type_int" = yes; then
7388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7389 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7390 as_fn_error 77 "cannot compute sizeof (int)
7391 See \`config.log' for more details" "$LINENO" 5; }
7392 else
7393 ac_cv_sizeof_int=0
7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7399 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
7403 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
7406 # The cast to long int works around a bug in the HP C Compiler
7407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7409 # This bug is HP SR number 8606223364.
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7411 printf %s "checking size of long... " >&6; }
7412 if test ${ac_cv_sizeof_long+y}
7413 then :
7414 printf %s "(cached) " >&6
7415 else $as_nop
7416 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
7417 then :
7419 else $as_nop
7420 if test "$ac_cv_type_long" = yes; then
7421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7422 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7423 as_fn_error 77 "cannot compute sizeof (long)
7424 See \`config.log' for more details" "$LINENO" 5; }
7425 else
7426 ac_cv_sizeof_long=0
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7432 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
7436 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
7439 # The cast to long int works around a bug in the HP C Compiler
7440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7442 # This bug is HP SR number 8606223364.
7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7444 printf %s "checking size of long long... " >&6; }
7445 if test ${ac_cv_sizeof_long_long+y}
7446 then :
7447 printf %s "(cached) " >&6
7448 else $as_nop
7449 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
7450 then :
7452 else $as_nop
7453 if test "$ac_cv_type_long_long" = yes; then
7454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7455 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7456 as_fn_error 77 "cannot compute sizeof (long long)
7457 See \`config.log' for more details" "$LINENO" 5; }
7458 else
7459 ac_cv_sizeof_long_long=0
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7465 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
7469 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
7473 printf %s "checking whether char is unsigned... " >&6; }
7474 if test ${ac_cv_c_char_unsigned+y}
7475 then :
7476 printf %s "(cached) " >&6
7477 else $as_nop
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 $ac_includes_default
7482 main (void)
7484 static int test_array [1 - 2 * !(((char) -1) < 0)];
7485 test_array [0] = 0;
7486 return test_array [0];
7489 return 0;
7491 _ACEOF
7492 if ac_fn_c_try_compile "$LINENO"
7493 then :
7494 ac_cv_c_char_unsigned=no
7495 else $as_nop
7496 ac_cv_c_char_unsigned=yes
7498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
7501 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
7502 if test $ac_cv_c_char_unsigned = yes; then
7503 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
7508 type_name()
7510 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
7511 echo "char"
7512 exit
7514 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
7515 echo "short"
7516 exit
7518 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
7519 echo "int"
7520 exit
7522 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
7523 echo "long"
7524 exit
7526 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
7527 echo "long long"
7528 exit
7530 echo "long"
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for byte" >&5
7534 printf %s "checking type name for byte... " >&6; }
7535 TYPE_CHAR=`type_name 1`
7536 if test "$ac_cv_c_char_unsigned" = "yes"; then
7537 TYPE_BYTE="signed $TYPE_CHAR"
7538 else
7539 TYPE_BYTE=$TYPE_CHAR
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_BYTE" >&5
7542 printf "%s\n" "$TYPE_BYTE" >&6; }
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for word" >&5
7544 printf %s "checking type name for word... " >&6; }
7545 TYPE_WORD=`type_name 2`
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_WORD" >&5
7547 printf "%s\n" "$TYPE_WORD" >&6; }
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for dword" >&5
7549 printf %s "checking type name for dword... " >&6; }
7550 TYPE_DWORD=`type_name 4`
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_DWORD" >&5
7552 printf "%s\n" "$TYPE_DWORD" >&6; }
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for qword" >&5
7554 printf %s "checking type name for qword... " >&6; }
7555 TYPE_QWORD=`type_name 8`
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_QWORD" >&5
7557 printf "%s\n" "$TYPE_QWORD" >&6; }
7560 printf "%s\n" "#define TYPE_BYTE $TYPE_BYTE" >>confdefs.h
7563 printf "%s\n" "#define TYPE_WORD $TYPE_WORD" >>confdefs.h
7566 printf "%s\n" "#define TYPE_DWORD $TYPE_DWORD" >>confdefs.h
7569 printf "%s\n" "#define TYPE_QWORD $TYPE_QWORD" >>confdefs.h
7573 printf "%s\n" "#define TYPE_UBYTE unsigned $TYPE_CHAR" >>confdefs.h
7576 printf "%s\n" "#define TYPE_UWORD unsigned $TYPE_WORD" >>confdefs.h
7579 printf "%s\n" "#define TYPE_UDWORD unsigned $TYPE_DWORD" >>confdefs.h
7582 printf "%s\n" "#define TYPE_UQWORD unsigned $TYPE_QWORD" >>confdefs.h
7585 case "${host}" in
7586 *x86_64*cygwin*)
7587 LDFLAGS="$LDFLAGS -Wl,--stack,4194304"
7589 *x86_64*mingw*)
7590 LDFLAGS="$LDFLAGS -Wl,--stack,4194304"
7592 esac
7594 # Checking whether byte ordering is bigendian
7595 # ===========================================================================
7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7597 printf %s "checking whether byte ordering is bigendian... " >&6; }
7598 if test ${ac_cv_c_bigendian+y}
7599 then :
7600 printf %s "(cached) " >&6
7601 else $as_nop
7602 ac_cv_c_bigendian=unknown
7603 # See if we're dealing with a universal compiler.
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 #ifndef __APPLE_CC__
7607 not a universal capable compiler
7608 #endif
7609 typedef int dummy;
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"
7613 then :
7615 # Check for potential -arch flags. It is not universal unless
7616 # there are at least two -arch flags with different values.
7617 ac_arch=
7618 ac_prev=
7619 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7620 if test -n "$ac_prev"; then
7621 case $ac_word in
7622 i?86 | x86_64 | ppc | ppc64)
7623 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7624 ac_arch=$ac_word
7625 else
7626 ac_cv_c_bigendian=universal
7627 break
7630 esac
7631 ac_prev=
7632 elif test "x$ac_word" = "x-arch"; then
7633 ac_prev=arch
7635 done
7637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7638 if test $ac_cv_c_bigendian = unknown; then
7639 # See if sys/param.h defines the BYTE_ORDER macro.
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 #include <sys/types.h>
7643 #include <sys/param.h>
7646 main (void)
7648 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7649 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7650 && LITTLE_ENDIAN)
7651 bogus endian macros
7652 #endif
7655 return 0;
7657 _ACEOF
7658 if ac_fn_c_try_compile "$LINENO"
7659 then :
7660 # It does; now see whether it defined to BIG_ENDIAN or not.
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 #include <sys/types.h>
7664 #include <sys/param.h>
7667 main (void)
7669 #if BYTE_ORDER != BIG_ENDIAN
7670 not big endian
7671 #endif
7674 return 0;
7676 _ACEOF
7677 if ac_fn_c_try_compile "$LINENO"
7678 then :
7679 ac_cv_c_bigendian=yes
7680 else $as_nop
7681 ac_cv_c_bigendian=no
7683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7687 if test $ac_cv_c_bigendian = unknown; then
7688 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7691 #include <limits.h>
7694 main (void)
7696 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7697 bogus endian macros
7698 #endif
7701 return 0;
7703 _ACEOF
7704 if ac_fn_c_try_compile "$LINENO"
7705 then :
7706 # It does; now see whether it defined to _BIG_ENDIAN or not.
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 #include <limits.h>
7712 main (void)
7714 #ifndef _BIG_ENDIAN
7715 not big endian
7716 #endif
7719 return 0;
7721 _ACEOF
7722 if ac_fn_c_try_compile "$LINENO"
7723 then :
7724 ac_cv_c_bigendian=yes
7725 else $as_nop
7726 ac_cv_c_bigendian=no
7728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7732 if test $ac_cv_c_bigendian = unknown; then
7733 # Compile a test program.
7734 if test "$cross_compiling" = yes
7735 then :
7736 # Try to guess by grepping values from an object file.
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 unsigned short int ascii_mm[] =
7740 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7741 unsigned short int ascii_ii[] =
7742 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7743 int use_ascii (int i) {
7744 return ascii_mm[i] + ascii_ii[i];
7746 unsigned short int ebcdic_ii[] =
7747 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7748 unsigned short int ebcdic_mm[] =
7749 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7750 int use_ebcdic (int i) {
7751 return ebcdic_mm[i] + ebcdic_ii[i];
7753 extern int foo;
7756 main (void)
7758 return use_ascii (foo) == use_ebcdic (foo);
7760 return 0;
7762 _ACEOF
7763 if ac_fn_c_try_compile "$LINENO"
7764 then :
7765 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7766 ac_cv_c_bigendian=yes
7768 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7769 if test "$ac_cv_c_bigendian" = unknown; then
7770 ac_cv_c_bigendian=no
7771 else
7772 # finding both strings is unlikely to happen, but who knows?
7773 ac_cv_c_bigendian=unknown
7777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7778 else $as_nop
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 $ac_includes_default
7783 main (void)
7786 /* Are we little or big endian? From Harbison&Steele. */
7787 union
7789 long int l;
7790 char c[sizeof (long int)];
7791 } u;
7792 u.l = 1;
7793 return u.c[sizeof (long int) - 1] == 1;
7796 return 0;
7798 _ACEOF
7799 if ac_fn_c_try_run "$LINENO"
7800 then :
7801 ac_cv_c_bigendian=no
7802 else $as_nop
7803 ac_cv_c_bigendian=yes
7805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7806 conftest.$ac_objext conftest.beam conftest.$ac_ext
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7812 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
7813 case $ac_cv_c_bigendian in #(
7814 yes)
7815 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
7816 ;; #(
7818 ;; #(
7819 universal)
7821 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7823 ;; #(
7825 as_fn_error $? "unknown endianness
7826 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7827 esac
7830 # Set standard installation paths
7831 # ===========================================================================
7833 # In the Makefiles we need paths with '/' as directory separator, even if
7834 # crosscompiling for Win32.
7835 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
7836 # The variables in the Makefiles are replaced by AC_SUBST()
7838 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
7840 # The macros are expanded for the header.
7841 # The variables in the header are replaced by AC_*DEFINE*()
7842 # sdccconf_h_dir_separator contains a backslash.
7844 if test "x${sdccconf_h_dir_separator}" = "x"; then
7845 sdccconf_h_dir_separator="/"
7848 # Makefiles
7849 ###########
7851 # LIB_TYPE:
7852 # *nix default: "RANLIB"
7855 if test "${LIB_TYPE}" = ""; then
7856 LIB_TYPE="RANLIB"
7859 # include_dir_suffix:
7860 # *nix default: "sdcc/include"
7863 if test "${inclib_dir_suffix}" = ""; then
7864 inclib_dir_suffix="sdcc"
7868 if test "${include_dir_suffix}" = ""; then
7869 include_dir_suffix="${inclib_dir_suffix}/include"
7873 if test "${non_free_inclib_dir_suffix}" = ""; then
7874 non_free_inclib_dir_suffix="sdcc/non-free"
7877 # non_free_include_dir_suffix:
7878 # *nix default: "sdcc/non-free/include"
7881 if test "${non_free_include_dir_suffix}" = ""; then
7882 non_free_include_dir_suffix="${non_free_inclib_dir_suffix}/include"
7885 # lib_dir_suffix:
7886 # *nix default: "sdcc/lib"
7888 if test "${lib_dir_suffix}" = ""; then
7889 lib_dir_suffix="${inclib_dir_suffix}/lib"
7892 # non_free_lib_dir_suffix:
7893 # *nix default: "sdcc/non-free/lib"
7895 if test "${non_free_lib_dir_suffix}" = ""; then
7896 non_free_lib_dir_suffix="${non_free_inclib_dir_suffix}/lib"
7899 # docdir:
7900 # *nix default: "${datadir}/sdcc/doc"
7902 if test "${docdir}" = ""; then
7903 docdir="\${datadir}"/sdcc/doc
7908 # sdccconf.h
7909 ############
7912 printf "%s\n" "#define DIR_SEPARATOR_STRING \"${sdccconf_h_dir_separator}\"" >>confdefs.h
7915 printf "%s\n" "#define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'" >>confdefs.h
7918 # prefix:
7919 # default: "NONE", ${ac_default_prefix}: "/usr/local"
7921 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7923 ac_expand=$prefix
7924 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
7925 ac_expand=`eval echo $ac_expand`
7926 expanded_prefix=`eval echo $ac_expand`
7929 ac_ndu=$expanded_prefix
7930 case ":$ac_ndu:" in
7931 ::) ac_ndu='.' ;;
7932 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7933 :*:) ;;
7934 esac
7935 case $sdccconf_h_dir_separator in
7937 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7938 s,^[\\/],\\\\\\\\,'` ;;
7940 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7941 esac
7943 printf "%s\n" "#define PREFIX \"${ac_ndu}\"" >>confdefs.h
7947 # exec_prefix:
7948 # default: "${prefix}"
7950 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7952 ac_expand=$exec_prefix
7953 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
7954 ac_expand=`eval echo $ac_expand`
7955 expanded_exec_prefix=`eval echo $ac_expand`
7958 ac_ndu=$expanded_exec_prefix
7959 case ":$ac_ndu:" in
7960 ::) ac_ndu='.' ;;
7961 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7962 :*:) ;;
7963 esac
7964 case $sdccconf_h_dir_separator in
7966 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7967 s,^[\\/],\\\\\\\\,'` ;;
7969 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7970 esac
7972 printf "%s\n" "#define EXEC_PREFIX \"${ac_ndu}\"" >>confdefs.h
7976 # bindir:
7977 # default: "${exec_prefix}/bin"
7979 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7980 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7981 ac_expand=$bindir
7982 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
7983 ac_expand=`eval echo $ac_expand`
7984 expanded_bindir=`eval echo $ac_expand`
7987 ac_ndu=$expanded_bindir
7988 case ":$ac_ndu:" in
7989 ::) ac_ndu='.' ;;
7990 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7991 :*:) ;;
7992 esac
7993 case $sdccconf_h_dir_separator in
7995 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7996 s,^[\\/],\\\\\\\\,'` ;;
7998 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7999 esac
8001 printf "%s\n" "#define BINDIR \"${ac_ndu}\"" >>confdefs.h
8005 # datadir:
8006 # default: "${prefix}/share"
8008 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8010 ac_expand=$datadir
8011 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
8012 ac_expand=`eval echo $ac_expand`
8013 expanded_datadir=`eval echo $ac_expand`
8016 ac_ndu=$expanded_datadir
8017 case ":$ac_ndu:" in
8018 ::) ac_ndu='.' ;;
8019 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
8020 :*:) ;;
8021 esac
8022 case $sdccconf_h_dir_separator in
8024 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8025 s,^[\\/],\\\\\\\\,'` ;;
8027 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8028 esac
8030 printf "%s\n" "#define DATADIR \"${ac_ndu}\"" >>confdefs.h
8034 # include/lib suffix
8035 norm_inc_dir_suffix=${include_dir_suffix}
8036 case ":$norm_inc_dir_suffix:" in
8037 ::) norm_inc_dir_suffix='.' ;;
8038 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8039 :*:) ;;
8040 esac
8041 case $sdccconf_h_dir_separator in
8043 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8044 s,^[\\/],\\\\\\\\,'` ;;
8046 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8047 esac
8049 printf "%s\n" "#define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_inc_dir_suffix}\"" >>confdefs.h
8051 norm_non_free_inc_dir_suffix=${non_free_include_dir_suffix}
8052 case ":$norm_non_free_inc_dir_suffix:" in
8053 ::) norm_non_free_inc_dir_suffix='.' ;;
8054 :*[\\/]:) norm_non_free_inc_dir_suffix=`echo "$norm_non_free_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8055 :*:) ;;
8056 esac
8057 case $sdccconf_h_dir_separator in
8059 *\\*) norm_non_free_inc_dir_suffix=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8060 s,^[\\/],\\\\\\\\,'` ;;
8062 *) norm_non_free_inc_dir_suffix=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8063 esac
8065 printf "%s\n" "#define NON_FREE_INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_inc_dir_suffix}\"" >>confdefs.h
8068 norm_lib_dir_suffix=${lib_dir_suffix}
8069 case ":$norm_lib_dir_suffix:" in
8070 ::) norm_lib_dir_suffix='.' ;;
8071 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8072 :*:) ;;
8073 esac
8074 case $sdccconf_h_dir_separator in
8076 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8077 s,^[\\/],\\\\\\\\,'` ;;
8079 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8080 esac
8082 printf "%s\n" "#define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_lib_dir_suffix}\"" >>confdefs.h
8084 norm_non_free_lib_dir_suffix=${non_free_lib_dir_suffix}
8085 case ":$norm_non_free_lib_dir_suffix:" in
8086 ::) norm_non_free_lib_dir_suffix='.' ;;
8087 :*[\\/]:) norm_non_free_lib_dir_suffix=`echo "$norm_non_free_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8088 :*:) ;;
8089 esac
8090 case $sdccconf_h_dir_separator in
8092 *\\*) norm_non_free_lib_dir_suffix=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8093 s,^[\\/],\\\\\\\\,'` ;;
8095 *) norm_non_free_lib_dir_suffix=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8096 esac
8098 printf "%s\n" "#define NON_FREE_LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_lib_dir_suffix}\"" >>confdefs.h
8101 # relative paths
8102 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
8103 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
8104 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8105 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
8106 _lcl_receval="$_lcl_from"
8107 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8108 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8109 _lcl_receval_old=''
8110 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8111 _lcl_receval_old="$_lcl_receval"
8112 eval _lcl_receval="\"$_lcl_receval\""
8113 done
8114 echo "$_lcl_receval")`
8115 _lcl_receval="$_lcl_to"
8116 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8117 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8118 _lcl_receval_old=''
8119 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8120 _lcl_receval_old="$_lcl_receval"
8121 eval _lcl_receval="\"$_lcl_receval\""
8122 done
8123 echo "$_lcl_receval")`
8124 _lcl_notation="$_lcl_from$_lcl_to"
8125 case ":$_lcl_from:" in
8126 ::) _lcl_from='.' ;;
8127 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8128 :*:) ;;
8129 esac
8130 case '/' in
8132 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8133 s,^[\\/],\\\\\\\\,'` ;;
8135 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8136 esac
8137 case ":$_lcl_to:" in
8138 ::) _lcl_to='.' ;;
8139 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8140 :*:) ;;
8141 esac
8142 case '/' in
8144 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8145 s,^[\\/],\\\\\\\\,'` ;;
8147 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8148 esac
8149 _lcl_common_prefix=''
8150 _lcl_second_prefix_match=''
8151 while test "$_lcl_second_prefix_match" != 0; do
8152 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8153 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8154 if test "$_lcl_second_prefix_match" != 0; then
8155 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8156 _lcl_common_prefix="$_lcl_first_prefix"
8157 else
8158 _lcl_second_prefix_match=0
8161 done
8162 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8163 _lcl_first_rel=''
8164 _lcl_tmp='xxx'
8165 while test "$_lcl_tmp" != ''; do
8166 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8167 if test "$_lcl_first_suffix" != ''; then
8168 _lcl_first_suffix="$_lcl_tmp"
8169 _lcl_first_rel="../$_lcl_first_rel"
8171 done
8172 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8173 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
8174 case ":$_lcl_result_tmp:" in
8175 ::) _lcl_result_tmp='.' ;;
8176 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8177 :*:) ;;
8178 esac
8179 case "$_lcl_notation" in
8181 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8182 s,^[\\/],\\\\\\\\,'` ;;
8184 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8185 esac
8186 eval $_lcl_result_var='$_lcl_result_tmp'
8187 done
8188 case ":$bin2data_dir:" in
8189 ::) bin2data_dir='.' ;;
8190 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
8191 :*:) ;;
8192 esac
8193 case $sdccconf_h_dir_separator in
8195 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8196 s,^[\\/],\\\\\\\\,'` ;;
8198 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8199 esac
8201 printf "%s\n" "#define BIN2DATA_DIR DIR_SEPARATOR_STRING \"${bin2data_dir}\"" >>confdefs.h
8204 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
8205 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
8206 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8207 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
8208 _lcl_receval="$_lcl_from"
8209 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8210 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8211 _lcl_receval_old=''
8212 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8213 _lcl_receval_old="$_lcl_receval"
8214 eval _lcl_receval="\"$_lcl_receval\""
8215 done
8216 echo "$_lcl_receval")`
8217 _lcl_receval="$_lcl_to"
8218 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8219 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8220 _lcl_receval_old=''
8221 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8222 _lcl_receval_old="$_lcl_receval"
8223 eval _lcl_receval="\"$_lcl_receval\""
8224 done
8225 echo "$_lcl_receval")`
8226 _lcl_notation="$_lcl_from$_lcl_to"
8227 case ":$_lcl_from:" in
8228 ::) _lcl_from='.' ;;
8229 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8230 :*:) ;;
8231 esac
8232 case '/' in
8234 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8235 s,^[\\/],\\\\\\\\,'` ;;
8237 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8238 esac
8239 case ":$_lcl_to:" in
8240 ::) _lcl_to='.' ;;
8241 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8242 :*:) ;;
8243 esac
8244 case '/' in
8246 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8247 s,^[\\/],\\\\\\\\,'` ;;
8249 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8250 esac
8251 _lcl_common_prefix=''
8252 _lcl_second_prefix_match=''
8253 while test "$_lcl_second_prefix_match" != 0; do
8254 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8255 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8256 if test "$_lcl_second_prefix_match" != 0; then
8257 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8258 _lcl_common_prefix="$_lcl_first_prefix"
8259 else
8260 _lcl_second_prefix_match=0
8263 done
8264 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8265 _lcl_first_rel=''
8266 _lcl_tmp='xxx'
8267 while test "$_lcl_tmp" != ''; do
8268 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8269 if test "$_lcl_first_suffix" != ''; then
8270 _lcl_first_suffix="$_lcl_tmp"
8271 _lcl_first_rel="../$_lcl_first_rel"
8273 done
8274 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8275 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
8276 case ":$_lcl_result_tmp:" in
8277 ::) _lcl_result_tmp='.' ;;
8278 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8279 :*:) ;;
8280 esac
8281 case "$_lcl_notation" in
8283 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8284 s,^[\\/],\\\\\\\\,'` ;;
8286 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8287 esac
8288 eval $_lcl_result_var='$_lcl_result_tmp'
8289 done
8290 case ":$prefix2bin_dir:" in
8291 ::) prefix2bin_dir='.' ;;
8292 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
8293 :*:) ;;
8294 esac
8295 case $sdccconf_h_dir_separator in
8297 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8298 s,^[\\/],\\\\\\\\,'` ;;
8300 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8301 esac
8303 printf "%s\n" "#define PREFIX2BIN_DIR DIR_SEPARATOR_STRING \"${prefix2bin_dir}\"" >>confdefs.h
8306 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
8307 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
8308 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8309 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
8310 _lcl_receval="$_lcl_from"
8311 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8312 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8313 _lcl_receval_old=''
8314 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8315 _lcl_receval_old="$_lcl_receval"
8316 eval _lcl_receval="\"$_lcl_receval\""
8317 done
8318 echo "$_lcl_receval")`
8319 _lcl_receval="$_lcl_to"
8320 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8321 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8322 _lcl_receval_old=''
8323 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8324 _lcl_receval_old="$_lcl_receval"
8325 eval _lcl_receval="\"$_lcl_receval\""
8326 done
8327 echo "$_lcl_receval")`
8328 _lcl_notation="$_lcl_from$_lcl_to"
8329 case ":$_lcl_from:" in
8330 ::) _lcl_from='.' ;;
8331 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8332 :*:) ;;
8333 esac
8334 case '/' in
8336 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8337 s,^[\\/],\\\\\\\\,'` ;;
8339 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8340 esac
8341 case ":$_lcl_to:" in
8342 ::) _lcl_to='.' ;;
8343 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8344 :*:) ;;
8345 esac
8346 case '/' in
8348 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8349 s,^[\\/],\\\\\\\\,'` ;;
8351 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8352 esac
8353 _lcl_common_prefix=''
8354 _lcl_second_prefix_match=''
8355 while test "$_lcl_second_prefix_match" != 0; do
8356 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8357 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8358 if test "$_lcl_second_prefix_match" != 0; then
8359 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8360 _lcl_common_prefix="$_lcl_first_prefix"
8361 else
8362 _lcl_second_prefix_match=0
8365 done
8366 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8367 _lcl_first_rel=''
8368 _lcl_tmp='xxx'
8369 while test "$_lcl_tmp" != ''; do
8370 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8371 if test "$_lcl_first_suffix" != ''; then
8372 _lcl_first_suffix="$_lcl_tmp"
8373 _lcl_first_rel="../$_lcl_first_rel"
8375 done
8376 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8377 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
8378 case ":$_lcl_result_tmp:" in
8379 ::) _lcl_result_tmp='.' ;;
8380 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8381 :*:) ;;
8382 esac
8383 case "$_lcl_notation" in
8385 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8386 s,^[\\/],\\\\\\\\,'` ;;
8388 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8389 esac
8390 eval $_lcl_result_var='$_lcl_result_tmp'
8391 done
8392 case ":$prefix2data_dir:" in
8393 ::) prefix2data_dir='.' ;;
8394 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
8395 :*:) ;;
8396 esac
8397 case $sdccconf_h_dir_separator in
8399 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8400 s,^[\\/],\\\\\\\\,'` ;;
8402 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8403 esac
8404 if test "${prefix2data_dir}" = "."; then
8405 # small optimization for Mingw32; otherwise Borut will complain ;-)
8407 printf "%s\n" "#define PREFIX2DATA_DIR \"\"" >>confdefs.h
8409 else
8411 printf "%s\n" "#define PREFIX2DATA_DIR DIR_SEPARATOR_STRING \"${prefix2data_dir}\"" >>confdefs.h
8415 # standard libs
8417 printf "%s\n" "#define STD_LIB \"libsdcc\"" >>confdefs.h
8420 printf "%s\n" "#define STD_INT_LIB \"libint\"" >>confdefs.h
8423 printf "%s\n" "#define STD_LONG_LIB \"liblong\"" >>confdefs.h
8426 printf "%s\n" "#define STD_FP_LIB \"libfloat\"" >>confdefs.h
8429 printf "%s\n" "#define STD_DS390_LIB \"libds390\"" >>confdefs.h
8432 printf "%s\n" "#define STD_DS400_LIB \"libds400\"" >>confdefs.h
8435 # SDCC runtime environment variables
8436 sdcc_dir_name="SDCC_HOME"
8438 printf "%s\n" "#define SDCC_DIR_NAME \"${sdcc_dir_name}\"" >>confdefs.h
8441 sdcc_include_name="SDCC_INCLUDE"
8443 printf "%s\n" "#define SDCC_INCLUDE_NAME \"${sdcc_include_name}\"" >>confdefs.h
8446 sdcc_lib_name="SDCC_LIB"
8448 printf "%s\n" "#define SDCC_LIB_NAME \"${sdcc_lib_name}\"" >>confdefs.h
8451 # add include guard and custom stuff to sdccconf.h
8455 # Port selection helper
8456 # ===========================================================================
8457 # macro AC_DO_ENABLER()
8458 # $1 used to access enable_$1, e.g. enable_doc
8459 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
8460 # $3 help string
8463 # macro AC_DO_DISABLER()
8464 # $1 used to access disable_$1, e.g. ucsim
8465 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
8466 # $3 help string
8469 # macro AC_DO_PORT($1, $2, $3, $4)
8470 # $1 used to access enable_$2_port, e.g. sm83
8471 # $2 port name in ports.all and ports.build, e.g. z80
8472 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8473 # $4 help string
8476 # macro AC_DO_PORT_ENABLER($1, $2, $3, $4)
8477 # $1 used to access enable_$2_port, e.g. sm83
8478 # $2 port name in ports.all and ports.build, e.g. z80
8479 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8480 # $4 help string
8483 # Revision number
8484 # ===============
8486 GIT_REVISION=""
8487 SVN_REVISION="unknown"
8488 if test -d "${srcdir}/.git"; then
8489 GIT_REVISION=$( git log --pretty=format:'%h' -n 1u )
8490 echo "Found Git repo... $GIT_REVISION"
8491 SVN_REVISION=$( git log -1 | tail -n1 | cut -f2 -d @ | cut -f1 -d" " )
8496 # Now handle the port selection
8497 # ===========================================================================
8498 rm -f ports.all ports.build
8500 # Supported targets
8502 # Check whether --enable-mcs51-port was given.
8503 if test ${enable_mcs51_port+y}
8504 then :
8505 enableval=$enable_mcs51_port;
8509 if test "$enable_mcs51_port" = "no"; then
8510 OPT_DISABLE_MCS51=1
8511 else
8512 enable_mcs51_port="yes"
8513 OPT_DISABLE_MCS51=0
8517 printf "%s\n" "#define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51" >>confdefs.h
8521 echo mcs51 >>ports.all
8522 if test $OPT_DISABLE_MCS51 = 0; then
8523 echo mcs51 >>ports.build
8527 # Check whether --enable-z80-port was given.
8528 if test ${enable_z80_port+y}
8529 then :
8530 enableval=$enable_z80_port;
8534 if test "$enable_z80_port" = "no"; then
8535 OPT_DISABLE_Z80=1
8536 else
8537 enable_z80_port="yes"
8538 OPT_DISABLE_Z80=0
8542 printf "%s\n" "#define OPT_DISABLE_Z80 $OPT_DISABLE_Z80" >>confdefs.h
8546 echo z80 >>ports.all
8547 if test $OPT_DISABLE_Z80 = 0; then
8548 echo z80 >>ports.build
8552 # Check whether --enable-z180-port was given.
8553 if test ${enable_z180_port+y}
8554 then :
8555 enableval=$enable_z180_port;
8559 if test "$enable_z180_port" = "no"; then
8560 OPT_DISABLE_Z180=1
8561 else
8562 enable_z180_port="yes"
8563 OPT_DISABLE_Z180=0
8567 printf "%s\n" "#define OPT_DISABLE_Z180 $OPT_DISABLE_Z180" >>confdefs.h
8571 echo z80 >>ports.all
8572 if test $OPT_DISABLE_Z180 = 0; then
8573 echo z80 >>ports.build
8577 # Check whether --enable-r2k-port was given.
8578 if test ${enable_r2k_port+y}
8579 then :
8580 enableval=$enable_r2k_port;
8584 if test "$enable_r2k_port" = "no"; then
8585 OPT_DISABLE_R2K=1
8586 else
8587 enable_r2k_port="yes"
8588 OPT_DISABLE_R2K=0
8592 printf "%s\n" "#define OPT_DISABLE_R2K $OPT_DISABLE_R2K" >>confdefs.h
8596 echo z80 >>ports.all
8597 if test $OPT_DISABLE_R2K = 0; then
8598 echo z80 >>ports.build
8602 # Check whether --enable-r2ka-port was given.
8603 if test ${enable_r2ka_port+y}
8604 then :
8605 enableval=$enable_r2ka_port;
8609 if test "$enable_r2ka_port" = "no"; then
8610 OPT_DISABLE_R2KA=1
8611 else
8612 enable_r2ka_port="yes"
8613 OPT_DISABLE_R2KA=0
8617 printf "%s\n" "#define OPT_DISABLE_R2KA $OPT_DISABLE_R2KA" >>confdefs.h
8621 echo z80 >>ports.all
8622 if test $OPT_DISABLE_R2KA = 0; then
8623 echo z80 >>ports.build
8627 # Check whether --enable-r3ka-port was given.
8628 if test ${enable_r3ka_port+y}
8629 then :
8630 enableval=$enable_r3ka_port;
8634 if test "$enable_r3ka_port" = "no"; then
8635 OPT_DISABLE_R3KA=1
8636 else
8637 enable_r3ka_port="yes"
8638 OPT_DISABLE_R3KA=0
8642 printf "%s\n" "#define OPT_DISABLE_R3KA $OPT_DISABLE_R3KA" >>confdefs.h
8646 echo z80 >>ports.all
8647 if test $OPT_DISABLE_R3KA = 0; then
8648 echo z80 >>ports.build
8652 # Check whether --enable-sm83-port was given.
8653 if test ${enable_sm83_port+y}
8654 then :
8655 enableval=$enable_sm83_port;
8659 if test "$enable_sm83_port" = "no"; then
8660 OPT_DISABLE_SM83=1
8661 else
8662 enable_sm83_port="yes"
8663 OPT_DISABLE_SM83=0
8667 printf "%s\n" "#define OPT_DISABLE_SM83 $OPT_DISABLE_SM83" >>confdefs.h
8671 echo z80 >>ports.all
8672 if test $OPT_DISABLE_SM83 = 0; then
8673 echo z80 >>ports.build
8677 # Check whether --enable-tlcs90-port was given.
8678 if test ${enable_tlcs90_port+y}
8679 then :
8680 enableval=$enable_tlcs90_port;
8684 if test "$enable_tlcs90_port" = "no"; then
8685 OPT_DISABLE_TLCS90=1
8686 else
8687 enable_tlcs90_port="yes"
8688 OPT_DISABLE_TLCS90=0
8692 printf "%s\n" "#define OPT_DISABLE_TLCS90 $OPT_DISABLE_TLCS90" >>confdefs.h
8696 echo z80 >>ports.all
8697 if test $OPT_DISABLE_TLCS90 = 0; then
8698 echo z80 >>ports.build
8702 # Check whether --enable-ez80_z80-port was given.
8703 if test ${enable_ez80_z80_port+y}
8704 then :
8705 enableval=$enable_ez80_z80_port;
8709 if test "$enable_ez80_z80_port" = "no"; then
8710 OPT_DISABLE_EZ80_Z80=1
8711 else
8712 enable_ez80_z80_port="yes"
8713 OPT_DISABLE_EZ80_Z80=0
8717 printf "%s\n" "#define OPT_DISABLE_EZ80_Z80 $OPT_DISABLE_EZ80_Z80" >>confdefs.h
8721 echo z80 >>ports.all
8722 if test $OPT_DISABLE_EZ80_Z80 = 0; then
8723 echo z80 >>ports.build
8727 # Check whether --enable-z80n-port was given.
8728 if test ${enable_z80n_port+y}
8729 then :
8730 enableval=$enable_z80n_port;
8734 if test "$enable_z80n_port" = "no"; then
8735 OPT_DISABLE_Z80N=1
8736 else
8737 enable_z80n_port="yes"
8738 OPT_DISABLE_Z80N=0
8742 printf "%s\n" "#define OPT_DISABLE_Z80N $OPT_DISABLE_Z80N" >>confdefs.h
8746 echo z80 >>ports.all
8747 if test $OPT_DISABLE_Z80N = 0; then
8748 echo z80 >>ports.build
8752 # Check whether --enable-r800-port was given.
8753 if test ${enable_r800_port+y}
8754 then :
8755 enableval=$enable_r800_port;
8759 if test "$enable_r800_port" = "no"; then
8760 OPT_DISABLE_R800=1
8761 else
8762 enable_r800_port="yes"
8763 OPT_DISABLE_R800=0
8767 printf "%s\n" "#define OPT_DISABLE_R800 $OPT_DISABLE_R800" >>confdefs.h
8771 echo z80 >>ports.all
8772 if test $OPT_DISABLE_R800 = 0; then
8773 echo z80 >>ports.build
8777 # Check whether --enable-ds390-port was given.
8778 if test ${enable_ds390_port+y}
8779 then :
8780 enableval=$enable_ds390_port;
8784 if test "$enable_ds390_port" = "no"; then
8785 OPT_DISABLE_DS390=1
8786 else
8787 enable_ds390_port="yes"
8788 OPT_DISABLE_DS390=0
8792 printf "%s\n" "#define OPT_DISABLE_DS390 $OPT_DISABLE_DS390" >>confdefs.h
8796 echo ds390 >>ports.all
8797 if test $OPT_DISABLE_DS390 = 0; then
8798 echo ds390 >>ports.build
8802 printf "%s\n" "#define OPT_DISABLE_TININative $OPT_DISABLE_DS390" >>confdefs.h
8805 # Check whether --enable-ds400-port was given.
8806 if test ${enable_ds400_port+y}
8807 then :
8808 enableval=$enable_ds400_port;
8812 if test "$enable_ds400_port" = "no"; then
8813 OPT_DISABLE_DS400=1
8814 else
8815 enable_ds400_port="yes"
8816 OPT_DISABLE_DS400=0
8820 printf "%s\n" "#define OPT_DISABLE_DS400 $OPT_DISABLE_DS400" >>confdefs.h
8824 echo ds390 >>ports.all
8825 if test $OPT_DISABLE_DS400 = 0; then
8826 echo ds390 >>ports.build
8830 # Check whether --enable-pic14-port was given.
8831 if test ${enable_pic14_port+y}
8832 then :
8833 enableval=$enable_pic14_port;
8837 if test "$enable_pic14_port" = "no"; then
8838 OPT_DISABLE_PIC14=1
8839 else
8840 enable_pic14_port="yes"
8841 OPT_DISABLE_PIC14=0
8845 printf "%s\n" "#define OPT_DISABLE_PIC14 $OPT_DISABLE_PIC14" >>confdefs.h
8849 echo pic14 >>ports.all
8850 if test $OPT_DISABLE_PIC14 = 0; then
8851 echo pic14 >>ports.build
8855 # Check whether --enable-pic16-port was given.
8856 if test ${enable_pic16_port+y}
8857 then :
8858 enableval=$enable_pic16_port;
8862 if test "$enable_pic16_port" = "no"; then
8863 OPT_DISABLE_PIC16=1
8864 else
8865 enable_pic16_port="yes"
8866 OPT_DISABLE_PIC16=0
8870 printf "%s\n" "#define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16" >>confdefs.h
8874 echo pic16 >>ports.all
8875 if test $OPT_DISABLE_PIC16 = 0; then
8876 echo pic16 >>ports.build
8880 # Check whether --enable-hc08-port was given.
8881 if test ${enable_hc08_port+y}
8882 then :
8883 enableval=$enable_hc08_port;
8887 if test "$enable_hc08_port" = "no"; then
8888 OPT_DISABLE_HC08=1
8889 else
8890 enable_hc08_port="yes"
8891 OPT_DISABLE_HC08=0
8895 printf "%s\n" "#define OPT_DISABLE_HC08 $OPT_DISABLE_HC08" >>confdefs.h
8899 echo hc08 >>ports.all
8900 if test $OPT_DISABLE_HC08 = 0; then
8901 echo hc08 >>ports.build
8905 # Check whether --enable-s08-port was given.
8906 if test ${enable_s08_port+y}
8907 then :
8908 enableval=$enable_s08_port;
8912 if test "$enable_s08_port" = "no"; then
8913 OPT_DISABLE_S08=1
8914 else
8915 enable_s08_port="yes"
8916 OPT_DISABLE_S08=0
8920 printf "%s\n" "#define OPT_DISABLE_S08 $OPT_DISABLE_S08" >>confdefs.h
8924 echo hc08 >>ports.all
8925 if test $OPT_DISABLE_S08 = 0; then
8926 echo hc08 >>ports.build
8930 # Check whether --enable-stm8-port was given.
8931 if test ${enable_stm8_port+y}
8932 then :
8933 enableval=$enable_stm8_port;
8937 if test "$enable_stm8_port" = "no"; then
8938 OPT_DISABLE_STM8=1
8939 else
8940 enable_stm8_port="yes"
8941 OPT_DISABLE_STM8=0
8945 printf "%s\n" "#define OPT_DISABLE_STM8 $OPT_DISABLE_STM8" >>confdefs.h
8949 echo stm8 >>ports.all
8950 if test $OPT_DISABLE_STM8 = 0; then
8951 echo stm8 >>ports.build
8955 # Check whether --enable-pdk13-port was given.
8956 if test ${enable_pdk13_port+y}
8957 then :
8958 enableval=$enable_pdk13_port;
8962 if test "$enable_pdk13_port" = "no"; then
8963 OPT_DISABLE_PDK13=1
8964 else
8965 enable_pdk13_port="yes"
8966 OPT_DISABLE_PDK13=0
8970 printf "%s\n" "#define OPT_DISABLE_PDK13 $OPT_DISABLE_PDK13" >>confdefs.h
8974 echo pdk >>ports.all
8975 if test $OPT_DISABLE_PDK13 = 0; then
8976 echo pdk >>ports.build
8980 # Check whether --enable-pdk14-port was given.
8981 if test ${enable_pdk14_port+y}
8982 then :
8983 enableval=$enable_pdk14_port;
8987 if test "$enable_pdk14_port" = "no"; then
8988 OPT_DISABLE_PDK14=1
8989 else
8990 enable_pdk14_port="yes"
8991 OPT_DISABLE_PDK14=0
8995 printf "%s\n" "#define OPT_DISABLE_PDK14 $OPT_DISABLE_PDK14" >>confdefs.h
8999 echo pdk >>ports.all
9000 if test $OPT_DISABLE_PDK14 = 0; then
9001 echo pdk >>ports.build
9005 # Check whether --enable-pdk15-port was given.
9006 if test ${enable_pdk15_port+y}
9007 then :
9008 enableval=$enable_pdk15_port;
9012 if test "$enable_pdk15_port" = "no"; then
9013 OPT_DISABLE_PDK15=1
9014 else
9015 enable_pdk15_port="yes"
9016 OPT_DISABLE_PDK15=0
9020 printf "%s\n" "#define OPT_DISABLE_PDK15 $OPT_DISABLE_PDK15" >>confdefs.h
9024 echo pdk >>ports.all
9025 if test $OPT_DISABLE_PDK15 = 0; then
9026 echo pdk >>ports.build
9030 # Check whether --enable-pdk16-port was given.
9031 if test ${enable_pdk16_port+y}
9032 then :
9033 enableval=$enable_pdk16_port;
9037 if test "$enable_pdk16_port" = "yes"; then
9038 OPT_DISABLE_PDK16=0
9039 else
9040 enable_pdk16_port="no"
9041 OPT_DISABLE_PDK16=1
9045 printf "%s\n" "#define OPT_DISABLE_PDK16 $OPT_DISABLE_PDK16" >>confdefs.h
9049 echo pdk >>ports.all
9050 if test $OPT_DISABLE_PDK16 = 0; then
9051 echo pdk >>ports.build
9055 # Check whether --enable-mos6502-port was given.
9056 if test ${enable_mos6502_port+y}
9057 then :
9058 enableval=$enable_mos6502_port;
9062 if test "$enable_mos6502_port" = "no"; then
9063 OPT_DISABLE_MOS6502=1
9064 else
9065 enable_mos6502_port="yes"
9066 OPT_DISABLE_MOS6502=0
9070 printf "%s\n" "#define OPT_DISABLE_MOS6502 $OPT_DISABLE_MOS6502" >>confdefs.h
9074 echo mos6502 >>ports.all
9075 if test $OPT_DISABLE_MOS6502 = 0; then
9076 echo mos6502 >>ports.build
9080 # Check whether --enable-mos65c02-port was given.
9081 if test ${enable_mos65c02_port+y}
9082 then :
9083 enableval=$enable_mos65c02_port;
9087 if test "$enable_mos65c02_port" = "no"; then
9088 OPT_DISABLE_MOS65C02=1
9089 else
9090 enable_mos65c02_port="yes"
9091 OPT_DISABLE_MOS65C02=0
9095 printf "%s\n" "#define OPT_DISABLE_MOS65C02 $OPT_DISABLE_MOS65C02" >>confdefs.h
9099 echo mos6502 >>ports.all
9100 if test $OPT_DISABLE_MOS65C02 = 0; then
9101 echo mos6502 >>ports.build
9105 # Unsupported targets
9106 ####AC_DO_PORT_ENABLER(avr, avr, AVR, [Includes the AVR port (disabled by default)])
9107 OPT_DISABLE_AVR=1
9109 printf "%s\n" "#define OPT_DISABLE_AVR ${OPT_DISABLE_AVR}" >>confdefs.h
9114 # Check whether --enable-ucsim was given.
9115 if test ${enable_ucsim+y}
9116 then :
9117 enableval=$enable_ucsim;
9121 arg1=`echo ucsim | sed s/-/_/`
9123 if test "`eval echo \\$enable_$arg1`" = "no"; then
9124 OPT_DISABLE_UCSIM=1
9125 else
9126 OPT_DISABLE_UCSIM=0
9130 printf "%s\n" "#define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM" >>confdefs.h
9135 # Check whether --enable-device-lib was given.
9136 if test ${enable_device_lib+y}
9137 then :
9138 enableval=$enable_device_lib;
9142 arg1=`echo device-lib | sed s/-/_/`
9144 if test "`eval echo \\$enable_$arg1`" = "no"; then
9145 OPT_DISABLE_DEVICE_LIB=1
9146 else
9147 OPT_DISABLE_DEVICE_LIB=0
9151 printf "%s\n" "#define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB" >>confdefs.h
9156 # Check whether --enable-packihx was given.
9157 if test ${enable_packihx+y}
9158 then :
9159 enableval=$enable_packihx;
9163 arg1=`echo packihx | sed s/-/_/`
9165 if test "`eval echo \\$enable_$arg1`" = "no"; then
9166 OPT_DISABLE_PACKIHX=1
9167 else
9168 OPT_DISABLE_PACKIHX=0
9172 printf "%s\n" "#define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX" >>confdefs.h
9177 # Check whether --enable-sdcpp was given.
9178 if test ${enable_sdcpp+y}
9179 then :
9180 enableval=$enable_sdcpp;
9184 arg1=`echo sdcpp | sed s/-/_/`
9186 if test "`eval echo \\$enable_$arg1`" = "no"; then
9187 OPT_DISABLE_SDCPP=1
9188 else
9189 OPT_DISABLE_SDCPP=0
9193 printf "%s\n" "#define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP" >>confdefs.h
9198 # Check whether --enable-sdcdb was given.
9199 if test ${enable_sdcdb+y}
9200 then :
9201 enableval=$enable_sdcdb;
9205 arg1=`echo sdcdb | sed s/-/_/`
9207 if test "`eval echo \\$enable_$arg1`" = "no"; then
9208 OPT_DISABLE_SDCDB=1
9209 else
9210 OPT_DISABLE_SDCDB=0
9214 printf "%s\n" "#define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB" >>confdefs.h
9219 # Check whether --enable-sdbinutils was given.
9220 if test ${enable_sdbinutils+y}
9221 then :
9222 enableval=$enable_sdbinutils;
9226 arg1=`echo sdbinutils | sed s/-/_/`
9228 if test "`eval echo \\$enable_$arg1`" = "no"; then
9229 OPT_DISABLE_SDBINUTILS=1
9230 else
9231 OPT_DISABLE_SDBINUTILS=0
9235 printf "%s\n" "#define OPT_DISABLE_SDBINUTILS $OPT_DISABLE_SDBINUTILS" >>confdefs.h
9240 # Check whether --enable-non-free was given.
9241 if test ${enable_non_free+y}
9242 then :
9243 enableval=$enable_non_free;
9247 arg1=`echo non-free | sed s/-/_/`
9249 if test "`eval echo \\$enable_$arg1`" = "no"; then
9250 OPT_DISABLE_NON_FREE=1
9251 else
9252 OPT_DISABLE_NON_FREE=0
9256 printf "%s\n" "#define OPT_DISABLE_NON_FREE $OPT_DISABLE_NON_FREE" >>confdefs.h
9262 # Check whether --enable-doc was given.
9263 if test ${enable_doc+y}
9264 then :
9265 enableval=$enable_doc;
9269 if test "$enable_doc" = "yes"; then
9270 OPT_ENABLE_DOC=1
9271 else
9272 OPT_ENABLE_DOC=0
9276 printf "%s\n" "#define OPT_ENABLE_DOC $OPT_ENABLE_DOC" >>confdefs.h
9280 # Extract the first word of "lyx", so it can be a program name with args.
9281 set dummy lyx; ac_word=$2
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 printf %s "checking for $ac_word... " >&6; }
9284 if test ${ac_cv_prog_LYX+y}
9285 then :
9286 printf %s "(cached) " >&6
9287 else $as_nop
9288 if test -n "$LYX"; then
9289 ac_cv_prog_LYX="$LYX" # Let the user override the test.
9290 else
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9294 IFS=$as_save_IFS
9295 case $as_dir in #(((
9296 '') as_dir=./ ;;
9297 */) ;;
9298 *) as_dir=$as_dir/ ;;
9299 esac
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_LYX="lyx"
9303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9304 break 2
9306 done
9307 done
9308 IFS=$as_save_IFS
9310 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
9313 LYX=$ac_cv_prog_LYX
9314 if test -n "$LYX"; then
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LYX" >&5
9316 printf "%s\n" "$LYX" >&6; }
9317 else
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 printf "%s\n" "no" >&6; }
9323 # Extract the first word of "latex2html", so it can be a program name with args.
9324 set dummy latex2html; ac_word=$2
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 printf %s "checking for $ac_word... " >&6; }
9327 if test ${ac_cv_prog_LATEX2HTML+y}
9328 then :
9329 printf %s "(cached) " >&6
9330 else $as_nop
9331 if test -n "$LATEX2HTML"; then
9332 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
9333 else
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in $PATH
9337 IFS=$as_save_IFS
9338 case $as_dir in #(((
9339 '') as_dir=./ ;;
9340 */) ;;
9341 *) as_dir=$as_dir/ ;;
9342 esac
9343 for ac_exec_ext in '' $ac_executable_extensions; do
9344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9345 ac_cv_prog_LATEX2HTML="latex2html"
9346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9347 break 2
9349 done
9350 done
9351 IFS=$as_save_IFS
9353 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
9356 LATEX2HTML=$ac_cv_prog_LATEX2HTML
9357 if test -n "$LATEX2HTML"; then
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
9359 printf "%s\n" "$LATEX2HTML" >&6; }
9360 else
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 printf "%s\n" "no" >&6; }
9366 # Extract the first word of "latex", so it can be a program name with args.
9367 set dummy latex; ac_word=$2
9368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9369 printf %s "checking for $ac_word... " >&6; }
9370 if test ${ac_cv_prog_LATEX+y}
9371 then :
9372 printf %s "(cached) " >&6
9373 else $as_nop
9374 if test -n "$LATEX"; then
9375 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
9376 else
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 for as_dir in $PATH
9380 IFS=$as_save_IFS
9381 case $as_dir in #(((
9382 '') as_dir=./ ;;
9383 */) ;;
9384 *) as_dir=$as_dir/ ;;
9385 esac
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9388 ac_cv_prog_LATEX="latex"
9389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9390 break 2
9392 done
9393 done
9394 IFS=$as_save_IFS
9396 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
9399 LATEX=$ac_cv_prog_LATEX
9400 if test -n "$LATEX"; then
9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
9402 printf "%s\n" "$LATEX" >&6; }
9403 else
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 printf "%s\n" "no" >&6; }
9409 # Extract the first word of "dvipdfm", so it can be a program name with args.
9410 set dummy dvipdfm; ac_word=$2
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9412 printf %s "checking for $ac_word... " >&6; }
9413 if test ${ac_cv_prog_DVIPDFM+y}
9414 then :
9415 printf %s "(cached) " >&6
9416 else $as_nop
9417 if test -n "$DVIPDFM"; then
9418 ac_cv_prog_DVIPDFM="$DVIPDFM" # Let the user override the test.
9419 else
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9423 IFS=$as_save_IFS
9424 case $as_dir in #(((
9425 '') as_dir=./ ;;
9426 */) ;;
9427 *) as_dir=$as_dir/ ;;
9428 esac
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9431 ac_cv_prog_DVIPDFM="dvipdfm"
9432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9433 break 2
9435 done
9436 done
9437 IFS=$as_save_IFS
9439 test -z "$ac_cv_prog_DVIPDFM" && ac_cv_prog_DVIPDFM=":"
9442 DVIPDFM=$ac_cv_prog_DVIPDFM
9443 if test -n "$DVIPDFM"; then
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIPDFM" >&5
9445 printf "%s\n" "$DVIPDFM" >&6; }
9446 else
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448 printf "%s\n" "no" >&6; }
9452 # Extract the first word of "pdflatex", so it can be a program name with args.
9453 set dummy pdflatex; ac_word=$2
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 printf %s "checking for $ac_word... " >&6; }
9456 if test ${ac_cv_prog_PDFLATEX+y}
9457 then :
9458 printf %s "(cached) " >&6
9459 else $as_nop
9460 if test -n "$PDFLATEX"; then
9461 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
9462 else
9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464 for as_dir in $PATH
9466 IFS=$as_save_IFS
9467 case $as_dir in #(((
9468 '') as_dir=./ ;;
9469 */) ;;
9470 *) as_dir=$as_dir/ ;;
9471 esac
9472 for ac_exec_ext in '' $ac_executable_extensions; do
9473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9474 ac_cv_prog_PDFLATEX="pdflatex"
9475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9476 break 2
9478 done
9479 done
9480 IFS=$as_save_IFS
9482 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
9485 PDFLATEX=$ac_cv_prog_PDFLATEX
9486 if test -n "$PDFLATEX"; then
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
9488 printf "%s\n" "$PDFLATEX" >&6; }
9489 else
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 printf "%s\n" "no" >&6; }
9495 # Extract the first word of "makeindex", so it can be a program name with args.
9496 set dummy makeindex; ac_word=$2
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9498 printf %s "checking for $ac_word... " >&6; }
9499 if test ${ac_cv_prog_MAKEINDEX+y}
9500 then :
9501 printf %s "(cached) " >&6
9502 else $as_nop
9503 if test -n "$MAKEINDEX"; then
9504 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
9505 else
9506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9507 for as_dir in $PATH
9509 IFS=$as_save_IFS
9510 case $as_dir in #(((
9511 '') as_dir=./ ;;
9512 */) ;;
9513 *) as_dir=$as_dir/ ;;
9514 esac
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9517 ac_cv_prog_MAKEINDEX="makeindex"
9518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9519 break 2
9521 done
9522 done
9523 IFS=$as_save_IFS
9525 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
9528 MAKEINDEX=$ac_cv_prog_MAKEINDEX
9529 if test -n "$MAKEINDEX"; then
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
9531 printf "%s\n" "$MAKEINDEX" >&6; }
9532 else
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 printf "%s\n" "no" >&6; }
9539 if test $OPT_ENABLE_DOC = 1; then
9540 if test "$LYX" = ":"; then
9541 as_fn_error $? "Cannot find required program lyx." "$LINENO" 5
9544 if test "$LATEX2HTML" = ":"; then
9545 as_fn_error $? "Cannot find required program latex2html." "$LINENO" 5
9548 if test "$LATEX" = ":"; then
9549 as_fn_error $? "Cannot find required program latex." "$LINENO" 5
9552 if test "$DVIPDFM" = ":"; then
9553 as_fn_error $? "Cannot find required program dvipdfm." "$LINENO" 5
9556 if test "$MAKEINDEX" = ":"; then
9557 as_fn_error $? "Cannot find required program makeindex." "$LINENO" 5
9563 # Check whether --enable-libgc was given.
9564 if test ${enable_libgc+y}
9565 then :
9566 enableval=$enable_libgc;
9570 if test "$enable_libgc" = "yes"; then
9571 OPT_ENABLE_LIBGC=1
9572 else
9573 OPT_ENABLE_LIBGC=0
9577 printf "%s\n" "#define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC" >>confdefs.h
9581 if test $OPT_ENABLE_LIBGC = 1; then
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GC_malloc in -lgc" >&5
9583 printf %s "checking for GC_malloc in -lgc... " >&6; }
9584 if test ${ac_cv_lib_gc_GC_malloc+y}
9585 then :
9586 printf %s "(cached) " >&6
9587 else $as_nop
9588 ac_check_lib_save_LIBS=$LIBS
9589 LIBS="-lgc $LIBS"
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9593 /* Override any GCC internal prototype to avoid an error.
9594 Use char because int might match the return type of a GCC
9595 builtin and then its argument prototype would still apply. */
9596 char GC_malloc ();
9598 main (void)
9600 return GC_malloc ();
9602 return 0;
9604 _ACEOF
9605 if ac_fn_c_try_link "$LINENO"
9606 then :
9607 ac_cv_lib_gc_GC_malloc=yes
9608 else $as_nop
9609 ac_cv_lib_gc_GC_malloc=no
9611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9612 conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_lib_save_LIBS
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_malloc" >&5
9616 printf "%s\n" "$ac_cv_lib_gc_GC_malloc" >&6; }
9617 if test "x$ac_cv_lib_gc_GC_malloc" = xyes
9618 then :
9619 printf "%s\n" "#define HAVE_LIBGC 1" >>confdefs.h
9621 LIBS="-lgc $LIBS"
9625 if test $ac_cv_lib_gc_GC_malloc = no; then
9626 as_fn_error $? "Cannot find library libgc with Bohem memory allocator." "$LINENO" 5
9630 #remove duplicates
9631 uniq ports.all ports
9632 mv ports ports.all
9633 uniq ports.build ports
9634 mv ports ports.build
9636 # Generating output files
9637 # ===========================================================================
9638 test $OPT_DISABLE_SDCPP = 0 &&
9640 subdirs="$subdirs support/cpp"
9642 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
9644 test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim"
9646 test $OPT_DISABLE_SDCDB = 0 && subdirs="$subdirs debugger/mcs51"
9648 test $OPT_DISABLE_SDBINUTILS = 0 && subdirs="$subdirs support/sdbinutils"
9650 ac_config_files="$ac_config_files doc/Makefile"
9653 ####test $OPT_DISABLE_AVR = 0 && AC_CONFIG_FILES([src/avr/Makefile])
9655 if test $OPT_DISABLE_DS390 = 0 || test $OPT_DISABLE_DS400; then
9656 ac_config_files="$ac_config_files src/ds390/Makefile sdas/as8xcxxx/Makefile"
9658 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile device/lib/ds400/Makefile"
9662 if test $OPT_DISABLE_HC08 = 0 || test $OPT_DISABLE_S08 = 0; then
9663 ac_config_files="$ac_config_files src/hc08/Makefile sdas/as6808/Makefile"
9665 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile device/lib/s08/Makefile device/lib/s08-stack-auto/Makefile"
9669 if test $OPT_DISABLE_MOS6502 = 0 || test $OPT_DISABLE_MOS65C02 = 0; then
9670 ac_config_files="$ac_config_files src/mos6502/Makefile sdas/as6500/Makefile"
9672 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/mos6502/Makefile device/lib/mos6502-stack-auto/Makefile device/lib/mos65c02/Makefile"
9676 if test $OPT_DISABLE_MCS51 = 0; then
9677 ac_config_files="$ac_config_files src/mcs51/Makefile sdas/as8051/Makefile"
9679 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/mcs51/Makefile device/lib/small/Makefile device/lib/medium/Makefile device/lib/large/Makefile device/lib/huge/Makefile"
9683 if test $OPT_DISABLE_PIC14 = 0; then
9684 ac_config_files="$ac_config_files src/pic14/Makefile"
9686 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic14"
9689 if test $OPT_DISABLE_PIC14 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9690 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/non-free/lib/pic14"
9693 if test $OPT_DISABLE_PIC16 = 0; then
9694 ac_config_files="$ac_config_files src/pic16/Makefile"
9696 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
9699 if test $OPT_DISABLE_PIC16 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9700 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/non-free/lib/pic16"
9704 if test $OPT_DISABLE_Z80 = 0 || test $OPT_DISABLE_Z180 = 0 || test $OPT_DISABLE_R2K = 0 || test $OPT_DISABLE_R2KA = 0 || test $OPT_DISABLE_R3KA = 0 || test $OPT_DISABLE_SM83 = 0 || test $OPT_DISABLE_TLCS90 = 0 || test $OPT_DISABLE_EZ80_Z80 = 0 || test $OPT_DISABLE_Z80N = 0 || test $OPT_DISABLE_R800 = 0; then
9705 ac_config_files="$ac_config_files src/z80/Makefile"
9709 if test $OPT_DISABLE_Z80 = 0 || test $OPT_DISABLE_Z180 = 0 || test $OPT_DISABLE_EZ80_Z80 = 0 || test $OPT_DISABLE_Z80N = 0 || test $OPT_DISABLE_R800 = 0; then
9710 ac_config_files="$ac_config_files sdas/asz80/Makefile"
9712 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/z180/Makefile device/lib/ez80_z80/Makefile device/lib/z80n/Makefile device/lib/r800/Makefile"
9716 if test $OPT_DISABLE_R2K = 0 || test $OPT_DISABLE_R2KA = 0 || test $OPT_DISABLE_R3KA = 0; then
9717 ac_config_files="$ac_config_files sdas/asrab/Makefile"
9719 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/r2k/Makefile device/lib/r2ka/Makefile device/lib/r3ka/Makefile"
9723 if test $OPT_DISABLE_TLCS90 = 0; then
9724 ac_config_files="$ac_config_files sdas/astlcs90/Makefile"
9726 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/tlcs90/Makefile"
9730 if test $OPT_DISABLE_SM83 = 0; then
9731 ac_config_files="$ac_config_files sdas/asgb/Makefile"
9733 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/sm83/Makefile"
9737 if test $OPT_DISABLE_STM8 = 0; then
9738 ac_config_files="$ac_config_files src/stm8/Makefile sdas/asstm8/Makefile"
9740 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/stm8/Makefile device/lib/stm8-large/Makefile"
9744 if test $OPT_DISABLE_PDK13 = 0 || test $OPT_DISABLE_PDK14 = 0 || test $OPT_DISABLE_PDK15 = 0 || test $OPT_DISABLE_PDK16 = 0; then
9745 ac_config_files="$ac_config_files src/pdk/Makefile"
9749 if test $OPT_DISABLE_PDK13 = 0; then
9750 ac_config_files="$ac_config_files sdas/aspdk13/Makefile"
9752 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/pdk13/Makefile"
9756 if test $OPT_DISABLE_PDK14 = 0; then
9757 ac_config_files="$ac_config_files sdas/aspdk14/Makefile"
9759 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/pdk14/Makefile"
9763 if test $OPT_DISABLE_PDK15 = 0; then
9764 ac_config_files="$ac_config_files sdas/aspdk15/Makefile"
9766 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/pdk15/Makefile device/lib/pdk15-stack-auto/Makefile"
9770 if test $OPT_DISABLE_PDK16 = 0; then
9771 ac_config_files="$ac_config_files sdas/aspdk16/Makefile"
9776 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
9778 test $OPT_DISABLE_DEVICE_LIB = 0 && test $OPT_DISABLE_NON_FREE = 0 && ac_config_files="$ac_config_files device/non-free/lib/Makefile"
9781 ac_config_files="$ac_config_files main.mk:main_in.mk bin/Makefile src/Makefile device/include/Makefile sdas/linksrc/Makefile support/makebin/Makefile support/regression/Makefile support/regression/cases/Makefile support/valdiag/Makefile support/scripts/Makefile support/regression/ports/host/spec.mk:support/regression/ports/host/spec.mk.in Makefile Makefile.common:Makefile.common.in"
9783 ac_config_files="$ac_config_files bin/sdcc"
9785 ac_config_files="$ac_config_files bin/sdcpp"
9787 ac_config_files="$ac_config_files bin/sdar"
9789 ac_config_files="$ac_config_files bin/sdnm"
9791 ac_config_files="$ac_config_files bin/sdranlib"
9793 ac_config_files="$ac_config_files bin/sdobjcopy"
9795 if test $OPT_DISABLE_NON_FREE = 0; then
9796 ac_config_files="$ac_config_files device/non-free/include/Makefile"
9799 cat >confcache <<\_ACEOF
9800 # This file is a shell script that caches the results of configure
9801 # tests run on this system so they can be shared between configure
9802 # scripts and configure runs, see configure's option --config-cache.
9803 # It is not useful on other systems. If it contains results you don't
9804 # want to keep, you may remove or edit it.
9806 # config.status only pays attention to the cache file if you give it
9807 # the --recheck option to rerun configure.
9809 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9811 # following values.
9813 _ACEOF
9815 # The following way of writing the cache mishandles newlines in values,
9816 # but we know of no workaround that is simple, portable, and efficient.
9817 # So, we kill variables containing newlines.
9818 # Ultrix sh set writes to stderr and can't be redirected directly,
9819 # and sets the high bit in the cache file unless we assign to the vars.
9821 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9822 eval ac_val=\$$ac_var
9823 case $ac_val in #(
9824 *${as_nl}*)
9825 case $ac_var in #(
9826 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9827 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9828 esac
9829 case $ac_var in #(
9830 _ | IFS | as_nl) ;; #(
9831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9832 *) { eval $ac_var=; unset $ac_var;} ;;
9833 esac ;;
9834 esac
9835 done
9837 (set) 2>&1 |
9838 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9839 *${as_nl}ac_space=\ *)
9840 # `set' does not quote correctly, so add quotes: double-quote
9841 # substitution turns \\\\ into \\, and sed turns \\ into \.
9842 sed -n \
9843 "s/'/'\\\\''/g;
9844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9845 ;; #(
9847 # `set' quotes correctly as required by POSIX, so do not add quotes.
9848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9850 esac |
9851 sort
9853 sed '
9854 /^ac_cv_env_/b end
9855 t clear
9856 :clear
9857 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9858 t end
9859 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9860 :end' >>confcache
9861 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9862 if test -w "$cache_file"; then
9863 if test "x$cache_file" != "x/dev/null"; then
9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9865 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9866 if test ! -f "$cache_file" || test -h "$cache_file"; then
9867 cat confcache >"$cache_file"
9868 else
9869 case $cache_file in #(
9870 */* | ?:*)
9871 mv -f confcache "$cache_file"$$ &&
9872 mv -f "$cache_file"$$ "$cache_file" ;; #(
9874 mv -f confcache "$cache_file" ;;
9875 esac
9878 else
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9880 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9883 rm -f confcache
9885 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9886 # Let make expand exec_prefix.
9887 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9889 DEFS=-DHAVE_CONFIG_H
9891 ac_libobjs=
9892 ac_ltlibobjs=
9894 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9895 # 1. Remove the extension, and $U if already installed.
9896 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9897 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9898 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9899 # will be set to the directory where LIBOBJS objects are built.
9900 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9901 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9902 done
9903 LIBOBJS=$ac_libobjs
9905 LTLIBOBJS=$ac_ltlibobjs
9910 : "${CONFIG_STATUS=./config.status}"
9911 ac_write_fail=0
9912 ac_clean_files_save=$ac_clean_files
9913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9915 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9916 as_write_fail=0
9917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9918 #! $SHELL
9919 # Generated by $as_me.
9920 # Run this file to recreate the current configuration.
9921 # Compiler output produced by configure, useful for debugging
9922 # configure, is in config.log if it exists.
9924 debug=false
9925 ac_cs_recheck=false
9926 ac_cs_silent=false
9928 SHELL=\${CONFIG_SHELL-$SHELL}
9929 export SHELL
9930 _ASEOF
9931 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9932 ## -------------------- ##
9933 ## M4sh Initialization. ##
9934 ## -------------------- ##
9936 # Be more Bourne compatible
9937 DUALCASE=1; export DUALCASE # for MKS sh
9938 as_nop=:
9939 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9940 then :
9941 emulate sh
9942 NULLCMD=:
9943 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9944 # is contrary to our usage. Disable this feature.
9945 alias -g '${1+"$@"}'='"$@"'
9946 setopt NO_GLOB_SUBST
9947 else $as_nop
9948 case `(set -o) 2>/dev/null` in #(
9949 *posix*) :
9950 set -o posix ;; #(
9951 *) :
9953 esac
9958 # Reset variables that may have inherited troublesome values from
9959 # the environment.
9961 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9962 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9963 # side effect of setting IFS to empty, thus disabling word splitting.)
9964 # Quoting is to prevent editors from complaining about space-tab.
9965 as_nl='
9967 export as_nl
9968 IFS=" "" $as_nl"
9970 PS1='$ '
9971 PS2='> '
9972 PS4='+ '
9974 # Ensure predictable behavior from utilities with locale-dependent output.
9975 LC_ALL=C
9976 export LC_ALL
9977 LANGUAGE=C
9978 export LANGUAGE
9980 # We cannot yet rely on "unset" to work, but we need these variables
9981 # to be unset--not just set to an empty or harmless value--now, to
9982 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9983 # also avoids known problems related to "unset" and subshell syntax
9984 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9985 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9986 do eval test \${$as_var+y} \
9987 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9988 done
9990 # Ensure that fds 0, 1, and 2 are open.
9991 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9992 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9993 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9995 # The user is always right.
9996 if ${PATH_SEPARATOR+false} :; then
9997 PATH_SEPARATOR=:
9998 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9999 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10000 PATH_SEPARATOR=';'
10005 # Find who we are. Look in the path if we contain no directory separator.
10006 as_myself=
10007 case $0 in #((
10008 *[\\/]* ) as_myself=$0 ;;
10009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $PATH
10012 IFS=$as_save_IFS
10013 case $as_dir in #(((
10014 '') as_dir=./ ;;
10015 */) ;;
10016 *) as_dir=$as_dir/ ;;
10017 esac
10018 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10019 done
10020 IFS=$as_save_IFS
10023 esac
10024 # We did not find ourselves, most probably we were run as `sh COMMAND'
10025 # in which case we are not to be found in the path.
10026 if test "x$as_myself" = x; then
10027 as_myself=$0
10029 if test ! -f "$as_myself"; then
10030 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10031 exit 1
10036 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10037 # ----------------------------------------
10038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10040 # script with STATUS, using 1 if that was 0.
10041 as_fn_error ()
10043 as_status=$1; test $as_status -eq 0 && as_status=1
10044 if test "$4"; then
10045 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10048 printf "%s\n" "$as_me: error: $2" >&2
10049 as_fn_exit $as_status
10050 } # as_fn_error
10054 # as_fn_set_status STATUS
10055 # -----------------------
10056 # Set $? to STATUS, without forking.
10057 as_fn_set_status ()
10059 return $1
10060 } # as_fn_set_status
10062 # as_fn_exit STATUS
10063 # -----------------
10064 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10065 as_fn_exit ()
10067 set +e
10068 as_fn_set_status $1
10069 exit $1
10070 } # as_fn_exit
10072 # as_fn_unset VAR
10073 # ---------------
10074 # Portably unset VAR.
10075 as_fn_unset ()
10077 { eval $1=; unset $1;}
10079 as_unset=as_fn_unset
10081 # as_fn_append VAR VALUE
10082 # ----------------------
10083 # Append the text in VALUE to the end of the definition contained in VAR. Take
10084 # advantage of any shell optimizations that allow amortized linear growth over
10085 # repeated appends, instead of the typical quadratic growth present in naive
10086 # implementations.
10087 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10088 then :
10089 eval 'as_fn_append ()
10091 eval $1+=\$2
10093 else $as_nop
10094 as_fn_append ()
10096 eval $1=\$$1\$2
10098 fi # as_fn_append
10100 # as_fn_arith ARG...
10101 # ------------------
10102 # Perform arithmetic evaluation on the ARGs, and store the result in the
10103 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10104 # must be portable across $(()) and expr.
10105 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10106 then :
10107 eval 'as_fn_arith ()
10109 as_val=$(( $* ))
10111 else $as_nop
10112 as_fn_arith ()
10114 as_val=`expr "$@" || test $? -eq 1`
10116 fi # as_fn_arith
10119 if expr a : '\(a\)' >/dev/null 2>&1 &&
10120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10121 as_expr=expr
10122 else
10123 as_expr=false
10126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10127 as_basename=basename
10128 else
10129 as_basename=false
10132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10133 as_dirname=dirname
10134 else
10135 as_dirname=false
10138 as_me=`$as_basename -- "$0" ||
10139 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10140 X"$0" : 'X\(//\)$' \| \
10141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10142 printf "%s\n" X/"$0" |
10143 sed '/^.*\/\([^/][^/]*\)\/*$/{
10144 s//\1/
10147 /^X\/\(\/\/\)$/{
10148 s//\1/
10151 /^X\/\(\/\).*/{
10152 s//\1/
10155 s/.*/./; q'`
10157 # Avoid depending upon Character Ranges.
10158 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10159 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10160 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10161 as_cr_digits='0123456789'
10162 as_cr_alnum=$as_cr_Letters$as_cr_digits
10165 # Determine whether it's possible to make 'echo' print without a newline.
10166 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10167 # for compatibility with existing Makefiles.
10168 ECHO_C= ECHO_N= ECHO_T=
10169 case `echo -n x` in #(((((
10170 -n*)
10171 case `echo 'xy\c'` in
10172 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10173 xy) ECHO_C='\c';;
10174 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10175 ECHO_T=' ';;
10176 esac;;
10178 ECHO_N='-n';;
10179 esac
10181 # For backward compatibility with old third-party macros, we provide
10182 # the shell variables $as_echo and $as_echo_n. New code should use
10183 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10184 as_echo='printf %s\n'
10185 as_echo_n='printf %s'
10187 rm -f conf$$ conf$$.exe conf$$.file
10188 if test -d conf$$.dir; then
10189 rm -f conf$$.dir/conf$$.file
10190 else
10191 rm -f conf$$.dir
10192 mkdir conf$$.dir 2>/dev/null
10194 if (echo >conf$$.file) 2>/dev/null; then
10195 if ln -s conf$$.file conf$$ 2>/dev/null; then
10196 as_ln_s='ln -s'
10197 # ... but there are two gotchas:
10198 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10199 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10200 # In both cases, we have to default to `cp -pR'.
10201 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10202 as_ln_s='cp -pR'
10203 elif ln conf$$.file conf$$ 2>/dev/null; then
10204 as_ln_s=ln
10205 else
10206 as_ln_s='cp -pR'
10208 else
10209 as_ln_s='cp -pR'
10211 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10212 rmdir conf$$.dir 2>/dev/null
10215 # as_fn_mkdir_p
10216 # -------------
10217 # Create "$as_dir" as a directory, including parents if necessary.
10218 as_fn_mkdir_p ()
10221 case $as_dir in #(
10222 -*) as_dir=./$as_dir;;
10223 esac
10224 test -d "$as_dir" || eval $as_mkdir_p || {
10225 as_dirs=
10226 while :; do
10227 case $as_dir in #(
10228 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10229 *) as_qdir=$as_dir;;
10230 esac
10231 as_dirs="'$as_qdir' $as_dirs"
10232 as_dir=`$as_dirname -- "$as_dir" ||
10233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10234 X"$as_dir" : 'X\(//\)[^/]' \| \
10235 X"$as_dir" : 'X\(//\)$' \| \
10236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10237 printf "%s\n" X"$as_dir" |
10238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10239 s//\1/
10242 /^X\(\/\/\)[^/].*/{
10243 s//\1/
10246 /^X\(\/\/\)$/{
10247 s//\1/
10250 /^X\(\/\).*/{
10251 s//\1/
10254 s/.*/./; q'`
10255 test -d "$as_dir" && break
10256 done
10257 test -z "$as_dirs" || eval "mkdir $as_dirs"
10258 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10261 } # as_fn_mkdir_p
10262 if mkdir -p . 2>/dev/null; then
10263 as_mkdir_p='mkdir -p "$as_dir"'
10264 else
10265 test -d ./-p && rmdir ./-p
10266 as_mkdir_p=false
10270 # as_fn_executable_p FILE
10271 # -----------------------
10272 # Test if FILE is an executable regular file.
10273 as_fn_executable_p ()
10275 test -f "$1" && test -x "$1"
10276 } # as_fn_executable_p
10277 as_test_x='test -x'
10278 as_executable_p=as_fn_executable_p
10280 # Sed expression to map a string onto a valid CPP name.
10281 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10283 # Sed expression to map a string onto a valid variable name.
10284 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10287 exec 6>&1
10288 ## ----------------------------------- ##
10289 ## Main body of $CONFIG_STATUS script. ##
10290 ## ----------------------------------- ##
10291 _ASEOF
10292 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10295 # Save the log message, to keep $0 and so on meaningful, and to
10296 # report actual input values of CONFIG_FILES etc. instead of their
10297 # values after options handling.
10298 ac_log="
10299 This file was extended by $as_me, which was
10300 generated by GNU Autoconf 2.71. Invocation command line was
10302 CONFIG_FILES = $CONFIG_FILES
10303 CONFIG_HEADERS = $CONFIG_HEADERS
10304 CONFIG_LINKS = $CONFIG_LINKS
10305 CONFIG_COMMANDS = $CONFIG_COMMANDS
10306 $ $0 $@
10308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10311 _ACEOF
10313 case $ac_config_files in *"
10314 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10315 esac
10317 case $ac_config_headers in *"
10318 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10319 esac
10322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10323 # Files that config.status was made for.
10324 config_files="$ac_config_files"
10325 config_headers="$ac_config_headers"
10327 _ACEOF
10329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10330 ac_cs_usage="\
10331 \`$as_me' instantiates files and other configuration actions
10332 from templates according to the current configuration. Unless the files
10333 and actions are specified as TAGs, all are instantiated by default.
10335 Usage: $0 [OPTION]... [TAG]...
10337 -h, --help print this help, then exit
10338 -V, --version print version number and configuration settings, then exit
10339 --config print configuration, then exit
10340 -q, --quiet, --silent
10341 do not print progress messages
10342 -d, --debug don't remove temporary files
10343 --recheck update $as_me by reconfiguring in the same conditions
10344 --file=FILE[:TEMPLATE]
10345 instantiate the configuration file FILE
10346 --header=FILE[:TEMPLATE]
10347 instantiate the configuration header FILE
10349 Configuration files:
10350 $config_files
10352 Configuration headers:
10353 $config_headers
10355 Report bugs to the package provider."
10357 _ACEOF
10358 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10359 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10361 ac_cs_config='$ac_cs_config_escaped'
10362 ac_cs_version="\\
10363 config.status
10364 configured by $0, generated by GNU Autoconf 2.71,
10365 with options \\"\$ac_cs_config\\"
10367 Copyright (C) 2021 Free Software Foundation, Inc.
10368 This config.status script is free software; the Free Software Foundation
10369 gives unlimited permission to copy, distribute and modify it."
10371 ac_pwd='$ac_pwd'
10372 srcdir='$srcdir'
10373 INSTALL='$INSTALL'
10374 AWK='$AWK'
10375 test -n "\$AWK" || AWK=awk
10376 _ACEOF
10378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10379 # The default lists apply if the user does not specify any file.
10380 ac_need_defaults=:
10381 while test $# != 0
10383 case $1 in
10384 --*=?*)
10385 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10386 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10387 ac_shift=:
10389 --*=)
10390 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10391 ac_optarg=
10392 ac_shift=:
10395 ac_option=$1
10396 ac_optarg=$2
10397 ac_shift=shift
10399 esac
10401 case $ac_option in
10402 # Handling of the options.
10403 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10404 ac_cs_recheck=: ;;
10405 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10406 printf "%s\n" "$ac_cs_version"; exit ;;
10407 --config | --confi | --conf | --con | --co | --c )
10408 printf "%s\n" "$ac_cs_config"; exit ;;
10409 --debug | --debu | --deb | --de | --d | -d )
10410 debug=: ;;
10411 --file | --fil | --fi | --f )
10412 $ac_shift
10413 case $ac_optarg in
10414 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10415 '') as_fn_error $? "missing file argument" ;;
10416 esac
10417 as_fn_append CONFIG_FILES " '$ac_optarg'"
10418 ac_need_defaults=false;;
10419 --header | --heade | --head | --hea )
10420 $ac_shift
10421 case $ac_optarg in
10422 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10423 esac
10424 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10425 ac_need_defaults=false;;
10426 --he | --h)
10427 # Conflict between --help and --header
10428 as_fn_error $? "ambiguous option: \`$1'
10429 Try \`$0 --help' for more information.";;
10430 --help | --hel | -h )
10431 printf "%s\n" "$ac_cs_usage"; exit ;;
10432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10433 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10434 ac_cs_silent=: ;;
10436 # This is an error.
10437 -*) as_fn_error $? "unrecognized option: \`$1'
10438 Try \`$0 --help' for more information." ;;
10440 *) as_fn_append ac_config_targets " $1"
10441 ac_need_defaults=false ;;
10443 esac
10444 shift
10445 done
10447 ac_configure_extra_args=
10449 if $ac_cs_silent; then
10450 exec 6>/dev/null
10451 ac_configure_extra_args="$ac_configure_extra_args --silent"
10454 _ACEOF
10455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10456 if \$ac_cs_recheck; then
10457 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10458 shift
10459 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10460 CONFIG_SHELL='$SHELL'
10461 export CONFIG_SHELL
10462 exec "\$@"
10465 _ACEOF
10466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10467 exec 5>>config.log
10469 echo
10470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10471 ## Running $as_me. ##
10472 _ASBOX
10473 printf "%s\n" "$ac_log"
10474 } >&5
10476 _ACEOF
10477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10478 _ACEOF
10480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10482 # Handling of arguments.
10483 for ac_config_target in $ac_config_targets
10485 case $ac_config_target in
10486 "sdccconf.h") CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
10487 "sdas/linksrc/asxxxx_config.h") CONFIG_HEADERS="$CONFIG_HEADERS sdas/linksrc/asxxxx_config.h" ;;
10488 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10489 "src/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
10490 "sdas/as8xcxxx/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as8xcxxx/Makefile" ;;
10491 "device/lib/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
10492 "device/lib/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
10493 "src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
10494 "sdas/as6808/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as6808/Makefile" ;;
10495 "device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
10496 "device/lib/s08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/s08/Makefile" ;;
10497 "device/lib/s08-stack-auto/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/s08-stack-auto/Makefile" ;;
10498 "src/mos6502/Makefile") CONFIG_FILES="$CONFIG_FILES src/mos6502/Makefile" ;;
10499 "sdas/as6500/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as6500/Makefile" ;;
10500 "device/lib/mos6502/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mos6502/Makefile" ;;
10501 "device/lib/mos6502-stack-auto/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mos6502-stack-auto/Makefile" ;;
10502 "device/lib/mos65c02/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mos65c02/Makefile" ;;
10503 "src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
10504 "sdas/as8051/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as8051/Makefile" ;;
10505 "device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
10506 "device/lib/small/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
10507 "device/lib/medium/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
10508 "device/lib/large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
10509 "device/lib/huge/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/huge/Makefile" ;;
10510 "src/pic14/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic14/Makefile" ;;
10511 "src/pic16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
10512 "src/z80/Makefile") CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
10513 "sdas/asz80/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asz80/Makefile" ;;
10514 "device/lib/z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
10515 "device/lib/z180/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z180/Makefile" ;;
10516 "device/lib/ez80_z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ez80_z80/Makefile" ;;
10517 "device/lib/z80n/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80n/Makefile" ;;
10518 "device/lib/r800/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r800/Makefile" ;;
10519 "sdas/asrab/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asrab/Makefile" ;;
10520 "device/lib/r2k/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r2k/Makefile" ;;
10521 "device/lib/r2ka/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r2ka/Makefile" ;;
10522 "device/lib/r3ka/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/r3ka/Makefile" ;;
10523 "sdas/astlcs90/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/astlcs90/Makefile" ;;
10524 "device/lib/tlcs90/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/tlcs90/Makefile" ;;
10525 "sdas/asgb/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asgb/Makefile" ;;
10526 "device/lib/sm83/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/sm83/Makefile" ;;
10527 "src/stm8/Makefile") CONFIG_FILES="$CONFIG_FILES src/stm8/Makefile" ;;
10528 "sdas/asstm8/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/asstm8/Makefile" ;;
10529 "device/lib/stm8/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/stm8/Makefile" ;;
10530 "device/lib/stm8-large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/stm8-large/Makefile" ;;
10531 "src/pdk/Makefile") CONFIG_FILES="$CONFIG_FILES src/pdk/Makefile" ;;
10532 "sdas/aspdk13/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk13/Makefile" ;;
10533 "device/lib/pdk13/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk13/Makefile" ;;
10534 "sdas/aspdk14/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk14/Makefile" ;;
10535 "device/lib/pdk14/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk14/Makefile" ;;
10536 "sdas/aspdk15/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk15/Makefile" ;;
10537 "device/lib/pdk15/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk15/Makefile" ;;
10538 "device/lib/pdk15-stack-auto/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/pdk15-stack-auto/Makefile" ;;
10539 "sdas/aspdk16/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/aspdk16/Makefile" ;;
10540 "device/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
10541 "device/non-free/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/non-free/lib/Makefile" ;;
10542 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
10543 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
10544 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10545 "device/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
10546 "sdas/linksrc/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/linksrc/Makefile" ;;
10547 "support/makebin/Makefile") CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
10548 "support/regression/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
10549 "support/regression/cases/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/cases/Makefile" ;;
10550 "support/valdiag/Makefile") CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
10551 "support/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES support/scripts/Makefile" ;;
10552 "support/regression/ports/host/spec.mk") CONFIG_FILES="$CONFIG_FILES support/regression/ports/host/spec.mk:support/regression/ports/host/spec.mk.in" ;;
10553 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10554 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
10555 "bin/sdcc") CONFIG_FILES="$CONFIG_FILES bin/sdcc" ;;
10556 "bin/sdcpp") CONFIG_FILES="$CONFIG_FILES bin/sdcpp" ;;
10557 "bin/sdar") CONFIG_FILES="$CONFIG_FILES bin/sdar" ;;
10558 "bin/sdnm") CONFIG_FILES="$CONFIG_FILES bin/sdnm" ;;
10559 "bin/sdranlib") CONFIG_FILES="$CONFIG_FILES bin/sdranlib" ;;
10560 "bin/sdobjcopy") CONFIG_FILES="$CONFIG_FILES bin/sdobjcopy" ;;
10561 "device/non-free/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/non-free/include/Makefile" ;;
10563 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10564 esac
10565 done
10568 # If the user did not use the arguments to specify the items to instantiate,
10569 # then the envvar interface is used. Set only those that are not.
10570 # We use the long form for the default assignment because of an extremely
10571 # bizarre bug on SunOS 4.1.3.
10572 if $ac_need_defaults; then
10573 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10574 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
10577 # Have a temporary directory for convenience. Make it in the build tree
10578 # simply because there is no reason against having it here, and in addition,
10579 # creating and moving files from /tmp can sometimes cause problems.
10580 # Hook for its removal unless debugging.
10581 # Note that there is a small window in which the directory will not be cleaned:
10582 # after its creation but before its name has been assigned to `$tmp'.
10583 $debug ||
10585 tmp= ac_tmp=
10586 trap 'exit_status=$?
10587 : "${ac_tmp:=$tmp}"
10588 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10590 trap 'as_fn_exit 1' 1 2 13 15
10592 # Create a (secure) tmp directory for tmp files.
10595 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10596 test -d "$tmp"
10597 } ||
10599 tmp=./conf$$-$RANDOM
10600 (umask 077 && mkdir "$tmp")
10601 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10602 ac_tmp=$tmp
10604 # Set up the scripts for CONFIG_FILES section.
10605 # No need to generate them if there are no CONFIG_FILES.
10606 # This happens for instance with `./config.status config.h'.
10607 if test -n "$CONFIG_FILES"; then
10610 ac_cr=`echo X | tr X '\015'`
10611 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10612 # But we know of no other shell where ac_cr would be empty at this
10613 # point, so we can use a bashism as a fallback.
10614 if test "x$ac_cr" = x; then
10615 eval ac_cr=\$\'\\r\'
10617 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10618 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10619 ac_cs_awk_cr='\\r'
10620 else
10621 ac_cs_awk_cr=$ac_cr
10624 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10625 _ACEOF
10629 echo "cat >conf$$subs.awk <<_ACEOF" &&
10630 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10631 echo "_ACEOF"
10632 } >conf$$subs.sh ||
10633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10634 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10635 ac_delim='%!_!# '
10636 for ac_last_try in false false false false false :; do
10637 . ./conf$$subs.sh ||
10638 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10640 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10641 if test $ac_delim_n = $ac_delim_num; then
10642 break
10643 elif $ac_last_try; then
10644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10645 else
10646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10648 done
10649 rm -f conf$$subs.sh
10651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10652 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10653 _ACEOF
10654 sed -n '
10656 s/^/S["/; s/!.*/"]=/
10659 s/^[^!]*!//
10660 :repl
10661 t repl
10662 s/'"$ac_delim"'$//
10663 t delim
10666 s/\(.\{148\}\)..*/\1/
10667 t more1
10668 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10671 b repl
10672 :more1
10673 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10676 s/.\{148\}//
10677 t nl
10678 :delim
10680 s/\(.\{148\}\)..*/\1/
10681 t more2
10682 s/["\\]/\\&/g; s/^/"/; s/$/"/
10685 :more2
10686 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10689 s/.\{148\}//
10690 t delim
10691 ' <conf$$subs.awk | sed '
10692 /^[^""]/{
10694 s/\n//
10696 ' >>$CONFIG_STATUS || ac_write_fail=1
10697 rm -f conf$$subs.awk
10698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10699 _ACAWK
10700 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10701 for (key in S) S_is_set[key] = 1
10702 FS = "\a"
10706 line = $ 0
10707 nfields = split(line, field, "@")
10708 substed = 0
10709 len = length(field[1])
10710 for (i = 2; i < nfields; i++) {
10711 key = field[i]
10712 keylen = length(key)
10713 if (S_is_set[key]) {
10714 value = S[key]
10715 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10716 len += length(value) + length(field[++i])
10717 substed = 1
10718 } else
10719 len += 1 + keylen
10722 print line
10725 _ACAWK
10726 _ACEOF
10727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10728 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10729 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10730 else
10732 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10733 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10734 _ACEOF
10736 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10737 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10738 # trailing colons and then remove the whole line if VPATH becomes empty
10739 # (actually we leave an empty line to preserve line numbers).
10740 if test "x$srcdir" = x.; then
10741 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10743 s///
10744 s/^/:/
10745 s/[ ]*$/:/
10746 s/:\$(srcdir):/:/g
10747 s/:\${srcdir}:/:/g
10748 s/:@srcdir@:/:/g
10749 s/^:*//
10750 s/:*$//
10752 s/\(=[ ]*\).*/\1/
10754 s/\n//
10755 s/^[^=]*=[ ]*$//
10759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10760 fi # test -n "$CONFIG_FILES"
10762 # Set up the scripts for CONFIG_HEADERS section.
10763 # No need to generate them if there are no CONFIG_HEADERS.
10764 # This happens for instance with `./config.status Makefile'.
10765 if test -n "$CONFIG_HEADERS"; then
10766 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10767 BEGIN {
10768 _ACEOF
10770 # Transform confdefs.h into an awk script `defines.awk', embedded as
10771 # here-document in config.status, that substitutes the proper values into
10772 # config.h.in to produce config.h.
10774 # Create a delimiter string that does not exist in confdefs.h, to ease
10775 # handling of long lines.
10776 ac_delim='%!_!# '
10777 for ac_last_try in false false :; do
10778 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10779 if test -z "$ac_tt"; then
10780 break
10781 elif $ac_last_try; then
10782 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10783 else
10784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10786 done
10788 # For the awk script, D is an array of macro values keyed by name,
10789 # likewise P contains macro parameters if any. Preserve backslash
10790 # newline sequences.
10792 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10793 sed -n '
10794 s/.\{148\}/&'"$ac_delim"'/g
10795 t rset
10796 :rset
10797 s/^[ ]*#[ ]*define[ ][ ]*/ /
10798 t def
10800 :def
10801 s/\\$//
10802 t bsnl
10803 s/["\\]/\\&/g
10804 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10805 D["\1"]=" \3"/p
10806 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10808 :bsnl
10809 s/["\\]/\\&/g
10810 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10811 D["\1"]=" \3\\\\\\n"\\/p
10812 t cont
10813 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10814 t cont
10816 :cont
10818 s/.\{148\}/&'"$ac_delim"'/g
10819 t clear
10820 :clear
10821 s/\\$//
10822 t bsnlc
10823 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10825 :bsnlc
10826 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10827 b cont
10828 ' <confdefs.h | sed '
10829 s/'"$ac_delim"'/"\\\
10830 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10833 for (key in D) D_is_set[key] = 1
10834 FS = "\a"
10836 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10837 line = \$ 0
10838 split(line, arg, " ")
10839 if (arg[1] == "#") {
10840 defundef = arg[2]
10841 mac1 = arg[3]
10842 } else {
10843 defundef = substr(arg[1], 2)
10844 mac1 = arg[2]
10846 split(mac1, mac2, "(") #)
10847 macro = mac2[1]
10848 prefix = substr(line, 1, index(line, defundef) - 1)
10849 if (D_is_set[macro]) {
10850 # Preserve the white space surrounding the "#".
10851 print prefix "define", macro P[macro] D[macro]
10852 next
10853 } else {
10854 # Replace #undef with comments. This is necessary, for example,
10855 # in the case of _POSIX_SOURCE, which is predefined and required
10856 # on some systems where configure will not decide to define it.
10857 if (defundef == "undef") {
10858 print "/*", prefix defundef, macro, "*/"
10859 next
10863 { print }
10864 _ACAWK
10865 _ACEOF
10866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10867 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10868 fi # test -n "$CONFIG_HEADERS"
10871 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10872 shift
10873 for ac_tag
10875 case $ac_tag in
10876 :[FHLC]) ac_mode=$ac_tag; continue;;
10877 esac
10878 case $ac_mode$ac_tag in
10879 :[FHL]*:*);;
10880 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10881 :[FH]-) ac_tag=-:-;;
10882 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10883 esac
10884 ac_save_IFS=$IFS
10885 IFS=:
10886 set x $ac_tag
10887 IFS=$ac_save_IFS
10888 shift
10889 ac_file=$1
10890 shift
10892 case $ac_mode in
10893 :L) ac_source=$1;;
10894 :[FH])
10895 ac_file_inputs=
10896 for ac_f
10898 case $ac_f in
10899 -) ac_f="$ac_tmp/stdin";;
10900 *) # Look for the file first in the build tree, then in the source tree
10901 # (if the path is not absolute). The absolute path cannot be DOS-style,
10902 # because $ac_f cannot contain `:'.
10903 test -f "$ac_f" ||
10904 case $ac_f in
10905 [\\/$]*) false;;
10906 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10907 esac ||
10908 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10909 esac
10910 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10911 as_fn_append ac_file_inputs " '$ac_f'"
10912 done
10914 # Let's still pretend it is `configure' which instantiates (i.e., don't
10915 # use $as_me), people would be surprised to read:
10916 # /* config.h. Generated by config.status. */
10917 configure_input='Generated from '`
10918 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10919 `' by configure.'
10920 if test x"$ac_file" != x-; then
10921 configure_input="$ac_file. $configure_input"
10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10923 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10925 # Neutralize special characters interpreted by sed in replacement strings.
10926 case $configure_input in #(
10927 *\&* | *\|* | *\\* )
10928 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10929 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10930 *) ac_sed_conf_input=$configure_input;;
10931 esac
10933 case $ac_tag in
10934 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10936 esac
10938 esac
10940 ac_dir=`$as_dirname -- "$ac_file" ||
10941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10942 X"$ac_file" : 'X\(//\)[^/]' \| \
10943 X"$ac_file" : 'X\(//\)$' \| \
10944 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10945 printf "%s\n" X"$ac_file" |
10946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10947 s//\1/
10950 /^X\(\/\/\)[^/].*/{
10951 s//\1/
10954 /^X\(\/\/\)$/{
10955 s//\1/
10958 /^X\(\/\).*/{
10959 s//\1/
10962 s/.*/./; q'`
10963 as_dir="$ac_dir"; as_fn_mkdir_p
10964 ac_builddir=.
10966 case "$ac_dir" in
10967 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10969 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10970 # A ".." for each directory in $ac_dir_suffix.
10971 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10972 case $ac_top_builddir_sub in
10973 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10974 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10975 esac ;;
10976 esac
10977 ac_abs_top_builddir=$ac_pwd
10978 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10979 # for backward compatibility:
10980 ac_top_builddir=$ac_top_build_prefix
10982 case $srcdir in
10983 .) # We are building in place.
10984 ac_srcdir=.
10985 ac_top_srcdir=$ac_top_builddir_sub
10986 ac_abs_top_srcdir=$ac_pwd ;;
10987 [\\/]* | ?:[\\/]* ) # Absolute name.
10988 ac_srcdir=$srcdir$ac_dir_suffix;
10989 ac_top_srcdir=$srcdir
10990 ac_abs_top_srcdir=$srcdir ;;
10991 *) # Relative name.
10992 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10993 ac_top_srcdir=$ac_top_build_prefix$srcdir
10994 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10995 esac
10996 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10999 case $ac_mode in
11002 # CONFIG_FILE
11005 case $INSTALL in
11006 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11007 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11008 esac
11009 _ACEOF
11011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11012 # If the template does not know about datarootdir, expand it.
11013 # FIXME: This hack should be removed a few years after 2.60.
11014 ac_datarootdir_hack=; ac_datarootdir_seen=
11015 ac_sed_dataroot='
11016 /datarootdir/ {
11020 /@datadir@/p
11021 /@docdir@/p
11022 /@infodir@/p
11023 /@localedir@/p
11024 /@mandir@/p'
11025 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11026 *datarootdir*) ac_datarootdir_seen=yes;;
11027 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11029 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11030 _ACEOF
11031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11032 ac_datarootdir_hack='
11033 s&@datadir@&$datadir&g
11034 s&@docdir@&$docdir&g
11035 s&@infodir@&$infodir&g
11036 s&@localedir@&$localedir&g
11037 s&@mandir@&$mandir&g
11038 s&\\\${datarootdir}&$datarootdir&g' ;;
11039 esac
11040 _ACEOF
11042 # Neutralize VPATH when `$srcdir' = `.'.
11043 # Shell code in configure.ac might set extrasub.
11044 # FIXME: do we really want to maintain this feature?
11045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11046 ac_sed_extra="$ac_vpsub
11047 $extrasub
11048 _ACEOF
11049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11052 s|@configure_input@|$ac_sed_conf_input|;t t
11053 s&@top_builddir@&$ac_top_builddir_sub&;t t
11054 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11055 s&@srcdir@&$ac_srcdir&;t t
11056 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11057 s&@top_srcdir@&$ac_top_srcdir&;t t
11058 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11059 s&@builddir@&$ac_builddir&;t t
11060 s&@abs_builddir@&$ac_abs_builddir&;t t
11061 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11062 s&@INSTALL@&$ac_INSTALL&;t t
11063 $ac_datarootdir_hack
11065 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11066 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11068 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11069 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11071 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11073 which seems to be undefined. Please make sure it is defined" >&5
11074 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11075 which seems to be undefined. Please make sure it is defined" >&2;}
11077 rm -f "$ac_tmp/stdin"
11078 case $ac_file in
11079 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11080 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11081 esac \
11082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11086 # CONFIG_HEADER
11088 if test x"$ac_file" != x-; then
11090 printf "%s\n" "/* $configure_input */" >&1 \
11091 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11092 } >"$ac_tmp/config.h" \
11093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11094 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11096 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11097 else
11098 rm -f "$ac_file"
11099 mv "$ac_tmp/config.h" "$ac_file" \
11100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11102 else
11103 printf "%s\n" "/* $configure_input */" >&1 \
11104 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11105 || as_fn_error $? "could not create -" "$LINENO" 5
11110 esac
11113 case $ac_file$ac_mode in
11114 "bin/sdcc":F) chmod +x bin/sdcc ;;
11115 "bin/sdcpp":F) chmod +x bin/sdcpp ;;
11116 "bin/sdar":F) chmod +x bin/sdar ;;
11117 "bin/sdnm":F) chmod +x bin/sdnm ;;
11118 "bin/sdranlib":F) chmod +x bin/sdranlib ;;
11119 "bin/sdobjcopy":F) chmod +x bin/sdobjcopy ;;
11121 esac
11122 done # for ac_tag
11125 as_fn_exit 0
11126 _ACEOF
11127 ac_clean_files=$ac_clean_files_save
11129 test $ac_write_fail = 0 ||
11130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11133 # configure is writing to config.log, and then calls config.status.
11134 # config.status does its own redirection, appending to config.log.
11135 # Unfortunately, on DOS this fails, as config.log is still kept open
11136 # by configure, so config.status won't be able to write to it; its
11137 # output is simply discarded. So we exec the FD to /dev/null,
11138 # effectively closing config.log, so it can be properly (re)opened and
11139 # appended to by config.status. When coming back to configure, we
11140 # need to make the FD available again.
11141 if test "$no_create" != yes; then
11142 ac_cs_success=:
11143 ac_config_status_args=
11144 test "$silent" = yes &&
11145 ac_config_status_args="$ac_config_status_args --quiet"
11146 exec 5>/dev/null
11147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11148 exec 5>>config.log
11149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11150 # would make configure fail if this is the last instruction.
11151 $ac_cs_success || as_fn_exit 1
11155 # CONFIG_SUBDIRS section.
11157 if test "$no_recursion" != yes; then
11159 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11160 # so they do not pile up.
11161 ac_sub_configure_args=
11162 ac_prev=
11163 eval "set x $ac_configure_args"
11164 shift
11165 for ac_arg
11167 if test -n "$ac_prev"; then
11168 ac_prev=
11169 continue
11171 case $ac_arg in
11172 -cache-file | --cache-file | --cache-fil | --cache-fi \
11173 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11174 ac_prev=cache_file ;;
11175 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11176 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11177 | --c=*)
11179 --config-cache | -C)
11181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11182 ac_prev=srcdir ;;
11183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11186 ac_prev=prefix ;;
11187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11189 --disable-option-checking)
11192 case $ac_arg in
11193 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11194 esac
11195 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
11196 esac
11197 done
11199 # Always prepend --prefix to ensure using the same prefix
11200 # in subdir configurations.
11201 ac_arg="--prefix=$prefix"
11202 case $ac_arg in
11203 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11204 esac
11205 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11207 # Pass --silent
11208 if test "$silent" = yes; then
11209 ac_sub_configure_args="--silent $ac_sub_configure_args"
11212 # Always prepend --disable-option-checking to silence warnings, since
11213 # different subdirs can have different --enable and --with options.
11214 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11216 ac_popdir=`pwd`
11217 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11219 # Do not complain, so a configure script can configure whichever
11220 # parts of a large source tree are present.
11221 test -d "$srcdir/$ac_dir" || continue
11223 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11225 printf "%s\n" "$ac_msg" >&6
11226 as_dir="$ac_dir"; as_fn_mkdir_p
11227 ac_builddir=.
11229 case "$ac_dir" in
11230 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11232 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11233 # A ".." for each directory in $ac_dir_suffix.
11234 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11235 case $ac_top_builddir_sub in
11236 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11237 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11238 esac ;;
11239 esac
11240 ac_abs_top_builddir=$ac_pwd
11241 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11242 # for backward compatibility:
11243 ac_top_builddir=$ac_top_build_prefix
11245 case $srcdir in
11246 .) # We are building in place.
11247 ac_srcdir=.
11248 ac_top_srcdir=$ac_top_builddir_sub
11249 ac_abs_top_srcdir=$ac_pwd ;;
11250 [\\/]* | ?:[\\/]* ) # Absolute name.
11251 ac_srcdir=$srcdir$ac_dir_suffix;
11252 ac_top_srcdir=$srcdir
11253 ac_abs_top_srcdir=$srcdir ;;
11254 *) # Relative name.
11255 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11256 ac_top_srcdir=$ac_top_build_prefix$srcdir
11257 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11258 esac
11259 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11262 cd "$ac_dir"
11264 # Check for configure.gnu first; this name is used for a wrapper for
11265 # Metaconfig's "Configure" on case-insensitive file systems.
11266 if test -f "$ac_srcdir/configure.gnu"; then
11267 ac_sub_configure=$ac_srcdir/configure.gnu
11268 elif test -f "$ac_srcdir/configure"; then
11269 ac_sub_configure=$ac_srcdir/configure
11270 else
11271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11272 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11273 ac_sub_configure=
11276 # The recursion is here.
11277 if test -n "$ac_sub_configure"; then
11278 # Make the cache file name correct relative to the subdirectory.
11279 case $cache_file in
11280 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11281 *) # Relative name.
11282 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11283 esac
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11286 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11287 # The eval makes quoting arguments work.
11288 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11289 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11290 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11293 cd "$ac_popdir"
11294 done
11296 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11298 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11302 # I found no better place
11303 mkdir -p bin
11305 # Prepare result message
11306 # ======================
11308 # In the C-header we need \\ as dir-separator, but in the message only \
11309 dirch=${sdccconf_h_dir_separator}
11310 test ${dirch} = '\\' && dirch='\'
11312 # calc friendly strings
11314 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
11315 case ":$binPath:" in
11316 ::) binPath='.' ;;
11317 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
11318 :*:) ;;
11319 esac
11320 case $dirch in
11322 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11323 s,^[\\/],\\\\\\\\,'` ;;
11325 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11326 esac
11327 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
11330 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
11331 case ":$incPath1:" in
11332 ::) incPath1='.' ;;
11333 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
11334 :*:) ;;
11335 esac
11336 case $dirch in
11338 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11339 s,^[\\/],\\\\\\\\,'` ;;
11341 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11342 esac
11343 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
11346 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
11347 case ":$incPath2:" in
11348 ::) incPath2='.' ;;
11349 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
11350 :*:) ;;
11351 esac
11352 case $dirch in
11354 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11355 s,^[\\/],\\\\\\\\,'` ;;
11357 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11358 esac
11359 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
11362 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
11363 case ":$incPath3:" in
11364 ::) incPath3='.' ;;
11365 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
11366 :*:) ;;
11367 esac
11368 case $dirch in
11370 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11371 s,^[\\/],\\\\\\\\,'` ;;
11373 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11374 esac
11375 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
11378 nonFreeIncPath1=`echo "/${prefix2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's,/\./,/,g'`
11379 case ":$nonFreeIncPath1:" in
11380 ::) nonFreeIncPath1='.' ;;
11381 :*[\\/]:) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,[\\/]*$,,'` ;;
11382 :*:) ;;
11383 esac
11384 case $dirch in
11386 *\\*) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11387 s,^[\\/],\\\\\\\\,'` ;;
11389 *) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11390 esac
11391 nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's,\\\\\\\\,\\\\,g'`
11394 nonFreeIncPath2=`echo "/${bin2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's,/\./,/,g'`
11395 case ":$nonFreeIncPath2:" in
11396 ::) nonFreeIncPath2='.' ;;
11397 :*[\\/]:) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,[\\/]*$,,'` ;;
11398 :*:) ;;
11399 esac
11400 case $dirch in
11402 *\\*) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11403 s,^[\\/],\\\\\\\\,'` ;;
11405 *) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11406 esac
11407 nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's,\\\\\\\\,\\\\,g'`
11410 nonFreeIncPath3=`echo "${expanded_datadir}/${norm_non_free_inc_dir_suffix}" | sed 's,/\./,/,g'`
11411 case ":$nonFreeIncPath3:" in
11412 ::) nonFreeIncPath3='.' ;;
11413 :*[\\/]:) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,[\\/]*$,,'` ;;
11414 :*:) ;;
11415 esac
11416 case $dirch in
11418 *\\*) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11419 s,^[\\/],\\\\\\\\,'` ;;
11421 *) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11422 esac
11423 nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's,\\\\\\\\,\\\\,g'`
11427 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
11428 case ":$libPath1:" in
11429 ::) libPath1='.' ;;
11430 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
11431 :*:) ;;
11432 esac
11433 case $dirch in
11435 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11436 s,^[\\/],\\\\\\\\,'` ;;
11438 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11439 esac
11440 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
11443 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
11444 case ":$libPath2:" in
11445 ::) libPath2='.' ;;
11446 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
11447 :*:) ;;
11448 esac
11449 case $dirch in
11451 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11452 s,^[\\/],\\\\\\\\,'` ;;
11454 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11455 esac
11456 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
11459 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
11460 case ":$libPath3:" in
11461 ::) libPath3='.' ;;
11462 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
11463 :*:) ;;
11464 esac
11465 case $dirch in
11467 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11468 s,^[\\/],\\\\\\\\,'` ;;
11470 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11471 esac
11472 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
11475 nonFreeLibPath1=`echo "/${prefix2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's,/\./,/,g'`
11476 case ":$nonFreeLibPath1:" in
11477 ::) nonFreeLibPath1='.' ;;
11478 :*[\\/]:) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,[\\/]*$,,'` ;;
11479 :*:) ;;
11480 esac
11481 case $dirch in
11483 *\\*) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11484 s,^[\\/],\\\\\\\\,'` ;;
11486 *) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11487 esac
11488 nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's,\\\\\\\\,\\\\,g'`
11491 nonFreeLibPath2=`echo "/${bin2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's,/\./,/,g'`
11492 case ":$nonFreeLibPath2:" in
11493 ::) nonFreeLibPath2='.' ;;
11494 :*[\\/]:) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,[\\/]*$,,'` ;;
11495 :*:) ;;
11496 esac
11497 case $dirch in
11499 *\\*) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11500 s,^[\\/],\\\\\\\\,'` ;;
11502 *) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11503 esac
11504 nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's,\\\\\\\\,\\\\,g'`
11507 nonFreeLibPath3=`echo "${expanded_datadir}/${norm_non_free_lib_dir_suffix}" | sed 's,/\./,/,g'`
11508 case ":$nonFreeLibPath3:" in
11509 ::) nonFreeLibPath3='.' ;;
11510 :*[\\/]:) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,[\\/]*$,,'` ;;
11511 :*:) ;;
11512 esac
11513 case $dirch in
11515 *\\*) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
11516 s,^[\\/],\\\\\\\\,'` ;;
11518 *) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11519 esac
11520 nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's,\\\\\\\\,\\\\,g'`
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
11524 sdcc ${VERSION} is now configured for
11526 Build: ${build}
11527 Host: ${host}
11528 Source directory: ${srcdir}
11529 Yacc: ${YACC}
11530 C compiler: ${CC}
11531 CFLAGS: ${CFLAGS}
11532 C++ compiler: ${CXX}
11533 CXXFLAGS: ${CXXFLAGS}
11534 CPPFLAGS: ${CPPFLAGS}
11535 LDFLAGS: ${LDFLAGS}
11536 MAKEDEP: ${MAKEDEP}
11537 MAKEDEP_CXX: ${MAKEDEP_CXX}
11539 ENABLED Ports:
11540 ds390 ${enable_ds390_port}
11541 ds400 ${enable_ds400_port}
11542 hc08 ${enable_hc08_port}
11543 s08 ${enable_s08_port}
11544 mcs51 ${enable_mcs51_port}
11545 pic14 ${enable_pic14_port}
11546 pic16 ${enable_pic16_port}
11547 z80 ${enable_z80_port}
11548 z180 ${enable_z180_port}
11549 r2k ${enable_r2k_port}
11550 r2ka ${enable_r2ka_port}
11551 r3ka ${enable_r3ka_port}
11552 sm83 ${enable_sm83_port}
11553 tlcs90 ${enable_tlcs90_port}
11554 ez80_z80 ${enable_ez80_z80_port}
11555 z80n ${enable_z80n_port}
11556 r800 ${enable_r800_port}
11557 stm8 ${enable_stm8_port}
11558 pdk13 ${enable_pdk13_port}
11559 pdk14 ${enable_pdk14_port}
11560 pdk15 ${enable_pdk15_port}
11561 pdk16 ${enable_pdk16_port}
11562 mos6502 ${enable_mos6502_port}
11563 mos65c02 ${enable_mos65c02_port}
11565 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11566 Disable packihx: ${OPT_DISABLE_PACKIHX}
11567 Disable ucsim: ${OPT_DISABLE_UCSIM}
11568 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11569 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11570 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11571 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11572 Enable documentation: ${OPT_ENABLE_DOC}
11573 Enable libgc: ${OPT_ENABLE_LIBGC}
11575 Install paths:
11576 binary files: ${exec_prefix}
11577 include/library files: ${datadir}/${inclib_dir_suffix}
11578 include files: ${datadir}/${include_dir_suffix}
11579 library files: ${datadir}/${lib_dir_suffix}
11580 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11581 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11582 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11583 documentation: ${docdir}
11585 prefix: ${prefix}
11586 datadir: ${datadir}
11587 datarootdir: ${datarootdir}
11589 Search paths (incomplete, see manual for all search paths):
11590 binary files: \$SDCC_HOME${binPath}
11591 include files: ${incPath1}
11592 path(argv[0])${incPath2}
11593 ${incPath3}
11594 ${nonFreeIncPath1}
11595 path(argv[0])${nonFreeIncPath2}
11596 ${nonFreeIncPath3}
11597 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11598 path(argv[0])${libPath2}${dirch}<model>
11599 ${libPath3}${dirch}<model>
11600 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11601 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11602 ${nonFreeLibPath3}${dirch}<model>
11603 " >&5
11604 printf "%s\n" "
11605 sdcc ${VERSION} is now configured for
11607 Build: ${build}
11608 Host: ${host}
11609 Source directory: ${srcdir}
11610 Yacc: ${YACC}
11611 C compiler: ${CC}
11612 CFLAGS: ${CFLAGS}
11613 C++ compiler: ${CXX}
11614 CXXFLAGS: ${CXXFLAGS}
11615 CPPFLAGS: ${CPPFLAGS}
11616 LDFLAGS: ${LDFLAGS}
11617 MAKEDEP: ${MAKEDEP}
11618 MAKEDEP_CXX: ${MAKEDEP_CXX}
11620 ENABLED Ports:
11621 ds390 ${enable_ds390_port}
11622 ds400 ${enable_ds400_port}
11623 hc08 ${enable_hc08_port}
11624 s08 ${enable_s08_port}
11625 mcs51 ${enable_mcs51_port}
11626 pic14 ${enable_pic14_port}
11627 pic16 ${enable_pic16_port}
11628 z80 ${enable_z80_port}
11629 z180 ${enable_z180_port}
11630 r2k ${enable_r2k_port}
11631 r2ka ${enable_r2ka_port}
11632 r3ka ${enable_r3ka_port}
11633 sm83 ${enable_sm83_port}
11634 tlcs90 ${enable_tlcs90_port}
11635 ez80_z80 ${enable_ez80_z80_port}
11636 z80n ${enable_z80n_port}
11637 r800 ${enable_r800_port}
11638 stm8 ${enable_stm8_port}
11639 pdk13 ${enable_pdk13_port}
11640 pdk14 ${enable_pdk14_port}
11641 pdk15 ${enable_pdk15_port}
11642 pdk16 ${enable_pdk16_port}
11643 mos6502 ${enable_mos6502_port}
11644 mos65c02 ${enable_mos65c02_port}
11646 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11647 Disable packihx: ${OPT_DISABLE_PACKIHX}
11648 Disable ucsim: ${OPT_DISABLE_UCSIM}
11649 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11650 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11651 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11652 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11653 Enable documentation: ${OPT_ENABLE_DOC}
11654 Enable libgc: ${OPT_ENABLE_LIBGC}
11656 Install paths:
11657 binary files: ${exec_prefix}
11658 include/library files: ${datadir}/${inclib_dir_suffix}
11659 include files: ${datadir}/${include_dir_suffix}
11660 library files: ${datadir}/${lib_dir_suffix}
11661 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11662 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11663 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11664 documentation: ${docdir}
11666 prefix: ${prefix}
11667 datadir: ${datadir}
11668 datarootdir: ${datarootdir}
11670 Search paths (incomplete, see manual for all search paths):
11671 binary files: \$SDCC_HOME${binPath}
11672 include files: ${incPath1}
11673 path(argv[0])${incPath2}
11674 ${incPath3}
11675 ${nonFreeIncPath1}
11676 path(argv[0])${nonFreeIncPath2}
11677 ${nonFreeIncPath3}
11678 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11679 path(argv[0])${libPath2}${dirch}<model>
11680 ${libPath3}${dirch}<model>
11681 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11682 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11683 ${nonFreeLibPath3}${dirch}<model>
11684 " >&6; }
11685 # End of configure/configure.in