chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use legacy getifaddrs() on GNU/kFreeBSD
[elogind.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index 38cd58fb4192d95dfe43200d516973be3230167f..30ebc44a803795b4973a6287aa67369df375c34a 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-33,6
+33,13
@@
AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/nss-myhostname/])
ac_default_prefix="/"
+AC_CANONICAL_HOST
+case "$host_os" in
+ linux*) legacy=false ;;
+ *) legacy=true ;;
+esac
+AM_CONDITIONAL([LEGACY], [test x$legacy = xtrue])
+
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99