I'm wanting to build a library as part of my application, but since
configure wants to detect my library with the AC_CHECK_LIB I have in the
configure.ac, but can't because it's not built yet, how do I do this?
Here is my configure.ac:
AC_INIT(src/SysScheduler.c)
AM_INIT_AUTOMAKE(sScheduler,0.3)
AM_PROG_LIBTOOL
AC_PROG_CC
AC_CHECK_LIB(shmutils,shmAttachByName)
AC_PROG_INSTALL
AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(src/Makefile)
AC_OUTPUT
I know the order of these lines must be important and I'm not sure of my
ordering.
The library can't be detected by configure because it's not built yet,
so the "make" fails as soon as it encounters a reference to a library
routine it can't resolve. How does one build a library in the same
project as an application? I've looked at the docs for libtool but
still don't quite understand what I need to do.
I greatly appreciate anyones help.
Thanks
Doug P
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf