Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
mpim-sw
libcdi
Commits
1b34a570
Commit
1b34a570
authored
1 year ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
Compatibility with Autoconf 2.70+
parent
ef789b53
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!71
Develop
,
!69
Autotools compatibility
Pipeline
#47612
passed
1 year ago
Stage: external
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+20
-5
20 additions, 5 deletions
configure.ac
with
20 additions
and
5 deletions
configure.ac
+
20
−
5
View file @
1b34a570
...
...
@@ -21,11 +21,26 @@ AM_INIT_AUTOMAKE([1.16.1 foreign])
AM_MAINTAINER_MODE([enable])
AM_EXTRA_RECURSIVE_TARGETS([examples])
m4_pushdef([_AC_PROG_CC_C89],
[rm -rf conftest.dSYM # needed when configured on MacOS with CFLAGS='-g'
_AC_PROG_CC_C99([], [AC_MSG_FAILURE([C compiler does not support ISO C99])])])dnl
AC_PROG_CC
m4_popdef([_AC_PROG_CC_C89])dnl
dnl Tests for the C compiler:
dnl Make sure conftest.dSYM is removed when configured on MacOS with
dnl CFLAGS='-g':
m4_pushdef([_AM_PROG_CC_C_O], m4_bpatsubst(m4_dquote(m4_defn([_AM_PROG_CC_C_O])),
[rm -f\(.* conftest\*.*\)], [rm -rf\1]))dnl
dnl Check for ISO C99 support
dnl (Autoconf 2.69- and 2.70+ have different documented ways for this):
m4_case(m4_version_compare(AC_AUTOCONF_VERSION,[2.70]),
[-1], [AC_PROG_CC_C99],
[0], [dnl
dnl Fix a bug in Autoconf 2.70 (see https://savannah.gnu.org/support/?110396):
m4_pushdef([_AC_PROG_CC_C99],
m4_bpatsubst(m4_dquote(m4_defn([_AC_PROG_CC_C99])),
[\[ac_c_conftest_c89_program\]], [[ac_c_conftest_c99_program]]))dnl
AC_PROG_CC
m4_popdef([_AC_PROG_CC_C99])],
[1], [AC_PROG_CC])
AS_VAR_IF([ac_cv_prog_cc_c99], [no],
[AC_MSG_FAILURE([unable to detect C compiler flag needed to accept ISO C99])])
m4_popdef([AC_PROG_CC_C_O])dnl
ACX_PROG_CC_POSIX([2001])
AC_C_RESTRICT
...
...
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