Vanilla Netrek Server Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[VANILLA-L:1247] Re: [VANILLA-L:1245] autoconf: Linux requires -lcrypt, how to fix?
- To: vanilla-l@us.netrek.org
- Subject: [VANILLA-L:1247] Re: [VANILLA-L:1245] autoconf: Linux requires -lcrypt, how to fix?
- From: Bob Tanner <tanner@real-time.com>
- Date: Wed, 27 Jan 1999 01:27:47 -0600
- In-Reply-To: <36AEA59B.F50368C0@stl.dec.com>; from James Cameron on Wed, Jan 27, 1999 at 12:35:23AM -0500
- References: <36AEA59B.F50368C0@stl.dec.com>
- Reply-To: vanilla-l@us.netrek.org
- Sender: owner-vanilla-l
Quoting James Cameron (cameron@stl.dec.com):
> On linking ntserv one needs to add -lcrypt to the command.
> How do I change configure.in so add this check?
> Any volunteers?
>
- Macro: AC_CHECK_LIB (LIBRARY, FUNCTION [, ACTION-IF-FOUND [,
ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]])
Try to ensure that C function FUNCTION is available by checking
whether a test C program can be linked with the library LIBRARY to
get the function. LIBRARY is the base name of the library; e.g.,
to check for `-lmp', use `mp' as the LIBRARY argument.
ACTION-IF-FOUND is a list of shell commands to run if the link
with the library succeeds; ACTION-IF-NOT-FOUND is a list of shell
commands to run if the link fails. If ACTION-IF-FOUND and
ACTION-IF-NOT-FOUND are not specified, the default action is to
add `-lLIBRARY' to `LIBS' and define `HAVE_LIBLIBRARY' (in all
capitals).
AC_CHECK_LIB(crypt, crypt, [LIBS="$LIBS -lcrypt"]) should do it
--
Bob Tanner <tanner@real-time.com> | Phone : (612)943-8700
http://www.real-time.com | Fax : (612)943-8500
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9
+
++ Vanilla-l Mailing List ++
To unsubscribe: send "unsubscribe vanilla-l" to majordomo@real-time.com
For more information: http://archives.real-time.com