aboutsummaryrefslogtreecommitdiff
path: root/example/calc/configure.in
blob: 3ee022a441b95d9517938ed1022d791161a59a73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.5)
AC_INIT(calc.c)
AC_CONFIG_HEADER(calc.h)
CC=${CC-cc}

#
# Look for various header files
#
AC_HEADER_CHECK(stdlib.h, ,AC_DEFINE(HAVE_STDLIB_H))

#
# Look for various functions
#
AC_FUNC_CHECK(strcmp, AC_DEFINE(HAVE_STRCMP))

#
# Output Makefile with substitutions
AC_SUBST(CC)
AC_OUTPUT(Makefile)