Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
53a88e23
Unverified
Commit
53a88e23
authored
Dec 16, 2020
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check for libatomic in configure
parent
c2069a12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
1 deletions
+48
-1
GNUmakefile.in
+0
-1
configure
+46
-0
configure.ac
+2
-0
No files found.
GNUmakefile.in
View file @
53a88e23
...
...
@@ -31,7 +31,6 @@ CXX = @CXX@
CXXFLAGS
=
@CPPFLAGS@ @CXXFLAGS@ @BOOST_CPPFLAGS@
LDFLAGS
=
@LDFLAGS@ @LIBS@ @BOOST_LDFLAGS@
LIBS
=
@LIBS@
\
-latomic
\
@BOOST_IOSTREAMS_LIB@
\
@BOOST_DATE_TIME_LIB@
...
...
configure
View file @
53a88e23
...
...
@@ -17103,6 +17103,52 @@ fi
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for atomic_flag_clear in -latomic"
>
&5
$as_echo_n
"checking for atomic_flag_clear in -latomic... "
>
&6
;
}
if
${
ac_cv_lib_atomic_atomic_flag_clear
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_check_lib_save_LIBS
=
$LIBS
LIBS
=
"-latomic
$LIBS
"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char atomic_flag_clear ();
int
main ()
{
return atomic_flag_clear ();
;
return 0;
}
_ACEOF
if
ac_fn_cxx_try_link
"
$LINENO
"
;
then
:
ac_cv_lib_atomic_atomic_flag_clear
=
yes
else
ac_cv_lib_atomic_atomic_flag_clear
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_atomic_atomic_flag_clear
"
>
&5
$as_echo
"
$ac_cv_lib_atomic_atomic_flag_clear
"
>
&6
;
}
if
test
"x
$ac_cv_lib_atomic_atomic_flag_clear
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBATOMIC 1
_ACEOF
LIBS
=
"-latomic
$LIBS
"
fi
ac_config_files
=
"
$ac_config_files
GNUmakefile libcifpp.pc"
cat
>
confcache
<<
\
_ACEOF
...
...
configure.ac
View file @
53a88e23
...
...
@@ -109,5 +109,7 @@ AX_BOOST_BASE([1.71], [], [
AX_BOOST_IOSTREAMS
AX_BOOST_DATE_TIME
AC_CHECK_LIB([atomic], [atomic_flag_clear])
AC_OUTPUT([GNUmakefile
libcifpp.pc])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment