Commit f290240cd54654eca40efcd09d5391a64c72e607

Ramiro Polla 2012-10-10T22:14:56

lowercase PREFIX variables

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"