From 2b76839dd088eb65ab040828fd1e40f950840b6e Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 29 Nov 2006 17:38:21 +0000 Subject: 2006-11-29 Thomas Schwinge * configure.in: Move to... * configure.ac: ... here and overhaul a bit. --- configure.ac | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..f8eb3ad --- /dev/null +++ b/configure.ac @@ -0,0 +1,49 @@ +dnl configure script for GNU MIG. + +AC_PREREQ([2.53]) + +AC_INIT([GNU MIG], [1.3.1], [bug-hurd@gnu.org]) +AC_CONFIG_SRCDIR([migcom.c]) +AC_CONFIG_AUX_DIR([build-aux]) + +AC_CANONICAL_HOST +AC_CANONICAL_TARGET + +AC_ARG_PROGRAM + +AM_INIT_AUTOMAKE + +dnl Checks for programs. +AC_PROG_CC +AC_PROG_CPP +AC_PROG_YACC +AM_PROG_LEX +AC_PROG_AWK +AC_PROG_INSTALL + +dnl Checks for header files. +AC_HEADER_STDC + +dnl Checks for library functions. +AC_FUNC_ALLOCA +AC_FUNC_VPRINTF + + +[if [ "$target" = "$host" ]; then + TARGET_CC='${CC}' +else] + AC_CHECK_PROG([TARGET_CC], [$target_alias-gcc], [$target_alias-gcc], [none]) + [if [ x"$TARGET_CC" != x"$target_alias"-gcc ]; then] + AC_MSG_ERROR([could not find a compiler for the target you requested]) + [fi +fi] +dnl These two are just for the user's convenience. +AC_SUBST([TARGET_CPPFLAGS]) +AC_SUBST([TARGET_CFLAGS]) + +[MIGCOM=`echo migcom | sed "$program_transform_name"`] +AC_SUBST([MIGCOM]) +[MIG=`echo mig | sed "$program_transform_name"`] +AC_SUBST([MIG]) + +AC_OUTPUT([Makefile mig]) -- cgit v1.2.3