From: Mike Stump Date: Wed, 30 Jul 2014 18:29:41 +0000 (+0000) Subject: configure.ac: Also check for popen. X-Git-Tag: releases/gcc-5.1.0~5899 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6d9404508ba1ee03aef9faa8849f554a938ef09;p=thirdparty%2Fgcc.git configure.ac: Also check for popen. * configure.ac: Also check for popen. * tree-loop-distribution.c (dot_rdg): Autoconfize popen use. * configure: Regenerate. * config.in: Regenerate. From-SVN: r213309 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6223bd606536..23dd6f06ab6c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-07-30 Mike Stump + + * 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 * tree-sra.c (sra_ipa_modify_assign): Change type of the first diff --git a/gcc/config.in b/gcc/config.in index 515f3415290a..a1bda76290d8 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -1468,6 +1468,12 @@ #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 diff --git a/gcc/configure b/gcc/configure index 59f6abfe563d..fe2e6470acc3 100755 --- a/gcc/configure +++ b/gcc/configure @@ -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 : diff --git a/gcc/configure.ac b/gcc/configure.ac index 6de2e94dbe65..ea8eca4d7699 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -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) diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index bbf387d6981e..7a18622d3385 100644 --- a/gcc/tree-loop-distribution.c +++ b/gcc/tree-loop-distribution.c @@ -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;