| @@ -36,14 +36,21 @@ aclocalflags="`sed -ne 's/^[ \t]*ACLOCAL_AMFLAGS[ \t]*=//p' Makefile.am 2>/dev/n | |||||
| # Check for automake | # Check for automake | ||||
| amvers="no" | amvers="no" | ||||
| for v in 13 12 11 10 9 8 7 6 5; do | |||||
| v=5 | |||||
| tries=0 | |||||
| while : ; do | |||||
| if automake-1.${v} --version >/dev/null 2>&1; then | if automake-1.${v} --version >/dev/null 2>&1; then | ||||
| amvers="-1.${v}" | amvers="-1.${v}" | ||||
| break | |||||
| tries=0 | |||||
| elif automake1.${v} --version >/dev/null 2>&1; then | elif automake1.${v} --version >/dev/null 2>&1; then | ||||
| amvers="1.${v}" | amvers="1.${v}" | ||||
| tries=0 | |||||
| fi | |||||
| if [ "$tries" = 20 ]; then | |||||
| break | break | ||||
| fi | fi | ||||
| v="$((v + 1))" | |||||
| tries="$((tries + 1))" | |||||
| done | done | ||||
| if test "${amvers}" = "no" && automake --version > /dev/null 2>&1; then | if test "${amvers}" = "no" && automake --version > /dev/null 2>&1; then | ||||
| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * libcaca Colour ASCII-Art library | * libcaca Colour ASCII-Art library | ||||
| * Copyright (c) 2002-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * Copyright (c) 2002-2014 Sam Hocevar <sam@hocevar.net> | |||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| * This library is free software. It comes without any warranty, to | * This library is free software. It comes without any warranty, to | ||||
| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * libcaca Colour ASCII-Art library | * libcaca Colour ASCII-Art library | ||||
| * Copyright (c) 2002-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * Copyright (c) 2002-2014 Sam Hocevar <sam@hocevar.net> | |||||
| * 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> | * 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> | ||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * libcaca Colour ASCII-Art library | * libcaca Colour ASCII-Art library | ||||
| * Copyright (c) 2002-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * Copyright (c) 2002-2014 Sam Hocevar <sam@hocevar.net> | |||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| * This library is free software. It comes without any warranty, to | * This library is free software. It comes without any warranty, to | ||||
| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * libcaca Colour ASCII-Art library | * libcaca Colour ASCII-Art library | ||||
| * Copyright (c) 2002-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * Copyright (c) 2002-2014 Sam Hocevar <sam@hocevar.net> | |||||
| * 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> | * 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> | ||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * libcaca Colour ASCII-Art library | * libcaca Colour ASCII-Art library | ||||
| * Copyright (c) 2002-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * Copyright (c) 2002-2014 Sam Hocevar <sam@hocevar.net> | |||||
| * 2007 Ben Wiley Sittler <bsittler@gmail.com> | * 2007 Ben Wiley Sittler <bsittler@gmail.com> | ||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * libcaca Colour ASCII-Art library | * libcaca Colour ASCII-Art library | ||||
| * Copyright (c) 2002-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * Copyright (c) 2002-2014 Sam Hocevar <sam@hocevar.net> | |||||
| * 2007 Ben Wiley Sittler <bsittler@gmail.com> | * 2007 Ben Wiley Sittler <bsittler@gmail.com> | ||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| @@ -5,7 +5,7 @@ AC_CONFIG_AUX_DIR(.auto) | |||||
| AC_CANONICAL_SYSTEM | AC_CANONICAL_SYSTEM | ||||
| dnl We cannot use subdir-objects because of a bug that will eg. remove | dnl We cannot use subdir-objects because of a bug that will eg. remove | ||||
| dnl ../src/.deps upon distclean when a file from ../src/ is used. | dnl ../src/.deps upon distclean when a file from ../src/ is used. | ||||
| AM_INIT_AUTOMAKE([no-define tar-ustar silent-rules]) | |||||
| AM_INIT_AUTOMAKE([no-define tar-ustar silent-rules subdir-objects]) | |||||
| dnl AM_MAINTAINER_MODE | dnl AM_MAINTAINER_MODE | ||||
| AM_DEFAULT_VERBOSITY=0 | AM_DEFAULT_VERBOSITY=0 | ||||
| @@ -16,7 +16,7 @@ | |||||
| */ | */ | ||||
| /*Ported to libcaca | /*Ported to libcaca | ||||
| *Copyright (c) 2009-2010 Sam Hocevar <sam@hocevar.net> | |||||
| *Copyright (c) 2009-2014 Sam Hocevar <sam@hocevar.net> | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * libcaca Ruby bindings | * libcaca Ruby bindings | ||||
| * Copyright (c) 2007-2012 Pascal Terjan <pterjan@linuxfr.org> | |||||
| * Copyright (c) 2007-2014 Pascal Terjan <pterjan@linuxfr.org> | |||||
| * | * | ||||
| * This library is free software. It comes without any warranty, to | * This library is free software. It comes without any warranty, to | ||||
| * the extent permitted by applicable law. You can redistribute it | * the extent permitted by applicable law. You can redistribute it | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * cacaserver Colour ASCII-Art library | * cacaserver Colour ASCII-Art library | ||||
| * Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> | * Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> | ||||
| * 2006-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * 2006-2014 Sam Hocevar <sam@hocevar.net> | |||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| * This program is free software. It comes without any warranty, to | * This program is free software. It comes without any warranty, to | ||||
| @@ -321,10 +321,10 @@ static void manage_connections(struct server *server) | |||||
| { | { | ||||
| server->clients = malloc(sizeof(struct client)); | server->clients = malloc(sizeof(struct client)); | ||||
| if(server->clients == NULL) | if(server->clients == NULL) | ||||
| { | |||||
| { | |||||
| close(fd); | close(fd); | ||||
| return; | return; | ||||
| } | |||||
| } | |||||
| } | } | ||||
| else | else | ||||
| { | { | ||||
| @@ -1,6 +1,6 @@ | |||||
| /* | /* | ||||
| * sortchars analyse ASCII characters | * sortchars analyse ASCII characters | ||||
| * Copyright (c) 2007-2012 Sam Hocevar <sam@hocevar.net> | |||||
| * Copyright (c) 2007-2014 Sam Hocevar <sam@hocevar.net> | |||||
| * All Rights Reserved | * All Rights Reserved | ||||
| * | * | ||||
| * | * | ||||