1 | dnl This is the newlib/libm/machine configure.in file. |
---|
2 | dnl Process this file with autoconf to produce a configure script. |
---|
3 | |
---|
4 | AC_PREREQ(2.59) |
---|
5 | AC_INIT([newlib],[NEWLIB_VERSION]) |
---|
6 | AC_CONFIG_SRCDIR([i386]) |
---|
7 | |
---|
8 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. |
---|
9 | AC_CONFIG_AUX_DIR(../../..) |
---|
10 | |
---|
11 | NEWLIB_CONFIGURE(../..) |
---|
12 | |
---|
13 | dnl We have to add the following lines because automake detects the |
---|
14 | dnl references to libtool libraries from aclocal and tries to verify that |
---|
15 | dnl AM_PROG_LIBTOOL is being used. This must be added after |
---|
16 | dnl the call to NEWLIB_CONFIGURE. |
---|
17 | _LT_DECL_SED |
---|
18 | _LT_PROG_ECHO_BACKSLASH |
---|
19 | if test "${use_libtool}" = "yes"; then |
---|
20 | AC_LIBTOOL_WIN32_DLL |
---|
21 | AM_PROG_LIBTOOL |
---|
22 | fi |
---|
23 | |
---|
24 | machlib= |
---|
25 | |
---|
26 | if test -n "${libm_machine_dir}"; then |
---|
27 | case ${libm_machine_dir} in |
---|
28 | aarch64) AC_CONFIG_SUBDIRS(aarch64) ;; |
---|
29 | arm) AC_CONFIG_SUBDIRS(arm) ;; |
---|
30 | i386) AC_CONFIG_SUBDIRS(i386) ;; |
---|
31 | nds32) AC_CONFIG_SUBDIRS(nds32) ;; |
---|
32 | spu) AC_CONFIG_SUBDIRS(spu) ;; |
---|
33 | riscv) AC_CONFIG_SUBDIRS(riscv) ;; |
---|
34 | esac; |
---|
35 | if test "${use_libtool}" = "yes"; then |
---|
36 | machlib=${libm_machine_dir}/lib${libm_machine_dir}.${aext} |
---|
37 | else |
---|
38 | machlib=${libm_machine_dir}/lib.${aext} |
---|
39 | fi |
---|
40 | fi |
---|
41 | |
---|
42 | AC_SUBST(libm_machine_dir) |
---|
43 | AC_SUBST(machlib) |
---|
44 | |
---|
45 | AM_CONDITIONAL(HAVE_LIBM_MACHINE_DIR, test x${libm_machine_dir} != x) |
---|
46 | AC_CONFIG_FILES([Makefile]) |
---|
47 | AC_OUTPUT |
---|
48 | |
---|
49 | |
---|
50 | |
---|