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
a119114a
Commit
a119114a
authored
16 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
split SGI compiler check. One for MIPS C and another for MIPSpro C
parent
430b1a22
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ares/m4/cares-compilers.m4
+52
-10
52 additions, 10 deletions
ares/m4/cares-compilers.m4
m4/curl-compilers.m4
+52
-10
52 additions, 10 deletions
m4/curl-compilers.m4
with
104 additions
and
20 deletions
ares/m4/cares-compilers.m4
+
52
−
10
View file @
a119114a
...
...
@@ -16,7 +16,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
# serial 2
2
# serial 2
3
dnl CARES_CHECK_COMPILER
...
...
@@ -41,7 +41,8 @@ AC_DEFUN([CARES_CHECK_COMPILER], [
CARES_CHECK_COMPILER_INTEL
CARES_CHECK_COMPILER_GNU
CARES_CHECK_COMPILER_LCC
CARES_CHECK_COMPILER_SGI
CARES_CHECK_COMPILER_SGI_MIPSpro_C
CARES_CHECK_COMPILER_SGI_MIPS _C
CARES_CHECK_COMPILER_SUN
CARES_CHECK_COMPILER_TINYC
#
...
...
@@ -238,18 +239,45 @@ AC_DEFUN([CARES_CHECK_COMPILER_LCC], [
])
dnl CARES_CHECK_COMPILER_SGI
dnl CARES_CHECK_COMPILER_SGI
_MIPS_C
dnl -------------------------------------------------
dnl Verify if the C compiler being used is SGI's.
AC_DEFUN([CARES_CHECK_COMPILER_SGI], [
AC_MSG_CHECKING([whether we are using the SGI C compiler])
AC_DEFUN([CARES_CHECK_COMPILER_SGI_MIPS_C], [
AC_REQUIRE([CARES_CHECK_COMPILER_SGI_MIPSpro_C])dnl
AC_MSG_CHECKING([if compiler is SGI MIPS C])
CURL_CHECK_DEF([__GNUC__], [], [silent])
CURL_CHECK_DEF([__sgi], [], [silent])
if test "$curl_cv_have_def___GNUC__" = "no" &&
test "$curl_cv_have_def___sgi" = "yes"; then
test "$curl_cv_have_def___sgi" = "yes" &&
test "$compiler_id" = "unknown"; then
AC_MSG_RESULT([yes])
compiler_id="SGIC"
compiler_id="SGI_MIPS_C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g"
flags_dbg_off="-g0"
flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
flags_opt_yes="-O2"
flags_opt_off="-O0"
else
AC_MSG_RESULT([no])
fi
])
dnl CARES_CHECK_COMPILER_SGI_MIPSpro_C
dnl -------------------------------------------------
dnl Verify if the C compiler being used is SGI's.
AC_DEFUN([CARES_CHECK_COMPILER_SGI_MIPSpro_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])
CURL_CHECK_DEF([_SGI_COMPILER_VERSION], [], [silent])
if test "$curl_cv_have_def___GNUC__" = "no" &&
test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="SGI_MIPSpro_C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g"
flags_dbg_off="-g0"
...
...
@@ -514,7 +542,13 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -n"
;;
#
SGIC)
SGI_MIPS_C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
SGI_MIPSpro_C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
...
...
@@ -786,13 +820,21 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
if test "$want_warnings" = "yes"; then
dnl Highest warning level is double -A, next is single -A.
dnl Due to the big number of warnings this triggers on third
dnl party header files it is impratical for
to activat
e this
dnl party header files it is impratical for
us to us
e this
dnl warning level here. If you want them define it in CFLAGS.
tmp_CFLAGS="$tmp_CFLAGS -A"
fi
;;
#
SGIC)
SGI_MIPS_C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
fi
;;
#
SGI_MIPSpro_C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
...
...
This diff is collapsed.
Click to expand it.
m4/curl-compilers.m4
+
52
−
10
View file @
a119114a
...
...
@@ -22,7 +22,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
# serial 2
1
# serial 2
2
dnl CURL_CHECK_COMPILER
...
...
@@ -47,7 +47,8 @@ AC_DEFUN([CURL_CHECK_COMPILER], [
CURL_CHECK_COMPILER_INTEL
CURL_CHECK_COMPILER_GNU
CURL_CHECK_COMPILER_LCC
CURL_CHECK_COMPILER_SGI
CURL_CHECK_COMPILER_SGI_MIPSpro_C
CURL_CHECK_COMPILER_SGI_MIPS _C
CURL_CHECK_COMPILER_SUN
CURL_CHECK_COMPILER_TINYC
#
...
...
@@ -244,18 +245,45 @@ AC_DEFUN([CURL_CHECK_COMPILER_LCC], [
])
dnl CURL_CHECK_COMPILER_SGI
dnl CURL_CHECK_COMPILER_SGI
_MIPS_C
dnl -------------------------------------------------
dnl Verify if the C compiler being used is SGI's.
AC_DEFUN([CURL_CHECK_COMPILER_SGI], [
AC_MSG_CHECKING([whether we are using the SGI C compiler])
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPS_C], [
AC_REQUIRE([CURL_CHECK_COMPILER_SGI_MIPSpro_C])dnl
AC_MSG_CHECKING([if compiler is SGI MIPS C])
CURL_CHECK_DEF([__GNUC__], [], [silent])
CURL_CHECK_DEF([__sgi], [], [silent])
if test "$curl_cv_have_def___GNUC__" = "no" &&
test "$curl_cv_have_def___sgi" = "yes"; then
test "$curl_cv_have_def___sgi" = "yes" &&
test "$compiler_id" = "unknown"; then
AC_MSG_RESULT([yes])
compiler_id="SGIC"
compiler_id="SGI_MIPS_C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g"
flags_dbg_off="-g0"
flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
flags_opt_yes="-O2"
flags_opt_off="-O0"
else
AC_MSG_RESULT([no])
fi
])
dnl CURL_CHECK_COMPILER_SGI_MIPSpro_C
dnl -------------------------------------------------
dnl Verify if the C compiler being used is SGI's.
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPSpro_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])
CURL_CHECK_DEF([_SGI_COMPILER_VERSION], [], [silent])
if test "$curl_cv_have_def___GNUC__" = "no" &&
test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="SGI_MIPSpro_C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"
flags_dbg_yes="-g"
flags_dbg_off="-g0"
...
...
@@ -520,7 +548,13 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -n"
;;
#
SGIC)
SGI_MIPS_C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
SGI_MIPSpro_C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
...
...
@@ -792,13 +826,21 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
if test "$want_warnings" = "yes"; then
dnl Highest warning level is double -A, next is single -A.
dnl Due to the big number of warnings this triggers on third
dnl party header files it is impratical for
to activat
e this
dnl party header files it is impratical for
us to us
e this
dnl warning level here. If you want them define it in CFLAGS.
tmp_CFLAGS="$tmp_CFLAGS -A"
fi
;;
#
SGIC)
SGI_MIPS_C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
fi
;;
#
SGI_MIPSpro_C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
...
...
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