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
696 non_free_lib_dir_suffix
698 non_free_include_dir_suffix
699 non_free_inclib_dir_suffix
703 sdccconf_h_dir_separator
783 program_transform_name
796 enable_option_checking
797 with_python_sys_prefix
799 with_python_exec_prefix
835 ac_precious_vars
='build_alias
848 sdccconf_h_dir_separator
852 non_free_inclib_dir_suffix
853 non_free_include_dir_suffix
855 non_free_lib_dir_suffix
857 ac_subdirs_all
='support/cpp
863 device/non-free/lib/pic14
865 device/non-free/lib/pic16'
867 # Initialize some variables set by options.
869 ac_init_version
=false
870 ac_unrecognized_opts
=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
881 program_transform_name
=s
,x
,x
,
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir
='${exec_prefix}/bin'
896 sbindir
='${exec_prefix}/sbin'
897 libexecdir
='${exec_prefix}/libexec'
898 datarootdir
='${prefix}/share'
899 datadir
='${datarootdir}'
900 sysconfdir
='${prefix}/etc'
901 sharedstatedir
='${prefix}/com'
902 localstatedir
='${prefix}/var'
903 runstatedir
='${localstatedir}/run'
904 includedir
='${prefix}/include'
905 oldincludedir
='/usr/include'
906 docdir
='${datarootdir}/doc/${PACKAGE}'
907 infodir
='${datarootdir}/info'
912 libdir
='${exec_prefix}/lib'
913 localedir
='${datarootdir}/locale'
914 mandir
='${datarootdir}/man'
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\
$ac_option
928 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 case $ac_dashdash$ac_option in
937 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
939 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
942 -build |
--build |
--buil |
--bui |
--bu)
943 ac_prev
=build_alias
;;
944 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
945 build_alias
=$ac_optarg ;;
947 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
948 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
949 ac_prev
=cache_file
;;
950 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
951 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
952 cache_file
=$ac_optarg ;;
955 cache_file
=config.cache
;;
957 -datadir |
--datadir |
--datadi |
--datad)
959 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
960 datadir
=$ac_optarg ;;
962 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
963 |
--dataroo |
--dataro |
--datar)
964 ac_prev
=datarootdir
;;
965 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
966 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
967 datarootdir
=$ac_optarg ;;
969 -disable-* |
--disable-*)
970 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
973 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
974 ac_useropt_orig
=$ac_useropt
975 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep
=', ';;
983 eval enable_
$ac_useropt=no
;;
985 -docdir |
--docdir |
--docdi |
--doc |
--do)
987 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
990 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
992 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
995 -enable-* |
--enable-*)
996 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
999 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
1000 ac_useropt_orig
=$ac_useropt
1001 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_
$ac_useropt"
1006 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep
=', ';;
1009 eval enable_
$ac_useropt=\
$ac_optarg ;;
1011 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1012 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1013 |
--exec |
--exe |
--ex)
1014 ac_prev
=exec_prefix
;;
1015 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1016 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1017 |
--exec=* |
--exe=* |
--ex=*)
1018 exec_prefix
=$ac_optarg ;;
1020 -gas |
--gas |
--ga |
--g)
1021 # Obsolete; use --with-gas.
1024 -help |
--help |
--hel |
--he |
-h)
1025 ac_init_help
=long
;;
1026 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1027 ac_init_help
=recursive
;;
1028 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1029 ac_init_help
=short
;;
1031 -host |
--host |
--hos |
--ho)
1032 ac_prev
=host_alias
;;
1033 -host=* |
--host=* |
--hos=* |
--ho=*)
1034 host_alias
=$ac_optarg ;;
1036 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1038 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1040 htmldir
=$ac_optarg ;;
1042 -includedir |
--includedir |
--includedi |
--included |
--include \
1043 |
--includ |
--inclu |
--incl |
--inc)
1044 ac_prev
=includedir
;;
1045 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1046 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1047 includedir
=$ac_optarg ;;
1049 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1051 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1052 infodir
=$ac_optarg ;;
1054 -libdir |
--libdir |
--libdi |
--libd)
1056 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1057 libdir
=$ac_optarg ;;
1059 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1060 |
--libexe |
--libex |
--libe)
1061 ac_prev
=libexecdir
;;
1062 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1063 |
--libexe=* |
--libex=* |
--libe=*)
1064 libexecdir
=$ac_optarg ;;
1066 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1067 ac_prev
=localedir
;;
1068 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1069 localedir
=$ac_optarg ;;
1071 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1072 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1073 ac_prev
=localstatedir
;;
1074 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1075 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1076 localstatedir
=$ac_optarg ;;
1078 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1080 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1081 mandir
=$ac_optarg ;;
1083 -nfp |
--nfp |
--nf)
1084 # Obsolete; use --without-fp.
1087 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1088 |
--no-cr |
--no-c |
-n)
1091 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1092 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1095 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1096 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1097 |
--oldin |
--oldi |
--old |
--ol |
--o)
1098 ac_prev
=oldincludedir
;;
1099 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1100 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1101 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1102 oldincludedir
=$ac_optarg ;;
1104 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1106 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1107 prefix
=$ac_optarg ;;
1109 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1110 |
--program-pre |
--program-pr |
--program-p)
1111 ac_prev
=program_prefix
;;
1112 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1113 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1114 program_prefix
=$ac_optarg ;;
1116 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1117 |
--program-suf |
--program-su |
--program-s)
1118 ac_prev
=program_suffix
;;
1119 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1120 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1121 program_suffix
=$ac_optarg ;;
1123 -program-transform-name |
--program-transform-name \
1124 |
--program-transform-nam |
--program-transform-na \
1125 |
--program-transform-n |
--program-transform- \
1126 |
--program-transform |
--program-transfor \
1127 |
--program-transfo |
--program-transf \
1128 |
--program-trans |
--program-tran \
1129 |
--progr-tra |
--program-tr |
--program-t)
1130 ac_prev
=program_transform_name
;;
1131 -program-transform-name=* |
--program-transform-name=* \
1132 |
--program-transform-nam=* |
--program-transform-na=* \
1133 |
--program-transform-n=* |
--program-transform-=* \
1134 |
--program-transform=* |
--program-transfor=* \
1135 |
--program-transfo=* |
--program-transf=* \
1136 |
--program-trans=* |
--program-tran=* \
1137 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1138 program_transform_name
=$ac_optarg ;;
1140 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1142 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1143 pdfdir
=$ac_optarg ;;
1145 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1147 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1150 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1151 |
-silent |
--silent |
--silen |
--sile |
--sil)
1154 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1155 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1156 |
--run |
--ru |
--r)
1157 ac_prev
=runstatedir
;;
1158 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1159 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1160 |
--run=* |
--ru=* |
--r=*)
1161 runstatedir
=$ac_optarg ;;
1163 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1165 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1167 sbindir
=$ac_optarg ;;
1169 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1170 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1171 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1173 ac_prev
=sharedstatedir
;;
1174 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1175 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1176 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1178 sharedstatedir
=$ac_optarg ;;
1180 -site |
--site |
--sit)
1182 -site=* |
--site=* |
--sit=*)
1185 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1187 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1188 srcdir
=$ac_optarg ;;
1190 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1191 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1192 ac_prev
=sysconfdir
;;
1193 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1194 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1195 sysconfdir
=$ac_optarg ;;
1197 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1198 ac_prev
=target_alias
;;
1199 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1200 target_alias
=$ac_optarg ;;
1202 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1205 -version |
--version |
--versio |
--versi |
--vers |
-V)
1206 ac_init_version
=: ;;
1209 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1212 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1213 ac_useropt_orig
=$ac_useropt
1214 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep
=', ';;
1222 eval with_
$ac_useropt=\
$ac_optarg ;;
1224 -without-* |
--without-*)
1225 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1228 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1229 ac_useropt_orig
=$ac_useropt
1230 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1235 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep
=', ';;
1238 eval with_
$ac_useropt=no
;;
1241 # Obsolete; use --with-x.
1244 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1245 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1246 ac_prev
=x_includes
;;
1247 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1248 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1249 x_includes
=$ac_optarg ;;
1251 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1252 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1253 ac_prev
=x_libraries
;;
1254 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1255 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1256 x_libraries
=$ac_optarg ;;
1258 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1263 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1267 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1269 eval $ac_envvar=\
$ac_optarg
1270 export $ac_envvar ;;
1273 # FIXME: should be removed in autoconf 3.0.
1274 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1276 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 if test -n "$ac_prev"; then
1284 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $?
"missing argument to $ac_option"
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1291 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1292 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 # Check all directory arguments for consistency.
1297 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir runstatedir
1302 eval ac_val
=\$
$ac_var
1303 # Remove trailing slashes.
1306 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\
$ac_val;;
1309 # Be sure to have absolute directory names.
1311 [\\/$
]* | ?
:[\\/]* ) continue;;
1312 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1314 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1322 target
=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x
; then
1326 if test "x$build_alias" = x
; then
1327 cross_compiling
=maybe
1328 elif test "x$build_alias" != "x$host_alias"; then
1334 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1336 test "$silent" = yes && exec 6>/dev
/null
1339 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di
=`ls -di .` &&
1341 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $?
"working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $?
"pwd does not report name of working directory"
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted
=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir
=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 printf "%s\n" X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted
=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1383 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1385 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var
in $ac_precious_vars; do
1400 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1402 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures this package to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --program-prefix=PREFIX prepend PREFIX to installed program names
1473 --program-suffix=SUFFIX append SUFFIX to installed program names
1474 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1477 --build=BUILD configure
for building on BUILD
[guessed
]
1478 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1482 if test -n "$ac_init_help"; then
1487 --disable-option-checking ignore unrecognized
--enable/--with options
1488 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1489 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1490 --disable-mcs51-port Excludes the Intel mcs51 port
1491 --disable-z80-port Excludes the Z80 port
1492 --disable-z180-port Excludes the Z180 port
1493 --disable-r2k-port Excludes the Rabbit
2000 port
1494 --disable-r2ka-port Excludes the Rabbit
2000A port
1495 --disable-r3ka-port Excludes the Rabbit
3000A port
1496 --disable-sm83-port Excludes the SM83 port
1497 --disable-tlcs90-port Excludes the TLCS-90 port
1498 --disable-ez80_z80-port Excludes the EZ80-Z80 port
1499 --disable-z80n-port Excludes the Z80N port
1500 --disable-r800-port Excludes the R800 port
1501 --disable-ds390-port Excludes the DS390 port
1502 --disable-ds400-port Excludes the DS400 port
1503 --disable-pic14-port Excludes the PIC14 port
1504 --disable-pic16-port Excludes the PIC16 port
1505 --disable-hc08-port Excludes the HC08 port
1506 --disable-s08-port Excludes the S08 port
1507 --disable-stm8-port Excludes the STM8 port
1508 --disable-pdk13-port Excludes the PDK13 port
1509 --disable-pdk14-port Excludes the PDK14 port
1510 --disable-pdk15-port Excludes the PDK15 port
1511 --enable-pdk16-port Includes the PDK16 port
1512 --disable-mos6502-port Excludes the MOS6502 port
1513 --disable-mos65c02-port Excludes the MOS65C02 port
1514 --disable-ucsim Disables configuring and building of ucsim
1515 --disable-device-lib Disables building device libraries
1516 --disable-packihx Disables building packihx
1517 --disable-sdcpp Disables building sdcpp
1518 --disable-sdcdb Disables building sdcdb
1519 --disable-sdbinutils Disables configuring and building of sdbinutils
1520 --disable-non-free Disables non-free runtime library parts
1521 --enable-doc Enables building the documentation
1522 --enable-libgc Use the Bohem memory allocator. Lower runtime
1526 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1527 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1528 --with-python-sys-prefix
1529 use Python
's sys.prefix and sys.exec_prefix values
1530 --with-python_prefix override the default PYTHON_PREFIX
1531 --with-python_exec_prefix
1532 override the default PYTHON_EXEC_PREFIX
1533 --without-ccache do not use ccache even if available
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1544 CXX C++ compiler command
1545 CXXFLAGS C++ compiler flags
1546 PYTHON the Python interpreter
1547 sdccconf_h_dir_separator
1548 needed in sdccconf.h: either "/" (default) or "\\"
1549 LIB_TYPE library type: LIB, SDCCLIB, AR or RANLIB (default)
1551 appended to datadir to define SDCC's include
/lib directory
1553 appended to datadir to define SDCC
's include directory
1554 non_free_inclib_dir_suffix
1555 appended to datadir to define SDCC's non-free include
/lib
1557 non_free_include_dir_suffix
1558 appended to datadir to define SDCC
's non-free include directory
1560 appended to datadir to define SDCC's library root directory
1561 non_free_lib_dir_suffix
1562 appended to datadir to define SDCC
's non-free library root
1564 docdir documentation installation directory
1566 Use these variables to override the choices made by `configure' or to
help
1567 it to
find libraries and programs with nonstandard names
/locations.
1569 Report bugs to the package provider.
1574 if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
1576 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1577 test -d "$ac_dir" ||
1578 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1583 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1585 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1590 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1593 ac_abs_top_builddir
=$ac_pwd
1594 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir
=$ac_top_build_prefix
1599 .
) # We are building in place.
1601 ac_top_srcdir
=$ac_top_builddir_sub
1602 ac_abs_top_srcdir
=$ac_pwd ;;
1603 [\\/]* | ?
:[\\/]* ) # Absolute name.
1604 ac_srcdir
=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir
=$srcdir
1606 ac_abs_top_srcdir
=$srcdir ;;
1608 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1612 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1615 # Check for configure.gnu first; this name is used for a wrapper for
1616 # Metaconfig's "Configure" on case-insensitive file systems.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1622 $SHELL "$ac_srcdir/configure" --help=recursive
1624 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1630 test -n "$ac_init_help" && exit $ac_status
1631 if $ac_init_version; then
1634 generated by GNU Autoconf
2.71
1636 Copyright
(C
) 2021 Free Software Foundation
, Inc.
1637 This configure
script is free software
; the Free Software Foundation
1638 gives unlimited permission to copy
, distribute and modify it.
1643 ## ------------------------ ##
1644 ## Autoconf initialization. ##
1645 ## ------------------------ ##
1647 # ac_fn_c_try_compile LINENO
1648 # --------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_compile
()
1652 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1653 rm -f conftest.
$ac_objext conftest.beam
1654 if { { ac_try
="$ac_compile"
1656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 printf "%s\n" "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext
1676 printf "%s\n" "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1684 } # ac_fn_c_try_compile
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1695 *) ac_try_echo
=$ac_try;;
1697 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 printf "%s\n" "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701 if test -s conftest.err
; then
1702 grep -v '^ *+' conftest.err
>conftest.er1
1703 cat conftest.er1
>&5
1704 mv -f conftest.er1 conftest.err
1706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } > conftest.i
&& {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1714 printf "%s\n" "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.
$ac_ext >&5
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status
$ac_retval
1724 # ac_fn_cxx_try_compile LINENO
1725 # ----------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_cxx_try_compile
()
1729 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1730 rm -f conftest.
$ac_objext conftest.beam
1731 if { { ac_try
="$ac_compile"
1733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 printf "%s\n" "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext
1753 printf "%s\n" "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_cxx_try_compile
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 printf %s "checking for $2... " >&6; }
1772 if eval test \${$3+y}
1774 printf %s "(cached) " >&6
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1781 if ac_fn_c_try_compile "$LINENO"
1787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 printf "%s\n" "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 } # ac_fn_c_check_header_compile
1796 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1797 # ---------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_cxx_check_header_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 printf %s "checking for $2... " >&6; }
1805 if eval test \${$3+y}
1807 printf %s "(cached) " >&6
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1814 if ac_fn_cxx_try_compile "$LINENO"
1820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 printf "%s\n" "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_cxx_check_header_compile
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1839 *) ac_try_echo
=$ac_try;;
1841 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 printf "%s\n" "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1845 if test -s conftest.err
; then
1846 grep -v '^ *+' conftest.err
>conftest.er1
1847 cat conftest.er1
>&5
1848 mv -f conftest.er1 conftest.err
1850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest
$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 test -x conftest
$ac_exeext
1861 printf "%s\n" "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.
$ac_ext >&5
1866 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868 # interfere with the next link command; also delete a directory that is
1869 # left behind by Apple's compiler. We do this before executing the actions.
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status
$ac_retval
1874 } # ac_fn_c_try_link
1876 # ac_fn_c_check_func LINENO FUNC VAR
1877 # ----------------------------------
1878 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1879 ac_fn_c_check_func
()
1881 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 printf %s
"checking for $2... " >&6; }
1884 if eval test \
${$3+y}
1886 printf %s
"(cached) " >&6
1888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below. */
1900 /* Override any GCC internal prototype to avoid an error.
1901 Use char because int might match the return type of a GCC
1902 builtin and then its argument prototype would still apply. */
1907 /* The GNU C library defines this for functions which it implements
1908 to always fail with ENOSYS. Some functions are actually named
1909 something starting with __ and the normal name is an alias. */
1910 #if defined __stub_$2 || defined __stub___$2
1922 if ac_fn_c_try_link
"$LINENO"
1928 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
1929 conftest
$ac_exeext conftest.
$ac_ext
1932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 printf "%s\n" "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_func
1938 # ac_fn_c_try_run LINENO
1939 # ----------------------
1940 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1941 # executables *can* be run.
1944 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1945 if { { ac_try
="$ac_link"
1947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 printf "%s\n" "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>&5
1954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1956 { { case "(($ac_try" in
1957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1958 *) ac_try_echo
=$ac_try;;
1960 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 printf "%s\n" "$ac_try_echo"; } >&5
1962 (eval "$ac_try") 2>&5
1964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; }; }
1969 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1970 printf "%s\n" "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.
$ac_ext >&5
1973 ac_retval
=$ac_status
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status
$ac_retval
1981 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1982 # --------------------------------------------
1983 # Tries to find the compile-time value of EXPR in a program that includes
1984 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1986 ac_fn_c_compute_int
()
1988 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1989 if test "$cross_compiling" = yes; then
1990 # Depending upon the size, compute the lo and hi bounds.
1991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1997 static int test_array [1 - 2 * !(($2) >= 0)];
1999 return test_array [0];
2005 if ac_fn_c_try_compile
"$LINENO"
2009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2015 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2017 return test_array [0];
2023 if ac_fn_c_try_compile
"$LINENO"
2025 ac_hi
=$ac_mid; break
2027 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2028 if test $ac_lo -le $ac_mid; then
2032 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2034 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2043 static int test_array [1 - 2 * !(($2) < 0)];
2045 return test_array [0];
2051 if ac_fn_c_try_compile
"$LINENO"
2055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2063 return test_array [0];
2069 if ac_fn_c_try_compile
"$LINENO"
2071 ac_lo
=$ac_mid; break
2073 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2074 if test $ac_mid -le $ac_hi; then
2078 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2080 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2085 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2087 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2088 # Binary search between lo and hi bounds.
2089 while test "x$ac_lo" != "x$ac_hi"; do
2090 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 return test_array [0];
2105 if ac_fn_c_try_compile
"$LINENO"
2109 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2111 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2114 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2121 static long int longval (void) { return $2; }
2122 static unsigned long int ulongval (void) { return $2; }
2129 FILE *f = fopen ("conftest.val", "w");
2134 long int i = longval ();
2137 fprintf (f, "%ld", i);
2141 unsigned long int i = ulongval ();
2144 fprintf (f, "%lu", i);
2146 /* Do not output a trailing newline, as this causes \r\n confusion
2147 on some platforms. */
2148 return ferror (f) || fclose (f) != 0;
2154 if ac_fn_c_try_run
"$LINENO"
2156 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2160 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2161 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 as_fn_set_status
$ac_retval
2168 } # ac_fn_c_compute_int
2169 ac_configure_args_raw
=
2174 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 as_fn_append ac_configure_args_raw
" '$ac_arg'"
2179 case $ac_configure_args_raw in
2183 ac_unsafe_z
='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2184 ac_unsafe_a
="$ac_unsafe_z#~"
2185 ac_safe_unquote
="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2186 ac_configure_args_raw
=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2189 cat >config.log
<<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2193 It was created by $as_me, which was
2194 generated by GNU Autoconf 2.71. Invocation command line was
2196 $ $0$ac_configure_args_raw
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2229 case $as_dir in #(((
2232 *) as_dir
=$as_dir/ ;;
2234 printf "%s\n" "PATH: $as_dir"
2250 # Keep a trace of the command line.
2251 # Strip out --no-create and --no-recursion so they do not pile up.
2252 # Strip out --silent because we don't want to record it for future runs.
2253 # Also quote any args containing shell meta-characters.
2254 # Make two passes to allow for proper duplicate-argument suppression.
2258 ac_must_keep_next
=false
2264 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2265 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2266 |
-silent |
--silent |
--silen |
--sile |
--sil)
2269 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2272 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2274 as_fn_append ac_configure_args1
" '$ac_arg'"
2275 if test $ac_must_keep_next = true
; then
2276 ac_must_keep_next
=false
# Got value, back to normal.
2279 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2280 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2281 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2282 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2283 case "$ac_configure_args0 " in
2284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2287 -* ) ac_must_keep_next
=true
;;
2290 as_fn_append ac_configure_args
" '$ac_arg'"
2295 { ac_configure_args0
=; unset ac_configure_args0
;}
2296 { ac_configure_args1
=; unset ac_configure_args1
;}
2298 # When interrupted or exit'd, cleanup temporary files, and complete
2299 # config.log. We remove comments because anyway the quotes in there
2300 # would cause problems or look ugly.
2301 # WARNING: Use '\'' to represent an apostrophe within the trap.
2302 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2303 trap 'exit_status=$?
2306 # Save into config.log some information that might help in debugging.
2310 printf "%s\n" "## ---------------- ##
2311 ## Cache variables. ##
2312 ## ---------------- ##"
2314 # The following way of writing the cache mishandles newlines in values,
2316 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2317 eval ac_val=\$$ac_var
2321 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2322 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2325 _ | IFS | as_nl) ;; #(
2326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2327 *) { eval $ac_var=; unset $ac_var;} ;;
2332 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2333 *${as_nl}ac_space=\ *)
2335 "s/'\''/'\''\\\\'\'''\''/g;
2336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2346 printf "%s\n" "## ----------------- ##
2347 ## Output variables. ##
2348 ## ----------------- ##"
2350 for ac_var in $ac_subst_vars
2352 eval ac_val=\$$ac_var
2354 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2356 printf "%s\n" "$ac_var='\''$ac_val'\''"
2360 if test -n "$ac_subst_files"; then
2361 printf "%s\n" "## ------------------- ##
2362 ## File substitutions. ##
2363 ## ------------------- ##"
2365 for ac_var
in $ac_subst_files
2367 eval ac_val
=\$
$ac_var
2369 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2371 printf "%s\n" "$ac_var='\''$ac_val'\''"
2376 if test -s confdefs.h; then
2377 printf "%s\n" "## ----------- ##
2384 test "$ac_signal" != 0 &&
2385 printf "%s\n" "$as_me: caught signal $ac_signal"
2386 printf "%s\n" "$as_me: exit $exit_status"
2388 rm -f core *.core core.conftest.* &&
2389 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392 for ac_signal
in 1 2 13 15; do
2393 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2397 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2398 rm -f -r conftest
* confdefs.h
2400 printf "%s\n" "/* confdefs.h */" > confdefs.h
2402 # Predefined preprocessor variables.
2404 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2406 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2408 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2410 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2412 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2414 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2417 # Let the site file select an alternate cache file if it wants to.
2418 # Prefer an explicitly selected file to automatically selected ones.
2419 if test -n "$CONFIG_SITE"; then
2420 ac_site_files
="$CONFIG_SITE"
2421 elif test "x$prefix" != xNONE
; then
2422 ac_site_files
="$prefix/share/config.site $prefix/etc/config.site"
2424 ac_site_files
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2427 for ac_site_file
in $ac_site_files
2429 case $ac_site_file in #(
2433 ac_site_file
=.
/$ac_site_file ;;
2435 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2437 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2438 sed 's/^/| /' "$ac_site_file" >&5
2440 ||
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2442 as_fn_error $?
"failed to load site script $ac_site_file
2443 See \`config.log' for more details" "$LINENO" 5; }
2447 if test -r "$cache_file"; then
2448 # Some versions of bash will fail to source /dev/null (special files
2449 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2450 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2452 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2454 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2455 *) .
"./$cache_file";;
2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2460 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2464 # Test code for whether the C compiler supports C89 (global declarations)
2465 ac_c_conftest_c89_globals
='
2466 /* Does the compiler advertise C89 conformance?
2467 Do not test the value of __STDC__, because some compilers set it to 0
2468 while being otherwise adequately conformant. */
2469 #if !defined __STDC__
2470 # error "Compiler does not advertise C89 conformance"
2476 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2477 struct buf { int x; };
2478 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2479 static char *e (p, i)
2485 static char *f (char * (*g) (char **, int), char **p, ...)
2490 s = g (p, va_arg (v,int));
2495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2496 function prototypes and stuff, but not \xHH hex character constants.
2497 These do not provoke an error unfortunately, instead are silently treated
2498 as an "x". The following induces an error, until -std is added to get
2499 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2500 array size at least. It is necessary to write \x00 == 0 to get something
2501 that is true only with -std. */
2502 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2504 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2505 inside strings and character constants. */
2506 #define FOO(x) '\''x'\''
2507 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2509 int test (int i, double x);
2510 struct s1 {int (*f) (int a);};
2511 struct s2 {int (*f) (double a);};
2512 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2515 # Test code for whether the C compiler supports C89 (body of main).
2516 ac_c_conftest_c89_main
='
2517 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2520 # Test code for whether the C compiler supports C99 (global declarations)
2521 ac_c_conftest_c99_globals
='
2522 // Does the compiler advertise C99 conformance?
2523 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2524 # error "Compiler does not advertise C99 conformance"
2527 #include <stdbool.h>
2528 extern int puts (const char *);
2529 extern int printf (const char *, ...);
2530 extern int dprintf (int, const char *, ...);
2531 extern void *malloc (size_t);
2533 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2534 // dprintf is used instead of fprintf to avoid needing to declare
2536 #define debug(...) dprintf (2, __VA_ARGS__)
2537 #define showlist(...) puts (#__VA_ARGS__)
2538 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2540 test_varargs_macros (void)
2545 debug ("X = %d\n", x);
2546 showlist (The first, second, and third items.);
2547 report (x>y, "x is %d but y is %d", x, y);
2550 // Check long long types.
2551 #define BIG64 18446744073709551615ull
2552 #define BIG32 4294967295ul
2553 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2555 #error "your preprocessor is broken"
2559 #error "your preprocessor is broken"
2561 static long long int bignum = -9223372036854775807LL;
2562 static unsigned long long int ubignum = BIG64;
2564 struct incomplete_array
2572 const wchar_t *name;
2576 typedef const char *ccp;
2579 test_restrict (ccp restrict text)
2581 // See if C++-style comments work.
2582 // Iterate through items via the restricted pointer.
2583 // Also check for declarations in for loops.
2584 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2589 // Check varargs and va_copy.
2591 test_varargs (const char *format, ...)
2594 va_start (args, format);
2596 va_copy (args_copy, args);
2598 const char *str = "";
2606 case '\''s'\'': // string
2607 str = va_arg (args_copy, const char *);
2609 case '\''d'\'': // int
2610 number = va_arg (args_copy, int);
2612 case '\''f'\'': // float
2613 fnumber = va_arg (args_copy, double);
2622 return *str && number && fnumber;
2626 # Test code for whether the C compiler supports C99 (body of main).
2627 ac_c_conftest_c99_main
='
2629 _Bool success = false;
2630 success |= (argc != 0);
2633 if (test_restrict ("String literal") == 0)
2635 char *restrict newvar = "Another string";
2638 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2639 test_varargs_macros ();
2641 // Check flexible array members.
2642 struct incomplete_array *ia =
2643 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2645 for (int i = 0; i < ia->datasize; ++i)
2646 ia->data[i] = i * 1.234;
2648 // Check named initializers.
2649 struct named_init ni = {
2651 .name = L"Test wide string",
2652 .average = 543.34343,
2657 int dynamic_array[ni.number];
2658 dynamic_array[0] = argv[0][0];
2659 dynamic_array[ni.number - 1] = 543;
2661 // work around unused variable warnings
2662 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2663 || dynamic_array[ni.number - 1] != 543);
2666 # Test code for whether the C compiler supports C11 (global declarations)
2667 ac_c_conftest_c11_globals
='
2668 // Does the compiler advertise C11 conformance?
2669 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2670 # error "Compiler does not advertise C11 conformance"
2674 char _Alignas (double) aligned_as_double;
2675 char _Alignas (0) no_special_alignment;
2676 extern char aligned_as_int;
2677 char _Alignas (0) _Alignas (int) aligned_as_int;
2682 int_alignment = _Alignof (int),
2683 int_array_alignment = _Alignof (int[100]),
2684 char_alignment = _Alignof (char)
2686 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2689 int _Noreturn does_not_return (void) { for (;;) continue; }
2691 // Check _Static_assert.
2692 struct test_static_assert
2695 _Static_assert (sizeof (int) <= sizeof (long int),
2696 "_Static_assert does not work in struct");
2700 // Check UTF-8 literals.
2701 #define u8 syntax error!
2702 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2704 // Check duplicate typedefs.
2705 typedef long *long_ptr;
2706 typedef long int *long_ptr;
2707 typedef long_ptr long_ptr;
2709 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2713 struct { int i; int j; };
2714 struct { int k; long int l; } w;
2720 # Test code for whether the C compiler supports C11 (body of main).
2721 ac_c_conftest_c11_main
='
2722 _Static_assert ((offsetof (struct anonymous, i)
2723 == offsetof (struct anonymous, w.k)),
2724 "Anonymous union alignment botch");
2730 # Test code for whether the C compiler supports C11 (complete).
2731 ac_c_conftest_c11_program
="${ac_c_conftest_c89_globals}
2732 ${ac_c_conftest_c99_globals}
2733 ${ac_c_conftest_c11_globals}
2736 main (int argc, char **argv)
2739 ${ac_c_conftest_c89_main}
2740 ${ac_c_conftest_c99_main}
2741 ${ac_c_conftest_c11_main}
2746 # Test code for whether the C compiler supports C99 (complete).
2747 ac_c_conftest_c99_program
="${ac_c_conftest_c89_globals}
2748 ${ac_c_conftest_c99_globals}
2751 main (int argc, char **argv)
2754 ${ac_c_conftest_c89_main}
2755 ${ac_c_conftest_c99_main}
2760 # Test code for whether the C compiler supports C89 (complete).
2761 ac_c_conftest_c89_program
="${ac_c_conftest_c89_globals}
2764 main (int argc, char **argv)
2767 ${ac_c_conftest_c89_main}
2772 # Test code for whether the C++ compiler supports C++98 (global declarations)
2773 ac_cxx_conftest_cxx98_globals
='
2774 // Does the compiler advertise C++98 conformance?
2775 #if !defined __cplusplus || __cplusplus < 199711L
2776 # error "Compiler does not advertise C++98 conformance"
2779 // These inclusions are to reject old compilers that
2780 // lack the unsuffixed header files.
2782 #include <exception>
2784 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2785 extern void assert (int);
2787 extern int strcmp (const char *, const char *);
2790 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2791 using std::exception;
2796 void test_exception_syntax()
2800 } catch (const char *s) {
2801 // Extra parentheses suppress a warning when building autoconf itself,
2802 // due to lint rules shared with more typical C programs.
2803 assert (!(strcmp) (s, "test"));
2807 template <typename T> struct test_template
2810 explicit test_template(T t) : val(t) {}
2811 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2814 } // anonymous namespace
2817 # Test code for whether the C++ compiler supports C++98 (body of main)
2818 ac_cxx_conftest_cxx98_main
='
2822 test_exception_syntax ();
2823 test_template<double> tt (2.0);
2824 assert (tt.add (4) == 6.0);
2825 assert (true && !false);
2829 # Test code for whether the C++ compiler supports C++11 (global declarations)
2830 ac_cxx_conftest_cxx11_globals
='
2831 // Does the compiler advertise C++ 2011 conformance?
2832 #if !defined __cplusplus || __cplusplus < 201103L
2833 # error "Compiler does not advertise C++11 conformance"
2838 constexpr int get_val() { return 20; }
2849 delegate(int n) : n(n) {}
2850 delegate(): delegate(2354) {}
2852 virtual int getval() { return this->n; };
2857 class overridden : public delegate
2860 overridden(int n): delegate(n) {}
2861 virtual int getval() override final { return this->n * 2; }
2867 nocopy(int i): i(i) {}
2869 nocopy(const nocopy&) = delete;
2870 nocopy & operator=(const nocopy&) = delete;
2875 // for testing lambda expressions
2876 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2881 // for testing variadic templates and trailing return types
2882 template <typename V> auto sum(V first) -> V
2886 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2888 return first + sum(rest...);
2893 # Test code for whether the C++ compiler supports C++11 (body of main)
2894 ac_cxx_conftest_cxx11_main
='
2896 // Test auto and decltype
2898 auto a2 = 48573953.4;
2899 auto a3 = "String literal";
2902 for (auto i = a3; *i; ++i) { total += *i; }
2904 decltype(a2) a4 = 34895.034;
2908 short sa[cxx11test::get_val()] = { 0 };
2911 // Test initializer lists
2912 cxx11test::testinit il = { 4323, 435234.23544 };
2915 // Test range-based for
2916 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2917 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2918 for (auto &x : array) { x += 23; }
2921 // Test lambda expressions
2922 using cxx11test::eval;
2923 assert (eval ([](int x) { return x*2; }, 21) == 42);
2925 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2927 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2931 // Test use of variadic templates
2932 using cxx11test::sum;
2935 auto c = sum(1.0, 2.0, 3.0);
2938 // Test constructor delegation
2939 cxx11test::delegate d1;
2940 cxx11test::delegate d2();
2941 cxx11test::delegate d3(45);
2944 // Test override and final
2945 cxx11test::overridden o1(55464);
2952 // Test template brackets
2953 test_template<::test_template<int>> v(test_template<int>(12));
2957 char const *utf8 = u8"UTF-8 string \u2500";
2958 char16_t const *utf16 = u"UTF-8 string \u2500";
2959 char32_t const *utf32 = U"UTF-32 string \u2500";
2963 # Test code for whether the C compiler supports C++11 (complete).
2964 ac_cxx_conftest_cxx11_program
="${ac_cxx_conftest_cxx98_globals}
2965 ${ac_cxx_conftest_cxx11_globals}
2968 main (int argc, char **argv)
2971 ${ac_cxx_conftest_cxx98_main}
2972 ${ac_cxx_conftest_cxx11_main}
2977 # Test code for whether the C compiler supports C++98 (complete).
2978 ac_cxx_conftest_cxx98_program
="${ac_cxx_conftest_cxx98_globals}
2980 main (int argc, char **argv)
2983 ${ac_cxx_conftest_cxx98_main}
2988 as_fn_append ac_header_c_list
" stdio.h stdio_h HAVE_STDIO_H"
2989 as_fn_append ac_header_c_list
" stdlib.h stdlib_h HAVE_STDLIB_H"
2990 as_fn_append ac_header_c_list
" string.h string_h HAVE_STRING_H"
2991 as_fn_append ac_header_c_list
" inttypes.h inttypes_h HAVE_INTTYPES_H"
2992 as_fn_append ac_header_c_list
" stdint.h stdint_h HAVE_STDINT_H"
2993 as_fn_append ac_header_c_list
" strings.h strings_h HAVE_STRINGS_H"
2994 as_fn_append ac_header_c_list
" sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2995 as_fn_append ac_header_c_list
" sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2996 as_fn_append ac_header_c_list
" unistd.h unistd_h HAVE_UNISTD_H"
2998 # Auxiliary files required by this configure script.
2999 ac_aux_files
="install-sh config.guess config.sub"
3001 # Locations in which to look for auxiliary files.
3002 ac_aux_dir_candidates
="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3004 # Search for a directory containing all of the required auxiliary files,
3005 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3006 # If we don't find one directory that contains all the files we need,
3007 # we report the set of missing files from the *first* directory in
3008 # $ac_aux_dir_candidates and give up.
3009 ac_missing_aux_files
=""
3010 ac_first_candidate
=:
3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 for as_dir
in $ac_aux_dir_candidates
3017 case $as_dir in #(((
3020 *) as_dir
=$as_dir/ ;;
3024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3025 ac_aux_dir_found
=yes
3027 for ac_aux
in $ac_aux_files
3029 # As a special case, if "install-sh" is required, that requirement
3030 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3031 # and $ac_install_sh is set appropriately for whichever one is found.
3032 if test x
"$ac_aux" = x
"install-sh"
3034 if test -f "${as_dir}install-sh"; then
3035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3036 ac_install_sh
="${as_dir}install-sh -c"
3037 elif test -f "${as_dir}install.sh"; then
3038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3039 ac_install_sh
="${as_dir}install.sh -c"
3040 elif test -f "${as_dir}shtool"; then
3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3042 ac_install_sh
="${as_dir}shtool install -c"
3045 if $ac_first_candidate; then
3046 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
3052 if test -f "${as_dir}${ac_aux}"; then
3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3056 if $ac_first_candidate; then
3057 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
3064 if test "$ac_aux_dir_found" = yes; then
3065 ac_aux_dir
="$as_dir"
3068 ac_first_candidate
=false
3077 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3081 # These three variables are undocumented and unsupported,
3082 # and are intended to be withdrawn in a future Autoconf release.
3083 # They can cause serious problems if a builder's source tree is in a directory
3084 # whose full name contains unusual characters.
3085 if test -f "${ac_aux_dir}config.guess"; then
3086 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
3088 if test -f "${ac_aux_dir}config.sub"; then
3089 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
3091 if test -f "$ac_aux_dir/configure"; then
3092 ac_configure
="$SHELL ${ac_aux_dir}configure"
3095 # Check that the precious variables saved in the cache have kept the same
3097 ac_cache_corrupted
=false
3098 for ac_var
in $ac_precious_vars; do
3099 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3100 eval ac_new_set
=\
$ac_env_${ac_var}_set
3101 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3102 eval ac_new_val
=\
$ac_env_${ac_var}_value
3103 case $ac_old_set,$ac_new_set in
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3106 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3107 ac_cache_corrupted
=: ;;
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3110 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3111 ac_cache_corrupted
=: ;;
3114 if test "x$ac_old_val" != "x$ac_new_val"; then
3115 # differences in whitespace do not lead to failure.
3116 ac_old_val_w
=`echo x $ac_old_val`
3117 ac_new_val_w
=`echo x $ac_new_val`
3118 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3120 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3121 ac_cache_corrupted
=:
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3124 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3125 eval $ac_var=\
$ac_old_val
3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3128 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3130 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3133 # Pass precious variables to config.status.
3134 if test "$ac_new_set" = set; then
3136 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3137 *) ac_arg
=$ac_var=$ac_new_val ;;
3139 case " $ac_configure_args " in
3140 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3141 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3145 if $ac_cache_corrupted; then
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3149 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3150 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3151 and start over" "$LINENO" 5
3153 ## -------------------- ##
3154 ## Main body of script. ##
3155 ## -------------------- ##
3158 ac_cpp
='$CPP $CPPFLAGS'
3159 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3167 # Determine the host and build type.
3168 # ===========================================================================
3172 # Make sure we can run config.sub.
3173 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
3174 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3177 printf %s
"checking build system type... " >&6; }
3178 if test ${ac_cv_build+y}
3180 printf %s
"(cached) " >&6
3182 ac_build_alias
=$build_alias
3183 test "x$ac_build_alias" = x
&&
3184 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
3185 test "x$ac_build_alias" = x
&&
3186 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3187 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3188 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3192 printf "%s\n" "$ac_cv_build" >&6; }
3193 case $ac_cv_build in
3195 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3198 ac_save_IFS
=$IFS; IFS
='-'
3204 # Remember, the first character of IFS is used to create $*,
3205 # except with old shells:
3208 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3212 printf %s
"checking host system type... " >&6; }
3213 if test ${ac_cv_host+y}
3215 printf %s
"(cached) " >&6
3217 if test "x$host_alias" = x
; then
3218 ac_cv_host
=$ac_cv_build
3220 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3221 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3226 printf "%s\n" "$ac_cv_host" >&6; }
3229 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3232 ac_save_IFS
=$IFS; IFS
='-'
3238 # Remember, the first character of IFS is used to create $*,
3239 # except with old shells:
3242 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3246 ac_config_headers
="$ac_config_headers sdccconf.h:sdccconf_in.h sdas/linksrc/asxxxx_config.h"
3249 for ac_prog
in gawk mawk nawk
awk
3251 # Extract the first word of "$ac_prog", so it can be a program name with args.
3252 set dummy
$ac_prog; ac_word
=$2
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 printf %s
"checking for $ac_word... " >&6; }
3255 if test ${ac_cv_prog_AWK+y}
3257 printf %s
"(cached) " >&6
3259 if test -n "$AWK"; then
3260 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3266 case $as_dir in #(((
3269 *) as_dir
=$as_dir/ ;;
3271 for ac_exec_ext
in '' $ac_executable_extensions; do
3272 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_AWK
="$ac_prog"
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3284 if test -n "$AWK"; then
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3286 printf "%s\n" "$AWK" >&6; }
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 printf "%s\n" "no" >&6; }
3293 test -n "$AWK" && break
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of the package" >&5
3298 printf %s
"checking version of the package... " >&6; }
3299 if test -f ${srcdir}/.version
; then
3300 { read VERSION
; } < ${srcdir}/.version
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3302 printf "%s\n" "$VERSION" >&6; }
3303 elif test -f ..
/.version
; then
3304 { read VERSION
; } < ..
/.version
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3306 printf "%s\n" "$VERSION" >&6; }
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown using 0.0.0" >&5
3310 printf "%s\n" "unknown using 0.0.0" >&6; }
3312 VERSIONHI
=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
3313 VERSIONLO
=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
3314 VERSIONP
=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
3323 printf "%s\n" "#define SDCC_VERSION_LO ${VERSIONLO}" >>confdefs.h
3326 printf "%s\n" "#define SDCC_VERSION_HI ${VERSIONHI}" >>confdefs.h
3329 printf "%s\n" "#define SDCC_VERSION_P ${VERSIONP}" >>confdefs.h
3332 printf "%s\n" "#define SDCC_VERSION_STR \"${VERSION}\"" >>confdefs.h
3334 test "$program_prefix" != NONE
&&
3335 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3336 # Use a double $ so make ignores it.
3337 test "$program_suffix" != NONE
&&
3338 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3339 # Double any \ or $.
3340 # By default was `s,x,x', remove it if useless.
3341 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3342 program_transform_name
=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3344 sdcc_cv_version
=$VERSION
3345 sdcc_cv_versionhi
=$VERSIONHI
3346 sdcc_cv_versionlo
=$VERSIONLO
3347 sdcc_cv_versionp
=$VERSIONP
3351 # ===========================================================================
3362 ac_cpp
='$CPP $CPPFLAGS'
3363 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3368 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 printf %s
"checking for $ac_word... " >&6; }
3371 if test ${ac_cv_prog_CC+y}
3373 printf %s
"(cached) " >&6
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC
="$CC" # Let the user override the test.
3378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3382 case $as_dir in #(((
3385 *) as_dir
=$as_dir/ ;;
3387 for ac_exec_ext
in '' $ac_executable_extensions; do
3388 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3400 if test -n "$CC"; then
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 printf "%s\n" "$CC" >&6; }
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 printf "%s\n" "no" >&6; }
3410 if test -z "$ac_cv_prog_CC"; then
3412 # Extract the first word of "gcc", so it can be a program name with args.
3413 set dummy gcc
; ac_word
=$2
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 printf %s
"checking for $ac_word... " >&6; }
3416 if test ${ac_cv_prog_ac_ct_CC+y}
3418 printf %s
"(cached) " >&6
3420 if test -n "$ac_ct_CC"; then
3421 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3427 case $as_dir in #(((
3430 *) as_dir
=$as_dir/ ;;
3432 for ac_exec_ext
in '' $ac_executable_extensions; do
3433 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC
="gcc"
3435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3444 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 printf "%s\n" "$ac_ct_CC" >&6; }
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 printf "%s\n" "no" >&6; }
3453 if test "x$ac_ct_CC" = x
; then
3456 case $cross_compiling:$ac_tool_warned in
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3460 ac_tool_warned
=yes ;;
3468 if test -z "$CC"; then
3469 if test -n "$ac_tool_prefix"; then
3470 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3471 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 printf %s
"checking for $ac_word... " >&6; }
3474 if test ${ac_cv_prog_CC+y}
3476 printf %s
"(cached) " >&6
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC
="$CC" # Let the user override the test.
3481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3485 case $as_dir in #(((
3488 *) as_dir
=$as_dir/ ;;
3490 for ac_exec_ext
in '' $ac_executable_extensions; do
3491 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3492 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3503 if test -n "$CC"; then
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 printf "%s\n" "$CC" >&6; }
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 printf "%s\n" "no" >&6; }
3514 if test -z "$CC"; then
3515 # Extract the first word of "cc", so it can be a program name with args.
3516 set dummy cc
; ac_word
=$2
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 printf %s
"checking for $ac_word... " >&6; }
3519 if test ${ac_cv_prog_CC+y}
3521 printf %s
"(cached) " >&6
3523 if test -n "$CC"; then
3524 ac_cv_prog_CC
="$CC" # Let the user override the test.
3527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3531 case $as_dir in #(((
3534 *) as_dir
=$as_dir/ ;;
3536 for ac_exec_ext
in '' $ac_executable_extensions; do
3537 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3538 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3539 ac_prog_rejected
=yes
3543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3550 if test $ac_prog_rejected = yes; then
3551 # We found a bogon in the path, so make sure we never use it.
3552 set dummy
$ac_cv_prog_CC
3554 if test $# != 0; then
3555 # We chose a different compiler from the bogus one.
3556 # However, it has the same basename, so the bogon will be chosen
3557 # first if we set CC to just the basename; use the full file name.
3559 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3565 if test -n "$CC"; then
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 printf "%s\n" "$CC" >&6; }
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 printf "%s\n" "no" >&6; }
3575 if test -z "$CC"; then
3576 if test -n "$ac_tool_prefix"; then
3577 for ac_prog
in cl.exe
3579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3580 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 printf %s
"checking for $ac_word... " >&6; }
3583 if test ${ac_cv_prog_CC+y}
3585 printf %s
"(cached) " >&6
3587 if test -n "$CC"; then
3588 ac_cv_prog_CC
="$CC" # Let the user override the test.
3590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3594 case $as_dir in #(((
3597 *) as_dir
=$as_dir/ ;;
3599 for ac_exec_ext
in '' $ac_executable_extensions; do
3600 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3612 if test -n "$CC"; then
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 printf "%s\n" "$CC" >&6; }
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 printf "%s\n" "no" >&6; }
3621 test -n "$CC" && break
3624 if test -z "$CC"; then
3626 for ac_prog
in cl.exe
3628 # Extract the first word of "$ac_prog", so it can be a program name with args.
3629 set dummy
$ac_prog; ac_word
=$2
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 printf %s
"checking for $ac_word... " >&6; }
3632 if test ${ac_cv_prog_ac_ct_CC+y}
3634 printf %s
"(cached) " >&6
3636 if test -n "$ac_ct_CC"; then
3637 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3643 case $as_dir in #(((
3646 *) as_dir
=$as_dir/ ;;
3648 for ac_exec_ext
in '' $ac_executable_extensions; do
3649 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_ac_ct_CC
="$ac_prog"
3651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3660 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3661 if test -n "$ac_ct_CC"; then
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3663 printf "%s\n" "$ac_ct_CC" >&6; }
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 printf "%s\n" "no" >&6; }
3670 test -n "$ac_ct_CC" && break
3673 if test "x$ac_ct_CC" = x
; then
3676 case $cross_compiling:$ac_tool_warned in
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680 ac_tool_warned
=yes ;;
3687 if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3690 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 printf %s
"checking for $ac_word... " >&6; }
3693 if test ${ac_cv_prog_CC+y}
3695 printf %s
"(cached) " >&6
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC
="$CC" # Let the user override the test.
3700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3704 case $as_dir in #(((
3707 *) as_dir
=$as_dir/ ;;
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3722 if test -n "$CC"; then
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 printf "%s\n" "$CC" >&6; }
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 printf "%s\n" "no" >&6; }
3732 if test -z "$ac_cv_prog_CC"; then
3734 # Extract the first word of "clang", so it can be a program name with args.
3735 set dummy clang
; ac_word
=$2
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 printf %s
"checking for $ac_word... " >&6; }
3738 if test ${ac_cv_prog_ac_ct_CC+y}
3740 printf %s
"(cached) " >&6
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3749 case $as_dir in #(((
3752 *) as_dir
=$as_dir/ ;;
3754 for ac_exec_ext
in '' $ac_executable_extensions; do
3755 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_ac_ct_CC
="clang"
3757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3766 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 printf "%s\n" "$ac_ct_CC" >&6; }
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 printf "%s\n" "no" >&6; }
3775 if test "x$ac_ct_CC" = x
; then
3778 case $cross_compiling:$ac_tool_warned in
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3781 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3782 ac_tool_warned
=yes ;;
3793 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error $?
"no acceptable C compiler found in \$PATH
3796 See \`config.log' for more details" "$LINENO" 5; }
3798 # Provide some information about the compiler.
3799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802 for ac_option
in --version -v -V -qversion -version; do
3803 { { ac_try
="$ac_compiler $ac_option >&5"
3805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 printf "%s\n" "$ac_try_echo"; } >&5
3810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3812 if test -s conftest.err; then
3814 ... rest of stderr output deleted ...
3815 10q' conftest.err >conftest.er1
3816 cat conftest.er1 >&5
3818 rm -f conftest.er1 conftest.err
3819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3834 ac_clean_files_save=$ac_clean_files
3835 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3836 # Try to create an executable without -o first, disregard a.out.
3837 # It will help us diagnose broken compilers, and finding out an intuition
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3840 printf %s "checking whether the C compiler works... " >&6; }
3841 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3843 # The possible output files:
3844 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3847 for ac_file in $ac_files
3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3851 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3856 if { { ac_try="$ac_link_default"
3858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3859 *) ac_try_echo
=$ac_try;;
3861 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 printf "%s\n" "$ac_try_echo"; } >&5
3863 (eval "$ac_link_default") 2>&5
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3868 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3869 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3870 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3871 # so that the user can short-circuit this test for compilers unknown to
3873 for ac_file
in $ac_files ''
3875 test -f "$ac_file" ||
continue
3877 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3880 # We found the default executable, but exeext='' is most
3884 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3886 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3888 # We set ac_cv_exeext here because the later test for it is not
3889 # safe: cross compilers may not add the suffix if given an `-o'
3890 # argument, so we may need to know it at that point already.
3891 # Even if this section looks crufty: it has the advantage of
3898 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3903 if test -z "$ac_file"
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 printf "%s\n" "no" >&6; }
3907 printf "%s\n" "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.
$ac_ext >&5
3910 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error
77 "C compiler cannot create executables
3913 See \`config.log' for more details" "$LINENO" 5; }
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3916 printf "%s\n" "yes" >&6; }
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3919 printf %s
"checking for C compiler default output file name... " >&6; }
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3921 printf "%s\n" "$ac_file" >&6; }
3922 ac_exeext
=$ac_cv_exeext
3924 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3925 ac_clean_files
=$ac_clean_files_save
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3927 printf %s
"checking for suffix of executables... " >&6; }
3928 if { { ac_try
="$ac_link"
3930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 printf "%s\n" "$ac_try_echo"; } >&5
3935 (eval "$ac_link") 2>&5
3937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }
3940 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3941 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3942 # work properly (i.e., refer to `conftest.exe'), while it won't with
3944 for ac_file
in conftest.exe conftest conftest.
*; do
3945 test -f "$ac_file" ||
continue
3947 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3948 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3957 See \`config.log' for more details" "$LINENO" 5; }
3959 rm -f conftest conftest
$ac_cv_exeext
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3961 printf "%s\n" "$ac_cv_exeext" >&6; }
3963 rm -f conftest.
$ac_ext
3964 EXEEXT
=$ac_cv_exeext
3966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3972 FILE *f = fopen ("conftest.out", "w");
3973 return ferror (f) || fclose (f) != 0;
3979 ac_clean_files
="$ac_clean_files conftest.out"
3980 # Check that the compiler produces executables we can run. If not, either
3981 # the compiler is broken, or we cross compile.
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3983 printf %s
"checking whether we are cross compiling... " >&6; }
3984 if test "$cross_compiling" != yes; then
3985 { { ac_try
="$ac_link"
3987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 printf "%s\n" "$ac_try_echo"; } >&5
3992 (eval "$ac_link") 2>&5
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3996 if { ac_try='./conftest$ac_cv_exeext'
3997 { { case "(($ac_try" in
3998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3999 *) ac_try_echo
=$ac_try;;
4001 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 printf "%s\n" "$ac_try_echo"; } >&5
4003 (eval "$ac_try") 2>&5
4005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006 test $ac_status = 0; }; }; then
4009 if test "$cross_compiling" = maybe
; then
4012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error
77 "cannot run C compiled programs.
4015 If you meant to cross compile, use \`--host'.
4016 See \`config.log' for more details" "$LINENO" 5; }
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4021 printf "%s\n" "$cross_compiling" >&6; }
4023 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4024 ac_clean_files
=$ac_clean_files_save
4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4026 printf %s
"checking for suffix of object files... " >&6; }
4027 if test ${ac_cv_objext+y}
4029 printf %s
"(cached) " >&6
4031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4042 rm -f conftest.o conftest.obj
4043 if { { ac_try
="$ac_compile"
4045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 printf "%s\n" "$ac_try_echo"; } >&5
4050 (eval "$ac_compile") 2>&5
4052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }
4055 for ac_file in conftest.o conftest.obj conftest.*; do
4056 test -f "$ac_file" || continue;
4058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4059 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4064 printf "%s\n" "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4070 See \
`config.log' for more details" "$LINENO" 5; }
4072 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4075 printf "%s\n" "$ac_cv_objext" >&6; }
4076 OBJEXT=$ac_cv_objext
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4079 printf %s "checking whether the compiler supports GNU C... " >&6; }
4080 if test ${ac_cv_c_compiler_gnu+y}
4082 printf %s "(cached) " >&6
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4098 if ac_fn_c_try_compile "$LINENO"
4104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 if test $ac_compiler_gnu = yes; then
4117 ac_test_CFLAGS=${CFLAGS+y}
4118 ac_save_CFLAGS=$CFLAGS
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 printf %s "checking whether $CC accepts -g... " >&6; }
4121 if test ${ac_cv_prog_cc_g+y}
4123 printf %s "(cached) " >&6
4125 ac_save_c_werror_flag=$ac_c_werror_flag
4126 ac_c_werror_flag=yes
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4140 if ac_fn_c_try_compile "$LINENO"
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4156 if ac_fn_c_try_compile "$LINENO"
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4173 if ac_fn_c_try_compile "$LINENO"
4177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4185 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4186 if test $ac_test_CFLAGS; then
4187 CFLAGS=$ac_save_CFLAGS
4188 elif test $ac_cv_prog_cc_g = yes; then
4189 if test "$GCC" = yes; then
4195 if test "$GCC" = yes; then
4202 if test x$ac_prog_cc_stdc = xno
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4205 printf %s "checking for $CC option to enable C11 features... " >&6; }
4206 if test ${ac_cv_prog_cc_c11+y}
4208 printf %s "(cached) " >&6
4210 ac_cv_prog_cc_c11=no
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 $ac_c_conftest_c11_program
4216 for ac_arg in '' -std=gnu11
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"
4221 ac_cv_prog_cc_c11=$ac_arg
4223 rm -f core conftest.err conftest.$ac_objext conftest.beam
4224 test "x$ac_cv_prog_cc_c11" != "xno" && break
4226 rm -f conftest.$ac_ext
4230 if test "x$ac_cv_prog_cc_c11" = xno
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4233 printf "%s\n" "unsupported" >&6; }
4235 if test "x$ac_cv_prog_cc_c11" = x
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 printf "%s\n" "none needed" >&6; }
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4241 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4242 CC="$CC $ac_cv_prog_cc_c11"
4244 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4248 if test x$ac_prog_cc_stdc = xno
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4251 printf %s "checking for $CC option to enable C99 features... " >&6; }
4252 if test ${ac_cv_prog_cc_c99+y}
4254 printf %s "(cached) " >&6
4256 ac_cv_prog_cc_c99=no
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 $ac_c_conftest_c99_program
4262 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4264 CC="$ac_save_CC $ac_arg"
4265 if ac_fn_c_try_compile "$LINENO"
4267 ac_cv_prog_cc_c99=$ac_arg
4269 rm -f core conftest.err conftest.$ac_objext conftest.beam
4270 test "x$ac_cv_prog_cc_c99" != "xno" && break
4272 rm -f conftest.$ac_ext
4276 if test "x$ac_cv_prog_cc_c99" = xno
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4279 printf "%s\n" "unsupported" >&6; }
4281 if test "x$ac_cv_prog_cc_c99" = x
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4284 printf "%s\n" "none needed" >&6; }
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4287 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4288 CC="$CC $ac_cv_prog_cc_c99"
4290 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4294 if test x$ac_prog_cc_stdc = xno
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4297 printf %s "checking for $CC option to enable C89 features... " >&6; }
4298 if test ${ac_cv_prog_cc_c89+y}
4300 printf %s "(cached) " >&6
4302 ac_cv_prog_cc_c89=no
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 $ac_c_conftest_c89_program
4308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4310 CC="$ac_save_CC $ac_arg"
4311 if ac_fn_c_try_compile "$LINENO"
4313 ac_cv_prog_cc_c89=$ac_arg
4315 rm -f core conftest.err conftest.$ac_objext conftest.beam
4316 test "x$ac_cv_prog_cc_c89" != "xno" && break
4318 rm -f conftest.$ac_ext
4322 if test "x$ac_cv_prog_cc_c89" = xno
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4325 printf "%s\n" "unsupported" >&6; }
4327 if test "x$ac_cv_prog_cc_c89" = x
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4330 printf "%s\n" "none needed" >&6; }
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4333 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4334 CC="$CC $ac_cv_prog_cc_c89"
4336 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4353 printf %s "checking how to run the C preprocessor... " >&6; }
4354 # On Suns, sometimes $CPP names a directory.
4355 if test -n "$CPP" && test -d "$CPP"; then
4358 if test -z "$CPP"; then
4359 if test ${ac_cv_prog_CPP+y}
4361 printf %s "(cached) " >&6
4363 # Double quotes because $CC needs to be expanded
4364 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4367 for ac_c_preproc_warn_flag in '' yes
4369 # Use a header file that comes with gcc, so configuring glibc
4370 # with a fresh cross-compiler works.
4371 # On the NeXT, cc -E runs the code through the compiler's parser,
4372 # not just through cpp. "Syntax error" is here to catch this case.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4378 if ac_fn_c_try_cpp "$LINENO"
4382 # Broken: fails on valid input.
4385 rm -f conftest.err conftest.i conftest.$ac_ext
4387 # OK, works on sane cases. Now check whether nonexistent headers
4388 # can be detected and how.
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391 #include <ac_nonexistent.h>
4393 if ac_fn_c_try_cpp "$LINENO"
4395 # Broken: success on invalid input.
4398 # Passes both tests.
4402 rm -f conftest.err conftest.i conftest.$ac_ext
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.i conftest.err conftest.
$ac_ext
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4421 printf "%s\n" "$CPP" >&6; }
4423 for ac_c_preproc_warn_flag
in '' yes
4425 # Use a header file that comes with gcc, so configuring glibc
4426 # with a fresh cross-compiler works.
4427 # On the NeXT, cc -E runs the code through the compiler's parser,
4428 # not just through cpp. "Syntax error" is here to catch this case.
4429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4434 if ac_fn_c_try_cpp
"$LINENO"
4438 # Broken: fails on valid input.
4441 rm -f conftest.err conftest.i conftest.
$ac_ext
4443 # OK, works on sane cases. Now check whether nonexistent headers
4444 # can be detected and how.
4445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #include <ac_nonexistent.h>
4449 if ac_fn_c_try_cpp
"$LINENO"
4451 # Broken: success on invalid input.
4454 # Passes both tests.
4458 rm -f conftest.err conftest.i conftest.
$ac_ext
4461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4462 rm -f conftest.i conftest.err conftest.
$ac_ext
4467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4470 See \`config.log' for more details" "$LINENO" 5; }
4474 ac_cpp
='$CPP $CPPFLAGS'
4475 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4486 ac_cpp
='$CXXCPP $CPPFLAGS'
4487 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4490 if test -z "$CXX"; then
4491 if test -n "$CCC"; then
4494 if test -n "$ac_tool_prefix"; then
4495 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
4497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4498 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 printf %s
"checking for $ac_word... " >&6; }
4501 if test ${ac_cv_prog_CXX+y}
4503 printf %s
"(cached) " >&6
4505 if test -n "$CXX"; then
4506 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4512 case $as_dir in #(((
4515 *) as_dir
=$as_dir/ ;;
4517 for ac_exec_ext
in '' $ac_executable_extensions; do
4518 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4530 if test -n "$CXX"; then
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4532 printf "%s\n" "$CXX" >&6; }
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 printf "%s\n" "no" >&6; }
4539 test -n "$CXX" && break
4542 if test -z "$CXX"; then
4544 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy
$ac_prog; ac_word
=$2
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 printf %s
"checking for $ac_word... " >&6; }
4550 if test ${ac_cv_prog_ac_ct_CXX+y}
4552 printf %s
"(cached) " >&6
4554 if test -n "$ac_ct_CXX"; then
4555 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4561 case $as_dir in #(((
4564 *) as_dir
=$as_dir/ ;;
4566 for ac_exec_ext
in '' $ac_executable_extensions; do
4567 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4578 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4579 if test -n "$ac_ct_CXX"; then
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4581 printf "%s\n" "$ac_ct_CXX" >&6; }
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 printf "%s\n" "no" >&6; }
4588 test -n "$ac_ct_CXX" && break
4591 if test "x$ac_ct_CXX" = x
; then
4594 case $cross_compiling:$ac_tool_warned in
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 ac_tool_warned
=yes ;;
4606 # Provide some information about the compiler.
4607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4610 for ac_option
in --version -v -V -qversion; do
4611 { { ac_try
="$ac_compiler $ac_option >&5"
4613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617 printf "%s\n" "$ac_try_echo"; } >&5
4618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4620 if test -s conftest.err; then
4622 ... rest of stderr output deleted ...
4623 10q' conftest.err >conftest.er1
4624 cat conftest.er1 >&5
4626 rm -f conftest.er1 conftest.err
4627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4632 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4633 if test ${ac_cv_cxx_compiler_gnu+y}
4635 printf %s "(cached) " >&6
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4651 if ac_fn_cxx_try_compile "$LINENO"
4657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4658 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4662 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4665 if test $ac_compiler_gnu = yes; then
4670 ac_test_CXXFLAGS=${CXXFLAGS+y}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4673 printf %s "checking whether $CXX accepts -g... " >&6; }
4674 if test ${ac_cv_prog_cxx_g+y}
4676 printf %s "(cached) " >&6
4678 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4679 ac_cxx_werror_flag=yes
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4693 if ac_fn_cxx_try_compile "$LINENO"
4695 ac_cv_prog_cxx_g=yes
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4709 if ac_fn_cxx_try_compile "$LINENO"
4713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4726 if ac_fn_cxx_try_compile "$LINENO"
4728 ac_cv_prog_cxx_g=yes
4730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4738 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4739 if test $ac_test_CXXFLAGS; then
4740 CXXFLAGS=$ac_save_CXXFLAGS
4741 elif test $ac_cv_prog_cxx_g = yes; then
4742 if test "$GXX" = yes; then
4748 if test "$GXX" = yes; then
4754 ac_prog_cxx_stdcxx=no
4755 if test x$ac_prog_cxx_stdcxx = xno
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4758 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4759 if test ${ac_cv_prog_cxx_cxx11+y}
4761 printf %s "(cached) " >&6
4763 ac_cv_prog_cxx_cxx11=no
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 $ac_cxx_conftest_cxx11_program
4769 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4771 CXX="$ac_save_CXX $ac_arg"
4772 if ac_fn_cxx_try_compile "$LINENO"
4774 ac_cv_prog_cxx_cxx11=$ac_arg
4776 rm -f core conftest.err conftest.$ac_objext conftest.beam
4777 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4779 rm -f conftest.$ac_ext
4783 if test "x$ac_cv_prog_cxx_cxx11" = xno
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4786 printf "%s\n" "unsupported" >&6; }
4788 if test "x$ac_cv_prog_cxx_cxx11" = x
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4791 printf "%s\n" "none needed" >&6; }
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4794 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4795 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4797 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4798 ac_prog_cxx_stdcxx=cxx11
4801 if test x$ac_prog_cxx_stdcxx = xno
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4804 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4805 if test ${ac_cv_prog_cxx_cxx98+y}
4807 printf %s "(cached) " >&6
4809 ac_cv_prog_cxx_cxx98=no
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 $ac_cxx_conftest_cxx98_program
4815 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4817 CXX="$ac_save_CXX $ac_arg"
4818 if ac_fn_cxx_try_compile "$LINENO"
4820 ac_cv_prog_cxx_cxx98=$ac_arg
4822 rm -f core conftest.err conftest.$ac_objext conftest.beam
4823 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4825 rm -f conftest.$ac_ext
4829 if test "x$ac_cv_prog_cxx_cxx98" = xno
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4832 printf "%s\n" "unsupported" >&6; }
4834 if test "x$ac_cv_prog_cxx_cxx98" = x
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4837 printf "%s\n" "none needed" >&6; }
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4840 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4841 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4843 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4844 ac_prog_cxx_stdcxx=cxx98
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855 # Find a good install program. We prefer a C program (faster),
4856 # so one script is as good as another. But avoid the broken or
4857 # incompatible versions:
4858 # SysV /etc/install, /usr/sbin/install
4859 # SunOS /usr/etc/install
4860 # IRIX /sbin/install
4862 # AmigaOS /C/install, which installs bootblocks on floppy discs
4863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4866 # OS/2's system install, which has a completely different semantic
4867 # ./install, which can be erroneously created by make from ./install.sh.
4868 # Reject install programs that cannot install multiple files.
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4870 printf %s "checking for a BSD-compatible install... " >&6; }
4871 if test -z "$INSTALL"; then
4872 if test ${ac_cv_path_install+y}
4874 printf %s "(cached) " >&6
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 case $as_dir in #(((
4883 *) as_dir=$as_dir/ ;;
4885 # Account for fact that we put trailing slashes in our PATH walk.
4888 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4889 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4892 # OSF1 and SCO ODT 3.0 have their own names for install.
4893 # Don't use installbsd from OSF since it installs stuff as root
4895 for ac_prog in ginstall scoinst install; do
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4898 if test $ac_prog = install &&
4899 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4900 # AIX install. It has an incompatible calling convention.
4902 elif test $ac_prog = install &&
4903 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4904 # program-specific install script used by HP pwplus--don't use.
4907 rm -rf conftest.one conftest.two conftest.dir
4908 echo one > conftest.one
4909 echo two > conftest.two
4911 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4912 test -s conftest.one && test -s conftest.two &&
4913 test -s conftest.dir/conftest.one &&
4914 test -s conftest.dir/conftest.two
4916 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4929 rm -rf conftest.one conftest.two conftest.dir
4932 if test ${ac_cv_path_install+y}; then
4933 INSTALL=$ac_cv_path_install
4935 # As a last resort, use the slow shell script. Don't cache a
4936 # value for INSTALL within a source directory, because that will
4937 # break other packages using the cache if that directory is
4938 # removed, or if the value is a relative name.
4939 INSTALL=$ac_install_sh
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4943 printf "%s\n" "$INSTALL" >&6; }
4945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4946 # It thinks the first close brace ends the variable substitution.
4947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4953 if test -n "$ac_tool_prefix"; then
4954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 printf %s "checking for $ac_word... " >&6; }
4958 if test ${ac_cv_prog_RANLIB+y}
4960 printf %s "(cached) " >&6
4962 if test -n "$RANLIB"; then
4963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 case $as_dir in #(((
4972 *) as_dir=$as_dir/ ;;
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4976 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4986 RANLIB=$ac_cv_prog_RANLIB
4987 if test -n "$RANLIB"; then
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4989 printf "%s\n" "$RANLIB" >&6; }
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 printf "%s\n" "no" >&6; }
4997 if test -z "$ac_cv_prog_RANLIB"; then
4998 ac_ct_RANLIB=$RANLIB
4999 # Extract the first word of "ranlib", so it can be a program name with args.
5000 set dummy ranlib; ac_word=$2
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 printf %s "checking for $ac_word... " >&6; }
5003 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5005 printf %s "(cached) " >&6
5007 if test -n "$ac_ct_RANLIB"; then
5008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 case $as_dir in #(((
5017 *) as_dir=$as_dir/ ;;
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_ac_ct_RANLIB="ranlib"
5022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5031 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5032 if test -n "$ac_ct_RANLIB"; then
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5034 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 printf "%s\n" "no" >&6; }
5040 if test "x$ac_ct_RANLIB" = x; then
5043 case $cross_compiling:$ac_tool_warned in
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5049 RANLIB=$ac_ct_RANLIB
5052 RANLIB="$ac_cv_prog_RANLIB"
5055 # Extract the first word of "autoconf", so it can be a program name with args.
5056 set dummy autoconf; ac_word=$2
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 printf %s "checking for $ac_word... " >&6; }
5059 if test ${ac_cv_prog_AUTOCONF+y}
5061 printf %s "(cached) " >&6
5063 if test -n "$AUTOCONF"; then
5064 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 case $as_dir in #(((
5073 *) as_dir=$as_dir/ ;;
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5077 ac_cv_prog_AUTOCONF="autoconf"
5078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5085 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
5088 AUTOCONF=$ac_cv_prog_AUTOCONF
5089 if test -n "$AUTOCONF"; then
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5091 printf "%s\n" "$AUTOCONF" >&6; }
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 printf "%s\n" "no" >&6; }
5098 # Extract the first word of "strip", so it can be a program name with args.
5099 set dummy strip; ac_word=$2
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 printf %s "checking for $ac_word... " >&6; }
5102 if test ${ac_cv_prog_STRIP+y}
5104 printf %s "(cached) " >&6
5106 if test -n "$STRIP"; then
5107 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 case $as_dir in #(((
5116 *) as_dir=$as_dir/ ;;
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_STRIP="strip"
5121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5128 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5131 STRIP=$ac_cv_prog_STRIP
5132 if test -n "$STRIP"; then
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5134 printf "%s\n" "$STRIP" >&6; }
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 printf "%s\n" "no" >&6; }
5141 # Extract the first word of "as", so it can be a program name with args.
5142 set dummy as; ac_word=$2
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 printf %s "checking for $ac_word... " >&6; }
5145 if test ${ac_cv_prog_AS+y}
5147 printf %s "(cached) " >&6
5149 if test -n "$AS"; then
5150 ac_cv_prog_AS="$AS" # Let the user override the test.
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 case $as_dir in #(((
5159 *) as_dir=$as_dir/ ;;
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5171 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
5175 if test -n "$AS"; then
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5177 printf "%s\n" "$AS" >&6; }
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 printf "%s\n" "no" >&6; }
5184 # Extract the first word of "cp", so it can be a program name with args.
5185 set dummy cp; ac_word=$2
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 printf %s "checking for $ac_word... " >&6; }
5188 if test ${ac_cv_prog_CP+y}
5190 printf %s "(cached) " >&6
5192 if test -n "$CP"; then
5193 ac_cv_prog_CP="$CP" # Let the user override the test.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 case $as_dir in #(((
5202 *) as_dir=$as_dir/ ;;
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5214 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
5218 if test -n "$CP"; then
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5220 printf "%s\n" "$CP" >&6; }
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 printf "%s\n" "no" >&6; }
5227 # Extract the first word of "ar", so it can be a program name with args.
5228 set dummy ar; ac_word=$2
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 printf %s "checking for $ac_word... " >&6; }
5231 if test ${ac_cv_prog_AR+y}
5233 printf %s "(cached) " >&6
5235 if test -n "$AR"; then
5236 ac_cv_prog_AR="$AR" # Let the user override the test.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 case $as_dir in #(((
5245 *) as_dir=$as_dir/ ;;
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5257 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
5261 if test -n "$AR"; then
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5263 printf "%s\n" "$AR" >&6; }
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 printf "%s\n" "no" >&6; }
5270 # Extract the first word of "gm4", so it can be a program name with args.
5271 set dummy gm4; ac_word=$2
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 printf %s "checking for $ac_word... " >&6; }
5274 if test ${ac_cv_prog_M4+y}
5276 printf %s "(cached) " >&6
5278 if test -n "$M4"; then
5279 ac_cv_prog_M4="$M4" # Let the user override the test.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 case $as_dir in #(((
5288 *) as_dir=$as_dir/ ;;
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5300 test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="m4"
5304 if test -n "$M4"; then
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
5306 printf "%s\n" "$M4" >&6; }
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 printf "%s\n" "no" >&6; }
5314 for ac_prog in flex lex
5316 # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy $ac_prog; ac_word=$2
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 printf %s "checking for $ac_word... " >&6; }
5320 if test ${ac_cv_prog_LEX+y}
5322 printf %s "(cached) " >&6
5324 if test -n "$LEX"; then
5325 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 case $as_dir in #(((
5334 *) as_dir=$as_dir/ ;;
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_LEX="$ac_prog"
5339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5349 if test -n "$LEX"; then
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5351 printf "%s\n" "$LEX" >&6; }
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 printf "%s\n" "no" >&6; }
5358 test -n "$LEX" && break
5360 test -n "$LEX" || LEX=":"
5363 for ac_prog in 'bison -y' byacc yacc
5365 # Extract the first word of "$ac_prog", so it can be a program name with args.
5366 set dummy $ac_prog; ac_word=$2
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 printf %s "checking for $ac_word... " >&6; }
5369 if test ${ac_cv_prog_YACC+y}
5371 printf %s "(cached) " >&6
5373 if test -n "$YACC"; then
5374 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 case $as_dir in #(((
5383 *) as_dir=$as_dir/ ;;
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5387 ac_cv_prog_YACC="$ac_prog"
5388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5397 YACC=$ac_cv_prog_YACC
5398 if test -n "$YACC"; then
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5400 printf "%s\n" "$YACC" >&6; }
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 printf "%s\n" "no" >&6; }
5407 test -n "$YACC" && break
5409 test -n "$YACC" || YACC=":"
5412 # 2.7 is just a guess for the minimum version. I know it works with 2.7 (and 3.6 and 3.9), but should test if a lower version is sufficient.
5419 if test -n "$PYTHON"; then
5420 # If the user set $PYTHON, use it and don't search something else.
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
5422 printf %s "checking whether $PYTHON version is >= 2.7... " >&6; }
5424 # split strings by '.' and convert to numeric. Append some zeros
5425 # because we need at least 4 digits for the hex conversion.
5426 # map returns an iterator in Python 3.0 and a list in 2.x
5427 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5429 # xrange is not present in Python 3.0 and range returns an iterator
5430 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5431 sys.exit(sys.hexversion < minverhex)"
5432 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5433 ($PYTHON -c "$prog") >&5 2>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5439 printf "%s\n" "yes" >&6; }
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 printf "%s\n" "no" >&6; }
5443 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5445 am_display_PYTHON=$PYTHON
5447 # Otherwise, try each interpreter until we find one that satisfies
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
5450 printf %s "checking for a Python interpreter with version >= 2.7... " >&6; }
5451 if test ${am_cv_pathless_PYTHON+y}
5453 printf %s "(cached) " >&6
5456 for am_cv_pathless_PYTHON in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5457 test "$am_cv_pathless_PYTHON" = none && break
5459 # split strings by '.' and convert to numeric. Append some zeros
5460 # because we need at least 4 digits for the hex conversion.
5461 # map returns an iterator in Python 3.0 and a list in 2.x
5462 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5464 # xrange is not present in Python 3.0 and range returns an iterator
5465 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5466 sys.exit(sys.hexversion < minverhex)"
5467 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5468 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5478 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5479 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5480 if test "$am_cv_pathless_PYTHON" = none; then
5483 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5484 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 printf %s "checking for $ac_word... " >&6; }
5487 if test ${ac_cv_path_PYTHON+y}
5489 printf %s "(cached) " >&6
5493 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 case $as_dir in #(((
5503 *) as_dir=$as_dir/ ;;
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5507 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5518 PYTHON=$ac_cv_path_PYTHON
5519 if test -n "$PYTHON"; then
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5521 printf "%s\n" "$PYTHON" >&6; }
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 printf "%s\n" "no" >&6; }
5529 am_display_PYTHON=$am_cv_pathless_PYTHON
5533 if test "$PYTHON" = :; then
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5538 printf %s "checking for $am_display_PYTHON version... " >&6; }
5539 if test ${am_cv_python_version+y}
5541 printf %s "(cached) " >&6
5543 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5546 printf "%s\n" "$am_cv_python_version" >&6; }
5547 PYTHON_VERSION=$am_cv_python_version
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5551 printf %s "checking for $am_display_PYTHON platform... " >&6; }
5552 if test ${am_cv_python_platform+y}
5554 printf %s "(cached) " >&6
5556 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5559 printf "%s\n" "$am_cv_python_platform" >&6; }
5560 PYTHON_PLATFORM=$am_cv_python_platform
5563 if test "x$prefix" = xNONE; then
5564 am__usable_prefix=$ac_default_prefix
5566 am__usable_prefix=$prefix
5569 # Allow user to request using sys.* values from Python,
5570 # instead of the GNU $prefix values.
5572 # Check whether --with-python-sys-prefix was given.
5573 if test ${with_python_sys_prefix+y}
5575 withval=$with_python_sys_prefix; am_use_python_sys=:
5577 am_use_python_sys=false
5581 # Allow user to override whatever the default Python prefix is.
5583 # Check whether --with-python_prefix was given.
5584 if test ${with_python_prefix+y}
5586 withval=$with_python_prefix; am_python_prefix_subst=$withval
5587 am_cv_python_prefix=$withval
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
5589 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5591 printf "%s\n" "$am_cv_python_prefix" >&6; }
5594 if $am_use_python_sys; then
5595 # using python sys.prefix value, not GNU
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
5597 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
5598 if test ${am_cv_python_prefix+y}
5600 printf %s "(cached) " >&6
5602 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5605 printf "%s\n" "$am_cv_python_prefix" >&6; }
5607 case $am_cv_python_prefix in
5608 $am__usable_prefix*)
5609 am__strip_prefix=`echo "$am__usable_prefix" |
sed 's|.|.|g'`
5610 am_python_prefix_subst=`echo "$am_cv_python_prefix" |
sed "s,^$am__strip_prefix,\\${prefix},"`
5613 am_python_prefix_subst=$am_cv_python_prefix
5616 else # using GNU prefix value, not python sys.prefix
5617 am_python_prefix_subst='${prefix}'
5618 am_python_prefix=$am_python_prefix_subst
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
5620 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
5622 printf "%s\n" "$am_python_prefix" >&6; }
5626 # Substituting python_prefix_subst value.
5627 PYTHON_PREFIX=$am_python_prefix_subst
5630 # emacs-page Now do it all over again for Python exec_prefix, but with yet
5631 # another conditional: fall back to regular prefix if that was specified.
5633 # Check whether --with-python_exec_prefix was given.
5634 if test ${with_python_exec_prefix+y}
5636 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
5637 am_cv_python_exec_prefix=$withval
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
5639 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5641 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5644 # no explicit --with-python_exec_prefix, but if
5645 # --with-python_prefix was given, use its value for python_exec_prefix too.
5646 if test -n "$with_python_prefix"
5648 am_python_exec_prefix_subst=$with_python_prefix
5649 am_cv_python_exec_prefix=$with_python_prefix
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
5651 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5653 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5656 # Set am__usable_exec_prefix whether using GNU or Python values,
5657 # since we use that variable for pyexecdir.
5658 if test "x$exec_prefix" = xNONE; then
5659 am__usable_exec_prefix=$am__usable_prefix
5661 am__usable_exec_prefix=$exec_prefix
5664 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
5666 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
5667 if test ${am_cv_python_exec_prefix+y}
5669 printf %s "(cached) " >&6
5671 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5674 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5675 case $am_cv_python_exec_prefix in
5676 $am__usable_exec_prefix*)
5677 am__strip_prefix=`echo "$am__usable_exec_prefix" |
sed 's|.|.|g'`
5678 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" |
sed "s,^$am__strip_prefix,\\${exec_prefix},"`
5681 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
5684 else # using GNU $exec_prefix, not python sys.exec_prefix
5685 am_python_exec_prefix_subst='${exec_prefix}'
5686 am_python_exec_prefix=$am_python_exec_prefix_subst
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
5688 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
5690 printf "%s\n" "$am_python_exec_prefix" >&6; }
5695 # Substituting python_exec_prefix_subst.
5696 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
5699 # Factor out some code duplication into this shell variable.
5700 am_python_setup_sysconfig="\
5702 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5703 # with python 3.x. See automake bug#10227.
5707 can_use_sysconfig = 0
5709 can_use_sysconfig = 1
5710 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5711 # <https://github.com/pypa/virtualenv/issues/118>
5713 from platform import python_implementation
5714 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5715 can_use_sysconfig = 0
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
5721 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
5722 if test ${am_cv_python_pythondir+y}
5724 printf %s "(cached) " >&6
5726 if test "x$am_cv_python_prefix" = x; then
5727 am_py_prefix=$am__usable_prefix
5729 am_py_prefix=$am_cv_python_prefix
5731 am_cv_python_pythondir=`$PYTHON -c "
5732 $am_python_setup_sysconfig
5733 if can_use_sysconfig:
5734 if hasattr(sysconfig, 'get_default_scheme'):
5735 scheme = sysconfig.get_default_scheme()
5737 scheme = sysconfig._get_default_scheme()
5738 if scheme == 'posix_local':
5739 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
5740 scheme = 'posix_prefix'
5741 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
5743 from distutils import sysconfig
5744 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5745 sys.stdout.write(sitedir)"`
5747 case $am_cv_python_pythondir in
5749 am__strip_prefix=`echo "$am_py_prefix" |
sed 's|.|.|g'`
5750 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" |
sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
5753 case $am_py_prefix in
5755 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5763 printf "%s\n" "$am_cv_python_pythondir" >&6; }
5764 pythondir=$am_cv_python_pythondir
5767 pkgpythondir=\${pythondir}/$PACKAGE
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
5771 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
5772 if test ${am_cv_python_pyexecdir+y}
5774 printf %s "(cached) " >&6
5776 if test "x$am_cv_python_exec_prefix" = x; then
5777 am_py_exec_prefix=$am__usable_exec_prefix
5779 am_py_exec_prefix=$am_cv_python_exec_prefix
5781 am_cv_python_pyexecdir=`$PYTHON -c "
5782 $am_python_setup_sysconfig
5783 if can_use_sysconfig:
5784 if hasattr(sysconfig, 'get_default_scheme'):
5785 scheme = sysconfig.get_default_scheme()
5787 scheme = sysconfig._get_default_scheme()
5788 if scheme == 'posix_local':
5789 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
5790 scheme = 'posix_prefix'
5791 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
5793 from distutils import sysconfig
5794 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
5795 sys.stdout.write(sitedir)"`
5797 case $am_cv_python_pyexecdir in
5798 $am_py_exec_prefix*)
5799 am__strip_prefix=`echo "$am_py_exec_prefix" |
sed 's|.|.|g'`
5800 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" |
sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
5803 case $am_py_exec_prefix in
5805 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5813 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
5814 pyexecdir=$am_cv_python_pyexecdir
5817 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5826 if test "$YACC" = ":"; then
5827 as_fn_error $? "Cannot find required program bison." "$LINENO" 5
5830 if test "$LEX" = ":"; then
5831 as_fn_error $? "Cannot find required program flex." "$LINENO" 5
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843 ac_header= ac_cache=
5844 for ac_item in $ac_header_c_list
5846 if test $ac_cache; then
5847 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5848 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5849 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5851 ac_header= ac_cache=
5852 elif test $ac_header; then
5866 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5869 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5872 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
5873 if test "x$ac_cv_header_endian_h" = xyes
5875 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
5878 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
5879 if test "x$ac_cv_header_sys_endian_h" = xyes
5881 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
5884 ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
5885 if test "x$ac_cv_header_machine_endian_h" = xyes
5887 printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
5890 ac_fn_c_check_header_compile "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default"
5891 if test "x$ac_cv_header_sys_isa_defs_h" = xyes
5893 printf "%s\n" "#define HAVE_SYS_ISA_DEFS_H 1" >>confdefs.h
5897 ac_fn_c_check_header_compile "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
5898 if test "x$ac_cv_header_uchar_h" = xyes
5900 printf "%s\n" "#define HAVE_UCHAR_H 1" >>confdefs.h
5904 # zlib is not needed by sdcc itself, but by sdcpp and sdbinutils.
5905 for ac_header in zlib.h
5907 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5908 if test "x$ac_cv_header_zlib_h" = xyes
5910 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
5913 as_fn_error $? "zlib library not found (zlib.h)." "$LINENO" 5
5918 ac_cpp='$CXXCPP $CPPFLAGS'
5919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5924 for ac_header in treedec/combinations.hpp
5926 ac_fn_cxx_check_header_compile "$LINENO" "treedec/combinations.hpp" "ac_cv_header_treedec_combinations_hpp" "$ac_includes_default"
5927 if test "x$ac_cv_header_treedec_combinations_hpp" = xyes
5929 printf "%s\n" "#define HAVE_TREEDEC_COMBINATIONS_HPP 1" >>confdefs.h
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: treedec library missing, falling back to Thorup." >&5
5933 printf "%s\n" "$as_me: treedec library missing, falling back to Thorup." >&6;}
5937 ac_fn_cxx_check_header_compile "$LINENO" "gala/graph.h" "ac_cv_header_gala_graph_h" "$ac_includes_default"
5938 if test "x$ac_cv_header_gala_graph_h" = xyes
5940 printf "%s\n" "#define HAVE_GALA_GRAPH_H 1" >>confdefs.h
5944 for ac_header in boost/graph/adjacency_list.hpp
5946 ac_fn_cxx_check_header_compile "$LINENO" "boost/graph/adjacency_list.hpp" "ac_cv_header_boost_graph_adjacency_list_hpp" "$ac_includes_default"
5947 if test "x$ac_cv_header_boost_graph_adjacency_list_hpp" = xyes
5949 printf "%s\n" "#define HAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP 1" >>confdefs.h
5952 as_fn_error $? "boost library not found (boost/graph/adjacency_list.hpp)." "$LINENO" 5
5957 ac_cpp='$CPP $CPPFLAGS'
5958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964 # Check whether --with-ccache was given.
5965 if test ${with_ccache+y}
5967 withval=$with_ccache;
5970 case x${with_ccache-yes} in
5971 xyes) # Extract the first word of "ccache", so it can be a program name with args.
5972 set dummy ccache; ac_word=$2
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 printf %s "checking for $ac_word... " >&6; }
5975 if test ${ac_cv_prog_CCACHE+y}
5977 printf %s "(cached) " >&6
5979 if test -n "$CCACHE"; then
5980 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 case $as_dir in #(((
5989 *) as_dir=$as_dir/ ;;
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5993 ac_cv_prog_CCACHE="ccache"
5994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6003 CCACHE=$ac_cv_prog_CCACHE
6004 if test -n "$CCACHE"; then
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6006 printf "%s\n" "$CCACHE" >&6; }
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 printf "%s\n" "no" >&6; }
6014 *) CCACHE=$with_ccache
6019 # Checking for functions
6020 # ===========================================================================
6021 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
6022 if test "x$ac_cv_func_mkstemp" = xyes
6024 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
6027 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
6028 if test "x$ac_cv_func_strndup" = xyes
6030 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
6033 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
6034 if test "x$ac_cv_func_setrlimit" = xyes
6036 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
6039 ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
6040 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes
6042 printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS_FD 1" >>confdefs.h
6049 # ===========================================================================
6051 # _sdcc_EXECUTE_IFELSE_BODY(COMMAND)
6052 # -----------------------
6053 # Shell function body for _AC_EXECUTE_IFELSE.
6054 # _sdcc_EXECUTE_IFELSE_BODY
6056 # sdcc_EXECUTE_IFELSE(COMMAND[ACTION-IF-TRUE], [ACTION-IF-FALSE])
6057 # ----------------------------------------------------------------
6058 # Try to execute COMMAND.
6059 # sdcc_EXECUTE_IFELSE
6061 # Check whether the compiler for the current language is SunPRO.
6065 # sdcc_IS_VALID_OPTION macro checks if the current compiler, selected by
6066 # AC_LANG, supports option specified as the 1st parameter. The test fails if
6067 # the compiler returns an error or in case something is writeen to stderr.
6068 # For example: sdcc_VALID_OPT(-fPIC)
6072 # This macro expands DIR and assigns it to RET.
6073 # If DIR is NONE, then it's replaced by DEFAULT.
6075 # Based on AC_DEFINE_DIR
6079 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
6083 # adl_NORMALIZE_PATH
6085 # - empty paths are changed to '.'
6086 # - trailing slashes are removed
6087 # - repeated slashes are squeezed except a leading doubled slash '//'
6088 # (which might indicate a networked disk on some OS).
6091 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
6092 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
6093 # are turned into backslashes, otherwise they are all turned into slashes.
6095 # This makes processing of DOS filenames quite easier, because you can turn a
6096 # filename to the Unix notation, make your processing, and turn it back to
6097 # original notation.
6102 # adl_COMPUTE_RELATIVE_PATH
6104 # PATH_LIST is a space-separated list of colon-separated triplets of the form
6105 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
6106 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
6107 # absolute filenames for this macro to success.
6113 ## The following helper macros are too fragile to be used out
6114 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
6115 ## paths are normalized), that's why I'm keeping them in the same file.
6116 ## Still, some of them maybe worth to reuse.
6133 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6135 ac_cpp='$CXXCPP $CPPFLAGS'
6136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6142 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
6143 if test ${ax_cv_cxx_compile_cxx11+y}
6145 printf %s "(cached) " >&6
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6151 // If the compiler admits that it is not ready for C++11, why torture it?
6152 // Hopefully, this will speed up the test.
6156 #error "This is not a C++ compiler"
6158 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6159 // only set it correctly if /Zc:__cplusplus is specified as well as a
6160 // /std:c++NN switch:
6161 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6162 #elif __cplusplus < 201103L && !defined _MSC_VER
6164 #error "This is not a C++11 compiler"
6171 namespace test_static_assert
6174 template <typename T>
6177 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6182 namespace test_final_override
6191 struct Derived : public Base
6193 virtual ~Derived() override {}
6194 virtual void f() override {}
6199 namespace test_double_right_angle_brackets
6202 template < typename T >
6205 typedef check<void> single_type;
6206 typedef check<check<void>> double_type;
6207 typedef check<check<check<void>>> triple_type;
6208 typedef check<check<check<check<void>>>> quadruple_type;
6212 namespace test_decltype
6225 namespace test_type_deduction
6228 template < typename T1, typename T2 >
6231 static const bool value = false;
6234 template < typename T >
6235 struct is_same<T, T>
6237 static const bool value = true;
6240 template < typename T1, typename T2 >
6242 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6248 test(const int c, volatile int v)
6250 static_assert(is_same<int, decltype(0)>::value == true, "");
6251 static_assert(is_same<int, decltype(c)>::value == false, "");
6252 static_assert(is_same<int, decltype(v)>::value == false, "");
6255 auto sumi = ac + av + 'x';
6256 auto sumf = ac + av + 1.0;
6257 static_assert(is_same<int, decltype(ac)>::value == true, "");
6258 static_assert(is_same<int, decltype(av)>::value == true, "");
6259 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6260 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6261 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6262 return (sumf > 0.0) ? sumi : add(c, v);
6267 namespace test_noexcept
6270 int f() { return 0; }
6271 int g() noexcept { return 0; }
6273 static_assert(noexcept(f()) == false, "");
6274 static_assert(noexcept(g()) == true, "");
6278 namespace test_constexpr
6281 template < typename CharT >
6282 unsigned long constexpr
6283 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6285 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6288 template < typename CharT >
6289 unsigned long constexpr
6290 strlen_c(const CharT *const s) noexcept
6292 return strlen_c_r(s, 0UL);
6295 static_assert(strlen_c("") == 0UL, "");
6296 static_assert(strlen_c("1") == 1UL, "");
6297 static_assert(strlen_c("example") == 7UL, "");
6298 static_assert(strlen_c("another\0example") == 7UL, "");
6302 namespace test_rvalue_references
6308 static constexpr int value = N;
6311 answer<1> f(int&) { return answer<1>(); }
6312 answer<2> f(const int&) { return answer<2>(); }
6313 answer<3> f(int&&) { return answer<3>(); }
6320 static_assert(decltype(f(i))::value == 1, "");
6321 static_assert(decltype(f(c))::value == 2, "");
6322 static_assert(decltype(f(0))::value == 3, "");
6327 namespace test_uniform_initialization
6332 static const int zero {};
6333 static const int one {1};
6336 static_assert(test::zero == 0, "");
6337 static_assert(test::one == 1, "");
6341 namespace test_lambdas
6347 auto lambda1 = [](){};
6348 auto lambda2 = lambda1;
6356 auto a = [](int i, int j){ return i + j; }(1, 2);
6357 auto b = []() -> int { return '0'; }();
6358 auto c = [=](){ return a + b; }();
6359 auto d = [&](){ return c; }();
6360 auto e = [a, &b](int x) mutable {
6361 const auto identity = [](int y){ return y; };
6362 for (auto i = 0; i < a; ++i)
6364 return x + identity(a + b);
6366 return a + b + c + d + e;
6372 const auto nullary = [](){ return 0; };
6373 const auto unary = [](int x){ return x; };
6374 using nullary_t = decltype(nullary);
6375 using unary_t = decltype(unary);
6376 const auto higher1st = [](nullary_t f){ return f(); };
6377 const auto higher2nd = [unary](nullary_t f1){
6378 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6380 return higher1st(nullary) + higher2nd(nullary)(unary);
6385 namespace test_variadic_templates
6391 template <int N0, int... N1toN>
6392 struct sum<N0, N1toN...>
6394 static constexpr auto value = N0 + sum<N1toN...>::value;
6400 static constexpr auto value = 0;
6403 static_assert(sum<>::value == 0, "");
6404 static_assert(sum<1>::value == 1, "");
6405 static_assert(sum<23>::value == 23, "");
6406 static_assert(sum<1, 2>::value == 3, "");
6407 static_assert(sum<5, 5, 11>::value == 21, "");
6408 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6412 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6413 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6415 namespace test_template_alias_sfinae
6420 template<typename T>
6421 using member = typename T::member_type;
6423 template<typename T>
6426 template<typename T>
6427 void func(member<T>*) {}
6431 void test() { func<foo>(0); }
6435 } // namespace cxx11
6437 #endif // __cplusplus >= 201103L
6442 if ac_fn_cxx_try_compile "$LINENO"
6444 ax_cv_cxx_compile_cxx11=yes
6446 ax_cv_cxx_compile_cxx11=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6451 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
6452 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6456 if test x$ac_success = xno; then
6457 for alternative in ${ax_cxx_compile_alternatives}; do
6458 switch="-std=gnu++${alternative}"
6459 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6461 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6462 if eval test \${$cachevar+y}
6464 printf %s "(cached) " >&6
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6472 // If the compiler admits that it is not ready for C++11, why torture it?
6473 // Hopefully, this will speed up the test.
6477 #error "This is not a C++ compiler"
6479 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6480 // only set it correctly if /Zc:__cplusplus is specified as well as a
6481 // /std:c++NN switch:
6482 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6483 #elif __cplusplus < 201103L && !defined _MSC_VER
6485 #error "This is not a C++11 compiler"
6492 namespace test_static_assert
6495 template <typename T>
6498 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6503 namespace test_final_override
6512 struct Derived : public Base
6514 virtual ~Derived() override {}
6515 virtual void f() override {}
6520 namespace test_double_right_angle_brackets
6523 template < typename T >
6526 typedef check<void> single_type;
6527 typedef check<check<void>> double_type;
6528 typedef check<check<check<void>>> triple_type;
6529 typedef check<check<check<check<void>>>> quadruple_type;
6533 namespace test_decltype
6546 namespace test_type_deduction
6549 template < typename T1, typename T2 >
6552 static const bool value = false;
6555 template < typename T >
6556 struct is_same<T, T>
6558 static const bool value = true;
6561 template < typename T1, typename T2 >
6563 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6569 test(const int c, volatile int v)
6571 static_assert(is_same<int, decltype(0)>::value == true, "");
6572 static_assert(is_same<int, decltype(c)>::value == false, "");
6573 static_assert(is_same<int, decltype(v)>::value == false, "");
6576 auto sumi = ac + av + 'x';
6577 auto sumf = ac + av + 1.0;
6578 static_assert(is_same<int, decltype(ac)>::value == true, "");
6579 static_assert(is_same<int, decltype(av)>::value == true, "");
6580 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6581 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6582 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6583 return (sumf > 0.0) ? sumi : add(c, v);
6588 namespace test_noexcept
6591 int f() { return 0; }
6592 int g() noexcept { return 0; }
6594 static_assert(noexcept(f()) == false, "");
6595 static_assert(noexcept(g()) == true, "");
6599 namespace test_constexpr
6602 template < typename CharT >
6603 unsigned long constexpr
6604 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6606 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6609 template < typename CharT >
6610 unsigned long constexpr
6611 strlen_c(const CharT *const s) noexcept
6613 return strlen_c_r(s, 0UL);
6616 static_assert(strlen_c("") == 0UL, "");
6617 static_assert(strlen_c("1") == 1UL, "");
6618 static_assert(strlen_c("example") == 7UL, "");
6619 static_assert(strlen_c("another\0example") == 7UL, "");
6623 namespace test_rvalue_references
6629 static constexpr int value = N;
6632 answer<1> f(int&) { return answer<1>(); }
6633 answer<2> f(const int&) { return answer<2>(); }
6634 answer<3> f(int&&) { return answer<3>(); }
6641 static_assert(decltype(f(i))::value == 1, "");
6642 static_assert(decltype(f(c))::value == 2, "");
6643 static_assert(decltype(f(0))::value == 3, "");
6648 namespace test_uniform_initialization
6653 static const int zero {};
6654 static const int one {1};
6657 static_assert(test::zero == 0, "");
6658 static_assert(test::one == 1, "");
6662 namespace test_lambdas
6668 auto lambda1 = [](){};
6669 auto lambda2 = lambda1;
6677 auto a = [](int i, int j){ return i + j; }(1, 2);
6678 auto b = []() -> int { return '0'; }();
6679 auto c = [=](){ return a + b; }();
6680 auto d = [&](){ return c; }();
6681 auto e = [a, &b](int x) mutable {
6682 const auto identity = [](int y){ return y; };
6683 for (auto i = 0; i < a; ++i)
6685 return x + identity(a + b);
6687 return a + b + c + d + e;
6693 const auto nullary = [](){ return 0; };
6694 const auto unary = [](int x){ return x; };
6695 using nullary_t = decltype(nullary);
6696 using unary_t = decltype(unary);
6697 const auto higher1st = [](nullary_t f){ return f(); };
6698 const auto higher2nd = [unary](nullary_t f1){
6699 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6701 return higher1st(nullary) + higher2nd(nullary)(unary);
6706 namespace test_variadic_templates
6712 template <int N0, int... N1toN>
6713 struct sum<N0, N1toN...>
6715 static constexpr auto value = N0 + sum<N1toN...>::value;
6721 static constexpr auto value = 0;
6724 static_assert(sum<>::value == 0, "");
6725 static_assert(sum<1>::value == 1, "");
6726 static_assert(sum<23>::value == 23, "");
6727 static_assert(sum<1, 2>::value == 3, "");
6728 static_assert(sum<5, 5, 11>::value == 21, "");
6729 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6733 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6734 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6736 namespace test_template_alias_sfinae
6741 template<typename T>
6742 using member = typename T::member_type;
6744 template<typename T>
6747 template<typename T>
6748 void func(member<T>*) {}
6752 void test() { func<foo>(0); }
6756 } // namespace cxx11
6758 #endif // __cplusplus >= 201103L
6763 if ac_fn_cxx_try_compile "$LINENO"
6769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6772 eval ac_res=\$$cachevar
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6774 printf "%s\n" "$ac_res" >&6; }
6775 if eval test x\$$cachevar = xyes; then
6777 if test -n "$CXXCPP" ; then
6778 CXXCPP="$CXXCPP $switch"
6786 if test x$ac_success = xno; then
6787 for alternative in ${ax_cxx_compile_alternatives}; do
6788 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6789 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6791 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6792 if eval test \${$cachevar+y}
6794 printf %s "(cached) " >&6
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6802 // If the compiler admits that it is not ready for C++11, why torture it?
6803 // Hopefully, this will speed up the test.
6807 #error "This is not a C++ compiler"
6809 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6810 // only set it correctly if /Zc:__cplusplus is specified as well as a
6811 // /std:c++NN switch:
6812 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6813 #elif __cplusplus < 201103L && !defined _MSC_VER
6815 #error "This is not a C++11 compiler"
6822 namespace test_static_assert
6825 template <typename T>
6828 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6833 namespace test_final_override
6842 struct Derived : public Base
6844 virtual ~Derived() override {}
6845 virtual void f() override {}
6850 namespace test_double_right_angle_brackets
6853 template < typename T >
6856 typedef check<void> single_type;
6857 typedef check<check<void>> double_type;
6858 typedef check<check<check<void>>> triple_type;
6859 typedef check<check<check<check<void>>>> quadruple_type;
6863 namespace test_decltype
6876 namespace test_type_deduction
6879 template < typename T1, typename T2 >
6882 static const bool value = false;
6885 template < typename T >
6886 struct is_same<T, T>
6888 static const bool value = true;
6891 template < typename T1, typename T2 >
6893 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6899 test(const int c, volatile int v)
6901 static_assert(is_same<int, decltype(0)>::value == true, "");
6902 static_assert(is_same<int, decltype(c)>::value == false, "");
6903 static_assert(is_same<int, decltype(v)>::value == false, "");
6906 auto sumi = ac + av + 'x';
6907 auto sumf = ac + av + 1.0;
6908 static_assert(is_same<int, decltype(ac)>::value == true, "");
6909 static_assert(is_same<int, decltype(av)>::value == true, "");
6910 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6911 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6912 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6913 return (sumf > 0.0) ? sumi : add(c, v);
6918 namespace test_noexcept
6921 int f() { return 0; }
6922 int g() noexcept { return 0; }
6924 static_assert(noexcept(f()) == false, "");
6925 static_assert(noexcept(g()) == true, "");
6929 namespace test_constexpr
6932 template < typename CharT >
6933 unsigned long constexpr
6934 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6936 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6939 template < typename CharT >
6940 unsigned long constexpr
6941 strlen_c(const CharT *const s) noexcept
6943 return strlen_c_r(s, 0UL);
6946 static_assert(strlen_c("") == 0UL, "");
6947 static_assert(strlen_c("1") == 1UL, "");
6948 static_assert(strlen_c("example") == 7UL, "");
6949 static_assert(strlen_c("another\0example") == 7UL, "");
6953 namespace test_rvalue_references
6959 static constexpr int value = N;
6962 answer<1> f(int&) { return answer<1>(); }
6963 answer<2> f(const int&) { return answer<2>(); }
6964 answer<3> f(int&&) { return answer<3>(); }
6971 static_assert(decltype(f(i))::value == 1, "");
6972 static_assert(decltype(f(c))::value == 2, "");
6973 static_assert(decltype(f(0))::value == 3, "");
6978 namespace test_uniform_initialization
6983 static const int zero {};
6984 static const int one {1};
6987 static_assert(test::zero == 0, "");
6988 static_assert(test::one == 1, "");
6992 namespace test_lambdas
6998 auto lambda1 = [](){};
6999 auto lambda2 = lambda1;
7007 auto a = [](int i, int j){ return i + j; }(1, 2);
7008 auto b = []() -> int { return '0'; }();
7009 auto c = [=](){ return a + b; }();
7010 auto d = [&](){ return c; }();
7011 auto e = [a, &b](int x) mutable {
7012 const auto identity = [](int y){ return y; };
7013 for (auto i = 0; i < a; ++i)
7015 return x + identity(a + b);
7017 return a + b + c + d + e;
7023 const auto nullary = [](){ return 0; };
7024 const auto unary = [](int x){ return x; };
7025 using nullary_t = decltype(nullary);
7026 using unary_t = decltype(unary);
7027 const auto higher1st = [](nullary_t f){ return f(); };
7028 const auto higher2nd = [unary](nullary_t f1){
7029 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7031 return higher1st(nullary) + higher2nd(nullary)(unary);
7036 namespace test_variadic_templates
7042 template <int N0, int... N1toN>
7043 struct sum<N0, N1toN...>
7045 static constexpr auto value = N0 + sum<N1toN...>::value;
7051 static constexpr auto value = 0;
7054 static_assert(sum<>::value == 0, "");
7055 static_assert(sum<1>::value == 1, "");
7056 static_assert(sum<23>::value == 23, "");
7057 static_assert(sum<1, 2>::value == 3, "");
7058 static_assert(sum<5, 5, 11>::value == 21, "");
7059 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7063 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7064 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7066 namespace test_template_alias_sfinae
7071 template<typename T>
7072 using member = typename T::member_type;
7074 template<typename T>
7077 template<typename T>
7078 void func(member<T>*) {}
7082 void test() { func<foo>(0); }
7086 } // namespace cxx11
7088 #endif // __cplusplus >= 201103L
7093 if ac_fn_cxx_try_compile "$LINENO"
7099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7102 eval ac_res=\$$cachevar
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7104 printf "%s\n" "$ac_res" >&6; }
7105 if eval test x\$$cachevar = xyes; then
7107 if test -n "$CXXCPP" ; then
7108 CXXCPP="$CXXCPP $switch"
7114 if test x$ac_success = xyes; then
7120 ac_cpp='$CPP $CPPFLAGS'
7121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7126 if test x$ac_success = xno; then
7127 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7130 if test x$ac_success = xno; then
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7133 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
7137 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
7143 # Checking characteristics of compilers and other programs
7144 # ===========================================================================
7145 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether preprocessor accepts -MM or -M" >&5
7147 printf %s "checking whether preprocessor accepts -MM or -M... " >&6; }
7148 if test ${sdcc_cv_MM+y}
7150 printf %s "(cached) " >&6
7152 echo "#include <stdio.h>" >_test_.c
7154 $CPP -v -MM _test_.c 1>&5 2>&5
7155 if test "$?" = "0"; then
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_MM" >&5
7163 printf "%s\n" "$sdcc_cv_MM" >&6; }
7165 # This is the first time when CFLAGS are set/modified!!
7166 arg1=`echo -ggdb |
sed -e"s/^-*//" -e"s/-/_/"`
7167 ac_test_CFLAGS=${CFLAGS+set}
7168 sdcc_save_CFLAGS=$CFLAGS
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -ggdb" >&5
7170 printf %s "checking whether C accepts -ggdb... " >&6; }
7171 if eval test \${sdcc_cv_c_$arg1+y}
7173 printf %s "(cached) " >&6
7175 sdcc_save_c_werror_flag=$ac_c_werror_flag
7176 ac_c_werror_flag=yes
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7190 if ac_fn_c_try_compile "$LINENO"
7192 eval sdcc_cv_c_$arg1=yes
7194 eval sdcc_cv_c_$arg1=no
7196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7197 ac_c_werror_flag=$sdcc_save_c_werror_flag
7199 eval ac_res=\$sdcc_cv_c_$arg1
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7201 printf "%s\n" "$ac_res" >&6; }
7202 CFLAGS=$sdcc_save_CFLAGS
7204 if test "$sdcc_cv_c_ggdb" = "yes"; then
7205 CFLAGS="-ggdb ${CFLAGS}"
7206 CXXFLAGS="-ggdb ${CXXFLAGS}"
7209 arg1=`echo -pipe |
sed -e"s/^-*//" -e"s/-/_/"`
7210 ac_test_CFLAGS=${CFLAGS+set}
7211 sdcc_save_CFLAGS=$CFLAGS
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C accepts -pipe" >&5
7213 printf %s "checking whether C accepts -pipe... " >&6; }
7214 if eval test \${sdcc_cv_c_$arg1+y}
7216 printf %s "(cached) " >&6
7218 sdcc_save_c_werror_flag=$ac_c_werror_flag
7219 ac_c_werror_flag=yes
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7233 if ac_fn_c_try_compile "$LINENO"
7235 eval sdcc_cv_c_$arg1=yes
7237 eval sdcc_cv_c_$arg1=no
7239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7240 ac_c_werror_flag=$sdcc_save_c_werror_flag
7242 eval ac_res=\$sdcc_cv_c_$arg1
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7244 printf "%s\n" "$ac_res" >&6; }
7245 CFLAGS=$sdcc_save_CFLAGS
7247 if test "$sdcc_cv_c_pipe" = "yes"; then
7248 CFLAGS="-pipe ${CFLAGS}"
7249 # Don't use "-pipe" on x86 Solaris g++, since src/z80/ralloc2.cc dies with:
7250 # Assembler: ralloc2.cc
7251 # "<stdin>", line 117637 : Internal: Out of symbol table
7252 if test `uname
` != "SunOS" -o \( `uname
` = "SunOS" -a `uname
-m` != "i86pc" \); then
7253 CXXFLAGS="-pipe ${CXXFLAGS}"
7257 WALL_FLAG="-Wall -Wno-parentheses"
7258 MAKEDEP_CXX="$CXX $sdcc_cv_MM"
7259 MAKEDEP="$CC $sdcc_cv_MM"
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the SunPRO C compiler" >&5
7262 printf %s "checking whether we are using the SunPRO C compiler... " >&6; }
7263 if test ${sdcc_cv_c_compiler_sunpro+y}
7265 printf %s "(cached) " >&6
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7273 #if !defined __SUNPRO_C && !defined __SUNPRO_CC
7281 if ac_fn_c_try_compile "$LINENO"
7283 sdcc_cv_c_compiler_sunpro=yes
7285 sdcc_cv_c_compiler_sunpro=no
7287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdcc_cv_c_compiler_sunpro" >&5
7291 printf "%s\n" "$sdcc_cv_c_compiler_sunpro" >&6; }
7299 # -------------------------------------------------------------------------
7300 if test "$ac_cv_prog_cc_c11" == "no"; then
7301 as_fn_error $? "Could not find C11-capable host compiler." "$LINENO" 5
7304 # Checks for typedefs, structures, and compiler characteristics.
7305 # ===========================================================================
7307 # The cast to long int works around a bug in the HP C Compiler
7308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7309 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7310 # This bug is HP SR number 8606223364.
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
7312 printf %s "checking size of char... " >&6; }
7313 if test ${ac_cv_sizeof_char+y}
7315 printf %s "(cached) " >&6
7317 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
7321 if test "$ac_cv_type_char" = yes; then
7322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7323 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
7324 as_fn_error 77 "cannot compute sizeof (char)
7325 See \`config.log
' for more details" "$LINENO" 5; }
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
7333 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
7337 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
7340 # The cast to long int works around a bug in the HP C Compiler
7341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7343 # This bug is HP SR number 8606223364.
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7345 printf %s
"checking size of short... " >&6; }
7346 if test ${ac_cv_sizeof_short+y}
7348 printf %s
"(cached) " >&6
7350 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
7354 if test "$ac_cv_type_short" = yes; then
7355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7356 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7357 as_fn_error
77 "cannot compute sizeof (short)
7358 See \`config.log' for more details" "$LINENO" 5; }
7360 ac_cv_sizeof_short
=0
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7366 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
7370 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
7373 # The cast to long int works around a bug in the HP C Compiler
7374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7376 # This bug is HP SR number 8606223364.
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7378 printf %s
"checking size of int... " >&6; }
7379 if test ${ac_cv_sizeof_int+y}
7381 printf %s
"(cached) " >&6
7383 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
7387 if test "$ac_cv_type_int" = yes; then
7388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7389 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7390 as_fn_error
77 "cannot compute sizeof (int)
7391 See \`config.log' for more details" "$LINENO" 5; }
7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7399 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
7403 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
7406 # The cast to long int works around a bug in the HP C Compiler
7407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7409 # This bug is HP SR number 8606223364.
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7411 printf %s
"checking size of long... " >&6; }
7412 if test ${ac_cv_sizeof_long+y}
7414 printf %s
"(cached) " >&6
7416 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
7420 if test "$ac_cv_type_long" = yes; then
7421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7422 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7423 as_fn_error
77 "cannot compute sizeof (long)
7424 See \`config.log' for more details" "$LINENO" 5; }
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7432 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
7436 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
7439 # The cast to long int works around a bug in the HP C Compiler
7440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7442 # This bug is HP SR number 8606223364.
7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7444 printf %s
"checking size of long long... " >&6; }
7445 if test ${ac_cv_sizeof_long_long+y}
7447 printf %s
"(cached) " >&6
7449 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
7453 if test "$ac_cv_type_long_long" = yes; then
7454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7455 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7456 as_fn_error
77 "cannot compute sizeof (long long)
7457 See \`config.log' for more details" "$LINENO" 5; }
7459 ac_cv_sizeof_long_long
=0
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7465 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
7469 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
7473 printf %s
"checking whether char is unsigned... " >&6; }
7474 if test ${ac_cv_c_char_unsigned+y}
7476 printf %s
"(cached) " >&6
7478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 $ac_includes_default
7484 static int test_array [1 - 2 * !(((char) -1) < 0)];
7486 return test_array [0];
7492 if ac_fn_c_try_compile
"$LINENO"
7494 ac_cv_c_char_unsigned
=no
7496 ac_cv_c_char_unsigned
=yes
7498 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
7501 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
7502 if test $ac_cv_c_char_unsigned = yes; then
7503 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
7510 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev
/null
; then
7514 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev
/null
; then
7518 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev
/null
; then
7522 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev
/null
; then
7526 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev
/null
; then
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for byte" >&5
7534 printf %s
"checking type name for byte... " >&6; }
7535 TYPE_CHAR
=`type_name 1`
7536 if test "$ac_cv_c_char_unsigned" = "yes"; then
7537 TYPE_BYTE
="signed $TYPE_CHAR"
7539 TYPE_BYTE
=$TYPE_CHAR
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_BYTE" >&5
7542 printf "%s\n" "$TYPE_BYTE" >&6; }
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for word" >&5
7544 printf %s
"checking type name for word... " >&6; }
7545 TYPE_WORD
=`type_name 2`
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_WORD" >&5
7547 printf "%s\n" "$TYPE_WORD" >&6; }
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for dword" >&5
7549 printf %s
"checking type name for dword... " >&6; }
7550 TYPE_DWORD
=`type_name 4`
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_DWORD" >&5
7552 printf "%s\n" "$TYPE_DWORD" >&6; }
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type name for qword" >&5
7554 printf %s
"checking type name for qword... " >&6; }
7555 TYPE_QWORD
=`type_name 8`
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_QWORD" >&5
7557 printf "%s\n" "$TYPE_QWORD" >&6; }
7560 printf "%s\n" "#define TYPE_BYTE $TYPE_BYTE" >>confdefs.h
7563 printf "%s\n" "#define TYPE_WORD $TYPE_WORD" >>confdefs.h
7566 printf "%s\n" "#define TYPE_DWORD $TYPE_DWORD" >>confdefs.h
7569 printf "%s\n" "#define TYPE_QWORD $TYPE_QWORD" >>confdefs.h
7573 printf "%s\n" "#define TYPE_UBYTE unsigned $TYPE_CHAR" >>confdefs.h
7576 printf "%s\n" "#define TYPE_UWORD unsigned $TYPE_WORD" >>confdefs.h
7579 printf "%s\n" "#define TYPE_UDWORD unsigned $TYPE_DWORD" >>confdefs.h
7582 printf "%s\n" "#define TYPE_UQWORD unsigned $TYPE_QWORD" >>confdefs.h
7587 LDFLAGS
="$LDFLAGS -Wl,--stack,4194304"
7590 LDFLAGS
="$LDFLAGS -Wl,--stack,4194304"
7594 # Checking whether byte ordering is bigendian
7595 # ===========================================================================
7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7597 printf %s
"checking whether byte ordering is bigendian... " >&6; }
7598 if test ${ac_cv_c_bigendian+y}
7600 printf %s
"(cached) " >&6
7602 ac_cv_c_bigendian
=unknown
7603 # See if we're dealing with a universal compiler.
7604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 #ifndef __APPLE_CC__
7607 not a universal capable compiler
7612 if ac_fn_c_try_compile
"$LINENO"
7615 # Check for potential -arch flags. It is not universal unless
7616 # there are at least two -arch flags with different values.
7619 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7620 if test -n "$ac_prev"; then
7622 i?
86 | x86_64 | ppc | ppc64
)
7623 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7626 ac_cv_c_bigendian
=universal
7632 elif test "x$ac_word" = "x-arch"; then
7637 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7638 if test $ac_cv_c_bigendian = unknown
; then
7639 # See if sys/param.h defines the BYTE_ORDER macro.
7640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 #include <sys/types.h>
7643 #include <sys/param.h>
7648 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7649 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7658 if ac_fn_c_try_compile
"$LINENO"
7660 # It does; now see whether it defined to BIG_ENDIAN or not.
7661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 #include <sys/types.h>
7664 #include <sys/param.h>
7669 #if BYTE_ORDER != BIG_ENDIAN
7677 if ac_fn_c_try_compile
"$LINENO"
7679 ac_cv_c_bigendian
=yes
7681 ac_cv_c_bigendian
=no
7683 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7685 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7687 if test $ac_cv_c_bigendian = unknown
; then
7688 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7696 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7704 if ac_fn_c_try_compile
"$LINENO"
7706 # It does; now see whether it defined to _BIG_ENDIAN or not.
7707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7722 if ac_fn_c_try_compile
"$LINENO"
7724 ac_cv_c_bigendian
=yes
7726 ac_cv_c_bigendian
=no
7728 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7730 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7732 if test $ac_cv_c_bigendian = unknown
; then
7733 # Compile a test program.
7734 if test "$cross_compiling" = yes
7736 # Try to guess by grepping values from an object file.
7737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 unsigned short int ascii_mm[] =
7740 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7741 unsigned short int ascii_ii[] =
7742 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7743 int use_ascii (int i) {
7744 return ascii_mm[i] + ascii_ii[i];
7746 unsigned short int ebcdic_ii[] =
7747 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7748 unsigned short int ebcdic_mm[] =
7749 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7750 int use_ebcdic (int i) {
7751 return ebcdic_mm[i] + ebcdic_ii[i];
7758 return use_ascii (foo) == use_ebcdic (foo);
7763 if ac_fn_c_try_compile
"$LINENO"
7765 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7766 ac_cv_c_bigendian
=yes
7768 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7769 if test "$ac_cv_c_bigendian" = unknown
; then
7770 ac_cv_c_bigendian
=no
7772 # finding both strings is unlikely to happen, but who knows?
7773 ac_cv_c_bigendian
=unknown
7777 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 $ac_includes_default
7786 /* Are we little or big endian? From Harbison&Steele. */
7790 char c[sizeof (long int)];
7793 return u.c[sizeof (long int) - 1] == 1;
7799 if ac_fn_c_try_run
"$LINENO"
7801 ac_cv_c_bigendian
=no
7803 ac_cv_c_bigendian
=yes
7805 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7806 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7812 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
7813 case $ac_cv_c_bigendian in #(
7815 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
7821 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7825 as_fn_error $?
"unknown endianness
7826 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7830 # Set standard installation paths
7831 # ===========================================================================
7833 # In the Makefiles we need paths with '/' as directory separator, even if
7834 # crosscompiling for Win32.
7835 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
7836 # The variables in the Makefiles are replaced by AC_SUBST()
7838 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
7840 # The macros are expanded for the header.
7841 # The variables in the header are replaced by AC_*DEFINE*()
7842 # sdccconf_h_dir_separator contains a backslash.
7844 if test "x${sdccconf_h_dir_separator}" = "x"; then
7845 sdccconf_h_dir_separator
="/"
7852 # *nix default: "RANLIB"
7855 if test "${LIB_TYPE}" = ""; then
7859 # include_dir_suffix:
7860 # *nix default: "sdcc/include"
7863 if test "${inclib_dir_suffix}" = ""; then
7864 inclib_dir_suffix
="sdcc"
7868 if test "${include_dir_suffix}" = ""; then
7869 include_dir_suffix
="${inclib_dir_suffix}/include"
7873 if test "${non_free_inclib_dir_suffix}" = ""; then
7874 non_free_inclib_dir_suffix
="sdcc/non-free"
7877 # non_free_include_dir_suffix:
7878 # *nix default: "sdcc/non-free/include"
7881 if test "${non_free_include_dir_suffix}" = ""; then
7882 non_free_include_dir_suffix
="${non_free_inclib_dir_suffix}/include"
7886 # *nix default: "sdcc/lib"
7888 if test "${lib_dir_suffix}" = ""; then
7889 lib_dir_suffix
="${inclib_dir_suffix}/lib"
7892 # non_free_lib_dir_suffix:
7893 # *nix default: "sdcc/non-free/lib"
7895 if test "${non_free_lib_dir_suffix}" = ""; then
7896 non_free_lib_dir_suffix
="${non_free_inclib_dir_suffix}/lib"
7900 # *nix default: "${datadir}/sdcc/doc"
7902 if test "${docdir}" = ""; then
7903 docdir
="\${datadir}"/sdcc
/doc
7912 printf "%s\n" "#define DIR_SEPARATOR_STRING \"${sdccconf_h_dir_separator}\"" >>confdefs.h
7915 printf "%s\n" "#define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'" >>confdefs.h
7919 # default: "NONE", ${ac_default_prefix}: "/usr/local"
7921 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7922 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7924 test "x$ac_expand" = xNONE
&& ac_expand
="$ac_default_prefix"
7925 ac_expand
=`eval echo $ac_expand`
7926 expanded_prefix
=`eval echo $ac_expand`
7929 ac_ndu
=$expanded_prefix
7932 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7935 case $sdccconf_h_dir_separator in
7937 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7938 s,^[\\/],\\\\\\\\,'` ;;
7940 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7943 printf "%s\n" "#define PREFIX \"${ac_ndu}\"" >>confdefs.h
7948 # default: "${prefix}"
7950 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7951 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7952 ac_expand
=$exec_prefix
7953 test "x$ac_expand" = xNONE
&& ac_expand
="$expanded_prefix"
7954 ac_expand
=`eval echo $ac_expand`
7955 expanded_exec_prefix
=`eval echo $ac_expand`
7958 ac_ndu
=$expanded_exec_prefix
7961 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7964 case $sdccconf_h_dir_separator in
7966 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7967 s,^[\\/],\\\\\\\\,'` ;;
7969 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7972 printf "%s\n" "#define EXEC_PREFIX \"${ac_ndu}\"" >>confdefs.h
7977 # default: "${exec_prefix}/bin"
7979 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7980 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7982 test "x$ac_expand" = xNONE
&& ac_expand
="$"NONE
""
7983 ac_expand
=`eval echo $ac_expand`
7984 expanded_bindir
=`eval echo $ac_expand`
7987 ac_ndu
=$expanded_bindir
7990 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7993 case $sdccconf_h_dir_separator in
7995 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7996 s,^[\\/],\\\\\\\\,'` ;;
7998 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8001 printf "%s\n" "#define BINDIR \"${ac_ndu}\"" >>confdefs.h
8006 # default: "${prefix}/share"
8008 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
8009 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8011 test "x$ac_expand" = xNONE
&& ac_expand
="$"NONE
""
8012 ac_expand
=`eval echo $ac_expand`
8013 expanded_datadir
=`eval echo $ac_expand`
8016 ac_ndu
=$expanded_datadir
8019 :*[\\/]:) ac_ndu
=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
8022 case $sdccconf_h_dir_separator in
8024 *\\*) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8025 s,^[\\/],\\\\\\\\,'` ;;
8027 *) ac_ndu
=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8030 printf "%s\n" "#define DATADIR \"${ac_ndu}\"" >>confdefs.h
8034 # include/lib suffix
8035 norm_inc_dir_suffix
=${include_dir_suffix}
8036 case ":$norm_inc_dir_suffix:" in
8037 ::) norm_inc_dir_suffix
='.' ;;
8038 :*[\\/]:) norm_inc_dir_suffix
=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8041 case $sdccconf_h_dir_separator in
8043 *\\*) norm_inc_dir_suffix
=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8044 s,^[\\/],\\\\\\\\,'` ;;
8046 *) norm_inc_dir_suffix
=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8049 printf "%s\n" "#define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_inc_dir_suffix}\"" >>confdefs.h
8051 norm_non_free_inc_dir_suffix
=${non_free_include_dir_suffix}
8052 case ":$norm_non_free_inc_dir_suffix:" in
8053 ::) norm_non_free_inc_dir_suffix
='.' ;;
8054 :*[\\/]:) norm_non_free_inc_dir_suffix
=`echo "$norm_non_free_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8057 case $sdccconf_h_dir_separator in
8059 *\\*) norm_non_free_inc_dir_suffix
=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8060 s,^[\\/],\\\\\\\\,'` ;;
8062 *) norm_non_free_inc_dir_suffix
=`echo "$norm_non_free_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8065 printf "%s\n" "#define NON_FREE_INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_inc_dir_suffix}\"" >>confdefs.h
8068 norm_lib_dir_suffix
=${lib_dir_suffix}
8069 case ":$norm_lib_dir_suffix:" in
8070 ::) norm_lib_dir_suffix
='.' ;;
8071 :*[\\/]:) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8074 case $sdccconf_h_dir_separator in
8076 *\\*) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8077 s,^[\\/],\\\\\\\\,'` ;;
8079 *) norm_lib_dir_suffix
=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8082 printf "%s\n" "#define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_lib_dir_suffix}\"" >>confdefs.h
8084 norm_non_free_lib_dir_suffix
=${non_free_lib_dir_suffix}
8085 case ":$norm_non_free_lib_dir_suffix:" in
8086 ::) norm_non_free_lib_dir_suffix
='.' ;;
8087 :*[\\/]:) norm_non_free_lib_dir_suffix
=`echo "$norm_non_free_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
8090 case $sdccconf_h_dir_separator in
8092 *\\*) norm_non_free_lib_dir_suffix
=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8093 s,^[\\/],\\\\\\\\,'` ;;
8095 *) norm_non_free_lib_dir_suffix
=`echo "$norm_non_free_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8098 printf "%s\n" "#define NON_FREE_LIB_DIR_SUFFIX DIR_SEPARATOR_STRING \"${norm_non_free_lib_dir_suffix}\"" >>confdefs.h
8102 for _lcl_i
in expanded_bindir
:expanded_datadir
:bin2data_dir
; do
8103 _lcl_from
=\$
`echo "$_lcl_i" | sed 's,:.*$,,'`
8104 _lcl_to
=\$
`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8105 _lcl_result_var
=`echo "$_lcl_i" | sed 's,^.*:,,'`
8106 _lcl_receval
="$_lcl_from"
8107 _lcl_from
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8108 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8110 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8111 _lcl_receval_old="$_lcl_receval"
8112 eval _lcl_receval="\"$_lcl_receval\""
8114 echo "$_lcl_receval")`
8115 _lcl_receval
="$_lcl_to"
8116 _lcl_to
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8117 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8119 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8120 _lcl_receval_old="$_lcl_receval"
8121 eval _lcl_receval="\"$_lcl_receval\""
8123 echo "$_lcl_receval")`
8124 _lcl_notation
="$_lcl_from$_lcl_to"
8125 case ":$_lcl_from:" in
8126 ::) _lcl_from
='.' ;;
8127 :*[\\/]:) _lcl_from
=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8132 *\\*) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8133 s,^[\\/],\\\\\\\\,'` ;;
8135 *) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8137 case ":$_lcl_to:" in
8139 :*[\\/]:) _lcl_to
=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8144 *\\*) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8145 s,^[\\/],\\\\\\\\,'` ;;
8147 *) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8149 _lcl_common_prefix
=''
8150 _lcl_second_prefix_match
=''
8151 while test "$_lcl_second_prefix_match" != 0; do
8152 _lcl_first_prefix
=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8153 _lcl_second_prefix_match
=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8154 if test "$_lcl_second_prefix_match" != 0; then
8155 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8156 _lcl_common_prefix
="$_lcl_first_prefix"
8158 _lcl_second_prefix_match
=0
8162 _lcl_first_suffix
=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8165 while test "$_lcl_tmp" != ''; do
8166 _lcl_tmp
=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8167 if test "$_lcl_first_suffix" != ''; then
8168 _lcl_first_suffix
="$_lcl_tmp"
8169 _lcl_first_rel
="../$_lcl_first_rel"
8172 _lcl_second_suffix
=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8173 _lcl_result_tmp
="$_lcl_first_rel$_lcl_second_suffix"
8174 case ":$_lcl_result_tmp:" in
8175 ::) _lcl_result_tmp
='.' ;;
8176 :*[\\/]:) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8179 case "$_lcl_notation" in
8181 *\\*) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8182 s,^[\\/],\\\\\\\\,'` ;;
8184 *) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8186 eval $_lcl_result_var='$_lcl_result_tmp'
8188 case ":$bin2data_dir:" in
8189 ::) bin2data_dir
='.' ;;
8190 :*[\\/]:) bin2data_dir
=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
8193 case $sdccconf_h_dir_separator in
8195 *\\*) bin2data_dir
=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8196 s,^[\\/],\\\\\\\\,'` ;;
8198 *) bin2data_dir
=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8201 printf "%s\n" "#define BIN2DATA_DIR DIR_SEPARATOR_STRING \"${bin2data_dir}\"" >>confdefs.h
8204 for _lcl_i
in expanded_prefix
:expanded_bindir
:prefix2bin_dir
; do
8205 _lcl_from
=\$
`echo "$_lcl_i" | sed 's,:.*$,,'`
8206 _lcl_to
=\$
`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8207 _lcl_result_var
=`echo "$_lcl_i" | sed 's,^.*:,,'`
8208 _lcl_receval
="$_lcl_from"
8209 _lcl_from
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8210 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8212 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8213 _lcl_receval_old="$_lcl_receval"
8214 eval _lcl_receval="\"$_lcl_receval\""
8216 echo "$_lcl_receval")`
8217 _lcl_receval
="$_lcl_to"
8218 _lcl_to
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8219 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8221 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8222 _lcl_receval_old="$_lcl_receval"
8223 eval _lcl_receval="\"$_lcl_receval\""
8225 echo "$_lcl_receval")`
8226 _lcl_notation
="$_lcl_from$_lcl_to"
8227 case ":$_lcl_from:" in
8228 ::) _lcl_from
='.' ;;
8229 :*[\\/]:) _lcl_from
=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8234 *\\*) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8235 s,^[\\/],\\\\\\\\,'` ;;
8237 *) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8239 case ":$_lcl_to:" in
8241 :*[\\/]:) _lcl_to
=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8246 *\\*) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8247 s,^[\\/],\\\\\\\\,'` ;;
8249 *) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8251 _lcl_common_prefix
=''
8252 _lcl_second_prefix_match
=''
8253 while test "$_lcl_second_prefix_match" != 0; do
8254 _lcl_first_prefix
=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8255 _lcl_second_prefix_match
=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8256 if test "$_lcl_second_prefix_match" != 0; then
8257 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8258 _lcl_common_prefix
="$_lcl_first_prefix"
8260 _lcl_second_prefix_match
=0
8264 _lcl_first_suffix
=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8267 while test "$_lcl_tmp" != ''; do
8268 _lcl_tmp
=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8269 if test "$_lcl_first_suffix" != ''; then
8270 _lcl_first_suffix
="$_lcl_tmp"
8271 _lcl_first_rel
="../$_lcl_first_rel"
8274 _lcl_second_suffix
=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8275 _lcl_result_tmp
="$_lcl_first_rel$_lcl_second_suffix"
8276 case ":$_lcl_result_tmp:" in
8277 ::) _lcl_result_tmp
='.' ;;
8278 :*[\\/]:) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8281 case "$_lcl_notation" in
8283 *\\*) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8284 s,^[\\/],\\\\\\\\,'` ;;
8286 *) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8288 eval $_lcl_result_var='$_lcl_result_tmp'
8290 case ":$prefix2bin_dir:" in
8291 ::) prefix2bin_dir
='.' ;;
8292 :*[\\/]:) prefix2bin_dir
=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
8295 case $sdccconf_h_dir_separator in
8297 *\\*) prefix2bin_dir
=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8298 s,^[\\/],\\\\\\\\,'` ;;
8300 *) prefix2bin_dir
=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8303 printf "%s\n" "#define PREFIX2BIN_DIR DIR_SEPARATOR_STRING \"${prefix2bin_dir}\"" >>confdefs.h
8306 for _lcl_i
in expanded_prefix
:expanded_datadir
:prefix2data_dir
; do
8307 _lcl_from
=\$
`echo "$_lcl_i" | sed 's,:.*$,,'`
8308 _lcl_to
=\$
`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8309 _lcl_result_var
=`echo "$_lcl_i" | sed 's,^.*:,,'`
8310 _lcl_receval
="$_lcl_from"
8311 _lcl_from
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8312 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8314 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8315 _lcl_receval_old="$_lcl_receval"
8316 eval _lcl_receval="\"$_lcl_receval\""
8318 echo "$_lcl_receval")`
8319 _lcl_receval
="$_lcl_to"
8320 _lcl_to
=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8321 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8323 while test "$_lcl_receval_old" != "$_lcl_receval"; do
8324 _lcl_receval_old="$_lcl_receval"
8325 eval _lcl_receval="\"$_lcl_receval\""
8327 echo "$_lcl_receval")`
8328 _lcl_notation
="$_lcl_from$_lcl_to"
8329 case ":$_lcl_from:" in
8330 ::) _lcl_from
='.' ;;
8331 :*[\\/]:) _lcl_from
=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
8336 *\\*) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8337 s,^[\\/],\\\\\\\\,'` ;;
8339 *) _lcl_from
=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8341 case ":$_lcl_to:" in
8343 :*[\\/]:) _lcl_to
=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
8348 *\\*) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8349 s,^[\\/],\\\\\\\\,'` ;;
8351 *) _lcl_to
=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8353 _lcl_common_prefix
=''
8354 _lcl_second_prefix_match
=''
8355 while test "$_lcl_second_prefix_match" != 0; do
8356 _lcl_first_prefix
=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
8357 _lcl_second_prefix_match
=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
8358 if test "$_lcl_second_prefix_match" != 0; then
8359 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
8360 _lcl_common_prefix
="$_lcl_first_prefix"
8362 _lcl_second_prefix_match
=0
8366 _lcl_first_suffix
=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
8369 while test "$_lcl_tmp" != ''; do
8370 _lcl_tmp
=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
8371 if test "$_lcl_first_suffix" != ''; then
8372 _lcl_first_suffix
="$_lcl_tmp"
8373 _lcl_first_rel
="../$_lcl_first_rel"
8376 _lcl_second_suffix
=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
8377 _lcl_result_tmp
="$_lcl_first_rel$_lcl_second_suffix"
8378 case ":$_lcl_result_tmp:" in
8379 ::) _lcl_result_tmp
='.' ;;
8380 :*[\\/]:) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
8383 case "$_lcl_notation" in
8385 *\\*) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8386 s,^[\\/],\\\\\\\\,'` ;;
8388 *) _lcl_result_tmp
=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8390 eval $_lcl_result_var='$_lcl_result_tmp'
8392 case ":$prefix2data_dir:" in
8393 ::) prefix2data_dir
='.' ;;
8394 :*[\\/]:) prefix2data_dir
=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
8397 case $sdccconf_h_dir_separator in
8399 *\\*) prefix2data_dir
=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8400 s,^[\\/],\\\\\\\\,'` ;;
8402 *) prefix2data_dir
=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8404 if test "${prefix2data_dir}" = "."; then
8405 # small optimization for Mingw32; otherwise Borut will complain ;-)
8407 printf "%s\n" "#define PREFIX2DATA_DIR \"\"" >>confdefs.h
8411 printf "%s\n" "#define PREFIX2DATA_DIR DIR_SEPARATOR_STRING \"${prefix2data_dir}\"" >>confdefs.h
8417 printf "%s\n" "#define STD_LIB \"libsdcc\"" >>confdefs.h
8420 printf "%s\n" "#define STD_INT_LIB \"libint\"" >>confdefs.h
8423 printf "%s\n" "#define STD_LONG_LIB \"liblong\"" >>confdefs.h
8426 printf "%s\n" "#define STD_FP_LIB \"libfloat\"" >>confdefs.h
8429 printf "%s\n" "#define STD_DS390_LIB \"libds390\"" >>confdefs.h
8432 printf "%s\n" "#define STD_DS400_LIB \"libds400\"" >>confdefs.h
8435 # SDCC runtime environment variables
8436 sdcc_dir_name
="SDCC_HOME"
8438 printf "%s\n" "#define SDCC_DIR_NAME \"${sdcc_dir_name}\"" >>confdefs.h
8441 sdcc_include_name
="SDCC_INCLUDE"
8443 printf "%s\n" "#define SDCC_INCLUDE_NAME \"${sdcc_include_name}\"" >>confdefs.h
8446 sdcc_lib_name
="SDCC_LIB"
8448 printf "%s\n" "#define SDCC_LIB_NAME \"${sdcc_lib_name}\"" >>confdefs.h
8451 # add include guard and custom stuff to sdccconf.h
8455 # Port selection helper
8456 # ===========================================================================
8457 # macro AC_DO_ENABLER()
8458 # $1 used to access enable_$1, e.g. enable_doc
8459 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
8463 # macro AC_DO_DISABLER()
8464 # $1 used to access disable_$1, e.g. ucsim
8465 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
8469 # macro AC_DO_PORT($1, $2, $3, $4)
8470 # $1 used to access enable_$2_port, e.g. sm83
8471 # $2 port name in ports.all and ports.build, e.g. z80
8472 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8476 # macro AC_DO_PORT_ENABLER($1, $2, $3, $4)
8477 # $1 used to access enable_$2_port, e.g. sm83
8478 # $2 port name in ports.all and ports.build, e.g. z80
8479 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. SM83
8487 SVN_REVISION
="unknown"
8488 if test -d "${srcdir}/.git"; then
8489 GIT_REVISION
=$
( git log
--pretty=format
:'%h' -n 1u )
8490 echo "Found Git repo... $GIT_REVISION"
8491 SVN_REVISION
=$
( git log
-1 |
tail -n1 | cut
-f2 -d @ | cut
-f1 -d" " )
8496 # Now handle the port selection
8497 # ===========================================================================
8498 rm -f ports.all ports.build
8502 # Check whether --enable-mcs51-port was given.
8503 if test ${enable_mcs51_port+y}
8505 enableval
=$enable_mcs51_port;
8509 if test "$enable_mcs51_port" = "no"; then
8512 enable_mcs51_port
="yes"
8517 printf "%s\n" "#define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51" >>confdefs.h
8521 echo mcs51
>>ports.all
8522 if test $OPT_DISABLE_MCS51 = 0; then
8523 echo mcs51
>>ports.build
8527 # Check whether --enable-z80-port was given.
8528 if test ${enable_z80_port+y}
8530 enableval
=$enable_z80_port;
8534 if test "$enable_z80_port" = "no"; then
8537 enable_z80_port
="yes"
8542 printf "%s\n" "#define OPT_DISABLE_Z80 $OPT_DISABLE_Z80" >>confdefs.h
8546 echo z80
>>ports.all
8547 if test $OPT_DISABLE_Z80 = 0; then
8548 echo z80
>>ports.build
8552 # Check whether --enable-z180-port was given.
8553 if test ${enable_z180_port+y}
8555 enableval
=$enable_z180_port;
8559 if test "$enable_z180_port" = "no"; then
8562 enable_z180_port
="yes"
8567 printf "%s\n" "#define OPT_DISABLE_Z180 $OPT_DISABLE_Z180" >>confdefs.h
8571 echo z80
>>ports.all
8572 if test $OPT_DISABLE_Z180 = 0; then
8573 echo z80
>>ports.build
8577 # Check whether --enable-r2k-port was given.
8578 if test ${enable_r2k_port+y}
8580 enableval
=$enable_r2k_port;
8584 if test "$enable_r2k_port" = "no"; then
8587 enable_r2k_port
="yes"
8592 printf "%s\n" "#define OPT_DISABLE_R2K $OPT_DISABLE_R2K" >>confdefs.h
8596 echo z80
>>ports.all
8597 if test $OPT_DISABLE_R2K = 0; then
8598 echo z80
>>ports.build
8602 # Check whether --enable-r2ka-port was given.
8603 if test ${enable_r2ka_port+y}
8605 enableval
=$enable_r2ka_port;
8609 if test "$enable_r2ka_port" = "no"; then
8612 enable_r2ka_port
="yes"
8617 printf "%s\n" "#define OPT_DISABLE_R2KA $OPT_DISABLE_R2KA" >>confdefs.h
8621 echo z80
>>ports.all
8622 if test $OPT_DISABLE_R2KA = 0; then
8623 echo z80
>>ports.build
8627 # Check whether --enable-r3ka-port was given.
8628 if test ${enable_r3ka_port+y}
8630 enableval
=$enable_r3ka_port;
8634 if test "$enable_r3ka_port" = "no"; then
8637 enable_r3ka_port
="yes"
8642 printf "%s\n" "#define OPT_DISABLE_R3KA $OPT_DISABLE_R3KA" >>confdefs.h
8646 echo z80
>>ports.all
8647 if test $OPT_DISABLE_R3KA = 0; then
8648 echo z80
>>ports.build
8652 # Check whether --enable-sm83-port was given.
8653 if test ${enable_sm83_port+y}
8655 enableval
=$enable_sm83_port;
8659 if test "$enable_sm83_port" = "no"; then
8662 enable_sm83_port
="yes"
8667 printf "%s\n" "#define OPT_DISABLE_SM83 $OPT_DISABLE_SM83" >>confdefs.h
8671 echo z80
>>ports.all
8672 if test $OPT_DISABLE_SM83 = 0; then
8673 echo z80
>>ports.build
8677 # Check whether --enable-tlcs90-port was given.
8678 if test ${enable_tlcs90_port+y}
8680 enableval
=$enable_tlcs90_port;
8684 if test "$enable_tlcs90_port" = "no"; then
8685 OPT_DISABLE_TLCS90
=1
8687 enable_tlcs90_port
="yes"
8688 OPT_DISABLE_TLCS90
=0
8692 printf "%s\n" "#define OPT_DISABLE_TLCS90 $OPT_DISABLE_TLCS90" >>confdefs.h
8696 echo z80
>>ports.all
8697 if test $OPT_DISABLE_TLCS90 = 0; then
8698 echo z80
>>ports.build
8702 # Check whether --enable-ez80_z80-port was given.
8703 if test ${enable_ez80_z80_port+y}
8705 enableval
=$enable_ez80_z80_port;
8709 if test "$enable_ez80_z80_port" = "no"; then
8710 OPT_DISABLE_EZ80_Z80
=1
8712 enable_ez80_z80_port
="yes"
8713 OPT_DISABLE_EZ80_Z80
=0
8717 printf "%s\n" "#define OPT_DISABLE_EZ80_Z80 $OPT_DISABLE_EZ80_Z80" >>confdefs.h
8721 echo z80
>>ports.all
8722 if test $OPT_DISABLE_EZ80_Z80 = 0; then
8723 echo z80
>>ports.build
8727 # Check whether --enable-z80n-port was given.
8728 if test ${enable_z80n_port+y}
8730 enableval
=$enable_z80n_port;
8734 if test "$enable_z80n_port" = "no"; then
8737 enable_z80n_port
="yes"
8742 printf "%s\n" "#define OPT_DISABLE_Z80N $OPT_DISABLE_Z80N" >>confdefs.h
8746 echo z80
>>ports.all
8747 if test $OPT_DISABLE_Z80N = 0; then
8748 echo z80
>>ports.build
8752 # Check whether --enable-r800-port was given.
8753 if test ${enable_r800_port+y}
8755 enableval
=$enable_r800_port;
8759 if test "$enable_r800_port" = "no"; then
8762 enable_r800_port
="yes"
8767 printf "%s\n" "#define OPT_DISABLE_R800 $OPT_DISABLE_R800" >>confdefs.h
8771 echo z80
>>ports.all
8772 if test $OPT_DISABLE_R800 = 0; then
8773 echo z80
>>ports.build
8777 # Check whether --enable-ds390-port was given.
8778 if test ${enable_ds390_port+y}
8780 enableval
=$enable_ds390_port;
8784 if test "$enable_ds390_port" = "no"; then
8787 enable_ds390_port
="yes"
8792 printf "%s\n" "#define OPT_DISABLE_DS390 $OPT_DISABLE_DS390" >>confdefs.h
8796 echo ds390
>>ports.all
8797 if test $OPT_DISABLE_DS390 = 0; then
8798 echo ds390
>>ports.build
8802 printf "%s\n" "#define OPT_DISABLE_TININative $OPT_DISABLE_DS390" >>confdefs.h
8805 # Check whether --enable-ds400-port was given.
8806 if test ${enable_ds400_port+y}
8808 enableval
=$enable_ds400_port;
8812 if test "$enable_ds400_port" = "no"; then
8815 enable_ds400_port
="yes"
8820 printf "%s\n" "#define OPT_DISABLE_DS400 $OPT_DISABLE_DS400" >>confdefs.h
8824 echo ds390
>>ports.all
8825 if test $OPT_DISABLE_DS400 = 0; then
8826 echo ds390
>>ports.build
8830 # Check whether --enable-pic14-port was given.
8831 if test ${enable_pic14_port+y}
8833 enableval
=$enable_pic14_port;
8837 if test "$enable_pic14_port" = "no"; then
8840 enable_pic14_port
="yes"
8845 printf "%s\n" "#define OPT_DISABLE_PIC14 $OPT_DISABLE_PIC14" >>confdefs.h
8849 echo pic14
>>ports.all
8850 if test $OPT_DISABLE_PIC14 = 0; then
8851 echo pic14
>>ports.build
8855 # Check whether --enable-pic16-port was given.
8856 if test ${enable_pic16_port+y}
8858 enableval
=$enable_pic16_port;
8862 if test "$enable_pic16_port" = "no"; then
8865 enable_pic16_port
="yes"
8870 printf "%s\n" "#define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16" >>confdefs.h
8874 echo pic16
>>ports.all
8875 if test $OPT_DISABLE_PIC16 = 0; then
8876 echo pic16
>>ports.build
8880 # Check whether --enable-hc08-port was given.
8881 if test ${enable_hc08_port+y}
8883 enableval
=$enable_hc08_port;
8887 if test "$enable_hc08_port" = "no"; then
8890 enable_hc08_port
="yes"
8895 printf "%s\n" "#define OPT_DISABLE_HC08 $OPT_DISABLE_HC08" >>confdefs.h
8899 echo hc08
>>ports.all
8900 if test $OPT_DISABLE_HC08 = 0; then
8901 echo hc08
>>ports.build
8905 # Check whether --enable-s08-port was given.
8906 if test ${enable_s08_port+y}
8908 enableval
=$enable_s08_port;
8912 if test "$enable_s08_port" = "no"; then
8915 enable_s08_port
="yes"
8920 printf "%s\n" "#define OPT_DISABLE_S08 $OPT_DISABLE_S08" >>confdefs.h
8924 echo hc08
>>ports.all
8925 if test $OPT_DISABLE_S08 = 0; then
8926 echo hc08
>>ports.build
8930 # Check whether --enable-stm8-port was given.
8931 if test ${enable_stm8_port+y}
8933 enableval
=$enable_stm8_port;
8937 if test "$enable_stm8_port" = "no"; then
8940 enable_stm8_port
="yes"
8945 printf "%s\n" "#define OPT_DISABLE_STM8 $OPT_DISABLE_STM8" >>confdefs.h
8949 echo stm8
>>ports.all
8950 if test $OPT_DISABLE_STM8 = 0; then
8951 echo stm8
>>ports.build
8955 # Check whether --enable-pdk13-port was given.
8956 if test ${enable_pdk13_port+y}
8958 enableval
=$enable_pdk13_port;
8962 if test "$enable_pdk13_port" = "no"; then
8965 enable_pdk13_port
="yes"
8970 printf "%s\n" "#define OPT_DISABLE_PDK13 $OPT_DISABLE_PDK13" >>confdefs.h
8974 echo pdk
>>ports.all
8975 if test $OPT_DISABLE_PDK13 = 0; then
8976 echo pdk
>>ports.build
8980 # Check whether --enable-pdk14-port was given.
8981 if test ${enable_pdk14_port+y}
8983 enableval
=$enable_pdk14_port;
8987 if test "$enable_pdk14_port" = "no"; then
8990 enable_pdk14_port
="yes"
8995 printf "%s\n" "#define OPT_DISABLE_PDK14 $OPT_DISABLE_PDK14" >>confdefs.h
8999 echo pdk
>>ports.all
9000 if test $OPT_DISABLE_PDK14 = 0; then
9001 echo pdk
>>ports.build
9005 # Check whether --enable-pdk15-port was given.
9006 if test ${enable_pdk15_port+y}
9008 enableval
=$enable_pdk15_port;
9012 if test "$enable_pdk15_port" = "no"; then
9015 enable_pdk15_port
="yes"
9020 printf "%s\n" "#define OPT_DISABLE_PDK15 $OPT_DISABLE_PDK15" >>confdefs.h
9024 echo pdk
>>ports.all
9025 if test $OPT_DISABLE_PDK15 = 0; then
9026 echo pdk
>>ports.build
9030 # Check whether --enable-pdk16-port was given.
9031 if test ${enable_pdk16_port+y}
9033 enableval
=$enable_pdk16_port;
9037 if test "$enable_pdk16_port" = "yes"; then
9040 enable_pdk16_port
="no"
9045 printf "%s\n" "#define OPT_DISABLE_PDK16 $OPT_DISABLE_PDK16" >>confdefs.h
9049 echo pdk
>>ports.all
9050 if test $OPT_DISABLE_PDK16 = 0; then
9051 echo pdk
>>ports.build
9055 # Check whether --enable-mos6502-port was given.
9056 if test ${enable_mos6502_port+y}
9058 enableval
=$enable_mos6502_port;
9062 if test "$enable_mos6502_port" = "no"; then
9063 OPT_DISABLE_MOS6502
=1
9065 enable_mos6502_port
="yes"
9066 OPT_DISABLE_MOS6502
=0
9070 printf "%s\n" "#define OPT_DISABLE_MOS6502 $OPT_DISABLE_MOS6502" >>confdefs.h
9074 echo mos6502
>>ports.all
9075 if test $OPT_DISABLE_MOS6502 = 0; then
9076 echo mos6502
>>ports.build
9080 # Check whether --enable-mos65c02-port was given.
9081 if test ${enable_mos65c02_port+y}
9083 enableval
=$enable_mos65c02_port;
9087 if test "$enable_mos65c02_port" = "no"; then
9088 OPT_DISABLE_MOS65C02
=1
9090 enable_mos65c02_port
="yes"
9091 OPT_DISABLE_MOS65C02
=0
9095 printf "%s\n" "#define OPT_DISABLE_MOS65C02 $OPT_DISABLE_MOS65C02" >>confdefs.h
9099 echo mos6502
>>ports.all
9100 if test $OPT_DISABLE_MOS65C02 = 0; then
9101 echo mos6502
>>ports.build
9105 # Unsupported targets
9106 ####AC_DO_PORT_ENABLER(avr, avr, AVR, [Includes the AVR port (disabled by default)])
9109 printf "%s\n" "#define OPT_DISABLE_AVR ${OPT_DISABLE_AVR}" >>confdefs.h
9114 # Check whether --enable-ucsim was given.
9115 if test ${enable_ucsim+y}
9117 enableval
=$enable_ucsim;
9121 arg1
=`echo ucsim | sed s/-/_/`
9123 if test "`eval echo \\$enable_$arg1`" = "no"; then
9130 printf "%s\n" "#define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM" >>confdefs.h
9135 # Check whether --enable-device-lib was given.
9136 if test ${enable_device_lib+y}
9138 enableval
=$enable_device_lib;
9142 arg1
=`echo device-lib | sed s/-/_/`
9144 if test "`eval echo \\$enable_$arg1`" = "no"; then
9145 OPT_DISABLE_DEVICE_LIB
=1
9147 OPT_DISABLE_DEVICE_LIB
=0
9151 printf "%s\n" "#define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB" >>confdefs.h
9156 # Check whether --enable-packihx was given.
9157 if test ${enable_packihx+y}
9159 enableval
=$enable_packihx;
9163 arg1
=`echo packihx | sed s/-/_/`
9165 if test "`eval echo \\$enable_$arg1`" = "no"; then
9166 OPT_DISABLE_PACKIHX
=1
9168 OPT_DISABLE_PACKIHX
=0
9172 printf "%s\n" "#define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX" >>confdefs.h
9177 # Check whether --enable-sdcpp was given.
9178 if test ${enable_sdcpp+y}
9180 enableval
=$enable_sdcpp;
9184 arg1
=`echo sdcpp | sed s/-/_/`
9186 if test "`eval echo \\$enable_$arg1`" = "no"; then
9193 printf "%s\n" "#define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP" >>confdefs.h
9198 # Check whether --enable-sdcdb was given.
9199 if test ${enable_sdcdb+y}
9201 enableval
=$enable_sdcdb;
9205 arg1
=`echo sdcdb | sed s/-/_/`
9207 if test "`eval echo \\$enable_$arg1`" = "no"; then
9214 printf "%s\n" "#define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB" >>confdefs.h
9219 # Check whether --enable-sdbinutils was given.
9220 if test ${enable_sdbinutils+y}
9222 enableval
=$enable_sdbinutils;
9226 arg1
=`echo sdbinutils | sed s/-/_/`
9228 if test "`eval echo \\$enable_$arg1`" = "no"; then
9229 OPT_DISABLE_SDBINUTILS
=1
9231 OPT_DISABLE_SDBINUTILS
=0
9235 printf "%s\n" "#define OPT_DISABLE_SDBINUTILS $OPT_DISABLE_SDBINUTILS" >>confdefs.h
9240 # Check whether --enable-non-free was given.
9241 if test ${enable_non_free+y}
9243 enableval
=$enable_non_free;
9247 arg1
=`echo non-free | sed s/-/_/`
9249 if test "`eval echo \\$enable_$arg1`" = "no"; then
9250 OPT_DISABLE_NON_FREE
=1
9252 OPT_DISABLE_NON_FREE
=0
9256 printf "%s\n" "#define OPT_DISABLE_NON_FREE $OPT_DISABLE_NON_FREE" >>confdefs.h
9262 # Check whether --enable-doc was given.
9263 if test ${enable_doc+y}
9265 enableval
=$enable_doc;
9269 if test "$enable_doc" = "yes"; then
9276 printf "%s\n" "#define OPT_ENABLE_DOC $OPT_ENABLE_DOC" >>confdefs.h
9280 # Extract the first word of "lyx", so it can be a program name with args.
9281 set dummy lyx
; ac_word
=$2
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 printf %s
"checking for $ac_word... " >&6; }
9284 if test ${ac_cv_prog_LYX+y}
9286 printf %s
"(cached) " >&6
9288 if test -n "$LYX"; then
9289 ac_cv_prog_LYX
="$LYX" # Let the user override the test.
9291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9295 case $as_dir in #(((
9298 *) as_dir
=$as_dir/ ;;
9300 for ac_exec_ext
in '' $ac_executable_extensions; do
9301 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_LYX
="lyx"
9303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9310 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX
=":"
9314 if test -n "$LYX"; then
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LYX" >&5
9316 printf "%s\n" "$LYX" >&6; }
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 printf "%s\n" "no" >&6; }
9323 # Extract the first word of "latex2html", so it can be a program name with args.
9324 set dummy latex2html
; ac_word
=$2
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 printf %s
"checking for $ac_word... " >&6; }
9327 if test ${ac_cv_prog_LATEX2HTML+y}
9329 printf %s
"(cached) " >&6
9331 if test -n "$LATEX2HTML"; then
9332 ac_cv_prog_LATEX2HTML
="$LATEX2HTML" # Let the user override the test.
9334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9338 case $as_dir in #(((
9341 *) as_dir
=$as_dir/ ;;
9343 for ac_exec_ext
in '' $ac_executable_extensions; do
9344 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9345 ac_cv_prog_LATEX2HTML
="latex2html"
9346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9353 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML
=":"
9356 LATEX2HTML
=$ac_cv_prog_LATEX2HTML
9357 if test -n "$LATEX2HTML"; then
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
9359 printf "%s\n" "$LATEX2HTML" >&6; }
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 printf "%s\n" "no" >&6; }
9366 # Extract the first word of "latex", so it can be a program name with args.
9367 set dummy latex
; ac_word
=$2
9368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9369 printf %s
"checking for $ac_word... " >&6; }
9370 if test ${ac_cv_prog_LATEX+y}
9372 printf %s
"(cached) " >&6
9374 if test -n "$LATEX"; then
9375 ac_cv_prog_LATEX
="$LATEX" # Let the user override the test.
9377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9381 case $as_dir in #(((
9384 *) as_dir
=$as_dir/ ;;
9386 for ac_exec_ext
in '' $ac_executable_extensions; do
9387 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9388 ac_cv_prog_LATEX
="latex"
9389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9396 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX
=":"
9399 LATEX
=$ac_cv_prog_LATEX
9400 if test -n "$LATEX"; then
9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
9402 printf "%s\n" "$LATEX" >&6; }
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 printf "%s\n" "no" >&6; }
9409 # Extract the first word of "dvipdfm", so it can be a program name with args.
9410 set dummy dvipdfm
; ac_word
=$2
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9412 printf %s
"checking for $ac_word... " >&6; }
9413 if test ${ac_cv_prog_DVIPDFM+y}
9415 printf %s
"(cached) " >&6
9417 if test -n "$DVIPDFM"; then
9418 ac_cv_prog_DVIPDFM
="$DVIPDFM" # Let the user override the test.
9420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9424 case $as_dir in #(((
9427 *) as_dir
=$as_dir/ ;;
9429 for ac_exec_ext
in '' $ac_executable_extensions; do
9430 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9431 ac_cv_prog_DVIPDFM
="dvipdfm"
9432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9439 test -z "$ac_cv_prog_DVIPDFM" && ac_cv_prog_DVIPDFM
=":"
9442 DVIPDFM
=$ac_cv_prog_DVIPDFM
9443 if test -n "$DVIPDFM"; then
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIPDFM" >&5
9445 printf "%s\n" "$DVIPDFM" >&6; }
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448 printf "%s\n" "no" >&6; }
9452 # Extract the first word of "pdflatex", so it can be a program name with args.
9453 set dummy pdflatex
; ac_word
=$2
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 printf %s
"checking for $ac_word... " >&6; }
9456 if test ${ac_cv_prog_PDFLATEX+y}
9458 printf %s
"(cached) " >&6
9460 if test -n "$PDFLATEX"; then
9461 ac_cv_prog_PDFLATEX
="$PDFLATEX" # Let the user override the test.
9463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9467 case $as_dir in #(((
9470 *) as_dir
=$as_dir/ ;;
9472 for ac_exec_ext
in '' $ac_executable_extensions; do
9473 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9474 ac_cv_prog_PDFLATEX
="pdflatex"
9475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9482 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX
=":"
9485 PDFLATEX
=$ac_cv_prog_PDFLATEX
9486 if test -n "$PDFLATEX"; then
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
9488 printf "%s\n" "$PDFLATEX" >&6; }
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 printf "%s\n" "no" >&6; }
9495 # Extract the first word of "makeindex", so it can be a program name with args.
9496 set dummy makeindex
; ac_word
=$2
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9498 printf %s
"checking for $ac_word... " >&6; }
9499 if test ${ac_cv_prog_MAKEINDEX+y}
9501 printf %s
"(cached) " >&6
9503 if test -n "$MAKEINDEX"; then
9504 ac_cv_prog_MAKEINDEX
="$MAKEINDEX" # Let the user override the test.
9506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9510 case $as_dir in #(((
9513 *) as_dir
=$as_dir/ ;;
9515 for ac_exec_ext
in '' $ac_executable_extensions; do
9516 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9517 ac_cv_prog_MAKEINDEX
="makeindex"
9518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9525 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX
=":"
9528 MAKEINDEX
=$ac_cv_prog_MAKEINDEX
9529 if test -n "$MAKEINDEX"; then
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
9531 printf "%s\n" "$MAKEINDEX" >&6; }
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 printf "%s\n" "no" >&6; }
9539 if test $OPT_ENABLE_DOC = 1; then
9540 if test "$LYX" = ":"; then
9541 as_fn_error $?
"Cannot find required program lyx." "$LINENO" 5
9544 if test "$LATEX2HTML" = ":"; then
9545 as_fn_error $?
"Cannot find required program latex2html." "$LINENO" 5
9548 if test "$LATEX" = ":"; then
9549 as_fn_error $?
"Cannot find required program latex." "$LINENO" 5
9552 if test "$DVIPDFM" = ":"; then
9553 as_fn_error $?
"Cannot find required program dvipdfm." "$LINENO" 5
9556 if test "$MAKEINDEX" = ":"; then
9557 as_fn_error $?
"Cannot find required program makeindex." "$LINENO" 5
9563 # Check whether --enable-libgc was given.
9564 if test ${enable_libgc+y}
9566 enableval
=$enable_libgc;
9570 if test "$enable_libgc" = "yes"; then
9577 printf "%s\n" "#define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC" >>confdefs.h
9581 if test $OPT_ENABLE_LIBGC = 1; then
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GC_malloc in -lgc" >&5
9583 printf %s
"checking for GC_malloc in -lgc... " >&6; }
9584 if test ${ac_cv_lib_gc_GC_malloc+y}
9586 printf %s
"(cached) " >&6
9588 ac_check_lib_save_LIBS
=$LIBS
9590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9593 /* Override any GCC internal prototype to avoid an error.
9594 Use char because int might match the return type of a GCC
9595 builtin and then its argument prototype would still apply. */
9600 return GC_malloc ();
9605 if ac_fn_c_try_link
"$LINENO"
9607 ac_cv_lib_gc_GC_malloc
=yes
9609 ac_cv_lib_gc_GC_malloc
=no
9611 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9612 conftest
$ac_exeext conftest.
$ac_ext
9613 LIBS
=$ac_check_lib_save_LIBS
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_malloc" >&5
9616 printf "%s\n" "$ac_cv_lib_gc_GC_malloc" >&6; }
9617 if test "x$ac_cv_lib_gc_GC_malloc" = xyes
9619 printf "%s\n" "#define HAVE_LIBGC 1" >>confdefs.h
9625 if test $ac_cv_lib_gc_GC_malloc = no
; then
9626 as_fn_error $?
"Cannot find library libgc with Bohem memory allocator." "$LINENO" 5
9631 uniq ports.all ports
9633 uniq ports.build ports
9634 mv ports ports.build
9636 # Generating output files
9637 # ===========================================================================
9638 test $OPT_DISABLE_SDCPP = 0 &&
9640 subdirs
="$subdirs support/cpp"
9642 test $OPT_DISABLE_PACKIHX = 0 && subdirs
="$subdirs support/packihx"
9644 test $OPT_DISABLE_UCSIM = 0 && subdirs
="$subdirs sim/ucsim"
9646 test $OPT_DISABLE_SDCDB = 0 && subdirs
="$subdirs debugger/mcs51"
9648 test $OPT_DISABLE_SDBINUTILS = 0 && subdirs
="$subdirs support/sdbinutils"
9650 ac_config_files
="$ac_config_files doc/Makefile"
9653 ####test $OPT_DISABLE_AVR = 0 && AC_CONFIG_FILES([src/avr/Makefile])
9655 if test $OPT_DISABLE_DS390 = 0 ||
test $OPT_DISABLE_DS400; then
9656 ac_config_files
="$ac_config_files src/ds390/Makefile sdas/as8xcxxx/Makefile"
9658 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/ds390/Makefile device/lib/ds400/Makefile"
9662 if test $OPT_DISABLE_HC08 = 0 ||
test $OPT_DISABLE_S08 = 0; then
9663 ac_config_files
="$ac_config_files src/hc08/Makefile sdas/as6808/Makefile"
9665 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/hc08/Makefile device/lib/s08/Makefile device/lib/s08-stack-auto/Makefile"
9669 if test $OPT_DISABLE_MOS6502 = 0 ||
test $OPT_DISABLE_MOS65C02 = 0; then
9670 ac_config_files
="$ac_config_files src/mos6502/Makefile sdas/as6500/Makefile"
9672 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/mos6502/Makefile device/lib/mos6502-stack-auto/Makefile device/lib/mos65c02/Makefile"
9676 if test $OPT_DISABLE_MCS51 = 0; then
9677 ac_config_files
="$ac_config_files src/mcs51/Makefile sdas/as8051/Makefile"
9679 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/mcs51/Makefile device/lib/small/Makefile device/lib/medium/Makefile device/lib/large/Makefile device/lib/huge/Makefile"
9683 if test $OPT_DISABLE_PIC14 = 0; then
9684 ac_config_files
="$ac_config_files src/pic14/Makefile"
9686 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/lib/pic14"
9689 if test $OPT_DISABLE_PIC14 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9690 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/non-free/lib/pic14"
9693 if test $OPT_DISABLE_PIC16 = 0; then
9694 ac_config_files
="$ac_config_files src/pic16/Makefile"
9696 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/lib/pic16"
9699 if test $OPT_DISABLE_PIC16 = 0 && test $OPT_DISABLE_NON_FREE = 0; then
9700 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs
="$subdirs device/non-free/lib/pic16"
9704 if test $OPT_DISABLE_Z80 = 0 ||
test $OPT_DISABLE_Z180 = 0 ||
test $OPT_DISABLE_R2K = 0 ||
test $OPT_DISABLE_R2KA = 0 ||
test $OPT_DISABLE_R3KA = 0 ||
test $OPT_DISABLE_SM83 = 0 ||
test $OPT_DISABLE_TLCS90 = 0 ||
test $OPT_DISABLE_EZ80_Z80 = 0 ||
test $OPT_DISABLE_Z80N = 0 ||
test $OPT_DISABLE_R800 = 0; then
9705 ac_config_files
="$ac_config_files src/z80/Makefile"
9709 if test $OPT_DISABLE_Z80 = 0 ||
test $OPT_DISABLE_Z180 = 0 ||
test $OPT_DISABLE_EZ80_Z80 = 0 ||
test $OPT_DISABLE_Z80N = 0 ||
test $OPT_DISABLE_R800 = 0; then
9710 ac_config_files
="$ac_config_files sdas/asz80/Makefile"
9712 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/z80/Makefile device/lib/z180/Makefile device/lib/ez80_z80/Makefile device/lib/z80n/Makefile device/lib/r800/Makefile"
9716 if test $OPT_DISABLE_R2K = 0 ||
test $OPT_DISABLE_R2KA = 0 ||
test $OPT_DISABLE_R3KA = 0; then
9717 ac_config_files
="$ac_config_files sdas/asrab/Makefile"
9719 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/r2k/Makefile device/lib/r2ka/Makefile device/lib/r3ka/Makefile"
9723 if test $OPT_DISABLE_TLCS90 = 0; then
9724 ac_config_files
="$ac_config_files sdas/astlcs90/Makefile"
9726 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/tlcs90/Makefile"
9730 if test $OPT_DISABLE_SM83 = 0; then
9731 ac_config_files
="$ac_config_files sdas/asgb/Makefile"
9733 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/sm83/Makefile"
9737 if test $OPT_DISABLE_STM8 = 0; then
9738 ac_config_files
="$ac_config_files src/stm8/Makefile sdas/asstm8/Makefile"
9740 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/stm8/Makefile device/lib/stm8-large/Makefile"
9744 if test $OPT_DISABLE_PDK13 = 0 ||
test $OPT_DISABLE_PDK14 = 0 ||
test $OPT_DISABLE_PDK15 = 0 ||
test $OPT_DISABLE_PDK16 = 0; then
9745 ac_config_files
="$ac_config_files src/pdk/Makefile"
9749 if test $OPT_DISABLE_PDK13 = 0; then
9750 ac_config_files
="$ac_config_files sdas/aspdk13/Makefile"
9752 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/pdk13/Makefile"
9756 if test $OPT_DISABLE_PDK14 = 0; then
9757 ac_config_files
="$ac_config_files sdas/aspdk14/Makefile"
9759 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/pdk14/Makefile"
9763 if test $OPT_DISABLE_PDK15 = 0; then
9764 ac_config_files
="$ac_config_files sdas/aspdk15/Makefile"
9766 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/pdk15/Makefile device/lib/pdk15-stack-auto/Makefile"
9770 if test $OPT_DISABLE_PDK16 = 0; then
9771 ac_config_files
="$ac_config_files sdas/aspdk16/Makefile"
9776 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files
="$ac_config_files device/lib/Makefile"
9778 test $OPT_DISABLE_DEVICE_LIB = 0 && test $OPT_DISABLE_NON_FREE = 0 && ac_config_files
="$ac_config_files device/non-free/lib/Makefile"
9781 ac_config_files
="$ac_config_files main.mk:main_in.mk bin/Makefile src/Makefile device/include/Makefile sdas/linksrc/Makefile support/makebin/Makefile support/regression/Makefile support/regression/cases/Makefile support/valdiag/Makefile support/scripts/Makefile support/regression/ports/host/spec.mk:support/regression/ports/host/spec.mk.in Makefile Makefile.common:Makefile.common.in"
9783 ac_config_files
="$ac_config_files bin/sdcc"
9785 ac_config_files
="$ac_config_files bin/sdcpp"
9787 ac_config_files
="$ac_config_files bin/sdar"
9789 ac_config_files
="$ac_config_files bin/sdnm"
9791 ac_config_files
="$ac_config_files bin/sdranlib"
9793 ac_config_files
="$ac_config_files bin/sdobjcopy"
9795 if test $OPT_DISABLE_NON_FREE = 0; then
9796 ac_config_files
="$ac_config_files device/non-free/include/Makefile"
9799 cat >confcache
<<\_ACEOF
9800 # This file is a shell script that caches the results of configure
9801 # tests run on this system so they can be shared between configure
9802 # scripts and configure runs, see configure's option --config-cache.
9803 # It is not useful on other systems. If it contains results you don't
9804 # want to keep, you may remove or edit it.
9806 # config.status only pays attention to the cache file if you give it
9807 # the --recheck option to rerun configure.
9809 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9815 # The following way of writing the cache mishandles newlines in values,
9816 # but we know of no workaround that is simple, portable, and efficient.
9817 # So, we kill variables containing newlines.
9818 # Ultrix sh set writes to stderr and can't be redirected directly,
9819 # and sets the high bit in the cache file unless we assign to the vars.
9821 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9822 eval ac_val
=\$
$ac_var
9826 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9827 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9830 _ | IFS | as_nl
) ;; #(
9831 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9832 *) { eval $ac_var=; unset $ac_var;} ;;
9838 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9839 *${as_nl}ac_space
=\
*)
9840 # `set' does not quote correctly, so add quotes: double-quote
9841 # substitution turns \\\\ into \\, and sed turns \\ into \.
9844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9847 # `set' quotes correctly as required by POSIX, so do not add quotes.
9848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9857 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9859 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9861 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9862 if test -w "$cache_file"; then
9863 if test "x$cache_file" != "x/dev/null"; then
9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9865 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9866 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9867 cat confcache
>"$cache_file"
9869 case $cache_file in #(
9871 mv -f confcache
"$cache_file"$$
&&
9872 mv -f "$cache_file"$$
"$cache_file" ;; #(
9874 mv -f confcache
"$cache_file" ;;
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9880 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9885 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9886 # Let make expand exec_prefix.
9887 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9889 DEFS
=-DHAVE_CONFIG_H
9894 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9895 # 1. Remove the extension, and $U if already installed.
9896 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9897 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9898 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9899 # will be set to the directory where LIBOBJS objects are built.
9900 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9901 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9905 LTLIBOBJS
=$ac_ltlibobjs
9910 : "${CONFIG_STATUS=./config.status}"
9912 ac_clean_files_save
=$ac_clean_files
9913 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9915 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9919 # Generated by $as_me.
9920 # Run this file to recreate the current configuration.
9921 # Compiler output produced by configure, useful for debugging
9922 # configure, is in config.log if it exists.
9928 SHELL=\${CONFIG_SHELL-$SHELL}
9931 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9932 ## -------------------- ##
9933 ## M4sh Initialization. ##
9934 ## -------------------- ##
9936 # Be more Bourne compatible
9937 DUALCASE
=1; export DUALCASE
# for MKS sh
9939 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
9943 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9944 # is contrary to our usage. Disable this feature.
9945 alias -g '${1+"$@"}'='"$@"'
9946 setopt NO_GLOB_SUBST
9948 case `(set -o) 2>/dev/null` in #(
9958 # Reset variables that may have inherited troublesome values from
9961 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9962 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9963 # side effect of setting IFS to empty, thus disabling word splitting.)
9964 # Quoting is to prevent editors from complaining about space-tab.
9974 # Ensure predictable behavior from utilities with locale-dependent output.
9980 # We cannot yet rely on "unset" to work, but we need these variables
9981 # to be unset--not just set to an empty or harmless value--now, to
9982 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9983 # also avoids known problems related to "unset" and subshell syntax
9984 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9985 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
9986 do eval test \
${$as_var+y} \
9987 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9990 # Ensure that fds 0, 1, and 2 are open.
9991 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
9992 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
9993 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
9995 # The user is always right.
9996 if ${PATH_SEPARATOR+false} :; then
9998 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
9999 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
10005 # Find who we are. Look in the path if we contain no directory separator.
10008 *[\\/]* ) as_myself
=$0 ;;
10009 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10010 for as_dir
in $PATH
10013 case $as_dir in #(((
10016 *) as_dir
=$as_dir/ ;;
10018 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
10024 # We did not find ourselves, most probably we were run as `sh COMMAND'
10025 # in which case we are not to be found in the path.
10026 if test "x$as_myself" = x
; then
10029 if test ! -f "$as_myself"; then
10030 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10036 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10037 # ----------------------------------------
10038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10040 # script with STATUS, using 1 if that was 0.
10043 as_status
=$1; test $as_status -eq 0 && as_status
=1
10045 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10048 printf "%s\n" "$as_me: error: $2" >&2
10049 as_fn_exit
$as_status
10054 # as_fn_set_status STATUS
10055 # -----------------------
10056 # Set $? to STATUS, without forking.
10057 as_fn_set_status
()
10060 } # as_fn_set_status
10062 # as_fn_exit STATUS
10063 # -----------------
10064 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10068 as_fn_set_status
$1
10074 # Portably unset VAR.
10077 { eval $1=; unset $1;}
10079 as_unset
=as_fn_unset
10081 # as_fn_append VAR VALUE
10082 # ----------------------
10083 # Append the text in VALUE to the end of the definition contained in VAR. Take
10084 # advantage of any shell optimizations that allow amortized linear growth over
10085 # repeated appends, instead of the typical quadratic growth present in naive
10087 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
10089 eval 'as_fn_append ()
10100 # as_fn_arith ARG...
10101 # ------------------
10102 # Perform arithmetic evaluation on the ARGs, and store the result in the
10103 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10104 # must be portable across $(()) and expr.
10105 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
10107 eval 'as_fn_arith ()
10114 as_val
=`expr "$@" || test $? -eq 1`
10119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10127 as_basename
=basename
10132 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10138 as_me
=`$as_basename -- "$0" ||
10139 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10140 X"$0" : 'X\(//\)$' \| \
10141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10142 printf "%s\n" X/"$0" |
10143 sed '/^.*\/\([^/][^/]*\)\/*$/{
10157 # Avoid depending upon Character Ranges.
10158 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10159 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10160 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10161 as_cr_digits
='0123456789'
10162 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10165 # Determine whether it's possible to make 'echo' print without a newline.
10166 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10167 # for compatibility with existing Makefiles.
10168 ECHO_C
= ECHO_N
= ECHO_T
=
10169 case `echo -n x` in #(((((
10171 case `echo 'xy\c'` in
10172 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10174 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10181 # For backward compatibility with old third-party macros, we provide
10182 # the shell variables $as_echo and $as_echo_n. New code should use
10183 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10184 as_echo
='printf %s\n'
10185 as_echo_n
='printf %s'
10187 rm -f conf$$ conf$$.exe conf$$.
file
10188 if test -d conf$$.dir
; then
10189 rm -f conf$$.dir
/conf$$.
file
10192 mkdir conf$$.dir
2>/dev
/null
10194 if (echo >conf$$.
file) 2>/dev
/null
; then
10195 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10197 # ... but there are two gotchas:
10198 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10199 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10200 # In both cases, we have to default to `cp -pR'.
10201 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10203 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10211 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10212 rmdir conf$$.dir
2>/dev
/null
10217 # Create "$as_dir" as a directory, including parents if necessary.
10222 -*) as_dir
=.
/$as_dir;;
10224 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10228 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10229 *) as_qdir
=$as_dir;;
10231 as_dirs
="'$as_qdir' $as_dirs"
10232 as_dir
=`$as_dirname -- "$as_dir" ||
10233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10234 X"$as_dir" : 'X\(//\)[^/]' \| \
10235 X"$as_dir" : 'X\(//\)$' \| \
10236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10237 printf "%s\n" X"$as_dir" |
10238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10242 /^X\(\/\/\)[^/].*/{
10255 test -d "$as_dir" && break
10257 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10258 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10262 if mkdir
-p .
2>/dev
/null
; then
10263 as_mkdir_p
='mkdir -p "$as_dir"'
10265 test -d .
/-p && rmdir .
/-p
10270 # as_fn_executable_p FILE
10271 # -----------------------
10272 # Test if FILE is an executable regular file.
10273 as_fn_executable_p
()
10275 test -f "$1" && test -x "$1"
10276 } # as_fn_executable_p
10277 as_test_x
='test -x'
10278 as_executable_p
=as_fn_executable_p
10280 # Sed expression to map a string onto a valid CPP name.
10281 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10283 # Sed expression to map a string onto a valid variable name.
10284 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10288 ## ----------------------------------- ##
10289 ## Main body of $CONFIG_STATUS script. ##
10290 ## ----------------------------------- ##
10292 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10295 # Save the log message, to keep $0 and so on meaningful, and to
10296 # report actual input values of CONFIG_FILES etc. instead of their
10297 # values after options handling.
10299 This file was extended by $as_me, which was
10300 generated by GNU Autoconf 2.71. Invocation command line was
10302 CONFIG_FILES = $CONFIG_FILES
10303 CONFIG_HEADERS = $CONFIG_HEADERS
10304 CONFIG_LINKS = $CONFIG_LINKS
10305 CONFIG_COMMANDS = $CONFIG_COMMANDS
10308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10313 case $ac_config_files in *"
10314 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10317 case $ac_config_headers in *"
10318 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10323 # Files that config.status was made for.
10324 config_files="$ac_config_files"
10325 config_headers="$ac_config_headers"
10329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10331 \`$as_me' instantiates files and other configuration actions
10332 from templates according to the current configuration. Unless the files
10333 and actions are specified as TAGs, all are instantiated by default.
10335 Usage: $0 [OPTION]... [TAG]...
10337 -h, --help print this help, then exit
10338 -V, --version print version number and configuration settings, then exit
10339 --config print configuration, then exit
10340 -q, --quiet, --silent
10341 do not print progress messages
10342 -d, --debug don't remove temporary files
10343 --recheck update $as_me by reconfiguring in the same conditions
10344 --file=FILE[:TEMPLATE]
10345 instantiate the configuration file FILE
10346 --header=FILE[:TEMPLATE]
10347 instantiate the configuration header FILE
10349 Configuration files:
10352 Configuration headers:
10355 Report bugs to the package provider."
10358 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10359 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10361 ac_cs_config='$ac_cs_config_escaped'
10364 configured by $0, generated by GNU Autoconf 2.71,
10365 with options \\"\$ac_cs_config\\"
10367 Copyright (C) 2021 Free Software Foundation, Inc.
10368 This config.status script is free software; the Free Software Foundation
10369 gives unlimited permission to copy, distribute and modify it."
10375 test -n "\$AWK" || AWK=awk
10378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10379 # The default lists apply if the user does not specify any file.
10385 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10386 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10390 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10402 # Handling of the options.
10403 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10405 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10406 printf "%s\n" "$ac_cs_version"; exit ;;
10407 --config |
--confi |
--conf |
--con |
--co |
--c )
10408 printf "%s\n" "$ac_cs_config"; exit ;;
10409 --debug |
--debu |
--deb |
--de |
--d |
-d )
10411 --file |
--fil |
--fi |
--f )
10414 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10415 '') as_fn_error $?
"missing file argument" ;;
10417 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10418 ac_need_defaults
=false
;;
10419 --header |
--heade |
--head |
--hea )
10422 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10424 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10425 ac_need_defaults
=false
;;
10427 # Conflict between --help and --header
10428 as_fn_error $?
"ambiguous option: \`$1'
10429 Try \`$0 --help' for more information.";;
10430 --help |
--hel |
-h )
10431 printf "%s\n" "$ac_cs_usage"; exit ;;
10432 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10433 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10436 # This is an error.
10437 -*) as_fn_error $?
"unrecognized option: \`$1'
10438 Try \`$0 --help' for more information." ;;
10440 *) as_fn_append ac_config_targets
" $1"
10441 ac_need_defaults
=false
;;
10447 ac_configure_extra_args
=
10449 if $ac_cs_silent; then
10451 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10456 if \$ac_cs_recheck; then
10457 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10459 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10460 CONFIG_SHELL='$SHELL'
10461 export CONFIG_SHELL
10466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10471 ## Running $as_me. ##
10473 printf "%s\n" "$ac_log"
10477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10482 # Handling of arguments.
10483 for ac_config_target
in $ac_config_targets
10485 case $ac_config_target in
10486 "sdccconf.h") CONFIG_HEADERS
="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
10487 "sdas/linksrc/asxxxx_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS sdas/linksrc/asxxxx_config.h" ;;
10488 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10489 "src/ds390/Makefile") CONFIG_FILES
="$CONFIG_FILES src/ds390/Makefile" ;;
10490 "sdas/as8xcxxx/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as8xcxxx/Makefile" ;;
10491 "device/lib/ds390/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/ds390/Makefile" ;;
10492 "device/lib/ds400/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/ds400/Makefile" ;;
10493 "src/hc08/Makefile") CONFIG_FILES
="$CONFIG_FILES src/hc08/Makefile" ;;
10494 "sdas/as6808/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as6808/Makefile" ;;
10495 "device/lib/hc08/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/hc08/Makefile" ;;
10496 "device/lib/s08/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/s08/Makefile" ;;
10497 "device/lib/s08-stack-auto/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/s08-stack-auto/Makefile" ;;
10498 "src/mos6502/Makefile") CONFIG_FILES
="$CONFIG_FILES src/mos6502/Makefile" ;;
10499 "sdas/as6500/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as6500/Makefile" ;;
10500 "device/lib/mos6502/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mos6502/Makefile" ;;
10501 "device/lib/mos6502-stack-auto/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mos6502-stack-auto/Makefile" ;;
10502 "device/lib/mos65c02/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mos65c02/Makefile" ;;
10503 "src/mcs51/Makefile") CONFIG_FILES
="$CONFIG_FILES src/mcs51/Makefile" ;;
10504 "sdas/as8051/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/as8051/Makefile" ;;
10505 "device/lib/mcs51/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
10506 "device/lib/small/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/small/Makefile" ;;
10507 "device/lib/medium/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/medium/Makefile" ;;
10508 "device/lib/large/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/large/Makefile" ;;
10509 "device/lib/huge/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/huge/Makefile" ;;
10510 "src/pic14/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pic14/Makefile" ;;
10511 "src/pic16/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pic16/Makefile" ;;
10512 "src/z80/Makefile") CONFIG_FILES
="$CONFIG_FILES src/z80/Makefile" ;;
10513 "sdas/asz80/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asz80/Makefile" ;;
10514 "device/lib/z80/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/z80/Makefile" ;;
10515 "device/lib/z180/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/z180/Makefile" ;;
10516 "device/lib/ez80_z80/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/ez80_z80/Makefile" ;;
10517 "device/lib/z80n/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/z80n/Makefile" ;;
10518 "device/lib/r800/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r800/Makefile" ;;
10519 "sdas/asrab/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asrab/Makefile" ;;
10520 "device/lib/r2k/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r2k/Makefile" ;;
10521 "device/lib/r2ka/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r2ka/Makefile" ;;
10522 "device/lib/r3ka/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/r3ka/Makefile" ;;
10523 "sdas/astlcs90/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/astlcs90/Makefile" ;;
10524 "device/lib/tlcs90/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/tlcs90/Makefile" ;;
10525 "sdas/asgb/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asgb/Makefile" ;;
10526 "device/lib/sm83/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/sm83/Makefile" ;;
10527 "src/stm8/Makefile") CONFIG_FILES
="$CONFIG_FILES src/stm8/Makefile" ;;
10528 "sdas/asstm8/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/asstm8/Makefile" ;;
10529 "device/lib/stm8/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/stm8/Makefile" ;;
10530 "device/lib/stm8-large/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/stm8-large/Makefile" ;;
10531 "src/pdk/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pdk/Makefile" ;;
10532 "sdas/aspdk13/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk13/Makefile" ;;
10533 "device/lib/pdk13/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk13/Makefile" ;;
10534 "sdas/aspdk14/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk14/Makefile" ;;
10535 "device/lib/pdk14/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk14/Makefile" ;;
10536 "sdas/aspdk15/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk15/Makefile" ;;
10537 "device/lib/pdk15/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk15/Makefile" ;;
10538 "device/lib/pdk15-stack-auto/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/pdk15-stack-auto/Makefile" ;;
10539 "sdas/aspdk16/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/aspdk16/Makefile" ;;
10540 "device/lib/Makefile") CONFIG_FILES
="$CONFIG_FILES device/lib/Makefile" ;;
10541 "device/non-free/lib/Makefile") CONFIG_FILES
="$CONFIG_FILES device/non-free/lib/Makefile" ;;
10542 "main.mk") CONFIG_FILES
="$CONFIG_FILES main.mk:main_in.mk" ;;
10543 "bin/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/Makefile" ;;
10544 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10545 "device/include/Makefile") CONFIG_FILES
="$CONFIG_FILES device/include/Makefile" ;;
10546 "sdas/linksrc/Makefile") CONFIG_FILES
="$CONFIG_FILES sdas/linksrc/Makefile" ;;
10547 "support/makebin/Makefile") CONFIG_FILES
="$CONFIG_FILES support/makebin/Makefile" ;;
10548 "support/regression/Makefile") CONFIG_FILES
="$CONFIG_FILES support/regression/Makefile" ;;
10549 "support/regression/cases/Makefile") CONFIG_FILES
="$CONFIG_FILES support/regression/cases/Makefile" ;;
10550 "support/valdiag/Makefile") CONFIG_FILES
="$CONFIG_FILES support/valdiag/Makefile" ;;
10551 "support/scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES support/scripts/Makefile" ;;
10552 "support/regression/ports/host/spec.mk") CONFIG_FILES
="$CONFIG_FILES support/regression/ports/host/spec.mk:support/regression/ports/host/spec.mk.in" ;;
10553 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10554 "Makefile.common") CONFIG_FILES
="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
10555 "bin/sdcc") CONFIG_FILES
="$CONFIG_FILES bin/sdcc" ;;
10556 "bin/sdcpp") CONFIG_FILES
="$CONFIG_FILES bin/sdcpp" ;;
10557 "bin/sdar") CONFIG_FILES
="$CONFIG_FILES bin/sdar" ;;
10558 "bin/sdnm") CONFIG_FILES
="$CONFIG_FILES bin/sdnm" ;;
10559 "bin/sdranlib") CONFIG_FILES
="$CONFIG_FILES bin/sdranlib" ;;
10560 "bin/sdobjcopy") CONFIG_FILES
="$CONFIG_FILES bin/sdobjcopy" ;;
10561 "device/non-free/include/Makefile") CONFIG_FILES
="$CONFIG_FILES device/non-free/include/Makefile" ;;
10563 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10568 # If the user did not use the arguments to specify the items to instantiate,
10569 # then the envvar interface is used. Set only those that are not.
10570 # We use the long form for the default assignment because of an extremely
10571 # bizarre bug on SunOS 4.1.3.
10572 if $ac_need_defaults; then
10573 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
10574 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
10577 # Have a temporary directory for convenience. Make it in the build tree
10578 # simply because there is no reason against having it here, and in addition,
10579 # creating and moving files from /tmp can sometimes cause problems.
10580 # Hook for its removal unless debugging.
10581 # Note that there is a small window in which the directory will not be cleaned:
10582 # after its creation but before its name has been assigned to `$tmp'.
10586 trap 'exit_status=$?
10587 : "${ac_tmp:=$tmp}"
10588 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10590 trap 'as_fn_exit 1' 1 2 13 15
10592 # Create a (secure) tmp directory for tmp files.
10595 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10599 tmp
=.
/conf$$
-$RANDOM
10600 (umask 077 && mkdir
"$tmp")
10601 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10604 # Set up the scripts for CONFIG_FILES section.
10605 # No need to generate them if there are no CONFIG_FILES.
10606 # This happens for instance with `./config.status config.h'.
10607 if test -n "$CONFIG_FILES"; then
10610 ac_cr
=`echo X | tr X '\015'`
10611 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10612 # But we know of no other shell where ac_cr would be empty at this
10613 # point, so we can use a bashism as a fallback.
10614 if test "x$ac_cr" = x
; then
10615 eval ac_cr
=\$
\'\\r
\'
10617 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10618 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10621 ac_cs_awk_cr
=$ac_cr
10624 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10629 echo "cat >conf$$subs.awk <<_ACEOF" &&
10630 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10632 } >conf$$subs.sh ||
10633 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10634 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10636 for ac_last_try in false false false false false :; do
10637 . ./conf$$subs.sh ||
10638 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10640 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10641 if test $ac_delim_n = $ac_delim_num; then
10643 elif $ac_last_try; then
10644 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10646 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10649 rm -f conf$$subs.sh
10651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10652 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10656 s/^/S["/; s
/!.
*/"]=/
10666 s/\(.\{148\}\)..*/\1/
10668 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10673 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10680 s/\(.\{148\}\)..*/\1/
10682 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10686 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10691 ' <conf$$subs.awk | sed '
10696 ' >>$CONFIG_STATUS || ac_write_fail=1
10697 rm -f conf$$subs.awk
10698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10700 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10701 for (key in S) S_is_set[key] = 1
10707 nfields = split(line, field, "@
")
10709 len = length(field[1])
10710 for (i = 2; i < nfields; i++) {
10712 keylen = length(key)
10713 if (S_is_set[key]) {
10715 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10716 len += length(value) + length(field[++i])
10727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10728 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10729 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10732 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10733 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10736 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10737 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10738 # trailing colons and then remove the whole line if VPATH becomes empty
10739 # (actually we leave an empty line to preserve line numbers).
10740 if test "x
$srcdir" = x.; then
10741 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10760 fi # test -n "$CONFIG_FILES"
10762 # Set up the scripts for CONFIG_HEADERS section.
10763 # No need to generate them if there are no CONFIG_HEADERS.
10764 # This happens for instance with `./config.status Makefile'.
10765 if test -n "$CONFIG_HEADERS"; then
10766 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10770 # Transform confdefs.h into an awk script `defines.awk', embedded as
10771 # here-document in config.status, that substitutes the proper values into
10772 # config.h.in to produce config.h.
10774 # Create a delimiter string that does not exist in confdefs.h, to ease
10775 # handling of long lines.
10777 for ac_last_try in false false :; do
10778 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10779 if test -z "$ac_tt"; then
10781 elif $ac_last_try; then
10782 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10784 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10788 # For the awk script, D is an array of macro values keyed by name,
10789 # likewise P contains macro parameters if any. Preserve backslash
10790 # newline sequences.
10792 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10794 s/.\{148\}/&'"$ac_delim"'/g
10797 s/^[ ]*#[ ]*define[ ][ ]*/ /
10804 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10806 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10810 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10811 D["\
1"]=" \
3\\\\\\n
"\\/p
10813 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10818 s/.\{148\}/&'"$ac_delim"'/g
10823 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10826 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10828 ' <confdefs.h | sed '
10829 s/'"$ac_delim"'/"\\\
10830 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10833 for (key in D) D_is_set[key] = 1
10836 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10838 split(line, arg, " ")
10839 if (arg[1] == "#") {
10843 defundef
= substr
(arg
[1], 2)
10846 split(mac1
, mac2
, "(") #)
10848 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10849 if (D_is_set
[macro
]) {
10850 # Preserve the white space surrounding the "#".
10851 print prefix
"define", macro P
[macro
] D
[macro
]
10854 # Replace #undef with comments. This is necessary, for example,
10855 # in the case of _POSIX_SOURCE, which is predefined and required
10856 # on some systems where configure will not decide to define it.
10857 if (defundef
== "undef") {
10858 print
"/*", prefix defundef
, macro
, "*/"
10866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10867 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10868 fi # test -n "$CONFIG_HEADERS"
10871 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10876 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10878 case $ac_mode$ac_tag in
10880 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10881 :[FH
]-) ac_tag
=-:-;;
10882 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10899 -) ac_f
="$ac_tmp/stdin";;
10900 *) # Look for the file first in the build tree, then in the source tree
10901 # (if the path is not absolute). The absolute path cannot be DOS-style,
10902 # because $ac_f cannot contain `:'.
10906 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10908 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10910 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10911 as_fn_append ac_file_inputs
" '$ac_f'"
10914 # Let's still pretend it is `configure' which instantiates (i.e., don't
10915 # use $as_me), people would be surprised to read:
10916 # /* config.h. Generated by config.status. */
10917 configure_input
='Generated from '`
10918 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10920 if test x
"$ac_file" != x-
; then
10921 configure_input
="$ac_file. $configure_input"
10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10923 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10925 # Neutralize special characters interpreted by sed in replacement strings.
10926 case $configure_input in #(
10927 *\
&* |
*\|
* |
*\\* )
10928 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
10929 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10930 *) ac_sed_conf_input
=$configure_input;;
10934 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10935 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10940 ac_dir
=`$as_dirname -- "$ac_file" ||
10941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10942 X"$ac_file" : 'X\(//\)[^/]' \| \
10943 X"$ac_file" : 'X\(//\)$' \| \
10944 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10945 printf "%s\n" X"$ac_file" |
10946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10950 /^X\(\/\/\)[^/].*/{
10963 as_dir
="$ac_dir"; as_fn_mkdir_p
10967 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10969 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10970 # A ".." for each directory in $ac_dir_suffix.
10971 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10972 case $ac_top_builddir_sub in
10973 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10974 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10977 ac_abs_top_builddir
=$ac_pwd
10978 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10979 # for backward compatibility:
10980 ac_top_builddir
=$ac_top_build_prefix
10983 .
) # We are building in place.
10985 ac_top_srcdir
=$ac_top_builddir_sub
10986 ac_abs_top_srcdir
=$ac_pwd ;;
10987 [\\/]* | ?
:[\\/]* ) # Absolute name.
10988 ac_srcdir
=$srcdir$ac_dir_suffix;
10989 ac_top_srcdir
=$srcdir
10990 ac_abs_top_srcdir
=$srcdir ;;
10991 *) # Relative name.
10992 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10993 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10994 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10996 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11006 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11007 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11012 # If the template does not know about datarootdir, expand it.
11013 # FIXME: This hack should be removed a few years after 2.60.
11014 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11025 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11026 *datarootdir
*) ac_datarootdir_seen
=yes;;
11027 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11029 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11032 ac_datarootdir_hack='
11033 s&@datadir@&$datadir&g
11034 s&@docdir@&$docdir&g
11035 s&@infodir@&$infodir&g
11036 s&@localedir@&$localedir&g
11037 s&@mandir@&$mandir&g
11038 s&\\\${datarootdir}&$datarootdir&g' ;;
11042 # Neutralize VPATH when `$srcdir' = `.'.
11043 # Shell code in configure.ac might set extrasub.
11044 # FIXME: do we really want to maintain this feature?
11045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11046 ac_sed_extra="$ac_vpsub
11049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11051 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11052 s|@configure_input@|
$ac_sed_conf_input|
;t t
11053 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11054 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11055 s
&@srcdir@
&$ac_srcdir&;t t
11056 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11057 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11058 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11059 s
&@builddir@
&$ac_builddir&;t t
11060 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11061 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11062 s
&@INSTALL@
&$ac_INSTALL&;t t
11063 $ac_datarootdir_hack
11065 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11066 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11068 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11069 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11071 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11072 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11073 which seems to be undefined. Please make sure it is defined" >&5
11074 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11075 which seems to be undefined. Please make sure it is defined" >&2;}
11077 rm -f "$ac_tmp/stdin"
11079 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11080 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11088 if test x"$ac_file" != x-; then
11090 printf "%s\n" "/* $configure_input */" >&1 \
11091 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11092 } >"$ac_tmp/config.h" \
11093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11094 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11096 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11099 mv "$ac_tmp/config.h" "$ac_file" \
11100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11103 printf "%s\n" "/* $configure_input */" >&1 \
11104 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11105 || as_fn_error $? "could not create -" "$LINENO" 5
11113 case $ac_file$ac_mode in
11114 "bin/sdcc":F) chmod +x bin/sdcc ;;
11115 "bin/sdcpp":F) chmod +x bin/sdcpp ;;
11116 "bin/sdar":F) chmod +x bin/sdar ;;
11117 "bin/sdnm":F) chmod +x bin/sdnm ;;
11118 "bin/sdranlib":F) chmod +x bin/sdranlib ;;
11119 "bin/sdobjcopy":F) chmod +x bin/sdobjcopy ;;
11127 ac_clean_files=$ac_clean_files_save
11129 test $ac_write_fail = 0 ||
11130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11133 # configure is writing to config.log, and then calls config.status.
11134 # config.status does its own redirection, appending to config.log.
11135 # Unfortunately, on DOS this fails, as config.log is still kept open
11136 # by configure, so config.status won't be able to
write to it
; its
11137 # output is simply discarded. So we exec the FD to /dev/null,
11138 # effectively closing config.log, so it can be properly (re)opened and
11139 # appended to by config.status. When coming back to configure, we
11140 # need to make the FD available again.
11141 if test "$no_create" != yes; then
11143 ac_config_status_args
=
11144 test "$silent" = yes &&
11145 ac_config_status_args
="$ac_config_status_args --quiet"
11147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11150 # would make configure fail if this is the last instruction.
11151 $ac_cs_success || as_fn_exit
1
11155 # CONFIG_SUBDIRS section.
11157 if test "$no_recursion" != yes; then
11159 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11160 # so they do not pile up.
11161 ac_sub_configure_args
=
11163 eval "set x $ac_configure_args"
11167 if test -n "$ac_prev"; then
11172 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
11173 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
11174 ac_prev
=cache_file
;;
11175 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
11176 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
11179 --config-cache |
-C)
11181 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
11183 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
11185 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
11187 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
11189 --disable-option-checking)
11193 *\'*) ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11195 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
11199 # Always prepend --prefix to ensure using the same prefix
11200 # in subdir configurations.
11201 ac_arg
="--prefix=$prefix"
11203 *\'*) ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11205 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
11208 if test "$silent" = yes; then
11209 ac_sub_configure_args
="--silent $ac_sub_configure_args"
11212 # Always prepend --disable-option-checking to silence warnings, since
11213 # different subdirs can have different --enable and --with options.
11214 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
11217 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
11219 # Do not complain, so a configure script can configure whichever
11220 # parts of a large source tree are present.
11221 test -d "$srcdir/$ac_dir" ||
continue
11223 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11225 printf "%s\n" "$ac_msg" >&6
11226 as_dir
="$ac_dir"; as_fn_mkdir_p
11230 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11232 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11233 # A ".." for each directory in $ac_dir_suffix.
11234 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11235 case $ac_top_builddir_sub in
11236 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11237 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11240 ac_abs_top_builddir
=$ac_pwd
11241 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11242 # for backward compatibility:
11243 ac_top_builddir
=$ac_top_build_prefix
11246 .
) # We are building in place.
11248 ac_top_srcdir
=$ac_top_builddir_sub
11249 ac_abs_top_srcdir
=$ac_pwd ;;
11250 [\\/]* | ?
:[\\/]* ) # Absolute name.
11251 ac_srcdir
=$srcdir$ac_dir_suffix;
11252 ac_top_srcdir
=$srcdir
11253 ac_abs_top_srcdir
=$srcdir ;;
11254 *) # Relative name.
11255 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11256 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11257 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11259 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11264 # Check for configure.gnu first; this name is used for a wrapper for
11265 # Metaconfig's "Configure" on case-insensitive file systems.
11266 if test -f "$ac_srcdir/configure.gnu"; then
11267 ac_sub_configure
=$ac_srcdir/configure.gnu
11268 elif test -f "$ac_srcdir/configure"; then
11269 ac_sub_configure
=$ac_srcdir/configure
11271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11272 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11276 # The recursion is here.
11277 if test -n "$ac_sub_configure"; then
11278 # Make the cache file name correct relative to the subdirectory.
11279 case $cache_file in
11280 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
11281 *) # Relative name.
11282 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11286 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11287 # The eval makes quoting arguments work.
11288 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11289 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11290 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11296 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11298 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11302 # I found no better place
11305 # Prepare result message
11306 # ======================
11308 # In the C-header we need \\ as dir-separator, but in the message only \
11309 dirch
=${sdccconf_h_dir_separator}
11310 test ${dirch} = '\\' && dirch
='\'
11312 # calc friendly strings
11314 binPath=`echo "/${prefix2bin_dir}" | sed 's
,/\.
/,/,g
'`
11315 case ":$binPath:" in
11317 :*[\\/]:) binPath=`echo "$binPath" | sed 's
,[\\/]*$
,,'` ;;
11322 *\\*) binPath=`echo "$binPath" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11323 s
,^
[\\/],\\\\\\\\,'` ;;
11325 *) binPath=`echo "$binPath" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11327 binPath=`echo "$binPath" | sed 's
,\\\\\\\\,\\\\,g
'`
11330 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11331 case ":$incPath1:" in
11332 ::) incPath1='.
' ;;
11333 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's
,[\\/]*$
,,'` ;;
11338 *\\*) incPath1=`echo "$incPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11339 s
,^
[\\/],\\\\\\\\,'` ;;
11341 *) incPath1=`echo "$incPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11343 incPath1=`echo "$incPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
11346 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11347 case ":$incPath2:" in
11348 ::) incPath2='.
' ;;
11349 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's
,[\\/]*$
,,'` ;;
11354 *\\*) incPath2=`echo "$incPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11355 s
,^
[\\/],\\\\\\\\,'` ;;
11357 *) incPath2=`echo "$incPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11359 incPath2=`echo "$incPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
11362 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11363 case ":$incPath3:" in
11364 ::) incPath3='.
' ;;
11365 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's
,[\\/]*$
,,'` ;;
11370 *\\*) incPath3=`echo "$incPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11371 s
,^
[\\/],\\\\\\\\,'` ;;
11373 *) incPath3=`echo "$incPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11375 incPath3=`echo "$incPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
11378 nonFreeIncPath1=`echo "/${prefix2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11379 case ":$nonFreeIncPath1:" in
11380 ::) nonFreeIncPath1='.
' ;;
11381 :*[\\/]:) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,[\\/]*$
,,'` ;;
11386 *\\*) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11387 s
,^
[\\/],\\\\\\\\,'` ;;
11389 *) nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11391 nonFreeIncPath1=`echo "$nonFreeIncPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
11394 nonFreeIncPath2=`echo "/${bin2data_dir}/${norm_non_free_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11395 case ":$nonFreeIncPath2:" in
11396 ::) nonFreeIncPath2='.
' ;;
11397 :*[\\/]:) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,[\\/]*$
,,'` ;;
11402 *\\*) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11403 s
,^
[\\/],\\\\\\\\,'` ;;
11405 *) nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11407 nonFreeIncPath2=`echo "$nonFreeIncPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
11410 nonFreeIncPath3=`echo "${expanded_datadir}/${norm_non_free_inc_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11411 case ":$nonFreeIncPath3:" in
11412 ::) nonFreeIncPath3='.
' ;;
11413 :*[\\/]:) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,[\\/]*$
,,'` ;;
11418 *\\*) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11419 s
,^
[\\/],\\\\\\\\,'` ;;
11421 *) nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11423 nonFreeIncPath3=`echo "$nonFreeIncPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
11427 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11428 case ":$libPath1:" in
11429 ::) libPath1='.
' ;;
11430 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's
,[\\/]*$
,,'` ;;
11435 *\\*) libPath1=`echo "$libPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11436 s
,^
[\\/],\\\\\\\\,'` ;;
11438 *) libPath1=`echo "$libPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11440 libPath1=`echo "$libPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
11443 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11444 case ":$libPath2:" in
11445 ::) libPath2='.
' ;;
11446 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's
,[\\/]*$
,,'` ;;
11451 *\\*) libPath2=`echo "$libPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11452 s
,^
[\\/],\\\\\\\\,'` ;;
11454 *) libPath2=`echo "$libPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11456 libPath2=`echo "$libPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
11459 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11460 case ":$libPath3:" in
11461 ::) libPath3='.
' ;;
11462 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's
,[\\/]*$
,,'` ;;
11467 *\\*) libPath3=`echo "$libPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11468 s
,^
[\\/],\\\\\\\\,'` ;;
11470 *) libPath3=`echo "$libPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11472 libPath3=`echo "$libPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
11475 nonFreeLibPath1=`echo "/${prefix2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11476 case ":$nonFreeLibPath1:" in
11477 ::) nonFreeLibPath1='.
' ;;
11478 :*[\\/]:) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,[\\/]*$
,,'` ;;
11483 *\\*) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11484 s
,^
[\\/],\\\\\\\\,'` ;;
11486 *) nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11488 nonFreeLibPath1=`echo "$nonFreeLibPath1" | sed 's
,\\\\\\\\,\\\\,g
'`
11491 nonFreeLibPath2=`echo "/${bin2data_dir}/${norm_non_free_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11492 case ":$nonFreeLibPath2:" in
11493 ::) nonFreeLibPath2='.
' ;;
11494 :*[\\/]:) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,[\\/]*$
,,'` ;;
11499 *\\*) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11500 s
,^
[\\/],\\\\\\\\,'` ;;
11502 *) nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11504 nonFreeLibPath2=`echo "$nonFreeLibPath2" | sed 's
,\\\\\\\\,\\\\,g
'`
11507 nonFreeLibPath3=`echo "${expanded_datadir}/${norm_non_free_lib_dir_suffix}" | sed 's
,/\.
/,/,g
'`
11508 case ":$nonFreeLibPath3:" in
11509 ::) nonFreeLibPath3='.
' ;;
11510 :*[\\/]:) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,[\\/]*$
,,'` ;;
11515 *\\*) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1\\\\\\\\,g
11516 s
,^
[\\/],\\\\\\\\,'` ;;
11518 *) nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,\
(.\
)[\\/][\\/]*,\
1/,g
'` ;;
11520 nonFreeLibPath3=`echo "$nonFreeLibPath3" | sed 's
,\\\\\\\\,\\\\,g
'`
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
11524 sdcc ${VERSION} is now configured for
11528 Source directory: ${srcdir}
11532 C++ compiler: ${CXX}
11533 CXXFLAGS: ${CXXFLAGS}
11534 CPPFLAGS: ${CPPFLAGS}
11535 LDFLAGS: ${LDFLAGS}
11536 MAKEDEP: ${MAKEDEP}
11537 MAKEDEP_CXX: ${MAKEDEP_CXX}
11540 ds390 ${enable_ds390_port}
11541 ds400 ${enable_ds400_port}
11542 hc08 ${enable_hc08_port}
11543 s08 ${enable_s08_port}
11544 mcs51 ${enable_mcs51_port}
11545 pic14 ${enable_pic14_port}
11546 pic16 ${enable_pic16_port}
11547 z80 ${enable_z80_port}
11548 z180 ${enable_z180_port}
11549 r2k ${enable_r2k_port}
11550 r2ka ${enable_r2ka_port}
11551 r3ka ${enable_r3ka_port}
11552 sm83 ${enable_sm83_port}
11553 tlcs90 ${enable_tlcs90_port}
11554 ez80_z80 ${enable_ez80_z80_port}
11555 z80n ${enable_z80n_port}
11556 r800 ${enable_r800_port}
11557 stm8 ${enable_stm8_port}
11558 pdk13 ${enable_pdk13_port}
11559 pdk14 ${enable_pdk14_port}
11560 pdk15 ${enable_pdk15_port}
11561 pdk16 ${enable_pdk16_port}
11562 mos6502 ${enable_mos6502_port}
11563 mos65c02 ${enable_mos65c02_port}
11565 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11566 Disable packihx: ${OPT_DISABLE_PACKIHX}
11567 Disable ucsim: ${OPT_DISABLE_UCSIM}
11568 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11569 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11570 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11571 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11572 Enable documentation: ${OPT_ENABLE_DOC}
11573 Enable libgc: ${OPT_ENABLE_LIBGC}
11576 binary files: ${exec_prefix}
11577 include/library files: ${datadir}/${inclib_dir_suffix}
11578 include files: ${datadir}/${include_dir_suffix}
11579 library files: ${datadir}/${lib_dir_suffix}
11580 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11581 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11582 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11583 documentation: ${docdir}
11586 datadir: ${datadir}
11587 datarootdir: ${datarootdir}
11589 Search paths (incomplete, see manual for all search paths):
11590 binary files: \$SDCC_HOME${binPath}
11591 include files: ${incPath1}
11592 path(argv[0])${incPath2}
11595 path(argv[0])${nonFreeIncPath2}
11597 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11598 path(argv[0])${libPath2}${dirch}<model>
11599 ${libPath3}${dirch}<model>
11600 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11601 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11602 ${nonFreeLibPath3}${dirch}<model>
11605 sdcc ${VERSION} is now configured for
11609 Source directory: ${srcdir}
11613 C++ compiler: ${CXX}
11614 CXXFLAGS: ${CXXFLAGS}
11615 CPPFLAGS: ${CPPFLAGS}
11616 LDFLAGS: ${LDFLAGS}
11617 MAKEDEP: ${MAKEDEP}
11618 MAKEDEP_CXX: ${MAKEDEP_CXX}
11621 ds390 ${enable_ds390_port}
11622 ds400 ${enable_ds400_port}
11623 hc08 ${enable_hc08_port}
11624 s08 ${enable_s08_port}
11625 mcs51 ${enable_mcs51_port}
11626 pic14 ${enable_pic14_port}
11627 pic16 ${enable_pic16_port}
11628 z80 ${enable_z80_port}
11629 z180 ${enable_z180_port}
11630 r2k ${enable_r2k_port}
11631 r2ka ${enable_r2ka_port}
11632 r3ka ${enable_r3ka_port}
11633 sm83 ${enable_sm83_port}
11634 tlcs90 ${enable_tlcs90_port}
11635 ez80_z80 ${enable_ez80_z80_port}
11636 z80n ${enable_z80n_port}
11637 r800 ${enable_r800_port}
11638 stm8 ${enable_stm8_port}
11639 pdk13 ${enable_pdk13_port}
11640 pdk14 ${enable_pdk14_port}
11641 pdk15 ${enable_pdk15_port}
11642 pdk16 ${enable_pdk16_port}
11643 mos6502 ${enable_mos6502_port}
11644 mos65c02 ${enable_mos65c02_port}
11646 Disable non-free lib: ${OPT_DISABLE_NON_FREE}
11647 Disable packihx: ${OPT_DISABLE_PACKIHX}
11648 Disable ucsim: ${OPT_DISABLE_UCSIM}
11649 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
11650 Disable sdcpp: ${OPT_DISABLE_SDCPP}
11651 Disable sdcdb: ${OPT_DISABLE_SDCDB}
11652 Disable sdbinutil: ${OPT_DISABLE_SDBINUTILS}
11653 Enable documentation: ${OPT_ENABLE_DOC}
11654 Enable libgc: ${OPT_ENABLE_LIBGC}
11657 binary files: ${exec_prefix}
11658 include/library files: ${datadir}/${inclib_dir_suffix}
11659 include files: ${datadir}/${include_dir_suffix}
11660 library files: ${datadir}/${lib_dir_suffix}
11661 non-free files: ${datadir}/${non_free_inclib_dir_suffix}
11662 non-free include files: ${datadir}/${non_free_include_dir_suffix}
11663 non-free library files: ${datadir}/${non_free_lib_dir_suffix}
11664 documentation: ${docdir}
11667 datadir: ${datadir}
11668 datarootdir: ${datarootdir}
11670 Search paths (incomplete, see manual for all search paths):
11671 binary files: \$SDCC_HOME${binPath}
11672 include files: ${incPath1}
11673 path(argv[0])${incPath2}
11676 path(argv[0])${nonFreeIncPath2}
11678 library files: \$SDCC_HOME${libPath1}${dirch}<model>
11679 path(argv[0])${libPath2}${dirch}<model>
11680 ${libPath3}${dirch}<model>
11681 \$SDCC_HOME${nonFreeLibPath1}${dirch}<model>
11682 path(argv[0])${nonFreeLibPath2}${dirch}<model>
11683 ${nonFreeLibPath3}${dirch}<model>
11685 # End of configure/configure.in