# # $Id$ # # Copyright (C) 2002 ETC s.r.o. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # # Written by Marcel Telka , 2002. # AC_INIT(jtag,0.3) AC_CONFIG_HEADERS(config.h) AC_PREREQ(2.54) AC_COPYRIGHT([Copyright (C) 2002, 2003 ETC s.r.o.]) AC_REVISION($Revision$) AC_CONFIG_AUX_DIR(tools) AM_INIT_AUTOMAKE([check-news dist-bzip2]) AC_CONFIG_FILES( Makefile data/Makefile include/Makefile src/Makefile src/lib/Makefile src/tap/Makefile src/part/Makefile src/bus/Makefile po/Makefile.in ) AM_MAINTAINER_MODE AC_GNU_SOURCE AM_GNU_GETTEXT(external) AM_GNU_GETTEXT_VERSION(0.11.5) AC_PROG_CC AC_PROG_RANLIB AC_ARG_WITH(include, AC_HELP_STRING([--with-include=PATH], [Path to the openwince includes]), openwince_inc="$withval") AC_CACHE_CHECK([for the openwince includes], openwince_includes_path, [ openwince_includes_path="no" for openwince_include in $openwince_inc /usr/include/openwince /usr/local/include/openwince; do if test -f "$openwince_include/common.h"; then openwince_includes_path="$openwince_include" break fi done ]) if test "$openwince_includes_path" = "no"; then AC_MSG_ERROR([The openwince include package not found.]) fi AC_SUBST(OPENWINCE_INC) OPENWINCE_INC="-I$openwince_includes_path -I$openwince_includes_path/device" AC_SEARCH_LIBS([ioperm], [ioperm]) AC_CHECK_FUNCS(getline getdelim) # # Searches for a readline compatible library. # http://www.gnu.org/software/ac-archive/htmldoc/vl_lib_readline.html # #AC_DEFUN([VL_LIB_READLINE], [ AC_CACHE_CHECK([for a readline compatible library], vl_cv_lib_readline, [ ORIG_LIBS="$LIBS" for readline_lib in readline edit editline; do for termcap_lib in "" termcap curses ncurses; do if test -z "$termcap_lib"; then TRY_LIB="-l$readline_lib" else TRY_LIB="-l$readline_lib -l$termcap_lib" fi LIBS="$ORIG_LIBS $TRY_LIB" AC_TRY_LINK_FUNC(readline, vl_cv_lib_readline="$TRY_LIB") if test -n "$vl_cv_lib_readline"; then break fi done if test -n "$vl_cv_lib_readline"; then break fi done if test -z "$vl_cv_lib_readline"; then vl_cv_lib_readline="no" LIBS="$ORIG_LIBS" fi ]) if test "$vl_cv_lib_readline" != "no"; then AC_DEFINE(HAVE_LIBREADLINE, 1, [Define if you have a readline compatible library]) AC_CHECK_HEADERS(readline.h readline/readline.h) AC_CACHE_CHECK([whether readline supports history], vl_cv_lib_readline_history, [ vl_cv_lib_readline_history="no" AC_TRY_LINK_FUNC(add_history, vl_cv_lib_readline_history="yes") ]) if test "$vl_cv_lib_readline_history" = "yes"; then AC_DEFINE(HAVE_READLINE_HISTORY, 1, [Define if your readline library has \`add_history']) AC_CHECK_HEADERS(history.h readline/history.h) fi fi #])dnl CFLAGS="$CFLAGS -Wall" AC_OUTPUT