summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2007-06-13 10:33:54 -0400
committerH.Merijn Brand <h.m.brand@xs4all.nl>2007-06-13 20:11:10 +0000
commit20e87299883f4e62b61326c7478ab6a085f6088f (patch)
tree85df3ff76649eb7063ef915da50e2049743ded01 /Configure
parentc1ceaa19a46ac25e483b6f0671eb3e41d265e367 (diff)
downloadperl-20e87299883f4e62b61326c7478ab6a085f6088f.tar.gz
Configure: Erroneous C++ message
Message-ID: <Pine.LNX.4.64.0706131428510.18715@fractal.phys.lafayette.edu> p4raw-id: //depot/perl@31373
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure13
1 files changed, 6 insertions, 7 deletions
diff --git a/Configure b/Configure
index dc7a7bf76d..e87eddb763 100755
--- a/Configure
+++ b/Configure
@@ -26,7 +26,7 @@
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Fri Jun 1 08:37:13 CEST 2007 [metaconfig 3.0 PL70]
+# Generated on Wed Jun 13 22:10:15 CEST 2007 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -7576,21 +7576,20 @@ eval $inhdr
echo " "
echo "Checking for C++..." >&4
-cat >try.c <<'EOCP'
+$cat >try.c <<'EOCP'
#include <stdio.h>
int main(void)
{
#ifdef __cplusplus
- printf("define\n");
+ return 0;
#else
- printf("undef\n");
+ return 1;
#endif
- return 0;
}
EOCP
set try
-if eval $compile_ok && $run ./try >cplusplus$$; then
- val=`$cat cplusplus$$`
+if eval $compile_ok && $run ./try; then
+ val="$define"
echo "You are using a C++ compiler."
else
val="$undef"