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,
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
19 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
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+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
38 # Reset variables that may have inherited troublesome values from
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.
54 # Ensure predictable behavior from utilities with locale-dependent output.
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 ||
:
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
78 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
79 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself
=$0 ;;
89 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
98 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
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
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
125 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
127 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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
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+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
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; }
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\" )
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
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
191 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
197 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
203 *) as_dir
=$as_dir/ ;;
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
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
229 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
230 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
232 CONFIG_SHELL
=$SHELL as_have_required
=yes
237 if test "x$CONFIG_SHELL" != x
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.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
260 if test x
$as_have_required = xno
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."
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."
277 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
288 # Portably unset VAR.
291 { eval $1=; unset $1;}
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 # Do nothing but, unlike ":", preserve the value of $?.
324 # Create "$as_dir" as a directory, including parents if necessary.
329 -*) as_dir
=.
/$as_dir;;
331 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
335 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
362 test -d "$as_dir" && break
364 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
365 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
385 eval 'as_fn_append ()
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
410 as_val
=`expr "$@" || test $? -eq 1`
416 # Do nothing but, unlike ":", preserve the value of $?.
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.
430 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
439 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
446 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
452 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
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 '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
516 # Exit status is that of the last command.
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 #(((((
527 case `echo 'xy\c'` in
528 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
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
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
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 ||
560 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
574 test -d .
/-p && rmdir .
/-p
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
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`
599 ac_default_prefix
=/usr
/local
601 ac_config_libobj_dir
=.
608 # Identity of this package.
616 ac_unique_file
=".version"
617 ac_unique_file
="Makefile.in"
618 # Factoring default headers for most tests.
619 ac_includes_default
="\
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
639 #ifdef HAVE_SYS_TYPES_H
640 # include <sys/types.h>
642 #ifdef HAVE_SYS_STAT_H
643 # include <sys/stat.h>
650 enable_option_checking
=no
651 ac_subst_vars
='LTLIBOBJS
663 OPT_DISABLE_SDBINUTILS
667 OPT_DISABLE_DEVICE_LIB
697 non_free_lib_dir_suffix
699 non_free_include_dir_suffix
700 non_free_inclib_dir_suffix
704 sdccconf_h_dir_separator
784 program_transform_name
797 enable_option_checking
798 with_python_sys_prefix
800 with_python_exec_prefix
837 ac_precious_vars
='build_alias
850 sdccconf_h_dir_separator
854 non_free_inclib_dir_suffix
855 non_free_include_dir_suffix
857 non_free_lib_dir_suffix
859 ac_subdirs_all
='support/cpp
865 device/non-free/lib/pic14
867 device/non-free/lib/pic16'
869 # Initialize some variables set by options.
871 ac_init_version
=false
872 ac_unrecognized_opts
=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
883 program_transform_name
=s
,x
,x
,
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir
='${exec_prefix}/bin'
898 sbindir
='${exec_prefix}/sbin'
899 libexecdir
='${exec_prefix}/libexec'
900 datarootdir
='${prefix}/share'
901 datadir
='${datarootdir}'
902 sysconfdir
='${prefix}/etc'
903 sharedstatedir
='${prefix}/com'
904 localstatedir
='${prefix}/var'
905 runstatedir
='${localstatedir}/run'
906 includedir
='${prefix}/include'
907 oldincludedir
='/usr/include'
908 docdir
='${datarootdir}/doc/${PACKAGE}'
909 infodir
='${datarootdir}/info'
914 libdir
='${exec_prefix}/lib'
915 localedir
='${datarootdir}/locale'
916 mandir
='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\
$ac_option
930 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 case $ac_dashdash$ac_option in
939 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
941 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
944 -build |
--build |
--buil |
--bui |
--bu)
945 ac_prev
=build_alias
;;
946 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
947 build_alias
=$ac_optarg ;;
949 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
950 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
951 ac_prev
=cache_file
;;
952 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
953 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
954 cache_file
=$ac_optarg ;;
957 cache_file
=config.cache
;;
959 -datadir |
--datadir |
--datadi |
--datad)
961 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
962 datadir
=$ac_optarg ;;
964 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
965 |
--dataroo |
--dataro |
--datar)
966 ac_prev
=datarootdir
;;
967 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
968 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
969 datarootdir
=$ac_optarg ;;
971 -disable-* |
--disable-*)
972 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
975 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
976 ac_useropt_orig
=$ac_useropt
977 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep
=', ';;
985 eval enable_
$ac_useropt=no
;;
987 -docdir |
--docdir |
--docdi |
--doc |
--do)
989 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
992 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
994 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
997 -enable-* |
--enable-*)
998 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1001 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
1002 ac_useropt_orig
=$ac_useropt
1003 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_
$ac_useropt"
1008 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009 ac_unrecognized_sep
=', ';;
1011 eval enable_
$ac_useropt=\
$ac_optarg ;;
1013 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1014 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1015 |
--exec |
--exe |
--ex)
1016 ac_prev
=exec_prefix
;;
1017 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1018 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1019 |
--exec=* |
--exe=* |
--ex=*)
1020 exec_prefix
=$ac_optarg ;;
1022 -gas |
--gas |
--ga |
--g)
1023 # Obsolete; use --with-gas.
1026 -help |
--help |
--hel |
--he |
-h)
1027 ac_init_help
=long
;;
1028 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1029 ac_init_help
=recursive
;;
1030 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1031 ac_init_help
=short
;;
1033 -host |
--host |
--hos |
--ho)
1034 ac_prev
=host_alias
;;
1035 -host=* |
--host=* |
--hos=* |
--ho=*)
1036 host_alias
=$ac_optarg ;;
1038 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1040 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1042 htmldir
=$ac_optarg ;;
1044 -includedir |
--includedir |
--includedi |
--included |
--include \
1045 |
--includ |
--inclu |
--incl |
--inc)
1046 ac_prev
=includedir
;;
1047 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1048 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1049 includedir
=$ac_optarg ;;
1051 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1053 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1054 infodir
=$ac_optarg ;;
1056 -libdir |
--libdir |
--libdi |
--libd)
1058 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1059 libdir
=$ac_optarg ;;
1061 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1062 |
--libexe |
--libex |
--libe)
1063 ac_prev
=libexecdir
;;
1064 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1065 |
--libexe=* |
--libex=* |
--libe=*)
1066 libexecdir
=$ac_optarg ;;
1068 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1069 ac_prev
=localedir
;;
1070 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1071 localedir
=$ac_optarg ;;
1073 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1074 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1075 ac_prev
=localstatedir
;;
1076 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1077 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1078 localstatedir
=$ac_optarg ;;
1080 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1082 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1083 mandir
=$ac_optarg ;;
1085 -nfp |
--nfp |
--nf)
1086 # Obsolete; use --without-fp.
1089 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1090 |
--no-cr |
--no-c |
-n)
1093 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1094 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1097 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1098 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1099 |
--oldin |
--oldi |
--old |
--ol |
--o)
1100 ac_prev
=oldincludedir
;;
1101 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1102 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1103 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1104 oldincludedir
=$ac_optarg ;;
1106 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1108 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1109 prefix
=$ac_optarg ;;
1111 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1112 |
--program-pre |
--program-pr |
--program-p)
1113 ac_prev
=program_prefix
;;
1114 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1115 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1116 program_prefix
=$ac_optarg ;;
1118 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1119 |
--program-suf |
--program-su |
--program-s)
1120 ac_prev
=program_suffix
;;
1121 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1122 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1123 program_suffix
=$ac_optarg ;;
1125 -program-transform-name |
--program-transform-name \
1126 |
--program-transform-nam |
--program-transform-na \
1127 |
--program-transform-n |
--program-transform- \
1128 |
--program-transform |
--program-transfor \
1129 |
--program-transfo |
--program-transf \
1130 |
--program-trans |
--program-tran \
1131 |
--progr-tra |
--program-tr |
--program-t)
1132 ac_prev
=program_transform_name
;;
1133 -program-transform-name=* |
--program-transform-name=* \
1134 |
--program-transform-nam=* |
--program-transform-na=* \
1135 |
--program-transform-n=* |
--program-transform-=* \
1136 |
--program-transform=* |
--program-transfor=* \
1137 |
--program-transfo=* |
--program-transf=* \
1138 |
--program-trans=* |
--program-tran=* \
1139 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1140 program_transform_name
=$ac_optarg ;;
1142 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1144 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1145 pdfdir
=$ac_optarg ;;
1147 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1149 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1152 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1153 |
-silent |
--silent |
--silen |
--sile |
--sil)
1156 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1157 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1158 |
--run |
--ru |
--r)
1159 ac_prev
=runstatedir
;;
1160 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1161 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1162 |
--run=* |
--ru=* |
--r=*)
1163 runstatedir
=$ac_optarg ;;
1165 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1167 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1169 sbindir
=$ac_optarg ;;
1171 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1172 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1173 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1175 ac_prev
=sharedstatedir
;;
1176 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1177 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1178 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1180 sharedstatedir
=$ac_optarg ;;
1182 -site |
--site |
--sit)
1184 -site=* |
--site=* |
--sit=*)
1187 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1189 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1190 srcdir
=$ac_optarg ;;
1192 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1193 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1194 ac_prev
=sysconfdir
;;
1195 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1196 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1197 sysconfdir
=$ac_optarg ;;
1199 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1200 ac_prev
=target_alias
;;
1201 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1202 target_alias
=$ac_optarg ;;
1204 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1207 -version |
--version |
--versio |
--versi |
--vers |
-V)
1208 ac_init_version
=: ;;
1211 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1214 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1215 ac_useropt_orig
=$ac_useropt
1216 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1221 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep
=', ';;
1224 eval with_
$ac_useropt=\
$ac_optarg ;;
1226 -without-* |
--without-*)
1227 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1230 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1231 ac_useropt_orig
=$ac_useropt
1232 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1237 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep
=', ';;
1240 eval with_
$ac_useropt=no
;;
1243 # Obsolete; use --with-x.
1246 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1247 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1248 ac_prev
=x_includes
;;
1249 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1250 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1251 x_includes
=$ac_optarg ;;
1253 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1254 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1255 ac_prev
=x_libraries
;;
1256 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1257 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1258 x_libraries
=$ac_optarg ;;
1260 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1265 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1269 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1271 eval $ac_envvar=\
$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1278 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285 if test -n "$ac_prev"; then
1286 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error $?
"missing argument to $ac_option"
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1293 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1294 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 # Check all directory arguments for consistency.
1299 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir runstatedir
1304 eval ac_val
=\$
$ac_var
1305 # Remove trailing slashes.
1308 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\
$ac_val;;
1311 # Be sure to have absolute directory names.
1313 [\\/$
]* | ?
:[\\/]* ) continue;;
1314 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1316 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1324 target
=$target_alias
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x
; then
1328 if test "x$build_alias" = x
; then
1329 cross_compiling
=maybe
1330 elif test "x$build_alias" != "x$host_alias"; then
1336 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1338 test "$silent" = yes && exec 6>/dev
/null
1341 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di
=`ls -di .` &&
1343 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1344 as_fn_error $?
"working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 as_fn_error $?
"pwd does not report name of working directory"
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted
=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir
=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 printf "%s\n" X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1381 ac_srcdir_defaulted
=no
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1385 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1387 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1399 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 for ac_var
in $ac_precious_vars; do
1402 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1404 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1415 \`configure' configures this package to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking ...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1479 --build=BUILD configure
for building on BUILD
[guessed
]
1480 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1484 if test -n "$ac_init_help"; then
1489 --disable-option-checking ignore unrecognized
--enable/--with options
1490 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1491 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1492 --disable-mcs51-port Excludes the Intel mcs51 port
1493 --disable-z80-port Excludes the Z80 port
1494 --disable-z180-port Excludes the Z180 port
1495 --disable-r2k-port Excludes the Rabbit
2000 port
1496 --disable-r2ka-port Excludes the Rabbit
2000A port
1497 --disable-r3ka-port Excludes the Rabbit
3000A port
1498 --disable-sm83-port Excludes the SM83 port
1499 --disable-tlcs90-port Excludes the TLCS-90 port
1500 --disable-ez80_z80-port Excludes the EZ80-Z80 port
1501 --disable-z80n-port Excludes the Z80N port
1502 --disable-r800-port Excludes the R800 port
1503 --disable-ds390-port Excludes the DS390 port
1504 --disable-ds400-port Excludes the DS400 port
1505 --disable-pic14-port Excludes the PIC14 port
1506 --disable-pic16-port Excludes the PIC16 port
1507 --disable-hc08-port Excludes the HC08 port
1508 --disable-s08-port Excludes the S08 port
1509 --disable-stm8-port Excludes the STM8 port
1510 --disable-pdk13-port Excludes the PDK13 port
1511 --disable-pdk14-port Excludes the PDK14 port
1512 --disable-pdk15-port Excludes the PDK15 port
1513 --enable-pdk16-port Includes the PDK16 port
1514 --disable-mos6502-port Excludes the MOS6502 port
1515 --disable-mos65c02-port Excludes the MOS65C02 port
1516 --disable-f8-port Excludes the F8 port
1517 --disable-ucsim Disables configuring and building of ucsim
1518 --disable-device-lib Disables building device libraries
1519 --disable-packihx Disables building packihx
1520 --disable-sdcpp Disables building sdcpp
1521 --disable-sdcdb Disables building sdcdb
1522 --disable-sdbinutils Disables configuring and building of sdbinutils
1523 --disable-non-free Disables non-free runtime library parts
1524 --enable-doc Enables building the documentation
1525 --enable-libgc Use the Bohem memory allocator. Lower runtime
1529 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1530 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1531 --with-python-sys-prefix
1532 use Python
's sys.prefix and sys.exec_prefix values
1533 --with-python_prefix override the default PYTHON_PREFIX
1534 --with-python_exec_prefix
1535 override the default PYTHON_EXEC_PREFIX
1536 --without-ccache do not use ccache even if available
1538 Some influential environment variables:
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1547 CXX C++ compiler command
1548 CXXFLAGS C++ compiler flags
1549 PYTHON the Python interpreter
1550 sdccconf_h_dir_separator
1551 needed in sdccconf.h: either "/" (default) or "\\"
1552 LIB_TYPE library type: LIB, SDCCLIB, AR or RANLIB (default)
1554 appended to datadir to define SDCC's include
/lib directory
1556 appended to datadir to define SDCC
's include directory
1557 non_free_inclib_dir_suffix
1558 appended to datadir to define SDCC's non-free include
/lib
1560 non_free_include_dir_suffix
1561 appended to datadir to define SDCC
's non-free include directory
1563 appended to datadir to define SDCC's library root directory
1564 non_free_lib_dir_suffix
1565 appended to datadir to define SDCC
's non-free library root
1567 docdir documentation installation directory
1569 Use these variables to override the choices made by `configure' or to
help
1570 it to
find libraries and programs with nonstandard names
/locations.
1572 Report bugs to the package provider.
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1586 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1588 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1593 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1596 ac_abs_top_builddir
=$ac_pwd
1597 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir
=$ac_top_build_prefix
1602 .
) # We are building in place.
1604 ac_top_srcdir
=$ac_top_builddir_sub
1605 ac_abs_top_srcdir
=$ac_pwd ;;
1606 [\\/]* | ?
:[\\/]* ) # Absolute name.
1607 ac_srcdir
=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir
=$srcdir
1609 ac_abs_top_srcdir
=$srcdir ;;
1611 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1615 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1617 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1618 # Check for configure.gnu first; this name is used for a wrapper for
1619 # Metaconfig's "Configure" on case-insensitive file systems.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1627 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1637 generated by GNU Autoconf
2.71
1639 Copyright
(C
) 2021 Free Software Foundation
, Inc.
1640 This configure
script is free software
; the Free Software Foundation
1641 gives unlimited permission to copy
, distribute and modify it.
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile
()
1655 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1656 rm -f conftest.
$ac_objext conftest.beam
1657 if { { ac_try
="$ac_compile"
1659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 printf "%s\n" "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext
1679 printf "%s\n" "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1687 } # ac_fn_c_try_compile
1689 # ac_fn_c_try_cpp LINENO
1690 # ----------------------
1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1698 *) ac_try_echo
=$ac_try;;
1700 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 printf "%s\n" "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 if test -s conftest.err
; then
1705 grep -v '^ *+' conftest.err
>conftest.er1
1706 cat conftest.er1
>&5
1707 mv -f conftest.er1 conftest.err
1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } > conftest.i
&& {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1717 printf "%s\n" "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.
$ac_ext >&5
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status
$ac_retval
1727 # ac_fn_cxx_try_compile LINENO
1728 # ----------------------------
1729 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_cxx_try_compile
()
1732 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1733 rm -f conftest.
$ac_objext conftest.beam
1734 if { { ac_try
="$ac_compile"
1736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 printf "%s\n" "$ac_try_echo"; } >&5
1741 (eval "$ac_compile") 2>conftest.err
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_cxx_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest.$ac_objext
1756 printf "%s\n" "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_cxx_try_compile
1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists and can be compiled using the include files in
1769 # INCLUDES, setting the cache variable VAR accordingly.
1770 ac_fn_c_check_header_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 printf %s "checking for $2... " >&6; }
1775 if eval test \${$3+y}
1777 printf %s "(cached) " >&6
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1784 if ac_fn_c_try_compile "$LINENO"
1790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 printf "%s\n" "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_header_compile
1799 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1800 # ---------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_cxx_check_header_compile ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 printf %s "checking for $2... " >&6; }
1808 if eval test \${$3+y}
1810 printf %s "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1817 if ac_fn_cxx_try_compile "$LINENO"
1823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 printf "%s\n" "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 } # ac_fn_cxx_check_header_compile
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1842 *) ac_try_echo
=$ac_try;;
1844 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 printf "%s\n" "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1848 if test -s conftest.err
; then
1849 grep -v '^ *+' conftest.err
>conftest.er1
1850 cat conftest.er1
>&5
1851 mv -f conftest.er1 conftest.err
1853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest
$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest
$ac_exeext
1864 printf "%s\n" "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.
$ac_ext >&5
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status
$ac_retval
1877 } # ac_fn_c_try_link
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func
()
1884 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 printf %s
"checking for $2... " >&6; }
1887 if eval test \
${$3+y}
1889 printf %s
"(cached) " >&6
1891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1895 #define $2 innocuous_$2
1897 /* System header to define __stub macros and hopefully few prototypes,
1898 which can conflict with char $2 (); below. */
1903 /* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1910 /* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913 #if defined __stub_$2 || defined __stub___$2
1925 if ac_fn_c_try_link
"$LINENO"
1931 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
1932 conftest
$ac_exeext conftest.
$ac_ext
1935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 printf "%s\n" "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_func
1941 # ac_fn_c_try_run LINENO
1942 # ----------------------
1943 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1944 # executables *can* be run.
1947 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1948 if { { ac_try
="$ac_link"
1950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 printf "%s\n" "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>&5
1957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1959 { { case "(($ac_try" in
1960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1961 *) ac_try_echo
=$ac_try;;
1963 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 printf "%s\n" "$ac_try_echo"; } >&5
1965 (eval "$ac_try") 2>&5
1967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; }; }
1972 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1973 printf "%s\n" "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.
$ac_ext >&5
1976 ac_retval
=$ac_status
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 as_fn_set_status
$ac_retval
1984 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1985 # --------------------------------------------
1986 # Tries to find the compile-time value of EXPR in a program that includes
1987 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1989 ac_fn_c_compute_int
()
1991 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1992 if test "$cross_compiling" = yes; then
1993 # Depending upon the size, compute the lo and hi bounds.
1994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
2000 static int test_array [1 - 2 * !(($2) >= 0)];
2002 return test_array [0];
2008 if ac_fn_c_try_compile
"$LINENO"
2012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2018 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2020 return test_array [0];
2026 if ac_fn_c_try_compile
"$LINENO"
2028 ac_hi
=$ac_mid; break
2030 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2031 if test $ac_lo -le $ac_mid; then
2035 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2037 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) < 0)];
2048 return test_array [0];
2054 if ac_fn_c_try_compile
"$LINENO"
2058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2064 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2066 return test_array [0];
2072 if ac_fn_c_try_compile
"$LINENO"
2074 ac_lo
=$ac_mid; break
2076 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2077 if test $ac_mid -le $ac_hi; then
2081 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2083 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2088 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2090 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2091 # Binary search between lo and hi bounds.
2092 while test "x$ac_lo" != "x$ac_hi"; do
2093 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2100 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102 return test_array [0];
2108 if ac_fn_c_try_compile
"$LINENO"
2112 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2114 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2117 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2124 static long int longval (void) { return $2; }
2125 static unsigned long int ulongval (void) { return $2; }
2132 FILE *f = fopen ("conftest.val", "w");
2137 long int i = longval ();
2140 fprintf (f, "%ld", i);
2144 unsigned long int i = ulongval ();
2147 fprintf (f, "%lu", i);
2149 /* Do not output a trailing newline, as this causes \r\n confusion
2150 on some platforms. */
2151 return ferror (f) || fclose (f) != 0;
2157 if ac_fn_c_try_run
"$LINENO"
2159 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2163 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2164 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 as_fn_set_status
$ac_retval
2171 } # ac_fn_c_compute_int
2172 ac_configure_args_raw
=
2177 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 as_fn_append ac_configure_args_raw
" '$ac_arg'"
2182 case $ac_configure_args_raw in
2186 ac_unsafe_z
='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2187 ac_unsafe_a
="$ac_unsafe_z#~"
2188 ac_safe_unquote
="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2189 ac_configure_args_raw
=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2192 cat >config.log
<<_ACEOF
2193 This file contains any messages produced by compilers while
2194 running configure, to aid debugging if configure makes a mistake.
2196 It was created by $as_me, which was
2197 generated by GNU Autoconf 2.71. Invocation command line was
2199 $ $0$ac_configure_args_raw
2209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2221 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2232 case $as_dir in #(((
2235 *) as_dir
=$as_dir/ ;;
2237 printf "%s\n" "PATH: $as_dir"
2253 # Keep a trace of the command line.
2254 # Strip out --no-create and --no-recursion so they do not pile up.
2255 # Strip out --silent because we don't want to record it for future runs.
2256 # Also quote any args containing shell meta-characters.
2257 # Make two passes to allow for proper duplicate-argument suppression.
2261 ac_must_keep_next
=false
2267 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2268 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2269 |
-silent |
--silent |
--silen |
--sile |
--sil)
2272 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2275 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2277 as_fn_append ac_configure_args1
" '$ac_arg'"
2278 if test $ac_must_keep_next = true
; then
2279 ac_must_keep_next
=false
# Got value, back to normal.
2282 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2283 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2284 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2285 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2286 case "$ac_configure_args0 " in
2287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2290 -* ) ac_must_keep_next
=true
;;
2293 as_fn_append ac_configure_args
" '$ac_arg'"
2298 { ac_configure_args0
=; unset ac_configure_args0
;}
2299 { ac_configure_args1
=; unset ac_configure_args1
;}
2301 # When interrupted or exit'd, cleanup temporary files, and complete
2302 # config.log. We remove comments because anyway the quotes in there
2303 # would cause problems or look ugly.
2304 # WARNING: Use '\'' to represent an apostrophe within the trap.
2305 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2306 trap 'exit_status=$?
2309 # Save into config.log some information that might help in debugging.
2313 printf "%s\n" "## ---------------- ##
2314 ## Cache variables. ##
2315 ## ---------------- ##"
2317 # The following way of writing the cache mishandles newlines in values,
2319 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2320 eval ac_val=\$$ac_var
2324 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2325 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2328 _ | IFS | as_nl) ;; #(
2329 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2330 *) { eval $ac_var=; unset $ac_var;} ;;
2335 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2336 *${as_nl}ac_space=\ *)
2338 "s/'\''/'\''\\\\'\'''\''/g;
2339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2349 printf "%s\n" "## ----------------- ##
2350 ## Output variables. ##
2351 ## ----------------- ##"
2353 for ac_var in $ac_subst_vars
2355 eval ac_val=\$$ac_var
2357 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359 printf "%s\n" "$ac_var='\''$ac_val'\''"
2363 if test -n "$ac_subst_files"; then
2364 printf "%s\n" "## ------------------- ##
2365 ## File substitutions. ##
2366 ## ------------------- ##"
2368 for ac_var
in $ac_subst_files
2370 eval ac_val
=\$
$ac_var
2372 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374 printf "%s\n" "$ac_var='\''$ac_val'\''"
2379 if test -s confdefs.h; then
2380 printf "%s\n" "## ----------- ##
2387 test "$ac_signal" != 0 &&
2388 printf "%s\n" "$as_me: caught signal $ac_signal"
2389 printf "%s\n" "$as_me: exit $exit_status"
2391 rm -f core *.core core.conftest.* &&
2392 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2395 for ac_signal
in 1 2 13 15; do
2396 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2401 rm -f -r conftest
* confdefs.h
2403 printf "%s\n" "/* confdefs.h */" > confdefs.h
2405 # Predefined preprocessor variables.
2407 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2409 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2411 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2413 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2415 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2417 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2420 # Let the site file select an alternate cache file if it wants to.
2421 # Prefer an explicitly selected file to automatically selected ones.
2422 if test -n "$CONFIG_SITE"; then
2423 ac_site_files
="$CONFIG_SITE"
2424 elif test "x$prefix" != xNONE
; then
2425 ac_site_files
="$prefix/share/config.site $prefix/etc/config.site"
2427 ac_site_files
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2430 for ac_site_file
in $ac_site_files
2432 case $ac_site_file in #(
2436 ac_site_file
=.
/$ac_site_file ;;
2438 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2440 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2441 sed 's/^/| /' "$ac_site_file" >&5
2443 ||
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2445 as_fn_error $?
"failed to load site script $ac_site_file
2446 See \`config.log' for more details" "$LINENO" 5; }
2450 if test -r "$cache_file"; then
2451 # Some versions of bash will fail to source /dev/null (special files
2452 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2453 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2455 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2457 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2458 *) .
"./$cache_file";;
2462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2463 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2467 # Test code for whether the C compiler supports C89 (global declarations)
2468 ac_c_conftest_c89_globals
='
2469 /* Does the compiler advertise C89 conformance?
2470 Do not test the value of __STDC__, because some compilers set it to 0
2471 while being otherwise adequately conformant. */
2472 #if !defined __STDC__
2473 # error "Compiler does not advertise C89 conformance"
2479 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2480 struct buf { int x; };
2481 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2482 static char *e (p, i)
2488 static char *f (char * (*g) (char **, int), char **p, ...)
2493 s = g (p, va_arg (v,int));
2498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2499 function prototypes and stuff, but not \xHH hex character constants.
2500 These do not provoke an error unfortunately, instead are silently treated
2501 as an "x". The following induces an error, until -std is added to get
2502 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2503 array size at least. It is necessary to write \x00 == 0 to get something
2504 that is true only with -std. */
2505 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2507 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2508 inside strings and character constants. */
2509 #define FOO(x) '\''x'\''
2510 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2512 int test (int i, double x);
2513 struct s1 {int (*f) (int a);};
2514 struct s2 {int (*f) (double a);};
2515 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2518 # Test code for whether the C compiler supports C89 (body of main).
2519 ac_c_conftest_c89_main
='
2520 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2523 # Test code for whether the C compiler supports C99 (global declarations)
2524 ac_c_conftest_c99_globals
='
2525 // Does the compiler advertise C99 conformance?
2526 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2527 # error "Compiler does not advertise C99 conformance"
2530 #include <stdbool.h>
2531 extern int puts (const char *);
2532 extern int printf (const char *, ...);
2533 extern int dprintf (int, const char *, ...);
2534 extern void *malloc (size_t);
2536 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2537 // dprintf is used instead of fprintf to avoid needing to declare
2539 #define debug(...) dprintf (2, __VA_ARGS__)
2540 #define showlist(...) puts (#__VA_ARGS__)
2541 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2543 test_varargs_macros (void)
2548 debug ("X = %d\n", x);
2549 showlist (The first, second, and third items.);
2550 report (x>y, "x is %d but y is %d", x, y);
2553 // Check long long types.
2554 #define BIG64 18446744073709551615ull
2555 #define BIG32 4294967295ul
2556 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2558 #error "your preprocessor is broken"
2562 #error "your preprocessor is broken"
2564 static long long int bignum = -9223372036854775807LL;
2565 static unsigned long long int ubignum = BIG64;
2567 struct incomplete_array
2575 const wchar_t *name;
2579 typedef const char *ccp;
2582 test_restrict (ccp restrict text)
2584 // See if C++-style comments work.
2585 // Iterate through items via the restricted pointer.
2586 // Also check for declarations in for loops.
2587 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2592 // Check varargs and va_copy.
2594 test_varargs (const char *format, ...)
2597 va_start (args, format);
2599 va_copy (args_copy, args);
2601 const char *str = "";
2609 case '\''s'\'': // string
2610 str = va_arg (args_copy, const char *);
2612 case '\''d'\'': // int
2613 number = va_arg (args_copy, int);
2615 case '\''f'\'': // float
2616 fnumber = va_arg (args_copy, double);
2625 return *str && number && fnumber;
2629 # Test code for whether the C compiler supports C99 (body of main).
2630 ac_c_conftest_c99_main
='
2632 _Bool success = false;
2633 success |= (argc != 0);
2636 if (test_restrict ("String literal") == 0)
2638 char *restrict newvar = "Another string";
2641 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2642 test_varargs_macros ();
2644 // Check flexible array members.
2645 struct incomplete_array *ia =
2646 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2648 for (int i = 0; i < ia->datasize; ++i)
2649 ia->data[i] = i * 1.234;
2651 // Check named initializers.
2652 struct named_init ni = {
2654 .name = L"Test wide string",
2655 .average = 543.34343,
2660 int dynamic_array[ni.number];
2661 dynamic_array[0] = argv[0][0];
2662 dynamic_array[ni.number - 1] = 543;
2664 // work around unused variable warnings
2665 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2666 || dynamic_array[ni.number - 1] != 543);
2669 # Test code for whether the C compiler supports C11 (global declarations)
2670 ac_c_conftest_c11_globals
='
2671 // Does the compiler advertise C11 conformance?
2672 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2673 # error "Compiler does not advertise C11 conformance"
2677 char _Alignas (double) aligned_as_double;
2678 char _Alignas (0) no_special_alignment;
2679 extern char aligned_as_int;
2680 char _Alignas (0) _Alignas (int) aligned_as_int;
2685 int_alignment = _Alignof (int),
2686 int_array_alignment = _Alignof (int[100]),
2687 char_alignment = _Alignof (char)
2689 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2692 int _Noreturn does_not_return (void) { for (;;) continue; }
2694 // Check _Static_assert.
2695 struct test_static_assert
2698 _Static_assert (sizeof (int) <= sizeof (long int),
2699 "_Static_assert does not work in struct");
2703 // Check UTF-8 literals.
2704 #define u8 syntax error!
2705 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2707 // Check duplicate typedefs.
2708 typedef long *long_ptr;
2709 typedef long int *long_ptr;
2710 typedef long_ptr long_ptr;
2712 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2716 struct { int i; int j; };
2717 struct { int k; long int l; } w;
2723 # Test code for whether the C compiler supports C11 (body of main).
2724 ac_c_conftest_c11_main
='
2725 _Static_assert ((offsetof (struct anonymous, i)
2726 == offsetof (struct anonymous, w.k)),
2727 "Anonymous union alignment botch");
2733 # Test code for whether the C compiler supports C11 (complete).
2734 ac_c_conftest_c11_program
="${ac_c_conftest_c89_globals}
2735 ${ac_c_conftest_c99_globals}
2736 ${ac_c_conftest_c11_globals}
2739 main (int argc, char **argv)
2742 ${ac_c_conftest_c89_main}
2743 ${ac_c_conftest_c99_main}
2744 ${ac_c_conftest_c11_main}
2749 # Test code for whether the C compiler supports C99 (complete).
2750 ac_c_conftest_c99_program
="${ac_c_conftest_c89_globals}
2751 ${ac_c_conftest_c99_globals}
2754 main (int argc, char **argv)
2757 ${ac_c_conftest_c89_main}
2758 ${ac_c_conftest_c99_main}
2763 # Test code for whether the C compiler supports C89 (complete).
2764 ac_c_conftest_c89_program
="${ac_c_conftest_c89_globals}
2767 main (int argc, char **argv)
2770 ${ac_c_conftest_c89_main}
2775 # Test code for whether the C++ compiler supports C++98 (global declarations)
2776 ac_cxx_conftest_cxx98_globals
='
2777 // Does the compiler advertise C++98 conformance?
2778 #if !defined __cplusplus || __cplusplus < 199711L
2779 # error "Compiler does not advertise C++98 conformance"
2782 // These inclusions are to reject old compilers that
2783 // lack the unsuffixed header files.
2785 #include <exception>
2787 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2788 extern void assert (int);
2790 extern int strcmp (const char *, const char *);
2793 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2794 using std::exception;
2799 void test_exception_syntax()
2803 } catch (const char *s) {
2804 // Extra parentheses suppress a warning when building autoconf itself,
2805 // due to lint rules shared with more typical C programs.
2806 assert (!(strcmp) (s, "test"));
2810 template <typename T> struct test_template
2813 explicit test_template(T t) : val(t) {}
2814 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2817 } // anonymous namespace
2820 # Test code for whether the C++ compiler supports C++98 (body of main)
2821 ac_cxx_conftest_cxx98_main
='
2825 test_exception_syntax ();
2826 test_template<double> tt (2.0);
2827 assert (tt.add (4) == 6.0);
2828 assert (true && !false);
2832 # Test code for whether the C++ compiler supports C++11 (global declarations)
2833 ac_cxx_conftest_cxx11_globals
='
2834 // Does the compiler advertise C++ 2011 conformance?
2835 #if !defined __cplusplus || __cplusplus < 201103L
2836 # error "Compiler does not advertise C++11 conformance"
2841 constexpr int get_val() { return 20; }
2852 delegate(int n) : n(n) {}
2853 delegate(): delegate(2354) {}
2855 virtual int getval() { return this->n; };
2860 class overridden : public delegate
2863 overridden(int n): delegate(n) {}
2864 virtual int getval() override final { return this->n * 2; }
2870 nocopy(int i): i(i) {}
2872 nocopy(const nocopy&) = delete;
2873 nocopy & operator=(const nocopy&) = delete;
2878 // for testing lambda expressions
2879 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2884 // for testing variadic templates and trailing return types
2885 template <typename V> auto sum(V first) -> V
2889 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2891 return first + sum(rest...);
2896 # Test code for whether the C++ compiler supports C++11 (body of main)
2897 ac_cxx_conftest_cxx11_main
='
2899 // Test auto and decltype
2901 auto a2 = 48573953.4;
2902 auto a3 = "String literal";
2905 for (auto i = a3; *i; ++i) { total += *i; }
2907 decltype(a2) a4 = 34895.034;
2911 short sa[cxx11test::get_val()] = { 0 };
2914 // Test initializer lists
2915 cxx11test::testinit il = { 4323, 435234.23544 };
2918 // Test range-based for
2919 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2920 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2921 for (auto &x : array) { x += 23; }
2924 // Test lambda expressions
2925 using cxx11test::eval;
2926 assert (eval ([](int x) { return x*2; }, 21) == 42);
2928 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2930 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2934 // Test use of variadic templates
2935 using cxx11test::sum;
2938 auto c = sum(1.0, 2.0, 3.0);
2941 // Test constructor delegation
2942 cxx11test::delegate d1;
2943 cxx11test::delegate d2();
2944 cxx11test::delegate d3(45);
2947 // Test override and final
2948 cxx11test::overridden o1(55464);
2955 // Test template brackets
2956 test_template<::test_template<int>> v(test_template<int>(12));
2960 char const *utf8 = u8"UTF-8 string \u2500";
2961 char16_t const *utf16 = u"UTF-8 string \u2500";
2962 char32_t const *utf32 = U"UTF-32 string \u2500";
2966 # Test code for whether the C compiler supports C++11 (complete).
2967 ac_cxx_conftest_cxx11_program
="${ac_cxx_conftest_cxx98_globals}
2968 ${ac_cxx_conftest_cxx11_globals}
2971 main (int argc, char **argv)
2974 ${ac_cxx_conftest_cxx98_main}
2975 ${ac_cxx_conftest_cxx11_main}
2980 # Test code for whether the C compiler supports C++98 (complete).
2981 ac_cxx_conftest_cxx98_program
="${ac_cxx_conftest_cxx98_globals}
2983 main (int argc, char **argv)
2986 ${ac_cxx_conftest_cxx98_main}
2991 as_fn_append ac_header_c_list
" stdio.h stdio_h HAVE_STDIO_H"
2992 as_fn_append ac_header_c_list
" stdlib.h stdlib_h HAVE_STDLIB_H"
2993 as_fn_append ac_header_c_list
" string.h string_h HAVE_STRING_H"
2994 as_fn_append ac_header_c_list
" inttypes.h inttypes_h HAVE_INTTYPES_H"
2995 as_fn_append ac_header_c_list
" stdint.h stdint_h HAVE_STDINT_H"
2996 as_fn_append ac_header_c_list
" strings.h strings_h HAVE_STRINGS_H"
2997 as_fn_append ac_header_c_list
" sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2998 as_fn_append ac_header_c_list
" sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2999 as_fn_append ac_header_c_list
" unistd.h unistd_h HAVE_UNISTD_H"
3001 # Auxiliary files required by this configure script.
3002 ac_aux_files
="install-sh config.guess config.sub"
3004 # Locations in which to look for auxiliary files.
3005 ac_aux_dir_candidates
="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3007 # Search for a directory containing all of the required auxiliary files,
3008 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3009 # If we don't find one directory that contains all the files we need,
3010 # we report the set of missing files from the *first* directory in
3011 # $ac_aux_dir_candidates and give up.
3012 ac_missing_aux_files
=""
3013 ac_first_candidate
=:
3014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3017 for as_dir
in $ac_aux_dir_candidates
3020 case $as_dir in #(((
3023 *) as_dir
=$as_dir/ ;;
3027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3028 ac_aux_dir_found
=yes
3030 for ac_aux
in $ac_aux_files
3032 # As a special case, if "install-sh" is required, that requirement
3033 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3034 # and $ac_install_sh is set appropriately for whichever one is found.
3035 if test x
"$ac_aux" = x
"install-sh"
3037 if 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}install.sh"; then
3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3042 ac_install_sh
="${as_dir}install.sh -c"
3043 elif test -f "${as_dir}shtool"; then
3044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3045 ac_install_sh
="${as_dir}shtool install -c"
3048 if $ac_first_candidate; then
3049 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
3055 if test -f "${as_dir}${ac_aux}"; then
3056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3059 if $ac_first_candidate; then
3060 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
3067 if test "$ac_aux_dir_found" = yes; then
3068 ac_aux_dir
="$as_dir"
3071 ac_first_candidate
=false
3080 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3084 # These three variables are undocumented and unsupported,
3085 # and are intended to be withdrawn in a future Autoconf release.
3086 # They can cause serious problems if a builder's source tree is in a directory
3087 # whose full name contains unusual characters.
3088 if test -f "${ac_aux_dir}config.guess"; then
3089 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
3091 if test -f "${ac_aux_dir}config.sub"; then
3092 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
3094 if test -f "$ac_aux_dir/configure"; then
3095 ac_configure
="$SHELL ${ac_aux_dir}configure"
3098 # Check that the precious variables saved in the cache have kept the same
3100 ac_cache_corrupted
=false
3101 for ac_var
in $ac_precious_vars; do
3102 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3103 eval ac_new_set
=\
$ac_env_${ac_var}_set
3104 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3105 eval ac_new_val
=\
$ac_env_${ac_var}_value
3106 case $ac_old_set,$ac_new_set in
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3109 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3110 ac_cache_corrupted
=: ;;
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3113 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3114 ac_cache_corrupted
=: ;;
3117 if test "x$ac_old_val" != "x$ac_new_val"; then
3118 # differences in whitespace do not lead to failure.
3119 ac_old_val_w
=`echo x $ac_old_val`
3120 ac_new_val_w
=`echo x $ac_new_val`
3121 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3123 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3124 ac_cache_corrupted
=:
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3127 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3128 eval $ac_var=\
$ac_old_val
3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3131 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3133 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3136 # Pass precious variables to config.status.
3137 if test "$ac_new_set" = set; then
3139 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3140 *) ac_arg
=$ac_var=$ac_new_val ;;
3142 case " $ac_configure_args " in
3143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3144 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3148 if $ac_cache_corrupted; then
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3152 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3153 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3154 and start over" "$LINENO" 5
3156 ## -------------------- ##
3157 ## Main body of script. ##
3158 ## -------------------- ##
3161 ac_cpp
='$CPP $CPPFLAGS'
3162 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3170 # Determine the host and build type.
3171 # ===========================================================================
3175 # Make sure we can run config.sub.
3176 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
3177 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3180 printf %s
"checking build system type... " >&6; }
3181 if test ${ac_cv_build+y}
3183 printf %s
"(cached) " >&6
3185 ac_build_alias
=$build_alias
3186 test "x$ac_build_alias" = x
&&
3187 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
3188 test "x$ac_build_alias" = x
&&
3189 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3190 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3191 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3195 printf "%s\n" "$ac_cv_build" >&6; }
3196 case $ac_cv_build in
3198 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3201 ac_save_IFS
=$IFS; IFS
='-'
3207 # Remember, the first character of IFS is used to create $*,
3208 # except with old shells:
3211 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3215 printf %s
"checking host system type... " >&6; }
3216 if test ${ac_cv_host+y}
3218 printf %s
"(cached) " >&6
3220 if test "x$host_alias" = x
; then
3221 ac_cv_host
=$ac_cv_build
3223 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3224 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3229 printf "%s\n" "$ac_cv_host" >&6; }
3232 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3235 ac_save_IFS
=$IFS; IFS
='-'
3241 # Remember, the first character of IFS is used to create $*,
3242 # except with old shells:
3245 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3249 ac_config_headers
="$ac_config_headers sdccconf.h:sdccconf_in.h sdas/linksrc/asxxxx_config.h"
3252 for ac_prog
in gawk mawk nawk
awk
3254 # Extract the first word of "$ac_prog", so it can be a program name with args.
3255 set dummy
$ac_prog; ac_word
=$2
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 printf %s
"checking for $ac_word... " >&6; }
3258 if test ${ac_cv_prog_AWK+y}
3260 printf %s
"(cached) " >&6
3262 if test -n "$AWK"; then
3263 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3269 case $as_dir in #(((
3272 *) as_dir
=$as_dir/ ;;
3274 for ac_exec_ext
in '' $ac_executable_extensions; do
3275 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_AWK
="$ac_prog"
3277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3287 if test -n "$AWK"; then
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3289 printf "%s\n" "$AWK" >&6; }
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 printf "%s\n" "no" >&6; }
3296 test -n "$AWK" && break
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of the package" >&5
3301 printf %s
"checking version of the package... " >&6; }
3302 if test -f ${srcdir}/.version
; then
3303 { read VERSION
; } < ${srcdir}/.version
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3305 printf "%s\n" "$VERSION" >&6; }
3306 elif test -f ..
/.version
; then
3307 { read VERSION
; } < ..
/.version
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3309 printf "%s\n" "$VERSION" >&6; }
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown using 0.0.0" >&5
3313 printf "%s\n" "unknown using 0.0.0" >&6; }
3315 VERSIONHI
=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
3316 VERSIONLO
=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
3317 VERSIONP
=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
3326 printf "%s\n" "#define SDCC_VERSION_LO ${VERSIONLO}" >>confdefs.h
3329 printf "%s\n" "#define SDCC_VERSION_HI ${VERSIONHI}" >>confdefs.h
3332 printf "%s\n" "#define SDCC_VERSION_P ${VERSIONP}" >>confdefs.h
3335 printf "%s\n" "#define SDCC_VERSION_STR \"${VERSION}\"" >>confdefs.h
3337 test "$program_prefix" != NONE
&&
3338 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3339 # Use a double $ so make ignores it.
3340 test "$program_suffix" != NONE
&&
3341 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3342 # Double any \ or $.
3343 # By default was `s,x,x', remove it if useless.
3344 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3345 program_transform_name
=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3347 sdcc_cv_version
=$VERSION
3348 sdcc_cv_versionhi
=$VERSIONHI
3349 sdcc_cv_versionlo
=$VERSIONLO
3350 sdcc_cv_versionp
=$VERSIONP
3354 # ===========================================================================
3365 ac_cpp
='$CPP $CPPFLAGS'
3366 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3371 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 printf %s
"checking for $ac_word... " >&6; }
3374 if test ${ac_cv_prog_CC+y}
3376 printf %s
"(cached) " >&6
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC
="$CC" # Let the user override the test.
3381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3385 case $as_dir in #(((
3388 *) as_dir
=$as_dir/ ;;
3390 for ac_exec_ext
in '' $ac_executable_extensions; do
3391 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3403 if test -n "$CC"; then
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 printf "%s\n" "$CC" >&6; }
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 printf "%s\n" "no" >&6; }
3413 if test -z "$ac_cv_prog_CC"; then
3415 # Extract the first word of "gcc", so it can be a program name with args.
3416 set dummy gcc
; ac_word
=$2
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 printf %s
"checking for $ac_word... " >&6; }
3419 if test ${ac_cv_prog_ac_ct_CC+y}
3421 printf %s
"(cached) " >&6
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3430 case $as_dir in #(((
3433 *) as_dir
=$as_dir/ ;;
3435 for ac_exec_ext
in '' $ac_executable_extensions; do
3436 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_ac_ct_CC
="gcc"
3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3447 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 printf "%s\n" "$ac_ct_CC" >&6; }
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 printf "%s\n" "no" >&6; }
3456 if test "x$ac_ct_CC" = x
; then
3459 case $cross_compiling:$ac_tool_warned in
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned
=yes ;;
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 printf %s
"checking for $ac_word... " >&6; }
3477 if test ${ac_cv_prog_CC+y}
3479 printf %s
"(cached) " >&6
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC
="$CC" # Let the user override the test.
3484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3488 case $as_dir in #(((
3491 *) as_dir
=$as_dir/ ;;
3493 for ac_exec_ext
in '' $ac_executable_extensions; do
3494 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3506 if test -n "$CC"; then
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 printf "%s\n" "$CC" >&6; }
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 printf "%s\n" "no" >&6; }
3517 if test -z "$CC"; then
3518 # Extract the first word of "cc", so it can be a program name with args.
3519 set dummy cc
; ac_word
=$2
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 printf %s
"checking for $ac_word... " >&6; }
3522 if test ${ac_cv_prog_CC+y}
3524 printf %s
"(cached) " >&6
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC
="$CC" # Let the user override the test.
3530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3534 case $as_dir in #(((
3537 *) as_dir
=$as_dir/ ;;
3539 for ac_exec_ext
in '' $ac_executable_extensions; do
3540 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3541 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3542 ac_prog_rejected
=yes
3546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3553 if test $ac_prog_rejected = yes; then
3554 # We found a bogon in the path, so make sure we never use it.
3555 set dummy
$ac_cv_prog_CC
3557 if test $# != 0; then
3558 # We chose a different compiler from the bogus one.
3559 # However, it has the same basename, so the bogon will be chosen
3560 # first if we set CC to just the basename; use the full file name.
3562 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3568 if test -n "$CC"; then
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 printf "%s\n" "$CC" >&6; }
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 printf "%s\n" "no" >&6; }
3578 if test -z "$CC"; then
3579 if test -n "$ac_tool_prefix"; then
3580 for ac_prog
in cl.exe
3582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 printf %s
"checking for $ac_word... " >&6; }
3586 if test ${ac_cv_prog_CC+y}
3588 printf %s
"(cached) " >&6
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC
="$CC" # Let the user override the test.
3593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3597 case $as_dir in #(((
3600 *) as_dir
=$as_dir/ ;;
3602 for ac_exec_ext
in '' $ac_executable_extensions; do
3603 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3615 if test -n "$CC"; then
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 printf "%s\n" "$CC" >&6; }
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 printf "%s\n" "no" >&6; }
3624 test -n "$CC" && break
3627 if test -z "$CC"; then
3629 for ac_prog
in cl.exe
3631 # Extract the first word of "$ac_prog", so it can be a program name with args.
3632 set dummy
$ac_prog; ac_word
=$2
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 printf %s
"checking for $ac_word... " >&6; }
3635 if test ${ac_cv_prog_ac_ct_CC+y}
3637 printf %s
"(cached) " >&6
3639 if test -n "$ac_ct_CC"; then
3640 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3646 case $as_dir in #(((
3649 *) as_dir
=$as_dir/ ;;
3651 for ac_exec_ext
in '' $ac_executable_extensions; do
3652 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_ac_ct_CC
="$ac_prog"
3654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3663 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3664 if test -n "$ac_ct_CC"; then
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3666 printf "%s\n" "$ac_ct_CC" >&6; }
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 printf "%s\n" "no" >&6; }
3673 test -n "$ac_ct_CC" && break
3676 if test "x$ac_ct_CC" = x
; then
3679 case $cross_compiling:$ac_tool_warned in
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3683 ac_tool_warned
=yes ;;
3690 if test -z "$CC"; then
3691 if test -n "$ac_tool_prefix"; then
3692 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3693 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 printf %s
"checking for $ac_word... " >&6; }
3696 if test ${ac_cv_prog_CC+y}
3698 printf %s
"(cached) " >&6
3700 if test -n "$CC"; then
3701 ac_cv_prog_CC
="$CC" # Let the user override the test.
3703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3707 case $as_dir in #(((
3710 *) as_dir
=$as_dir/ ;;
3712 for ac_exec_ext
in '' $ac_executable_extensions; do
3713 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3725 if test -n "$CC"; then
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 printf "%s\n" "$CC" >&6; }
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 printf "%s\n" "no" >&6; }
3735 if test -z "$ac_cv_prog_CC"; then
3737 # Extract the first word of "clang", so it can be a program name with args.
3738 set dummy clang
; ac_word
=$2
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 printf %s
"checking for $ac_word... " >&6; }
3741 if test ${ac_cv_prog_ac_ct_CC+y}
3743 printf %s
"(cached) " >&6
3745 if test -n "$ac_ct_CC"; then
3746 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3752 case $as_dir in #(((
3755 *) as_dir
=$as_dir/ ;;
3757 for ac_exec_ext
in '' $ac_executable_extensions; do
3758 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_ac_ct_CC
="clang"
3760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3769 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3770 if test -n "$ac_ct_CC"; then
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772 printf "%s\n" "$ac_ct_CC" >&6; }
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 printf "%s\n" "no" >&6; }
3778 if test "x$ac_ct_CC" = x
; then
3781 case $cross_compiling:$ac_tool_warned in
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned
=yes ;;
3796 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error $?
"no acceptable C compiler found in \$PATH
3799 See \`config.log' for more details" "$LINENO" 5; }
3801 # Provide some information about the compiler.
3802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3805 for ac_option
in --version -v -V -qversion -version; do
3806 { { ac_try
="$ac_compiler $ac_option >&5"
3808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 printf "%s\n" "$ac_try_echo"; } >&5
3813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3815 if test -s conftest.err; then
3817 ... rest of stderr output deleted ...
3818 10q' conftest.err >conftest.er1
3819 cat conftest.er1 >&5
3821 rm -f conftest.er1 conftest.err
3822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3837 ac_clean_files_save=$ac_clean_files
3838 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3839 # Try to create an executable without -o first, disregard a.out.
3840 # It will help us diagnose broken compilers, and finding out an intuition
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3843 printf %s "checking whether the C compiler works... " >&6; }
3844 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3846 # The possible output files:
3847 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3850 for ac_file in $ac_files
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3859 if { { ac_try="$ac_link_default"
3861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3862 *) ac_try_echo
=$ac_try;;
3864 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 printf "%s\n" "$ac_try_echo"; } >&5
3866 (eval "$ac_link_default") 2>&5
3868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }
3871 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3872 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3873 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3874 # so that the user can short-circuit this test for compilers unknown to
3876 for ac_file
in $ac_files ''
3878 test -f "$ac_file" ||
continue
3880 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3883 # We found the default executable, but exeext='' is most
3887 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3889 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891 # We set ac_cv_exeext here because the later test for it is not
3892 # safe: cross compilers may not add the suffix if given an `-o'
3893 # argument, so we may need to know it at that point already.
3894 # Even if this section looks crufty: it has the advantage of
3901 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3906 if test -z "$ac_file"
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 printf "%s\n" "no" >&6; }
3910 printf "%s\n" "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.
$ac_ext >&5
3913 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error
77 "C compiler cannot create executables
3916 See \`config.log' for more details" "$LINENO" 5; }
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3919 printf "%s\n" "yes" >&6; }
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3922 printf %s
"checking for C compiler default output file name... " >&6; }
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3924 printf "%s\n" "$ac_file" >&6; }
3925 ac_exeext
=$ac_cv_exeext
3927 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3928 ac_clean_files
=$ac_clean_files_save
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3930 printf %s
"checking for suffix of executables... " >&6; }
3931 if { { ac_try
="$ac_link"
3933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 printf "%s\n" "$ac_try_echo"; } >&5
3938 (eval "$ac_link") 2>&5
3940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }
3943 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3944 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3945 # work properly (i.e., refer to `conftest.exe'), while it won't with
3947 for ac_file
in conftest.exe conftest conftest.
*; do
3948 test -f "$ac_file" ||
continue
3950 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3951 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3960 See \`config.log' for more details" "$LINENO" 5; }
3962 rm -f conftest conftest
$ac_cv_exeext
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3964 printf "%s\n" "$ac_cv_exeext" >&6; }
3966 rm -f conftest.
$ac_ext
3967 EXEEXT
=$ac_cv_exeext
3969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3975 FILE *f = fopen ("conftest.out", "w");
3976 return ferror (f) || fclose (f) != 0;
3982 ac_clean_files
="$ac_clean_files conftest.out"
3983 # Check that the compiler produces executables we can run. If not, either
3984 # the compiler is broken, or we cross compile.
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986 printf %s
"checking whether we are cross compiling... " >&6; }
3987 if test "$cross_compiling" != yes; then
3988 { { ac_try
="$ac_link"
3990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 printf "%s\n" "$ac_try_echo"; } >&5
3995 (eval "$ac_link") 2>&5
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 if { ac_try='./conftest$ac_cv_exeext'
4000 { { case "(($ac_try" in
4001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4002 *) ac_try_echo
=$ac_try;;
4004 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 printf "%s\n" "$ac_try_echo"; } >&5
4006 (eval "$ac_try") 2>&5
4008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; }; then
4012 if test "$cross_compiling" = maybe
; then
4015 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4017 as_fn_error
77 "cannot run C compiled programs.
4018 If you meant to cross compile, use \`--host'.
4019 See \`config.log' for more details" "$LINENO" 5; }
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4024 printf "%s\n" "$cross_compiling" >&6; }
4026 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4027 ac_clean_files
=$ac_clean_files_save
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4029 printf %s
"checking for suffix of object files... " >&6; }
4030 if test ${ac_cv_objext+y}
4032 printf %s
"(cached) " >&6
4034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4045 rm -f conftest.o conftest.obj
4046 if { { ac_try
="$ac_compile"
4048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 printf "%s\n" "$ac_try_echo"; } >&5
4053 (eval "$ac_compile") 2>&5
4055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }
4058 for ac_file in conftest.o conftest.obj conftest.*; do
4059 test -f "$ac_file" || continue;
4061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4062 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4067 printf "%s\n" "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4073 See \
`config.log' for more details" "$LINENO" 5; }
4075 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4078 printf "%s\n" "$ac_cv_objext" >&6; }
4079 OBJEXT=$ac_cv_objext
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4082 printf %s "checking whether the compiler supports GNU C... " >&6; }
4083 if test ${ac_cv_c_compiler_gnu+y}
4085 printf %s "(cached) " >&6
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"
4107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4112 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115 if test $ac_compiler_gnu = yes; then
4120 ac_test_CFLAGS=${CFLAGS+y}
4121 ac_save_CFLAGS=$CFLAGS
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4123 printf %s "checking whether $CC accepts -g... " >&6; }
4124 if test ${ac_cv_prog_cc_g+y}
4126 printf %s "(cached) " >&6
4128 ac_save_c_werror_flag=$ac_c_werror_flag
4129 ac_c_werror_flag=yes
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4143 if ac_fn_c_try_compile "$LINENO"
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4159 if ac_fn_c_try_compile "$LINENO"
4163 ac_c_werror_flag=$ac_save_c_werror_flag
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4176 if ac_fn_c_try_compile "$LINENO"
4180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4185 ac_c_werror_flag=$ac_save_c_werror_flag
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4188 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4189 if test $ac_test_CFLAGS; then
4190 CFLAGS=$ac_save_CFLAGS
4191 elif test $ac_cv_prog_cc_g = yes; then
4192 if test "$GCC" = yes; then
4198 if test "$GCC" = yes; then
4205 if test x$ac_prog_cc_stdc = xno
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4208 printf %s "checking for $CC option to enable C11 features... " >&6; }
4209 if test ${ac_cv_prog_cc_c11+y}
4211 printf %s "(cached) " >&6
4213 ac_cv_prog_cc_c11=no
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 $ac_c_conftest_c11_program
4219 for ac_arg in '' -std=gnu11
4221 CC="$ac_save_CC $ac_arg"
4222 if ac_fn_c_try_compile "$LINENO"
4224 ac_cv_prog_cc_c11=$ac_arg
4226 rm -f core conftest.err conftest.$ac_objext conftest.beam
4227 test "x$ac_cv_prog_cc_c11" != "xno" && break
4229 rm -f conftest.$ac_ext
4233 if test "x$ac_cv_prog_cc_c11" = xno
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 printf "%s\n" "unsupported" >&6; }
4238 if test "x$ac_cv_prog_cc_c11" = x
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 printf "%s\n" "none needed" >&6; }
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4244 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4245 CC="$CC $ac_cv_prog_cc_c11"
4247 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4251 if test x$ac_prog_cc_stdc = xno
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4254 printf %s "checking for $CC option to enable C99 features... " >&6; }
4255 if test ${ac_cv_prog_cc_c99+y}
4257 printf %s "(cached) " >&6
4259 ac_cv_prog_cc_c99=no
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 $ac_c_conftest_c99_program
4265 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4267 CC="$ac_save_CC $ac_arg"
4268 if ac_fn_c_try_compile "$LINENO"
4270 ac_cv_prog_cc_c99=$ac_arg
4272 rm -f core conftest.err conftest.$ac_objext conftest.beam
4273 test "x$ac_cv_prog_cc_c99" != "xno" && break
4275 rm -f conftest.$ac_ext
4279 if test "x$ac_cv_prog_cc_c99" = xno
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282 printf "%s\n" "unsupported" >&6; }
4284 if test "x$ac_cv_prog_cc_c99" = x
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4287 printf "%s\n" "none needed" >&6; }
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4290 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4291 CC="$CC $ac_cv_prog_cc_c99"
4293 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4297 if test x$ac_prog_cc_stdc = xno
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4300 printf %s "checking for $CC option to enable C89 features... " >&6; }
4301 if test ${ac_cv_prog_cc_c89+y}
4303 printf %s "(cached) " >&6
4305 ac_cv_prog_cc_c89=no
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 $ac_c_conftest_c89_program
4311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4313 CC="$ac_save_CC $ac_arg"
4314 if ac_fn_c_try_compile "$LINENO"
4316 ac_cv_prog_cc_c89=$ac_arg
4318 rm -f core conftest.err conftest.$ac_objext conftest.beam
4319 test "x$ac_cv_prog_cc_c89" != "xno" && break
4321 rm -f conftest.$ac_ext
4325 if test "x$ac_cv_prog_cc_c89" = xno
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328 printf "%s\n" "unsupported" >&6; }
4330 if test "x$ac_cv_prog_cc_c89" = x
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4333 printf "%s\n" "none needed" >&6; }
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4336 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4337 CC="$CC $ac_cv_prog_cc_c89"
4339 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4356 printf %s "checking how to run the C preprocessor... " >&6; }
4357 # On Suns, sometimes $CPP names a directory.
4358 if test -n "$CPP" && test -d "$CPP"; then
4361 if test -z "$CPP"; then
4362 if test ${ac_cv_prog_CPP+y}
4364 printf %s "(cached) " >&6
4366 # Double quotes because $CC needs to be expanded
4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4370 for ac_c_preproc_warn_flag in '' yes
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # On the NeXT, cc -E runs the code through the compiler's parser,
4375 # not just through cpp. "Syntax error" is here to catch this case.
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4381 if ac_fn_c_try_cpp "$LINENO"
4385 # Broken: fails on valid input.
4388 rm -f conftest.err conftest.i conftest.$ac_ext
4390 # OK, works on sane cases. Now check whether nonexistent headers
4391 # can be detected and how.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <ac_nonexistent.h>
4396 if ac_fn_c_try_cpp "$LINENO"
4398 # Broken: success on invalid input.
4401 # Passes both tests.
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409 rm -f conftest.i conftest.err conftest.
$ac_ext
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4424 printf "%s\n" "$CPP" >&6; }
4426 for ac_c_preproc_warn_flag
in '' yes
4428 # Use a header file that comes with gcc, so configuring glibc
4429 # with a fresh cross-compiler works.
4430 # On the NeXT, cc -E runs the code through the compiler's parser,
4431 # not just through cpp. "Syntax error" is here to catch this case.
4432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4437 if ac_fn_c_try_cpp
"$LINENO"
4441 # Broken: fails on valid input.
4444 rm -f conftest.err conftest.i conftest.
$ac_ext
4446 # OK, works on sane cases. Now check whether nonexistent headers
4447 # can be detected and how.
4448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <ac_nonexistent.h>
4452 if ac_fn_c_try_cpp
"$LINENO"
4454 # Broken: success on invalid input.
4457 # Passes both tests.
4461 rm -f conftest.err conftest.i conftest.
$ac_ext
4464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4465 rm -f conftest.i conftest.err conftest.
$ac_ext
4470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4471 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4472 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4473 See \`config.log' for more details" "$LINENO" 5; }
4477 ac_cpp
='$CPP $CPPFLAGS'
4478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4489 ac_cpp
='$CXXCPP $CPPFLAGS'
4490 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4493 if test -z "$CXX"; then
4494 if test -n "$CCC"; then
4497 if test -n "$ac_tool_prefix"; then
4498 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
4500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 printf %s
"checking for $ac_word... " >&6; }
4504 if test ${ac_cv_prog_CXX+y}
4506 printf %s
"(cached) " >&6
4508 if test -n "$CXX"; then
4509 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4515 case $as_dir in #(((
4518 *) as_dir
=$as_dir/ ;;
4520 for ac_exec_ext
in '' $ac_executable_extensions; do
4521 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4533 if test -n "$CXX"; then
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4535 printf "%s\n" "$CXX" >&6; }
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 printf "%s\n" "no" >&6; }
4542 test -n "$CXX" && break
4545 if test -z "$CXX"; then
4547 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
4549 # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy
$ac_prog; ac_word
=$2
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 printf %s
"checking for $ac_word... " >&6; }
4553 if test ${ac_cv_prog_ac_ct_CXX+y}
4555 printf %s
"(cached) " >&6
4557 if test -n "$ac_ct_CXX"; then
4558 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4564 case $as_dir in #(((
4567 *) as_dir
=$as_dir/ ;;
4569 for ac_exec_ext
in '' $ac_executable_extensions; do
4570 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4581 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4582 if test -n "$ac_ct_CXX"; then
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4584 printf "%s\n" "$ac_ct_CXX" >&6; }
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 printf "%s\n" "no" >&6; }
4591 test -n "$ac_ct_CXX" && break
4594 if test "x$ac_ct_CXX" = x
; then
4597 case $cross_compiling:$ac_tool_warned in
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601 ac_tool_warned
=yes ;;
4609 # Provide some information about the compiler.
4610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4613 for ac_option
in --version -v -V -qversion; do
4614 { { ac_try
="$ac_compiler $ac_option >&5"
4616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 printf "%s\n" "$ac_try_echo"; } >&5
4621 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4623 if test -s conftest.err; then
4625 ... rest of stderr output deleted ...
4626 10q' conftest.err >conftest.er1
4627 cat conftest.er1 >&5
4629 rm -f conftest.er1 conftest.err
4630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631 test $ac_status = 0; }
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4635 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4636 if test ${ac_cv_cxx_compiler_gnu+y}
4638 printf %s "(cached) " >&6
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4654 if ac_fn_cxx_try_compile "$LINENO"
4660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4661 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4665 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4668 if test $ac_compiler_gnu = yes; then
4673 ac_test_CXXFLAGS=${CXXFLAGS+y}
4674 ac_save_CXXFLAGS=$CXXFLAGS
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4676 printf %s "checking whether $CXX accepts -g... " >&6; }
4677 if test ${ac_cv_prog_cxx_g+y}
4679 printf %s "(cached) " >&6
4681 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4682 ac_cxx_werror_flag=yes
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4696 if ac_fn_cxx_try_compile "$LINENO"
4698 ac_cv_prog_cxx_g=yes
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4712 if ac_fn_cxx_try_compile "$LINENO"
4716 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4729 if ac_fn_cxx_try_compile "$LINENO"
4731 ac_cv_prog_cxx_g=yes
4733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4741 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4742 if test $ac_test_CXXFLAGS; then
4743 CXXFLAGS=$ac_save_CXXFLAGS
4744 elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4751 if test "$GXX" = yes; then
4757 ac_prog_cxx_stdcxx=no
4758 if test x$ac_prog_cxx_stdcxx = xno
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4761 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4762 if test ${ac_cv_prog_cxx_cxx11+y}
4764 printf %s "(cached) " >&6
4766 ac_cv_prog_cxx_cxx11=no
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 $ac_cxx_conftest_cxx11_program
4772 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4774 CXX="$ac_save_CXX $ac_arg"
4775 if ac_fn_cxx_try_compile "$LINENO"
4777 ac_cv_prog_cxx_cxx11=$ac_arg
4779 rm -f core conftest.err conftest.$ac_objext conftest.beam
4780 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4782 rm -f conftest.$ac_ext
4786 if test "x$ac_cv_prog_cxx_cxx11" = xno
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4789 printf "%s\n" "unsupported" >&6; }
4791 if test "x$ac_cv_prog_cxx_cxx11" = x
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4794 printf "%s\n" "none needed" >&6; }
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4797 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4798 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4800 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4801 ac_prog_cxx_stdcxx=cxx11
4804 if test x$ac_prog_cxx_stdcxx = xno
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4807 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4808 if test ${ac_cv_prog_cxx_cxx98+y}
4810 printf %s "(cached) " >&6
4812 ac_cv_prog_cxx_cxx98=no
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 $ac_cxx_conftest_cxx98_program
4818 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4820 CXX="$ac_save_CXX $ac_arg"
4821 if ac_fn_cxx_try_compile "$LINENO"
4823 ac_cv_prog_cxx_cxx98=$ac_arg
4825 rm -f core conftest.err conftest.$ac_objext conftest.beam
4826 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4828 rm -f conftest.$ac_ext
4832 if test "x$ac_cv_prog_cxx_cxx98" = xno
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4835 printf "%s\n" "unsupported" >&6; }
4837 if test "x$ac_cv_prog_cxx_cxx98" = x
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4840 printf "%s\n" "none needed" >&6; }
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4843 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4844 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4846 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4847 ac_prog_cxx_stdcxx=cxx98
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858 # Find a good install program. We prefer a C program (faster),
4859 # so one script is as good as another. But avoid the broken or
4860 # incompatible versions:
4861 # SysV /etc/install, /usr/sbin/install
4862 # SunOS /usr/etc/install
4863 # IRIX /sbin/install
4865 # AmigaOS /C/install, which installs bootblocks on floppy discs
4866 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4867 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4868 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4869 # OS/2's system install, which has a completely different semantic
4870 # ./install, which can be erroneously created by make from ./install.sh.
4871 # Reject install programs that cannot install multiple files.
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4873 printf %s "checking for a BSD-compatible install... " >&6; }
4874 if test -z "$INSTALL"; then
4875 if test ${ac_cv_path_install+y}
4877 printf %s "(cached) " >&6
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 case $as_dir in #(((
4886 *) as_dir=$as_dir/ ;;
4888 # Account for fact that we put trailing slashes in our PATH walk.
4891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4892 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4895 # OSF1 and SCO ODT 3.0 have their own names for install.
4896 # Don't use installbsd from OSF since it installs stuff as root
4898 for ac_prog in ginstall scoinst install; do
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4901 if test $ac_prog = install &&
4902 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4903 # AIX install. It has an incompatible calling convention.
4905 elif test $ac_prog = install &&
4906 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4907 # program-specific install script used by HP pwplus--don't use.
4910 rm -rf conftest.one conftest.two conftest.dir
4911 echo one > conftest.one
4912 echo two > conftest.two
4914 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4915 test -s conftest.one && test -s conftest.two &&
4916 test -s conftest.dir/conftest.one &&
4917 test -s conftest.dir/conftest.two
4919 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4932 rm -rf conftest.one conftest.two conftest.dir
4935 if test ${ac_cv_path_install+y}; then
4936 INSTALL=$ac_cv_path_install
4938 # As a last resort, use the slow shell script. Don't cache a
4939 # value for INSTALL within a source directory, because that will
4940 # break other packages using the cache if that directory is
4941 # removed, or if the value is a relative name.
4942 INSTALL=$ac_install_sh
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4946 printf "%s\n" "$INSTALL" >&6; }
4948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4949 # It thinks the first close brace ends the variable substitution.
4950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4956 if test -n "$ac_tool_prefix"; then
4957 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4958 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 printf %s "checking for $ac_word... " >&6; }
4961 if test ${ac_cv_prog_RANLIB+y}
4963 printf %s "(cached) " >&6
4965 if test -n "$RANLIB"; then
4966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 case $as_dir in #(((
4975 *) as_dir=$as_dir/ ;;
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4989 RANLIB=$ac_cv_prog_RANLIB
4990 if test -n "$RANLIB"; then
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4992 printf "%s\n" "$RANLIB" >&6; }
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 printf "%s\n" "no" >&6; }
5000 if test -z "$ac_cv_prog_RANLIB"; then
5001 ac_ct_RANLIB=$RANLIB
5002 # Extract the first word of "ranlib", so it can be a program name with args.
5003 set dummy ranlib; ac_word=$2
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 printf %s "checking for $ac_word... " >&6; }
5006 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5008 printf %s "(cached) " >&6
5010 if test -n "$ac_ct_RANLIB"; then
5011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 case $as_dir in #(((
5020 *) as_dir=$as_dir/ ;;
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_ac_ct_RANLIB="ranlib"
5025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5035 if test -n "$ac_ct_RANLIB"; then
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5037 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 printf "%s\n" "no" >&6; }
5043 if test "x$ac_ct_RANLIB" = x; then
5046 case $cross_compiling:$ac_tool_warned in
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5049 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5050 ac_tool_warned=yes ;;
5052 RANLIB=$ac_ct_RANLIB
5055 RANLIB="$ac_cv_prog_RANLIB"
5058 # Extract the first word of "autoconf", so it can be a program name with args.
5059 set dummy autoconf; ac_word=$2
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 printf %s "checking for $ac_word... " >&6; }
5062 if test ${ac_cv_prog_AUTOCONF+y}
5064 printf %s "(cached) " >&6
5066 if test -n "$AUTOCONF"; then
5067 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 case $as_dir in #(((
5076 *) as_dir=$as_dir/ ;;
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_AUTOCONF="autoconf"
5081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5088 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
5091 AUTOCONF=$ac_cv_prog_AUTOCONF
5092 if test -n "$AUTOCONF"; then
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5094 printf "%s\n" "$AUTOCONF" >&6; }
5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 printf "%s\n" "no" >&6; }
5101 # Extract the first word of "strip", so it can be a program name with args.
5102 set dummy strip; ac_word=$2
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 printf %s "checking for $ac_word... " >&6; }
5105 if test ${ac_cv_prog_STRIP+y}
5107 printf %s "(cached) " >&6
5109 if test -n "$STRIP"; then
5110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 case $as_dir in #(((
5119 *) as_dir=$as_dir/ ;;
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_STRIP="strip"
5124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5131 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5134 STRIP=$ac_cv_prog_STRIP
5135 if test -n "$STRIP"; then
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5137 printf "%s\n" "$STRIP" >&6; }
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 printf "%s\n" "no" >&6; }
5144 # Extract the first word of "as", so it can be a program name with args.
5145 set dummy as; ac_word=$2
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 printf %s "checking for $ac_word... " >&6; }
5148 if test ${ac_cv_prog_AS+y}
5150 printf %s "(cached) " >&6
5152 if test -n "$AS"; then
5153 ac_cv_prog_AS="$AS" # Let the user override the test.
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 case $as_dir in #(((
5162 *) as_dir=$as_dir/ ;;
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5174 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
5178 if test -n "$AS"; then
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5180 printf "%s\n" "$AS" >&6; }
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 printf "%s\n" "no" >&6; }
5187 # Extract the first word of "cp", so it can be a program name with args.
5188 set dummy cp; ac_word=$2
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 printf %s "checking for $ac_word... " >&6; }
5191 if test ${ac_cv_prog_CP+y}
5193 printf %s "(cached) " >&6
5195 if test -n "$CP"; then
5196 ac_cv_prog_CP="$CP" # Let the user override the test.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 case $as_dir in #(((
5205 *) as_dir=$as_dir/ ;;
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5217 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
5221 if test -n "$CP"; then
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5223 printf "%s\n" "$CP" >&6; }
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 printf "%s\n" "no" >&6; }
5230 # Extract the first word of "ar", so it can be a program name with args.
5231 set dummy ar; ac_word=$2
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 printf %s "checking for $ac_word... " >&6; }
5234 if test ${ac_cv_prog_AR+y}
5236 printf %s "(cached) " >&6
5238 if test -n "$AR"; then
5239 ac_cv_prog_AR="$AR" # Let the user override the test.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 case $as_dir in #(((
5248 *) as_dir=$as_dir/ ;;
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5260 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
5264 if test -n "$AR"; then
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5266 printf "%s\n" "$AR" >&6; }
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 printf "%s\n" "no" >&6; }
5273 # Extract the first word of "gm4", so it can be a program name with args.
5274 set dummy gm4; ac_word=$2
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 printf %s "checking for $ac_word... " >&6; }
5277 if test ${ac_cv_prog_M4+y}
5279 printf %s "(cached) " >&6
5281 if test -n "$M4"; then
5282 ac_cv_prog_M4="$M4" # Let the user override the test.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 case $as_dir in #(((
5291 *) as_dir=$as_dir/ ;;
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5303 test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="m4"
5307 if test -n "$M4"; then
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
5309 printf "%s\n" "$M4" >&6; }
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 printf "%s\n" "no" >&6; }
5317 for ac_prog in flex lex
5319 # Extract the first word of "$ac_prog", so it can be a program name with args.
5320 set dummy $ac_prog; ac_word=$2
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 printf %s "checking for $ac_word... " >&6; }
5323 if test ${ac_cv_prog_LEX+y}
5325 printf %s "(cached) " >&6
5327 if test -n "$LEX"; then
5328 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 case $as_dir in #(((
5337 *) as_dir=$as_dir/ ;;
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_LEX="$ac_prog"
5342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5352 if test -n "$LEX"; then
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5354 printf "%s\n" "$LEX" >&6; }
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 printf "%s\n" "no" >&6; }
5361 test -n "$LEX" && break
5363 test -n "$LEX" || LEX=":"
5366 for ac_prog in 'bison -y' byacc yacc
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 printf %s "checking for $ac_word... " >&6; }
5372 if test ${ac_cv_prog_YACC+y}
5374 printf %s "(cached) " >&6
5376 if test -n "$YACC"; then
5377 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 case $as_dir in #(((
5386 *) as_dir=$as_dir/ ;;
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5390 ac_cv_prog_YACC="$ac_prog"
5391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5400 YACC=$ac_cv_prog_YACC
5401 if test -n "$YACC"; then
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5403 printf "%s\n" "$YACC" >&6; }
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 printf "%s\n" "no" >&6; }
5410 test -n "$YACC" && break
5412 test -n "$YACC" || YACC=":"
5415 # 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.
5422 if test -n "$PYTHON"; then
5423 # If the user set $PYTHON, use it and don't search something else.
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
5425 printf %s "checking whether $PYTHON version is >= 2.7... " >&6; }
5427 # split strings by '.' and convert to numeric. Append some zeros
5428 # because we need at least 4 digits for the hex conversion.
5429 # map returns an iterator in Python 3.0 and a list in 2.x
5430 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5432 # xrange is not present in Python 3.0 and range returns an iterator
5433 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5434 sys.exit(sys.hexversion < minverhex)"
5435 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5436 ($PYTHON -c "$prog") >&5 2>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442 printf "%s\n" "yes" >&6; }
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 printf "%s\n" "no" >&6; }
5446 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5448 am_display_PYTHON=$PYTHON
5450 # Otherwise, try each interpreter until we find one that satisfies
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
5453 printf %s "checking for a Python interpreter with version >= 2.7... " >&6; }
5454 if test ${am_cv_pathless_PYTHON+y}
5456 printf %s "(cached) " >&6
5459 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
5460 test "$am_cv_pathless_PYTHON" = none && break
5462 # split strings by '.' and convert to numeric. Append some zeros
5463 # because we need at least 4 digits for the hex conversion.
5464 # map returns an iterator in Python 3.0 and a list in 2.x
5465 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5467 # xrange is not present in Python 3.0 and range returns an iterator
5468 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5469 sys.exit(sys.hexversion < minverhex)"
5470 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5471 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5481 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5482 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5483 if test "$am_cv_pathless_PYTHON" = none; then
5486 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5487 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 printf %s "checking for $ac_word... " >&6; }
5490 if test ${ac_cv_path_PYTHON+y}
5492 printf %s "(cached) " >&6
5496 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 case $as_dir in #(((
5506 *) as_dir=$as_dir/ ;;
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5510 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5521 PYTHON=$ac_cv_path_PYTHON
5522 if test -n "$PYTHON"; then
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5524 printf "%s\n" "$PYTHON" >&6; }
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 printf "%s\n" "no" >&6; }
5532 am_display_PYTHON=$am_cv_pathless_PYTHON
5536 if test "$PYTHON" = :; then
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5541 printf %s "checking for $am_display_PYTHON version... " >&6; }
5542 if test ${am_cv_python_version+y}
5544 printf %s "(cached) " >&6
5546 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5549 printf "%s\n" "$am_cv_python_version" >&6; }
5550 PYTHON_VERSION=$am_cv_python_version
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5554 printf %s "checking for $am_display_PYTHON platform... " >&6; }
5555 if test ${am_cv_python_platform+y}
5557 printf %s "(cached) " >&6
5559 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5562 printf "%s\n" "$am_cv_python_platform" >&6; }
5563 PYTHON_PLATFORM=$am_cv_python_platform
5566 if test "x$prefix" = xNONE; then
5567 am__usable_prefix=$ac_default_prefix
5569 am__usable_prefix=$prefix
5572 # Allow user to request using sys.* values from Python,
5573 # instead of the GNU $prefix values.
5575 # Check whether --with-python-sys-prefix was given.
5576 if test ${with_python_sys_prefix+y}
5578 withval=$with_python_sys_prefix; am_use_python_sys=:
5580 am_use_python_sys=false
5584 # Allow user to override whatever the default Python prefix is.
5586 # Check whether --with-python_prefix was given.
5587 if test ${with_python_prefix+y}
5589 withval=$with_python_prefix; am_python_prefix_subst=$withval
5590 am_cv_python_prefix=$withval
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
5592 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5594 printf "%s\n" "$am_cv_python_prefix" >&6; }
5597 if $am_use_python_sys; then
5598 # using python sys.prefix value, not GNU
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
5600 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
5601 if test ${am_cv_python_prefix+y}
5603 printf %s "(cached) " >&6
5605 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5608 printf "%s\n" "$am_cv_python_prefix" >&6; }
5610 case $am_cv_python_prefix in
5611 $am__usable_prefix*)
5612 am__strip_prefix=`echo "$am__usable_prefix" |
sed 's|.|.|g'`
5613 am_python_prefix_subst=`echo "$am_cv_python_prefix" |
sed "s,^$am__strip_prefix,\\${prefix},"`
5616 am_python_prefix_subst=$am_cv_python_prefix
5619 else # using GNU prefix value, not python sys.prefix
5620 am_python_prefix_subst='${prefix}'
5621 am_python_prefix=$am_python_prefix_subst
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
5623 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
5625 printf "%s\n" "$am_python_prefix" >&6; }
5629 # Substituting python_prefix_subst value.
5630 PYTHON_PREFIX=$am_python_prefix_subst
5633 # emacs-page Now do it all over again for Python exec_prefix, but with yet
5634 # another conditional: fall back to regular prefix if that was specified.
5636 # Check whether --with-python_exec_prefix was given.
5637 if test ${with_python_exec_prefix+y}
5639 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
5640 am_cv_python_exec_prefix=$withval
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
5642 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5644 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5647 # no explicit --with-python_exec_prefix, but if
5648 # --with-python_prefix was given, use its value for python_exec_prefix too.
5649 if test -n "$with_python_prefix"
5651 am_python_exec_prefix_subst=$with_python_prefix
5652 am_cv_python_exec_prefix=$with_python_prefix
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
5654 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5656 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5659 # Set am__usable_exec_prefix whether using GNU or Python values,
5660 # since we use that variable for pyexecdir.
5661 if test "x$exec_prefix" = xNONE; then
5662 am__usable_exec_prefix=$am__usable_prefix
5664 am__usable_exec_prefix=$exec_prefix
5667 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
5669 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
5670 if test ${am_cv_python_exec_prefix+y}
5672 printf %s "(cached) " >&6
5674 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5677 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5678 case $am_cv_python_exec_prefix in
5679 $am__usable_exec_prefix*)
5680 am__strip_prefix=`echo "$am__usable_exec_prefix" |
sed 's|.|.|g'`
5681 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" |
sed "s,^$am__strip_prefix,\\${exec_prefix},"`
5684 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
5687 else # using GNU $exec_prefix, not python sys.exec_prefix
5688 am_python_exec_prefix_subst='${exec_prefix}'
5689 am_python_exec_prefix=$am_python_exec_prefix_subst
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
5691 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
5693 printf "%s\n" "$am_python_exec_prefix" >&6; }
5698 # Substituting python_exec_prefix_subst.
5699 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
5702 # Factor out some code duplication into this shell variable.
5703 am_python_setup_sysconfig="\
5705 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5706 # with python 3.x. See automake bug#10227.
5710 can_use_sysconfig = 0
5712 can_use_sysconfig = 1
5713 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5714 # <https://github.com/pypa/virtualenv/issues/118>
5716 from platform import python_implementation
5717 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5718 can_use_sysconfig = 0
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
5724 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
5725 if test ${am_cv_python_pythondir+y}
5727 printf %s "(cached) " >&6
5729 if test "x$am_cv_python_prefix" = x; then
5730 am_py_prefix=$am__usable_prefix
5732 am_py_prefix=$am_cv_python_prefix
5734 am_cv_python_pythondir=`$PYTHON -c "
5735 $am_python_setup_sysconfig
5736 if can_use_sysconfig:
5737 if hasattr(sysconfig, 'get_default_scheme'):
5738 scheme = sysconfig.get_default_scheme()
5740 scheme = sysconfig._get_default_scheme()
5741 if scheme == 'posix_local':
5742 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
5743 scheme = 'posix_prefix'
5744 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
5746 from distutils import sysconfig
5747 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5748 sys.stdout.write(sitedir)"`
5750 case $am_cv_python_pythondir in
5752 am__strip_prefix=`echo "$am_py_prefix" |
sed 's|.|.|g'`
5753 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" |
sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
5756 case $am_py_prefix in
5758 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5766 printf "%s\n" "$am_cv_python_pythondir" >&6; }
5767 pythondir=$am_cv_python_pythondir
5770 pkgpythondir=\${pythondir}/$PACKAGE
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
5774 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
5775 if test ${am_cv_python_pyexecdir+y}
5777 printf %s "(cached) " >&6
5779 if test "x$am_cv_python_exec_prefix" = x; then
5780 am_py_exec_prefix=$am__usable_exec_prefix
5782 am_py_exec_prefix=$am_cv_python_exec_prefix
5784 am_cv_python_pyexecdir=`$PYTHON -c "
5785 $am_python_setup_sysconfig
5786 if can_use_sysconfig:
5787 if hasattr(sysconfig, 'get_default_scheme'):
5788 scheme = sysconfig.get_default_scheme()
5790 scheme = sysconfig._get_default_scheme()
5791 if scheme == 'posix_local':
5792 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
5793 scheme = 'posix_prefix'
5794 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
5796 from distutils import sysconfig
5797 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
5798 sys.stdout.write(sitedir)"`
5800 case $am_cv_python_pyexecdir in
5801 $am_py_exec_prefix*)
5802 am__strip_prefix=`echo "$am_py_exec_prefix" |
sed 's|.|.|g'`
5803 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" |
sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
5806 case $am_py_exec_prefix in
5808 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5816 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
5817 pyexecdir=$am_cv_python_pyexecdir
5820 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5829 if test "$YACC" = ":"; then
5830 as_fn_error $? "Cannot find required program bison." "$LINENO" 5
5833 if test "$LEX" = ":"; then
5834 as_fn_error $? "Cannot find required program flex." "$LINENO" 5
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846 ac_header= ac_cache=
5847 for ac_item in $ac_header_c_list
5849 if test $ac_cache; then
5850 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5851 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5852 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5854 ac_header= ac_cache=
5855 elif test $ac_header; then
5869 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5872 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5875 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
5876 if test "x$ac_cv_header_endian_h" = xyes
5878 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
5881 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
5882 if test "x$ac_cv_header_sys_endian_h" = xyes
5884 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
5887 ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
5888 if test "x$ac_cv_header_machine_endian_h" = xyes
5890 printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
5893 ac_fn_c_check_header_compile "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default"
5894 if test "x$ac_cv_header_sys_isa_defs_h" = xyes
5896 printf "%s\n" "#define HAVE_SYS_ISA_DEFS_H 1" >>confdefs.h
5900 ac_fn_c_check_header_compile "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
5901 if test "x$ac_cv_header_uchar_h" = xyes
5903 printf "%s\n" "#define HAVE_UCHAR_H 1" >>confdefs.h
5907 # zlib is not needed by sdcc itself, but by sdcpp and sdbinutils.
5908 for ac_header in zlib.h
5910 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5911 if test "x$ac_cv_header_zlib_h" = xyes
5913 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
5916 as_fn_error $? "zlib library not found (zlib.h)." "$LINENO" 5
5921 ac_cpp='$CXXCPP $CPPFLAGS'
5922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5927 for ac_header in treedec/combinations.hpp
5929 ac_fn_cxx_check_header_compile "$LINENO" "treedec/combinations.hpp" "ac_cv_header_treedec_combinations_hpp" "$ac_includes_default"
5930 if test "x$ac_cv_header_treedec_combinations_hpp" = xyes
5932 printf "%s\n" "#define HAVE_TREEDEC_COMBINATIONS_HPP 1" >>confdefs.h
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: treedec library missing, falling back to Thorup." >&5
5936 printf "%s\n" "$as_me: treedec library missing, falling back to Thorup." >&6;}
5940 ac_fn_cxx_check_header_compile "$LINENO" "gala/graph.h" "ac_cv_header_gala_graph_h" "$ac_includes_default"
5941 if test "x$ac_cv_header_gala_graph_h" = xyes
5943 printf "%s\n" "#define HAVE_GALA_GRAPH_H 1" >>confdefs.h
5947 for ac_header in boost/graph/adjacency_list.hpp
5949 ac_fn_cxx_check_header_compile "$LINENO" "boost/graph/adjacency_list.hpp" "ac_cv_header_boost_graph_adjacency_list_hpp" "$ac_includes_default"
5950 if test "x$ac_cv_header_boost_graph_adjacency_list_hpp" = xyes
5952 printf "%s\n" "#define HAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP 1" >>confdefs.h
5955 as_fn_error $? "boost library not found (boost/graph/adjacency_list.hpp)." "$LINENO" 5
5960 ac_cpp='$CPP $CPPFLAGS'
5961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5967 # Check whether --with-ccache was given.
5968 if test ${with_ccache+y}
5970 withval=$with_ccache;
5973 case x${with_ccache-yes} in
5974 xyes) # Extract the first word of "ccache", so it can be a program name with args.
5975 set dummy ccache; ac_word=$2
5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 printf %s "checking for $ac_word... " >&6; }
5978 if test ${ac_cv_prog_CCACHE+y}
5980 printf %s "(cached) " >&6
5982 if test -n "$CCACHE"; then
5983 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 case $as_dir in #(((
5992 *) as_dir=$as_dir/ ;;
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5996 ac_cv_prog_CCACHE="ccache"
5997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6006 CCACHE=$ac_cv_prog_CCACHE
6007 if test -n "$CCACHE"; then
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6009 printf "%s\n" "$CCACHE" >&6; }
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 printf "%s\n" "no" >&6; }
6017 *) CCACHE=$with_ccache
6022 # Checking for functions
6023 # ===========================================================================
6024 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
6025 if test "x$ac_cv_func_mkstemp" = xyes
6027 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
6030 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
6031 if test "x$ac_cv_func_strndup" = xyes
6033 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
6036 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
6037 if test "x$ac_cv_func_setrlimit" = xyes
6039 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
6042 ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
6043 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes
6045 printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS_FD 1" >>confdefs.h
6052 # ===========================================================================
6054 # _sdcc_EXECUTE_IFELSE_BODY(COMMAND)
6055 # -----------------------
6056 # Shell function body for _AC_EXECUTE_IFELSE.
6057 # _sdcc_EXECUTE_IFELSE_BODY
6059 # sdcc_EXECUTE_IFELSE(COMMAND[ACTION-IF-TRUE], [ACTION-IF-FALSE])
6060 # ----------------------------------------------------------------
6061 # Try to execute COMMAND.
6062 # sdcc_EXECUTE_IFELSE
6064 # Check whether the compiler for the current language is SunPRO.
6068 # sdcc_IS_VALID_OPTION macro checks if the current compiler, selected by
6069 # AC_LANG, supports option specified as the 1st parameter. The test fails if
6070 # the compiler returns an error or in case something is writeen to stderr.
6071 # For example: sdcc_VALID_OPT(-fPIC)
6075 # This macro expands DIR and assigns it to RET.
6076 # If DIR is NONE, then it's replaced by DEFAULT.
6078 # Based on AC_DEFINE_DIR
6082 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
6086 # adl_NORMALIZE_PATH
6088 # - empty paths are changed to '.'
6089 # - trailing slashes are removed
6090 # - repeated slashes are squeezed except a leading doubled slash '//'
6091 # (which might indicate a networked disk on some OS).
6094 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
6095 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
6096 # are turned into backslashes, otherwise they are all turned into slashes.
6098 # This makes processing of DOS filenames quite easier, because you can turn a
6099 # filename to the Unix notation, make your processing, and turn it back to
6100 # original notation.
6105 # adl_COMPUTE_RELATIVE_PATH
6107 # PATH_LIST is a space-separated list of colon-separated triplets of the form
6108 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
6109 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
6110 # absolute filenames for this macro to success.
6116 ## The following helper macros are too fragile to be used out
6117 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
6118 ## paths are normalized), that's why I'm keeping them in the same file.
6119 ## Still, some of them maybe worth to reuse.
6136 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6138 ac_cpp='$CXXCPP $CPPFLAGS'
6139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6145 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
6146 if test ${ax_cv_cxx_compile_cxx11+y}
6148 printf %s "(cached) " >&6
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6154 // If the compiler admits that it is not ready for C++11, why torture it?
6155 // Hopefully, this will speed up the test.
6159 #error "This is not a C++ compiler"
6161 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6162 // only set it correctly if /Zc:__cplusplus is specified as well as a
6163 // /std:c++NN switch:
6164 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6165 #elif __cplusplus < 201103L && !defined _MSC_VER
6167 #error "This is not a C++11 compiler"
6174 namespace test_static_assert
6177 template <typename T>
6180 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6185 namespace test_final_override
6194 struct Derived : public Base
6196 virtual ~Derived() override {}
6197 virtual void f() override {}
6202 namespace test_double_right_angle_brackets
6205 template < typename T >
6208 typedef check<void> single_type;
6209 typedef check<check<void>> double_type;
6210 typedef check<check<check<void>>> triple_type;
6211 typedef check<check<check<check<void>>>> quadruple_type;
6215 namespace test_decltype
6228 namespace test_type_deduction
6231 template < typename T1, typename T2 >
6234 static const bool value = false;
6237 template < typename T >
6238 struct is_same<T, T>
6240 static const bool value = true;
6243 template < typename T1, typename T2 >
6245 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6251 test(const int c, volatile int v)
6253 static_assert(is_same<int, decltype(0)>::value == true, "");
6254 static_assert(is_same<int, decltype(c)>::value == false, "");
6255 static_assert(is_same<int, decltype(v)>::value == false, "");
6258 auto sumi = ac + av + 'x';
6259 auto sumf = ac + av + 1.0;
6260 static_assert(is_same<int, decltype(ac)>::value == true, "");
6261 static_assert(is_same<int, decltype(av)>::value == true, "");
6262 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6263 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6264 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6265 return (sumf > 0.0) ? sumi : add(c, v);
6270 namespace test_noexcept
6273 int f() { return 0; }
6274 int g() noexcept { return 0; }
6276 static_assert(noexcept(f()) == false, "");
6277 static_assert(noexcept(g()) == true, "");
6281 namespace test_constexpr
6284 template < typename CharT >
6285 unsigned long constexpr
6286 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6288 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6291 template < typename CharT >
6292 unsigned long constexpr
6293 strlen_c(const CharT *const s) noexcept
6295 return strlen_c_r(s, 0UL);
6298 static_assert(strlen_c("") == 0UL, "");
6299 static_assert(strlen_c("1") == 1UL, "");
6300 static_assert(strlen_c("example") == 7UL, "");
6301 static_assert(strlen_c("another\0example") == 7UL, "");
6305 namespace test_rvalue_references
6311 static constexpr int value = N;
6314 answer<1> f(int&) { return answer<1>(); }
6315 answer<2> f(const int&) { return answer<2>(); }
6316 answer<3> f(int&&) { return answer<3>(); }
6323 static_assert(decltype(f(i))::value == 1, "");
6324 static_assert(decltype(f(c))::value == 2, "");
6325 static_assert(decltype(f(0))::value == 3, "");
6330 namespace test_uniform_initialization
6335 static const int zero {};
6336 static const int one {1};
6339 static_assert(test::zero == 0, "");
6340 static_assert(test::one == 1, "");
6344 namespace test_lambdas
6350 auto lambda1 = [](){};
6351 auto lambda2 = lambda1;
6359 auto a = [](int i, int j){ return i + j; }(1, 2);
6360 auto b = []() -> int { return '0'; }();
6361 auto c = [=](){ return a + b; }();
6362 auto d = [&](){ return c; }();
6363 auto e = [a, &b](int x) mutable {
6364 const auto identity = [](int y){ return y; };
6365 for (auto i = 0; i < a; ++i)
6367 return x + identity(a + b);
6369 return a + b + c + d + e;
6375 const auto nullary = [](){ return 0; };
6376 const auto unary = [](int x){ return x; };
6377 using nullary_t = decltype(nullary);
6378 using unary_t = decltype(unary);
6379 const auto higher1st = [](nullary_t f){ return f(); };
6380 const auto higher2nd = [unary](nullary_t f1){
6381 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6383 return higher1st(nullary) + higher2nd(nullary)(unary);
6388 namespace test_variadic_templates
6394 template <int N0, int... N1toN>
6395 struct sum<N0, N1toN...>
6397 static constexpr auto value = N0 + sum<N1toN...>::value;
6403 static constexpr auto value = 0;
6406 static_assert(sum<>::value == 0, "");
6407 static_assert(sum<1>::value == 1, "");
6408 static_assert(sum<23>::value == 23, "");
6409 static_assert(sum<1, 2>::value == 3, "");
6410 static_assert(sum<5, 5, 11>::value == 21, "");
6411 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6415 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6416 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6418 namespace test_template_alias_sfinae
6423 template<typename T>
6424 using member = typename T::member_type;
6426 template<typename T>
6429 template<typename T>
6430 void func(member<T>*) {}
6434 void test() { func<foo>(0); }
6438 } // namespace cxx11
6440 #endif // __cplusplus >= 201103L
6445 if ac_fn_cxx_try_compile "$LINENO"
6447 ax_cv_cxx_compile_cxx11=yes
6449 ax_cv_cxx_compile_cxx11=no
6451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6454 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
6455 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6459 if test x$ac_success = xno; then
6460 for alternative in ${ax_cxx_compile_alternatives}; do
6461 switch="-std=gnu++${alternative}"
6462 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6464 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6465 if eval test \${$cachevar+y}
6467 printf %s "(cached) " >&6
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6475 // If the compiler admits that it is not ready for C++11, why torture it?
6476 // Hopefully, this will speed up the test.
6480 #error "This is not a C++ compiler"
6482 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6483 // only set it correctly if /Zc:__cplusplus is specified as well as a
6484 // /std:c++NN switch:
6485 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6486 #elif __cplusplus < 201103L && !defined _MSC_VER
6488 #error "This is not a C++11 compiler"
6495 namespace test_static_assert
6498 template <typename T>
6501 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6506 namespace test_final_override
6515 struct Derived : public Base
6517 virtual ~Derived() override {}
6518 virtual void f() override {}
6523 namespace test_double_right_angle_brackets
6526 template < typename T >
6529 typedef check<void> single_type;
6530 typedef check<check<void>> double_type;
6531 typedef check<check<check<void>>> triple_type;
6532 typedef check<check<check<check<void>>>> quadruple_type;
6536 namespace test_decltype
6549 namespace test_type_deduction
6552 template < typename T1, typename T2 >
6555 static const bool value = false;
6558 template < typename T >
6559 struct is_same<T, T>
6561 static const bool value = true;
6564 template < typename T1, typename T2 >
6566 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6572 test(const int c, volatile int v)
6574 static_assert(is_same<int, decltype(0)>::value == true, "");
6575 static_assert(is_same<int, decltype(c)>::value == false, "");
6576 static_assert(is_same<int, decltype(v)>::value == false, "");
6579 auto sumi = ac + av + 'x';
6580 auto sumf = ac + av + 1.0;
6581 static_assert(is_same<int, decltype(ac)>::value == true, "");
6582 static_assert(is_same<int, decltype(av)>::value == true, "");
6583 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6584 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6585 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6586 return (sumf > 0.0) ? sumi : add(c, v);
6591 namespace test_noexcept
6594 int f() { return 0; }
6595 int g() noexcept { return 0; }
6597 static_assert(noexcept(f()) == false, "");
6598 static_assert(noexcept(g()) == true, "");
6602 namespace test_constexpr
6605 template < typename CharT >
6606 unsigned long constexpr
6607 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6609 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6612 template < typename CharT >
6613 unsigned long constexpr
6614 strlen_c(const CharT *const s) noexcept
6616 return strlen_c_r(s, 0UL);
6619 static_assert(strlen_c("") == 0UL, "");
6620 static_assert(strlen_c("1") == 1UL, "");
6621 static_assert(strlen_c("example") == 7UL, "");
6622 static_assert(strlen_c("another\0example") == 7UL, "");
6626 namespace test_rvalue_references
6632 static constexpr int value = N;
6635 answer<1> f(int&) { return answer<1>(); }
6636 answer<2> f(const int&) { return answer<2>(); }
6637 answer<3> f(int&&) { return answer<3>(); }
6644 static_assert(decltype(f(i))::value == 1, "");
6645 static_assert(decltype(f(c))::value == 2, "");
6646 static_assert(decltype(f(0))::value == 3, "");
6651 namespace test_uniform_initialization
6656 static const int zero {};
6657 static const int one {1};
6660 static_assert(test::zero == 0, "");
6661 static_assert(test::one == 1, "");
6665 namespace test_lambdas
6671 auto lambda1 = [](){};
6672 auto lambda2 = lambda1;
6680 auto a = [](int i, int j){ return i + j; }(1, 2);
6681 auto b = []() -> int { return '0'; }();
6682 auto c = [=](){ return a + b; }();
6683 auto d = [&](){ return c; }();
6684 auto e = [a, &b](int x) mutable {
6685 const auto identity = [](int y){ return y; };
6686 for (auto i = 0; i < a; ++i)
6688 return x + identity(a + b);
6690 return a + b + c + d + e;
6696 const auto nullary = [](){ return 0; };
6697 const auto unary = [](int x){ return x; };
6698 using nullary_t = decltype(nullary);
6699 using unary_t = decltype(unary);
6700 const auto higher1st = [](nullary_t f){ return f(); };
6701 const auto higher2nd = [unary](nullary_t f1){
6702 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6704 return higher1st(nullary) + higher2nd(nullary)(unary);
6709 namespace test_variadic_templates
6715 template <int N0, int... N1toN>
6716 struct sum<N0, N1toN...>
6718 static constexpr auto value = N0 + sum<N1toN...>::value;
6724 static constexpr auto value = 0;
6727 static_assert(sum<>::value == 0, "");
6728 static_assert(sum<1>::value == 1, "");
6729 static_assert(sum<23>::value == 23, "");
6730 static_assert(sum<1, 2>::value == 3, "");
6731 static_assert(sum<5, 5, 11>::value == 21, "");
6732 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6736 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6737 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6739 namespace test_template_alias_sfinae
6744 template<typename T>
6745 using member = typename T::member_type;
6747 template<typename T>
6750 template<typename T>
6751 void func(member<T>*) {}
6755 void test() { func<foo>(0); }
6759 } // namespace cxx11
6761 #endif // __cplusplus >= 201103L
6766 if ac_fn_cxx_try_compile "$LINENO"
6772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6775 eval ac_res=\$$cachevar
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6777 printf "%s\n" "$ac_res" >&6; }
6778 if eval test x\$$cachevar = xyes; then
6780 if test -n "$CXXCPP" ; then
6781 CXXCPP="$CXXCPP $switch"
6789 if test x$ac_success = xno; then
6790 for alternative in ${ax_cxx_compile_alternatives}; do
6791 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6792 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6794 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6795 if eval test \${$cachevar+y}
6797 printf %s "(cached) " >&6
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6805 // If the compiler admits that it is not ready for C++11, why torture it?
6806 // Hopefully, this will speed up the test.
6810 #error "This is not a C++ compiler"
6812 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6813 // only set it correctly if /Zc:__cplusplus is specified as well as a
6814 // /std:c++NN switch:
6815 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6816 #elif __cplusplus < 201103L && !defined _MSC_VER
6818 #error "This is not a C++11 compiler"
6825 namespace test_static_assert
6828 template <typename T>
6831 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6836 namespace test_final_override
6845 struct Derived : public Base
6847 virtual ~Derived() override {}
6848 virtual void f() override {}
6853 namespace test_double_right_angle_brackets
6856 template < typename T >
6859 typedef check<void> single_type;
6860 typedef check<check<void>> double_type;
6861 typedef check<check<check<void>>> triple_type;
6862 typedef check<check<check<check<void>>>> quadruple_type;
6866 namespace test_decltype
6879 namespace test_type_deduction
6882 template < typename T1, typename T2 >
6885 static const bool value = false;
6888 template < typename T >
6889 struct is_same<T, T>
6891 static const bool value = true;
6894 template < typename T1, typename T2 >
6896 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6902 test(const int c, volatile int v)
6904 static_assert(is_same<int, decltype(0)>::value == true, "");
6905 static_assert(is_same<int, decltype(c)>::value == false, "");
6906 static_assert(is_same<int, decltype(v)>::value == false, "");
6909 auto sumi = ac + av + 'x';
6910 auto sumf = ac + av + 1.0;
6911 static_assert(is_same<int, decltype(ac)>::value == true, "");
6912 static_assert(is_same<int, decltype(av)>::value == true, "");
6913 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6914 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6915 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6916 return (sumf > 0.0) ? sumi : add(c, v);
6921 namespace test_noexcept
6924 int f() { return 0; }
6925 int g() noexcept { return 0; }
6927 static_assert(noexcept(f()) == false, "");
6928 static_assert(noexcept(g()) == true, "");
6932 namespace test_constexpr
6935 template < typename CharT >
6936 unsigned long constexpr
6937 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6939 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6942 template < typename CharT >
6943 unsigned long constexpr
6944 strlen_c(const CharT *const s) noexcept
6946 return strlen_c_r(s, 0UL);
6949 static_assert(strlen_c("") == 0UL, "");
6950 static_assert(strlen_c("1") == 1UL, "");
6951 static_assert(strlen_c("example") == 7UL, "");
6952 static_assert(strlen_c("another\0example") == 7UL, "");
6956 namespace test_rvalue_references
6962 static constexpr int value = N;
6965 answer<1> f(int&) { return answer<1>(); }
6966 answer<2> f(const int&) { return answer<2>(); }
6967 answer<3> f(int&&) { return answer<3>(); }
6974 static_assert(decltype(f(i))::value == 1, "");
6975 static_assert(decltype(f(c))::value == 2, "");
6976 static_assert(decltype(f(0))::value == 3, "");
6981 namespace test_uniform_initialization
6986 static const int zero {};
6987 static const int one {1};
6990 static_assert(test::zero == 0, "");
6991 static_assert(test::one == 1, "");
6995 namespace test_lambdas
7001 auto lambda1 = [](){};
7002 auto lambda2 = lambda1;
7010 auto a = [](int i, int j){ return i + j; }(1, 2);
7011 auto b = []() -> int { return '0'; }();
7012 auto c = [=](){ return a + b; }();
7013 auto d = [&](){ return c; }();
7014 auto e = [a, &b](int x) mutable {
7015 const auto identity = [](int y){ return y; };
7016 for (auto i = 0; i < a; ++i)
7018 return x + identity(a + b);
7020 return a + b + c + d + e;
7026 const auto nullary = [](){ return 0; };
7027 const auto unary = [](int x){ return x; };
7028 using nullary_t = decltype(nullary);
7029 using unary_t = decltype(unary);
7030 const auto higher1st = [](nullary_t f){ return f(); };
7031 const auto higher2nd = [unary](nullary_t f1){
7032 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7034 return higher1st(nullary) + higher2nd(nullary)(unary);
7039 namespace test_variadic_templates
7045 template <int N0, int... N1toN>
7046 struct sum<N0, N1toN...>
7048 static constexpr auto value = N0 + sum<N1toN...>::value;
7054 static constexpr auto value = 0;
7057 static_assert(sum<>::value == 0, "");
7058 static_assert(sum<1>::value == 1, "");
7059 static_assert(sum<23>::value == 23, "");
7060 static_assert(sum<1, 2>::value == 3, "");
7061 static_assert(sum<5, 5, 11>::value == 21, "");
7062 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7066 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7067 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7069 namespace test_template_alias_sfinae
7074 template<typename T>
7075 using member = typename T::member_type;
7077 template<typename T>
7080 template<typename T>
7081 void func(member<T>*) {}
7085 void test() { func<foo>(0); }
7089 } // namespace cxx11
7091 #endif // __cplusplus >= 201103L
7096 if ac_fn_cxx_try_compile "$LINENO"
7102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7105 eval ac_res=\$$cachevar
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7107 printf "%s\n" "$ac_res" >&6; }
7108 if eval test x\$$cachevar = xyes; then
7110 if test -n "$CXXCPP" ; then
7111 CXXCPP="$CXXCPP $switch"
7117 if test x$ac_success = xyes; then
7123 ac_cpp='$CPP $CPPFLAGS'
7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7128 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7129 if test x$ac_success = xno; then
7130 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7133 if test x$ac_success = xno; then
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7136 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
7140 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
7146 # Checking characteristics of compilers and other programs
7147 # ===========================================================================
7148 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether preprocessor accepts -MM or -M" >&5
7150 printf %s "checking whether preprocessor accepts -MM or -M... " >&6; }
7151 if test ${sdcc_cv_MM+y}
7153 printf %s "(cached) " >&6
7155 echo "#include <stdio.h>" >_test_.c
7157 $CPP -v -MM _test_.c 1>&5 2>&5
7158 if test "$?" = "0"; then
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_MM" >&5
7166 printf "%s\n" "$sdcc_cv_MM" >&6; }
7168 # This is the first time when CFLAGS are set/modified!!
7169 arg1=`echo -ggdb |
sed -e"s/^-*//" -e"s/-/_/"`
7170 ac_test_CFLAGS=${CFLAGS+set}
7171 sdcc_save_CFLAGS=$CFLAGS
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -ggdb" >&5
7173 printf %s "checking whether C accepts -ggdb... " >&6; }
7174 if eval test \${sdcc_cv_c_$arg1+y}
7176 printf %s "(cached) " >&6
7178 sdcc_save_c_werror_flag=$ac_c_werror_flag
7179 ac_c_werror_flag=yes
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7193 if ac_fn_c_try_compile "$LINENO"
7195 eval sdcc_cv_c_$arg1=yes
7197 eval sdcc_cv_c_$arg1=no
7199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7200 ac_c_werror_flag=$sdcc_save_c_werror_flag
7202 eval ac_res=\$sdcc_cv_c_$arg1
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7204 printf "%s\n" "$ac_res" >&6; }
7205 CFLAGS=$sdcc_save_CFLAGS
7207 if test "$sdcc_cv_c_ggdb" = "yes"; then
7208 CFLAGS="-ggdb ${CFLAGS}"
7209 CXXFLAGS="-ggdb ${CXXFLAGS}"
7212 arg1=`echo -pipe |
sed -e"s/^-*//" -e"s/-/_/"`
7213 ac_test_CFLAGS=${CFLAGS+set}
7214 sdcc_save_CFLAGS=$CFLAGS
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -pipe" >&5
7216 printf %s "checking whether C accepts -pipe... " >&6; }
7217 if eval test \${sdcc_cv_c_$arg1+y}
7219 printf %s "(cached) " >&6
7221 sdcc_save_c_werror_flag=$ac_c_werror_flag
7222 ac_c_werror_flag=yes
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7236 if ac_fn_c_try_compile "$LINENO"
7238 eval sdcc_cv_c_$arg1=yes
7240 eval sdcc_cv_c_$arg1=no
7242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7243 ac_c_werror_flag=$sdcc_save_c_werror_flag
7245 eval ac_res=\$sdcc_cv_c_$arg1
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7247 printf "%s\n" "$ac_res" >&6; }
7248 CFLAGS=$sdcc_save_CFLAGS
7250 if test "$sdcc_cv_c_pipe" = "yes"; then
7251 CFLAGS="-pipe ${CFLAGS}"
7252 # Don't use "-pipe" on x86 Solaris g++, since src/z80/ralloc2.cc dies with:
7253 # Assembler: ralloc2.cc
7254 # "<stdin>", line 117637 : Internal: Out of symbol table
7255 if test `uname
` != "SunOS" -o \( `uname
` = "SunOS" -a `uname
-m` != "i86pc" \); then
7256 CXXFLAGS="-pipe ${CXXFLAGS}"
7260 WALL_FLAG="-Wall -Wno-parentheses"
7261 MAKEDEP_CXX="$CXX $sdcc_cv_MM"
7262 MAKEDEP="$CC $sdcc_cv_MM"
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the SunPRO C compiler" >&5
7265 printf %s "checking whether we are using the SunPRO C compiler... " >&6; }
7266 if test ${sdcc_cv_c_compiler_sunpro+y}
7268 printf %s "(cached) " >&6
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7276 #if !defined __SUNPRO_C && !defined __SUNPRO_CC
7284 if ac_fn_c_try_compile "$LINENO"
7286 sdcc_cv_c_compiler_sunpro=yes
7288 sdcc_cv_c_compiler_sunpro=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_c_compiler_sunpro" >&5
7294 printf "%s\n" "$sdcc_cv_c_compiler_sunpro" >&6; }
7302 # -------------------------------------------------------------------------
7303 if test "$ac_cv_prog_cc_c11" == "no"; then
7304 as_fn_error $? "Could not find C11-capable host compiler." "$LINENO" 5
7307 # Checks for typedefs, structures, and compiler characteristics.
7308 # ===========================================================================
7310 # The cast to long int works around a bug in the HP C Compiler
7311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7312 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7313 # This bug is HP SR number 8606223364.
7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
7315 printf %s "checking size of char... " >&6; }
7316 if test ${ac_cv_sizeof_char+y}
7318 printf %s "(cached) " >&6
7320 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
7324 if test "$ac_cv_type_char" = yes; then
7325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7326 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
7327 as_fn_error 77 "cannot compute sizeof (char)
7328 See \`config.log
' for more details" "$LINENO" 5; }
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
7336 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
7340 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
7343 # The cast to long int works around a bug in the HP C Compiler
7344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7346 # This bug is HP SR number 8606223364.
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7348 printf %s
"checking size of short... " >&6; }
7349 if test ${ac_cv_sizeof_short+y}
7351 printf %s
"(cached) " >&6
7353 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
7357 if test "$ac_cv_type_short" = yes; then
7358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7359 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7360 as_fn_error
77 "cannot compute sizeof (short)
7361 See \`config.log' for more details" "$LINENO" 5; }
7363 ac_cv_sizeof_short
=0
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7369 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
7373 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
7376 # The cast to long int works around a bug in the HP C Compiler
7377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7379 # This bug is HP SR number 8606223364.
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7381 printf %s
"checking size of int... " >&6; }
7382 if test ${ac_cv_sizeof_int+y}
7384 printf %s
"(cached) " >&6
7386 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
7390 if test "$ac_cv_type_int" = yes; then
7391 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7392 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7393 as_fn_error
77 "cannot compute sizeof (int)
7394 See \`config.log' for more details" "$LINENO" 5; }
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7402 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
7406 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
7409 # The cast to long int works around a bug in the HP C Compiler
7410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7412 # This bug is HP SR number 8606223364.
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7414 printf %s
"checking size of long... " >&6; }
7415 if test ${ac_cv_sizeof_long+y}
7417 printf %s
"(cached) " >&6
7419 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
7423 if test "$ac_cv_type_long" = yes; then
7424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7425 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7426 as_fn_error
77 "cannot compute sizeof (long)
7427 See \`config.log' for more details" "$LINENO" 5; }
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7435 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
7439 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
7442 # The cast to long int works around a bug in the HP C Compiler
7443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7444 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7445 # This bug is HP SR number 8606223364.
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7447 printf %s
"checking size of long long... " >&6; }
7448 if test ${ac_cv_sizeof_long_long+y}
7450 printf %s
"(cached) " >&6
7452 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
7456 if test "$ac_cv_type_long_long" = yes; then
7457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7458 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7459 as_fn_error
77 "cannot compute sizeof (long long)
7460 See \`config.log' for more details" "$LINENO" 5; }
7462 ac_cv_sizeof_long_long
=0
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7468 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
7472 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
7476 printf %s
"checking whether char is unsigned... " >&6; }
7477 if test ${ac_cv_c_char_unsigned+y}
7479 printf %s
"(cached) " >&6
7481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7483 $ac_includes_default
7487 static int test_array [1 - 2 * !(((char) -1) < 0)];
7489 return test_array [0];
7495 if ac_fn_c_try_compile
"$LINENO"
7497 ac_cv_c_char_unsigned
=no
7499 ac_cv_c_char_unsigned
=yes
7501 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
7504 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
7505 if test $ac_cv_c_char_unsigned = yes; then
7506 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
7513 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev
/null
; then
7517 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev
/null
; then
7521 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev
/null
; then
7525 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev
/null
; then
7529 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev
/null
; then
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for byte" >&5
7537 printf %s
"checking type name for byte... " >&6; }
7538 TYPE_CHAR
=`type_name 1`
7539 if test "$ac_cv_c_char_unsigned" = "yes"; then
7540 TYPE_BYTE
="signed $TYPE_CHAR"
7542 TYPE_BYTE
=$TYPE_CHAR
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_BYTE" >&5
7545 printf "%s\n" "$TYPE_BYTE" >&6; }
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for word" >&5
7547 printf %s
"checking type name for word... " >&6; }
7548 TYPE_WORD
=`type_name 2`
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_WORD" >&5
7550 printf "%s\n" "$TYPE_WORD" >&6; }
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for dword" >&5
7552 printf %s
"checking type name for dword... " >&6; }
7553 TYPE_DWORD
=`type_name 4`
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_DWORD" >&5
7555 printf "%s\n" "$TYPE_DWORD" >&6; }
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for qword" >&5
7557 printf %s
"checking type name for qword... " >&6; }
7558 TYPE_QWORD
=`type_name 8`
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_QWORD" >&5
7560 printf "%s\n" "$TYPE_QWORD" >&6; }
7563 printf "%s\n" "#define TYPE_BYTE $TYPE_BYTE" >>confdefs.h
7566 printf "%s\n" "#define TYPE_WORD $TYPE_WORD" >>confdefs.h
7569 printf "%s\n" "#define TYPE_DWORD $TYPE_DWORD" >>confdefs.h
7572 printf "%s\n" "#define TYPE_QWORD $TYPE_QWORD" >>confdefs.h
7576 printf "%s\n" "#define TYPE_UBYTE unsigned $TYPE_CHAR" >>confdefs.h
7579 printf "%s\n" "#define TYPE_UWORD unsigned $TYPE_WORD" >>confdefs.h
7582 printf "%s\n" "#define TYPE_UDWORD unsigned $TYPE_DWORD" >>confdefs.h
7585 printf "%s\n" "#define TYPE_UQWORD unsigned $TYPE_QWORD" >>confdefs.h
7590 LDFLAGS
="$LDFLAGS -Wl,--stack,4194304"
7593 LDFLAGS
="$LDFLAGS -Wl,--stack,4194304"
7597 # Checking whether byte ordering is bigendian
7598 # ===========================================================================
7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7600 printf %s
"checking whether byte ordering is bigendian... " >&6; }
7601 if test ${ac_cv_c_bigendian+y}
7603 printf %s
"(cached) " >&6
7605 ac_cv_c_bigendian
=unknown
7606 # See if we're dealing with a universal compiler.
7607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609 #ifndef __APPLE_CC__
7610 not a universal capable compiler
7615 if ac_fn_c_try_compile
"$LINENO"
7618 # Check for potential -arch flags. It is not universal unless
7619 # there are at least two -arch flags with different values.
7622 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7623 if test -n "$ac_prev"; then
7625 i?
86 | x86_64 | ppc | ppc64
)
7626 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7629 ac_cv_c_bigendian
=universal
7635 elif test "x$ac_word" = "x-arch"; then
7640 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7641 if test $ac_cv_c_bigendian = unknown
; then
7642 # See if sys/param.h defines the BYTE_ORDER macro.
7643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <sys/types.h>
7646 #include <sys/param.h>
7651 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7652 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7661 if ac_fn_c_try_compile
"$LINENO"
7663 # It does; now see whether it defined to BIG_ENDIAN or not.
7664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #include <sys/types.h>
7667 #include <sys/param.h>
7672 #if BYTE_ORDER != BIG_ENDIAN
7680 if ac_fn_c_try_compile
"$LINENO"
7682 ac_cv_c_bigendian
=yes
7684 ac_cv_c_bigendian
=no
7686 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7688 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7690 if test $ac_cv_c_bigendian = unknown
; then
7691 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7699 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7707 if ac_fn_c_try_compile
"$LINENO"
7709 # It does; now see whether it defined to _BIG_ENDIAN or not.
7710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7725 if ac_fn_c_try_compile
"$LINENO"
7727 ac_cv_c_bigendian
=yes
7729 ac_cv_c_bigendian
=no
7731 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7733 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7735 if test $ac_cv_c_bigendian = unknown
; then
7736 # Compile a test program.
7737 if test "$cross_compiling" = yes
7739 # Try to guess by grepping values from an object file.
7740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7742 unsigned short int ascii_mm[] =
7743 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7744 unsigned short int ascii_ii[] =
7745 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7746 int use_ascii (int i) {
7747 return ascii_mm[i] + ascii_ii[i];
7749 unsigned short int ebcdic_ii[] =
7750 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7751 unsigned short int ebcdic_mm[] =
7752 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7753 int use_ebcdic (int i) {
7754 return ebcdic_mm[i] + ebcdic_ii[i];
7761 return use_ascii (foo) == use_ebcdic (foo);
7766 if ac_fn_c_try_compile
"$LINENO"
7768 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7769 ac_cv_c_bigendian
=yes
7771 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7772 if test "$ac_cv_c_bigendian" = unknown
; then
7773 ac_cv_c_bigendian
=no
7775 # finding both strings is unlikely to happen, but who knows?
7776 ac_cv_c_bigendian
=unknown
7780 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7784 $ac_includes_default
7789 /* Are we little or big endian? From Harbison&Steele. */
7793 char c[sizeof (long int)];
7796 return u.c[sizeof (long int) - 1] == 1;
7802 if ac_fn_c_try_run
"$LINENO"
7804 ac_cv_c_bigendian
=no
7806 ac_cv_c_bigendian
=yes
7808 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7809 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7815 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
7816 case $ac_cv_c_bigendian in #(
7818 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
7824 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7828 as_fn_error $?
"unknown endianness
7829 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7833 # Set standard installation paths
7834 # ===========================================================================
7836 # In the Makefiles we need paths with '/' as directory separator, even if
7837 # crosscompiling for Win32.
7838 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
7839 # The variables in the Makefiles are replaced by AC_SUBST()
7841 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
7843 # The macros are expanded for the header.
7844 # The variables in the header are replaced by AC_*DEFINE*()
7845 # sdccconf_h_dir_separator contains a backslash.
7847 if test "x${sdccconf_h_dir_separator}" = "x"; then
7848 sdccconf_h_dir_separator
="/"
7855 # *nix default: "RANLIB"
7858 if test "${LIB_TYPE}" = ""; then
7862 # include_dir_suffix:
7863 # *nix default: "sdcc/include"
7866 if test "${inclib_dir_suffix}" = ""; then
7867 inclib_dir_suffix
="sdcc"
7871 if test "${include_dir_suffix}" = ""; then
7872 include_dir_suffix
="${inclib_dir_suffix}/include"
7876 if test "${non_free_inclib_dir_suffix}" = ""; then
7877 non_free_inclib_dir_suffix
="sdcc/non-free"
7880 # non_free_include_dir_suffix:
7881 # *nix default: "sdcc/non-free/include"
7884 if test "${non_free_include_dir_suffix}" = ""; then
7885 non_free_include_dir_suffix
="${non_free_inclib_dir_suffix}/include"
7889 # *nix default: "sdcc/lib"
7891 if test "${lib_dir_suffix}" = ""; then
7892 lib_dir_suffix
="${inclib_dir_suffix}/lib"
7895 # non_free_lib_dir_suffix:
7896 # *nix default: "sdcc/non-free/lib"
7898 if test "${non_free_lib_dir_suffix}" = ""; then
7899 non_free_lib_dir_suffix
="${non_free_inclib_dir_suffix}/lib"
7903 # *nix default: "${datadir}/sdcc/doc"
7905 if test "${docdir}" = ""; then
7906 docdir
="\${datadir}"/sdcc
/doc
7915 printf "%s\n" "#define DIR_SEPARATOR_STRING \"${sdccconf_h_dir_separator}\"" >>confdefs.h
7918 printf "%s\n" "#define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'" >>confdefs.h
7922 # default: "NONE", ${ac_default_prefix}: "/usr/local"
7924 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7925 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7927 test "x$ac_expand" = xNONE
&& ac_expand
="$ac_default_prefix"
7928 ac_expand
=`eval echo $ac_expand`
7929 expanded_prefix
=`eval echo $ac_expand`
7932 ac_ndu
=$expanded_prefix
7935 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7938 case $sdccconf_h_dir_separator in
7940 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7941 s,^[\\/],\\\\\\\\,'` ;;
7943 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7946 printf "%s\n" "#define PREFIX \"${ac_ndu}\"" >>confdefs.h
7951 # default: "${prefix}"
7953 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7954 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7955 ac_expand
=$exec_prefix
7956 test "x$ac_expand" = xNONE
&& ac_expand
="$expanded_prefix"
7957 ac_expand
=`eval echo $ac_expand`
7958 expanded_exec_prefix
=`eval echo $ac_expand`
7961 ac_ndu
=$expanded_exec_prefix
7964 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7967 case $sdccconf_h_dir_separator in
7969 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7970 s,^[\\/],\\\\\\\\,'` ;;
7972 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7975 printf "%s\n" "#define EXEC_PREFIX \"${ac_ndu}\"" >>confdefs.h
7980 # default: "${exec_prefix}/bin"
7982 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7983 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7985 test "x$ac_expand" = xNONE
&& ac_expand
="$"NONE
""
7986 ac_expand
=`eval echo $ac_expand`
7987 expanded_bindir
=`eval echo $ac_expand`
7990 ac_ndu
=$expanded_bindir
7993 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7996 case $sdccconf_h_dir_separator in
7998 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7999 s,^[\\/],\\\\\\\\,'` ;;
8001 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8004 printf "%s\n" "#define BINDIR \"${ac_ndu}\"" >>confdefs.h
8009 # default: "${prefix}/share"
8011 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
8012 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8014 test "x$ac_expand" = xNONE
&& ac_expand
="$"NONE
""
8015 ac_expand
=`eval echo $ac_expand`
8016 expanded_datadir
=`eval echo $ac_expand`
8019 ac_ndu
=$expanded_datadir
8022 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
8025 case $sdccconf_h_dir_separator in
8027 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8028 s,^[\\/],\\\\\\\\,'` ;;
8030 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8033 printf "%s\n" "#define DATADIR \"${ac_ndu}\"" >>confdefs.h
8037 # include/lib suffix
8038 norm_inc_dir_suffix
=${include_dir_suffix}
8039 case ":$norm_inc_dir_suffix:" in
8040 ::) norm_inc_dir_suffix
='.' ;;
8041 :*[\\/]:) norm_inc_dir_suffix
=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8044 case $sdccconf_h_dir_separator in
8046 *\\*) norm_inc_dir_suffix
=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8047 s,^[\\/],\\\\\\\\,'` ;;
8049 *) norm_inc_dir_suffix
=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8052 printf "%s\n" "#define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_inc_dir_suffix}\"" >>confdefs.h
8054 norm_non_free_inc_dir_suffix
=${non_free_include_dir_suffix}
8055 case ":$norm_non_free_inc_dir_suffix:" in
8056 ::) norm_non_free_inc_dir_suffix
='.' ;;
8057 :*[\\/]:) norm_non_free_inc_dir_suffix
=`echo "$norm_non_free_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8060 case $sdccconf_h_dir_separator in
8062 *\\*) norm_non_free_inc_dir_suffix
=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8063 s,^[\\/],\\\\\\\\,'` ;;
8065 *) norm_non_free_inc_dir_suffix
=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8068 printf "%s\n" "#define NON_FREE_INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_inc_dir_suffix}\"" >>confdefs.h
8071 norm_lib_dir_suffix
=${lib_dir_suffix}
8072 case ":$norm_lib_dir_suffix:" in
8073 ::) norm_lib_dir_suffix
='.' ;;
8074 :*[\\/]:) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8077 case $sdccconf_h_dir_separator in
8079 *\\*) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8080 s,^[\\/],\\\\\\\\,'` ;;
8082 *) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8085 printf "%s\n" "#define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_lib_dir_suffix}\"" >>confdefs.h
8087 norm_non_free_lib_dir_suffix
=${non_free_lib_dir_suffix}
8088 case ":$norm_non_free_lib_dir_suffix:" in
8089 ::) norm_non_free_lib_dir_suffix
='.' ;;
8090 :*[\\/]:) norm_non_free_lib_dir_suffix
=`echo "$norm_non_free_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8093 case $sdccconf_h_dir_separator in
8095 *\\*) norm_non_free_lib_dir_suffix
=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8096 s,^[\\/],\\\\\\\\,'` ;;
8098 *) norm_non_free_lib_dir_suffix
=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8101 printf "%s\n" "#define NON_FREE_LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_lib_dir_suffix}\"" >>confdefs.h
8105 for _lcl_i
in expanded_bindir
:expanded_datadir
:bin2data_dir
; do
8106 _lcl_from
=\$
`echo "$_lcl_i" | sed 's,:.*$,,'`
8107 _lcl_to
=\$
`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8108 _lcl_result_var
=`echo "$_lcl_i" | sed 's,^.*:,,'`
8109 _lcl_receval
="$_lcl_from"
8110 _lcl_from
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8111 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8113 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8114 _lcl_receval_old="$_lcl_receval"
8115 eval _lcl_receval="\"$_lcl_receval\""
8117 echo "$_lcl_receval")`
8118 _lcl_receval
="$_lcl_to"
8119 _lcl_to
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8120 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8122 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8123 _lcl_receval_old="$_lcl_receval"
8124 eval _lcl_receval="\"$_lcl_receval\""
8126 echo "$_lcl_receval")`
8127 _lcl_notation
="$_lcl_from$_lcl_to"
8128 case ":$_lcl_from:" in
8129 ::) _lcl_from
='.' ;;
8130 :*[\\/]:) _lcl_from
=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8135 *\\*) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8136 s,^[\\/],\\\\\\\\,'` ;;
8138 *) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8140 case ":$_lcl_to:" in
8142 :*[\\/]:) _lcl_to
=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8147 *\\*) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8148 s,^[\\/],\\\\\\\\,'` ;;
8150 *) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8152 _lcl_common_prefix
=''
8153 _lcl_second_prefix_match
=''
8154 while test "$_lcl_second_prefix_match" != 0; do
8155 _lcl_first_prefix
=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8156 _lcl_second_prefix_match
=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8157 if test "$_lcl_second_prefix_match" != 0; then
8158 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8159 _lcl_common_prefix
="$_lcl_first_prefix"
8161 _lcl_second_prefix_match
=0
8165 _lcl_first_suffix
=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8168 while test "$_lcl_tmp" != ''; do
8169 _lcl_tmp
=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8170 if test "$_lcl_first_suffix" != ''; then
8171 _lcl_first_suffix
="$_lcl_tmp"
8172 _lcl_first_rel
="../$_lcl_first_rel"
8175 _lcl_second_suffix
=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8176 _lcl_result_tmp
="$_lcl_first_rel$_lcl_second_suffix"
8177 case ":$_lcl_result_tmp:" in
8178 ::) _lcl_result_tmp
='.' ;;
8179 :*[\\/]:) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8182 case "$_lcl_notation" in
8184 *\\*) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8185 s,^[\\/],\\\\\\\\,'` ;;
8187 *) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8189 eval $_lcl_result_var='$_lcl_result_tmp'
8191 case ":$bin2data_dir:" in
8192 ::) bin2data_dir
='.' ;;
8193 :*[\\/]:) bin2data_dir
=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
8196 case $sdccconf_h_dir_separator in
8198 *\\*) bin2data_dir
=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8199 s,^[\\/],\\\\\\\\,'` ;;
8201 *) bin2data_dir
=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8204 printf "%s\n" "#define BIN2DATA_DIR DIR_SEPARATOR_STRING \"${bin2data_dir}\"" >>confdefs.h
8207 for _lcl_i
in expanded_prefix
:expanded_bindir
:prefix2bin_dir
; do
8208 _lcl_from
=\$
`echo "$_lcl_i" | sed 's,:.*$,,'`
8209 _lcl_to
=\$
`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8210 _lcl_result_var
=`echo "$_lcl_i" | sed 's,^.*:,,'`
8211 _lcl_receval
="$_lcl_from"
8212 _lcl_from
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8213 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8215 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8216 _lcl_receval_old="$_lcl_receval"
8217 eval _lcl_receval="\"$_lcl_receval\""
8219 echo "$_lcl_receval")`
8220 _lcl_receval
="$_lcl_to"
8221 _lcl_to
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8222 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8224 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8225 _lcl_receval_old="$_lcl_receval"
8226 eval _lcl_receval="\"$_lcl_receval\""
8228 echo "$_lcl_receval")`
8229 _lcl_notation
="$_lcl_from$_lcl_to"
8230 case ":$_lcl_from:" in
8231 ::) _lcl_from
='.' ;;
8232 :*[\\/]:) _lcl_from
=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8237 *\\*) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8238 s,^[\\/],\\\\\\\\,'` ;;
8240 *) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8242 case ":$_lcl_to:" in
8244 :*[\\/]:) _lcl_to
=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8249 *\\*) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8250 s,^[\\/],\\\\\\\\,'` ;;
8252 *) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8254 _lcl_common_prefix
=''
8255 _lcl_second_prefix_match
=''
8256 while test "$_lcl_second_prefix_match" != 0; do
8257 _lcl_first_prefix
=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8258 _lcl_second_prefix_match
=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8259 if test "$_lcl_second_prefix_match" != 0; then
8260 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8261 _lcl_common_prefix
="$_lcl_first_prefix"
8263 _lcl_second_prefix_match
=0
8267 _lcl_first_suffix
=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8270 while test "$_lcl_tmp" != ''; do
8271 _lcl_tmp
=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8272 if test "$_lcl_first_suffix" != ''; then
8273 _lcl_first_suffix
="$_lcl_tmp"
8274 _lcl_first_rel
="../$_lcl_first_rel"
8277 _lcl_second_suffix
=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8278 _lcl_result_tmp
="$_lcl_first_rel$_lcl_second_suffix"
8279 case ":$_lcl_result_tmp:" in
8280 ::) _lcl_result_tmp
='.' ;;
8281 :*[\\/]:) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8284 case "$_lcl_notation" in
8286 *\\*) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8287 s,^[\\/],\\\\\\\\,'` ;;
8289 *) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8291 eval $_lcl_result_var='$_lcl_result_tmp'
8293 case ":$prefix2bin_dir:" in
8294 ::) prefix2bin_dir
='.' ;;
8295 :*[\\/]:) prefix2bin_dir
=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
8298 case $sdccconf_h_dir_separator in
8300 *\\*) prefix2bin_dir
=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8301 s,^[\\/],\\\\\\\\,'` ;;
8303 *) prefix2bin_dir
=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8306 printf "%s\n" "#define PREFIX2BIN_DIR DIR_SEPARATOR_STRING \"${prefix2bin_dir}\"" >>confdefs.h
8309 for _lcl_i
in expanded_prefix
:expanded_datadir
:prefix2data_dir
; do
8310 _lcl_from
=\$
`echo "$_lcl_i" | sed 's,:.*$,,'`
8311 _lcl_to
=\$
`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8312 _lcl_result_var
=`echo "$_lcl_i" | sed 's,^.*:,,'`
8313 _lcl_receval
="$_lcl_from"
8314 _lcl_from
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8315 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8317 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8318 _lcl_receval_old="$_lcl_receval"
8319 eval _lcl_receval="\"$_lcl_receval\""
8321 echo "$_lcl_receval")`
8322 _lcl_receval
="$_lcl_to"
8323 _lcl_to
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8324 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8326 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8327 _lcl_receval_old="$_lcl_receval"
8328 eval _lcl_receval="\"$_lcl_receval\""
8330 echo "$_lcl_receval")`
8331 _lcl_notation
="$_lcl_from$_lcl_to"
8332 case ":$_lcl_from:" in
8333 ::) _lcl_from
='.' ;;
8334 :*[\\/]:) _lcl_from
=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8339 *\\*) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8340 s,^[\\/],\\\\\\\\,'` ;;
8342 *) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8344 case ":$_lcl_to:" in
8346 :*[\\/]:) _lcl_to
=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8351 *\\*) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8352 s,^[\\/],\\\\\\\\,'` ;;
8354 *) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8356 _lcl_common_prefix
=''
8357 _lcl_second_prefix_match
=''
8358 while test "$_lcl_second_prefix_match" != 0; do
8359 _lcl_first_prefix
=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8360 _lcl_second_prefix_match
=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8361 if test "$_lcl_second_prefix_match" != 0; then
8362 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8363 _lcl_common_prefix
="$_lcl_first_prefix"
8365 _lcl_second_prefix_match
=0
8369 _lcl_first_suffix
=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8372 while test "$_lcl_tmp" != ''; do
8373 _lcl_tmp
=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8374 if test "$_lcl_first_suffix" != ''; then
8375 _lcl_first_suffix
="$_lcl_tmp"
8376 _lcl_first_rel
="../$_lcl_first_rel"
8379 _lcl_second_suffix
=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8380 _lcl_result_tmp
="$_lcl_first_rel$_lcl_second_suffix"
8381 case ":$_lcl_result_tmp:" in
8382 ::) _lcl_result_tmp
='.' ;;
8383 :*[\\/]:) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8386 case "$_lcl_notation" in
8388 *\\*) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8389 s,^[\\/],\\\\\\\\,'` ;;
8391 *) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8393 eval $_lcl_result_var='$_lcl_result_tmp'
8395 case ":$prefix2data_dir:" in
8396 ::) prefix2data_dir
='.' ;;
8397 :*[\\/]:) prefix2data_dir
=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
8400 case $sdccconf_h_dir_separator in
8402 *\\*) prefix2data_dir
=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8403 s,^[\\/],\\\\\\\\,'` ;;
8405 *) prefix2data_dir
=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8407 if test "${prefix2data_dir}" = "."; then
8408 # small optimization for Mingw32; otherwise Borut will complain ;-)
8410 printf "%s\n" "#define PREFIX2DATA_DIR \"\"" >>confdefs.h
8414 printf "%s\n" "#define PREFIX2DATA_DIR DIR_SEPARATOR_STRING \"${prefix2data_dir}\"" >>confdefs.h
8420 printf "%s\n" "#define STD_LIB \"libsdcc\"" >>confdefs.h
8423 printf "%s\n" "#define STD_INT_LIB \"libint\"" >>confdefs.h
8426 printf "%s\n" "#define STD_LONG_LIB \"liblong\"" >>confdefs.h
8429 printf "%s\n" "#define STD_FP_LIB \"libfloat\"" >>confdefs.h
8432 printf "%s\n" "#define STD_DS390_LIB \"libds390\"" >>confdefs.h
8435 printf "%s\n" "#define STD_DS400_LIB \"libds400\"" >>confdefs.h
8438 # SDCC runtime environment variables
8439 sdcc_dir_name
="SDCC_HOME"
8441 printf "%s\n" "#define SDCC_DIR_NAME \"${sdcc_dir_name}\"" >>confdefs.h
8444 sdcc_include_name
="SDCC_INCLUDE"
8446 printf "%s\n" "#define SDCC_INCLUDE_NAME \"${sdcc_include_name}\"" >>confdefs.h
8449 sdcc_lib_name
="SDCC_LIB"
8451 printf "%s\n" "#define SDCC_LIB_NAME \"${sdcc_lib_name}\"" >>confdefs.h
8454 # add include guard and custom stuff to sdccconf.h
8458 # Port selection helper
8459 # ===========================================================================
8460 # macro AC_DO_ENABLER()
8461 # $1 used to access enable_$1, e.g. enable_doc
8462 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
8466 # macro AC_DO_DISABLER()
8467 # $1 used to access disable_$1, e.g. ucsim
8468 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
8472 # macro AC_DO_PORT($1, $2, $3, $4)
8473 # $1 used to access enable_$2_port, e.g. sm83
8474 # $2 port name in ports.all and ports.build, e.g. z80
8475 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8479 # macro AC_DO_PORT_ENABLER($1, $2, $3, $4)
8480 # $1 used to access enable_$2_port, e.g. sm83
8481 # $2 port name in ports.all and ports.build, e.g. z80
8482 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8490 SVN_REVISION
="unknown"
8491 if test -d "${srcdir}/.git"; then
8492 GIT_REVISION
=$
( git log
--pretty=format
:'%h' -n 1u )
8493 echo "Found Git repo... $GIT_REVISION"
8494 SVN_REVISION
=$
( git log
-1 |
tail -n1 | cut
-f2 -d @ | cut
-f1 -d" " )
8499 # Now handle the port selection
8500 # ===========================================================================
8501 rm -f ports.all ports.build
8505 # Check whether --enable-mcs51-port was given.
8506 if test ${enable_mcs51_port+y}
8508 enableval
=$enable_mcs51_port;
8512 if test "$enable_mcs51_port" = "no"; then
8515 enable_mcs51_port
="yes"
8520 printf "%s\n" "#define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51" >>confdefs.h
8524 echo mcs51
>>ports.all
8525 if test $OPT_DISABLE_MCS51 = 0; then
8526 echo mcs51
>>ports.build
8530 # Check whether --enable-z80-port was given.
8531 if test ${enable_z80_port+y}
8533 enableval
=$enable_z80_port;
8537 if test "$enable_z80_port" = "no"; then
8540 enable_z80_port
="yes"
8545 printf "%s\n" "#define OPT_DISABLE_Z80 $OPT_DISABLE_Z80" >>confdefs.h
8549 echo z80
>>ports.all
8550 if test $OPT_DISABLE_Z80 = 0; then
8551 echo z80
>>ports.build
8555 # Check whether --enable-z180-port was given.
8556 if test ${enable_z180_port+y}
8558 enableval
=$enable_z180_port;
8562 if test "$enable_z180_port" = "no"; then
8565 enable_z180_port
="yes"
8570 printf "%s\n" "#define OPT_DISABLE_Z180 $OPT_DISABLE_Z180" >>confdefs.h
8574 echo z80
>>ports.all
8575 if test $OPT_DISABLE_Z180 = 0; then
8576 echo z80
>>ports.build
8580 # Check whether --enable-r2k-port was given.
8581 if test ${enable_r2k_port+y}
8583 enableval
=$enable_r2k_port;
8587 if test "$enable_r2k_port" = "no"; then
8590 enable_r2k_port
="yes"
8595 printf "%s\n" "#define OPT_DISABLE_R2K $OPT_DISABLE_R2K" >>confdefs.h
8599 echo z80
>>ports.all
8600 if test $OPT_DISABLE_R2K = 0; then
8601 echo z80
>>ports.build
8605 # Check whether --enable-r2ka-port was given.
8606 if test ${enable_r2ka_port+y}
8608 enableval
=$enable_r2ka_port;
8612 if test "$enable_r2ka_port" = "no"; then
8615 enable_r2ka_port
="yes"
8620 printf "%s\n" "#define OPT_DISABLE_R2KA $OPT_DISABLE_R2KA" >>confdefs.h
8624 echo z80
>>ports.all
8625 if test $OPT_DISABLE_R2KA = 0; then
8626 echo z80
>>ports.build
8630 # Check whether --enable-r3ka-port was given.
8631 if test ${enable_r3ka_port+y}
8633 enableval
=$enable_r3ka_port;
8637 if test "$enable_r3ka_port" = "no"; then
8640 enable_r3ka_port
="yes"
8645 printf "%s\n" "#define OPT_DISABLE_R3KA $OPT_DISABLE_R3KA" >>confdefs.h
8649 echo z80
>>ports.all
8650 if test $OPT_DISABLE_R3KA = 0; then
8651 echo z80
>>ports.build
8655 # Check whether --enable-sm83-port was given.
8656 if test ${enable_sm83_port+y}
8658 enableval
=$enable_sm83_port;
8662 if test "$enable_sm83_port" = "no"; then
8665 enable_sm83_port
="yes"
8670 printf "%s\n" "#define OPT_DISABLE_SM83 $OPT_DISABLE_SM83" >>confdefs.h
8674 echo z80
>>ports.all
8675 if test $OPT_DISABLE_SM83 = 0; then
8676 echo z80
>>ports.build
8680 # Check whether --enable-tlcs90-port was given.
8681 if test ${enable_tlcs90_port+y}
8683 enableval
=$enable_tlcs90_port;
8687 if test "$enable_tlcs90_port" = "no"; then
8688 OPT_DISABLE_TLCS90
=1
8690 enable_tlcs90_port
="yes"
8691 OPT_DISABLE_TLCS90
=0
8695 printf "%s\n" "#define OPT_DISABLE_TLCS90 $OPT_DISABLE_TLCS90" >>confdefs.h
8699 echo z80
>>ports.all
8700 if test $OPT_DISABLE_TLCS90 = 0; then
8701 echo z80
>>ports.build
8705 # Check whether --enable-ez80_z80-port was given.
8706 if test ${enable_ez80_z80_port+y}
8708 enableval
=$enable_ez80_z80_port;
8712 if test "$enable_ez80_z80_port" = "no"; then
8713 OPT_DISABLE_EZ80_Z80
=1
8715 enable_ez80_z80_port
="yes"
8716 OPT_DISABLE_EZ80_Z80
=0
8720 printf "%s\n" "#define OPT_DISABLE_EZ80_Z80 $OPT_DISABLE_EZ80_Z80" >>confdefs.h
8724 echo z80
>>ports.all
8725 if test $OPT_DISABLE_EZ80_Z80 = 0; then
8726 echo z80
>>ports.build
8730 # Check whether --enable-z80n-port was given.
8731 if test ${enable_z80n_port+y}
8733 enableval
=$enable_z80n_port;
8737 if test "$enable_z80n_port" = "no"; then
8740 enable_z80n_port
="yes"
8745 printf "%s\n" "#define OPT_DISABLE_Z80N $OPT_DISABLE_Z80N" >>confdefs.h
8749 echo z80
>>ports.all
8750 if test $OPT_DISABLE_Z80N = 0; then
8751 echo z80
>>ports.build
8755 # Check whether --enable-r800-port was given.
8756 if test ${enable_r800_port+y}
8758 enableval
=$enable_r800_port;
8762 if test "$enable_r800_port" = "no"; then
8765 enable_r800_port
="yes"
8770 printf "%s\n" "#define OPT_DISABLE_R800 $OPT_DISABLE_R800" >>confdefs.h
8774 echo z80
>>ports.all
8775 if test $OPT_DISABLE_R800 = 0; then
8776 echo z80
>>ports.build
8780 # Check whether --enable-ds390-port was given.
8781 if test ${enable_ds390_port+y}
8783 enableval
=$enable_ds390_port;
8787 if test "$enable_ds390_port" = "no"; then
8790 enable_ds390_port
="yes"
8795 printf "%s\n" "#define OPT_DISABLE_DS390 $OPT_DISABLE_DS390" >>confdefs.h
8799 echo ds390
>>ports.all
8800 if test $OPT_DISABLE_DS390 = 0; then
8801 echo ds390
>>ports.build
8805 printf "%s\n" "#define OPT_DISABLE_TININative $OPT_DISABLE_DS390" >>confdefs.h
8808 # Check whether --enable-ds400-port was given.
8809 if test ${enable_ds400_port+y}
8811 enableval
=$enable_ds400_port;
8815 if test "$enable_ds400_port" = "no"; then
8818 enable_ds400_port
="yes"
8823 printf "%s\n" "#define OPT_DISABLE_DS400 $OPT_DISABLE_DS400" >>confdefs.h
8827 echo ds390
>>ports.all
8828 if test $OPT_DISABLE_DS400 = 0; then
8829 echo ds390
>>ports.build
8833 # Check whether --enable-pic14-port was given.
8834 if test ${enable_pic14_port+y}
8836 enableval
=$enable_pic14_port;
8840 if test "$enable_pic14_port" = "no"; then
8843 enable_pic14_port
="yes"
8848 printf "%s\n" "#define OPT_DISABLE_PIC14 $OPT_DISABLE_PIC14" >>confdefs.h
8852 echo pic14
>>ports.all
8853 if test $OPT_DISABLE_PIC14 = 0; then
8854 echo pic14
>>ports.build
8858 # Check whether --enable-pic16-port was given.
8859 if test ${enable_pic16_port+y}
8861 enableval
=$enable_pic16_port;
8865 if test "$enable_pic16_port" = "no"; then
8868 enable_pic16_port
="yes"
8873 printf "%s\n" "#define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16" >>confdefs.h
8877 echo pic16
>>ports.all
8878 if test $OPT_DISABLE_PIC16 = 0; then
8879 echo pic16
>>ports.build
8883 # Check whether --enable-hc08-port was given.
8884 if test ${enable_hc08_port+y}
8886 enableval
=$enable_hc08_port;
8890 if test "$enable_hc08_port" = "no"; then
8893 enable_hc08_port
="yes"
8898 printf "%s\n" "#define OPT_DISABLE_HC08 $OPT_DISABLE_HC08" >>confdefs.h
8902 echo hc08
>>ports.all
8903 if test $OPT_DISABLE_HC08 = 0; then
8904 echo hc08
>>ports.build
8908 # Check whether --enable-s08-port was given.
8909 if test ${enable_s08_port+y}
8911 enableval
=$enable_s08_port;
8915 if test "$enable_s08_port" = "no"; then
8918 enable_s08_port
="yes"
8923 printf "%s\n" "#define OPT_DISABLE_S08 $OPT_DISABLE_S08" >>confdefs.h
8927 echo hc08
>>ports.all
8928 if test $OPT_DISABLE_S08 = 0; then
8929 echo hc08
>>ports.build
8933 # Check whether --enable-stm8-port was given.
8934 if test ${enable_stm8_port+y}
8936 enableval
=$enable_stm8_port;
8940 if test "$enable_stm8_port" = "no"; then
8943 enable_stm8_port
="yes"
8948 printf "%s\n" "#define OPT_DISABLE_STM8 $OPT_DISABLE_STM8" >>confdefs.h
8952 echo stm8
>>ports.all
8953 if test $OPT_DISABLE_STM8 = 0; then
8954 echo stm8
>>ports.build
8958 # Check whether --enable-pdk13-port was given.
8959 if test ${enable_pdk13_port+y}
8961 enableval
=$enable_pdk13_port;
8965 if test "$enable_pdk13_port" = "no"; then
8968 enable_pdk13_port
="yes"
8973 printf "%s\n" "#define OPT_DISABLE_PDK13 $OPT_DISABLE_PDK13" >>confdefs.h
8977 echo pdk
>>ports.all
8978 if test $OPT_DISABLE_PDK13 = 0; then
8979 echo pdk
>>ports.build
8983 # Check whether --enable-pdk14-port was given.
8984 if test ${enable_pdk14_port+y}
8986 enableval
=$enable_pdk14_port;
8990 if test "$enable_pdk14_port" = "no"; then
8993 enable_pdk14_port
="yes"
8998 printf "%s\n" "#define OPT_DISABLE_PDK14 $OPT_DISABLE_PDK14" >>confdefs.h
9002 echo pdk
>>ports.all
9003 if test $OPT_DISABLE_PDK14 = 0; then
9004 echo pdk
>>ports.build
9008 # Check whether --enable-pdk15-port was given.
9009 if test ${enable_pdk15_port+y}
9011 enableval
=$enable_pdk15_port;
9015 if test "$enable_pdk15_port" = "no"; then
9018 enable_pdk15_port
="yes"
9023 printf "%s\n" "#define OPT_DISABLE_PDK15 $OPT_DISABLE_PDK15" >>confdefs.h
9027 echo pdk
>>ports.all
9028 if test $OPT_DISABLE_PDK15 = 0; then
9029 echo pdk
>>ports.build
9033 # Check whether --enable-pdk16-port was given.
9034 if test ${enable_pdk16_port+y}
9036 enableval
=$enable_pdk16_port;
9040 if test "$enable_pdk16_port" = "yes"; then
9043 enable_pdk16_port
="no"
9048 printf "%s\n" "#define OPT_DISABLE_PDK16 $OPT_DISABLE_PDK16" >>confdefs.h
9052 echo pdk
>>ports.all
9053 if test $OPT_DISABLE_PDK16 = 0; then
9054 echo pdk
>>ports.build
9058 # Check whether --enable-mos6502-port was given.
9059 if test ${enable_mos6502_port+y}
9061 enableval
=$enable_mos6502_port;
9065 if test "$enable_mos6502_port" = "no"; then
9066 OPT_DISABLE_MOS6502
=1
9068 enable_mos6502_port
="yes"
9069 OPT_DISABLE_MOS6502
=0
9073 printf "%s\n" "#define OPT_DISABLE_MOS6502 $OPT_DISABLE_MOS6502" >>confdefs.h
9077 echo mos6502
>>ports.all
9078 if test $OPT_DISABLE_MOS6502 = 0; then
9079 echo mos6502
>>ports.build
9083 # Check whether --enable-mos65c02-port was given.
9084 if test ${enable_mos65c02_port+y}
9086 enableval
=$enable_mos65c02_port;
9090 if test "$enable_mos65c02_port" = "no"; then
9091 OPT_DISABLE_MOS65C02
=1
9093 enable_mos65c02_port
="yes"
9094 OPT_DISABLE_MOS65C02
=0
9098 printf "%s\n" "#define OPT_DISABLE_MOS65C02 $OPT_DISABLE_MOS65C02" >>confdefs.h
9102 echo mos6502
>>ports.all
9103 if test $OPT_DISABLE_MOS65C02 = 0; then
9104 echo mos6502
>>ports.build
9108 # Check whether --enable-f8-port was given.
9109 if test ${enable_f8_port+y}
9111 enableval
=$enable_f8_port;
9115 if test "$enable_f8_port" = "no"; then
9118 enable_f8_port
="yes"
9123 printf "%s\n" "#define OPT_DISABLE_F8 $OPT_DISABLE_F8" >>confdefs.h
9128 if test $OPT_DISABLE_F8 = 0; then
9129 echo f8
>>ports.build
9133 # Unsupported targets
9134 ####AC_DO_PORT_ENABLER(avr, avr, AVR, [Includes the AVR port (disabled by default)])
9137 printf "%s\n" "#define OPT_DISABLE_AVR ${OPT_DISABLE_AVR}" >>confdefs.h
9142 # Check whether --enable-ucsim was given.
9143 if test ${enable_ucsim+y}
9145 enableval
=$enable_ucsim;
9149 arg1
=`echo ucsim | sed s/-/_/`
9151 if test "`eval echo \\$enable_$arg1`" = "no"; then
9158 printf "%s\n" "#define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM" >>confdefs.h
9163 # Check whether --enable-device-lib was given.
9164 if test ${enable_device_lib+y}
9166 enableval
=$enable_device_lib;
9170 arg1
=`echo device-lib | sed s/-/_/`
9172 if test "`eval echo \\$enable_$arg1`" = "no"; then
9173 OPT_DISABLE_DEVICE_LIB
=1
9175 OPT_DISABLE_DEVICE_LIB
=0
9179 printf "%s\n" "#define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB" >>confdefs.h
9184 # Check whether --enable-packihx was given.
9185 if test ${enable_packihx+y}
9187 enableval
=$enable_packihx;
9191 arg1
=`echo packihx | sed s/-/_/`
9193 if test "`eval echo \\$enable_$arg1`" = "no"; then
9194 OPT_DISABLE_PACKIHX
=1
9196 OPT_DISABLE_PACKIHX
=0
9200 printf "%s\n" "#define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX" >>confdefs.h
9205 # Check whether --enable-sdcpp was given.
9206 if test ${enable_sdcpp+y}
9208 enableval
=$enable_sdcpp;
9212 arg1
=`echo sdcpp | sed s/-/_/`
9214 if test "`eval echo \\$enable_$arg1`" = "no"; then
9221 printf "%s\n" "#define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP" >>confdefs.h
9226 # Check whether --enable-sdcdb was given.
9227 if test ${enable_sdcdb+y}
9229 enableval
=$enable_sdcdb;
9233 arg1
=`echo sdcdb | sed s/-/_/`
9235 if test "`eval echo \\$enable_$arg1`" = "no"; then
9242 printf "%s\n" "#define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB" >>confdefs.h
9247 # Check whether --enable-sdbinutils was given.
9248 if test ${enable_sdbinutils+y}
9250 enableval
=$enable_sdbinutils;
9254 arg1
=`echo sdbinutils | sed s/-/_/`
9256 if test "`eval echo \\$enable_$arg1`" = "no"; then
9257 OPT_DISABLE_SDBINUTILS
=1
9259 OPT_DISABLE_SDBINUTILS
=0
9263 printf "%s\n" "#define OPT_DISABLE_SDBINUTILS $OPT_DISABLE_SDBINUTILS" >>confdefs.h
9268 # Check whether --enable-non-free was given.
9269 if test ${enable_non_free+y}
9271 enableval
=$enable_non_free;
9275 arg1
=`echo non-free | sed s/-/_/`
9277 if test "`eval echo \\$enable_$arg1`" = "no"; then
9278 OPT_DISABLE_NON_FREE
=1
9280 OPT_DISABLE_NON_FREE
=0
9284 printf "%s\n" "#define OPT_DISABLE_NON_FREE $OPT_DISABLE_NON_FREE" >>confdefs.h
9290 # Check whether --enable-doc was given.
9291 if test ${enable_doc+y}
9293 enableval
=$enable_doc;
9297 if test "$enable_doc" = "yes"; then
9304 printf "%s\n" "#define OPT_ENABLE_DOC $OPT_ENABLE_DOC" >>confdefs.h
9308 # Extract the first word of "lyx", so it can be a program name with args.
9309 set dummy lyx
; ac_word
=$2
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311 printf %s
"checking for $ac_word... " >&6; }
9312 if test ${ac_cv_prog_LYX+y}
9314 printf %s
"(cached) " >&6
9316 if test -n "$LYX"; then
9317 ac_cv_prog_LYX
="$LYX" # Let the user override the test.
9319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9323 case $as_dir in #(((
9326 *) as_dir
=$as_dir/ ;;
9328 for ac_exec_ext
in '' $ac_executable_extensions; do
9329 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9330 ac_cv_prog_LYX
="lyx"
9331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9338 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX
=":"
9342 if test -n "$LYX"; then
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LYX" >&5
9344 printf "%s\n" "$LYX" >&6; }
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 printf "%s\n" "no" >&6; }
9351 # Extract the first word of "latex2html", so it can be a program name with args.
9352 set dummy latex2html
; ac_word
=$2
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9354 printf %s
"checking for $ac_word... " >&6; }
9355 if test ${ac_cv_prog_LATEX2HTML+y}
9357 printf %s
"(cached) " >&6
9359 if test -n "$LATEX2HTML"; then
9360 ac_cv_prog_LATEX2HTML
="$LATEX2HTML" # Let the user override the test.
9362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9366 case $as_dir in #(((
9369 *) as_dir
=$as_dir/ ;;
9371 for ac_exec_ext
in '' $ac_executable_extensions; do
9372 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9373 ac_cv_prog_LATEX2HTML
="latex2html"
9374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9381 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML
=":"
9384 LATEX2HTML
=$ac_cv_prog_LATEX2HTML
9385 if test -n "$LATEX2HTML"; then
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
9387 printf "%s\n" "$LATEX2HTML" >&6; }
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 printf "%s\n" "no" >&6; }
9394 # Extract the first word of "latex", so it can be a program name with args.
9395 set dummy latex
; ac_word
=$2
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9397 printf %s
"checking for $ac_word... " >&6; }
9398 if test ${ac_cv_prog_LATEX+y}
9400 printf %s
"(cached) " >&6
9402 if test -n "$LATEX"; then
9403 ac_cv_prog_LATEX
="$LATEX" # Let the user override the test.
9405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9409 case $as_dir in #(((
9412 *) as_dir
=$as_dir/ ;;
9414 for ac_exec_ext
in '' $ac_executable_extensions; do
9415 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9416 ac_cv_prog_LATEX
="latex"
9417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9424 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX
=":"
9427 LATEX
=$ac_cv_prog_LATEX
9428 if test -n "$LATEX"; then
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
9430 printf "%s\n" "$LATEX" >&6; }
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 printf "%s\n" "no" >&6; }
9437 # Extract the first word of "dvipdfm", so it can be a program name with args.
9438 set dummy dvipdfm
; ac_word
=$2
9439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 printf %s
"checking for $ac_word... " >&6; }
9441 if test ${ac_cv_prog_DVIPDFM+y}
9443 printf %s
"(cached) " >&6
9445 if test -n "$DVIPDFM"; then
9446 ac_cv_prog_DVIPDFM
="$DVIPDFM" # Let the user override the test.
9448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9452 case $as_dir in #(((
9455 *) as_dir
=$as_dir/ ;;
9457 for ac_exec_ext
in '' $ac_executable_extensions; do
9458 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9459 ac_cv_prog_DVIPDFM
="dvipdfm"
9460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9467 test -z "$ac_cv_prog_DVIPDFM" && ac_cv_prog_DVIPDFM
=":"
9470 DVIPDFM
=$ac_cv_prog_DVIPDFM
9471 if test -n "$DVIPDFM"; then
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIPDFM" >&5
9473 printf "%s\n" "$DVIPDFM" >&6; }
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 printf "%s\n" "no" >&6; }
9480 # Extract the first word of "pdflatex", so it can be a program name with args.
9481 set dummy pdflatex
; ac_word
=$2
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 printf %s
"checking for $ac_word... " >&6; }
9484 if test ${ac_cv_prog_PDFLATEX+y}
9486 printf %s
"(cached) " >&6
9488 if test -n "$PDFLATEX"; then
9489 ac_cv_prog_PDFLATEX
="$PDFLATEX" # Let the user override the test.
9491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9495 case $as_dir in #(((
9498 *) as_dir
=$as_dir/ ;;
9500 for ac_exec_ext
in '' $ac_executable_extensions; do
9501 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9502 ac_cv_prog_PDFLATEX
="pdflatex"
9503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9510 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX
=":"
9513 PDFLATEX
=$ac_cv_prog_PDFLATEX
9514 if test -n "$PDFLATEX"; then
9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
9516 printf "%s\n" "$PDFLATEX" >&6; }
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 printf "%s\n" "no" >&6; }
9523 # Extract the first word of "makeindex", so it can be a program name with args.
9524 set dummy makeindex
; ac_word
=$2
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 printf %s
"checking for $ac_word... " >&6; }
9527 if test ${ac_cv_prog_MAKEINDEX+y}
9529 printf %s
"(cached) " >&6
9531 if test -n "$MAKEINDEX"; then
9532 ac_cv_prog_MAKEINDEX
="$MAKEINDEX" # Let the user override the test.
9534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9538 case $as_dir in #(((
9541 *) as_dir
=$as_dir/ ;;
9543 for ac_exec_ext
in '' $ac_executable_extensions; do
9544 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9545 ac_cv_prog_MAKEINDEX
="makeindex"
9546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9553 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX
=":"
9556 MAKEINDEX
=$ac_cv_prog_MAKEINDEX
9557 if test -n "$MAKEINDEX"; then
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
9559 printf "%s\n" "$MAKEINDEX" >&6; }
9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 printf "%s\n" "no" >&6; }
9567 if test $OPT_ENABLE_DOC = 1; then
9568 if test "$LYX" = ":"; then
9569 as_fn_error $?
"Cannot find required program lyx." "$LINENO" 5
9572 if test "$LATEX2HTML" = ":"; then
9573 as_fn_error $?
"Cannot find required program latex2html." "$LINENO" 5
9576 if test "$LATEX" = ":"; then
9577 as_fn_error $?
"Cannot find required program latex." "$LINENO" 5
9580 if test "$DVIPDFM" = ":"; then
9581 as_fn_error $?
"Cannot find required program dvipdfm." "$LINENO" 5
9584 if test "$MAKEINDEX" = ":"; then
9585 as_fn_error $?
"Cannot find required program makeindex." "$LINENO" 5
9591 # Check whether --enable-libgc was given.
9592 if test ${enable_libgc+y}
9594 enableval
=$enable_libgc;
9598 if test "$enable_libgc" = "yes"; then
9605 printf "%s\n" "#define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC" >>confdefs.h
9609 if test $OPT_ENABLE_LIBGC = 1; then
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GC_malloc in -lgc" >&5
9611 printf %s
"checking for GC_malloc in -lgc... " >&6; }
9612 if test ${ac_cv_lib_gc_GC_malloc+y}
9614 printf %s
"(cached) " >&6
9616 ac_check_lib_save_LIBS
=$LIBS
9618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9621 /* Override any GCC internal prototype to avoid an error.
9622 Use char because int might match the return type of a GCC
9623 builtin and then its argument prototype would still apply. */
9628 return GC_malloc ();
9633 if ac_fn_c_try_link
"$LINENO"
9635 ac_cv_lib_gc_GC_malloc
=yes
9637 ac_cv_lib_gc_GC_malloc
=no
9639 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9640 conftest
$ac_exeext conftest.
$ac_ext
9641 LIBS
=$ac_check_lib_save_LIBS
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_malloc" >&5
9644 printf "%s\n" "$ac_cv_lib_gc_GC_malloc" >&6; }
9645 if test "x$ac_cv_lib_gc_GC_malloc" = xyes
9647 printf "%s\n" "#define HAVE_LIBGC 1" >>confdefs.h
9653 if test $ac_cv_lib_gc_GC_malloc = no
; then
9654 as_fn_error $?
"Cannot find library libgc with Bohem memory allocator." "$LINENO" 5
9659 uniq ports.all ports
9661 uniq ports.build ports
9662 mv ports ports.build
9664 # Generating output files
9665 # ===========================================================================
9666 test $OPT_DISABLE_SDCPP = 0 &&
9668 subdirs
="$subdirs support/cpp"
9670 test $OPT_DISABLE_PACKIHX = 0 && subdirs
="$subdirs support/packihx"
9672 test $OPT_DISABLE_UCSIM = 0 && subdirs
="$subdirs sim/ucsim"
9674 test $OPT_DISABLE_SDCDB = 0 && subdirs
="$subdirs debugger/mcs51"
9676 test $OPT_DISABLE_SDBINUTILS = 0 && subdirs
="$subdirs support/sdbinutils"
9678 ac_config_files
="$ac_config_files doc/Makefile"
9681 ####test $OPT_DISABLE_AVR = 0 && AC_CONFIG_FILES([src/avr/Makefile])
9683 if test $OPT_DISABLE_DS390 = 0 ||
test $OPT_DISABLE_DS400; then
9684 ac_config_files
="$ac_config_files src/ds390/Makefile sdas/as8xcxxx/Makefile"
9686 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/ds390/Makefile device/lib/ds400/Makefile"
9690 if test $OPT_DISABLE_HC08 = 0 ||
test $OPT_DISABLE_S08 = 0; then
9691 ac_config_files
="$ac_config_files src/hc08/Makefile sdas/as6808/Makefile"
9693 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"
9697 if test $OPT_DISABLE_MOS6502 = 0 ||
test $OPT_DISABLE_MOS65C02 = 0; then
9698 ac_config_files
="$ac_config_files src/mos6502/Makefile sdas/as6500/Makefile"
9700 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"
9704 if test $OPT_DISABLE_MCS51 = 0; then
9705 ac_config_files
="$ac_config_files src/mcs51/Makefile sdas/as8051/Makefile"
9707 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"
9711 if test $OPT_DISABLE_PIC14 = 0; then
9712 ac_config_files
="$ac_config_files src/pic14/Makefile"
9714 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/lib/pic14"
9717 if test $OPT_DISABLE_PIC14 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9718 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/non-free/lib/pic14"
9721 if test $OPT_DISABLE_PIC16 = 0; then
9722 ac_config_files
="$ac_config_files src/pic16/Makefile"
9724 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/lib/pic16"
9727 if test $OPT_DISABLE_PIC16 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9728 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/non-free/lib/pic16"
9732 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
9733 ac_config_files
="$ac_config_files src/z80/Makefile"
9737 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
9738 ac_config_files
="$ac_config_files sdas/asz80/Makefile"
9740 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"
9744 if test $OPT_DISABLE_R2K = 0 ||
test $OPT_DISABLE_R2KA = 0 ||
test $OPT_DISABLE_R3KA = 0; then
9745 ac_config_files
="$ac_config_files sdas/asrab/Makefile"
9747 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/r2k/Makefile device/lib/r2ka/Makefile device/lib/r3ka/Makefile"
9751 if test $OPT_DISABLE_TLCS90 = 0; then
9752 ac_config_files
="$ac_config_files sdas/astlcs90/Makefile"
9754 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/tlcs90/Makefile"
9758 if test $OPT_DISABLE_SM83 = 0; then
9759 ac_config_files
="$ac_config_files sdas/asgb/Makefile"
9761 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/sm83/Makefile"
9765 if test $OPT_DISABLE_STM8 = 0; then
9766 ac_config_files
="$ac_config_files src/stm8/Makefile sdas/asstm8/Makefile"
9768 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/stm8/Makefile device/lib/stm8-large/Makefile"
9772 if test $OPT_DISABLE_PDK13 = 0 ||
test $OPT_DISABLE_PDK14 = 0 ||
test $OPT_DISABLE_PDK15 = 0 ||
test $OPT_DISABLE_PDK16 = 0; then
9773 ac_config_files
="$ac_config_files src/pdk/Makefile"
9777 if test $OPT_DISABLE_PDK13 = 0; then
9778 ac_config_files
="$ac_config_files sdas/aspdk13/Makefile"
9780 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/pdk13/Makefile"
9784 if test $OPT_DISABLE_PDK14 = 0; then
9785 ac_config_files
="$ac_config_files sdas/aspdk14/Makefile"
9787 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/pdk14/Makefile"
9791 if test $OPT_DISABLE_PDK15 = 0; then
9792 ac_config_files
="$ac_config_files sdas/aspdk15/Makefile"
9794 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/pdk15/Makefile device/lib/pdk15-stack-auto/Makefile"
9798 if test $OPT_DISABLE_PDK16 = 0; then
9799 ac_config_files
="$ac_config_files sdas/aspdk16/Makefile"
9803 if test $OPT_DISABLE_F8 = 0; then
9804 ac_config_files
="$ac_config_files src/f8/Makefile sdas/asf8/Makefile"
9806 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/f8/Makefile"
9810 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/Makefile"
9812 test $OPT_DISABLE_DEVICE_LIB = 0 && test $OPT_DISABLE_NON_FREE = 0 && ac_config_files
="$ac_config_files device/non-free/lib/Makefile"
9815 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"
9817 ac_config_files
="$ac_config_files bin/sdcc"
9819 ac_config_files
="$ac_config_files bin/sdcpp"
9821 ac_config_files
="$ac_config_files bin/sdar"
9823 ac_config_files
="$ac_config_files bin/sdnm"
9825 ac_config_files
="$ac_config_files bin/sdranlib"
9827 ac_config_files
="$ac_config_files bin/sdobjcopy"
9829 if test $OPT_DISABLE_NON_FREE = 0; then
9830 ac_config_files
="$ac_config_files device/non-free/include/Makefile"
9833 cat >confcache
<<\_ACEOF
9834 # This file is a shell script that caches the results of configure
9835 # tests run on this system so they can be shared between configure
9836 # scripts and configure runs, see configure's option --config-cache.
9837 # It is not useful on other systems. If it contains results you don't
9838 # want to keep, you may remove or edit it.
9840 # config.status only pays attention to the cache file if you give it
9841 # the --recheck option to rerun configure.
9843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9849 # The following way of writing the cache mishandles newlines in values,
9850 # but we know of no workaround that is simple, portable, and efficient.
9851 # So, we kill variables containing newlines.
9852 # Ultrix sh set writes to stderr and can't be redirected directly,
9853 # and sets the high bit in the cache file unless we assign to the vars.
9855 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9856 eval ac_val
=\$
$ac_var
9860 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9861 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9864 _ | IFS | as_nl
) ;; #(
9865 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9866 *) { eval $ac_var=; unset $ac_var;} ;;
9872 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9873 *${as_nl}ac_space
=\
*)
9874 # `set' does not quote correctly, so add quotes: double-quote
9875 # substitution turns \\\\ into \\, and sed turns \\ into \.
9878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9881 # `set' quotes correctly as required by POSIX, so do not add quotes.
9882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9891 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9895 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9896 if test -w "$cache_file"; then
9897 if test "x$cache_file" != "x/dev/null"; then
9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9899 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9900 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9901 cat confcache
>"$cache_file"
9903 case $cache_file in #(
9905 mv -f confcache
"$cache_file"$$
&&
9906 mv -f "$cache_file"$$
"$cache_file" ;; #(
9908 mv -f confcache
"$cache_file" ;;
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9914 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9919 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9920 # Let make expand exec_prefix.
9921 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9923 DEFS
=-DHAVE_CONFIG_H
9928 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9929 # 1. Remove the extension, and $U if already installed.
9930 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9931 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9933 # will be set to the directory where LIBOBJS objects are built.
9934 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9935 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9939 LTLIBOBJS
=$ac_ltlibobjs
9944 : "${CONFIG_STATUS=./config.status}"
9946 ac_clean_files_save
=$ac_clean_files
9947 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9949 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9951 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9953 # Generated by $as_me.
9954 # Run this file to recreate the current configuration.
9955 # Compiler output produced by configure, useful for debugging
9956 # configure, is in config.log if it exists.
9962 SHELL=\${CONFIG_SHELL-$SHELL}
9965 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9966 ## -------------------- ##
9967 ## M4sh Initialization. ##
9968 ## -------------------- ##
9970 # Be more Bourne compatible
9971 DUALCASE
=1; export DUALCASE
# for MKS sh
9973 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
9977 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9978 # is contrary to our usage. Disable this feature.
9979 alias -g '${1+"$@"}'='"$@"'
9980 setopt NO_GLOB_SUBST
9982 case `(set -o) 2>/dev/null` in #(
9992 # Reset variables that may have inherited troublesome values from
9995 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9996 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9997 # side effect of setting IFS to empty, thus disabling word splitting.)
9998 # Quoting is to prevent editors from complaining about space-tab.
10008 # Ensure predictable behavior from utilities with locale-dependent output.
10014 # We cannot yet rely on "unset" to work, but we need these variables
10015 # to be unset--not just set to an empty or harmless value--now, to
10016 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10017 # also avoids known problems related to "unset" and subshell syntax
10018 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10019 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
10020 do eval test \
${$as_var+y} \
10021 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10024 # Ensure that fds 0, 1, and 2 are open.
10025 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
10026 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
10027 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
10029 # The user is always right.
10030 if ${PATH_SEPARATOR+false} :; then
10032 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
10033 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
10039 # Find who we are. Look in the path if we contain no directory separator.
10042 *[\\/]* ) as_myself
=$0 ;;
10043 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10044 for as_dir
in $PATH
10047 case $as_dir in #(((
10050 *) as_dir
=$as_dir/ ;;
10052 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
10058 # We did not find ourselves, most probably we were run as `sh COMMAND'
10059 # in which case we are not to be found in the path.
10060 if test "x$as_myself" = x
; then
10063 if test ! -f "$as_myself"; then
10064 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10070 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10071 # ----------------------------------------
10072 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10073 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10074 # script with STATUS, using 1 if that was 0.
10077 as_status
=$1; test $as_status -eq 0 && as_status
=1
10079 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10082 printf "%s\n" "$as_me: error: $2" >&2
10083 as_fn_exit
$as_status
10088 # as_fn_set_status STATUS
10089 # -----------------------
10090 # Set $? to STATUS, without forking.
10091 as_fn_set_status
()
10094 } # as_fn_set_status
10096 # as_fn_exit STATUS
10097 # -----------------
10098 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10102 as_fn_set_status
$1
10108 # Portably unset VAR.
10111 { eval $1=; unset $1;}
10113 as_unset
=as_fn_unset
10115 # as_fn_append VAR VALUE
10116 # ----------------------
10117 # Append the text in VALUE to the end of the definition contained in VAR. Take
10118 # advantage of any shell optimizations that allow amortized linear growth over
10119 # repeated appends, instead of the typical quadratic growth present in naive
10121 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
10123 eval 'as_fn_append ()
10134 # as_fn_arith ARG...
10135 # ------------------
10136 # Perform arithmetic evaluation on the ARGs, and store the result in the
10137 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10138 # must be portable across $(()) and expr.
10139 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
10141 eval 'as_fn_arith ()
10148 as_val
=`expr "$@" || test $? -eq 1`
10153 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10154 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10160 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10161 as_basename
=basename
10166 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10172 as_me
=`$as_basename -- "$0" ||
10173 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10174 X"$0" : 'X\(//\)$' \| \
10175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10176 printf "%s\n" X/"$0" |
10177 sed '/^.*\/\([^/][^/]*\)\/*$/{
10191 # Avoid depending upon Character Ranges.
10192 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10193 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10194 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10195 as_cr_digits
='0123456789'
10196 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10199 # Determine whether it's possible to make 'echo' print without a newline.
10200 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10201 # for compatibility with existing Makefiles.
10202 ECHO_C
= ECHO_N
= ECHO_T
=
10203 case `echo -n x` in #(((((
10205 case `echo 'xy\c'` in
10206 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10208 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10215 # For backward compatibility with old third-party macros, we provide
10216 # the shell variables $as_echo and $as_echo_n. New code should use
10217 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10218 as_echo
='printf %s\n'
10219 as_echo_n
='printf %s'
10221 rm -f conf$$ conf$$.exe conf$$.
file
10222 if test -d conf$$.dir
; then
10223 rm -f conf$$.dir
/conf$$.
file
10226 mkdir conf$$.dir
2>/dev
/null
10228 if (echo >conf$$.
file) 2>/dev
/null
; then
10229 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10231 # ... but there are two gotchas:
10232 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10233 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10234 # In both cases, we have to default to `cp -pR'.
10235 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10237 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10245 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10246 rmdir conf$$.dir
2>/dev
/null
10251 # Create "$as_dir" as a directory, including parents if necessary.
10256 -*) as_dir
=.
/$as_dir;;
10258 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10262 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10263 *) as_qdir
=$as_dir;;
10265 as_dirs
="'$as_qdir' $as_dirs"
10266 as_dir
=`$as_dirname -- "$as_dir" ||
10267 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10268 X"$as_dir" : 'X\(//\)[^/]' \| \
10269 X"$as_dir" : 'X\(//\)$' \| \
10270 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10271 printf "%s\n" X"$as_dir" |
10272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10276 /^X\(\/\/\)[^/].*/{
10289 test -d "$as_dir" && break
10291 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10292 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10296 if mkdir
-p .
2>/dev
/null
; then
10297 as_mkdir_p
='mkdir -p "$as_dir"'
10299 test -d .
/-p && rmdir .
/-p
10304 # as_fn_executable_p FILE
10305 # -----------------------
10306 # Test if FILE is an executable regular file.
10307 as_fn_executable_p
()
10309 test -f "$1" && test -x "$1"
10310 } # as_fn_executable_p
10311 as_test_x
='test -x'
10312 as_executable_p
=as_fn_executable_p
10314 # Sed expression to map a string onto a valid CPP name.
10315 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10317 # Sed expression to map a string onto a valid variable name.
10318 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10322 ## ----------------------------------- ##
10323 ## Main body of $CONFIG_STATUS script. ##
10324 ## ----------------------------------- ##
10326 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10329 # Save the log message, to keep $0 and so on meaningful, and to
10330 # report actual input values of CONFIG_FILES etc. instead of their
10331 # values after options handling.
10333 This file was extended by $as_me, which was
10334 generated by GNU Autoconf 2.71. Invocation command line was
10336 CONFIG_FILES = $CONFIG_FILES
10337 CONFIG_HEADERS = $CONFIG_HEADERS
10338 CONFIG_LINKS = $CONFIG_LINKS
10339 CONFIG_COMMANDS = $CONFIG_COMMANDS
10342 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10347 case $ac_config_files in *"
10348 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10351 case $ac_config_headers in *"
10352 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10357 # Files that config.status was made for.
10358 config_files="$ac_config_files"
10359 config_headers="$ac_config_headers"
10363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10365 \`$as_me' instantiates files and other configuration actions
10366 from templates according to the current configuration. Unless the files
10367 and actions are specified as TAGs, all are instantiated by default.
10369 Usage: $0 [OPTION]... [TAG]...
10371 -h, --help print this help, then exit
10372 -V, --version print version number and configuration settings, then exit
10373 --config print configuration, then exit
10374 -q, --quiet, --silent
10375 do not print progress messages
10376 -d, --debug don't remove temporary files
10377 --recheck update $as_me by reconfiguring in the same conditions
10378 --file=FILE[:TEMPLATE]
10379 instantiate the configuration file FILE
10380 --header=FILE[:TEMPLATE]
10381 instantiate the configuration header FILE
10383 Configuration files:
10386 Configuration headers:
10389 Report bugs to the package provider."
10392 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10393 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10395 ac_cs_config='$ac_cs_config_escaped'
10398 configured by $0, generated by GNU Autoconf 2.71,
10399 with options \\"\$ac_cs_config\\"
10401 Copyright (C) 2021 Free Software Foundation, Inc.
10402 This config.status script is free software; the Free Software Foundation
10403 gives unlimited permission to copy, distribute and modify it."
10409 test -n "\$AWK" || AWK=awk
10412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10413 # The default lists apply if the user does not specify any file.
10419 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10420 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10424 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10436 # Handling of the options.
10437 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10439 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10440 printf "%s\n" "$ac_cs_version"; exit ;;
10441 --config |
--confi |
--conf |
--con |
--co |
--c )
10442 printf "%s\n" "$ac_cs_config"; exit ;;
10443 --debug |
--debu |
--deb |
--de |
--d |
-d )
10445 --file |
--fil |
--fi |
--f )
10448 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10449 '') as_fn_error $?
"missing file argument" ;;
10451 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10452 ac_need_defaults
=false
;;
10453 --header |
--heade |
--head |
--hea )
10456 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10458 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10459 ac_need_defaults
=false
;;
10461 # Conflict between --help and --header
10462 as_fn_error $?
"ambiguous option: \`$1'
10463 Try \`$0 --help' for more information.";;
10464 --help |
--hel |
-h )
10465 printf "%s\n" "$ac_cs_usage"; exit ;;
10466 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10467 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10470 # This is an error.
10471 -*) as_fn_error $?
"unrecognized option: \`$1'
10472 Try \`$0 --help' for more information." ;;
10474 *) as_fn_append ac_config_targets
" $1"
10475 ac_need_defaults
=false
;;
10481 ac_configure_extra_args
=
10483 if $ac_cs_silent; then
10485 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10490 if \$ac_cs_recheck; then
10491 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10493 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10494 CONFIG_SHELL='$SHELL'
10495 export CONFIG_SHELL
10500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10504 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10505 ## Running $as_me. ##
10507 printf "%s\n" "$ac_log"
10511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10516 # Handling of arguments.
10517 for ac_config_target
in $ac_config_targets
10519 case $ac_config_target in
10520 "sdccconf.h") CONFIG_HEADERS
="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
10521 "sdas/linksrc/asxxxx_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS sdas/linksrc/asxxxx_config.h" ;;
10522 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10523 "src/ds390/Makefile") CONFIG_FILES
="$CONFIG_FILES src/ds390/Makefile" ;;
10524 "sdas/as8xcxxx/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as8xcxxx/Makefile" ;;
10525 "device/lib/ds390/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/ds390/Makefile" ;;
10526 "device/lib/ds400/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/ds400/Makefile" ;;
10527 "src/hc08/Makefile") CONFIG_FILES
="$CONFIG_FILES src/hc08/Makefile" ;;
10528 "sdas/as6808/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as6808/Makefile" ;;
10529 "device/lib/hc08/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/hc08/Makefile" ;;
10530 "device/lib/s08/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/s08/Makefile" ;;
10531 "device/lib/s08-stack-auto/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/s08-stack-auto/Makefile" ;;
10532 "src/mos6502/Makefile") CONFIG_FILES
="$CONFIG_FILES src/mos6502/Makefile" ;;
10533 "sdas/as6500/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as6500/Makefile" ;;
10534 "device/lib/mos6502/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mos6502/Makefile" ;;
10535 "device/lib/mos6502-stack-auto/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mos6502-stack-auto/Makefile" ;;
10536 "device/lib/mos65c02/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mos65c02/Makefile" ;;
10537 "src/mcs51/Makefile") CONFIG_FILES
="$CONFIG_FILES src/mcs51/Makefile" ;;
10538 "sdas/as8051/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as8051/Makefile" ;;
10539 "device/lib/mcs51/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
10540 "device/lib/small/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/small/Makefile" ;;
10541 "device/lib/medium/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/medium/Makefile" ;;
10542 "device/lib/large/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/large/Makefile" ;;
10543 "device/lib/huge/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/huge/Makefile" ;;
10544 "src/pic14/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pic14/Makefile" ;;
10545 "src/pic16/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pic16/Makefile" ;;
10546 "src/z80/Makefile") CONFIG_FILES
="$CONFIG_FILES src/z80/Makefile" ;;
10547 "sdas/asz80/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asz80/Makefile" ;;
10548 "device/lib/z80/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/z80/Makefile" ;;
10549 "device/lib/z180/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/z180/Makefile" ;;
10550 "device/lib/ez80_z80/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/ez80_z80/Makefile" ;;
10551 "device/lib/z80n/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/z80n/Makefile" ;;
10552 "device/lib/r800/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r800/Makefile" ;;
10553 "sdas/asrab/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asrab/Makefile" ;;
10554 "device/lib/r2k/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r2k/Makefile" ;;
10555 "device/lib/r2ka/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r2ka/Makefile" ;;
10556 "device/lib/r3ka/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r3ka/Makefile" ;;
10557 "sdas/astlcs90/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/astlcs90/Makefile" ;;
10558 "device/lib/tlcs90/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/tlcs90/Makefile" ;;
10559 "sdas/asgb/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asgb/Makefile" ;;
10560 "device/lib/sm83/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/sm83/Makefile" ;;
10561 "src/stm8/Makefile") CONFIG_FILES
="$CONFIG_FILES src/stm8/Makefile" ;;
10562 "sdas/asstm8/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asstm8/Makefile" ;;
10563 "device/lib/stm8/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/stm8/Makefile" ;;
10564 "device/lib/stm8-large/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/stm8-large/Makefile" ;;
10565 "src/pdk/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pdk/Makefile" ;;
10566 "sdas/aspdk13/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk13/Makefile" ;;
10567 "device/lib/pdk13/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk13/Makefile" ;;
10568 "sdas/aspdk14/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk14/Makefile" ;;
10569 "device/lib/pdk14/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk14/Makefile" ;;
10570 "sdas/aspdk15/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk15/Makefile" ;;
10571 "device/lib/pdk15/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk15/Makefile" ;;
10572 "device/lib/pdk15-stack-auto/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk15-stack-auto/Makefile" ;;
10573 "sdas/aspdk16/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk16/Makefile" ;;
10574 "src/f8/Makefile") CONFIG_FILES
="$CONFIG_FILES src/f8/Makefile" ;;
10575 "sdas/asf8/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asf8/Makefile" ;;
10576 "device/lib/f8/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/f8/Makefile" ;;
10577 "device/lib/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/Makefile" ;;
10578 "device/non-free/lib/Makefile") CONFIG_FILES
="$CONFIG_FILES device/non-free/lib/Makefile" ;;
10579 "main.mk") CONFIG_FILES
="$CONFIG_FILES main.mk:main_in.mk" ;;
10580 "bin/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/Makefile" ;;
10581 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10582 "device/include/Makefile") CONFIG_FILES
="$CONFIG_FILES device/include/Makefile" ;;
10583 "sdas/linksrc/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/linksrc/Makefile" ;;
10584 "support/makebin/Makefile") CONFIG_FILES
="$CONFIG_FILES support/makebin/Makefile" ;;
10585 "support/regression/Makefile") CONFIG_FILES
="$CONFIG_FILES support/regression/Makefile" ;;
10586 "support/regression/cases/Makefile") CONFIG_FILES
="$CONFIG_FILES support/regression/cases/Makefile" ;;
10587 "support/valdiag/Makefile") CONFIG_FILES
="$CONFIG_FILES support/valdiag/Makefile" ;;
10588 "support/scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES support/scripts/Makefile" ;;
10589 "support/regression/ports/host/spec.mk") CONFIG_FILES
="$CONFIG_FILES support/regression/ports/host/spec.mk:support/regression/ports/host/spec.mk.in" ;;
10590 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10591 "Makefile.common") CONFIG_FILES
="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
10592 "bin/sdcc") CONFIG_FILES
="$CONFIG_FILES bin/sdcc" ;;
10593 "bin/sdcpp") CONFIG_FILES
="$CONFIG_FILES bin/sdcpp" ;;
10594 "bin/sdar") CONFIG_FILES
="$CONFIG_FILES bin/sdar" ;;
10595 "bin/sdnm") CONFIG_FILES
="$CONFIG_FILES bin/sdnm" ;;
10596 "bin/sdranlib") CONFIG_FILES
="$CONFIG_FILES bin/sdranlib" ;;
10597 "bin/sdobjcopy") CONFIG_FILES
="$CONFIG_FILES bin/sdobjcopy" ;;
10598 "device/non-free/include/Makefile") CONFIG_FILES
="$CONFIG_FILES device/non-free/include/Makefile" ;;
10600 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10605 # If the user did not use the arguments to specify the items to instantiate,
10606 # then the envvar interface is used. Set only those that are not.
10607 # We use the long form for the default assignment because of an extremely
10608 # bizarre bug on SunOS 4.1.3.
10609 if $ac_need_defaults; then
10610 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
10611 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
10614 # Have a temporary directory for convenience. Make it in the build tree
10615 # simply because there is no reason against having it here, and in addition,
10616 # creating and moving files from /tmp can sometimes cause problems.
10617 # Hook for its removal unless debugging.
10618 # Note that there is a small window in which the directory will not be cleaned:
10619 # after its creation but before its name has been assigned to `$tmp'.
10623 trap 'exit_status=$?
10624 : "${ac_tmp:=$tmp}"
10625 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10627 trap 'as_fn_exit 1' 1 2 13 15
10629 # Create a (secure) tmp directory for tmp files.
10632 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10636 tmp
=.
/conf$$
-$RANDOM
10637 (umask 077 && mkdir
"$tmp")
10638 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10641 # Set up the scripts for CONFIG_FILES section.
10642 # No need to generate them if there are no CONFIG_FILES.
10643 # This happens for instance with `./config.status config.h'.
10644 if test -n "$CONFIG_FILES"; then
10647 ac_cr
=`echo X | tr X '\015'`
10648 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10649 # But we know of no other shell where ac_cr would be empty at this
10650 # point, so we can use a bashism as a fallback.
10651 if test "x$ac_cr" = x
; then
10652 eval ac_cr
=\$
\'\\r
\'
10654 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10655 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10658 ac_cs_awk_cr
=$ac_cr
10661 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10666 echo "cat >conf$$subs.awk <<_ACEOF" &&
10667 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10669 } >conf$$subs.sh ||
10670 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10671 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10673 for ac_last_try in false false false false false :; do
10674 . ./conf$$subs.sh ||
10675 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10677 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10678 if test $ac_delim_n = $ac_delim_num; then
10680 elif $ac_last_try; then
10681 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10683 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10686 rm -f conf$$subs.sh
10688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10689 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10693 s/^/S["/; s
/!.
*/"]=/
10703 s/\(.\{148\}\)..*/\1/
10705 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10710 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10717 s/\(.\{148\}\)..*/\1/
10719 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10723 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10728 ' <conf$$subs.awk | sed '
10733 ' >>$CONFIG_STATUS || ac_write_fail=1
10734 rm -f conf$$subs.awk
10735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10737 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10738 for (key in S) S_is_set[key] = 1
10744 nfields = split(line, field, "@
")
10746 len = length(field[1])
10747 for (i = 2; i < nfields; i++) {
10749 keylen = length(key)
10750 if (S_is_set[key]) {
10752 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10753 len += length(value) + length(field[++i])
10764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10765 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10766 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10769 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10770 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10773 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10774 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10775 # trailing colons and then remove the whole line if VPATH becomes empty
10776 # (actually we leave an empty line to preserve line numbers).
10777 if test "x
$srcdir" = x.; then
10778 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10797 fi # test -n "$CONFIG_FILES"
10799 # Set up the scripts for CONFIG_HEADERS section.
10800 # No need to generate them if there are no CONFIG_HEADERS.
10801 # This happens for instance with `./config.status Makefile'.
10802 if test -n "$CONFIG_HEADERS"; then
10803 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10807 # Transform confdefs.h into an awk script `defines.awk', embedded as
10808 # here-document in config.status, that substitutes the proper values into
10809 # config.h.in to produce config.h.
10811 # Create a delimiter string that does not exist in confdefs.h, to ease
10812 # handling of long lines.
10814 for ac_last_try in false false :; do
10815 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10816 if test -z "$ac_tt"; then
10818 elif $ac_last_try; then
10819 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10821 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10825 # For the awk script, D is an array of macro values keyed by name,
10826 # likewise P contains macro parameters if any. Preserve backslash
10827 # newline sequences.
10829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10831 s/.\{148\}/&'"$ac_delim"'/g
10834 s/^[ ]*#[ ]*define[ ][ ]*/ /
10841 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10843 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10848 D["\
1"]=" \
3\\\\\\n
"\\/p
10850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10855 s/.\{148\}/&'"$ac_delim"'/g
10860 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10863 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10865 ' <confdefs.h | sed '
10866 s/'"$ac_delim"'/"\\\
10867 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10870 for (key in D) D_is_set[key] = 1
10873 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10875 split(line, arg, " ")
10876 if (arg[1] == "#") {
10880 defundef
= substr
(arg
[1], 2)
10883 split(mac1
, mac2
, "(") #)
10885 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10886 if (D_is_set
[macro
]) {
10887 # Preserve the white space surrounding the "#".
10888 print prefix
"define", macro P
[macro
] D
[macro
]
10891 # Replace #undef with comments. This is necessary, for example,
10892 # in the case of _POSIX_SOURCE, which is predefined and required
10893 # on some systems where configure will not decide to define it.
10894 if (defundef
== "undef") {
10895 print
"/*", prefix defundef
, macro
, "*/"
10903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10904 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10905 fi # test -n "$CONFIG_HEADERS"
10908 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10913 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10915 case $ac_mode$ac_tag in
10917 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10918 :[FH
]-) ac_tag
=-:-;;
10919 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10936 -) ac_f
="$ac_tmp/stdin";;
10937 *) # Look for the file first in the build tree, then in the source tree
10938 # (if the path is not absolute). The absolute path cannot be DOS-style,
10939 # because $ac_f cannot contain `:'.
10943 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10945 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10947 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10948 as_fn_append ac_file_inputs
" '$ac_f'"
10951 # Let's still pretend it is `configure' which instantiates (i.e., don't
10952 # use $as_me), people would be surprised to read:
10953 # /* config.h. Generated by config.status. */
10954 configure_input
='Generated from '`
10955 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10957 if test x
"$ac_file" != x-
; then
10958 configure_input
="$ac_file. $configure_input"
10959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10960 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10962 # Neutralize special characters interpreted by sed in replacement strings.
10963 case $configure_input in #(
10964 *\
&* |
*\|
* |
*\\* )
10965 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
10966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10967 *) ac_sed_conf_input
=$configure_input;;
10971 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10972 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10977 ac_dir
=`$as_dirname -- "$ac_file" ||
10978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10979 X"$ac_file" : 'X\(//\)[^/]' \| \
10980 X"$ac_file" : 'X\(//\)$' \| \
10981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10982 printf "%s\n" X"$ac_file" |
10983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10987 /^X\(\/\/\)[^/].*/{
11000 as_dir
="$ac_dir"; as_fn_mkdir_p
11004 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11006 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11007 # A ".." for each directory in $ac_dir_suffix.
11008 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11009 case $ac_top_builddir_sub in
11010 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11011 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11014 ac_abs_top_builddir
=$ac_pwd
11015 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11016 # for backward compatibility:
11017 ac_top_builddir
=$ac_top_build_prefix
11020 .
) # We are building in place.
11022 ac_top_srcdir
=$ac_top_builddir_sub
11023 ac_abs_top_srcdir
=$ac_pwd ;;
11024 [\\/]* | ?
:[\\/]* ) # Absolute name.
11025 ac_srcdir
=$srcdir$ac_dir_suffix;
11026 ac_top_srcdir
=$srcdir
11027 ac_abs_top_srcdir
=$srcdir ;;
11028 *) # Relative name.
11029 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11030 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11031 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11033 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11043 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11044 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11049 # If the template does not know about datarootdir, expand it.
11050 # FIXME: This hack should be removed a few years after 2.60.
11051 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11062 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11063 *datarootdir
*) ac_datarootdir_seen
=yes;;
11064 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11066 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11069 ac_datarootdir_hack='
11070 s&@datadir@&$datadir&g
11071 s&@docdir@&$docdir&g
11072 s&@infodir@&$infodir&g
11073 s&@localedir@&$localedir&g
11074 s&@mandir@&$mandir&g
11075 s&\\\${datarootdir}&$datarootdir&g' ;;
11079 # Neutralize VPATH when `$srcdir' = `.'.
11080 # Shell code in configure.ac might set extrasub.
11081 # FIXME: do we really want to maintain this feature?
11082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11083 ac_sed_extra="$ac_vpsub
11086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11088 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11089 s|@configure_input@|
$ac_sed_conf_input|
;t t
11090 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11091 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11092 s
&@srcdir@
&$ac_srcdir&;t t
11093 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11094 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11095 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11096 s
&@builddir@
&$ac_builddir&;t t
11097 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11098 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11099 s
&@INSTALL@
&$ac_INSTALL&;t t
11100 $ac_datarootdir_hack
11102 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11103 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11105 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11108 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11109 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11110 which seems to be undefined. Please make sure it is defined" >&5
11111 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11112 which seems to be undefined. Please make sure it is defined" >&2;}
11114 rm -f "$ac_tmp/stdin"
11116 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11117 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11125 if test x"$ac_file" != x-; then
11127 printf "%s\n" "/* $configure_input */" >&1 \
11128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11129 } >"$ac_tmp/config.h" \
11130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11131 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11133 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11136 mv "$ac_tmp/config.h" "$ac_file" \
11137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11140 printf "%s\n" "/* $configure_input */" >&1 \
11141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11142 || as_fn_error $? "could not create -" "$LINENO" 5
11150 case $ac_file$ac_mode in
11151 "bin/sdcc":F) chmod +x bin/sdcc ;;
11152 "bin/sdcpp":F) chmod +x bin/sdcpp ;;
11153 "bin/sdar":F) chmod +x bin/sdar ;;
11154 "bin/sdnm":F) chmod +x bin/sdnm ;;
11155 "bin/sdranlib":F) chmod +x bin/sdranlib ;;
11156 "bin/sdobjcopy":F) chmod +x bin/sdobjcopy ;;
11164 ac_clean_files=$ac_clean_files_save
11166 test $ac_write_fail = 0 ||
11167 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11170 # configure is writing to config.log, and then calls config.status.
11171 # config.status does its own redirection, appending to config.log.
11172 # Unfortunately, on DOS this fails, as config.log is still kept open
11173 # by configure, so config.status won't be able to
write to it
; its
11174 # output is simply discarded. So we exec the FD to /dev/null,
11175 # effectively closing config.log, so it can be properly (re)opened and
11176 # appended to by config.status. When coming back to configure, we
11177 # need to make the FD available again.
11178 if test "$no_create" != yes; then
11180 ac_config_status_args
=
11181 test "$silent" = yes &&
11182 ac_config_status_args
="$ac_config_status_args --quiet"
11184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11187 # would make configure fail if this is the last instruction.
11188 $ac_cs_success || as_fn_exit
1
11192 # CONFIG_SUBDIRS section.
11194 if test "$no_recursion" != yes; then
11196 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11197 # so they do not pile up.
11198 ac_sub_configure_args
=
11200 eval "set x $ac_configure_args"
11204 if test -n "$ac_prev"; then
11209 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
11210 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
11211 ac_prev
=cache_file
;;
11212 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
11213 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
11216 --config-cache |
-C)
11218 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
11220 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
11222 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
11224 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
11226 --disable-option-checking)
11230 *\'*) ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11232 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
11236 # Always prepend --prefix to ensure using the same prefix
11237 # in subdir configurations.
11238 ac_arg
="--prefix=$prefix"
11240 *\'*) ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11242 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
11245 if test "$silent" = yes; then
11246 ac_sub_configure_args
="--silent $ac_sub_configure_args"
11249 # Always prepend --disable-option-checking to silence warnings, since
11250 # different subdirs can have different --enable and --with options.
11251 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
11254 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
11256 # Do not complain, so a configure script can configure whichever
11257 # parts of a large source tree are present.
11258 test -d "$srcdir/$ac_dir" ||
continue
11260 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11262 printf "%s\n" "$ac_msg" >&6
11263 as_dir
="$ac_dir"; as_fn_mkdir_p
11267 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11269 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11270 # A ".." for each directory in $ac_dir_suffix.
11271 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11272 case $ac_top_builddir_sub in
11273 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11274 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11277 ac_abs_top_builddir
=$ac_pwd
11278 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11279 # for backward compatibility:
11280 ac_top_builddir
=$ac_top_build_prefix
11283 .
) # We are building in place.
11285 ac_top_srcdir
=$ac_top_builddir_sub
11286 ac_abs_top_srcdir
=$ac_pwd ;;
11287 [\\/]* | ?
:[\\/]* ) # Absolute name.
11288 ac_srcdir
=$srcdir$ac_dir_suffix;
11289 ac_top_srcdir
=$srcdir
11290 ac_abs_top_srcdir
=$srcdir ;;
11291 *) # Relative name.
11292 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11293 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11294 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11296 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11301 # Check for configure.gnu first; this name is used for a wrapper for
11302 # Metaconfig's "Configure" on case-insensitive file systems.
11303 if test -f "$ac_srcdir/configure.gnu"; then
11304 ac_sub_configure
=$ac_srcdir/configure.gnu
11305 elif test -f "$ac_srcdir/configure"; then
11306 ac_sub_configure
=$ac_srcdir/configure
11308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11309 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11313 # The recursion is here.
11314 if test -n "$ac_sub_configure"; then
11315 # Make the cache file name correct relative to the subdirectory.
11316 case $cache_file in
11317 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
11318 *) # Relative name.
11319 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
11322 { 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
11323 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11324 # The eval makes quoting arguments work.
11325 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11326 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11327 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11333 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11335 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11339 # I found no better place
11342 # Prepare result message
11343 # ======================
11345 # In the C-header we need \\ as dir-separator, but in the message only \
11346 dirch
=${sdccconf_h_dir_separator}
11347 test ${dirch} = '\\' && dirch
='\'
11349 # calc friendly strings
11351 binPath=`echo "/${prefix2bin_dir}" | sed 's
,/\.
/,/,g
'`
11352 case ":$binPath:" in
11354 :*[\\/]:) binPath=`echo "$binPath" | sed 's
,[\\/]*$
,,'` ;;
11359 *\\*) binPath=`echo "$binPath" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11360 s
,^
[\\/],\\\\\\\\,'` ;;
11362 *) binPath=`echo "$binPath" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11364 binPath=`echo "$binPath" | sed 's
,\\\\\\\\,\\\\,g
'`
11367 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11368 case ":$incPath1:" in
11369 ::) incPath1='.
' ;;
11370 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's
,[\\/]*$
,,'` ;;
11375 *\\*) incPath1=`echo "$incPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11376 s
,^
[\\/],\\\\\\\\,'` ;;
11378 *) incPath1=`echo "$incPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11380 incPath1=`echo "$incPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
11383 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11384 case ":$incPath2:" in
11385 ::) incPath2='.
' ;;
11386 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's
,[\\/]*$
,,'` ;;
11391 *\\*) incPath2=`echo "$incPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11392 s
,^
[\\/],\\\\\\\\,'` ;;
11394 *) incPath2=`echo "$incPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11396 incPath2=`echo "$incPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
11399 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11400 case ":$incPath3:" in
11401 ::) incPath3='.
' ;;
11402 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's
,[\\/]*$
,,'` ;;
11407 *\\*) incPath3=`echo "$incPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11408 s
,^
[\\/],\\\\\\\\,'` ;;
11410 *) incPath3=`echo "$incPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11412 incPath3=`echo "$incPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
11415 nonFreeIncPath1=`echo "/${prefix2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11416 case ":$nonFreeIncPath1:" in
11417 ::) nonFreeIncPath1='.
' ;;
11418 :*[\\/]:) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,[\\/]*$
,,'` ;;
11423 *\\*) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11424 s
,^
[\\/],\\\\\\\\,'` ;;
11426 *) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11428 nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
11431 nonFreeIncPath2=`echo "/${bin2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11432 case ":$nonFreeIncPath2:" in
11433 ::) nonFreeIncPath2='.
' ;;
11434 :*[\\/]:) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,[\\/]*$
,,'` ;;
11439 *\\*) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11440 s
,^
[\\/],\\\\\\\\,'` ;;
11442 *) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11444 nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
11447 nonFreeIncPath3=`echo "${expanded_datadir}/${norm_non_free_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11448 case ":$nonFreeIncPath3:" in
11449 ::) nonFreeIncPath3='.
' ;;
11450 :*[\\/]:) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,[\\/]*$
,,'` ;;
11455 *\\*) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11456 s
,^
[\\/],\\\\\\\\,'` ;;
11458 *) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11460 nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
11464 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11465 case ":$libPath1:" in
11466 ::) libPath1='.
' ;;
11467 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's
,[\\/]*$
,,'` ;;
11472 *\\*) libPath1=`echo "$libPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11473 s
,^
[\\/],\\\\\\\\,'` ;;
11475 *) libPath1=`echo "$libPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11477 libPath1=`echo "$libPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
11480 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11481 case ":$libPath2:" in
11482 ::) libPath2='.
' ;;
11483 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's
,[\\/]*$
,,'` ;;
11488 *\\*) libPath2=`echo "$libPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11489 s
,^
[\\/],\\\\\\\\,'` ;;
11491 *) libPath2=`echo "$libPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11493 libPath2=`echo "$libPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
11496 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11497 case ":$libPath3:" in
11498 ::) libPath3='.
' ;;
11499 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's
,[\\/]*$
,,'` ;;
11504 *\\*) libPath3=`echo "$libPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11505 s
,^
[\\/],\\\\\\\\,'` ;;
11507 *) libPath3=`echo "$libPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11509 libPath3=`echo "$libPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
11512 nonFreeLibPath1=`echo "/${prefix2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11513 case ":$nonFreeLibPath1:" in
11514 ::) nonFreeLibPath1='.
' ;;
11515 :*[\\/]:) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,[\\/]*$
,,'` ;;
11520 *\\*) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11521 s
,^
[\\/],\\\\\\\\,'` ;;
11523 *) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11525 nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
11528 nonFreeLibPath2=`echo "/${bin2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11529 case ":$nonFreeLibPath2:" in
11530 ::) nonFreeLibPath2='.
' ;;
11531 :*[\\/]:) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,[\\/]*$
,,'` ;;
11536 *\\*) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11537 s
,^
[\\/],\\\\\\\\,'` ;;
11539 *) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11541 nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
11544 nonFreeLibPath3=`echo "${expanded_datadir}/${norm_non_free_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11545 case ":$nonFreeLibPath3:" in
11546 ::) nonFreeLibPath3='.
' ;;
11547 :*[\\/]:) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,[\\/]*$
,,'` ;;
11552 *\\*) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11553 s
,^
[\\/],\\\\\\\\,'` ;;
11555 *) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11557 nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
11560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
11561 sdcc ${VERSION} is now configured for
11565 Source directory: ${srcdir}
11569 C++ compiler: ${CXX}
11570 CXXFLAGS: ${CXXFLAGS}
11571 CPPFLAGS: ${CPPFLAGS}
11572 LDFLAGS: ${LDFLAGS}
11573 MAKEDEP: ${MAKEDEP}
11574 MAKEDEP_CXX: ${MAKEDEP_CXX}
11577 ds390 ${enable_ds390_port}
11578 ds400 ${enable_ds400_port}
11579 hc08 ${enable_hc08_port}
11580 s08 ${enable_s08_port}
11581 mcs51 ${enable_mcs51_port}
11582 pic14 ${enable_pic14_port}
11583 pic16 ${enable_pic16_port}
11584 z80 ${enable_z80_port}
11585 z180 ${enable_z180_port}
11586 r2k ${enable_r2k_port}
11587 r2ka ${enable_r2ka_port}
11588 r3ka ${enable_r3ka_port}
11589 sm83 ${enable_sm83_port}
11590 tlcs90 ${enable_tlcs90_port}
11591 ez80_z80 ${enable_ez80_z80_port}
11592 z80n ${enable_z80n_port}
11593 r800 ${enable_r800_port}
11594 stm8 ${enable_stm8_port}
11595 pdk13 ${enable_pdk13_port}
11596 pdk14 ${enable_pdk14_port}
11597 pdk15 ${enable_pdk15_port}
11598 pdk16 ${enable_pdk16_port}
11599 mos6502 ${enable_mos6502_port}
11600 mos65c02 ${enable_mos65c02_port}
11601 f8 ${enable_f8_port}
11603 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11604 Disable packihx: ${OPT_DISABLE_PACKIHX}
11605 Disable ucsim: ${OPT_DISABLE_UCSIM}
11606 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11607 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11608 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11609 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11610 Enable documentation: ${OPT_ENABLE_DOC}
11611 Enable libgc: ${OPT_ENABLE_LIBGC}
11614 binary files: ${exec_prefix}
11615 include/library files: ${datadir}/${inclib_dir_suffix}
11616 include files: ${datadir}/${include_dir_suffix}
11617 library files: ${datadir}/${lib_dir_suffix}
11618 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11619 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11620 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11621 documentation: ${docdir}
11624 datadir: ${datadir}
11625 datarootdir: ${datarootdir}
11627 Search paths (incomplete, see manual for all search paths):
11628 binary files: \$SDCC_HOME${binPath}
11629 include files: ${incPath1}
11630 path(argv[0])${incPath2}
11633 path(argv[0])${nonFreeIncPath2}
11635 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11636 path(argv[0])${libPath2}${dirch}<model>
11637 ${libPath3}${dirch}<model>
11638 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11639 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11640 ${nonFreeLibPath3}${dirch}<model>
11643 sdcc ${VERSION} is now configured for
11647 Source directory: ${srcdir}
11651 C++ compiler: ${CXX}
11652 CXXFLAGS: ${CXXFLAGS}
11653 CPPFLAGS: ${CPPFLAGS}
11654 LDFLAGS: ${LDFLAGS}
11655 MAKEDEP: ${MAKEDEP}
11656 MAKEDEP_CXX: ${MAKEDEP_CXX}
11659 ds390 ${enable_ds390_port}
11660 ds400 ${enable_ds400_port}
11661 hc08 ${enable_hc08_port}
11662 s08 ${enable_s08_port}
11663 mcs51 ${enable_mcs51_port}
11664 pic14 ${enable_pic14_port}
11665 pic16 ${enable_pic16_port}
11666 z80 ${enable_z80_port}
11667 z180 ${enable_z180_port}
11668 r2k ${enable_r2k_port}
11669 r2ka ${enable_r2ka_port}
11670 r3ka ${enable_r3ka_port}
11671 sm83 ${enable_sm83_port}
11672 tlcs90 ${enable_tlcs90_port}
11673 ez80_z80 ${enable_ez80_z80_port}
11674 z80n ${enable_z80n_port}
11675 r800 ${enable_r800_port}
11676 stm8 ${enable_stm8_port}
11677 pdk13 ${enable_pdk13_port}
11678 pdk14 ${enable_pdk14_port}
11679 pdk15 ${enable_pdk15_port}
11680 pdk16 ${enable_pdk16_port}
11681 mos6502 ${enable_mos6502_port}
11682 mos65c02 ${enable_mos65c02_port}
11683 f8 ${enable_f8_port}
11685 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11686 Disable packihx: ${OPT_DISABLE_PACKIHX}
11687 Disable ucsim: ${OPT_DISABLE_UCSIM}
11688 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11689 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11690 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11691 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11692 Enable documentation: ${OPT_ENABLE_DOC}
11693 Enable libgc: ${OPT_ENABLE_LIBGC}
11696 binary files: ${exec_prefix}
11697 include/library files: ${datadir}/${inclib_dir_suffix}
11698 include files: ${datadir}/${include_dir_suffix}
11699 library files: ${datadir}/${lib_dir_suffix}
11700 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11701 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11702 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11703 documentation: ${docdir}
11706 datadir: ${datadir}
11707 datarootdir: ${datarootdir}
11709 Search paths (incomplete, see manual for all search paths):
11710 binary files: \$SDCC_HOME${binPath}
11711 include files: ${incPath1}
11712 path(argv[0])${incPath2}
11715 path(argv[0])${nonFreeIncPath2}
11717 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11718 path(argv[0])${libPath2}${dirch}<model>
11719 ${libPath3}${dirch}<model>
11720 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11721 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11722 ${nonFreeLibPath3}${dirch}<model>
11724 # End of configure/configure.in