p4raw-id: //depot/perl@30327
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
-if ! test -f config.h; then
+if test -f config_h.SH && ! test -f config.h; then
. ./config_h.SH
+ CONFIG_H=already-done
fi
warn=''
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
-echo "Extracting $CONFIG_H (with variable substitutions)"
-sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
+case "$CONFIG_H" in
+already-done) echo "Not re-extracting config.h" ;;
+*)
+ echo "Extracting $CONFIG_H (with variable substitutions)"
+ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
/*
* This file was produced by running the config_h.SH script, which
* gets its values from $CONFIG_SH, which is generally produced by
#endif
!GROK!THIS!
+ ;;
+esac