chiark / gitweb /
Use legacy getifaddrs() on GNU/kFreeBSD
[elogind.git] / configure.ac
index 38cd58fb4192d95dfe43200d516973be3230167f..30ebc44a803795b4973a6287aa67369df375c34a 100644 (file)
@@ -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