mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 02:43:01 +01:00
Fix configure script for mingw32
Note: toxic itself will still not build because the code does not have the appropriate ifdefs and a WIN32 specific implementation.
This commit is contained in:
parent
08f21e0189
commit
732d05c04e
19
configure.ac
19
configure.ac
@ -113,7 +113,7 @@ AC_CHECK_FUNCS(
|
|||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
|
|
||||||
if test -n "$PKG_CONFIG"; then
|
if test -n "$PKG_CONFIG"; then
|
||||||
if test "$WIN32" != "xyes"; then
|
if test "x$WIN32" != "xyes"; then
|
||||||
PKG_CHECK_MODULES([NCURSES], [ncursesw],
|
PKG_CHECK_MODULES([NCURSES], [ncursesw],
|
||||||
[
|
[
|
||||||
NCURSES_FOUND="yes"
|
NCURSES_FOUND="yes"
|
||||||
@ -132,7 +132,7 @@ else
|
|||||||
AC_MSG_WARN([pkg-config was not found on your sytem])
|
AC_MSG_WARN([pkg-config was not found on your sytem])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (test "x$NCURSES_FOUND" = "xno") && (test "$WIN32" != "xyes"); then
|
if (test "x$NCURSES_FOUND" = "xno") && (test "x$WIN32" != "xyes"); then
|
||||||
AC_PATH_PROG([CURSES_CONFIG], [ncursesw5-config], [no])
|
AC_PATH_PROG([CURSES_CONFIG], [ncursesw5-config], [no])
|
||||||
if test "x$CURSES_CONFIG" != "xno"; then
|
if test "x$CURSES_CONFIG" != "xno"; then
|
||||||
AC_MSG_CHECKING(ncurses cflags)
|
AC_MSG_CHECKING(ncurses cflags)
|
||||||
@ -150,7 +150,8 @@ if (test "x$NCURSES_FOUND" = "xno") && (test "$WIN32" != "xyes"); then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (test "x$NCURSES_FOUND" = "xno") && (test "$WIN32" != "xyes"); then
|
if (test "x$NCURSES_FOUND" = "xno") && (test "x$WIN32" != "xyes"); then
|
||||||
|
unset ac_cv_path_CURSES_CONFIG
|
||||||
AC_PATH_PROG([CURSES_CONFIG], [ncursesw5.4-config], [no])
|
AC_PATH_PROG([CURSES_CONFIG], [ncursesw5.4-config], [no])
|
||||||
if test "x$CURSES_CONFIG" != "xno"; then
|
if test "x$CURSES_CONFIG" != "xno"; then
|
||||||
AC_MSG_CHECKING(ncurses cflags)
|
AC_MSG_CHECKING(ncurses cflags)
|
||||||
@ -168,7 +169,8 @@ if (test "x$NCURSES_FOUND" = "xno") && (test "$WIN32" != "xyes"); then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (test "x$NCURSES_FOUND" = "xno") && (test "$WIN32" != "xyes"); then
|
if (test "x$NCURSES_FOUND" = "xno") && (test "x$WIN32" != "xyes"); then
|
||||||
|
unset ac_cv_path_CURSES_CONFIG
|
||||||
AC_PATH_PROG([CURSES_CONFIG], [ncurses5-config], [no])
|
AC_PATH_PROG([CURSES_CONFIG], [ncurses5-config], [no])
|
||||||
if test "x$CURSES_CONFIG" != "xno"; then
|
if test "x$CURSES_CONFIG" != "xno"; then
|
||||||
AC_MSG_CHECKING(ncurses cflags)
|
AC_MSG_CHECKING(ncurses cflags)
|
||||||
@ -185,7 +187,8 @@ if (test "x$NCURSES_FOUND" = "xno") && (test "$WIN32" != "xyes"); then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (test "x$NCURSES_FOUND" = "xno") && (test "$WIN32" != "xyes"); then
|
if (test "x$NCURSES_FOUND" = "xno") && (test "x$WIN32" != "xyes"); then
|
||||||
|
unset ac_cv_path_CURSES_CONFIG
|
||||||
AC_PATH_PROG([CURSES_CONFIG], [ncurses5.4-config], [no])
|
AC_PATH_PROG([CURSES_CONFIG], [ncurses5.4-config], [no])
|
||||||
if test "x$CURSES_CONFIG" != "xno"; then
|
if test "x$CURSES_CONFIG" != "xno"; then
|
||||||
AC_MSG_CHECKING(ncurses cflags)
|
AC_MSG_CHECKING(ncurses cflags)
|
||||||
@ -346,6 +349,9 @@ if test "x$LIBTOXCORE_FOUND" = "xno"; then
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
AC_MSG_ERROR([required library toxcore was not found on your system])
|
AC_MSG_ERROR([required library toxcore was not found on your system])
|
||||||
|
],
|
||||||
|
[
|
||||||
|
$WINSOCK2_LIBS
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
@ -354,6 +360,9 @@ if test "x$LIBTOXCORE_FOUND" = "xno"; then
|
|||||||
[],
|
[],
|
||||||
[
|
[
|
||||||
AC_MSG_ERROR([required library toxcore was not found on your system])
|
AC_MSG_ERROR([required library toxcore was not found on your system])
|
||||||
|
],
|
||||||
|
[
|
||||||
|
$WINSOCK2_LIBS
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user