Skip to content

Commit 7d9c4da

Browse files
committed
generate acconfig.h from acconfig.h.in and ext/*/config.h.stub
1 parent dd03a7a commit 7d9c4da

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed
File renamed without changes.

scripts/preconfig

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,23 @@
33
# $Id$
44

55
makefiles=`echo ext/*/Makefile.am | sed -e 's/\.am//g'`
6-
rm -f configure.in
7-
sed -e "s#@@EXT_MAKEFILES@@#$makefiles#" configure.in.in > configure.in
6+
sed -e "s#@@EXT_MAKEFILES@@#$makefiles#" configure.in.in > configure.in.new
7+
if ! cmp configure.in configure.in.new 2>/dev/null; then
8+
mv configure.in.new configure.in
9+
else
10+
rm -f configure.in.new
11+
fi
12+
13+
cat acconfig.h.in > acconfig.h.new
14+
confighfiles=`echo ext/*/config.h.stub`
15+
if test "$confighfiles" != "ext/*/config.h.stub"; then
16+
for file in $confighfiles; do
17+
cat $file >> acconfig.h.new
18+
done
19+
fi
20+
if ! cmp acconfig.h acconfig.h.new 2>/dev/null; then
21+
mv acconfig.h.new acconfig.h
22+
autoheader
23+
else
24+
rm -f acconfig.h.new
25+
fi

0 commit comments

Comments
 (0)