patch-configure 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $OpenBSD: patch-configure,v 1.2 2012/03/23 21:08:09 naddy Exp $
  2. --- configure.orig Fri Jul 18 16:48:13 1997
  3. +++ configure Fri Mar 23 21:59:54 2012
  4. @@ -1994,7 +1994,7 @@ fi
  5. fi
  6. -for ac_func in gethostname getgroups opendir memcpy strtol dirfd tcgetattr tcsetpgrp killpg
  7. +for ac_func in gethostname getgroups opendir memcpy strtol dirfd tcgetattr tcsetpgrp killpg execvpe
  8. do
  9. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  10. echo "configure:2001: checking for $ac_func" >&5
  11. @@ -2092,14 +2092,14 @@ else
  12. echo "$ac_t""no" 1>&6
  13. fi
  14. -echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
  15. -echo "configure:2097: checking for tgetent in -lncurses" >&5
  16. -ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
  17. +echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
  18. +echo "configure:2097: checking for tgetent in -lcurses" >&5
  19. +ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
  20. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  21. echo $ac_n "(cached) $ac_c" 1>&6
  22. else
  23. ac_save_LIBS="$LIBS"
  24. -LIBS="-lncurses $LIBS"
  25. +LIBS="-lcurses $LIBS"
  26. cat > conftest.$ac_ext <<EOF
  27. #line 2105 "configure"
  28. #include "confdefs.h"
  29. @@ -2127,13 +2127,13 @@ LIBS="$ac_save_LIBS"
  30. fi
  31. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  32. echo "$ac_t""yes" 1>&6
  33. - ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  34. + ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  35. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  36. cat >> confdefs.h <<EOF
  37. #define $ac_tr_lib 1
  38. EOF
  39. - LIBS="-lncurses $LIBS"
  40. + LIBS="-lcurses $LIBS"
  41. else
  42. echo "$ac_t""no" 1>&6