On 29 Mar 2001 11:17:32 -0500, Jeff Trawick wrote:
>"Brian Havard" <brianh@kheldar.apana.org.au> writes:
>
>> On 29 Mar 2001 11:04:02 -0500, Jeff Trawick wrote:
>>
>> >The way I do this in my libtool emulator is to provide an
>> >AC_PROG_LIBTOOL macro in my libtool.m4 to set up the LIBTOOL
>> >variable. (I compile my .c at make install time for libtool).
>> >
>> >Couldn't/shouldn't hide this in an AC_PROG_LIBTOOL macro?
>>
>> Sounds good, my autoconf knowledge isn't very advanced though. I'll give it
>> a try on the next round.
>
>Look in www.apache.org/~trawick/libtool.tgz... The included
>libtool.m4 has *extremely* simple versions of these macros.
Ok, do you mean something like this?
Index: configure.in
===================================================================
RCS file: /home/cvs/apr/configure.in,v
retrieving revision 1.263
diff -u -r1.263 configure.in
--- configure.in 2001/03/29 15:50:29 1.263
+++ configure.in 2001/03/30 01:23:04
@@ -79,18 +79,7 @@
dnl prep libtool
dnl
echo "performing libtool configuration..."
-
-case "$host_alias" in
-*os2*)
- # Use a custom made libtool replacement
- echo "using aplibtool"
- LIBTOOL="$srcdir/build/aplibtool"
- gcc -o $LIBTOOL.exe $LIBTOOL.c
- ;;
-*)
- AC_PROG_LIBTOOL
- ;;
-esac
+APR_PROG_LIBTOOL
dnl #----------------------------- Checks for compiler flags
nl='
Index: build/apr_common.m4
===================================================================
RCS file: /home/cvs/apr/build/apr_common.m4,v
retrieving revision 1.12
diff -u -r1.12 apr_common.m4
--- build/apr_common.m4 2001/03/21 15:01:53 1.12
+++ build/apr_common.m4 2001/03/30 01:23:06
@@ -401,3 +401,19 @@
])
+dnl APR_PROG_LIBTOOL
+dnl Sets up to use aplibtool on the platforms it supports (just OS/2 for now)
+dnl otherwise calls AC_PROC_LIBTOOL to set up the real libtool
+AC_DEFUN(APR_PROG_LIBTOOL,[
+case "$host_alias" in
+*os2*)
+ # Use a custom made libtool replacement
+ echo "using aplibtool"
+ LIBTOOL="$srcdir/build/aplibtool"
+ gcc -o $LIBTOOL.exe $LIBTOOL.c
+ ;;
+*)
+ AC_PROG_LIBTOOL
+ ;;
+esac
+])
--
______________________________________________________________________________
| Brian Havard | "He is not the messiah! |
| brianh@kheldar.apana.org.au | He's a very naughty boy!" - Life of Brian |
------------------------------------------------------------------------------
|