From 8d6ec211c165325b214ca6e559edc4fdfa4d21f9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 15 Nov 2000 11:23:21 -0500 Subject: [svn-r2917] Purpose: Bug fix Description: Namespace wasn't being detected properly. Solution: Changed it to do it properly (not putting the main() function in the namespace); Platforms tested: Linux --- c++/configure | 6 +++--- c++/configure.in | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/c++/configure b/c++/configure index aaf5539..1576a53 100755 --- a/c++/configure +++ b/c++/configure @@ -1832,11 +1832,11 @@ extern "C" void exit(int); using namespace std; namespace H5 { - -int main(void) { return 0; } - +int fnord; } +int main(void) { fnord = 37; return 0; } + EOF if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then diff --git a/c++/configure.in b/c++/configure.in index e56219f..575d5f8 100644 --- a/c++/configure.in +++ b/c++/configure.in @@ -229,10 +229,10 @@ AC_TRY_RUN([ using namespace std; namespace H5 { - -int main(void) { return 0; } - +int fnord; } + +int main(void) { fnord = 37; return 0; } ], [ echo yes ], [ -- cgit v0.12