source: trunk/dports/sysutils/poldek/files/patch-utillibs.diff @ 28386

Last change on this file since 28386 was 28386, checked in by afb@…, 13 years ago

new port: yet another rpm frontend

File size: 1.8 KB
RevLine 
[28386]1--- ./configure.in.orig 2007-07-03 00:05:52.000000000 +0200
2+++ ./configure.in      2007-08-29 21:19:06.000000000 +0200
3@@ -360,11 +360,16 @@ dnl - util.h (NetBSD)
4 AC_CHECK_FUNC(openpty, have_openpty=yes, [
5   AC_CHECK_LIB(util, openpty, have_openpty=yes need_libutil=yes)])
6 
7+UTILLIBS=
8 if test "${have_openpty}." = "yes."; then
9   AC_DEFINE([HAVE_OPENPTY],1,[defined if openpty() is avialable])
10   AC_CHECK_HEADERS([pty.h libutil.h util.h], break)
11-  test "$need_libutil" = "yes" && LIBS="-lutil $LIBS"
12+  if test "$need_libutil" = "yes" ; then
13+    UTILLIBS="-lutil"
14+    LIBS="$UTILLIBS $LIBS"
15+  fi
16 fi
17+AC_SUBST(UTILLIBS)
18 
19 AC_CHECK_FUNCS(EVP_DigestInit,,
20        [AC_CHECK_LIB(crypto, EVP_DigestInit,,
21--- ./vfile/Makefile.am.orig    2007-07-02 20:30:49.000000000 +0200
22+++ ./vfile/Makefile.am 2007-08-29 21:21:48.000000000 +0200
23@@ -23,7 +23,7 @@ pkgincludedir = $(includedir)/vfile
24 pkginclude_HEADERS = vfile.h p_open.h vopen3.h
25 
26 noinst_PROGRAMS = vfget test_vopen3
27-TEST_LDADDS    = libvfile.la -lutil
28+TEST_LDADDS    = libvfile.la @UTILLIBS@
29 
30 vfget_SOURCES  = vfget.c
31 vfget_LDADD    = $(TEST_LDADDS)
32--- ./vfile/Makefile.in.orig    2007-07-02 20:31:01.000000000 +0200
33+++ ./vfile/Makefile.in 2007-08-29 21:19:06.000000000 +0200
34@@ -190,6 +190,7 @@ TRURL_DIR = @TRURL_DIR@
35 TRURL_INCLUDE = @TRURL_INCLUDE@
36 TRURL_LDFLAG = @TRURL_LDFLAG@
37 USE_NLS = @USE_NLS@
38+UTILLIBS = @UTILLIBS@
39 VERSION = @VERSION@
40 VERSION_CVSTAG = @VERSION_CVSTAG@
41 WITH_METADATA_REPOSITORY_FALSE = @WITH_METADATA_REPOSITORY_FALSE@
42@@ -260,7 +261,7 @@ libvfile_la_SOURCES = vfile.c fetch.c vf
43 
44 libvfile_la_LIBADD = vfff/libvfff.la
45 pkginclude_HEADERS = vfile.h p_open.h vopen3.h
46-TEST_LDADDS = libvfile.la -lutil
47+TEST_LDADDS = libvfile.la @UTILLIBS@
48 vfget_SOURCES = vfget.c
49 vfget_LDADD = $(TEST_LDADDS)
50 test_vopen3_SOURCES = test_vopen3.c
Note: See TracBrowser for help on using the repository browser.