comparison configure.in @ 3177:d81db29f8b2b

[project @ 1998-05-28 15:23:50 by jwe]
author jwe
date Thu, 28 May 1998 15:23:51 +0000
parents fccab8e7d35f
children 09a3064a3a17
comparison
equal deleted inserted replaced
3176:fccab8e7d35f 3177:d81db29f8b2b
19 ### You should have received a copy of the GNU General Public License 19 ### You should have received a copy of the GNU General Public License
20 ### along with Octave; see the file COPYING. If not, write to the Free 20 ### along with Octave; see the file COPYING. If not, write to the Free
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 ### 02111-1307, USA. 22 ### 02111-1307, USA.
23 23
24 AC_REVISION($Revision: 1.305 $) 24 AC_REVISION($Revision: 1.306 $)
25 AC_PREREQ(2.9) 25 AC_PREREQ(2.9)
26 AC_INIT(src/octave.cc) 26 AC_INIT(src/octave.cc)
27 AC_CONFIG_HEADER(config.h) 27 AC_CONFIG_HEADER(config.h)
28 28
29 AC_DEFINE(OCTAVE_SOURCE, 1) 29 AC_DEFINE(OCTAVE_SOURCE, 1)
694 true 694 true
695 else 695 else
696 AC_MSG_ERROR([I couldn't find termios.h, termio.h, or sgtty.h!]) 696 AC_MSG_ERROR([I couldn't find termios.h, termio.h, or sgtty.h!])
697 fi 697 fi
698 698
699
699 GLOB_DIR=glob 700 GLOB_DIR=glob
700 LIBGLOB='$(TOPDIR)/glob/libglob.$(LIBEXT)' 701 LIBGLOB='$(TOPDIR)/glob/libglob.$(LIBEXT)'
701 GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob' 702 GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob'
702 if test "$ac_cv_header_fnmatch_h" = yes \ 703 if test "$ac_cv_header_fnmatch_h" = yes \
703 && test "$ac_cv_header_glob_h" = yes; then 704 && test "$ac_cv_header_glob_h" = yes; then
704 GLOB_DIR= 705 AC_EGREP_CPP(yes,
705 AC_CHECK_LIB(glob, glob) 706 [#ifdef FNM_NOESCAPE
706 AC_CHECK_FUNCS(fnmatch glob) 707 #ifdef FNM_FOOBAR_PATHNAME
707 if test "$ac_cv_func_fnmatch" = yes \ 708 #ifdef FNM_PERIOD
708 && test "$ac_cv_func_glob" = yes; then 709 yes
709 GLOB_DIR= 710 #endif
710 LIBGLOB= 711 #endif
711 GLOB_INCFLAGS= 712 #endif
712 fi 713 ], [
714 GLOB_DIR=
715 AC_CHECK_LIB(glob, glob)
716 AC_CHECK_FUNCS(fnmatch glob)
717 if test "$ac_cv_func_fnmatch" = yes \
718 && test "$ac_cv_func_glob" = yes; then
719 GLOB_DIR=
720 LIBGLOB=
721 GLOB_INCFLAGS=
722 fi
723 ], [
724 ### We provide replacements, so we should set these to "yes".
725 AC_CACHE_VAL(ac_cv_func_fnmatch, ac_cv_func_fnmatch=yes)
726 AC_CACHE_VAL(ac_cv_func_glob, ac_cv_func_glob=yes)
727 ])
728 else
729 ### We provide replacements, so we should set these to "yes".
730 ac_cv_header_fnmatch_h=yes
731 ac_cv_header_glob_h=yes
732 AC_CACHE_VAL(ac_cv_func_fnmatch, ac_cv_func_fnmatch=yes)
733 AC_CACHE_VAL(ac_cv_func_glob, ac_cv_func_glob=yes)
713 fi 734 fi
714 AC_SUBST(GLOB_DIR) 735 AC_SUBST(GLOB_DIR)
715 AC_SUBST(LIBGLOB) 736 AC_SUBST(LIBGLOB)
716 AC_SUBST(GLOB_INCFLAGS) 737 AC_SUBST(GLOB_INCFLAGS)
717 738