Bug 93 - configure fails on OpenSSL detection
configure fails on OpenSSL detection
Status: RESOLVED FIXED
Product: NSD
Classification: Unclassified
Component: NSD Code
other
Sun NetBSD
: P2 normal
Assigned To: NSD team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-02-03 21:47 CET by Stephane Bortzmeyer
Modified: 2005-02-10 16:39 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Bortzmeyer 2005-02-03 21:47:55 CET
checking for SSL... found in /usr/pkg
checking for HMAC_CTX_init in -lcrypto... no
configure: error: OpenSSL found in /usr/pkg
exit: Illegal number: but
exit: Illegal number: but


This is NetBSD 2.0 on an UltraSparc. 

NetBSD's /bin/sh is ash, a stricly compliant Bourne shell, without 
any extension.

A proper M4 escape is necessary, the following code seems to work:

--- configure.ac.orig   2005-02-03 21:40:48.000000000 +0100
+++ configure.ac        2005-02-03 21:41:08.000000000 +0100
@@ -184,7 +184,7 @@
             HAVE_SSL=yes 
             LDFLAGS="$LDFLAGS -L$ssldir/lib";
             AC_CHECK_LIB(crypto, HMAC_CTX_init,, [
-                    AC_MSG_ERROR(OpenSSL found in $ssldir, but version 0.9.7 or
higher is required)
+                    AC_MSG_ERROR([OpenSSL found in $ssldir, but version 0.9.7
or higher is required])
                 ])
         fi
         AC_SUBST(HAVE_SSL)
Comment 1 Erik Rozendaal 2005-02-10 16:39:57 CET
Applied Stephane's patch.