]> err.no Git - sope/commitdiff
reuse preconfigured internal gstep-make
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 8 Aug 2005 13:47:18 +0000 (13:47 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 8 Aug 2005 13:47:18 +0000 (13:47 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1007 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

configure

index cbbd35f3c1c2b2f99bba59886f03eaeb9e3b4376..edfc3d3b15316e19ede5a635fcbb8be8fb0b151d 100755 (executable)
--- a/configure
+++ b/configure
@@ -26,6 +26,7 @@ DARG_IS_FHS=1
 SOPE_SRCDIR="$PWD" # TODO: rather use location of configure (using basename)
 NGSTREAMS_DIR="${SOPE_SRCDIR}/sope-core/NGStreams"
 GSTEPMAKE_SRCDIR="${SOPE_SRCDIR}/gnustep-make"
+INTERNAL_MAKEDIR="${SOPE_SRCDIR}/.gsmake"
 
 # TODO: add pg_config, mysql_config etc!
 LINK_SYSLIBDIRS="-L/usr/local/pgsql/lib -L/usr/local/lib -L/usr/lib"
@@ -108,9 +109,16 @@ _ACEOFWARN
 }
 
 function setupInternalGSMake() {
-  if test -d gnustep-make; then
+  if test -f ${INTERNAL_MAKEDIR}/Library/Makefiles/GNUstep.sh; then
+    ARG_GSMAKE="${INTERNAL_MAKEDIR}/Library/Makefiles/"
+    ARG_IS_FHS=1
+    DARG_IS_FHS=1
+    ARG_WITH_GNUSTEP=0
+    if test "x$ARG_PREFIX" = "x"; then
+      ARG_PREFIX="/usr/local/"
+    fi
+  elif test -d gnustep-make; then
     SETUP_COMBO="gnu-fd-nil"
-    SETUP_MAKEDIR="${SOPE_SRCDIR}/.gsmake"
     SETUP_LOGNAME="config-gstepmake.log"
     if test -d /Developer/Applications/Xcode.app; then
       # rather weird OSX test, right? ;->
@@ -122,17 +130,17 @@ function setupInternalGSMake() {
 
     cd "$GSTEPMAKE_SRCDIR"
     ./configure >${pregsmdir}/${SETUP_LOGNAME} \
-      --prefix="${SETUP_MAKEDIR}" \
+      --prefix="${INTERNAL_MAKEDIR}" \
       --without-system-root \
-      --with-network-root="${SETUP_MAKEDIR}" \
-      --with-local-root="${SETUP_MAKEDIR}" \
-      --with-user-root="${SETUP_MAKEDIR}" \
+      --with-network-root="${INTERNAL_MAKEDIR}" \
+      --with-local-root="${INTERNAL_MAKEDIR}" \
+      --with-user-root="${INTERNAL_MAKEDIR}" \
       --with-library-combo="${SETUP_COMBO}"
 
     echo -n ".. install .."
     make install >>${pregsmdir}/${SETUP_LOGNAME}
     
-    ARG_GSMAKE="${SETUP_MAKEDIR}/Library/Makefiles/"
+    ARG_GSMAKE="${INTERNAL_MAKEDIR}/Library/Makefiles/"
     ARG_IS_FHS=1
     DARG_IS_FHS=1
     ARG_WITH_GNUSTEP=0