summaryrefslogtreecommitdiffstats
path: root/kppp/configure.in.in
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kppp/configure.in.in
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/configure.in.in')
-rw-r--r--kppp/configure.in.in53
1 files changed, 53 insertions, 0 deletions
diff --git a/kppp/configure.in.in b/kppp/configure.in.in
new file mode 100644
index 00000000..867d5f07
--- /dev/null
+++ b/kppp/configure.in.in
@@ -0,0 +1,53 @@
+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 <unistd.h>
+#include <arpa/inet.h>
+#ifdef __DragonFly__
+#include <net/ppp_layer/ppp_defs.h>
+#else
+#include <net/ppp_defs.h>
+#endif
+#include <netinet/in.h>
+
+#ifdef __svr4__
+ #include <sys/stropts.h>
+ #include <net/pppio.h> /* SVR4, Solaris 2, etc. */
+
+#else
+ #include <sys/time.h>
+ #include <sys/socket.h>
+ #include <net/if.h>
+
+ #ifndef STREAMS
+
+ #if defined(linux)
+ #include <linux/if_ppp.h>
+ #elif defined(__DragonFly__)
+ #include <net/ppp/if_ppp.h>
+ #else
+ #include <net/if_ppp.h> /* BSD, NeXT, etc. */
+ #endif
+
+ #else /* SunOS 4, AIX 4, OSF/1, etc. */
+ #include <sys/stream.h>
+ #include <net/ppp_str.h>
+ #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)