mirror of
https://github.com/nmap/nmap.git
synced 2026-01-07 06:59:03 +00:00
close to 3.92 release
This commit is contained in:
22
configure
vendored
22
configure
vendored
@@ -2680,7 +2680,7 @@ echo "$as_me: error: Could not locate a C++ compiler. If it exists, add it to yo
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
|
||||
nmap_gcc_mayor_version=0
|
||||
nmap_gcc_major_version=0
|
||||
echo "$as_me:$LINENO: checking whether the compiler is gcc 4 or greater" >&5
|
||||
echo $ECHO_N "checking whether the compiler is gcc 4 or greater... $ECHO_C" >&6
|
||||
if test x"$GXX" = xno; then
|
||||
@@ -2693,22 +2693,22 @@ else
|
||||
else
|
||||
our_gcc="$ac_cv_prog_CC"
|
||||
fi
|
||||
# new mayor versions must be added here
|
||||
# new major versions must be added here
|
||||
case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
|
||||
*4.)
|
||||
nmap_gcc_mayor_version=4
|
||||
nmap_gcc_major_version=4
|
||||
;;
|
||||
*3)
|
||||
nmap_gcc_mayor_version=3
|
||||
*3.)
|
||||
nmap_gcc_major_version=3
|
||||
;;
|
||||
*2)
|
||||
nmap_gcc_mayor_version=2
|
||||
*2.)
|
||||
nmap_gcc_major_version=2
|
||||
;;
|
||||
*1)
|
||||
nmap_gcc_mayor_version=1
|
||||
*1.)
|
||||
nmap_gcc_major_version=1
|
||||
;;
|
||||
esac
|
||||
if test "$nmap_gcc_mayor_version" -ge 4; then
|
||||
if test "$nmap_gcc_major_version" -ge 4; then
|
||||
echo "$as_me:$LINENO: result: yes" >&5
|
||||
echo "${ECHO_T}yes" >&6
|
||||
else
|
||||
@@ -2718,7 +2718,7 @@ echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
|
||||
# Remember that all following tests will run with this CXXFLAGS by default
|
||||
if test "$nmap_gcc_mayor_version" -ge 4; then
|
||||
if test "$nmap_gcc_major_version" -ge 4; then
|
||||
CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user