summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2003-12-08 12:35:59 -0800
committerTim Rice <tim@multitalents.net>2003-12-08 12:35:59 -0800
commit88368a3034f3fff742c3a4c79b873e2cb6a4c1bb (patch)
tree606b4a9bb472b5ae5474e6004bb546487976b5e5
parent3db2e4daf7333ac0b3ae90f23aa9668c7723ddfb (diff)
[configure.ac] Bug 770. Fix --without-rpath.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac38
2 files changed, 26 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index 472988cd2..1cad1660c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
120031208
2 - (tim) [configure.ac] Bug 770. Fix --without-rpath.
3
120031123 420031123
2 - (djm) [canohost.c] Move IPv4inV6 mapped address normalisation to its own 5 - (djm) [canohost.c] Move IPv4inV6 mapped address normalisation to its own
3 function and call it unconditionally 6 function and call it unconditionally
@@ -1532,4 +1535,4 @@
1532 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 1535 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
1533 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 1536 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
1534 1537
1535$Id: ChangeLog,v 1.3130 2003/11/24 02:33:34 djm Exp $ 1538$Id: ChangeLog,v 1.3131 2003/12/08 20:35:59 tim Exp $
diff --git a/configure.ac b/configure.ac
index b56d37f4d..e7249b9c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.175 2003/11/22 03:25:16 dtucker Exp $ 1# $Id: configure.ac,v 1.176 2003/12/08 20:35:59 tim Exp $
2 2
3AC_INIT 3AC_INIT
4AC_CONFIG_SRCDIR([ssh.c]) 4AC_CONFIG_SRCDIR([ssh.c])
@@ -52,6 +52,18 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
52 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" 52 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
53fi 53fi
54 54
55AC_ARG_WITH(rpath,
56 [ --without-rpath Disable auto-added -R linker paths],
57 [
58 if test "x$withval" = "xno" ; then
59 need_dash_r=""
60 fi
61 if test "x$withval" = "xyes" ; then
62 need_dash_r=1
63 fi
64 ]
65)
66
55# Check for some target-specific stuff 67# Check for some target-specific stuff
56case "$host" in 68case "$host" in
57*-*-aix*) 69*-*-aix*)
@@ -228,7 +240,9 @@ mips-sony-bsd|mips-sony-newsos4)
228 ;; 240 ;;
229*-*-netbsd*) 241*-*-netbsd*)
230 check_for_libcrypt_before=1 242 check_for_libcrypt_before=1
231 need_dash_r=1 243 if test "x$withval" != "xno" ; then
244 need_dash_r=1
245 fi
232 ;; 246 ;;
233*-*-freebsd*) 247*-*-freebsd*)
234 check_for_libcrypt_later=1 248 check_for_libcrypt_later=1
@@ -252,8 +266,12 @@ mips-sony-bsd|mips-sony-newsos4)
252 ;; 266 ;;
253*-*-solaris*) 267*-*-solaris*)
254 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 268 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
255 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" 269 if test "x$withval" = "xno" ; then
256 need_dash_r=1 270 LDFLAGS="$LDFLAGS -L/usr/local/lib"
271 else
272 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
273 need_dash_r=1
274 fi
257 AC_DEFINE(PAM_SUN_CODEBASE) 275 AC_DEFINE(PAM_SUN_CODEBASE)
258 AC_DEFINE(LOGIN_NEEDS_UTMPX) 276 AC_DEFINE(LOGIN_NEEDS_UTMPX)
259 AC_DEFINE(LOGIN_NEEDS_TERM) 277 AC_DEFINE(LOGIN_NEEDS_TERM)
@@ -537,18 +555,6 @@ AC_CHECK_FUNC(getspnam, ,
537 AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen")) 555 AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen"))
538AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME)) 556AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME))
539 557
540AC_ARG_WITH(rpath,
541 [ --without-rpath Disable auto-added -R linker paths],
542 [
543 if test "x$withval" = "xno" ; then
544 need_dash_r=""
545 fi
546 if test "x$withval" = "xyes" ; then
547 need_dash_r=1
548 fi
549 ]
550)
551
552dnl zlib is required 558dnl zlib is required
553AC_ARG_WITH(zlib, 559AC_ARG_WITH(zlib,
554 [ --with-zlib=PATH Use zlib in PATH], 560 [ --with-zlib=PATH Use zlib in PATH],