1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
|
dnl Copyright (C) 1998 Claus-Justus Heine
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2, or (at your option)
dnl any later version.
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
dnl GNU General Public License for more details.
dnl You should have received a copy of the GNU General Public License
dnl along with this program; see the file COPYING. If not, write to
dnl the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
dnl $RCSfile: configure.in,v $
dnl $Revision: 1.30 $
dnl $Date: 1999/03/17 11:55:10 $
dnl Process this file with autoconf to produce a configure script.
AC_INIT(lib/getsubopt.c)
AC_CONFIG_SUBDIRS(doc)
AM_INIT_AUTOMAKE(ftape-tools, 1.07.3)
AM_CONFIG_HEADER(./include/config.h)
AM_PROG_LIBTOOL
ACLOCAL="$ACLOCAL -I doc/"
AC_ARG_ENABLE(tapetests,
[ --enable-tapetests Enable tests which require a working floppy tape
streamer and a spare tape cartridge. All data on
the tape cartridge will be erased [disabled]],
if test x${enableval} = xyes; then
TAPETESTS=enabled
else
TAPETESTS=disabled
fi,
TAPETESTS=disabled)
AC_SUBST(TAPETESTS)
AC_ARG_WITH(testdev,
[ --with-testdev=NR Which tape device to use for testing. Give only
the number, i.e. don't say "--with-testdev=/dev/qft0"
but use "--with-testdev=0". Tests will be disabled
if value isn't valid. [0]],
if test $withval -ge 0 -o $withval -le 3 ; then
TAPEDEV=$withval
else
TAPETESTS=disabled
fi,
TAPEDEV=0)
AC_SUBST(TAPEDEV)
AM_CONDITIONAL(TAPETESTS, test $TAPETESTS = enabled)
dnl AC_ARG_WITH(maintainer,
dnl [ --with-maintainer=EMAIL The email address of the ftaep maintainer.
dnl Default is "the ftape maintainer".],
dnl if test x${withval} = xyes || test x${withval} = xno ; then
dnl THE_FTAPE_MAINTAINER="the ftape maintainer"
dnl else
dnl TAPETESTS=$withval
dnl fi,
dnl THE_FTAPE_MAINTAINER="the ftape_maintainer")
dnl AC_SUBST(THE_FTAPE_MAINTAINER)
AC_DEFINE(THE_FTAPE_MAINTAINER, "the ftape maintainer")
dnl Load the doc/ options so "configure --help" works from the top
dnl level directory.
FTTOOLS_DOC_OPTIONS
dnl Set of available languages.
ALL_LINGUAS="en de"
dnl Checks for programs.
AC_PATH_PROG(PERL, perl)
AC_PATH_PROG(BASH, bash)
AC_CHECK_PROGS(WISH, wish wish4.2)
AC_PROG_CC
AC_ISC_POSIX
AC_PROG_INSTALL
dnl Checks for libraries.
dnl export PKGDATADIR=${datadir}/$PACKAGE
dnl first set the ${prefix} variable
AC_SET_PREFIX
PKGDATADIR=`eval echo ${datadir}/$PACKAGE`
AC_SUBST(PKGDATADIR)
dnl PKGLIBDIR=`eval echo ${libdir}/$PACKAGE`
dnl PKGLIBDIR=`eval echo $PKGLIBDIR`
dnl AC_SUBST(PKGLIBDIR)
LOCALEDIR=`eval echo ${datadir}/locale`
AC_SUBST(LOCALEDIR)
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h strings.h sys/file.h sys/ioctl.h unistd.h sys/mtio.h)
dnl check for location of ftape header files
dnl AC_ARG_WITH(ftape,
dnl [ --with-ftape=FTAPE_SOURCES Optional. Give the location of the ftape
dnl kernel module sources. If not given, either
dnl the standard kernel include files are used,
dnl or the include files that come with this
dnl pacakge])
dnl AC_MSG_CHECKING(for the location of the ftape header files)
dnl if test "${with_ftape+set}" = set; then
dnl FTAPE_INC=$with_ftape
dnl else
dnl AC_TRY_CPP([#include <linux/ftape-vendors.h>], FTAPE_INC="")
dnl if test "${FTAPE_INC+set}" = set; then
dnl AC_MSG_RESULT("in standard include path")
dnl fi
dnl fi
: ${FTAPE_INC="-I\$(top_builddir)/include/ftape"}
AC_SUBST(FTAPE_INC)
dnl AC_MSG_RESULT($FTAPE_INC)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_STRUCT_TM
dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_FUNC_MMAP
AC_FUNC_SETVBUF_REVERSED
AC_TYPE_SIGNAL
AC_FUNC_STRFTIME
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(mktime strerror)
AC_REPLACE_FUNCS(getsubopt strtol error)
AC_FUNC_STRPTIME
dnl check for fttoolsbug.sh settings
GNATS_ADDR=ftape-bugs@iris3.math1.rwth-aachen.de
CATEGORIES="ftape ftape-tools ftape-doc"
AC_SUBST(CATEGORIES)dnl
AC_SUBST(GNATS_ADDR)dnl
AC_SUBST(MAIL_AGENT)dnl
AC_SUBST(ECHON)dnl
AC_ECHON
AC_PASSWD
AC_FIND_PROGRAM(SENDMAIL,sendmail,/usr/lib:/usr/sbin:/usr/ucblib)
if test -n "$SENDMAIL" ; then
MAIL_AGENT="$SENDMAIL -oi -t"
else
MAIL_AGENT=false
fi
dnl internationalization macros
AM_GNU_GETTEXT
AC_MSG_RESULT(Tape tests: $TAPETESTS)
if test $TAPETESTS = enabled ; then
AC_MSG_RESULT(Test device: /dev/qft$TAPEDEV)
fi
AC_OUTPUT([include/Makefile \
testsuite/Makefile \
lib/Makefile src/Makefile \
src/swapout/Makefile src/swapout/testsuite/Makefile \
src/ftformat/Makefile src/scripts/Makefile \
Makefile \
src/ftmt/Makefile src/ftmt/testsuite/Makefile \
src/vtblc/Makefile src/vtblc/testsuite/Makefile \
src/ftape-tool/Makefile src/ftape-tool/ftape-tool \
src/scripts/MAKEDEV.ftape src/scripts/listtape.pl \
src/scripts/animtape src/scripts/listtape.sh \
intl/Makefile po/Makefile.in \
contrib/Makefile fttoolsbug],
[rm -f config.h
ln -s include/config.h .
echo making fttoolsbug executable
chmod +x fttoolsbug ])
|