changeset 236:597d1f02b9c9

2003-7-25 Brian Masney <masneyb@gftp.org> * configure.in - define HAVE_OPENPTY if openpty() is found in libutil
author masneyb
date Fri, 25 Jul 2003 20:56:26 +0000
parents 1638e32e6a35
children ed06de018967
files ChangeLog configure.in
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jul 25 20:46:58 2003 +0000
+++ b/ChangeLog	Fri Jul 25 20:56:26 2003 +0000
@@ -1,4 +1,6 @@
 2003-7-25 Brian Masney <masneyb@gftp.org>
+	* configure.in - define HAVE_OPENPTY if openpty() is found in libutil
+
 	* lib/gftp.h lib/pty.c - moved including of some PTY related header
 	files to pty.c. Hopefully should fix build problems under FreeBSD
 
@@ -1377,7 +1379,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.120 2003/07/25 20:46:58 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.121 2003/07/25 20:56:26 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/configure.in	Fri Jul 25 20:46:58 2003 +0000
+++ b/configure.in	Fri Jul 25 20:56:26 2003 +0000
@@ -84,7 +84,8 @@
 EXTRA_LIBS=""
 
 # FreeBSD needs this
-AC_CHECK_LIB(util, openpty, EXTRA_LIBS="-lutil")
+AC_CHECK_LIB(util, openpty, [EXTRA_LIBS="-lutil"
+                             AC_DEFINE(HAVE_OPENPTY, [1], [Define if you have the openpty function.]) ])
 
 AC_CHECK_LIB(socket, socket, EXTRA_LIBS="-lsocket")