1dnl This is the newlib/libm/machine configure.in file.
2dnl Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.5)
5AC_INIT(i386)
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 add the following lines because automake detects the
13dnl references to libtool libraries from aclocal and tries to verify that
14dnl AM_PROG_LIBTOOL is being used.  This must be added after
15dnl the call to NEWLIB_CONFIGURE.
16
17if test "${use_libtool}" = "yes"; then
18AC_LIBTOOL_WIN32_DLL
19AM_PROG_LIBTOOL
20fi
21
22machlib=
23
24if test -n "${libm_machine_dir}"; then
25  AC_CONFIG_SUBDIRS(${libm_machine_dir})
26  if test "${use_libtool}" = "yes"; then
27    machlib=${libm_machine_dir}/lib${libm_machine_dir}.${aext}
28  else
29    machlib=${libm_machine_dir}/lib.${aext}
30  fi
31fi
32
33AC_SUBST(libm_machine_dir)
34AC_SUBST(machlib)
35
36AM_CONDITIONAL(HAVE_LIBM_MACHINE_DIR, test x${libm_machine_dir} != x)
37AC_OUTPUT(Makefile)
38
39
40
41