File: autogen.sh

package info (click to toggle)
netpanzer 0.8+svn20060319-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,984 kB
  • ctags: 6,846
  • sloc: cpp: 44,552; sh: 2,549; makefile: 55
file content (21 lines) | stat: -rwxr-xr-x 518 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

# Correct working directory?
if test ! -f configure.ac ; then
  echo "*** Please invoke this script from directory containing configure.ac."
  exit 1
fi

MACRODIR=mk/autoconf
aclocal -I $MACRODIR

# generate a Jamconfig.in
autoconf --trace=AC_SUBST \
  | sed -e 's/configure.ac:[0-9]*:AC_SUBST:\([^:]*\).*/\1 ?= "@\1@" ;/g' \
  > Jamconfig.in
# seems autoconf --trace misses some things :-/
echo 'INSTALL ?= "@INSTALL@" ;' >> Jamconfig.in
echo 'JAMCONFIG_READ = yes ;' >> Jamconfig.in

autoheader
autoconf