[Freeciv-Dev] configure.in nitpicking
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hi fellow freecivers,
There is no need for AC_SUBST(VERSION) or AC_SUBST(PACKAGE) when you
use AM_INIT_AUTOMAKE, it is redundant.
If you remove the -nodefine directive used in AM_INIT_AUTOMAKE,
you can remove the AC_DEFINE_UNQUOTED(PACKAGE, $PACKAGE) and
AC_DEFINE_UNQUTOED(VERSION,$VERSION) lines, as AM_INIT_AUTOMAKE
will do exactly the same. I do not understand why the -nodefine directive
was put there in the first place. Unlike the current configure.in, the
built in macro defines PACKAGE as "$FREECIV" and not just $FREECIV
(pay attention to the ""s), the latter being is wrong and breaks gettext.
IMHO, the new X library check macros are way too complicated. How about
redefining $LIBS for each OS type instead? Like:
AC_CANONICAL_HOST
case $host_os in
linux*)
LIBS="$LIBS -L/usr/X11/lib -lX11 -lXX -letc"
freebsd*)
LIBS="$LIBS -L/usr/weird/place -lX11 -letc"
solaris*)
lIBS="$LIBS -L/usr/openwin/sucks -lX10 -letc"
*)
LIBS="$LIBS -L/default/place -lX11 -letc"
esac
Yours,
Per
- [Freeciv-Dev] configure.in nitpicking,
Per Mathisen <=
|
|