annotate info/configure.in @ 1405:ac4b467e9352

[project @ 1995-09-15 05:41:00 by jwe]
author jwe
date Fri, 15 Sep 1995 05:41:00 +0000
parents 611d403c7f3d
children affbc4e56bdb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1258
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
1 dnl configure.in
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
2 dnl
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
3 dnl Process this file with autoconf to produce a configure script.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
4 dnl
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
5 dnl Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
6 ###
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
7 ### This file is part of Octave.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
8 ###
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
9 ### Octave is free software; you can redistribute it and/or modify it
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
10 ### under the terms of the GNU General Public License as published by the
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
11 ### Free Software Foundation; either version 2, or (at your option) any
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
12 ### later version.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
13 ###
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
14 ### Octave is distributed in the hope that it will be useful, but WITHOUT
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
15 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
16 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
17 ### for more details.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
18 ###
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
19 ### You should have received a copy of the GNU General Public License
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
20 ### along with Octave; see the file COPYING. If not, write to the Free
1315
611d403c7f3d [project @ 1995-06-25 19:56:32 by jwe]
jwe
parents: 1258
diff changeset
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1258
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
22
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
23 AC_REVISION()
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
24 AC_PREREQ(2.0)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
25 AC_INIT(info.c)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
26 AC_CONFIG_HEADER(config.h)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
27
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
28 AC_CANONICAL_HOST
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
29 if test -z "$host"; then
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
30 host=unknown
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
31 fi
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
32 canonical_host_type=$host
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
33 if test "$host" = unknown; then
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
34 AC_MSG_WARN([configuring Info for unknown system type
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
35 ])
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
36 fi
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
37
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
38 ### some defaults
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
39
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
40 AC_PREFIX_DEFAULT(/usr/local)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
41
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
42 ### See which C compiler to use (we expect to find gcc).
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
43
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
44 AC_PROG_CC
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
45 AC_PROG_CPP
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
46 AC_PROG_GCC_TRADITIONAL
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
47
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
48 ### Special checks for odd OS specific things.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
49
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
50 AC_ISC_POSIX
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
51 AC_MINIX
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
52 AC_AIX
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
53 AC_CHECK_LIB(sun, getpwnam)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
54
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
55 ### Does the C compiler handle alloca() and const correctly?
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
56
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
57 AC_ALLOCA
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
58 AC_C_CONST
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
59
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
60 ### Checks for header files.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
61
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
62 AC_HEADER_STDC
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
63 AC_CHECK_HEADERS(pwd.h string.h unistd.h sys/time.h sys/fcntl.h)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
64 AC_CHECK_HEADERS(sys/ttold.h sys/ptem.h)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
65 AC_TIME_WITH_SYS_TIME
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
66
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
67 ### Use sgtty on Ultrix so that using DEC Migrate to convert a Mips
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
68 ### binary to an Alpha binary will work. Also on Alpha/OSF to avoid
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
69 ### a readline bug.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
70
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
71 case "$canonical_host_type" in
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
72 mips-dec-ultrix* | alpha-dec-osf*)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
73 AC_CHECK_HEADER(sgtty.h, [AC_DEFINE(HAVE_SGTTY_H, 1)], [])
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
74
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
75 if test "$ac_cv_header_sgtty_h" = no; then
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
76 AC_CHECK_HEADERS(termios.h termio.h sgtty.h, [break], [])
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
77 fi
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
78 ;;
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
79 *)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
80 AC_CHECK_HEADERS(termios.h termio.h sgtty.h, [break], [])
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
81 ;;
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
82 esac
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
83
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
84 if test "$ac_cv_header_termios_h" = yes \
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
85 || test "$ac_cv_header_termio_h" = yes \
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
86 || test "$ac_cv_header_sgtty_h" = yes; then
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
87 true
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
88 else
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
89 AC_MSG_ERROR([I couldn't find termios.h, termio.h, or sgtty.h!])
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
90 fi
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
91
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
92 ### Checks for functions.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
93
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
94 AC_CHECK_FUNCS(setvbuf getcwd bzero bcopy rindex stricmp strnicmp strerror)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
95
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
96 ### Checks for OS specific cruft.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
97
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
98 AC_FUNC_SETVBUF_REVERSED
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
99
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
100 TERMLIBS=""
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
101 for termlib in termcap terminfo curses termlib ; do
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
102 AC_CHECK_LIB(${termlib}, main, [TERMLIBS="${TERMLIBS} -l${termlib}"])
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
103 case "${TERMLIBS}" in
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
104 *-l${termlib}*)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
105 AC_MSG_RESULT([defining TERMLIBS to be $TERMLIBS])
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
106 break
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
107 ;;
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
108 esac
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
109 done
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
110 AC_SUBST(TERMLIBS)
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
111
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
112 ### Checks for other programs.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
113
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
114 AC_PROG_RANLIB
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
115
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
116 AC_PROG_INSTALL
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
117
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
118 ### Do the substitutions.
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
119
c7a7ad888748 [project @ 1995-04-12 01:36:48 by jwe]
jwe
parents:
diff changeset
120 AC_OUTPUT([Makefile])