aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure42
1 files changed, 38 insertions, 4 deletions
diff --git a/configure b/configure
index 7847773884..c223cad63f 100755
--- a/configure
+++ b/configure
@@ -5534,7 +5534,7 @@ if test "${libc_cv_asm_underscores+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat > conftest.$ac_ext <<EOF
-#line 5537 "configure"
+#line $LINENO "configure"
#include "confdefs.h"
void underscore_test(void) {
return; }
@@ -5860,7 +5860,7 @@ if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat > conftest.c <<EOF
-#line 5863 "configure"
+#line $LINENO "configure"
static char *__EH_FRAME_BEGIN__;
_start ()
{
@@ -5956,7 +5956,7 @@ if test "${libc_cv_gcc_builtin_expect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat > conftest.c <<EOF
-#line 5959 "configure"
+#line $LINENO "configure"
int foo (int a)
{
a = __builtin_expect (a, 10);
@@ -6018,13 +6018,47 @@ _ACEOF
fi
+echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
+echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6
+if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat > conftest.c <<\EOF
+extern char *strstr (const char *, const char *) __asm ("my_strstr");
+char *foo (const char *a, const char *b)
+{
+ return __builtin_strstr (a, b);
+}
+EOF
+if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; };
+then
+ libc_cv_gcc_builtin_redirection=yes
+else
+ libc_cv_gcc_builtin_redirection=no
+fi
+rm -f conftest*
+fi
+echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
+echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6
+if test "$libc_cv_gcc_builtin_redirection" = yes ; then
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_BUILTIN_REDIRECTION 1
+_ACEOF
+
+fi
+
echo "$as_me:$LINENO: checking for local label subtraction" >&5
echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat > conftest.c <<EOF
-#line 6027 "configure"
+#line $LINENO "configure"
int foo (int a)
{
static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };