"John P. Looney" said:
> 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)..
OK -- I'll comment yr comments ;)
heck the autoconf documentation at gnu.org as well.
> # Seems to check for a --with-authpam arg.
> [ --without-authpam Do not include the authpam module ],
I think so.
> else # IF we have a --with-authpam, check for these headers (how?):
> AC_CHECK_HEADERS(security/pam_appl.h Pam/pam_appl.h)
Configure builds a .c file to see if they exist.
> LIBDL="" # Does this check libdl for dlopen() ?
nope, it sets a value that'll be be substituted into the makefile by line
> AC_CHECK_LIB(dl, dlopen, [ LIBDL="-ldl" ])
> # Check libpam for pam_start()
> AC_CHECK_LIB(pam, pam_start,
> LIBS="-lpam $LIBDL $LIBS"
> # Why check again ?
To ensure that the libpam you're using is the right kind of libpam, and
not just the library which supplies pam_proper_alimentary_mechanisms
instead of authentication mechanisms or whatever.
> AC_SUBST(LIBDL) # Is this adding those flags to the LIBS line or something ?
Yes -- it means if LIBDL is mentioned in the Makefile.in or config.h.in
files it'll be substituted in with the value set above. This is line (a).
Ditto. This one would be for config.h.in.
> AM_CONDITIONAL(HAVE_PAM, test "$HAVE_PAM" = 1) # What these mean ?
dunno, that's a new one since I wrote an autoconf script...
> if test "$HAVE_PAM" = 1
> then # I get lost here...
> STATIC_LIST="$STATIC_LIST AUTHSTATIC(\"authpam\", auth_pam,
> LIBAUTH="$LIBAUTH libauth-authpam.a"
Sorry mate, I'm lost on this one. :(
> [ --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
> required for FreeBSD 3.3],
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!