aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2009-01-25 17:24:39 +0800
committernobutaka <nobutaka@FreeBSD.org>2009-01-25 17:24:39 +0800
commitad1830d5bf9d56e0c4e4885df492b5f341e322bd (patch)
tree98c122f8e36b3e53cf4cb18003e617961a2c47d8 /x11
parente11b9370ec031b2474904f756b9dbfe7fde4e931 (diff)
downloadfreebsd-ports-gnome-ad1830d5bf9d56e0c4e4885df492b5f341e322bd.tar.gz
freebsd-ports-gnome-ad1830d5bf9d56e0c4e4885df492b5f341e322bd.tar.zst
freebsd-ports-gnome-ad1830d5bf9d56e0c4e4885df492b5f341e322bd.zip
Fix build error with libutempter.
PR: ports/130732 Submitted by: Kenji Rikitake <kenji.rikitake@acm.org>
Diffstat (limited to 'x11')
-rw-r--r--x11/mlterm/files/patch-kiklib:configure73
1 files changed, 63 insertions, 10 deletions
diff --git a/x11/mlterm/files/patch-kiklib:configure b/x11/mlterm/files/patch-kiklib:configure
index 3ffa704128ef..d144377af3ce 100644
--- a/x11/mlterm/files/patch-kiklib:configure
+++ b/x11/mlterm/files/patch-kiklib:configure
@@ -1,6 +1,59 @@
---- kiklib/configure.orig Sun May 21 13:21:24 2006
-+++ kiklib/configure Sun May 21 13:24:06 2006
-@@ -7299,66 +7299,7 @@
+--- kiklib/configure.orig 2006-10-20 18:04:01.000000000 +0900
++++ kiklib/configure 2009-01-25 17:55:52.000000000 +0900
+@@ -7132,52 +7132,6 @@
+ UTMP_NAME=none
+ UTMP_LIBS=
+ fi
+-# libutempter
+-if test -z "$UTMP_NAME" ; then
+- echo $ac_n "checking for addToUtmp in -lutempter""... $ac_c" 1>&6
+-echo "configure:7139: checking for addToUtmp in -lutempter" >&5
+-ac_lib_var=`echo utempter'_'addToUtmp | sed 'y%./+-%__p_%'`
+-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- ac_save_LIBS="$LIBS"
+-LIBS="-lutempter $LIBS"
+-cat > conftest.$ac_ext <<EOF
+-#line 7147 "configure"
+-#include "confdefs.h"
+-/* Override any gcc2 internal prototype to avoid an error. */
+-/* We use char because int might match the return type of a gcc2
+- builtin and then its argument prototype would still apply. */
+-char addToUtmp();
+-
+-int main() {
+-addToUtmp()
+-; return 0; }
+-EOF
+-if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=yes"
+-else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=no"
+-fi
+-rm -f conftest*
+-LIBS="$ac_save_LIBS"
+-
+-fi
+-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+- echo "$ac_t""yes" 1>&6
+-
+- UTMP_NAME=utmper
+- UTMP_LIBS="-lutempter -lutil"
+-
+-else
+- echo "$ac_t""no" 1>&6
+-fi
+-
+-fi
+ # setutent() (SysV)
+ if test -z "$UTMP_NAME" ; then
+ echo $ac_n "checking for setutent""... $ac_c" 1>&6
+@@ -7299,66 +7253,7 @@
if test "$kik_cv_mingw32" = yes ; then
kik_cv_pty=win32
else
@@ -68,15 +121,15 @@
fi
fi
-@@ -7623,11 +7564,6 @@
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
+@@ -7625,11 +7520,6 @@
top_srcdir="$ac_dots$ac_given_srcdir" ;;
-- esac
--
+ esac
+
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
-
+- esac
+-
echo creating "$ac_file"
+ rm -f "$ac_file"
+ configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."