From a1aa1d3077cf008c27eb9411fd247f695dbf6bbc Mon Sep 17 00:00:00 2001 From: jb Date: Wed, 9 Nov 2011 18:25:58 +0000 Subject: Configure cleanup. 2011-11-09 Janne Blomqvist * configure.ac (AC_STDC_HEADERS): Remove. (AC_HEADER_TIME): Remove. (AC_HAVE_HEADERS, AC_CHECK_HEADERS): Move into a single invocation of AC_CHECK_HEADERS_ONCE, don't check for presence of C89 headers. (AC_CHECK_MEMBERS): Use single invocation. (AC_CHECK_FUNCS): Move into single invocation of AC_CHEC_FUNCS_ONCE, don't check for presence of C89 functions. * config.h.in: Regenerate. * configure: Regenerate. * intrinsics/clock.c: Include time.h. (mclock): Assume clock() is present. (mclock8): Likewise. * intrinsics/ctime.c (strctime): Assume strftime is present. (fdate): Assume time() is present. (fdate_sub): Likewise. (ctime): Likewise. * intrinsics/date_and_time.c: Don't provide abs macro. (HAVE_NO_DATE_TIME): Remove code related to macro which is never set. * intrinsics/execute_command_line.c: Assume stdlib.h is present. * intrinsics/exit.c: Likewise. * intrinsics/extends_type_of.c: Likewise. * intrinsics/gerror.c: Assume strerror() is present. * intrinsics/kill.c: Assume signal.h is present. * intrinsics/malloc.c: Assume stdlib.h is present. * intrinsics/move_alloc.c: Likewise. * intrinsics/perror.c: Assume perror() is present. * intrinsics/signal.c: Assume signal.h is present. * intrinsics/stat.c: Assume stdlib.h is present. * intrinsics/system.c: Likewise. * intrinsics/time.c: Include time.h, assume time() is present. * intrinsics/time_1.h: Conditionally include sys/time.h, unconditionally time.h. (gf_cputime): Do division in double, fallback using clock(). (gf_gettime): Assume time() is present. * intrinsics/umask.c: Assume stdlib.h is present. * runtime/backtrace.c: Likewise. * runtime/compile_options.c: Assume signal.h is present, assume C89 signals are present. * runtime/error.c: Assume signal.h and stdlib.h are present. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181227 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/config.h.in | 48 ++++++------------------------------------------ 1 file changed, 6 insertions(+), 42 deletions(-) (limited to 'libgfortran/config.h.in') diff --git a/libgfortran/config.h.in b/libgfortran/config.h.in index 9333f64f8f0..81a4a7fb455 100644 --- a/libgfortran/config.h.in +++ b/libgfortran/config.h.in @@ -198,9 +198,6 @@ /* Define to 1 if you have the `chsize' function. */ #undef HAVE_CHSIZE -/* Define to 1 if you have the `clock' function. */ -#undef HAVE_CLOCK - /* Define to 1 if you have the `clock_gettime' function. */ #undef HAVE_CLOCK_GETTIME @@ -228,7 +225,7 @@ /* Define to 1 if you have the `close' function. */ #undef HAVE_CLOSE -/* complex.h exists */ +/* Define to 1 if you have the header file. */ #undef HAVE_COMPLEX_H /* libm includes copysign */ @@ -381,9 +378,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_FLOATINGPOINT_H -/* Define to 1 if you have the header file. */ -#undef HAVE_FLOAT_H - /* libm includes floor */ #undef HAVE_FLOOR @@ -435,10 +429,10 @@ /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD -/* libc includes geteuid */ +/* Define to 1 if you have the `geteuid' function. */ #undef HAVE_GETEUID -/* libc includes getgid */ +/* Define to 1 if you have the `getgid' function. */ #undef HAVE_GETGID /* Define to 1 if you have the `gethostname' function. */ @@ -450,10 +444,10 @@ /* Define to 1 if you have the `getlogin' function. */ #undef HAVE_GETLOGIN -/* libc includes getpid */ +/* Define to 1 if you have the `getpid' function. */ #undef HAVE_GETPID -/* libc includes getppid */ +/* Define to 1 if you have the `getppid' function. */ #undef HAVE_GETPPID /* Define to 1 if you have the `getpwuid' function. */ @@ -471,7 +465,7 @@ /* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY -/* libc includes getuid */ +/* Define to 1 if you have the `getuid' function. */ #undef HAVE_GETUID /* Define to 1 if you have the `gmtime_r' function. */ @@ -606,9 +600,6 @@ /* libm includes nextafterl */ #undef HAVE_NEXTAFTERL -/* Define to 1 if you have the `perror' function. */ -#undef HAVE_PERROR - /* Define to 1 if you have the `pipe' function. */ #undef HAVE_PIPE @@ -654,12 +645,6 @@ /* Define to 1 if you have the `setmode' function. */ #undef HAVE_SETMODE -/* Define to 1 if you have the `signal' function. */ -#undef HAVE_SIGNAL - -/* Define to 1 if you have the header file. */ -#undef HAVE_SIGNAL_H - /* libm includes sin */ #undef HAVE_SIN @@ -696,30 +681,18 @@ /* Define to 1 if you have the `stat' function. */ #undef HAVE_STAT -/* Define to 1 if you have the header file. */ -#undef HAVE_STDARG_H - /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H -/* Define to 1 if you have the header file. */ -#undef HAVE_STDIO_H - /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strcasestr' function. */ #undef HAVE_STRCASESTR -/* Define to 1 if you have the `strerror' function. */ -#undef HAVE_STRERROR - /* Define to 1 if you have the `strerror_r' function. */ #undef HAVE_STRERROR_R -/* Define to 1 if you have the `strftime' function. */ -#undef HAVE_STRFTIME - /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H @@ -792,15 +765,9 @@ /* libm includes tgammal */ #undef HAVE_TGAMMAL -/* Define to 1 if you have the `time' function. */ -#undef HAVE_TIME - /* Define to 1 if you have the `times' function. */ #undef HAVE_TIMES -/* Define to 1 if you have the header file. */ -#undef HAVE_TIME_H - /* libm includes trunc */ #undef HAVE_TRUNC @@ -907,9 +874,6 @@ /* Define to 1 if the target supports #pragma weak */ #undef SUPPORTS_WEAK -/* Define to 1 if you can safely include both and . */ -#undef TIME_WITH_SYS_TIME - /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE -- cgit v1.2.1