Hi,

I have SG, PLIB and OSG installed in the place of my choice, and found
terragear-cs/configure.ac did not take account of --with-plib=PATH and
--with-osg=PATH, so added these...

Also found it was later clobbering the EXTRA_DIRS variable anyway... so
was tossing away the --with-simgear=PATH

Attached is a small patch to fix this. I assume this would also apply to
CVS terragear?

In fact what is the difference between TG CVS and git terragear-cs, if
any?

Geoff.
OS: Ubuntu 64-bit - 8.04.2 

--- tg-copy/configure.ac	2009-02-12 17:09:35.000000000 +0100
+++ terragear-cs/configure.ac	2009-02-12 17:35:34.000000000 +0100
@@ -26,6 +26,22 @@
     EXTRA_DIRS="${EXTRA_DIRS} $with_simgear"
 fi
 
+# specify the plib location
+AC_ARG_WITH(plib, [  --with-plib=PREFIX      Specify the prefix path to plib])
+
+if test "x$with_plib" != "x" ; then
+    echo "plib prefix is $with_plib"
+    EXTRA_DIRS="${EXTRA_DIRS} $with_plib"
+fi
+
+# specify the osg location
+AC_ARG_WITH(osg, [  --with-osg=PREFIX       Specify the prefix path to osg])
+
+if test "x$with_osg" != "x" ; then
+    echo "osg prefix is $with_osg"
+    EXTRA_DIRS="${EXTRA_DIRS} $with_osg"
+fi
+
 dnl set the $host variable based on local machine/os
 AC_CANONICAL_HOST
 
@@ -142,7 +158,8 @@
 AC_CHECK_HEADER(windows.h)
 
 dnl extra library and include directories
-EXTRA_DIRS="/usr/local/plib /usr/X11R6"
+# EXTRA_DIRS="/usr/local/plib /usr/X11R6"
+EXTRA_DIRS="$EXTRA_DIRS /usr/X11R6"
 
 if test -d /opt/X11R6 ; then
      EXTRA_DIRS="$EXTRA_DIRS /opt/X11R6"
------------------------------------------------------------------------------
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to