5 AC_CONFIG_SRCDIR([Makefile])
6 AC_CONFIG_HEADER(sdccconf.h:sdccconf_in.h)
10 AC_MSG_CHECKING(version of the package)
11 if test -f .version; then
12 VERSION=`cat .version`
13 elif test -f ../.version; then
14 VERSION=`cat ../.version`
18 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
19 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
20 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
21 # Assume no special extension
24 AC_MSG_RESULT(${VERSION})
29 AC_DEFINE_UNQUOTED(SDCC_VERSION_LO, ${VERSIONLO})
30 AC_DEFINE_UNQUOTED(SDCC_VERSION_HI, ${VERSIONHI})
31 AC_DEFINE_UNQUOTED(SDCC_VERSION_P, ${VERSIONP})
32 AC_DEFINE_UNQUOTED(SDCC_VERSION_STR, "${VERSION}")
34 sdcc_cv_version=$VERSION
35 sdcc_cv_versionhi=$VERSIONHI
36 sdcc_cv_versionlo=$VERSIONLO
37 sdcc_cv_versionp=$VERSIONP
41 # ===========================================================================
49 AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, :)
50 AC_CHECK_PROG(STRIP, strip, strip, :)
51 AC_CHECK_PROG(AS, as, as, :)
52 AC_CHECK_PROG(CP, cp, cp, :)
54 AC_CHECK_PROG(LYX, lyx, lyx, :)
55 AC_CHECK_PROG(LATEX, latex, latex, :)
56 AC_CHECK_PROG(LATEX2HTML, latex2html, latex2html, :)
57 AC_CHECK_PROG(PDFLATEX, pdflatex, pdflatex, :)
58 AC_CHECK_PROG(DVIPDF, dvipdf, dvipdf, :)
60 AC_DEFUN(SDCC_REQUIRE_PROG,
61 [if test "$1" = ":"; then
62 AC_MSG_ERROR([Cannot find required program $2.])
66 SDCC_REQUIRE_PROG($YACC, bison)
67 SDCC_REQUIRE_PROG($LEX, lex)
72 # Checking for header files.
73 # ===========================================================================
74 AC_CHECK_HEADERS(sys/socket.h)
77 # Checking for functions
78 # ===========================================================================
79 AC_CHECK_FUNCS(strerror)
80 AC_CHECK_FUNCS(vsnprintf snprintf vsprintf mkstemp)
84 # ===========================================================================
86 # DD_COPT macro checks if the compiler specified as the 1st parameter
87 # supports option specified as the 2nd parameter
88 # For example: DD_CPORT(CXX, fPIC)
91 AC_CACHE_CHECK(whether $$1 accepts -$2,sdcc_cv_$1$2,
96 $$1 -v -$2 -c _test_.c 1>&5 2>&5
97 if test "$?" = "0"; then
102 rm -f _test_.* a.out)
105 # This macro expands DIR and assigns it to RET.
106 # If DIR is NONE, then it's replaced by DEFAULT.
108 # Based on AC_DEFINE_DIR
112 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
114 AC_DEFUN([AC_EXPAND], [
115 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
116 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
118 test "x$ac_expand" = xNONE && ac_expand="[$]$2"
119 ac_expand=`eval echo [$]ac_expand`
120 $3=`eval echo [$]ac_expand`
125 # - empty paths are changed to '.'
126 # - trailing slashes are removed
127 # - repeated slashes are squeezed except a leading doubled slash '//'
128 # (which might indicate a networked disk on some OS).
131 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
132 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
133 # are turned into backslashes, otherwise they are all turned into slashes.
135 # This makes processing of DOS filenames quite easier, because you can turn a
136 # filename to the Unix notation, make your processing, and turn it back to
139 dnl Available from the GNU Autoconf Macro Archive at:
140 dnl http://www.gnu.org/software/ac-archive/htmldoc/normpath.html
142 AC_DEFUN([adl_NORMALIZE_PATH],
144 # change empty paths to '.'
146 # strip trailing slashes
147 :*[[\\/]]:) $1=`echo "[$]$1" | sed 's,[[\\/]]*[$],,'` ;;
150 # squeze repeated slashes
151 case ifelse($2,,"[$]$1",$2) in
152 # if the path contains any backslashes, turn slashes into backslashes
154 # Bernhard Held 2003-04-06
155 # This was the original line. It doesn't:
156 # - convert the first slash
157 # - replace a slash with a double-backslash
158 # *\\*) $1=`echo "[$]$1" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
159 *\\*) $1=`echo "[$]$1" | sed 's,[[\\/]][[\\/]]*,\\\\\\\\,g'` ;;
161 # if the path contains slashes, also turn backslashes into slashes
162 *) $1=`echo "[$]$1" | sed 's,\(.\)[[\\/]][[\\/]]*,\1/,g'` ;;
166 # adl_COMPUTE_RELATIVE_PATH
168 # PATH_LIST is a space-separated list of colon-separated triplets of the form
169 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
170 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
171 # absolute filenames for this macro to success.
173 AC_DEFUN([adl_COMPUTE_RELATIVE_PATHS],
174 [for _lcl_i in $1; do
175 _lcl_from=\[$]`echo "[$]_lcl_i" | sed 's,:.*$,,'`
176 _lcl_to=\[$]`echo "[$]_lcl_i" | sed 's,^[[^:]]*:,,' | sed 's,:[[^:]]*$,,'`
177 _lcl_result_var=`echo "[$]_lcl_i" | sed 's,^.*:,,'`
178 adl_RECURSIVE_EVAL([[$]_lcl_from], [_lcl_from])
179 adl_RECURSIVE_EVAL([[$]_lcl_to], [_lcl_to])
180 _lcl_notation="$_lcl_from$_lcl_to"
181 adl_NORMALIZE_PATH([_lcl_from],['/'])
182 adl_NORMALIZE_PATH([_lcl_to],['/'])
183 adl_COMPUTE_RELATIVE_PATH([_lcl_from], [_lcl_to], [_lcl_result_tmp])
184 adl_NORMALIZE_PATH([_lcl_result_tmp],["[$]_lcl_notation"])
185 eval $_lcl_result_var='[$]_lcl_result_tmp'
190 ## The following helper macros are too fragile to be used out
191 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
192 ## paths are normalized), that's why I'm keeping them in the same file.
193 ## Still, some of them maybe worth to reuse.
195 dnl adl_COMPUTE_RELATIVE_PATH(FROM, TO, RESULT)
196 dnl ===========================================
197 dnl Compute the relative path to go from $FROM to $TO and set the value
198 dnl of $RESULT to that value. This function work on raw filenames
199 dnl (for instead it will considerate /usr//local and /usr/local as
200 dnl two distinct paths), you should really use adl_COMPUTE_REALTIVE_PATHS
201 dnl instead to have the paths sanitized automatically.
204 dnl first_dir=/somewhere/on/my/disk/bin
205 dnl second_dir=/somewhere/on/another/disk/share
206 dnl adl_COMPUTE_RELATIVE_PATH(first_dir, second_dir, first_to_second)
207 dnl will set $first_to_second to '../../../another/disk/share'.
208 AC_DEFUN([adl_COMPUTE_RELATIVE_PATH],
209 [adl_COMPUTE_COMMON_PATH([$1], [$2], [_lcl_common_prefix])
210 adl_COMPUTE_BACK_PATH([$1], [_lcl_common_prefix], [_lcl_first_rel])
211 adl_COMPUTE_SUFFIX_PATH([$2], [_lcl_common_prefix], [_lcl_second_suffix])
212 $3="[$]_lcl_first_rel[$]_lcl_second_suffix"])
214 dnl adl_COMPUTE_COMMON_PATH(LEFT, RIGHT, RESULT)
215 dnl ============================================
216 dnl Compute the common path to $LEFT and $RIGHT and set the result to $RESULT.
219 dnl first_path=/somewhere/on/my/disk/bin
220 dnl second_path=/somewhere/on/another/disk/share
221 dnl adl_COMPUTE_COMMON_PATH(first_path, second_path, common_path)
222 dnl will set $common_path to '/somewhere/on'.
223 AC_DEFUN([adl_COMPUTE_COMMON_PATH],
225 _lcl_second_prefix_match=''
226 while test "[$]_lcl_second_prefix_match" != 0; do
227 _lcl_first_prefix=`expr "x[$]$1" : "x\([$]$3/*[[^/]]*\)"`
228 _lcl_second_prefix_match=`expr "x[$]$2" : "x[$]_lcl_first_prefix"`
229 if test "[$]_lcl_second_prefix_match" != 0; then
230 if test "[$]_lcl_first_prefix" != "[$]$3"; then
231 $3="[$]_lcl_first_prefix"
233 _lcl_second_prefix_match=0
238 dnl adl_COMPUTE_SUFFIX_PATH(PATH, SUBPATH, RESULT)
239 dnl ==============================================
240 dnl Substrack $SUBPATH from $PATH, and set the resulting suffix
241 dnl (or the empty string if $SUBPATH is not a subpath of $PATH)
245 dnl first_path=/somewhere/on/my/disk/bin
246 dnl second_path=/somewhere/on
247 dnl adl_COMPUTE_SUFFIX_PATH(first_path, second_path, common_path)
248 dnl will set $common_path to '/my/disk/bin'.
249 AC_DEFUN([adl_COMPUTE_SUFFIX_PATH],
250 [$3=`expr "x[$]$1" : "x[$]$2/*\(.*\)"`])
252 dnl adl_COMPUTE_BACK_PATH(PATH, SUBPATH, RESULT)
253 dnl ============================================
254 dnl Compute the relative path to go from $PATH to $SUBPATH, knowing that
255 dnl $SUBPATH is a subpath of $PATH (any other words, only repeated '../'
256 dnl should be needed to move from $PATH to $SUBPATH) and set the value
257 dnl of $RESULT to that value. If $SUBPATH is not a subpath of PATH,
258 dnl set $RESULT to the empty string.
261 dnl first_path=/somewhere/on/my/disk/bin
262 dnl second_path=/somewhere/on
263 dnl adl_COMPUTE_BACK_PATH(first_path, second_path, back_path)
264 dnl will set $back_path to '../../../'.
265 AC_DEFUN([adl_COMPUTE_BACK_PATH],
266 [adl_COMPUTE_SUFFIX_PATH([$1], [$2], [_lcl_first_suffix])
269 while test "[$]_lcl_tmp" != ''; do
270 _lcl_tmp=`expr "x[$]_lcl_first_suffix" : "x[[^/]]*/*\(.*\)"`
271 if test "[$]_lcl_first_suffix" != ''; then
272 _lcl_first_suffix="[$]_lcl_tmp"
278 dnl adl_RECURSIVE_EVAL(VALUE, RESULT)
279 dnl =================================
280 dnl Interpolate the VALUE in loop until it doesn't change,
281 dnl and set the result to $RESULT.
282 dnl WARNING: It's easy to get an infinite loop with some unsane input.
283 AC_DEFUN([adl_RECURSIVE_EVAL],
285 $2=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
286 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
288 while test "[$]_lcl_receval_old" != "[$]_lcl_receval"; do
289 _lcl_receval_old="[$]_lcl_receval"
290 eval _lcl_receval="\"[$]_lcl_receval\""
292 echo "[$]_lcl_receval")`])
295 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
297 AC_DEFUN([AC_NORMALIZE_DEFINE_UNQUOTED], [
299 adl_NORMALIZE_PATH([ac_ndu], [$]$3)
300 AC_DEFINE_UNQUOTED($2, "${ac_ndu}")
304 # Checking characteristics of compilers and other programs
305 # ===========================================================================
306 AC_CACHE_CHECK(whether preprocessor accepts -MM or -M,sdcc_cv_MM,
307 echo "#include <stdio.h>" >_test_.c
309 $CPP -v -MM _test_.c 1>&5 2>&5
310 if test "$?" = "0"; then
319 # This is the first time when CFLAGS are set/modified!!
321 if test "$sdcc_cv_CCggdb" = "yes"; then
322 CFLAGS="-ggdb ${CFLAGS}"
326 if test "$sdcc_cv_CCpipe" = "yes"; then
327 CFLAGS="-pipe $CFLAGS"
331 # Checks for typedefs, structures, and compiler characteristics.
332 # ===========================================================================
335 AC_CHECK_SIZEOF(char)
336 AC_CHECK_SIZEOF(short)
338 AC_CHECK_SIZEOF(long)
342 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
346 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
350 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
354 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
361 AC_MSG_CHECKING(type name for byte)
362 TYPE_BYTE=`type_name 1`
363 AC_MSG_RESULT($TYPE_BYTE)
364 AC_MSG_CHECKING(type name for word)
365 TYPE_WORD=`type_name 2`
366 AC_MSG_RESULT($TYPE_WORD)
367 AC_MSG_CHECKING(type name for dword)
368 TYPE_DWORD=`type_name 4`
369 AC_MSG_RESULT($TYPE_DWORD)
370 AC_DEFINE_UNQUOTED(TYPE_BYTE, $TYPE_BYTE)
371 AC_DEFINE_UNQUOTED(TYPE_WORD, $TYPE_WORD)
372 AC_DEFINE_UNQUOTED(TYPE_DWORD, $TYPE_DWORD)
376 # Set standard installation paths
377 # ===========================================================================
379 # In the Makefiles we need paths with '/' as directory separator, even if
380 # crosscompiling for Win32.
381 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
382 # The variables in the Makefiles are replaced by AC_SUBST()
384 # In sdccconf.h the '/' in paths are replaced by "\\" (normalized).
385 # The macros are expanded for the header.
386 # The variables in the header are replaced by AC_*DEFINE*()
388 AC_MSG_CHECKING(-mno-cygwin)
397 AC_MSG_RESULT($MINGW32_HOST)
399 AC_MSG_CHECKING(host mingw32)
405 AC_MSG_RESULT($MINGW32_HOST)
407 if test "${MINGW32_HOST}" = "no"; then
417 # include_dir_suffix:
418 # *nix default: "sdcc/include"
419 # mingw32 default: "include"
420 if test "${MINGW32_HOST}" = "no"; then
421 include_dir_suffix="sdcc/include"
423 include_dir_suffix="include"
425 AC_SUBST(include_dir_suffix)
428 # *nix default: "sdcc/lib"
429 # mingw32 default: "lib"
430 if test "${MINGW32_HOST}" = "no"; then
431 lib_dir_suffix="sdcc/lib"
435 AC_SUBST(lib_dir_suffix)
438 # *nix default: "${datadir}/sdcc/doc"
439 # mingw32 default: "${datadir}/doc"
440 if test "${MINGW32_HOST}" = "no"; then
441 doc_suffix="/sdcc/doc"
445 docdir="\${datadir}"${doc_suffix}
451 AC_DEFINE_UNQUOTED(DIR_SEPARATOR_STRING, "${dir_separator}")
452 AC_DEFINE_UNQUOTED(DIR_SEPARATOR_CHAR , '${dir_separator}')
455 # *nix default: "NONE", ${ac_default_prefix}: "/usr/local"
456 # mingw32 default: "/sdcc"
457 AC_EXPAND(prefix, ac_default_prefix, expanded_prefix)
458 AC_NORMALIZE_DEFINE_UNQUOTED(expanded_prefix, PREFIX, dir_separator)
461 # default: "${prefix}"
462 AC_EXPAND(exec_prefix, expanded_prefix, expanded_exec_prefix)
463 AC_NORMALIZE_DEFINE_UNQUOTED(expanded_exec_prefix, EXEC_PREFIX, dir_separator)
466 # default: "${exec_prefix}/bin"
467 AC_EXPAND(bindir, "NONE", expanded_bindir)
468 AC_NORMALIZE_DEFINE_UNQUOTED(expanded_bindir, BINDIR, dir_separator)
471 # *nix default: "${prefix}/share"
472 # mingw32 default: "/sdcc"
473 AC_EXPAND(datadir, "NONE", expanded_datadir)
474 AC_NORMALIZE_DEFINE_UNQUOTED(expanded_datadir, DATADIR, dir_separator)
477 norm_inc_dir_suffix=${include_dir_suffix}
478 adl_NORMALIZE_PATH([norm_inc_dir_suffix], [$dir_separator])
479 AC_DEFINE_UNQUOTED(INCLUDE_DIR_SUFFIX,
480 DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}")
481 norm_lib_dir_suffix=${lib_dir_suffix}
482 adl_NORMALIZE_PATH([norm_lib_dir_suffix], [$dir_separator])
483 AC_DEFINE_UNQUOTED(LIB_DIR_SUFFIX,
484 DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}")
487 adl_COMPUTE_RELATIVE_PATHS([expanded_bindir:expanded_datadir:bin2data_dir])
488 adl_NORMALIZE_PATH(bin2data_dir, [$dir_separator])
489 AC_DEFINE_UNQUOTED(BIN2DATA_DIR,
490 DIR_SEPARATOR_STRING "${bin2data_dir}")
492 adl_COMPUTE_RELATIVE_PATHS([expanded_prefix:expanded_bindir:prefix2bin_dir])
493 adl_NORMALIZE_PATH(prefix2bin_dir, [$dir_separator])
494 AC_DEFINE_UNQUOTED(PREFIX2BIN_DIR,
495 DIR_SEPARATOR_STRING "${prefix2bin_dir}")
497 adl_COMPUTE_RELATIVE_PATHS([expanded_prefix:expanded_datadir:prefix2data_dir])
498 adl_NORMALIZE_PATH(prefix2data_dir, [$dir_separator])
499 if test "${prefix2data_dir}" = "."; then
500 # small optimization for Mingw32; otherwise Borut will complain ;-)
501 AC_DEFINE_UNQUOTED(PREFIX2DATA_DIR, "")
503 AC_DEFINE_UNQUOTED(PREFIX2DATA_DIR,
504 DIR_SEPARATOR_STRING "${prefix2data_dir}")
508 AC_DEFINE_UNQUOTED(STD_LIB, "libsdcc")
509 AC_DEFINE_UNQUOTED(STD_INT_LIB, "libint")
510 AC_DEFINE_UNQUOTED(STD_LONG_LIB, "liblong")
511 AC_DEFINE_UNQUOTED(STD_FP_LIB, "libfloat")
512 AC_DEFINE_UNQUOTED(STD_DS390_LIB, "libds390")
513 AC_DEFINE_UNQUOTED(STD_xa51_LIB, "xa51")
515 # environment variables
516 sdcc_dir_name="SDCC_HOME"
517 AC_DEFINE_UNQUOTED(SDCC_DIR_NAME, "${sdcc_dir_name}")
519 sdcc_include_name="SDCC_INCLUDE"
520 AC_DEFINE_UNQUOTED(SDCC_INCLUDE_NAME, "${sdcc_include_name}")
522 sdcc_lib_name="SDCC_LIB"
523 AC_DEFINE_UNQUOTED(SDCC_LIB_NAME, "${sdcc_lib_name}")
525 # Now handle the port selection
526 # ===========================================================================
527 rm -f ports.all ports.build
528 AC_ARG_ENABLE(mcs51-port,
529 AC_HELP_STRING([--disable-mcs51-port],
530 [Excludes the Intel mcs51 port]))
531 echo mcs51 >>ports.all
532 if test "$enable_mcs51_port" = "no"; then
533 AC_DEFINE_UNQUOTED(OPT_DISABLE_MCS51, 1)
535 echo mcs51 >>ports.build
536 AC_DEFINE_UNQUOTED(OPT_DISABLE_MCS51, 0)
539 AC_ARG_ENABLE(gbz80-port,
540 AC_HELP_STRING([--disable-gbz80-port],
541 [Excludes the Gameboy gbz80 port]))
543 if test "$enable_gbz80_port" = "no"; then
544 AC_DEFINE_UNQUOTED(OPT_DISABLE_GBZ80, 1)
546 echo z80 >>ports.build
547 AC_DEFINE_UNQUOTED(OPT_DISABLE_GBZ80, 0)
550 AC_ARG_ENABLE(z80-port,
551 AC_HELP_STRING([--disable-z80-port],
552 [Excludes the z80 port]))
554 if test "$enable_z80_port" = "no"; then
555 AC_DEFINE_UNQUOTED(OPT_DISABLE_Z80, 1)
557 echo z80 >>ports.build
558 AC_DEFINE_UNQUOTED(OPT_DISABLE_Z80, 0)
561 AC_ARG_ENABLE(avr-port,
562 AC_HELP_STRING([--disable-avr-port],
563 [Excludes the AVR port]))
565 if test "$enable_avr_port" = "no"; then
566 AC_DEFINE_UNQUOTED(OPT_DISABLE_AVR, 1)
568 echo avr >>ports.build
569 AC_DEFINE_UNQUOTED(OPT_DISABLE_AVR, 0)
572 AC_ARG_ENABLE(ds390-port,
573 AC_HELP_STRING([--disable-ds390-port],
574 [Excludes the DS390 port]))
575 echo ds390 >>ports.all
576 if test "$enable_ds390_port" = "no"; then
577 AC_DEFINE_UNQUOTED(OPT_DISABLE_DS390, 1)
578 AC_DEFINE_UNQUOTED(OPT_DISABLE_TININative, 1)
580 echo ds390 >>ports.build
581 AC_DEFINE_UNQUOTED(OPT_DISABLE_DS390, 0)
582 AC_DEFINE_UNQUOTED(OPT_DISABLE_TININative, 0)
585 AC_ARG_ENABLE(pic-port,
586 AC_HELP_STRING([--disable-pic-port],
587 [Excludes the PIC port]))
589 if test "$enable_pic_port" = "no"; then
590 AC_DEFINE_UNQUOTED(OPT_DISABLE_PIC, 1)
592 echo pic >>ports.build
593 AC_DEFINE_UNQUOTED(OPT_DISABLE_PIC, 0)
596 AC_ARG_ENABLE(xa51-port,
597 AC_HELP_STRING([--disable-xa51-port],
598 [Excludes the XA51 port]))
599 echo xa51 >>ports.all
600 if test "$enable_xa51_port" = "no"; then
601 AC_DEFINE_UNQUOTED(OPT_DISABLE_XA51, 1)
603 echo xa51 >>ports.build
604 AC_DEFINE_UNQUOTED(OPT_DISABLE_XA51, 0)
608 AC_HELP_STRING([--disable-ucsim],
609 [Disables configuring and building of ucsim]))
610 OPT_ENABLE_UCSIM=$enable_ucsim
611 AC_SUBST(OPT_ENABLE_UCSIM)
613 AC_ARG_ENABLE(device-lib-build,
614 AC_HELP_STRING([--disable-device-lib-build],
615 [Disables automatically building device libraries]))
616 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
617 AC_SUBST(OPT_ENABLE_DEVICE_LIB_BUILD)
619 AC_ARG_ENABLE(packihx,
620 AC_HELP_STRING([--disable-packihx],
621 [Disables building packihx]))
622 OPT_ENABLE_PACKIHX=$enable_packihx
623 AC_SUBST(OPT_ENABLE_PACKIHX)
626 AC_HELP_STRING([--enable-libgc],
627 [Use the Bohem memory allocator. Lower runtime footprint.]))
628 if test "$enable_libgc" = "yes"; then
629 AC_CHECK_LIB(gc, GC_malloc)
634 AC_DEFINE_UNQUOTED(OPT_ENABLE_LIBGC, $OPT_ENABLE_LIBGC)
639 uniq ports.build ports
642 # Generating output files
643 # ===========================================================================
644 AC_CONFIG_SUBDIRS(support/cpp2)
645 AC_CONFIG_SUBDIRS(packihx)
646 AC_CONFIG_SUBDIRS(sim/ucsim)
647 AC_CONFIG_FILES([main.mk:main_in.mk
650 device/include/Makefile
652 debugger/mcs51/Makefile
653 Makefile.common:Makefile.common.in
657 # End of configure/configure.in