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
|
# Copyright (C) 1999-2000 Open Source Telecom Corporation.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
AC_INIT(reconfig)
VERSION="2.5.9"
REQUIRES="1.0.0"
LT_RELEASE="0.6"
LT_VERSION="3:0"
AC_CONFIG_AUX_DIR(config)
AC_CANONICAL_SYSTEM
AC_PROG_CXX
AC_PROG_CXXCPP
AM_PROG_LIBTOOL
AM_INIT_AUTOMAKE(ccscript,[$VERSION])
AM_CONFIG_HEADER(src/config.h)
OST_PROG_COMMON
OST_PROG_LIBVER
OST_PROG_LIBRARY(CCXX,[$LT_VERSION])
OST_AUTOMAKE_MODE
OST_MAINTAINER_MODE
OST_CCXX2_VERSION([$REQUIRES],)
OST_CCXX2_DYNLOADER
# if pre 1.0.10 Common C++, we must do a default for this...
if test -z "$MODULE_FLAGS" ; then
MODULE_FLAGS="-module -shared"
AC_SUBST(MODULE_FLAGS)
fi
AM_CONDITIONAL(MODULES, test $ost_cv_dynloader = yes)
KDOC_DIR="\$(top_srcdir)/doc"
AC_SUBST(LT_RELEASE)
AC_SUBST(KDOC_DIR)
AC_CHECK_HEADER(regex.h,
CXXFLAGS="$CXXFLAGS -DUSE_REGEX")
WINVERSION="`echo $VERSION | sed 's/\./,/g'`,0"
AC_SUBST(WINVERSION)
AC_OUTPUT(src/Makefile config/Makefile m4/Makefile doc/Makefile win32/Makefile
Makefile pkginfo ccscript.spec freebsd/Makefile freebsd/pkg-plist
win32/ccscript.rc)
if test ! -f doc/html/index.html ; then exit 0 ; fi
ls doc/man3/*.3cc | sed -e 's:^doc/man3/:man/man3/:' | grep -v loader >>freebsd/pkg-plist
#ls doc/html | sed -e 's:^:share/doc/ccscript/:' | grep -v loader>>freebsd/pkg-plist
|