Conditionally compiling Java

2002-06-09 Thread Braden McDaniel

I'm trying to conditionally compile some Java sources (with javac) using
an Automake conditional:

JAVAROOT = $(top_builddir)/java

JAVA_FILES = MyClass1.java MyClass2.java

if WITH_JDK
noinst_JAVA = $(JAVA_FILES)
endif

EXTRA_DIST = $(JAVA_FILES)

I am having trouble when the condition is false. If JAVAROOT is defined
outside the conditional (as above), I get this error:

CLASSPATH=../../../java:../../../../java/vrml/field/../../../java:$CLASSPATH  -d 
../../../java \

/bin/sh: -d: command not found

If the JAVAROOT definition is moved inside the conditional, I get this
error:

java/vrml/Makefile.am:10: JAVAROOT was already defined in condition WITH_JDK_TRUE, 
which is implied by condition TRUE

  JAVAROOT (User, where = java/vrml/Makefile.am:10) =
  {
WITH_JDK_TRUE => $(top_builddir)/java
  }

What to do?

-- 
Braden McDaniel   e-mail: <[EMAIL PROTECTED]>
Jabber: <[EMAIL PROTECTED]>





libtool erroneously assumes -L/path to libtool library

2002-06-09 Thread Bob Friesenhahn

Using CVS libtool, it appears that when a package installs several
libraries, with some libraries depending on other libraries, the
install step for a library which depends on another library fails.
The failure is due to not supplying the required -L option to
find the already installed library.  The following is an example of
the problem:

/bin/sh ../../libtool --silent --mode=install /usr/bin/install -c  libMagick++.la 
/build/buildd/imagemagick-5.4.6/debian/imagemagick/usr/lib/libMagick++.la
libtool: install: warning: relinking `libMagick++.la'
g++ -shared -nostdlib /usr/lib/crti.o /usr/lib/gcc-lib/m68k-linux/2.95.4/crtbeginS.o  
.libs/Blob.o .libs/CoderInfo.o .libs/Color.o .libs/Drawable.o .libs/Exception.o 
.libs/Functions.o .libs/Geometry.o .libs/Image.o .libs/Montage.o .libs/Options.o 
.libs/Pixels.o .libs/STL.o .libs/Thread.o .libs/TypeMetric.o  -L/usr/X11R6/lib 
-L/usr/lib -lMagick -L/usr/lib/gcc-lib/m68k-linux/2.95.4 -lstdc++ -lm -lc -lgcc  -lc 
/usr/lib/gcc-lib/m68k-linux/2.95.4/crtendS.o /usr/lib/crtn.o  -Wl,-soname 
-Wl,libMagick++.so.5 -o .libs/libMagick++.so.5.0.46  -L/usr/X11R6/lib -L/usr/lib 
-lMagick -L/usr/lib/gcc-lib/m68k-linux/2.95.4 -lstdc++ -lm -lc -lgcc  -lc
/usr/bin/ld: cannot find -lMagick
collect2: ld returned 1 exit status
libtool: install: error: relink `libMagick++.la' with the above command before 
installing it
libtool: install: warning: remember to run `libtool --finish /usr/lib'

Libtool should know where libMagick is installed since it has access
to the libMagick.la file, however, it failed to supply the required -L
option to the linker so that the installed library is found.

Bob
==
Bob Friesenhahn
[EMAIL PROTECTED]
http://www.simplesystems.org/users/bfriesen





QUOTE FOR: #recipient# PASSWORD: jlcgh

2002-06-09 Thread vfor_division






Your
present and future can be in your control.




Debt reduction to lower
your payments now.



Life insurance to protect
the future.



Take advantage of great
mortgage rates.



- Select
a program to receive the best online quotes -



Yes! Debt
Reduction
Amount of debt:
If
yes please select$5,000-$10,000$10,000-$15,000$15,000-$20,000$20,000-$30,000$30,000-$40,000$40,000-$50,000$50,000-$75,000$75,000-$100,000over
$100,000

Yes! Life
Insurance
Select a type:
If
yes please select30-yr.
Guarenteed Premium Term30-yr.
Premium Term25-yr.
Guarenteed Premium Term25-yr.
Premium Term20-yr.
Guarenteed Premium Term20-yr.
Premium Term15-yr.
Guarenteed Premium Term15-yr.
Premium Term10-yr.
Guarenteed Premium Term10-yr.
Premium Term5-yr.
Guarenteed Premium Term1-yr.
ART (Anual renewal Term)Universal2nd
to die (survivorship insurance)Whole
Life

Yes! Mortgages
Mortgage Type:
If
yes please selectRefinanceRefinance-cash
out2nd mortgageObtain
new mortgage








Email #recipient# has been previously verified.
If this message has come to you in error, click
here to stop future mailings.


 
 



jdnypwnceptypmifnqlscxtvjrl