Last change
on this file since 35762 was 30294, checked in by jmt12, 9 years ago |
Typo would have prevented the generated configure script from working properly if --with-gdbm-lib-path was actually provided. Kinda obsolete now as I've moved this logic into the Makefile itself.
|
File size:
983 bytes
|
Rev | Line | |
---|
[24618] | 1 | # -*- Autoconf -*-
|
---|
| 2 | # Process this file with autoconf to produce a configure script.
|
---|
| 3 | AC_PREREQ(2.59)
|
---|
| 4 | AC_INIT([txt2dbl], [1.0], [[email protected]])
|
---|
| 5 | AM_INIT_AUTOMAKE
|
---|
| 6 | AC_CANONICAL_HOST
|
---|
| 7 |
|
---|
| 8 | # Checks for programs.
|
---|
| 9 | AC_PROG_CXX([g++])
|
---|
| 10 |
|
---|
| 11 | # Checks for libraries.
|
---|
| 12 | AC_CHECK_LIB([crypt],[encrypt])
|
---|
| 13 |
|
---|
| 14 | AC_ARG_WITH([gdbm-include-path],
|
---|
| 15 | [AS_HELP_STRING([--with-gdbm-include-path],[location of the GDBM headers])],
|
---|
| 16 | [GDBM_CFLAGS="-I$withval"],
|
---|
| 17 | [GDBM_CFLAGS='-I../../../../common-src/packages/gdbm/include'])
|
---|
| 18 | AC_SUBST([GDBM_CFLAGS])
|
---|
| 19 |
|
---|
| 20 | AC_ARG_WITH([gdbm-lib-path],
|
---|
| 21 | [AS_HELP_STRING([--with-gdbm-lib-path], [location of the GDBM libraries])],
|
---|
[30294] | 22 | [GDBM_LIBS="-L$withval -lgdbm"],
|
---|
[24618] | 23 | [GDBM_LIBS='-L../../../../common-src/packages/gdbm/lib -lgdbm'])
|
---|
| 24 | AC_SUBST([GDBM_LIBS])
|
---|
| 25 |
|
---|
| 26 | # Checks for header files.
|
---|
| 27 |
|
---|
| 28 | # Checks for typedefs, structures, and compiler characteristics.
|
---|
| 29 |
|
---|
| 30 | # Checks for library functions.
|
---|
| 31 |
|
---|
| 32 | # Completion
|
---|
| 33 | AC_CONFIG_FILES([Makefile])
|
---|
[30294] | 34 | AC_OUTPUT
|
---|
Note:
See
TracBrowser
for help on using the repository browser.