From 1290c4808d3e9890c765b1445f66b823c9026734 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 9 Jan 2001 16:16:15 -0500 Subject: [svn-r3251] Purpose: New configure feature. Description: The H5private.h header file was re-defining the strdup function on several platforms, generating a warning. Solution: Detect if the system defines a strdup function and don't re-define it, if so. Platforms tested: FreeBSD 4.2 (hawkwind), IRIX64-64 (modi4) --- configure | 2 +- configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index d3528fb..f44df01 100755 --- a/configure +++ b/configure @@ -8799,7 +8799,7 @@ else fi done -for ac_func in compress2 setsysinfo longjmp signal sigaction +for ac_func in compress2 setsysinfo longjmp signal sigaction strdup do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:8806: checking for $ac_func" >&5 diff --git a/configure.in b/configure.in index 0e28e50..3d53bfc 100644 --- a/configure.in +++ b/configure.in @@ -1025,7 +1025,7 @@ dnl Check for functions. dnl AC_CHECK_FUNCS(getpwuid gethostname system getrusage fork waitpid) AC_CHECK_FUNCS(gettimeofday BSDgettimeofday difftime snprintf vsnprintf) -AC_CHECK_FUNCS(compress2 setsysinfo longjmp signal sigaction) +AC_CHECK_FUNCS(compress2 setsysinfo longjmp signal sigaction strdup) AC_TRY_COMPILE([#include], [off64_t n = 0;], AC_CHECK_FUNCS(lseek64 fseek64), -- cgit v0.12