[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Noobie question about building libraries: catch 22
From: |
Douglas Phillipson |
Subject: |
Noobie question about building libraries: catch 22 |
Date: |
Tue, 18 Jul 2006 14:23:08 -0700 |
User-agent: |
Thunderbird 1.5 (X11/20060119) |
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
- Noobie question about building libraries: catch 22,
Douglas Phillipson <=