AC_MSG_CHECKING(if kppp's headers are installed) # this is a little piece of code out of kppp. If it doesn't compile, # kppp is not good for this system. It doesn't do anything, but enough # to fail ;) AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_TRY_LINK([ #if defined(__osf__) || defined(__svr4__) #define _POSIX_PII_SOCKET extern "C" int sethostname(char *name, int name_len); #endif #include #include #ifdef __DragonFly__ #include #else #include #endif #include #ifdef __svr4__ #include #include /* SVR4, Solaris 2, etc. */ #else #include #include #include #ifndef STREAMS #if defined(linux) #ifndef aligned_u64 #define aligned_u64 unsigned long long __attribute__((aligned(8))) #endif #include #elif defined(__DragonFly__) #include #else #include /* BSD, NeXT, etc. */ #endif #else /* SunOS 4, AIX 4, OSF/1, etc. */ #include #include #endif #endif ],[ sethostname("", 1); /* never run this program! :*/ ], [ AC_MSG_RESULT(yes) ], [ DO_NOT_COMPILE="$DO_NOT_COMPILE kppp" AC_MSG_RESULT(no) ]) AC_LANG_RESTORE AC_CHECK_HEADERS(sys/param.h string.h)