Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
ae754622
Commit
ae754622
authored
16 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
make naming scheme more consistent across whole file
parent
3ad956e7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ares/m4/cares-compilers.m4
+74
-75
74 additions, 75 deletions
ares/m4/cares-compilers.m4
m4/curl-compilers.m4
+74
-75
74 additions, 75 deletions
m4/curl-compilers.m4
with
148 additions
and
150 deletions
ares/m4/cares-compilers.m4
+
74
−
75
View file @
ae754622
...
...
@@ -16,7 +16,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
# serial 2
4
# serial 2
9
dnl CARES_CHECK_COMPILER
...
...
@@ -35,16 +35,16 @@ AC_DEFUN([CARES_CHECK_COMPILER], [
flags_opt_yes="unknown"
flags_opt_off="unknown"
#
CARES_CHECK_COMPILER_DEC
CARES_CHECK_COMPILER_HP
CARES_CHECK_COMPILER_IBM
CARES_CHECK_COMPILER_INTEL
CARES_CHECK_COMPILER_GNU
CARES_CHECK_COMPILER_DEC
_C
CARES_CHECK_COMPILER_HP
UX_C
CARES_CHECK_COMPILER_IBM
_C
CARES_CHECK_COMPILER_INTEL
_C
CARES_CHECK_COMPILER_GNU
_C
CARES_CHECK_COMPILER_LCC
CARES_CHECK_COMPILER_SGI_MIPS
pro
_C
CARES_CHECK_COMPILER_SGI_MIPS
PRO
_C
CARES_CHECK_COMPILER_SGI_MIPS_C
CARES_CHECK_COMPILER_SUN
CARES_CHECK_COMPILER_TINYC
CARES_CHECK_COMPILER_SUN
PRO_C
CARES_CHECK_COMPILER_TINY
_
C
#
if test "$compiler_id" = "unknown"; then
cat <<_EOF 1>&2
...
...
@@ -64,18 +64,18 @@ _EOF
])
dnl CARES_CHECK_COMPILER_DEC
dnl CARES_CHECK_COMPILER_DEC
_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is DEC
's
.
dnl Verify if compiler being used is DEC
C
.
AC_DEFUN([CARES_CHECK_COMPILER_DEC], [
AC_MSG_CHECKING([
whether we are using the DEC/Compaq C compiler
])
AC_DEFUN([CARES_CHECK_COMPILER_DEC
_C
], [
AC_MSG_CHECKING([
if compiler is DEC/Compaq/HP C
])
CURL_CHECK_DEF([__DECC], [], [silent])
CURL_CHECK_DEF([__DECC_VER], [], [silent])
if test "$curl_cv_have_def___DECC" = "yes" &&
test "$curl_cv_have_def___DECC_VER" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="DECC"
compiler_id="DEC
_
C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g2"
flags_dbg_off="-g0"
...
...
@@ -88,19 +88,18 @@ AC_DEFUN([CARES_CHECK_COMPILER_DEC], [
])
dnl CARES_CHECK_COMPILER_GNU
dnl CARES_CHECK_COMPILER_GNU
_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is GNU
's
.
dnl Verify if compiler being used is GNU
C
.
AC_DEFUN([CARES_CHECK_COMPILER_GNU], [
AC_REQUIRE([CARES_CHECK_COMPILER_INTEL])dnl
#
AC_MSG_CHECKING([whether we are using the GNU C compiler])
AC_DEFUN([CARES_CHECK_COMPILER_GNU_C], [
AC_REQUIRE([CARES_CHECK_COMPILER_INTEL_C])dnl
AC_MSG_CHECKING([if compiler is GNU C])
CURL_CHECK_DEF([__GNUC__], [], [silent])
if test "$curl_cv_have_def___GNUC__" = "yes" &&
test "$compiler_id" = "unknown"; then
AC_MSG_RESULT([yes])
compiler_id="GNUC"
compiler_id="GNU
_
C"
gccver=`$CC -dumpversion`
gccvhi=`echo $gccver | cut -d . -f1`
gccvlo=`echo $gccver | cut -d . -f2`
...
...
@@ -124,16 +123,16 @@ AC_DEFUN([CARES_CHECK_COMPILER_GNU], [
])
dnl CARES_CHECK_COMPILER_HP
dnl CARES_CHECK_COMPILER_HP
UX_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is HP
's
.
dnl Verify if compiler being used is HP
-UX C
.
AC_DEFUN([CARES_CHECK_COMPILER_HP], [
AC_MSG_CHECKING([
whether we are using the HP C compiler
])
AC_DEFUN([CARES_CHECK_COMPILER_HP
UX_C
], [
AC_MSG_CHECKING([
if compiler is HP-UX C
])
CURL_CHECK_DEF([__HP_cc], [], [silent])
if test "$curl_cv_have_def___HP_cc" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="HPUXC"
compiler_id="HP
_
UX
_
C"
flags_dbg_all="-g -s"
flags_dbg_yes="-g"
flags_dbg_off="-s"
...
...
@@ -146,16 +145,16 @@ AC_DEFUN([CARES_CHECK_COMPILER_HP], [
])
dnl CARES_CHECK_COMPILER_IBM
dnl CARES_CHECK_COMPILER_IBM
_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is IBM
's
.
dnl Verify if compiler being used is IBM
C
.
AC_DEFUN([CARES_CHECK_COMPILER_IBM], [
AC_MSG_CHECKING([
whether we are using the IBM C compiler
])
AC_DEFUN([CARES_CHECK_COMPILER_IBM
_C
], [
AC_MSG_CHECKING([
if compiler is IBM C
])
CURL_CHECK_DEF([__IBMC__], [], [silent])
if test "$curl_cv_have_def___IBMC__" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="IBMC"
compiler_id="IBM
_
C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g"
flags_dbg_off=""
...
...
@@ -175,19 +174,19 @@ AC_DEFUN([CARES_CHECK_COMPILER_IBM], [
])
dnl CARES_CHECK_COMPILER_INTEL
dnl CARES_CHECK_COMPILER_INTEL
_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is Intel
's
.
dnl Verify if compiler being used is Intel
C
.
AC_DEFUN([CARES_CHECK_COMPILER_INTEL], [
AC_BEFORE([$0],[CARES_CHECK_COMPILER_GNU])dnl
AC_MSG_CHECKING([
whether we are using the Intel C compiler
])
AC_DEFUN([CARES_CHECK_COMPILER_INTEL
_C
], [
AC_BEFORE([$0],[CARES_CHECK_COMPILER_GNU
_C
])dnl
AC_MSG_CHECKING([
if compiler is Intel C
])
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
AC_MSG_RESULT([yes])
CURL_CHECK_DEF([__unix__], [], [silent])
if test "$curl_cv_have_def___unix__" = "yes"; then
compiler_id="I
CC_unix
"
compiler_id="I
NTEL_UNIX_C
"
flags_dbg_all="-g -g0"
flags_dbg_yes="-g"
flags_dbg_off="-g0"
...
...
@@ -195,7 +194,7 @@ AC_DEFUN([CARES_CHECK_COMPILER_INTEL], [
flags_opt_yes="-O2"
flags_opt_off="-O0"
else
compiler_id="I
CC_windows
"
compiler_id="I
NTEL_WINDOWS_C
"
flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
flags_dbg_all="$flags_dbg_all /debug"
flags_dbg_all="$flags_dbg_all /debug:none"
...
...
@@ -219,10 +218,10 @@ AC_DEFUN([CARES_CHECK_COMPILER_INTEL], [
dnl CARES_CHECK_COMPILER_LCC
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is LCC.
dnl Verify if compiler being used is LCC.
AC_DEFUN([CARES_CHECK_COMPILER_LCC], [
AC_MSG_CHECKING([
whether we are using the LCC C
compiler])
AC_MSG_CHECKING([
if
compiler
is LCC
])
CURL_CHECK_DEF([__LCC__], [], [silent])
if test "$curl_cv_have_def___LCC__" = "yes"; then
AC_MSG_RESULT([yes])
...
...
@@ -241,10 +240,10 @@ AC_DEFUN([CARES_CHECK_COMPILER_LCC], [
dnl CARES_CHECK_COMPILER_SGI_MIPS_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is SGI
's
.
dnl Verify if compiler being used is SGI
MIPS C
.
AC_DEFUN([CARES_CHECK_COMPILER_SGI_MIPS_C], [
AC_REQUIRE([CARES_CHECK_COMPILER_SGI_MIPS
pro
_C])dnl
AC_REQUIRE([CARES_CHECK_COMPILER_SGI_MIPS
PRO
_C])dnl
AC_MSG_CHECKING([if compiler is SGI MIPS C])
CURL_CHECK_DEF([__GNUC__], [], [silent])
CURL_CHECK_DEF([__sgi], [], [silent])
...
...
@@ -265,11 +264,11 @@ AC_DEFUN([CARES_CHECK_COMPILER_SGI_MIPS_C], [
])
dnl CARES_CHECK_COMPILER_SGI_MIPS
pro
_C
dnl CARES_CHECK_COMPILER_SGI_MIPS
PRO
_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is SGI
's
.
dnl Verify if compiler being used is SGI
MIPSpro C
.
AC_DEFUN([CARES_CHECK_COMPILER_SGI_MIPS
pro
_C], [
AC_DEFUN([CARES_CHECK_COMPILER_SGI_MIPS
PRO
_C], [
AC_BEFORE([$0],[CARES_CHECK_COMPILER_SGI_MIPS_C])dnl
AC_MSG_CHECKING([if compiler is SGI MIPSpro C])
CURL_CHECK_DEF([__GNUC__], [], [silent])
...
...
@@ -279,7 +278,7 @@ AC_DEFUN([CARES_CHECK_COMPILER_SGI_MIPSpro_C], [
(test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
AC_MSG_RESULT([yes])
compiler_id="SGI_MIPS
pro
_C"
compiler_id="SGI_MIPS
PRO
_C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g"
flags_dbg_off="-g0"
...
...
@@ -292,16 +291,16 @@ AC_DEFUN([CARES_CHECK_COMPILER_SGI_MIPSpro_C], [
])
dnl CARES_CHECK_COMPILER_SUN
dnl CARES_CHECK_COMPILER_SUN
PRO_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is S
UN's
.
dnl Verify if compiler being used is S
unPro C
.
AC_DEFUN([CARES_CHECK_COMPILER_SUN], [
AC_MSG_CHECKING([
whether we are using the SUN C compiler
])
AC_DEFUN([CARES_CHECK_COMPILER_SUN
PRO_C
], [
AC_MSG_CHECKING([
if compiler is SunPro C
])
CURL_CHECK_DEF([__SUNPRO_C], [], [silent])
if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="SUNC"
compiler_id="SUN
PRO_
C"
flags_dbg_all="-g -s"
flags_dbg_yes="-g"
flags_dbg_off="-s"
...
...
@@ -314,16 +313,16 @@ AC_DEFUN([CARES_CHECK_COMPILER_SUN], [
])
dnl CARES_CHECK_COMPILER_TINYC
dnl CARES_CHECK_COMPILER_TINY
_
C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is T
INY
C.
dnl Verify if compiler being used is T
iny
C.
AC_DEFUN([CARES_CHECK_COMPILER_TINYC], [
AC_MSG_CHECKING([
whether we are using the TinyCC C compiler
])
AC_DEFUN([CARES_CHECK_COMPILER_TINY
_
C], [
AC_MSG_CHECKING([
if compiler is Tiny C
])
CURL_CHECK_DEF([__TINYC__], [], [silent])
if test "$curl_cv_have_def___TINYC__" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="TINYC"
compiler_id="TINY
_
C"
flags_dbg_all="-g -b"
flags_dbg_yes="-g -b"
flags_dbg_off=""
...
...
@@ -457,7 +456,7 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
#
if test "$compiler_id" != "unknown"; then
#
if test "$compiler_id" = "GNUC"; then
if test "$compiler_id" = "GNU
_
C"; then
CARES_CONVERT_INCLUDE_TO_ISYSTEM
fi
#
...
...
@@ -468,7 +467,7 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
#
case "$compiler_id" in
#
DECC)
DEC
_
C)
#
dnl Select strict ANSI C compiler mode
tmp_CFLAGS="$tmp_CFLAGS -std1"
...
...
@@ -480,13 +479,13 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
;;
#
GNUC)
GNU
_
C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
HPUXC)
HP
_
UX
_
C)
#
dnl Disallow run-time dereferencing of null pointers
tmp_CFLAGS="$tmp_CFLAGS -z"
...
...
@@ -496,7 +495,7 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
;;
#
IBMC)
IBM
_
C)
#
dnl Ensure that compiler optimizations are always thread-safe.
tmp_CFLAGS="$tmp_CFLAGS -qthreaded"
...
...
@@ -510,7 +509,7 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -qhalt=e"
;;
#
I
CC_unix
)
I
NTEL_UNIX_C
)
#
dnl On unix this compiler uses gcc's header files, so
dnl we select ANSI C89 dialect plus GNU extensions.
...
...
@@ -532,7 +531,7 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
;;
#
I
CC_windows
)
I
NTEL_WINDOWS_C
)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
...
...
@@ -550,19 +549,19 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
SGI_MIPS
pro
_C)
SGI_MIPS
PRO
_C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
SUNC)
SUN
PRO_
C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
TINYC)
TINY
_
C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
...
...
@@ -731,7 +730,7 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
#
case "$compiler_id" in
#
DECC)
DEC
_
C)
#
if test "$want_warnings" = "yes"; then
dnl Select a higher warning level than default level2
...
...
@@ -739,7 +738,7 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
GNUC)
GNU
_
C)
#
if test "$want_warnings" = "yes"; then
dnl Do not enable -pedantic when cross-compiling with a gcc older
...
...
@@ -805,7 +804,7 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
HPUXC)
HP
_
UX
_
C)
#
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
...
...
@@ -817,13 +816,13 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
IBMC)
IBM
_
C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
I
CC_unix
)
I
NTEL_UNIX_C
)
#
if test "$want_warnings" = "yes"; then
if test "$compiler_num" -gt "600"; then
...
...
@@ -835,7 +834,7 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
I
CC_windows
)
I
NTEL_WINDOWS_C
)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
...
...
@@ -860,7 +859,7 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
SGI_MIPS
pro
_C)
SGI_MIPS
PRO
_C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
...
...
@@ -871,7 +870,7 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
SUNC)
SUN
PRO_
C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
...
...
@@ -879,7 +878,7 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
TINYC)
TINY
_
C)
#
if test "$want_warnings" = "yes"; then
dnl Activate all warnings
...
...
This diff is collapsed.
Click to expand it.
m4/curl-compilers.m4
+
74
−
75
View file @
ae754622
...
...
@@ -22,7 +22,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
# serial 2
3
# serial 2
8
dnl CURL_CHECK_COMPILER
...
...
@@ -41,16 +41,16 @@ AC_DEFUN([CURL_CHECK_COMPILER], [
flags_opt_yes="unknown"
flags_opt_off="unknown"
#
CURL_CHECK_COMPILER_DEC
CURL_CHECK_COMPILER_HP
CURL_CHECK_COMPILER_IBM
CURL_CHECK_COMPILER_INTEL
CURL_CHECK_COMPILER_GNU
CURL_CHECK_COMPILER_DEC
_C
CURL_CHECK_COMPILER_HP
UX_C
CURL_CHECK_COMPILER_IBM
_C
CURL_CHECK_COMPILER_INTEL
_C
CURL_CHECK_COMPILER_GNU
_C
CURL_CHECK_COMPILER_LCC
CURL_CHECK_COMPILER_SGI_MIPS
pro
_C
CURL_CHECK_COMPILER_SGI_MIPS
PRO
_C
CURL_CHECK_COMPILER_SGI_MIPS_C
CURL_CHECK_COMPILER_SUN
CURL_CHECK_COMPILER_TINYC
CURL_CHECK_COMPILER_SUN
PRO_C
CURL_CHECK_COMPILER_TINY
_
C
#
if test "$compiler_id" = "unknown"; then
cat <<_EOF 1>&2
...
...
@@ -70,18 +70,18 @@ _EOF
])
dnl CURL_CHECK_COMPILER_DEC
dnl CURL_CHECK_COMPILER_DEC
_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is DEC
's
.
dnl Verify if compiler being used is DEC
C
.
AC_DEFUN([CURL_CHECK_COMPILER_DEC], [
AC_MSG_CHECKING([
whether we are using the DEC/Compaq C compiler
])
AC_DEFUN([CURL_CHECK_COMPILER_DEC
_C
], [
AC_MSG_CHECKING([
if compiler is DEC/Compaq/HP C
])
CURL_CHECK_DEF([__DECC], [], [silent])
CURL_CHECK_DEF([__DECC_VER], [], [silent])
if test "$curl_cv_have_def___DECC" = "yes" &&
test "$curl_cv_have_def___DECC_VER" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="DECC"
compiler_id="DEC
_
C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g2"
flags_dbg_off="-g0"
...
...
@@ -94,19 +94,18 @@ AC_DEFUN([CURL_CHECK_COMPILER_DEC], [
])
dnl CURL_CHECK_COMPILER_GNU
dnl CURL_CHECK_COMPILER_GNU
_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is GNU
's
.
dnl Verify if compiler being used is GNU
C
.
AC_DEFUN([CURL_CHECK_COMPILER_GNU], [
AC_REQUIRE([CURL_CHECK_COMPILER_INTEL])dnl
#
AC_MSG_CHECKING([whether we are using the GNU C compiler])
AC_DEFUN([CURL_CHECK_COMPILER_GNU_C], [
AC_REQUIRE([CURL_CHECK_COMPILER_INTEL_C])dnl
AC_MSG_CHECKING([if compiler is GNU C])
CURL_CHECK_DEF([__GNUC__], [], [silent])
if test "$curl_cv_have_def___GNUC__" = "yes" &&
test "$compiler_id" = "unknown"; then
AC_MSG_RESULT([yes])
compiler_id="GNUC"
compiler_id="GNU
_
C"
gccver=`$CC -dumpversion`
gccvhi=`echo $gccver | cut -d . -f1`
gccvlo=`echo $gccver | cut -d . -f2`
...
...
@@ -130,16 +129,16 @@ AC_DEFUN([CURL_CHECK_COMPILER_GNU], [
])
dnl CURL_CHECK_COMPILER_HP
dnl CURL_CHECK_COMPILER_HP
UX_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is HP
's
.
dnl Verify if compiler being used is HP
-UX C
.
AC_DEFUN([CURL_CHECK_COMPILER_HP], [
AC_MSG_CHECKING([
whether we are using the HP C compiler
])
AC_DEFUN([CURL_CHECK_COMPILER_HP
UX_C
], [
AC_MSG_CHECKING([
if compiler is HP-UX C
])
CURL_CHECK_DEF([__HP_cc], [], [silent])
if test "$curl_cv_have_def___HP_cc" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="HPUXC"
compiler_id="HP
_
UX
_
C"
flags_dbg_all="-g -s"
flags_dbg_yes="-g"
flags_dbg_off="-s"
...
...
@@ -152,16 +151,16 @@ AC_DEFUN([CURL_CHECK_COMPILER_HP], [
])
dnl CURL_CHECK_COMPILER_IBM
dnl CURL_CHECK_COMPILER_IBM
_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is IBM
's
.
dnl Verify if compiler being used is IBM
C
.
AC_DEFUN([CURL_CHECK_COMPILER_IBM], [
AC_MSG_CHECKING([
whether we are using the IBM C compiler
])
AC_DEFUN([CURL_CHECK_COMPILER_IBM
_C
], [
AC_MSG_CHECKING([
if compiler is IBM C
])
CURL_CHECK_DEF([__IBMC__], [], [silent])
if test "$curl_cv_have_def___IBMC__" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="IBMC"
compiler_id="IBM
_
C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g"
flags_dbg_off=""
...
...
@@ -181,19 +180,19 @@ AC_DEFUN([CURL_CHECK_COMPILER_IBM], [
])
dnl CURL_CHECK_COMPILER_INTEL
dnl CURL_CHECK_COMPILER_INTEL
_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is Intel
's
.
dnl Verify if compiler being used is Intel
C
.
AC_DEFUN([CURL_CHECK_COMPILER_INTEL], [
AC_BEFORE([$0],[CURL_CHECK_COMPILER_GNU])dnl
AC_MSG_CHECKING([
whether we are using the Intel C compiler
])
AC_DEFUN([CURL_CHECK_COMPILER_INTEL
_C
], [
AC_BEFORE([$0],[CURL_CHECK_COMPILER_GNU
_C
])dnl
AC_MSG_CHECKING([
if compiler is Intel C
])
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
AC_MSG_RESULT([yes])
CURL_CHECK_DEF([__unix__], [], [silent])
if test "$curl_cv_have_def___unix__" = "yes"; then
compiler_id="I
CC_unix
"
compiler_id="I
NTEL_UNIX_C
"
flags_dbg_all="-g -g0"
flags_dbg_yes="-g"
flags_dbg_off="-g0"
...
...
@@ -201,7 +200,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_INTEL], [
flags_opt_yes="-O2"
flags_opt_off="-O0"
else
compiler_id="I
CC_windows
"
compiler_id="I
NTEL_WINDOWS_C
"
flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
flags_dbg_all="$flags_dbg_all /debug"
flags_dbg_all="$flags_dbg_all /debug:none"
...
...
@@ -225,10 +224,10 @@ AC_DEFUN([CURL_CHECK_COMPILER_INTEL], [
dnl CURL_CHECK_COMPILER_LCC
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is LCC.
dnl Verify if compiler being used is LCC.
AC_DEFUN([CURL_CHECK_COMPILER_LCC], [
AC_MSG_CHECKING([
whether we are using the LCC C
compiler])
AC_MSG_CHECKING([
if
compiler
is LCC
])
CURL_CHECK_DEF([__LCC__], [], [silent])
if test "$curl_cv_have_def___LCC__" = "yes"; then
AC_MSG_RESULT([yes])
...
...
@@ -247,10 +246,10 @@ AC_DEFUN([CURL_CHECK_COMPILER_LCC], [
dnl CURL_CHECK_COMPILER_SGI_MIPS_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is SGI
's
.
dnl Verify if compiler being used is SGI
MIPS C
.
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPS_C], [
AC_REQUIRE([CURL_CHECK_COMPILER_SGI_MIPS
pro
_C])dnl
AC_REQUIRE([CURL_CHECK_COMPILER_SGI_MIPS
PRO
_C])dnl
AC_MSG_CHECKING([if compiler is SGI MIPS C])
CURL_CHECK_DEF([__GNUC__], [], [silent])
CURL_CHECK_DEF([__sgi], [], [silent])
...
...
@@ -271,11 +270,11 @@ AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPS_C], [
])
dnl CURL_CHECK_COMPILER_SGI_MIPS
pro
_C
dnl CURL_CHECK_COMPILER_SGI_MIPS
PRO
_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is SGI
's
.
dnl Verify if compiler being used is SGI
MIPSpro C
.
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPS
pro
_C], [
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPS
PRO
_C], [
AC_BEFORE([$0],[CURL_CHECK_COMPILER_SGI_MIPS_C])dnl
AC_MSG_CHECKING([if compiler is SGI MIPSpro C])
CURL_CHECK_DEF([__GNUC__], [], [silent])
...
...
@@ -285,7 +284,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPSpro_C], [
(test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
AC_MSG_RESULT([yes])
compiler_id="SGI_MIPS
pro
_C"
compiler_id="SGI_MIPS
PRO
_C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g"
flags_dbg_off="-g0"
...
...
@@ -298,16 +297,16 @@ AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPSpro_C], [
])
dnl CURL_CHECK_COMPILER_SUN
dnl CURL_CHECK_COMPILER_SUN
PRO_C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is S
UN's
.
dnl Verify if compiler being used is S
unPro C
.
AC_DEFUN([CURL_CHECK_COMPILER_SUN], [
AC_MSG_CHECKING([
whether we are using the SUN C compiler
])
AC_DEFUN([CURL_CHECK_COMPILER_SUN
PRO_C
], [
AC_MSG_CHECKING([
if compiler is SunPro C
])
CURL_CHECK_DEF([__SUNPRO_C], [], [silent])
if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="SUNC"
compiler_id="SUN
PRO_
C"
flags_dbg_all="-g -s"
flags_dbg_yes="-g"
flags_dbg_off="-s"
...
...
@@ -320,16 +319,16 @@ AC_DEFUN([CURL_CHECK_COMPILER_SUN], [
])
dnl CURL_CHECK_COMPILER_TINYC
dnl CURL_CHECK_COMPILER_TINY
_
C
dnl -------------------------------------------------
dnl Verify if
the C
compiler being used is T
INY
C.
dnl Verify if compiler being used is T
iny
C.
AC_DEFUN([CURL_CHECK_COMPILER_TINYC], [
AC_MSG_CHECKING([
whether we are using the TinyCC C compiler
])
AC_DEFUN([CURL_CHECK_COMPILER_TINY
_
C], [
AC_MSG_CHECKING([
if compiler is Tiny C
])
CURL_CHECK_DEF([__TINYC__], [], [silent])
if test "$curl_cv_have_def___TINYC__" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="TINYC"
compiler_id="TINY
_
C"
flags_dbg_all="-g -b"
flags_dbg_yes="-g -b"
flags_dbg_off=""
...
...
@@ -463,7 +462,7 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
#
if test "$compiler_id" != "unknown"; then
#
if test "$compiler_id" = "GNUC"; then
if test "$compiler_id" = "GNU
_
C"; then
CURL_CONVERT_INCLUDE_TO_ISYSTEM
fi
#
...
...
@@ -474,7 +473,7 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
#
case "$compiler_id" in
#
DECC)
DEC
_
C)
#
dnl Select strict ANSI C compiler mode
tmp_CFLAGS="$tmp_CFLAGS -std1"
...
...
@@ -486,13 +485,13 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
;;
#
GNUC)
GNU
_
C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
HPUXC)
HP
_
UX
_
C)
#
dnl Disallow run-time dereferencing of null pointers
tmp_CFLAGS="$tmp_CFLAGS -z"
...
...
@@ -502,7 +501,7 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
;;
#
IBMC)
IBM
_
C)
#
dnl Ensure that compiler optimizations are always thread-safe.
tmp_CFLAGS="$tmp_CFLAGS -qthreaded"
...
...
@@ -516,7 +515,7 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -qhalt=e"
;;
#
I
CC_unix
)
I
NTEL_UNIX_C
)
#
dnl On unix this compiler uses gcc's header files, so
dnl we select ANSI C89 dialect plus GNU extensions.
...
...
@@ -538,7 +537,7 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
;;
#
I
CC_windows
)
I
NTEL_WINDOWS_C
)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
...
...
@@ -556,19 +555,19 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
SGI_MIPS
pro
_C)
SGI_MIPS
PRO
_C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
SUNC)
SUN
PRO_
C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
TINYC)
TINY
_
C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
...
...
@@ -737,7 +736,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
#
case "$compiler_id" in
#
DECC)
DEC
_
C)
#
if test "$want_warnings" = "yes"; then
dnl Select a higher warning level than default level2
...
...
@@ -745,7 +744,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
GNUC)
GNU
_
C)
#
if test "$want_warnings" = "yes"; then
dnl Do not enable -pedantic when cross-compiling with a gcc older
...
...
@@ -811,7 +810,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
HPUXC)
HP
_
UX
_
C)
#
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
...
...
@@ -823,13 +822,13 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
IBMC)
IBM
_
C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
I
CC_unix
)
I
NTEL_UNIX_C
)
#
if test "$want_warnings" = "yes"; then
if test "$compiler_num" -gt "600"; then
...
...
@@ -841,7 +840,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
I
CC_windows
)
I
NTEL_WINDOWS_C
)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
...
...
@@ -866,7 +865,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
SGI_MIPS
pro
_C)
SGI_MIPS
PRO
_C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
...
...
@@ -877,7 +876,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
SUNC)
SUN
PRO_
C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
...
...
@@ -885,7 +884,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi
;;
#
TINYC)
TINY
_
C)
#
if test "$want_warnings" = "yes"; then
dnl Activate all warnings
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment