blob: effd0c8b64c33a4d9b4cfce32f22075cb3606a19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#! /bin/sh
# GNU configure-like front end to metaconfig's Configure.
#
# Written by Andy Dougherty (doughera@lafcol.lafayette.edu)
# and matthew green (mrg@mame.mu.oz.au)
#
# public domain.
opts=''
for f in $*
do
case $f in
--help)
echo This is GNU configure-like front end for a MetaConfig Configure.
echo It understands the follow GNU configure options:
echo " --prefix=PREFIX"
echo " --help"
echo ""
echo And these environment variables:
echo " CFLAGS"
echo " CC"
echo " DEFS"
echo 0
;;
--prefix=*)
shift
arg=`echo $f | sed 's/--prefix=/-Dprefix=/'`
opts="$opts $arg"
;;
--*)
opt=`echo $f | sed 's/=.*//'`
echo This GNU configure front end does not understand $opt
exit 1
;;
*)
shift
opts="$opts $f"
;;
esac
done
case "$CC" in
'') ;;
*) opts="$opts -Dcc='$CC'" ;;
esac
# join DEFS and CFLAGS together.
ccflags=''
if test "x$DEFS" != x
then
ccflags=$DEFS
fi
if test "x$CFLAGS" != x
then
ccflags="$ccflags $CFLAGS"
fi
if test "x$ccflags" != x
then
opts="$opts -Dccflags='$ccflags'"
fi
echo ./Configure "$opts" -des
./Configure "$opts" -des
|