dnl dnl GNU POC (passwords on card) - manage passwords on smartcards dnl Copyright (C) 2001 Henning Koester dnl dnl Please report bugs to bug-poc@gnu.org dnl dnl This file is part of POC. dnl dnl This program is free software; you can redistribute it and/or dnl modify it under the terms of the GNU General Public License as dnl published by the Free Software Foundation; either version 2 of dnl the License, or (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. dnl dnl Process this file with autoconf to produce a configure script. AC_INIT(src/main.c) AM_CONFIG_HEADER(config.h) PACKAGE=poc VERSION=`cat VERSION` AC_SUBST(PACKAGE) AC_SUBST(VERSION) AM_INIT_AUTOMAKE($PACKAGE, $VERSION) AC_ARG_ENABLE(debug, [ --enable-debug the program will output *lots* of debug stuff [default: no debug]], AC_DEFINE(DEBUG)) dnl Checks for programs. AC_PROG_AWK AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET dnl Checks for libraries. AC_CHECK_LIB(towitoko, CT_init, [], [ echo; echo "Error: CT-API library not found."; echo; exit 1 ]) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(unistd.h) AC_CHECK_HEADERS(ctapi.h, [], [ echo; echo "Error: ctapi.h from CT-API not found."; echo; exit 1]) AC_CHECK_HEADERS(byteswap.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T dnl Checks for library functions. AC_FUNC_VPRINTF AC_CHECK_FUNCS(getopt_long, ,AC_MSG_ERROR(I need getopt_long to work.)) AC_CHECK_FUNCS(strcasecmp strtok) AC_OUTPUT(Makefile src/Makefile doc/Makefile)