]> git.pld-linux.org Git - packages/freeciv.git/commitdiff
- die -lbind die die die
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 26 Dec 2005 15:36:41 +0000 (15:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    freeciv-link.patch -> 1.1

freeciv-link.patch [new file with mode: 0644]

diff --git a/freeciv-link.patch b/freeciv-link.patch
new file mode 100644 (file)
index 0000000..79cf95a
--- /dev/null
@@ -0,0 +1,28 @@
+--- freeciv-2.0.7/configure.ac.orig    2005-10-13 09:45:45.000000000 +0200
++++ freeciv-2.0.7/configure.ac 2005-12-26 16:30:36.000000000 +0100
+@@ -440,7 +440,7 @@
+ dnl Checks for additional server libraries:
+ if test x$server = xtrue; then
+     dnl Some systems (e.g., BeOS) need this lib
+-    AC_CHECK_LIB(bind, gethostbyaddr, SERVER_LIBS="-lbind $SERVER_LIBS")
++    AC_CHECK_FUNC(gethostbyaddr,,[AC_CHECK_LIB(bind, gethostbyaddr, SERVER_LIBS="-lbind $SERVER_LIBS")])
+     dnl Readline library and header files.
+     FC_HAS_READLINE()
+@@ -501,13 +501,13 @@
+ dnl If the AC_CHECK_FUNCS check finds the function, we don't look any
+ dnl further.  This is rumoured to prevent choosing the wrong libs on IRIX.
+ if test $ac_cv_func_gethostbyname = no; then
+-  AC_CHECK_LIB(nsl, gethostbyname, LIBS="-lnsl $LIBS")
++  AC_SEARCH_LIBS(gethostbyname, nsl)
+ fi
+ if test $ac_cv_func_connect = no; then
+-  AC_CHECK_LIB(socket, connect, LIBS="-lsocket $LIBS")
++  AC_SEARCH_LIBS(connect, socket)
+ fi
+ if test $ac_cv_func_bind = no; then
+-  AC_CHECK_LIB(bind, gethostbyaddr, LIBS="-lbind $LIBS")
++  AC_SEARCH_LIBS(gethostbyaddr, bind)
+ fi
+ dnl The use of both AC_FUNC_VSNPRINTF and AC_CHECK_FUNCS(vsnprintf) is
This page took 0.046882 seconds and 4 git commands to generate.