summaryrefslogtreecommitdiff
path: root/ychat-0.6/configure.in
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:41 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:41 +0200
commit9cd3ccffd5372dfde3af478e3f832f18db4be3f1 (patch)
tree631c295a4a4a16b57502b847626763a279bf6df7 /ychat-0.6/configure.in
parent13aaf70af703748fe096e0664c305cd202637ad2 (diff)
tagging tags
Diffstat (limited to 'ychat-0.6/configure.in')
-rw-r--r--ychat-0.6/configure.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/ychat-0.6/configure.in b/ychat-0.6/configure.in
new file mode 100644
index 0000000..da45484
--- /dev/null
+++ b/ychat-0.6/configure.in
@@ -0,0 +1,25 @@
+AC_INIT(Makefile.in)
+AC_PROG_CPP
+AC_PROG_CXX
+
+AC_CHECK_EXTRA
+AC_SEARCH_LIBS(dlopen, dl)
+if test "$ac_cv_search_dlopen" = "-ldl"; then
+LDFLAGS="$ac_cv_search_dlopen"
+fi
+
+
+AC_HEADER_STDC
+AC_CHECK_HEADERS(unistd.h)
+AC_CHECK_HEADERS(string.h)
+AC_CHECK_HEADERS(pthread.h,,echo "-> Error: pthread.h could not be found. Try --with-extra-includes=<dirs>"; exit 1;)
+AC_CHECK_HEADERS(mysql/mysql.h,,echo "-> Error: mysql.h could not be found. Try --with-extra-includes=<dirs>"; exit 1;)
+AC_CHECK_LIB(mysqlclient,mysql_init,,"-> Error: libmysqlclient could not be found. Try --with-extra-libs=<dirs>"; exit 1;)
+AC_CHECK_HEADERS(netinet/in.h,,echo "-> Error: netinet/in.h could not be found. Try --with-extra-includes=<dirs>"; exit 1;)
+AC_CHECK_HEADERS(sys/time.h,,echo "-> Error: sys/time.h could not be found. Try --with-extra-includes=<dirs>"; exit 1;)
+AC_CHECK_LIB(ncurses,newwin,,"-> Error: libncurses could not be found. Try --with-extra-libs=<dirs>";exit 1;)
+AC_CHECK_HEADERS(ncurses.h,,echo "-> Error ncurses.h could not be found. Try --with-extra-includes=<dirs"; exit1;)
+AC_C_CONST
+AC_C_INLINE
+AC_OUTPUT(Makefile)
+echo "You are now ready to compile. Type make"