mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-24 04:03:34 -04:00
185 lines
5.3 KiB
Plaintext
185 lines
5.3 KiB
Plaintext
$NetBSD: patch-configure,v 1.3 2016/09/02 14:30:06 maya Exp $
|
|
|
|
initscr is a curses function, not termcap.
|
|
|
|
test if we can compile SSE at configure, don't just
|
|
assume that we can because we have xmmintrin.h
|
|
|
|
--- configure.orig 2012-02-28 18:54:37.000000000 +0000
|
|
+++ configure
|
|
@@ -11922,7 +11922,6 @@ for ac_header in \
|
|
sys/soundcard.h \
|
|
sys/time.h \
|
|
unistd.h \
|
|
- xmmintrin.h \
|
|
linux/soundcard.h
|
|
do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
@@ -11936,6 +11935,30 @@ fi
|
|
|
|
done
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking working SSE intrinsics" >&5
|
|
+$as_echo_n "checking working SSE intrinsics... " >&6; }
|
|
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+#include <xmmintrin.h>
|
|
+int
|
|
+main ()
|
|
+{
|
|
+_mm_sfence();
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+
|
|
+$as_echo "#define HAVE_XMMINTRIN_H 1" >>confdefs.h
|
|
+
|
|
+ ac_cv_header_xmmintrin_h=yes
|
|
+else
|
|
+ ac_cv_header_xmmintrin_h=no
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_header_xmmintrin_h}" >&5
|
|
+$as_echo "${ac_cv_header_xmmintrin_h}" >&6; }
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
|
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
|
@@ -13602,9 +13625,9 @@ fi
|
|
|
|
done
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -ltermcap" >&5
|
|
-$as_echo_n "checking for initscr in -ltermcap... " >&6; }
|
|
-if ${ac_cv_lib_termcap_initscr+:} false; then :
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
|
|
+$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
|
|
+if ${ac_cv_lib_termcap_tgetent+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
@@ -13618,33 +13641,33 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
-char initscr ();
|
|
+char tgetent ();
|
|
int
|
|
main ()
|
|
{
|
|
-return initscr ();
|
|
+return tgetent ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- ac_cv_lib_termcap_initscr=yes
|
|
+ ac_cv_lib_termcap_tgetent=yes
|
|
else
|
|
- ac_cv_lib_termcap_initscr=no
|
|
+ ac_cv_lib_termcap_tgetent=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_initscr" >&5
|
|
-$as_echo "$ac_cv_lib_termcap_initscr" >&6; }
|
|
-if test "x$ac_cv_lib_termcap_initscr" = xyes; then :
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
|
|
+$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
|
|
+if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
|
|
HAVE_TERMCAP="termcap"
|
|
fi
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
|
|
-$as_echo_n "checking for initscr in -lcurses... " >&6; }
|
|
-if ${ac_cv_lib_curses_initscr+:} false; then :
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
|
|
+$as_echo_n "checking for tgetent in -lcurses... " >&6; }
|
|
+if ${ac_cv_lib_curses_tgetent+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
@@ -13658,33 +13681,33 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
-char initscr ();
|
|
+char tgetent ();
|
|
int
|
|
main ()
|
|
{
|
|
-return initscr ();
|
|
+return tgetent ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- ac_cv_lib_curses_initscr=yes
|
|
+ ac_cv_lib_curses_tgetent=yes
|
|
else
|
|
- ac_cv_lib_curses_initscr=no
|
|
+ ac_cv_lib_curses_tgetent=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
|
|
-$as_echo "$ac_cv_lib_curses_initscr" >&6; }
|
|
-if test "x$ac_cv_lib_curses_initscr" = xyes; then :
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
|
|
+$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
|
|
+if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
|
|
HAVE_TERMCAP="curses"
|
|
fi
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
|
|
-$as_echo_n "checking for initscr in -lncurses... " >&6; }
|
|
-if ${ac_cv_lib_ncurses_initscr+:} false; then :
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
|
|
+$as_echo_n "checking for tgetent in -lncurses... " >&6; }
|
|
+if ${ac_cv_lib_ncurses_tgetent+:} false; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
@@ -13698,27 +13721,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
-char initscr ();
|
|
+char tgetent ();
|
|
int
|
|
main ()
|
|
{
|
|
-return initscr ();
|
|
+return tgetent ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- ac_cv_lib_ncurses_initscr=yes
|
|
+ ac_cv_lib_ncurses_tgetent=yes
|
|
else
|
|
- ac_cv_lib_ncurses_initscr=no
|
|
+ ac_cv_lib_ncurses_tgetent=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
|
|
-$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
|
|
-if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
|
|
+$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
|
|
+if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
|
|
HAVE_TERMCAP="ncurses"
|
|
fi
|
|
|