lowercase PREFIX variables
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 66 67 68 69 70 71 72 73 74
diff --git a/Makefile b/Makefile
index b64ad0a..e8cb005 100644
--- a/Makefile
+++ b/Makefile
@@ -31,9 +31,9 @@ libdl.dll: dlfcn.o
$(LIBCMD) /machine:i386 /def:libdl.def
shared-install:
- mkdir -p $(DESTDIR)$(PREFIX)/bin
- cp libdl.dll $(DESTDIR)$(PREFIX)/bin
- $(STRIP) $(DESTDIR)$(PREFIX)/bin/libdl.dll
+ mkdir -p $(DESTDIR)$(prefix)/bin
+ cp libdl.dll $(DESTDIR)$(prefix)/bin
+ $(STRIP) $(DESTDIR)$(prefix)/bin/libdl.dll
mkdir -p $(DESTDIR)$(libdir)
cp libdl.dll.a $(DESTDIR)$(libdir)
mkdir -p $(DESTDIR)$(incdir)
diff --git a/configure b/configure
index 3ae2f88..0ffabb3 100755
--- a/configure
+++ b/configure
@@ -34,9 +34,9 @@ show_help(){
echo "All \"enable\" options have \"disable\" counterparts"
echo
echo " --help print this message"
- echo " --prefix=PREFIX install in PREFIX [$PREFIX]"
- echo " --libdir=DIR install libs in DIR [$PREFIX/lib]"
- echo " --incdir=DIR install includes in DIR [$PREFIX/include]"
+ echo " --prefix=PREFIX install in PREFIX [$prefix]"
+ echo " --libdir=DIR install libs in DIR [$prefix/lib]"
+ echo " --incdir=DIR install includes in DIR [$prefix/include]"
echo " --enable-shared build shared libraries [no]"
echo " --enable-static build static libraries [yes]"
echo " --enable-msvc create msvc-compatible import lib [auto]"
@@ -53,9 +53,9 @@ die_unknown(){
exit 1
}
-PREFIX="/mingw"
-libdir="${PREFIX}/lib"
-incdir="${PREFIX}/include"
+prefix="/mingw"
+libdir="${prefix}/lib"
+incdir="${prefix}/include"
ar="ar"
cc_default="gcc"
ranlib="ranlib"
@@ -86,7 +86,7 @@ for opt do
show_help
;;
--prefix=*)
- PREFIX="$optval"
+ prefix="$optval"
;;
--libdir=*)
libdir="$optval"
@@ -165,7 +165,7 @@ fi
enabled msvc && libcmd="lib" || libcmd="echo ignoring lib"
echo "# Automatically generated by configure" > config.mak
-echo "PREFIX=$PREFIX" >> config.mak
+echo "prefix=$prefix" >> config.mak
echo "libdir=$libdir" >> config.mak
echo "incdir=$incdir" >> config.mak
echo "AR=$ar" >> config.mak
@@ -177,7 +177,7 @@ echo "BUILD_STATIC=$static" >> config.mak
echo "BUILD_MSVC=$msvc" >> config.mak
echo "LIBCMD=$libcmd" >> config.mak
-echo "prefix: $PREFIX"
+echo "prefix: $prefix"
echo "libdir: $libdir"
echo "incdir: $incdir"
echo "ar: $ar"