Title: Bug in Autoconf!?

Hi

Perhaps I've found a bug.
I've a Debian 2.2 upgradet to unstable on a i386 machine. Autoconf  2.13.

While configuring midgard-php4 (a php4 module) i've got the following problem:

[..]
-----
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... configure: error: installation or configuration problem: compiler cannot create executables.

-----

config.log shows:

[..]
-----
configure:2568: checking for executable suffix
configure:2578: gcc -o conftest -g -O2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include   conftest.c -l  -L/usr/lib -lglib 1>&5

/usr/bin/ld: cannot find -l--library=glib
collect2: ld returned 1 exit status
------

The problem is -l -L/usr/lib -lglib. The first -l is wrong. This -l comes from the following
line in configure:

--
 case "" in              
 c|c_r|pthread*) ;;
 *)


  LIBS="-l $LIBS"    


  ;;
  esac                 
--

Other configure scripts are working perfect.
The midgard developper think the failure is generated by autoconf.

Thanks

Francois

Reply via email to