mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-03 11:01:30 +00:00
parent
ca0f64099b
commit
c5885699f0
37 changed files with 2709 additions and 279 deletions
16
configure.ac
16
configure.ac
|
@ -67,6 +67,8 @@ AC_CANONICAL_HOST
|
|||
build_windows=no
|
||||
build_netbsd=no
|
||||
build_dragonflybsd=no
|
||||
build_freebsd=no
|
||||
build_linux=no
|
||||
|
||||
case "${host_os}" in
|
||||
cygwin*|mingw*)
|
||||
|
@ -78,6 +80,12 @@ case "${host_os}" in
|
|||
dragonfly*)
|
||||
build_dragonflybsd=yes
|
||||
;;
|
||||
freebsd*)
|
||||
build_freebsd=yes
|
||||
;;
|
||||
linux*)
|
||||
build_linux=yes
|
||||
;;
|
||||
esac
|
||||
|
||||
if test "$build_windows" = "no"; then
|
||||
|
@ -88,6 +96,14 @@ if test "$build_netbsd" = "yes" || test "$build_dragonflybsd" = "yes"; then
|
|||
AM_LDFLAGS="$AM_LDFLAGS -pthread"
|
||||
fi
|
||||
|
||||
if test "$build_linux" = "yes"; then
|
||||
AC_CHECK_FUNCS([getauxval])
|
||||
fi
|
||||
|
||||
if test "$build_freebsd" = "yes"; then
|
||||
AC_CHECK_FUNCS([elf_aux_info])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([WINDOWS], [test "$build_windows" = "yes"])
|
||||
|
||||
AC_SUBST(AM_CPPFLAGS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue