mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-13 04:13:33 +08:00
a4c97499d9
and being made more generic.
35 lines
708 B
Plaintext
35 lines
708 B
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
AC_PREREQ(2.5)dnl
|
|
AC_INIT(Makefile.in)
|
|
|
|
AC_PROG_INSTALL
|
|
AC_PROG_CC
|
|
|
|
# Put a plausible default for CC_FOR_BUILD in Makefile.
|
|
if test "x$cross_compiling" = "xno"; then
|
|
CC_FOR_BUILD='$(CC)'
|
|
else
|
|
CC_FOR_BUILD=gcc
|
|
fi
|
|
|
|
|
|
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
|
|
AC_CANONICAL_SYSTEM
|
|
AC_ARG_PROGRAM
|
|
|
|
. ${srcdir}/../../bfd/configure.host
|
|
|
|
AC_CONFIG_HEADER(config.h:config.in)
|
|
|
|
AC_CHECK_HEADERS(stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h)
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_SUBST(CC_FOR_BUILD)
|
|
AC_SUBST(CFLAGS)
|
|
AR=${AR-ar}
|
|
AC_SUBST(AR)
|
|
AC_PROG_RANLIB
|
|
|
|
AC_OUTPUT(Makefile,
|
|
[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
|