mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
Command line argument handling works.
-c server [-p port] : connects to server at startup -n : don't autoconnect to any servers git-svn-id: http://svn.irssi.org/repos/irssi/trunk@33 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
69546b19de
commit
9ccee0a31b
3 changed files with 59 additions and 42 deletions
44
configure.in
44
configure.in
|
|
@ -182,6 +182,38 @@ AM_CONDITIONAL(BUILD_SERVERTEST, test "x$want_servertest" = "xyes")
|
|||
AC_DEFINE_UNQUOTED(SYSCONFDIR, "$prefix/etc")
|
||||
AC_DEFINE_UNQUOTED(PLUGINSDIR, "$prefix/lib/irssi/plugins")
|
||||
|
||||
dnl **
|
||||
dnl ** check for popt.h
|
||||
dnl **
|
||||
if test "x$popt_dir" = "x"; then
|
||||
AC_CHECK_HEADER(popt.h, [
|
||||
AC_DEFINE(HAVE_POPT_H)
|
||||
LIBS="-lpopt"
|
||||
])
|
||||
else
|
||||
poptlib=-L$popt_dir/lib
|
||||
CFLAGS="$CFLAGS -I$popt_dir/include"
|
||||
LIBS="$LIBS $poptlib -lpopt"
|
||||
if test -f $popt_dir/include/popt.h; then
|
||||
AC_DEFINE(HAVE_POPT_H)
|
||||
else
|
||||
if test -f $popt_dir/include/popt-gnome.h; then
|
||||
AC_DEFINE(HAVE_POPT_GNOME_H)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB(popt, poptGetContext, [
|
||||
POPT_LIBS="$poptlib -lpopt"
|
||||
], [
|
||||
AC_CHECK_LIB(gnomesupport, poptGetContext, [
|
||||
POPT_LIBS="$poptlib $GNOME_LIBDIR -lgnomesupport"
|
||||
], [
|
||||
AC_ERROR(["libpropt or libgnomesupport not found"])
|
||||
], $LIBS $poptlib $GNOME_LIBDIR -lgnomesupport)
|
||||
], $LIBS $poptlib -lpopt)
|
||||
|
||||
|
||||
dnl **
|
||||
dnl ** check for libPropList
|
||||
dnl **
|
||||
|
|
@ -237,8 +269,11 @@ if test "x$want_gnome" = "xyes"; then
|
|||
AC_DEFINE(HAVE_GTK)
|
||||
AC_DEFINE(HAVE_GNOME)
|
||||
AC_DEFINE(HAVE_IMLIB)
|
||||
AC_DEFINE(HAVE_POPT_GNOME_H)
|
||||
GNOME_SUPPORT_CHECKS
|
||||
GUI_CFLAGS="$GNOME_INCLUDEDIR"
|
||||
|
||||
dnl ** needed for including popt-gnome.h
|
||||
CFLAGS="$CFLAGS $GNOME_INCLUDEDIR"
|
||||
|
||||
dnl **
|
||||
dnl ** check for gnome panel applet library
|
||||
|
|
@ -260,13 +295,9 @@ else
|
|||
want_gnome_panel="no"
|
||||
AC_DEFINE(HAVE_GTK)
|
||||
AM_PATH_GTK(1.2.0)
|
||||
GUI_CFLAGS="$GTK_CFLAGS"
|
||||
GUI_CFLAGS="$GTK_CFLAGS $POPT_LIBS"
|
||||
GUI_LIBS="$GTK_LIBS"
|
||||
|
||||
if test "x$gtk_config_minor_version" = "x0"; then
|
||||
AC_DEFINE(GTK_10)
|
||||
fi
|
||||
|
||||
if test "x$want_imlib" = "xyes"; then
|
||||
AM_PATH_GDK_IMLIB(, [define_imlib=true])
|
||||
if test x$define_imlib = xtrue; then
|
||||
|
|
@ -281,6 +312,7 @@ if test "x$GUI_LIBS" != "x"; then
|
|||
GUI_LIBS="$GUI_LIBS $HEBREW_LIBS"
|
||||
fi
|
||||
|
||||
AC_SUBST(POPT_LIBS)
|
||||
AC_SUBST(GUI_LIBS)
|
||||
AC_SUBST(GUI_CFLAGS)
|
||||
AM_CONDITIONAL(BUILD_GNOMEUI, test "x$GUI_LIBS" != "x")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue