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
82b2223f
Commit
82b2223f
authored
5 years ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
Check whether libtool works right after switching to it at the configure-time.
parent
473ab10e
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
configure.ac
+13
-0
13 additions, 0 deletions
configure.ac
m4/kpse_libtool.m4
+14
-0
14 additions, 0 deletions
m4/kpse_libtool.m4
with
27 additions
and
0 deletions
configure.ac
+
13
−
0
View file @
82b2223f
...
...
@@ -51,6 +51,19 @@ LT_INIT([pic-only])
dnl _KPSE_USE_LIBTOOL ensures libtool is also used for configure-time tests,
dnl which deduces dependent libraries automatically
_KPSE_USE_LIBTOOL
_KPSE_CHECK_LIBTOOL
AS_IF([test -n "$FC" && test "X$FC" != Xno],
[AC_LANG_PUSH([Fortran])
_KPSE_CHECK_LIBTOOL
AC_LANG_POP([Fortran])])
AS_IF([test -n "$F77" && test "X$F77" != Xno],
[AC_LANG_PUSH([Fortran 77])
_KPSE_CHECK_LIBTOOL
AC_LANG_POP([Fortran 77])])
AS_IF([test -n "$CXX" && test "X$CXX" != Xno],
[AC_LANG_PUSH([C++])
_KPSE_CHECK_LIBTOOL
AC_LANG_POP([C++])])
# -----------------------------------------------------------------------
# Check endianess of system
...
...
This diff is collapsed.
Click to expand it.
m4/kpse_libtool.m4
+
14
−
0
View file @
82b2223f
...
...
@@ -35,3 +35,17 @@ AC_PROVIDE_IFELSE([AC_PROG_F77],
])])[]dnl
AC_LANG(_AC_LANG)[]dnl
]) # _KPSE_USE_LIBTOOL
# _KPSE_CHECK_LIBTOOL([ACTION-IF-SUCCESS], [ACTION-IF-FAILURE = FAILURE])
# Check that we can link programs written in the current language with libtool
# -------------------
AC_DEFUN([_KPSE_CHECK_LIBTOOL],
[m4_pushdef([acx_cache_var], [acx_cv_libtool_[]_AC_LANG_ABBREV[]_works])dnl
AC_CACHE_CHECK([whether libtool can link _AC_LANG programs],
[acx_cache_var],
[acx_cache_var=no
AC_LINK_IFELSE([AC_LANG_PROGRAM], [acx_cache_var=yes])])
AS_VAR_IF([acx_cache_var], [no], [m4_default([$2],
[AC_MSG_FAILURE([unable to link a _AC_LANG program using libtool])])],
[$1])
m4_popdef([acx_cache_var])])
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