/[weechat]/weechat/configure.in
ViewVC logotype

Diff of /weechat/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by flashcode, Mon Nov 3 22:59:16 2003 UTC revision 1.9 by flashcode, Sun Nov 9 00:08:01 2003 UTC
# Line 51  AC_FUNC_SELECT_ARGTYPES Line 51  AC_FUNC_SELECT_ARGTYPES
51  AC_TYPE_SIGNAL  AC_TYPE_SIGNAL
52  AC_CHECK_FUNCS([gethostbyname gethostname gettimeofday inet_ntoa memset mkdir select setlocale socket strcasecmp strchr strdup strncasecmp strpbrk strrchr strstr uname])  AC_CHECK_FUNCS([gethostbyname gethostname gettimeofday inet_ntoa memset mkdir select setlocale socket strcasecmp strchr strdup strncasecmp strpbrk strrchr strstr uname])
53    
54    AH_VERBATIM([DEBUG], [#undef DEBUG])
55    
56  AC_ARG_ENABLE(curses, [  --disable-curses        Turn off Curses interface (default=auto)],,enable_curses=yes)  AC_ARG_ENABLE(curses, [  --disable-curses        Turn off Curses interface (default=auto)],,enable_curses=yes)
57  AC_ARG_ENABLE(gtk,    [  --enable-gtk            Turn on Gtk+ interface (default=no)],enable_gtk=yes,enable_gtk=no)  AC_ARG_ENABLE(gtk,    [  --enable-gtk            Turn on Gtk+ interface (default=no)],enable_gtk=yes,enable_gtk=no)
58  AC_ARG_ENABLE(qt,     [  --enable-qt             Turn on Qt interface (default=no)],enable_qt=yes,enable_qt=no)  AC_ARG_ENABLE(qt,     [  --enable-qt             Turn on Qt interface (default=no)],enable_qt=yes,enable_qt=no)
59    AC_ARG_ENABLE(perl,   [  --enable-perl           Turn on Perl plugins (default=no)],enable_perl=yes,enable_perl=no)
60    AC_ARG_ENABLE(debug,  [  --enable-debug          Turn on debugging messages (default=no)],enable_debug=yes,enable_debug=no)
61    
62  enable_plugins=no  enable_plugins="no"
63  enable_perl=no  enable_python="no"
 PERL_CFLAGS=  
 enable_python=no  
64  PYTHON_CFLAGS=  PYTHON_CFLAGS=
65  enable_ruby=no  enable_ruby="no"
66  RUBY_CFLAGS=  RUBY_CFLAGS=
 enable_debug=no  
 DEBUG_CFLAGS=  
67    
68  AM_CONDITIONAL(GUI_CURSES, test "$enable_curses" = "yes")  AM_CONDITIONAL(GUI_CURSES,    test "$enable_curses" = "yes")
69  AM_CONDITIONAL(GUI_GTK,    test "$enable_gtk" = "yes")  AM_CONDITIONAL(GUI_GTK,       test "$enable_gtk" = "yes")
70  AM_CONDITIONAL(GUI_QT,     test "$enable_qt" = "yes")  AM_CONDITIONAL(GUI_QT,        test "$enable_qt" = "yes")
71    AM_CONDITIONAL(PLUGIN_PERL,   test "$enable_perl" = "yes")
72    # AM_CONDITIONAL(PLUGIN_PYTHON, test "$enable_python" = "yes")
73    # AM_CONDITIONAL(PLUGIN_RUBY,   test "$enable_ruby" = "yes")
74    
75  if test "x$enable_curses" = "xyes" ; then  if test "x$enable_curses" = "xyes" ; then
76      if test "$LIBCURSES_FOUND" = "0" ; then      if test "$LIBCURSES_FOUND" = "0" ; then
77          AC_MSG_ERROR([Curses library not found! Install Curses library or run ./configure with --disable-curses parameter.])          AC_MSG_ERROR([Curses library not found! Install Curses library or run ./configure with --disable-curses parameter.])
78      fi      fi
79      CURSES_LIBS=-lcurses      CURSES_LIBS="-lcurses"
80      AC_SUBST(CURSES_LIBS)      AC_SUBST(CURSES_LIBS)
81  fi  fi
82    
# Line 87  if test "x$enable_gtk" = "xyes" ; then Line 90  if test "x$enable_gtk" = "xyes" ; then
90      AC_SUBST(GTK_LIBS)      AC_SUBST(GTK_LIBS)
91  fi  fi
92    
93    PLUGIN_LIBS=
94    
95    if test "x$enable_perl" = "xyes" ; then
96        enable_plugins="yes"
97        PLUGIN_LIBS="$PLUGIN_LIBS ../../plugins/perl/lib_weechat_perl.a"
98        PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
99        PERL_LIBS=`perl -MExtUtils::Embed -e ldopts`
100        AC_SUBST(PERL_CFLAGS)
101        AC_SUBST(PERL_LIBS)
102    fi
103    
104    AC_SUBST(PLUGIN_LIBS)
105    
106    if test "x$enable_debug" = "xyes" ; then
107        AC_DEFINE(DEBUG)
108    fi
109    
110  CFLAGS="-Wall -W -pipe -O2"  CFLAGS="-Wall -W -pipe -O2"
111    
112  AC_OUTPUT([Makefile  AC_OUTPUT([Makefile
113             src/Makefile             src/Makefile
114             src/common/Makefile             src/common/Makefile
115             src/irc/Makefile             src/irc/Makefile
116               src/plugins/Makefile
117               src/plugins/perl/Makefile
118             src/gui/Makefile             src/gui/Makefile
119             src/gui/curses/Makefile             src/gui/curses/Makefile
120             src/gui/gtk/Makefile             src/gui/gtk/Makefile

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26