From 2388a1526b1019b47836c395d28a1e57073dc61b Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Sun, 14 Feb 2010 07:37:11 +0000 Subject: * configure.in: Check if the host has getopt.h. * configure: Regenerate. * config.in: Regenerate. * main.c: Include config.h. Use HAVE_STDLIB_H, HAVE_UNISTD_H, HAVE_GETOPT_H. Include getopt.h in case HAVE_GETOPT_H is defined. --- sim/rx/configure | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'sim/rx/configure') diff --git a/sim/rx/configure b/sim/rx/configure index 58e42de..56d03ac 100755 --- a/sim/rx/configure +++ b/sim/rx/configure @@ -4517,6 +4517,19 @@ sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" sim_link_links="${sim_link_links} targ-vals.def" +for ac_header in getopt.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" +if test "x$ac_cv_header_getopt_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETOPT_H 1 +_ACEOF + +fi + +done + + ac_sources="$sim_link_files" ac_dests="$sim_link_links" -- cgit v1.1