EOF
cat >> $CONFIG_STATUS <<\EOF
- if test ! -f wx${TOOLKIT_NAME}-config; then
+ if test ! -L wx-config; then
chmod +x wx-config
mv wx-config wx${TOOLKIT_NAME}-config
${LN_S} wx${TOOLKIT_NAME}-config wx-config
Makefile
],
[
- dnl avoid to move the file again after we had already made it a
- dnl link (moving the file to itself won't work anyhow)
- if test ! -f wx${TOOLKIT_NAME}-config; then
+ dnl don't move the file on itself - this happens when we run
+ dnl config.status which, as configure, executes these commands
+ dnl but, unlike it, doesn't create wx-config
+ if test ! -L wx-config; then
chmod +x wx-config
mv wx-config wx${TOOLKIT_NAME}-config
${LN_S} wx${TOOLKIT_NAME}-config wx-config