test/configure

changeset 7
686991ae6e2f
parent 6
d4363f69fd97
child 8
82cd9f1d94cb
equal deleted inserted replaced
6:d4363f69fd97 7:686991ae6e2f
1 #!/bin/sh 1 #!/bin/sh
2 2
3 PREFIX=/usr 3 HOST=xxx
4 INSTALL_DIR=yyy
5 PREFIX=`pwd`
6
4 EPREFIX=$PREFIX 7 EPREFIX=$PREFIX
5 8
6 BINDIR= 9 BINDIR=
7 SBINDIR= 10 SBINDIR=
8 LIBDIR= 11 LIBDIR=
106 fi 109 fi
107 if [ -z $SBINDIR ]; then 110 if [ -z $SBINDIR ]; then
108 SBINDIR=$EPREFIX/sbin 111 SBINDIR=$EPREFIX/sbin
109 fi 112 fi
110 if [ -z $LIBDIR ]; then 113 if [ -z $LIBDIR ]; then
111 LIBDIRDIR=$EPREFIX/lib 114 LIBDIR=$EPREFIX/lib
112 fi 115 fi
113 if [ -z $LIBEXEC ]; then 116 if [ -z $LIBEXEC ]; then
114 LIBExECDIR=$EPREFIX/libexec 117 LIBEXECDIR=$EPREFIX/libexec
115 fi 118 fi
116 if [ -z $DATADIR ]; then 119 if [ -z $DATADIR ]; then
117 DATADIR=$PREFIX/share 120 DATADIR=$PREFIX/share
118 fi 121 fi
119 if [ -z $SYSCONFDIR]; then 122 if [ -z $SYSCONFDIR]; then
187 # generate config.mk and config.h 190 # generate config.mk and config.h
188 cat > $TEMP_DIR/config.mk << __EOF__ 191 cat > $TEMP_DIR/config.mk << __EOF__
189 # 192 #
190 # config.mk generated by configure 193 # config.mk generated by configure
191 # 194 #
195
196 # general vars
197 HOST=$HOST
198 INSTALL_DIR=$INSTALL_DIR
199 PREFIX=$PREFIX
200
201 EPREFIX=$EPREFIX
202
203 BINDIR=$BINDIR
204 SBINDIR=$SBINDIR
205 LIBDIR=$LIBDIR
206 LIBEXECDIR=$LIBEXECDIR
207 DATADIR=$DATADIR
208 SYSCONFDIR=$SYSCONFDIR
209 SHAREDSTATEDIR=$SHAREDSTATEDIR
210 LOCALSTATEDIR=$LOCALSTATEDIR
211 INCLUDEDIR=$INCLUDEDIR
212 INFODIR=$INFODIR
213 MANDIR=$MANDIR
214
192 __EOF__ 215 __EOF__
193 216
194 echo > $TEMP_DIR/make.mk 217 echo > $TEMP_DIR/make.mk
195 218
196 ENV_CFLAGS=$CFLAGS 219 ENV_CFLAGS=$CFLAGS

mercurial