source: trunk/athena/lib/athdir/configure.ac @ 25908

Revision 25908, 1.4 KB checked in by achernya, 11 years ago (diff)
Clean up extraneous checks in configure.ac
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.67])
5AC_INIT([libathdir], [10.0.2], [debathena@mit.edu])
6AM_INIT_AUTOMAKE([foreign -Wall])
7AM_MAINTAINER_MODE([enable])
8m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9AC_CONFIG_MACRO_DIR([m4])
10AC_CONFIG_SRCDIR([src/athdir.c])
11AC_CONFIG_HEADERS([config.h])
12
13# Checks for programs.
14AC_PROG_CC
15LT_INIT
16
17# Checks for libraries.
18
19# Checks for header files.
20AC_CHECK_HEADERS([stdlib.h string.h sys/param.h])
21
22# Checks for typedefs, structures, and compiler characteristics.
23
24# Checks for library functions.
25AC_FUNC_MALLOC
26AC_FUNC_REALLOC
27AC_CHECK_FUNCS([strchr])
28
29# More stuff
30AS_IF([test x"$ATHENA_SYS" = x], [AC_MSG_ERROR([ATHENA_SYS must be set])])
31AC_DEFINE_UNQUOTED([ATHSYS], ["$ATHENA_SYS"], [Define the Athena System Version])
32
33AC_ARG_WITH([hosttype],
34    [AS_HELP_STRING([--with-hosttype],
35                    [machtype for compatibility])],
36    [
37        case $withval in
38             linux)     withval='"linux"';;
39             sun4)      withval='"sun4"';;
40             inbsd)     withval='"inbsd"';;
41             yes)       withval='"linux"';;
42             no)        withval=NULL;;
43             *)         AC_MSG_ERROR([invalid hosttype specified]);;
44        esac
45        hosttype=$withval
46    ],
47    [hosttype='"linux"'])
48AC_DEFINE_UNQUOTED([HOSTTYPE], [$hosttype], [Define the type of the Athena System])
49
50
51AC_CONFIG_FILES([Makefile
52                 src/Makefile
53                 src/athdir.pc
54])
55AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.