1# configure.in -- Process this file with autoconf to produce configure
2#
3# Copyright (C) 2002 Jeremy Madea
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2, or (at your option)
8# any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19
20AC_INIT(jpgtn, 2.06, jeremymadea@mindspring.com)
21AC_CONFIG_SRCDIR(src/jpgtn.c)
22# Configure the auxillary dir before init'ing automake otherwise automake can't
23# find install.sh.
24AC_CONFIG_AUX_DIR(cfg)
25
26AM_INIT_AUTOMAKE
27AM_CONFIG_HEADER(src/config.h:src/config-h.in)
28
29AC_PROG_CC
30
31AC_HEADER_STDC
32AC_CHECK_HEADERS(getopt.h errno.h strings.h unistd.h setjmp.h)
33
34AC_C_CONST
35
36# Checks for library functions.
37AC_FUNC_MALLOC
38AC_FUNC_STAT
39AC_CHECK_FUNCS([calloc strdup strrchr rindex])
40JPGTN_FIND_LIBJPEG
41AC_SUBST(ac_aux_dir)
42
43AC_OUTPUT([Makefile src/Makefile doc/Makefile],
44[test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h.in])
45