configure.ac: Also check for popen.
authorMike Stump <mikestump@comcast.net>
Wed, 30 Jul 2014 18:29:41 +0000 (18:29 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Wed, 30 Jul 2014 18:29:41 +0000 (18:29 +0000)
* configure.ac: Also check for popen.
* tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
* configure: Regenerate.
* config.in:  Regenerate.

From-SVN: r213309

gcc/ChangeLog
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/tree-loop-distribution.c

index 6223bd606536852ea758947c21074467579ce677..23dd6f06ab6cbf19d4e11ac7a4a2238d72d64771 100644 (file)
@@ -1,3 +1,10 @@
+2014-07-30  Mike Stump  <mikestump@comcast.net>
+
+       * configure.ac: Also check for popen.
+       * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
+       * configure: Regenerate.
+       * config.in:  Regenerate.
+
 2014-07-30  Martin Jambor  <mjambor@suse.cz>
 
        * tree-sra.c (sra_ipa_modify_assign): Change type of the first
index 515f3415290adb320a9cf729cbd4f0ef09583836..a1bda76290d8b6662417482cc277b7f5d5b05a9f 100644 (file)
 #endif
 
 
+/* Define to 1 if you have the `popen' function. */
+#ifndef USED_FOR_TARGET
+#undef HAVE_POPEN
+#endif
+
+
 /* Define to 1 if you have the `putchar_unlocked' function. */
 #ifndef USED_FOR_TARGET
 #undef HAVE_PUTCHAR_UNLOCKED
index 59f6abfe563d1b8999cc12a43e4dc6a8920da1b1..fe2e6470acc364c30b4c91ef6f1f958f6f09fb83 100755 (executable)
@@ -9285,7 +9285,7 @@ fi
 
 
 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
-       sysconf strsignal getrusage nl_langinfo \
+       popen sysconf strsignal getrusage nl_langinfo \
        gettimeofday mbstowcs wcswidth mmap setlocale \
        clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked madvise
 do :
index 6de2e94dbe653da3163608342365d974287ef766..ea8eca4d76990d81d7fceb2f80e3ada4dfedd986 100644 (file)
@@ -1113,7 +1113,7 @@ define(gcc_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked dnl
   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl
   putchar_unlocked putc_unlocked)
 AC_CHECK_FUNCS(times clock kill getrlimit setrlimit atoll atoq \
-       sysconf strsignal getrusage nl_langinfo \
+       popen sysconf strsignal getrusage nl_langinfo \
        gettimeofday mbstowcs wcswidth mmap setlocale \
        gcc_UNLOCKED_FUNCS madvise)
 
index bbf387d6981edb57925a657ec9cca505425db208..7a18622d3385e0e8162d6c6ae11937fd8de2fa3d 100644 (file)
@@ -228,7 +228,7 @@ DEBUG_FUNCTION void
 dot_rdg (struct graph *rdg)
 {
   /* When debugging, you may want to enable the following code.  */
-#if 1
+#ifdef HAVE_POPEN
   FILE *file = popen ("dot -Tx11", "w");
   if (!file)
     return;