1999-04-17 00:37:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
1999-04-24 22:16:06 +00:00
|
|
|
disclaimer="Do NOT edit - this file is generated by preconfig"
|
|
|
|
|
|
|
|
# security check - simply overwriting existing files could be harmful
|
1999-09-29 15:17:02 +00:00
|
|
|
if test -w acconfig.h.new ; then
|
|
|
|
echo "Please remove acconfig.h.new and rerun this command"
|
1999-04-24 22:16:06 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "/* $disclaimer */" > acconfig.h.new
|
|
|
|
cat acconfig.h.in >> acconfig.h.new
|
1999-04-19 17:19:37 +00:00
|
|
|
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
|
1999-09-27 16:34:28 +00:00
|
|
|
confighfiles=`echo sapi/*/config.h.stub`
|
|
|
|
if test "$confighfiles" != "sapi/*/config.h.stub"; then
|
|
|
|
for file in $confighfiles; do
|
|
|
|
cat $file >> acconfig.h.new
|
|
|
|
done
|
|
|
|
fi
|
1999-04-24 21:21:35 +00:00
|
|
|
cmp acconfig.h acconfig.h.new > /dev/null 2>&1
|
|
|
|
if test $? -ne 0 ; then
|
1999-04-19 17:19:37 +00:00
|
|
|
mv acconfig.h.new acconfig.h
|
|
|
|
else
|
|
|
|
rm -f acconfig.h.new
|
|
|
|
fi
|