6 echo -n 'Build Wine as emulator or library (E/L) [E]? '
8 if [ "$input" = 'l' -o "$input" = 'L' ]
10 WINELIB
='#define WINELIB -DWINELIB'
11 ALLDEFINES
="$ALLDEFINES -DWINELIB"
16 echo -n 'Short filenames (Y/N) [N]? '
18 if [ "$input" = 'y' -o "$input" = 'Y' ]
20 SHORTNAMES
='#define ShortNames -DSHORTNAMES'
21 ALLDEFINES
="$ALLDEFINES -DSHORTNAMES"
26 echo -n 'Global configfile name [/usr/local/etc/wine.conf]? '
30 WINE_INI_GLOBAL
='#define WINE_INI_GLOBAL "/usr/local/etc/wine.conf"'
32 WINE_INI_GLOBAL
='#define WINE_INI_GLOBAL "'$input'"'
35 if [ "`(domainname)`" = 'amscons.com' ]
37 echo -n 'New build program (Y/N) [N]? '
39 if [ "$input" = 'y' -o "$input" = 'Y' ]
41 NEWBUILD
='#define NewBuild -DNEWBUILD'
42 ALLDEFINES
="$ALLDEFINES -DNEWBUILD"
50 echo '/* autoconf.h generated automatically. Run Configure. */' > autoconf.h
51 echo $WINELIB >> autoconf.h
52 echo $SHORTNAMES >> autoconf.h
53 echo $NEWBUILD >> autoconf.h
54 echo $WINE_INI_GLOBAL >> autoconf.h
55 echo "#define AutoDefines $ALLDEFINES" >> autoconf.h