Skip to content

Commit 996f66f

Browse files
Simplify configure.ac slightly (#506)
1 parent 676f9f2 commit 996f66f

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

config.h.in

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@
6060
the CoreFoundation framework. */
6161
#undef HAVE_CFPREFERENCESCOPYAPPVALUE
6262

63-
/* curses has color_set function */
64-
#undef HAVE_COLOR_SET
65-
6663
/* Define if the GNU dcgettext() function is already present or preinstalled.
6764
*/
6865
#undef HAVE_DCGETTEXT
@@ -85,9 +82,6 @@
8582
/* Define if the GNU gettext() function is already present or preinstalled. */
8683
#undef HAVE_GETTEXT
8784

88-
/* Define to 1 if you have the `gettimeofday' function. */
89-
#undef HAVE_GETTIMEOFDAY
90-
9185
/* Define if you have the iconv() function and it works. */
9286
#undef HAVE_ICONV
9387

configure

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3549,7 +3549,6 @@ fi
35493549

35503550

35513551

3552-
35533552
printf "%s\n" "#define __USE_STRING_INLINES 1" >>confdefs.h
35543553

35553554

@@ -20251,12 +20250,6 @@ then :
2025120250
printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
2025220251

2025320252
fi
20254-
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20255-
if test "x$ac_cv_func_gettimeofday" = xyes
20256-
then :
20257-
printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20258-
20259-
fi
2026020253

2026120254

2026220255
# Check for timezone

configure.ac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ AH_TEMPLATE([COB_HAS_INLINE], [Can use inline keyword])
7171
AH_TEMPLATE([COB_NO_SELFOPEN], [Can not dlopen self])
7272
AH_TEMPLATE([COB_STRFTIME], [Can use strftime for timezone])
7373
AH_TEMPLATE([COB_LI_IS_LL], [long int is long long])
74-
AH_TEMPLATE([HAVE_COLOR_SET], [curses has color_set function])
7574

7675
AC_DEFINE(__USE_STRING_INLINES)
7776

@@ -179,7 +178,7 @@ fi
179178
AC_FUNC_ALLOCA
180179
AC_FUNC_VPRINTF
181180
AC_CHECK_FUNCS([memmove memset setlocale fcntl strerror \
182-
strcasecmp strchr strrchr strdup strstr strtol gettimeofday])
181+
strcasecmp strchr strrchr strdup strstr strtol])
183182

184183
# Check for timezone
185184
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[timezone = 3600;]])],

0 commit comments

Comments
 (0)