(update_file_1): Do set_command_state (FILE, cs_not_started) only if old
[make.git] / configure.bat
blobecd747bd69ab44eb1927dd65ddfb98c4ef3ffe5c
1 @echo off\r
2 echo Configuring MAKE for go32\r
3 rem This batch file assumes a unix-type "sed" program\r
4 \r
5 update configh.dos config.h\r
6 \r
7 echo # Makefile generated by "configure.bat"> Makefile\r
8 \r
9 if exist config.sed del config.sed\r
11 echo ": try_sl                                          ">> config.sed\r
12 echo "/\\$/ {                                           ">> config.sed\r
13 echo "  N                                               ">> config.sed\r
14 echo "  s/[     ]*\\\n[         ]*/ /                   ">> config.sed\r
15 echo "  b try_sl                                        ">> config.sed\r
16 echo "}                                                 ">> config.sed\r
18 echo "s/@srcdir@/./                                     ">> config.sed\r
19 echo "s/@CC@/gcc/                                       ">> config.sed\r
20 echo "s/@CFLAGS@/-O2 -g -DHAVE_CONFIG_H/                ">> config.sed\r
21 echo "s/@LDFLAGS@//                                     ">> config.sed\r
22 echo "s/@RANLIB@/ranlib/                                ">> config.sed\r
23 echo "s/@DEFS@//                                        ">> config.sed\r
24 echo "s/@REMOTE@/stub/                                  ">> config.sed\r
25 echo "s/@ALLOCA@//                                      ">> config.sed\r
26 echo "s/@LIBS@//                                        ">> config.sed\r
27 echo "s/@LIBOBJS@//                                     ">> config.sed\r
28 echo "s/@SET_MAKE@//                                    ">> config.sed\r
29 echo "s/^Makefile *:/_Makefile:/                        ">> config.sed\r
30 echo "s/^config.h *:/_config.h:/                        ">> config.sed\r
31 echo "s/^defines *=.*$/defines =/                       ">> config.sed\r
32 echo "/mv -f make.new make/d                            ">> config.sed\r
34 echo "s/cd glob; $(MAKE)/$(MAKE) -C glob/               ">> config.sed\r
36 sed -e "s/^\"//" -e "s/\"$//" -e "s/[   ]*$//" config.sed > config2.sed\r
37 sed -f config2.sed Makefile.in >> Makefile\r
38 del config.sed\r
39 del config2.sed\r
41 cd glob\r
42 call configure\r
43 cd ..\r