Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CMake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3,198
Issues
3,198
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CMake
CMake
Commits
b5cff36f
Commit
b5cff36f
authored
Aug 22, 2002
by
Bill Hoffman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: fix for OSF compiler to use ansi mode for streams
parent
04013032
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
14 deletions
+60
-14
Templates/cxxconfigure
Templates/cxxconfigure
+17
-6
Templates/cxxconfigure.in
Templates/cxxconfigure.in
+12
-1
configure
configure
+18
-6
configure.in
configure.in
+13
-1
No files found.
Templates/cxxconfigure
View file @
b5cff36f
...
...
@@ -738,7 +738,18 @@ case $system in
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
;;
;;
OSF1-*)
echo $ac_n "checking whether ${CXX} accepts -std strict_ansi""... $ac_c" 1>&6
echo '
void f
(){}
' > conftest.c
if test -z "`${CXX} -std strict_ansi -c conftest.c 2>&1`"; then
echo "$ac_t""yes" 1>&6
CMAKE_ANSI_CXXFLAGS="-std strict_ansi"
else
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
;;
esac
fi
...
...
@@ -764,7 +775,7 @@ fi
# ansi stream files (without the .h)
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6
echo "configure:7
68
: checking ansi standard C++ stream headers " >&5
echo "configure:7
79
: checking ansi standard C++ stream headers " >&5
rm -rf conftest.*
cat > conftest.cc <<!
#include <iostream>
...
...
@@ -780,7 +791,7 @@ fi
# check compilers to see if they have std::stringstream
echo $ac_n "checking for ansi standard C++ stringstream ""... $ac_c" 1>&6
echo "configure:7
84
: checking for ansi standard C++ stringstream " >&5
echo "configure:7
95
: checking for ansi standard C++ stringstream " >&5
rm -rf conftest.*
cat > conftest.cc <<!
#include <sstream>
...
...
@@ -796,7 +807,7 @@ fi
# check to see if stl is in the std namespace
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6
echo "configure:8
00
: checking ansi standard namespace support " >&5
echo "configure:8
11
: checking ansi standard namespace support " >&5
rm -rf conftest.*
cat > conftest.cc <<!
#include <list>
...
...
@@ -814,7 +825,7 @@ fi
# check to see if for scoping is supported
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi for scope support ""... $ac_c" 1>&6
echo "configure:8
18
: checking ansi for scope support " >&5
echo "configure:8
29
: checking ansi for scope support " >&5
rm -rf conftest.*
cat > conftest.cc <<!
void foo() { for(int i;;); for(int i;;); }
...
...
@@ -835,7 +846,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:8
39
: checking for $ac_word" >&5
echo "configure:8
50
: checking for $ac_word" >&5
if eval "test \"`echo '$''
{
'ac_cv_path_CMAKE_AR_TMP'
+set
}
'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
...
...
Templates/cxxconfigure.in
View file @
b5cff36f
...
...
@@ -74,7 +74,18 @@ case $system in
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
;;
;;
OSF1-*)
echo $ac_n "checking whether ${CXX} accepts -std strict_ansi""... $ac_c" 1>&6
echo 'void f(){}' > conftest.c
if test -z "`${CXX} -std strict_ansi -c conftest.c 2>&1`"; then
echo "$ac_t""yes" 1>&6
CMAKE_ANSI_CXXFLAGS="-std strict_ansi"
else
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
;;
esac
fi
AC_SUBST(CMAKE_ANSI_CXXFLAGS)
...
...
configure
View file @
b5cff36f
...
...
@@ -972,7 +972,19 @@ case $system in
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
;;
;;
OSF1-*)
echo $ac_n "checking whether ${CXX} accepts -std strict_ansi""... $ac_c" 1>&6
echo '
void f
(){}
' > conftest.c
if test -z "`${CXX} -std strict_ansi -c conftest.c 2>&1`"; then
echo "$ac_t""yes" 1>&6
CMAKE_ANSI_CXXFLAGS="-std strict_ansi"
else
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
;;
esac
fi
...
...
@@ -982,7 +994,7 @@ fi
# ansi stream files (without the .h)
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6
echo "configure:9
86
: checking ansi standard C++ stream headers " >&5
echo "configure:9
98
: checking ansi standard C++ stream headers " >&5
rm -rf conftest.*
cat > conftest.cc <<!
#include <iostream>
...
...
@@ -1000,7 +1012,7 @@ fi
# check non-g++ compilers to see if they have std::stringstream
echo $ac_n "checking for ansi standard C++ stringstream ""... $ac_c" 1>&6
echo "configure:10
04
: checking for ansi standard C++ stringstream " >&5
echo "configure:10
16
: checking for ansi standard C++ stringstream " >&5
rm -rf conftest.*
cat > conftest.cc <<!
#include <sstream>
...
...
@@ -1018,7 +1030,7 @@ fi
# check to see if stl is in the std namespace
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6
echo "configure:10
22
: checking ansi standard namespace support " >&5
echo "configure:10
34
: checking ansi standard namespace support " >&5
rm -rf conftest.*
cat > conftest.cc <<!
#include <list>
...
...
@@ -1038,7 +1050,7 @@ fi
# check to see if for scoping is supported
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi for scope support ""... $ac_c" 1>&6
echo "configure:10
42
: checking ansi for scope support " >&5
echo "configure:10
54
: checking ansi for scope support " >&5
rm -rf conftest.*
cat > conftest.cc <<!
void foo() { for(int i;;); for(int i;;); }
...
...
@@ -1060,7 +1072,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:10
64
: checking for $ac_word" >&5
echo "configure:10
76
: checking for $ac_word" >&5
if eval "test \"`echo '$''
{
'ac_cv_path_RUNMAKE'
+set
}
'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
...
...
configure.in
View file @
b5cff36f
...
...
@@ -87,7 +87,19 @@ case $system in
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
;;
;;
OSF1-*)
echo $ac_n "checking whether ${CXX} accepts -std strict_ansi""... $ac_c" 1>&6
echo 'void f(){}' > conftest.c
if test -z "`${CXX} -std strict_ansi -c conftest.c 2>&1`"; then
echo "$ac_t""yes" 1>&6
CMAKE_ANSI_CXXFLAGS="-std strict_ansi"
else
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
;;
esac
fi
AC_SUBST(CMAKE_ANSI_CFLAGS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment