On Sat, 2004-07-17 at 04:58, Grzegorz Jakacki wrote:
> Hi,
>
> Based on recent discussion about libtool and libltdl I suggest to:
>
> * add 'libtoolize' to 'bootstrap'
No, 'bootstrap' check for
$SHELL $EXECDIR/check-autotools \
--automake=1.6.2 \
--autoconf=2.53 \
--libtool=1.5.2 \
|| exit 1
'configure' will check if compiling works.
we need to give a error message "compiling from source
require functional libtool package" or investigate why your
recent version of libtool is rejected by configure script.
we need to check that install from binary require
libtool-libs, that is, 'occ' is dynamically link to libltdl.so .
developer may require this functionality, that is
$ libtoolize --copy --automake --ltdl
before running './bootstrap',
but I expect they know what they are doing.
For platform using cygwin, we must ensure that we still have not
hardcoded '-lltdl' option to link command,
I suspect it is .
Even without previous problem with cygwin platform,
developer and tester may require this functionality,
that is, no hardcoded -lltdl .
For example, we want to verify that opencxx still perform as
expected on next available libtool version 1.9.0 .
In that case, we want 'make check' to work.
> * remove bundled libltdl, rely on system-wide libltdl
> (or cygltdl.dll).
Yes.
> and add version check to 'configure' to make sure that
> recent enough libltdl's version is installed.
We are already doing this, see above check-autotools.
>
> Opinions/suggestions are welcome.
on cygwin Grigorenko Dmitriy has provided following information:
My opinion is that the configure script must stop right there.
Fix this.
configure:2886: checking for main in -lltdl
configure:2911: gcc -o conftest.exe -g -O2 conftest.c -lltdl >&5
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/
../../../../i686-pc-cygwin/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
configure:2914: $? = 1
we need information, where are the two following macros,
under linux it is
/usr/share/aclocal/libtool.m4
/usr/share/aclocal/ltdl.m4
The ltdl.m4 macro teach to the configure script what to do,
Why does it do a bad job ?
Questions,
Why the configure script want -lltdl ?
If such thing exist, what is the path ?
Why this path is not on the default ?
try gcc option
-print-libgcc-file-name Display the name of the compiler's
companion library
-print-file-name=<lib> Display the full path to library <lib>
Can you list files from libtool package ?
My understanding is that we want to link with 'cygltdl-3.dll',
Can you show a successfull compile
and link against 'cygltdl-3.dll' ?
> BR
> Grzegorz
|