LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Configure

[ILUG] Configure

John Allen john.allen at oc2.com
Wed Jan 26 16:28:31 GMT 2000


"John P. Looney" wrote:

>  I'm trying to modify the configure script of a package that I've made
> some modifications too. It now requires some extra libraries & header
> files. The package in question is Courier IMAP, and once I understand the
> other bits of the configure script, I'm sure I can work it out.
>
>  Here's an excerpt from a part of the script, similar to what I want to
> add. Can someone give a line by line explaination (I've tryed, and I'm not
> confident I'm right)..
>
> dnl #########################################################################
>
> dnl Prepare authpam module if libpam is available.
>
> dnl #########################################################################
>
> # Seems to check for a --with-authpam arg.
> AC_ARG_WITH(authpam,
> [ --without-authpam                  Do not include the authpam module ],
>     doauthpam="$withval")
>
> if test "$doauthpam" = "no"
> then
>     HAVE_PAM=0
>     LIBDL=""
> else # IF we have a --with-authpam, check for these headers (how?):
>     AC_CHECK_HEADERS(security/pam_appl.h Pam/pam_appl.h)
>
>     saveLIBS="$LIBS"

Save the current LIBS env var

>
>     LIBDL=""   # Does this check libdl for dlopen() ?
>     AC_CHECK_LIB(dl, dlopen, [ LIBDL="-ldl" ])

Check if we have a libdl with a dlopen function

>    LIBS="$saveLIBS"

Restore the LIBS env var



>
>     # Check libpam for pam_start()
>     AC_CHECK_LIB(pam, pam_start,
>         HAVE_PAM=1
>         LIBS="-lpam $LIBDL $LIBS"

Looking for a libpam that has pam_start

>
>     # Why check again ?
>         AC_CHECK_FUNCS(pam_setcred),
>
>         HAVE_PAM=0,
>         $LIBDL)
>     LIBS="$saveLIBS"
> fi

Looking for a libpam that has pam_setcred


>
> AC_SUBST(LIBDL) # Is this adding those flags to the LIBS line or something ?

Substitue the variable LIBDL (in Makefile.am) with a value (default the current
value of LIBDL)

>
> AC_SUBST(HAVE_PAM)
>

Substitue the variable LIBDL (in Makefile.am) with a value (default the current
value of LIBDL)

> AM_CONDITIONAL(HAVE_PAM, test "$HAVE_PAM" = 1)   # What these mean ?

#defines HAVE_PAM in your config.h if $HAVE_PAM = 1

>
>
> AUTHPAM=""
> if test "$HAVE_PAM" = 1
> then # I get lost here...
>     AUTHPAM=authpam
>     STATIC_LIST="$STATIC_LIST AUTHSTATIC(\"authpam\", auth_pam,
> auth_pam_pre)"
>     LIBAUTH="$LIBAUTH libauth-authpam.a"
> fi
>

Dunno

>
> AC_ARG_WITH(authpam-libraries,
> [ --with-authpam-libraries="libs"    Link 'libs' with authpam, this may be
>                                     required for FreeBSD 3.3],
>     authpamcrypt="$withval")
>
> AUTHPAMCRYPT="$authpamcrypt"
> AC_SUBST(AUTHPAMCRYPT)
>
> Kate
>
> --
> Microsoft. The best reason in the world to drink beer.
> http://www.redbrick.dcu.ie/~valen
>
> --
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie

--
===============================================================================
John Allen,                                    Email:  john.allen at orbiscard.com
Orbis Payment Technology Ltd,                  Phone:  +353-1-2945111
3 Sandyford Park,                              Mobile: +353-86-2315986
Sandyford Industrial Estate,                   Fax:    +353-1-2945119
Dublin 18.
===============================================================================







More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell