]> andersk Git - splint.git/blame - configure.ac
Updated README version number. (Testing sourceforge)
[splint.git] / configure.ac
CommitLineData
8fe44445 1dnl Process with autoconf to create a configure script -*- Autoconf -*-
2AC_PREREQ(2.50)
3AC_INIT([LCLint], [3.0.0.19], [lclint-bug@cs.virginia.edu], [lclint])
4
5dnl This MUST precede any other macro
6AC_CONFIG_AUX_DIR([config])
7
8dnl Set up the source directory
9AC_CONFIG_SRCDIR([src/lclinit.c])
10
11dnl Deduce host
12AC_CANONICAL_HOST
13
14dnl Set up automake & the configuration header
15AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION, AC_PACKAGE_BUGREPORT)
16AM_CONFIG_HEADER([config.h:config.hin])
17
18dnl Prepare for LCLint processing of config.h
19AH_TOP([/*@-constmacros@*/])
20AH_BOTTOM([/*@=constmacros@*/])
21
22dnl Checks for programs.
c1dda563 23#drl 12-19-2001 commented out so LCLint won't depend on C++
24#AC_PROG_CXX
8fe44445 25AC_PROG_CC
26AC_PROG_CPP
27AM_PROG_LEX
28AC_PROG_INSTALL
29AC_PROG_MAKE_SET
30AC_PROG_LN_S
31AC_CHECK_PROG(BISON, bison, bison, no)
32AC_CHECK_PROG(GREP, grep, grep, grep-is-missing)
33AC_CHECK_PROG(DIFF, diff, diff, diff-is-missing)
34AC_CHECK_PROG(CAT, cat, cat, cat-is-missing)
35AC_CHECK_PROG(RM, rm, rm, rm-is-missing)
36AC_CHECK_PROG(MV, mv, mv, mv-is-missing)
37AC_CHECK_PROG(CP, cp, cp, cp-is-missing)
38
39dnl Checks for header files.
40dnl Currently all disable, as the source files don't care about the results
41dnl AC_HEADER_DIRENT
42dnl AC_HEADER_STDC
43dnl AC_CHECK_HEADERS([alloca.h errno.h fcntl.h float.h limits.h locale.h malloc.h stddef.h stdlib.h string.h strings.h sys/time.h unistd.h])
44
45dnl Checks for typedefs, structures, and compiler characteristics.
46dnl Currently all disable, as the source files don't care about the results
47dnl AC_C_CONST
48dnl AC_TYPE_UID_T
49dnl AC_TYPE_MODE_T
50dnl AC_TYPE_OFF_T
51dnl AC_TYPE_PID_T
52dnl AC_TYPE_SIZE_T
53dnl AC_STRUCT_ST_BLOCKS
54dnl AC_CHECK_MEMBERS([struct stat.st_rdev])
55dnl AC_DECL_SYS_SIGLIST
56dnl AC_HEADER_TIME
57dnl AC_STRUCT_TM
58dnl AC_CHECK_TYPES([ptrdiff_t])
59
60dnl Checks for library functions.
61dnl Currently all disable, as the source files don't care about the results
62dnl AC_FUNC_ALLOCA
63dnl AC_FUNC_CHOWN
64dnl AC_FUNC_GETPGRP
65dnl AC_PROG_GCC_TRADITIONAL
66dnl AC_FUNC_LSTAT
67dnl AC_FUNC_MALLOC
68dnl AC_FUNC_MEMCMP
69dnl AC_FUNC_MKTIME
70dnl AC_FUNC_MMAP
71dnl AC_FUNC_SETVBUF_REVERSED
72dnl AC_TYPE_SIGNAL
73dnl AC_FUNC_STAT
74dnl AC_FUNC_STRCOLL
75dnl AC_FUNC_STRERROR_R
76dnl AC_FUNC_VFORK
77dnl AC_FUNC_VPRINTF
78dnl AC_FUNC_WAIT3
79dnl AC_CHECK_FUNCS([alarm atexit btowc bzero dup2 endgrent endpwent fchdir floor ftruncate getcwd getgroups gethostname gettimeofday isascii iswprint lchown localeconv mblen mbrlen mbrtowc memchr memmove memset mkdir mkfifo modf munmap pathconf pow putenv realpath regcomp rint rmdir rpmatch select setenv socket sqrt strcasecmp strchr strcspn strdup strerror strftime strncasecmp strpbrk strrchr strspn strstr strtod strtol strtoul strtoull tzset uname utime vprintf])
80
81LCLOBJ='$(lcl_OBJECTS)'
82AC_ARG_WITH([lcl],
83 AC_HELP_STRING([--without-lcl],
84 [don't include support for LCL files]),
85 ac_cv_use_lcl=$withval,
86 AC_CACHE_CHECK([whether to include support for LCL files],
87 ac_cv_use_lcl, ac_cv_use_lcl=yes))
88if test x$ac_cv_use_lcl != xyes; then
89 LCLOBJ=
90 AC_DEFINE(NOLCL, 1, [Define to disable support LCL files])
91fi
92AC_SUBST(LCLOBJ)
93
94# Make sure we have an actual value for $prefix
95myprefix=$prefix
96test x$myprefix = xNONE && myprefix=$ac_default_prefix
97
98# cpplib.h defines 2 include dirs; one is $includedir, the other is gcc's
99# include dir. Not the most portable setup, but let's do our best.
100if test x$ac_cv_c_compiler_gnu = xyes; then
101 dnl Make sure to override NLS; this assumes gcc prints only
102 dnl Reading specs from blah
103 dnl gcc version blah
e5f31c00 104
105# This breaks on gcc-3.0 on redhat fixing drl 11-15-2001
106# GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/'`
107 GCC_INCLUDE_DIR=/usr/lib/gcc-lib/i386-linux/2.7.2.1/include
108# GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -n -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/p'`
8fe44445 109 AC_DEFINE_UNQUOTED(GCC_INCLUDE_DIR, "$GCC_INCLUDE_DIR",
110 [gcc's private include directory])
111fi
112AC_DEFINE_UNQUOTED(GCC_INCLUDE_DIR2, "$myprefix/include",
113 [the system's main include directory])
114
115# These used to be in local_constants.h
116AC_DEFINE_UNQUOTED(SYSTEM_LIBDIR, "$myprefix/include",
117 [The system's main include directory])
118AC_DEFINE_UNQUOTED(DEFAULT_LARCHPATH,
e5f31c00 119 ".$PATH_SEPARATOR$myprefix/share/lclint/lib$PATH_SEPARATOR`pwd`/lib$PATH_SEPARATOR",
8fe44445 120 [The directory where LCLint's library files live])
73441cf5 121AC_DEFINE_UNQUOTED(DEFAULT_LCLIMPORTDIR, ".$PATH_SEPARATOR$myprefix/share/lclint/imports$PATH_SEPARATOR`pwd`/imports",
8fe44445 122 [LCLint's imports directory])
123
124# These used to be in herald.h
125LCL_PARSE_VERSION="AC_PACKAGE_NAME AC_PACKAGE_VERSION"
126AC_DEFINE_UNQUOTED(LCL_VERSION,
127 "$LCL_PARSE_VERSION --- `cat $srcdir/src/DATE`",
128 [LCLint's version number and release date])
129AC_DEFINE_UNQUOTED(LCL_PARSE_VERSION, "$LCL_PARSE_VERSION",
130 [LCLint's version number])
131AC_DEFINE_UNQUOTED(LCL_COMPILE,
132 "Compiled using $CC $CFLAGS on `uname -a` by `whoami`",
133 [String describing who compiled this binary and how])
134
135
136dnl TODO: Use result AC_CANONICAL_HOST to figure out what to define
137AC_DEFINE(UNIX, 1, [Define if you're on a Unixy system])
138
139dnl AC_CONFIG_FILES([test/Makefile
140dnl test/ensuresclauses/Makefile
141dnl test/conditions/Makefile
142dnl test/db2/Makefile
143dnl test/warnuse/Makefile
144dnl test/tainted/Makefile
145dnl test/fileio/Makefile
146dnl test/tests2.4/Makefile
147dnl test/db3/Makefile
148dnl test/metastate/Makefile
149dnl test/mergestate/Makefile
150dnl test/tests2.5/Makefile
151dnl test/tests2.2/Makefile
152dnl test/db1/Makefile])
153
154AC_CONFIG_FILES([Makefile imports/Makefile lib/Makefile src/Makefile
155 test/Makefile])
156AC_OUTPUT
157
158
159
160
161
162
163
164
165
This page took 1.013978 seconds and 5 git commands to generate.