summaryrefslogtreecommitdiff
path: root/scripts/preconfig
blob: b230de46628cfa7e1fae07c0045239f144d888ae (plain)
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
#!/bin/sh
#
# $Id$

makefiles=`echo ext/*/Makefile.am | sed -e 's/\.am//g'`
sed -e "s#@@EXT_MAKEFILES@@#$makefiles#" configure.in.in > configure.in.new
if ! cmp configure.in configure.in.new 2>/dev/null; then
    mv configure.in.new configure.in
else
    rm -f configure.in.new
fi

cat acconfig.h.in > acconfig.h.new
confighfiles=`echo ext/*/config.h.stub`
if test "$confighfiles" != "ext/*/config.h.stub"; then
    for file in $confighfiles; do
	cat $file >> acconfig.h.new
    done
fi
if ! cmp acconfig.h acconfig.h.new 2>/dev/null; then
    mv acconfig.h.new acconfig.h
    autoheader
else
    rm -f acconfig.h.new
fi