]> sourceware.org Git - newlib-cygwin.git/commitdiff
* configure.in: Add previously-missed AC_NO_EXECUTABLES.
authorChristopher Faylor <me@cgf.cx>
Fri, 23 Nov 2012 14:55:44 +0000 (14:55 +0000)
committerChristopher Faylor <me@cgf.cx>
Fri, 23 Nov 2012 14:55:44 +0000 (14:55 +0000)
* configure: Regenerate.
* aclocal.m4: Ditto.

winsup/cygwin/ChangeLog
winsup/cygwin/configure
winsup/cygwin/configure.in

index d943a862a6ac0b55da91f1fb9618a7bb9ea710f6..d030fe18850c100763e9f588a35a91ff1fe3f93f 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-23  Christopher Faylor  <me.cygwin2012@cgf.cx>
+
+       * configure.in: Add previously-missed AC_NO_EXECUTABLES.
+       * configure: Regenerate.
+       * aclocal.m4: Ditto.
+
 2012-11-23  Christopher Faylor  <me.cygwin2012@cgf.cx>
 
        * Makefile.in: Use explicit path to mkdir.
index 1e66b4b6144bbb871e44cdd06a624d204f20c859..5a1f22afa926f8e70a1d785bce9b48c7fff5cf44 100755 (executable)
@@ -582,6 +582,7 @@ PACKAGE_BUGREPORT=
 PACKAGE_URL=
 
 ac_unique_file="Makefile.in"
+ac_no_link=no
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
 CONFIG_DIR
@@ -2025,6 +2026,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
+
 # Make sure we can run config.sub.
 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
@@ -2468,6 +2470,29 @@ done
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+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:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  ac_no_link=no
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
 int
 main ()
 {
@@ -2664,6 +2689,59 @@ $as_echo "$cross_compiling" >&6; }
 
 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 ac_clean_files=$ac_clean_files_save
+
+else
+  rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.o conftest.obj conftest.dSYM
+  ac_no_link=yes
+  # Setting cross_compile will disable run tests; it will
+  # also disable AC_CHECK_FILE but that's generally
+  # correct if we can't link.
+  cross_compiling=yes
+  EXEEXT=
+  # Check that the compiler produces executables we can run.  If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
+$as_echo_n "checking whether we are cross compiling... " >&6; }
+if test "$cross_compiling" != yes; then
+  { { 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:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+  if { ac_try='./conftest$ac_cv_exeext'
+  { { case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; }; then
+    cross_compiling=no
+  else
+    if test "$cross_compiling" = maybe; then
+       cross_compiling=yes
+    else
+       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details" "$LINENO" 5; }
+    fi
+  fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
+
+fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 $as_echo_n "checking for suffix of object files... " >&6; }
 if ${ac_cv_objext+:} false; then :
index 2e4708d43b32a52cdf8bee820a899e0338b46080..840e10a236ac91267b7ec383ca254fb6a82a8d86 100644 (file)
@@ -9,6 +9,7 @@ AC_WINDOWS_HEADERS
 AC_WINDOWS_LIBS
 
 AC_PROG_INSTALL
+AC_NO_EXECUTABLES
 AC_CANONICAL_SYSTEM
 
 AC_PROG_CC
This page took 0.043947 seconds and 5 git commands to generate.