| 1 | dnl Process this file with autoconf to produce a configure script. |
1 | dnl Process this file with autoconf to produce a configure script. |
| 2 | AC_INIT |
2 | AC_INIT |
| 3 | AC_CONFIG_SRCDIR([lib/psiconv]) |
3 | AC_CONFIG_SRCDIR([lib/psiconv]) |
| 4 | AM_INIT_AUTOMAKE(psiconv,0.8.2) |
4 | AM_INIT_AUTOMAKE(psiconv,0.8.4) |
| 5 | |
5 | |
| 6 | AM_CONFIG_HEADER(config.h) |
6 | AM_CONFIG_HEADER(config.h) |
| 7 | |
7 | |
| 8 | dnl Checks for programs. |
8 | dnl Checks for programs. |
| 9 | AM_PROG_LIBTOOL |
9 | AM_PROG_LIBTOOL |
| … | |
… | |
| 175 | AC_SUBST(INT_32_BIT) |
175 | AC_SUBST(INT_32_BIT) |
| 176 | |
176 | |
| 177 | dnl Checks for library functions. |
177 | dnl Checks for library functions. |
| 178 | AC_FUNC_VPRINTF |
178 | AC_FUNC_VPRINTF |
| 179 | AC_REPLACE_FUNCS(strdup) |
179 | AC_REPLACE_FUNCS(strdup) |
| 180 | AC_CHECK_FUNCS(getopt_long,,LIBOBJS="$LIBOBJS getopt.lo getopt1.lo") |
180 | AC_CHECK_FUNCS(getopt_long,,AC_LIBOBJ([getopt]);AC_LIBOBJ([getopt1])) |
| 181 | |
181 | |
| 182 | AC_ARG_ENABLE(dmalloc, |
182 | AC_ARG_ENABLE(dmalloc, |
| 183 | [ --enable-dmalloc Enable dmalloc for developers (default:off)], |
183 | [ --enable-dmalloc Enable dmalloc for developers (default:off)], |
| 184 | [case "${enableval}" in |
184 | [case "${enableval}" in |
| 185 | yes) dmalloc=yes ;; |
185 | yes) dmalloc=yes ;; |