LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2005, 06:48 AM   #1
zerointeger
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Rep: Reputation: 0
linking against libraires in configure.in


I need some more help...

I need to know the command for the configure.in shell script that will link against existing libraries once they have been found during the ./configure process.

Here is what I have thus far:

configure.in

Code:
AC_ARG_ENABLE(ldap,[
Optional LDAP Support: *NEW
 --enable-ldap           Enable ldap support for non-local users
                         (requires OpenLDAP libraries @ openldap.org
                         and configuration of the /etc/pam_krb5+ldap.conf file.)],
                         [enable_ldap="$enableval"], [enable_ldap="no"])

if test "$enable_ldap" = "yes"; then
   AC_DEFINE(_LIBLDAP,1,[Define if you require OpenLDAP support.])
   AC_CHECK_HEADER(ldap.h, :, AC_MSG_ERROR(ldap.h not found! Please install the OpenLDAP libraries from openldap.org.))

   _LIBLDAP=yes
fi

AC_CONFIG_FILES(Makefile)
AC_OUTPUT
 
Old 10-07-2005, 11:17 AM   #2
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
There is a good autoconf reference available at:
http://www.gnu.org/software/autoconf/manual/index.html

The macro you are looking for is AC_CHECK_LIB
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
liberror.h linking gavinbeatty Programming 11 08-07-2005 07:12 AM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM
Linking LS to 'L' uveraser Linux - General 2 05-20-2004 10:24 AM
Linking to programs Ben Sytko Linux - Newbie 3 02-26-2003 06:28 PM
C++ linking? ugenn Programming 5 05-14-2002 01:33 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration