pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files Don't check for tgetent or ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1a6565a2b7d8
branches:  trunk
changeset: 554310:1a6565a2b7d8
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 12 00:14:48 2009 +0000

description:
Don't check for tgetent or curses, it is never used.

diffstat:

 pkgtools/pkg_install/files/configure       |  90 +-----------------------------
 pkgtools/pkg_install/files/configure.ac    |   3 +-
 pkgtools/pkg_install/files/lib/config.h.in |   3 -
 3 files changed, 2 insertions(+), 94 deletions(-)

diffs (140 lines):

diff -r 0c17f999a326 -r 1a6565a2b7d8 pkgtools/pkg_install/files/configure
--- a/pkgtools/pkg_install/files/configure      Thu Feb 12 00:00:57 2009 +0000
+++ b/pkgtools/pkg_install/files/configure      Thu Feb 12 00:14:48 2009 +0000
@@ -3868,93 +3868,6 @@
 
 fi
 
-{ $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
-$as_echo_n "checking for library containing tgetent... " >&6; }
-if test "${ac_cv_search_tgetent+set}" = set; then
-  $as_echo_n "(cached) " >&6
-else
-  ac_func_search_save_LIBS=$LIBS
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char tgetent ();
-int
-main ()
-{
-return tgetent ();
-  ;
-  return 0;
-}
-_ACEOF
-for ac_lib in '' termcap termlib curses ncurses; do
-  if test -z "$ac_lib"; then
-    ac_res="none required"
-  else
-    ac_res=-l$ac_lib
-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
-  fi
-  rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
-$as_echo "$ac_try_echo") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext && {
-        test "$cross_compiling" = yes ||
-        $as_test_x conftest$ac_exeext
-       }; then
-  ac_cv_search_tgetent=$ac_res
-else
-  $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -rf conftest.dSYM
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext
-  if test "${ac_cv_search_tgetent+set}" = set; then
-  break
-fi
-done
-if test "${ac_cv_search_tgetent+set}" = set; then
-  :
-else
-  ac_cv_search_tgetent=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
-$as_echo "$ac_cv_search_tgetent" >&6; }
-ac_res=$ac_cv_search_tgetent
-if test "$ac_res" != no; then
-  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
-
-fi
-
 
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
@@ -5082,8 +4995,7 @@
 
 
 
-
-for ac_func in chflags dbopen __db185_open tgetent vfork
+for ac_func in chflags dbopen __db185_open vfork
 do
 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
diff -r 0c17f999a326 -r 1a6565a2b7d8 pkgtools/pkg_install/files/configure.ac
--- a/pkgtools/pkg_install/files/configure.ac   Thu Feb 12 00:00:57 2009 +0000
+++ b/pkgtools/pkg_install/files/configure.ac   Thu Feb 12 00:14:48 2009 +0000
@@ -57,7 +57,6 @@
 
 dnl Checks for libraries.
 AC_CHECK_LIB(db, __db185_open, , AC_SEARCH_LIBS(dbopen, [db db1]))
-AC_SEARCH_LIBS(tgetent, [termcap termlib curses ncurses])
 
 dnl Checks for header files.
 AC_HEADER_STDC
@@ -72,7 +71,7 @@
        sys/wait.h])
 
 # Checks for library functions.
-AC_CHECK_FUNCS([chflags dbopen __db185_open tgetent vfork])
+AC_CHECK_FUNCS([chflags dbopen __db185_open vfork])
 
 AC_SEARCH_LIBS([gethostbyname], [nsl])
 AC_SEARCH_LIBS([socket],
diff -r 0c17f999a326 -r 1a6565a2b7d8 pkgtools/pkg_install/files/lib/config.h.in
--- a/pkgtools/pkg_install/files/lib/config.h.in        Thu Feb 12 00:00:57 2009 +0000
+++ b/pkgtools/pkg_install/files/lib/config.h.in        Thu Feb 12 00:14:48 2009 +0000
@@ -135,9 +135,6 @@
 /* Define to 1 if you have the <termios.h> header file. */
 #undef HAVE_TERMIOS_H
 
-/* Define to 1 if you have the `tgetent' function. */
-#undef HAVE_TGETENT
-
 /* Define to 1 if you have the <time.h> header file. */
 #undef HAVE_TIME_H
 



Home | Main Index | Thread Index | Old Index