1dnl This is the newlib/libc/sys configure.in file.
2dnl Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.5)
5AC_INIT(a29khif)
6
7dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
8AC_CONFIG_AUX_DIR(../../..)
9
10NEWLIB_CONFIGURE(../..)
11
12dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
13dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
14dnl line of the macro which fail because appropriate LDFLAGS are not set.
15if test "${use_libtool}" = "yes"; then
16AC_LIBTOOL_WIN32_DLL
17AM_PROG_LIBTOOL
18fi
19
20if test -n "${sys_dir}"; then
21  AC_CONFIG_SUBDIRS(${sys_dir})
22fi
23
24CRT0=
25if test -n "${sys_dir}"; then
26  CRT0=crt0.o
27fi
28AC_SUBST(CRT0)
29
30AM_CONDITIONAL(HAVE_SYS_DIR, test x${sys_dir} != x)
31
32AC_OUTPUT(Makefile)
33