Network support added to Linux build.

This commit is contained in:
pcem_emulator 2017-08-08 21:59:53 +01:00
commit 24c552ca38
7 changed files with 244 additions and 83 deletions

31
configure vendored
View file

@ -610,6 +610,8 @@ PKG_CONFIG
allegro_LIBS
allegro_CFLAGS
ALLEGRO_CONFIG
USE_NETWORKING_FALSE
USE_NETWORKING_TRUE
USE_WX_FALSE
USE_WX_TRUE
OS_LINUX_FALSE
@ -724,6 +726,7 @@ enable_silent_rules
enable_dependency_tracking
enable_debug
enable_wx
enable_networking
with_allegro_prefix
with_allegro_exec_prefix
enable_allegrotest
@ -1388,6 +1391,7 @@ Optional Features:
speeds up one-time build
--enable-debug build debug executable
--enable-wx use wxWidgets GUI
--enable-networking enable networking
--disable-allegrotest Do not try to compile and run a test LIBallegro program
--disable-sdltest Do not try to compile and run a test SDL program
@ -4158,6 +4162,21 @@ else
$as_echo "no" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable networking" >&5
$as_echo_n "checking whether to enable networking... " >&6; }
# Check whether --enable-networking was given.
if test "${enable_networking+set}" = set; then :
enableval=$enable_networking;
fi
if test "$enable_networking" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpu" >&5
$as_echo_n "checking for cpu... " >&6; }
case "${host_cpu}" in
@ -4221,6 +4240,14 @@ else
USE_WX_FALSE=
fi
if test "$enable_networking" = "yes"; then
USE_NETWORKING_TRUE=
USE_NETWORKING_FALSE='#'
else
USE_NETWORKING_TRUE='#'
USE_NETWORKING_FALSE=
fi
if test "$enable_wx" != "yes"; then
# Do not run test for Allegro with Win32/MinGW version, as binary builds have
@ -5608,6 +5635,10 @@ if test -z "${USE_WX_TRUE}" && test -z "${USE_WX_FALSE}"; then
as_fn_error $? "conditional \"USE_WX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_NETWORKING_TRUE}" && test -z "${USE_NETWORKING_FALSE}"; then
as_fn_error $? "conditional \"USE_NETWORKING\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0