annotate configure @ 219:262b8bb4a523 r20-4b8

Import from CVS: tag r20-4b8
author cvs
date Mon, 13 Aug 2007 10:09:35 +0200
parents d44af0c54775
children 2c611d1463a6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1 #! /bin/sh
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3 #### Configuration script for XEmacs. Largely divergent from FSF.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4 #### Guess values for system-dependent variables and create Makefiles.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5 #### Generated automatically using autoconf version 2.12
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 #### Copyright (C) 1995, 1996 Ben Wing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ### Don't edit this script!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ### This script was automatically generated by the `autoconf' program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ### from the file `./configure.in'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ### To rebuild it, execute the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ### autoconf
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16 ### in the this directory. You must have autoconf version 2.12 or later.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ### This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ### XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ### under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ### the Free Software Foundation; either version 2, or (at your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ### option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ### XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ### WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ### General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ### You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ### along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ### 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
35 ### For usage, run `./configure --help'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
36 ### For more detailed information on building and installing XEmacs,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
37 ### read the file `INSTALL'.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ### If configure succeeds, it leaves its status in config.status.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
40 ### A log of configuration tests can be found in config.log.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ### If configure fails after disturbing the status quo,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ### config.status is removed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
44 ac_help="$ac_help
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
45 --with-x use the X Window System"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
46
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
47 exec_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
48 host=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
49 no_create=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
50 nonopt=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
51 no_recursion=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
52 prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
53 program_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
54 program_suffix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
55 program_transform_name=s,x,x,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
56 silent=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
57 site=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
58 srcdir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
59 target=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
60 verbose=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
61 x_includes=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
62 x_libraries=NONE
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
63 CDPATH=.; export CDPATH
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
64 package_path=NONE
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
65
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
66 if test -n "$ZSH_VERSION"; then
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
67 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
68 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
69 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
70 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
71 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
72
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
73 bindir='${exec_prefix}/bin'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
74 sbindir='${exec_prefix}/sbin'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
75 libexecdir='${exec_prefix}/libexec'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
76 datadir='${prefix}/share'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
77 sysconfdir='${prefix}/etc'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
78 sharedstatedir='${prefix}/com'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
79 localstatedir='${prefix}/var'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
80 libdir='${{exec_prefix}}/lib'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
81 includedir='${prefix}/include'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
82 oldincludedir='/usr/include'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
83 infodir='${prefix}/info'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
84 mandir='${prefix}/man'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
85
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
86 subdirs=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
87 MFLAGS= MAKEFLAGS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
88 ac_max_here_lines=12
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
89
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
90 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
91
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
92 # File descriptor usage:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
93 # 0 standard input
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
94 # 1 file creation
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
95 # 2 errors and warnings
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
96 # 3 some systems may open it to /dev/tty
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
97 # 4 used on the Kubota Titan
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
98 # 6 checking for... messages and results
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
99 # 5 compiler messages saved in config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
100 if test "$silent" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
101 exec 6>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
102 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
103 exec 6>&1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
104 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
105 exec 5>./config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
106
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
107 echo "\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
108 This file contains any messages produced by compilers while
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
109 running configure, to aid debugging if configure makes a mistake.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
110 " 1>&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
111
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
112 # Strip out --no-create and --no-recursion so they do not pile up.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
113 # Also quote any args containing shell metacharacters.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
114 ac_configure_args=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
115 for ac_arg
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
116 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
117 case "$ac_arg" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
119 | --no-cr | --no-c) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
122 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
123 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
124 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
125 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
126 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
127
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
128 # NLS nuisances.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
129 # Only set these to C if already set. These must not be set unconditionally
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
130 # because not all systems understand e.g. LANG=C (notably SCO).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
131 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
132 # Non-C LC_CTYPE values break the ctype check.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
133 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
134 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
135 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
136 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
137
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
139 rm -rf conftest* confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
140 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
141 echo > confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
142
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
143 # A filename unique to this package, relative to the directory that
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
144 # configure is in, which we can look for to find out if srcdir is correct.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
145 ac_unique_file=src/lisp.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
146
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
147 # Find the source files, if location was not specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
148 if test -z "$srcdir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
149 ac_srcdir_defaulted=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
150 # Try the directory containing this script, then its parent.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
151 ac_prog=$0
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
152 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
153 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
154 srcdir=$ac_confdir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
155 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
156 srcdir=..
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
157 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
158 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
159 ac_srcdir_defaulted=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
160 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
161 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
162 if test "$ac_srcdir_defaulted" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
163 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
164 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
165 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
166 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
167 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
168 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
169
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
170 # Prefer explicitly selected file to automatically selected ones.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
171 if test -z "$CONFIG_SITE"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
172 if test "x$prefix" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
173 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
174 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
175 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
176 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
177 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
178 for ac_site_file in $CONFIG_SITE; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
179 if test -r "$ac_site_file"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
180 echo "loading site script $ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
181 . "$ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
182 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
183 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
184
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
185
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
186 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
187 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
188 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
189 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
190 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
191 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
192 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
193 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
194
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
195 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
196 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
197 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
198 ac_n= ac_c='
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
199 ' ac_t=' '
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
200 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
201 ac_n=-n ac_c= ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
202 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
203 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
204 ac_n= ac_c='\c' ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
205 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
206
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
207
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 progname="`echo $0 | sed 's:^\./\./:\./:'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
210
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
211 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
212 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
213
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 prefix='/usr/local'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 exec_prefix='${prefix}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 bindir='${exec_prefix}/bin'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 datadir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 statedir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 libdir='${exec_prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 mandir='${prefix}/man/man1'
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
221 infodir='${datadir}/xemacs-${version}/info'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 infodir_user_defined='no'
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
223 infopath='/usr/local/info:/usr/info:/usr/local/lib/texmf/doc/info:/usr/lib/texmf/doc/info'
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
224 infopath_user_defined='no'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 lispdir='${datadir}/xemacs-${version}/lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 lispdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 sitelispdir='${datadir}/xemacs/site-lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 etcdir='${datadir}/xemacs-${version}/etc'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 etcdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 lockdir='${statedir}/xemacs/lock'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 lockdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 archlibdir='${libdir}/xemacs-${version}/${configuration}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 archlibdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 with_menubars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 with_scrollbars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 with_dialogs=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 const_is_losing='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 puresize=''
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
239 cflags='UNSPECIFIED'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 dynamic=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 with_x11=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 rel_alloc='default'
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
243 with_system_malloc='default'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 native_sound_lib=''
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
245 use_assertions="yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
246 with_toolbars=""
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
247 with_tty=""
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
248 use_union_type="no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
249 with_dnet=""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
251
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
252
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
253
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 arguments="$@"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
256 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 quoted_arguments=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 for i in "$@"; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
259 case "$i" in
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
261 | --no-cr | --no-c) ;;
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
264 *)
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
265 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
266 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
267 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
270 while test $# != 0; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 arg="$1"; shift
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
272 case "$arg" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
273 --no-create|--no-recursion) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
274 -* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
275 case "$arg" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 -*=*)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
277 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
278 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 valomitted=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
281 -*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
282 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 val="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 valomitted=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
288 optname="$opt"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
289 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
290
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
291 case "$opt" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
292
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
293 run_in_place | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
294 with_x | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
295 with_x11 | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
296 with_gcc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
297 with_gnu_make | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
298 dynamic | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
299 with_ncurses | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
300 with_dnet | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
301 with_term | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
302 with_socks | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
303 with_cde | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
304 with_offix | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
305 with_gpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
306 with_xpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
307 with_xface | \
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
308 with_imagick | \
179
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
309 with_session | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
310 with_xmu | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
311 with_quantify | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
312 with_toolbars | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
313 with_tty | \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
314 with_xfs | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
315 with_i18n3 | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
316 with_mule | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
317 with_canna | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
318 with_wnn | \
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
319 with_wnn6 | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
320 with_workshop | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
321 with_sparcworks | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
322 with_tooltalk | \
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
323 with_pop | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
324 with_kerberos | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
325 with_hesiod | \
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
326 with_dnet | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
327 external_widget | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
328 verbose | \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
329 extra_verbose | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
330 const_is_losing | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
331 usage_tracking | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
332 use_union_type | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
333 debug | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
334 use_assertions | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
335 memory_usage_stats | \
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
336 with_clash_detection | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
337 no_doc_file )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
338 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 n | no ) val=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
341 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
342 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
343 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
345 eval "$opt=\"$val\"" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
347
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
348 srcdir | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
349 compiler | \
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
350 cflags | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
351 puresize | \
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
352 cache_file | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
353 native_sound_lib | \
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
354 package_path | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
355 x_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
356 x_libraries | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
357 site_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
358 site_libraries | \
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
359 site_prefixes | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
360 site_runtime_libraries )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
361 if test "$valomitted" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
362 if test "$#" = 0 ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
363 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
364 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
365 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
369 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
372 rel_alloc | \
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
373 with_debug_malloc | use_debug_malloc | \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
374 with_system_malloc | use_system_malloc )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
375 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 n | no ) val=no ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
378 d | de | def | defa | defau | defaul | default ) val=default ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
379 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
380 echo " " "The \`--$optname' option requires one of these values:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
381 \`yes', \`no', or \`default'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
382 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 esac
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
384 case "$opt" in use_* ) opt="`echo $opt | sed /use/with/`" ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
385 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
388 "with_database" )
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
389 with_database_berkdb=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
390 with_database_dbm=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
391 with_database_gnudbm=no
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
392 for x in `echo "$val" | sed -e 's/,/ /'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
393 case "$x" in
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
394 no ) ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
395 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
396 d | db | dbm ) with_database_dbm=yes ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
397 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
398 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
399 echo " " "The \`--$optname' option value
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
400 must be either \`no' or a comma-separated list
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
401 of one or more of \`berkdb', \`dbm', or \`gnudbm'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
403 esac
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
404 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
405 if test "$with_database_dbm" = "yes" -a \
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
406 "$with_database_gnudbm" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
407 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
408 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
409 with the \`--$optname' option."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
410 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
412 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
414 "with_sound" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
415 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 y | ye | yes ) val=native ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 n | no | non | none ) val=no;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 na | nat | nati | nativ | native ) val=native ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
419 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 b | bo | bot | both ) val=both;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
421 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
422 echo " " "The \`--$optname' option must have one of these values:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
423 \`native', \`nas', \`both', or \`none'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
424 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
425 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
426 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
429 "with_xim" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
430 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
431 y | ye | yes ) val=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
432 n | no | non | none ) val=no ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
433 x | xl | xli | xlib ) val=xlib ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
434 m | mo | mot | moti | motif ) val=motif ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
435 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
436 echo " " "The \`--$optname' option must have one of these values:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
437 \`motif', \`xlib', \`yes', or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
440 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
443 "with_xfs" )
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
444 case "$val" in
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
445 y | ye | yes ) val=yes ;;
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
446 n | no | non | none ) val=no ;;
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
447 * ) (echo "$progname: Usage error:"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
448 echo " " "The \`--$optname' option must have one of these values:
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
449 \`yes', or \`no'."
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
450 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
451 esac
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
452 eval "$opt=\"$val\""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
453 ;;
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
454
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
455 "mail_locking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
456 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
457 lockf ) val=lockf ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
458 flock ) val=flock ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
459 file ) val=file ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
460 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
461 echo " " "The \`--$optname' option must have one of these values:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
462 \`lockf', \`flock', or \`file'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
463 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
464 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
465 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
466 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
467
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
468 "error_checking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
469
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
470 for x in `echo "$val" | sed -e 's/,/ /'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
471 case "$x" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
472 n | no | non | none ) new_default=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 a | al | all ) new_default=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 extents ) error_check_extents=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 noextents ) error_check_extents=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 typecheck ) error_check_typecheck=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 notypecheck ) error_check_typecheck=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 bufpos ) error_check_bufpos=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 nobufpos ) error_check_bufpos=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 gc ) error_check_gc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 nogc ) error_check_gc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 malloc ) error_check_malloc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 nomalloc ) error_check_malloc=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
489
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 * ) bogus_error_check=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
492 if test "$bogus_error_check" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
493 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
494 if test $error_check_default = yes ; then
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
495 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 else
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
497 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
499 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
500 echo " " "Valid types for the \`--$optname' option are:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
501 $types."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
502 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
503 elif test -n "$new_default" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 error_check_extents=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 error_check_typecheck=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 error_check_bufpos=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 error_check_gc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 error_check_malloc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 new_default= # reset this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 echeck_notfirst=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
515
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
516 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
517 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
518 archlibdir | sitelispdir | docdir )
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
519 if test "$valomitted" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
520 if test "$#" = 0; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
521 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
522 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
523 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
524 fi
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
525 val="$1"; shift
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
527 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
528
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
529 case "$opt" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
530 lispdir ) lispdir_user_defined=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
531 etcdir ) etcdir_user_defined=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
532 infodir ) infodir_user_defined=yes ;;
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
533 infopath ) infopath_user_defined=yes ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
534 datadir ) lispdir_user_defined=yes etcdir_user_defined=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
535 statedir | lockdir ) lockdir_user_defined=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
536 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
537 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
540 "no_create" ) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
541
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
542 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
543
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
544 "with_menubars" | "with_scrollbars" | "with_dialogs" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
545 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 l | lu | luc | luci | lucid ) val=lucid ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 m | mo | mot | moti | motif ) val=motif ;;
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
548 athena3d | athena-3d ) val=athena3d ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 a | at | ath | athe | athen | athena ) val=athena ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 n | no | non | none ) val=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
551 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
552 echo " " "The \`--$optname' option must have one of these values:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
553 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
554 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
556 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
559 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
560 echo " " "Unrecognized option: $arg"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
561 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
566 *) configuration="$arg" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
571
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
572 if test "$infopath_user_defined" = "no" -a -n "$INFOPATH" ; then
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
573 infopath="$INFOPATH"
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
574 fi
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
575
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 eval set x "$quoted_arguments"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
578 test "$extra_verbose" = "yes" && verbose=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
579
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
580 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
581 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
582 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
583 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
584
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
585 test -n "$with_x" && with_x11="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
586
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
587 if test "$run_in_place" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
588 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
589 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
590
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
591 if test "$configuration" = "" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 echo '- You did not tell me what kind of host system you want to configure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 - I will attempt to guess the kind of system this is.' 1>&2
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
594 guesssys=`echo $progname | sed 's/configure$/config.guess/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
595 if configuration=`${CONFIG_SHELL-/bin/sh} $guesssys | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
596 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
597 echo "- Looks like this is a $configuration" 1>&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
599 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
600 echo " " "Failed to guess the system type. You need to tell me."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
601 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
605 case "$srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
606
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
607 "" )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
608 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
609 if test -f "$dir/src/lisp.h" -a \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
610 -f "$dir/lisp/version.el" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
611 srcdir="$dir"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
612 break
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
613 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
614 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
615 if test -z "$srcdir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
616 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
617 echo " " "Neither the current directory nor its parent seem to
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
618 contain the XEmacs sources. If you do not want to build XEmacs in its
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
619 source tree, you should run \`$progname' in the directory in which
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
620 you wish to build XEmacs, using the \`--srcdir' option to say where the
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
621 sources may be found."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
622 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
623 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
626 * )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
627 if test ! -d "$srcdir" -o \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
628 ! -f "$srcdir/src/lisp.h" -o \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
629 ! -f "$srcdir/lisp/version.el" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
630 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
631 echo " " "The directory specified with the \`--srcdir' option,
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
632 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
633 either run the \`$progname' script at the top of the XEmacs source
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
634 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
635 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
640 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
641 echo "configure:642: checking whether ln -s works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
642
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 rm -f conftestdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 if ln -s X conftestdata 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 rm -f conftestdata
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
647 ac_cv_prog_LN_S="ln -s"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
648 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
649 ac_cv_prog_LN_S=ln
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
650 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
651 LN_S="$ac_cv_prog_LN_S"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
652 if test "$ac_cv_prog_LN_S" = "ln -s"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
653 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
654 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
655 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
656 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
657
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
658
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
659 for dir in lisp etc man info; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
660 if test ! -d "$dir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
661 echo Making symbolic link to "$srcdir/$dir"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
662 ${LN_S} "$srcdir/$dir" "$dir"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
666 absolute_pwd="`pwd`";
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
667 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
668 then blddir="$PWD"
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
669 else blddir="$absolute_pwd"
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
670 fi
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
671
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
672
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
673 case "$srcdir" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 /* ) ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
675 . ) srcdir="$blddir" ;;
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
676 * ) srcdir="`cd $srcdir && pwd`" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
679 if test `pwd` != `sh -c cd $srcdir && pwd` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
680 && test -f "$srcdir/src/config.h"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
681 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 echo " as a build directory right now; it has been configured in its own"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 echo " right. To configure in another directory as well, you MUST"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 echo " use GNU make. If you do not have GNU make, then you must"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
685 echo " now do \`make distclean' in $srcdir,"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
686 echo " and then run $progname again.") >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 extrasub='/^VPATH[ ]*=/c\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 vpath %.c $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 vpath %.h $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 vpath %.y $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 vpath %.l $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 vpath %.s $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 vpath %.in $(srcdir)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
696 . "$srcdir/version.sh" || exit 1;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
697 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
698 : "${extra_verbose=$beta}"
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
699 version="${emacs_major_version}.${emacs_minor_version}"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
700 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
701 Defining EMACS_MAJOR_VERSION = $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
702 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
703 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
704 #define EMACS_MAJOR_VERSION $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
705 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
706 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
707
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
708 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
709 Defining EMACS_MINOR_VERSION = $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
710 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
711 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
712 #define EMACS_MINOR_VERSION $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
713 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
714 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
715
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
716 if test -n "$emacs_beta_version"; then
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
717 version="${version}-b${emacs_beta_version}"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
718 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
719 Defining EMACS_BETA_VERSION = $emacs_beta_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
720 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
721 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
722 #define EMACS_BETA_VERSION $emacs_beta_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
723 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
724 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
725
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
726 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
727 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
728 Defining XEMACS_CODENAME = "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
729 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
730 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
731 #define XEMACS_CODENAME "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
732 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
733 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
734
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
735 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
736 Defining EMACS_VERSION = "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
737 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
738 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
739 #define EMACS_VERSION "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
740 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
741 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
742
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
743
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
744 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
745 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
746 Defining ERROR_CHECK_EXTENTS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
747 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
748 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
749 #define ERROR_CHECK_EXTENTS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
750 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
751 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
752
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
753 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
754 Defining ERROR_CHECK_TYPECHECK
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
755 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
756 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
757 #define ERROR_CHECK_TYPECHECK 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
758 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
759 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
760
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
761 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
762 Defining ERROR_CHECK_BUFPOS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
763 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
764 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
765 #define ERROR_CHECK_BUFPOS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
766 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
767 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
768
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
769 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
770 Defining ERROR_CHECK_GC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
771 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
772 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
773 #define ERROR_CHECK_GC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
774 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
775 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
776
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
777 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
778 Defining ERROR_CHECK_MALLOC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
779 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
780 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
781 #define ERROR_CHECK_MALLOC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
782 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
783 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
784
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
785 if test "${debug=beta}" = "yes"; then
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
786 use_assertions=yes memory_usage_stats=yes
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
787 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
788 echo " xemacs will be linked with \"debug.o\""
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
789 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
790 { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
791 Defining DEBUG_XEMACS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
792 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
793 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
794 #define DEBUG_XEMACS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
795 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
796 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
797
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
798 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
799 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
800 Defining USE_ASSERTIONS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
801 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
802 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
803 #define USE_ASSERTIONS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
804 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
805 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
806
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
807 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
808 Defining MEMORY_USAGE_STATS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
809 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
810 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
811 #define MEMORY_USAGE_STATS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
812 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
813 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
814
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
815
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
816
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
817 echo "checking "the configuration name"" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
818 echo "configure:819: checking "the configuration name"" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
819 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
820 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821 exit $?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
824
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
825
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
826
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
827
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
828 machine='' opsys=''
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
829
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
830 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
831 sparc-*-* ) machine=sparc ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
832 alpha-*-* ) machine=alpha ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
833 vax-*-* ) machine=vax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
834 mips-dec-* ) machine=pmax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
835 mips-sgi-* ) machine=iris4d ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
836 romp-ibm-* ) machine=ibmrt ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
837 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
838 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
839 powerpc*-* ) machine=powerpc ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
840 hppa-*-* ) machine=hp800 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
841 m88k-dg-* ) machine=aviion ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
842 m68*-sony-* ) machine=news ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
843 mips-sony-* ) machine=news-risc ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
844 clipper-* ) machine=clipper ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
845 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
846
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
847 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
848 *-*-linux* ) opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
849 *-*-netbsd* ) opsys=netbsd ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
850 *-*-nextstep* ) opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
851 *-*-vms ) opsys=vms ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
852
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
853 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
854 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
855 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
856 *-dec-osf3* ) opsys=decosf3-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
857 *-dec-osf4* ) opsys=decosf4-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
858
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
859 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
860 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
861 *-*-ultrix* ) opsys=ultrix4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
862
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
863 *-*-aix3.1* ) opsys=aix3-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
864 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
865 *-*-aix3* ) opsys=aix3-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
866 *-*-aix4.2* ) opsys=aix4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
867 *-*-aix4.1* ) opsys=aix4-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
868 *-*-aix4* ) opsys=aix4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
869
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
870 *-gnu* ) opsys=gnu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
871 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
872 *-*-bsd4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
873 *-*-bsd4.3 ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
874 *-*-aos4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
875 *-*-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
876 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
877 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
878 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
879 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
880 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
881 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
882 if test -z "$NON_GNU_CPP" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
883 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
884 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
885 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
886 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
887 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
888 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
889 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
890 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
891
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
892 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
893
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
894 *-*-netbsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
895 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 i[3-9]86-*-netbsd*) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
898 machine=hp9000s300 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
899 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
900 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
904 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
905 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
907 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
908 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
909
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
910 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
911
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
912 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
913
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
914 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
915
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
916 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
917
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
918 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
919
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
920 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
921 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
922 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
924
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
925 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
926
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
927 *-convex-bsd* | *-convex-convexos* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 machine=convex opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 NON_GNU_CPP="cc -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
930 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
931
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
932 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
933
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
934 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
935 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
936 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
937 m88k-dg-dgux* ) opsys=dgux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
938
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
939 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
940 m88k-motorola-sysv4* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
941 machine=delta88k opsys=usg5-4-2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
943 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
944
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
945 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
946 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
948 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
949
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
950 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
951 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
952 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
953
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
954 m88k-harris-cxux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
955 case "`uname -r`" in
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
956 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
957 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
958 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
959 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
960 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
961 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
962 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
963
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
964 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
965
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
966 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
967
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
968 *-hp-hpux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
969 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
970 m68* ) machine=hp9000s300 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
971 hppa* ) machine=hp800 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
972 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
973
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
974 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
975 *-hp-hpux7* ) opsys=hpux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
976 *-hp-hpux8* ) opsys=hpux8 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
977 *-hp-hpux9* ) opsys=hpux9 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
978 *-hp-hpux10* ) opsys=hpux10 ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
979 * ) opsys=hpux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
980 esac
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
981
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
982 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
983 echo " xemacs will be linked with \"strcat.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
984 fi ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
985
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
986 if test "$opsys" = "hpux10"; then ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
987 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
988
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
989 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
990 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
991
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
992 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
993 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
994
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
995 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
996 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
997 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
998 romp-ibm-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
999 romp-ibm-bsd* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1000 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1001
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1002 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1003 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1004
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1005 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1006
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1007 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1008
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1009 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1010
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1011 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1012
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1013 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1014
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1015 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1016
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1017 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1018
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1019 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1020
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1021 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1022
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1023 mips-mips-usg* ) machine=mips4 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1024 mips-mips-riscos4 )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1025 machine=mips4
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1026 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1027 NON_GNU_CPP="cc -systype bsd43 -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1028 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1029 mips-mips-riscos4* ) opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1030 mips-mips-riscos5* ) opsys=riscos5 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1031 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1032 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1033 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1034 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1035
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1036 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1037
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1038 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1039
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1040 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1041 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1042
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1043 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1044
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1045 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1046
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1047 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1048
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1049 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1050
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1051 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1052 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1053
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1054 mips-siemens-sysv* | mips-sni-sysv*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1055 machine=mips-siemens opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1056 NON_GNU_CC=/usr/ccs/bin/cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1057 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1058 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1059
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1060 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1061 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1062 mips-sgi-irix3.* ) opsys=irix3-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1063 mips-sgi-irix4.* ) opsys=irix4-0 ;;
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1064 mips-sgi-irix6* ) opsys=irix6-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1065 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1066 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1067 mips-sgi-irix5.* ) opsys=irix5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1068 mips-sgi-irix* ) opsys=irix5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1069
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1070 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1071 *-sony-news* ) opsys=newsos5 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1072
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1073 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1074
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1075 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1076 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1077 m68*-sunos1* ) machine=sun1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1078 m68*-sunos2* ) machine=sun2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1079 m68* ) machine=sun3 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1080 i*86*-sun-sunos[34]* ) machine=sun386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1081 i*86-*-* ) machine=intel386 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1082 rs6000* ) machine=rs6000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1083 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1084
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1085 case "$canonical" in *-sunos5*)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1086 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1087 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1088
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1089 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1090 *-sunos4* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1091 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1092 : ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1093 *-solaris2* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1094 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1095 RANLIB=':' ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1096 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1097
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1098 case "$canonical" in
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1099 *-solaris* )
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1100 opsys=sol2
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1101 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1102 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1103 Defining OS_RELEASE = $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1104 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1105 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1106 #define OS_RELEASE $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1107 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1108 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1109 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1110
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1111 i*86-*-sunos4* ) opsys=sunos4-0 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1112 *-sunos4.0* ) opsys=sunos4-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1113 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1114 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1115 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1116 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1117 *-mach* ) opsys=mach-bsd4-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1118 * ) opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1119 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1120
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1121 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1122
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1123 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1124 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1125
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1126 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1127
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1128 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1129 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1130
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1131 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1132
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1133 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1134
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1135 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1136 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1137
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1138 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1139
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1140 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1141
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1142 vax-dec-* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1143 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1144 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1145 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1146 *-mach* ) opsys=mach-bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1147 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1148 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1149
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1150 ns16k-whitechapel-* ) machine=mg1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1151
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1152 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1153
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1154 i[3-9]86-*-* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1155 machine=intel386
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1156 case "$canonical" in
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1157 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1158 *-isc2.2* ) opsys=isc2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1159 *-isc4.0* ) opsys=isc4-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1160 *-isc4.* ) opsys=isc4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1161 GCC_TEST_OPTIONS=-posix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1162 NON_GCC_TEST_OPTIONS=-Xp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1163 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1164 *-isc* ) opsys=isc3-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1165 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1166 *-esix* ) opsys=esix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1167 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1168 *-xenix* ) opsys=xenix ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1169 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1170 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1171 *-bsdi3* ) opsys=bsdos3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1172 *-bsdi2.1* ) opsys=bsdos2-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1173 *-bsdi2* ) opsys=bsdos2 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1174 *-sco3.2v5* ) opsys=sco5 ;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1175 if test "$dynamic" = "yes" ; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1176 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1177 else
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1178 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1179 fi ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1180 *-386bsd* ) opsys=386bsd ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1181 *-freebsd* ) opsys=freebsd ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1182 *-nextstep* ) opsys=nextstep ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1183 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1184 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1185
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1186 m68k-*-linux* ) machine=m68k opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1187
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1188 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1189
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1190 if test -z "$machine" -o -z "$opsys"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1191 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1192 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1193 ) >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1194 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1195 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1196
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1197 if test -z "$dynamic"; then
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1198 case "$opsys" in
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1199 hpux* | sunos4* | sco5 ) dynamic=no ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1200 *) dynamic=yes ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1201 esac
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1202 fi
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1203 if test "$dynamic" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1204 case "$opsys" in
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1205 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1206 decosf* ) ld_call_shared="-call_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1207 esac
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1208 else case "$opsys" in
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
1209 sol2 )
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1210 echo "Static linking is not supported on Solaris 2."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1211 echo "Rerun configure without specifying --dynamic=no."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1212 exit 1 ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1213 linux ) ld_call_shared="-Bstatic" ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1214 decosf* ) ld_call_shared="-non_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1215 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1216 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1217
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1218 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1219
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1220 stack_trace_eye_catcher=`echo xemacs_${version}_${canonical} | sed 'y/.-/__/'`
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1221 { test "$extra_verbose" = "yes" && cat << EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1222 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1223 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1224 cat >> confdefs.h <<EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1225 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1226 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1227 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1228
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1229
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1230 machfile="m/${machine}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1231 opsysfile="s/${opsys}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1232
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1233
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1234 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1235 if test "$with_workshop" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1236 { test "$extra_verbose" = "yes" && cat << \EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1237 Defining SUNPRO
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1238 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1239 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1240 #define SUNPRO 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1241 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1242 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1243
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1244 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1245 echo " xemacs will be linked with \"sunpro.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1246 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1247 with_tooltalk=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1248 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1249
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1250 if test "$with_clash_detection" = "yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1251 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1252 Defining CLASH_DETECTION
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1253 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1254 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1255 #define CLASH_DETECTION 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1256 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1257 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1258
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1259 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1260 echo " xemacs will be linked with \"filelock.o\""
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1261 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1262 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1263
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1264 test -n "$compiler" && CC="$compiler"
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1265 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1266 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1267
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1268 test "$cflags" != "UNSPECIFIED" && CFLAGS="$cflags"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1269 xe_save_CFLAGS="$CFLAGS"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1270
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1271 # Extract the first word of "gcc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1272 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1274 echo "configure:1275: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1275
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1276 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1277 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1278 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1280 for ac_dir in $PATH; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1281 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1282 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1283 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1284 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1285 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1286 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1287 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1288 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1289 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1290 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1291 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1292 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1293 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1294 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1295
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1296 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1297 # Extract the first word of "cc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1298 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1300 echo "configure:1301: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1301
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1302 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1303 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1304 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1306 ac_prog_rejected=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1307 for ac_dir in $PATH; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1308 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1309 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1310 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1311 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1312 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1313 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1314 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1315 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1316 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1317 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1318 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1319 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1320 # We found a bogon in the path, so make sure we never use it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1321 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1322 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1323 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1324 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1325 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1326 # first if we set CC to just the basename; use the full file name.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1327 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1328 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1329 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1330 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1331 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1332 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1333 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1334 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1335 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1336 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1337 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1338 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1339 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1340
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1341 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1342 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1343
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1344 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1345 echo "configure:1346: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1346
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1347 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1348 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1349 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1350 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1351 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1352 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1353 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1354 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1355
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1356 cat > conftest.$ac_ext <<EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1357 #line 1358 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1358 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1359 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1360 EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1361 if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1362 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1363 # If we can't run a trivial program, we are probably using a cross compiler.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1364 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1365 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1366 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1367 ac_cv_prog_cc_cross=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1368 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1369 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1370 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1371 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1372 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1373 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1374 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1375
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1376 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1377 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1378 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1379 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1380 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1381 echo "configure:1382: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1382 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1383 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1384
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1385 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1386 echo "configure:1387: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1387
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1388 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1389 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1390 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1391 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1392 EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1393 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1394 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1395 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1396 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1397 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1398
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1399 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1400
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1401 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1402 GCC=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1403 ac_test_CFLAGS="${CFLAGS+set}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1404 ac_save_CFLAGS="$CFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1405 CFLAGS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1406 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1407 echo "configure:1408: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1408
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1409 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1410 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1411 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1412 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1413 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1414 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1415 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1416
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1417
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1418 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1419 if test "$ac_test_CFLAGS" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1420 CFLAGS="$ac_save_CFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1421 elif test $ac_cv_prog_cc_g = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1422 CFLAGS="-g -O2"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1423 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1424 CFLAGS="-O2"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1425 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1426 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1427 GCC=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1428 test "${CFLAGS+set}" = set || CFLAGS="-g"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1429 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1430
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1431 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1432 CC=${NON_GNU_CC-cc}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1433 # Extract the first word of "gcc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1434 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1436 echo "configure:1437: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1437
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1438 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1440 else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1442 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1443 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1444 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1445 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1446 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1447 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1448 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1449 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1450 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1451 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1452 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1453 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1454 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1455 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1456 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1457
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1458 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1459 # Extract the first word of "cc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1460 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1462 echo "configure:1463: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1463
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1464 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1465 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1466 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1468 ac_prog_rejected=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1469 for ac_dir in $PATH; do
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1470 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1471 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1472 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1473 ac_prog_rejected=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1474 continue
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1475 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1476 ac_cv_prog_CC="cc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1477 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1478 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1479 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1480 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1481 if test $ac_prog_rejected = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1482 # We found a bogon in the path, so make sure we never use it.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1483 set dummy $ac_cv_prog_CC
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1484 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1485 if test $# -gt 0; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1486 # We chose a different compiler from the bogus one.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1487 # However, it has the same basename, so the bogon will be chosen
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1488 # first if we set CC to just the basename; use the full file name.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1489 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1490 set dummy "$ac_dir/$ac_word" "$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1491 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1492 ac_cv_prog_CC="$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1493 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1494 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1495 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1496 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1497 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1498 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1499 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1500 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1501 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1502
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1503 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1504 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1505
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1506 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1507 echo "configure:1508: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1508
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1509 ac_ext=c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1510 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1511 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1512 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1513 ac_cpp='$CPP '"$xe_cppflags"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1514 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1515 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1516 cross_compiling=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1517
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1518 cat > conftest.$ac_ext <<EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1519 #line 1520 "configure"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1520 #include "confdefs.h"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1521 main(){return(0);}
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1522 EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1523 if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1524 ac_cv_prog_cc_works=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1525 # If we can't run a trivial program, we are probably using a cross compiler.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1526 if (./conftest; exit) 2>/dev/null; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1527 ac_cv_prog_cc_cross=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1528 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1529 ac_cv_prog_cc_cross=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1530 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1531 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1532 echo "configure: failed program was:" >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1533 cat conftest.$ac_ext >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1534 ac_cv_prog_cc_works=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1535 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1536 rm -fr conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1537
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1538 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1539 if test $ac_cv_prog_cc_works = no; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1540 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1541 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1542 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1543 echo "configure:1544: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1544 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1545 cross_compiling=$ac_cv_prog_cc_cross
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1546
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1547 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1548 echo "configure:1549: checking whether we are using GNU C" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1549
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1550 cat > conftest.c <<EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1551 #ifdef __GNUC__
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1552 yes;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1553 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1554 EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1555 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1556 ac_cv_prog_gcc=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1557 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1558 ac_cv_prog_gcc=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1559 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1560
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1561 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1562
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1563 if test $ac_cv_prog_gcc = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1564 GCC=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1565 ac_test_CFLAGS="${CFLAGS+set}"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1566 ac_save_CFLAGS="$CFLAGS"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1567 CFLAGS=
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1568 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1569 echo "configure:1570: checking whether ${CC-cc} accepts -g" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1570
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1571 echo 'void f(){}' > conftest.c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1572 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1573 ac_cv_prog_cc_g=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1574 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1575 ac_cv_prog_cc_g=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1576 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1577 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1578
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1579
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1580 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1581 if test "$ac_test_CFLAGS" = set; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1582 CFLAGS="$ac_save_CFLAGS"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1583 elif test $ac_cv_prog_cc_g = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1584 CFLAGS="-g -O2"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1585 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1586 CFLAGS="-O2"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1587 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1588 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1589 GCC=
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1590 test "${CFLAGS+set}" = set || CFLAGS="-g"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1591 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1592
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1593 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1594 CC=gcc
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1595 # Extract the first word of "gcc", so it can be a program name with args.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1596 set dummy gcc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1598 echo "configure:1599: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1599
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1600 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1602 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1604 for ac_dir in $PATH; do
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1605 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1606 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1607 ac_cv_prog_CC="gcc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1608 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1609 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1610 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1611 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1612 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1613 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1614 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1615 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1616 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1617 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1618 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1619
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1620 if test -z "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1621 # Extract the first word of "cc", so it can be a program name with args.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1622 set dummy cc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1624 echo "configure:1625: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1625
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1626 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1628 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1630 ac_prog_rejected=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1631 for ac_dir in $PATH; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1632 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1633 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1634 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1635 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1636 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1637 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1638 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1639 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1640 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1641 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1642 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1643 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1644 # We found a bogon in the path, so make sure we never use it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1645 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1646 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1647 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1648 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1649 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1650 # first if we set CC to just the basename; use the full file name.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1651 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1652 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1653 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1654 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1655 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1656 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1657 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1658 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1659 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1660 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1661 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1662 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1663 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1664
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1665 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1666 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1667
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1668 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1669 echo "configure:1670: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1670
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1671 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1672 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1673 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1674 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1675 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1676 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1677 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1678 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1679
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1680 cat > conftest.$ac_ext <<EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1681 #line 1682 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1682 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1683 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1684 EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1685 if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1686 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1687 # If we can't run a trivial program, we are probably using a cross compiler.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1688 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1689 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1690 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1691 ac_cv_prog_cc_cross=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1692 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1693 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1694 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1695 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1696 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1697 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1698 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1699
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1700 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1701 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1702 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1703 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1705 echo "configure:1706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1706 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1707 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1708
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1709 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1710 echo "configure:1711: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1711
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1712 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1713 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1714 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1715 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1716 EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1717 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1718 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1719 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1720 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1721 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1722
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1723 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1724
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1725 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1726 GCC=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1727 ac_test_CFLAGS="${CFLAGS+set}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1728 ac_save_CFLAGS="$CFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1729 CFLAGS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1730 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1731 echo "configure:1732: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1732
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1733 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1734 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1735 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1736 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1737 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1738 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1739 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1740
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1741
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1742 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1743 if test "$ac_test_CFLAGS" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1744 CFLAGS="$ac_save_CFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1745 elif test $ac_cv_prog_cc_g = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1746 CFLAGS="-g -O2"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1747 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1748 CFLAGS="-O2"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1749 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1750 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1751 GCC=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1752 test "${CFLAGS+set}" = set || CFLAGS="-g"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1753 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1754
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1755 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1756 CFLAGS="$xe_save_CFLAGS"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1757
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1758
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1759 test -n "$CPP" -a -d "$CPP" && CPP=
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1760
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1761 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1762
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1763 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1764 echo "configure:1765: checking how to run the C preprocessor" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1765 # On Suns, sometimes $CPP names a directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1766 if test -n "$CPP" && test -d "$CPP"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1767 CPP=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1768 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1769 if test -z "$CPP"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1770
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1771 # This must be in double quotes, not single quotes, because CPP may get
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1772 # substituted into the Makefile and "${CC-cc}" will confuse make.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1773 CPP="${CC-cc} -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1774 # On the NeXT, cc -E runs the code through the compiler's parser,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1775 # not just through cpp.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1776 cat > conftest.$ac_ext <<EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1777 #line 1778 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1778 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1779 #include <assert.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1780 Syntax Error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1781 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1783 { (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1784 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1785 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1786 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1787 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1788 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1789 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1790 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1791 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1792 CPP="${CC-cc} -E -traditional-cpp"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1793 cat > conftest.$ac_ext <<EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1794 #line 1795 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1795 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1796 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1797 Syntax Error
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1798 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1800 { (eval echo configure:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1801 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1802 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1803 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1804 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1805 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1806 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1807 cat conftest.$ac_ext >&5
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1808 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1809 CPP=/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1810 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1811 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1812 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1813 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1814 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1815 CPP="$ac_cv_prog_CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1816 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1817 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1818 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1819 echo "$ac_t""$CPP" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1820
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1821
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1822 echo $ac_n "checking for AIX""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1823 echo "configure:1824: checking for AIX" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1824 cat > conftest.$ac_ext <<EOF
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1825 #line 1826 "configure"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1826 #include "confdefs.h"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1827 #ifdef _AIX
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1828 yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1829 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1830
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1831 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1833 egrep "yes" >/dev/null 2>&1; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1834 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1835 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1836 Defining _ALL_SOURCE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1837 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1838 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1839 #define _ALL_SOURCE 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1840 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1841 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1842
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1843 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1844 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1845 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1846 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1847 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1848
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1849
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1850
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1851 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1852 echo "configure:1853: checking whether we are using SunPro C" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1853 cat > conftest.$ac_ext <<EOF
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1854 #line 1855 "configure"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1855 #include "confdefs.h"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1856
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1857 int main() {
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1858 #ifndef __SUNPRO_C
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1859 #error Not a SunPro compiler :-(
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
1860 ******* ======= ******** &&&&&&&&
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1861 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1862
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1863 ; return 0; }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1864 EOF
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1865 if { (eval echo configure:1866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1866 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1867 __sunpro_c=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1868 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1869 echo "configure: failed program was:" >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1870 cat conftest.$ac_ext >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1871 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1872 __sunpro_c=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1873 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1874 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1875 echo "$ac_t""$__sunpro_c" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1876
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1877
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1878
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1879 echo "Extracting information from the machine- and system-dependent headers..."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1880
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1881 tempcname="conftest.c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1882
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1883
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1884
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1885
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1886
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1887
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1888 echo '
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1889 #define NOT_C_CODE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1890 #define C_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1891 #define C_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1892 #define LD_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1893 #define LD_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1894 #define LD_SWITCH_X_SITE_AUX
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1895 #define OS_RELEASE '$os_release'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1896 #include "'$srcdir'/src/'$opsysfile'"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1897 #include "'$srcdir'/src/'$machfile'"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1898
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1899 #ifndef LIBS_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1900 #define LIBS_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1901 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1902 configure___ libs_machine=LIBS_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1903
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1904 #ifndef LIBS_SYSTEM
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1905 #define LIBS_SYSTEM
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1906 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1907 configure___ libs_system=LIBS_SYSTEM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1908
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1909 #ifndef LIBS_TERMCAP
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1910 #define LIBS_TERMCAP
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1911 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1912 configure___ libs_termcap=LIBS_TERMCAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1913
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1914 #ifndef LIB_STANDARD
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1915 #define LIB_STANDARD
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1916 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1917 configure___ libs_standard=LIB_STANDARD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1918
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1919
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1920 #ifndef OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1921 #define OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1922 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1923 configure___ objects_machine=OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1924
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1925 #ifndef OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1926 #define OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1927 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1928 configure___ objects_system=OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1929
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1930
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1931 #ifndef C_SWITCH_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1932 #define C_SWITCH_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1933 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1934 configure___ c_switch_machine=C_SWITCH_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1935
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1936 #ifndef C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1937 #define C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1938 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1939 configure___ c_switch_system=C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1940
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1941
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1942 #ifndef LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1943 #define LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1944 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1945 configure___ ld_switch_machine=LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1946
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1947 #ifndef LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1948 #define LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1949 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1950 configure___ ld_switch_system=LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1951
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1952
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1953 #ifndef UNEXEC
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1954 #define UNEXEC "unexec.o"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1955 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1956 configure___ unexec=UNEXEC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1957
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1958
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1959 #ifndef LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1960 #define LD_SWITCH_SHARED "-c"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1961 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1962 configure___ ld_switch_shared=LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1963
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1964
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1965 #ifdef ORDINARY_LINK
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1966 #define LD "$(CC) $(CFLAGS)"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1967 #else /* no ORDINARY LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1968 #ifdef COFF_ENCAPSULATE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1969 #define LD "$(CC) -nostdlib"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1970 #else /* not COFF_ENCAPSULATE */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1971 #ifdef LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1972 #define LD LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1973 #else /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1974 #define LD "ld"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1975 #endif /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1976 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1977 #endif /* not ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1978 configure___ ld=LD
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1979
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1980 #ifndef LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1981 #define LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1982 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1983 configure___ lib_gcc=LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1984
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1985 #ifndef LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1986 #define LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1987 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1988 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1989
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1990
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1991 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1992 #ifdef NO_REMAP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1993 #ifdef COFF_ENCAPSULATE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1994 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1995 #else /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1996 #define START_FILES "pre-crt0.o /lib/crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1997 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1998 #else /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1999 #define START_FILES "ecrt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2000 #endif /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2001 #endif /* no ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2002 #ifndef START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2003 #define START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2004 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2005 configure___ start_files=START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2006
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2007 #ifdef ORDINARY_LINK
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2008 configure___ ordinary_link=yes
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2009 #else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2010 configure___ ordinary_link=no
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2011 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2012
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2013 #ifdef SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2014 configure___ system_malloc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2015 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2016 configure___ system_malloc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2017 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2018
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2019 #ifdef TERMINFO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2020 configure___ have_terminfo=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2021 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2022 configure___ have_terminfo=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2023 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2024
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2025 #ifdef MAIL_USE_FLOCK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2026 configure___ mail_use_flock=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2027 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2028 configure___ mail_use_flock=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2029 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2030
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2031 #ifdef MAIL_USE_LOCKF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2032 configure___ mail_use_lockf=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2033 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2034 configure___ mail_use_lockf=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2035 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2036
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2037
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2038 #if 0
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2039 #ifdef THIS_IS_CONFIGURE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2040
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2041 /* Get the CFLAGS for tests in configure. */
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2042 #ifndef C_DEBUG_SWITCH
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2043 #define C_DEBUG_SWITCH "-g"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2044 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2045 configure___ c_debug_switch=C_DEBUG_SWITCH
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2046
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2047 #ifndef C_OPTIMIZE_SWITCH
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2048 #define C_OPTIMIZE_SWITCH "-O"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2049 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2050 configure___ c_optimize_switch=C_OPTIMIZE_SWITCH
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2051
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2052 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2053 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2054 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2055 configure___ CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2056 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2057
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2058 #else /* not THIS_IS_CONFIGURE */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2059
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2060 /* Get the CFLAGS for real compilation. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2061 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2062 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2063 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2064 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2065 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2066
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2067 #endif /* not THIS_IS_CONFIGURE */
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2068 #endif /* 0 */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2069 ' > $tempcname
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2070 CPP=`eval "echo $CPP"`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2071 eval `$CPP -Isrc $tempcname \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2072 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2073
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2074 rm $tempcname
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2075
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2076 test "$extra_verbose" = "yes" && \
201
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 197
diff changeset
2077 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2078
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2079 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2080
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2081 if test -z "$CFLAGS"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2082 if test "$GCC" = "yes"; then
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
2083 CFLAGS="-g -O2 -Wall -Wno-switch"
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
2084 test "$opsys $machine" = "linux intel386" && \
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2085 CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2086 elif test "$__sunpro_c" = "yes"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2087 case "$opsys" in
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2088 sol2 ) CFLAGS="-v -xO4" ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2089 sunos4* ) CFLAGS="-xO2";;
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2090 esac
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2091 elif test "$CC" = "xlc"; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2092 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2093 else
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2094 CFLAGS="-O" ; fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2095 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2096
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2097 if test "$GCC" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2098 ld_switch_system_tmp="$ld_switch_system"; ld_switch_system=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2099 for arg in $ld_switch_system_tmp; do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2100 case "$arg" in
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2101 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_switch_system="$ld_switch_system $arg" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2102 -Xlinker* ) ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2103 * ) ld_switch_system="$ld_switch_system -Xlinker $arg" ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2104 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2105 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2106 ld_switch_machine_tmp="$ld_switch_machine"; ld_switch_machine=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2107 for arg in $ld_switch_machine_tmp; do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2108 case "$arg" in
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2109 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_switch_machine="$ld_switch_machine $arg" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2110 -Xlinker* ) ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2111 * ) ld_switch_machine="$ld_switch_machine -Xlinker $arg" ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2112 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2113 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2114 LDFLAGS_tmp="$LDFLAGS"; LDFLAGS=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2115 for arg in $LDFLAGS_tmp; do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2116 case "$arg" in
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2117 -L* | -l* | -R* | -u* | -Wl* | -f*) LDFLAGS="$LDFLAGS $arg" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2118 -Xlinker* ) ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2119 * ) LDFLAGS="$LDFLAGS -Xlinker $arg" ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2120 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2121 done
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2122 ld_call_shared_tmp="$ld_call_shared"; ld_call_shared=""
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2123 for arg in $ld_call_shared_tmp; do
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2124 case "$arg" in
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2125 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_call_shared="$ld_call_shared $arg" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2126 -Xlinker* ) ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2127 * ) ld_call_shared="$ld_call_shared -Xlinker $arg" ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2128 esac
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2129 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2130 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2131
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2132 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2133 echo " xemacs will be linked with \"$objects_machine\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2134 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2135 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2136 echo " xemacs will be linked with \"$objects_system\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2137 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2138 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2139 echo " xemacs will be linked with \"$unexec\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2140 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2141
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2142 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
2143 echo "configure:2144: checking for dynodump" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2144 if test "$unexec" != "unexsol2.o"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2145 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2146 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2147 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2148 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2149 Defining DYNODUMP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2150 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2151 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2152 #define DYNODUMP 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2153 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2154 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2155
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2156 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
2157 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2158 case "$machine" in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2159 sparc ) dynodump_arch=sparc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2160 *86* ) dynodump_arch=i386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2161 powerpc ) dynodump_arch=ppc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2162 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2163 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2164 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2165
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2166
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2167 if test "$unexec" = "unexaix.o"; then
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2168 if test "$dynamic" = "no"; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2169 start_flags="-Wl,-bnso,-bnodelcsect"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2170 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2171 for f in "/lib/syscalls.exp" "$srcdir/src/m/ibmrs6000.inp"; do
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2172 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2173 done
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2174 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2175 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2176 done
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2177 fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2178 elif test -n "$ld_text_start_addr"; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2179 start_flags="-T $ld_text_start_addr -e __start"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2180 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2181
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2182
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2183
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2184
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2185 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2186 test -z "$linker" && linker='$(CC) -nostdlib'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
2187 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2188 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2189 test "$GCC" != "yes" && lib_gcc=
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2190
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2191
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2192
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2193
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2194
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2195 if test -n "$site_prefixes"; then
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2196 for arg in $site_prefixes; do
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2197 case "$arg" in
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2198 -* ) ;;
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2199 * ) argi="-I${arg}/include" ; argl="-L${arg}/lib" ;;
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2200 esac
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2201 c_switch_site="$c_switch_site $argi" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argi\" to \$c_switch_site"; fi
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2202 ld_switch_site="$ld_switch_site $argl" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argl\" to \$ld_switch_site"; fi
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2203 done
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2204 fi
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2205
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2206 if test -n "$site_libraries"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2207 for arg in $site_libraries; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2208 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2209 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2210 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2211 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2212
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2213 if test -n "$site_includes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2214 for arg in $site_includes; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2215 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2216 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2217 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2218 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2219
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2220
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2221 for dir in "/usr/ccs/lib"; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2222 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2223 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2224
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2225 if test -n "$site_runtime_libraries" ; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2226 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2227 export LD_RUN_PATH
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2228 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2229
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2230
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2231 if test "$dynamic" = "no"; then add_runtime_path=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2232 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2233 else case "$opsys" in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2234 sol2 | irix* | *bsd* ) add_runtime_path=yes ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2235 * ) add_runtime_path=no ;;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2236 esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2237 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2238
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2239 if test "$add_runtime_path" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2240 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2241 echo "configure:2242: checking "for runtime libraries flag"" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2242 dash_r=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2243 for try_dash_r in "-R" "-R " "-rpath "; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2244 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2245 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2246 #line 2247 "configure"
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2247 #include "confdefs.h"
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2248
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2249 int main() {
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2250
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2251 ; return 0; }
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2252 EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2253 if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2254 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2255 dash_r="$try_dash_r"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2256 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2257 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2258 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2259 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2260 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2261 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2262 test -n "$dash_r" && break
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2263 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2264 if test -n "$dash_r";
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2265 then echo "$ac_t"""\"${dash_r}\""" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2266 else echo "$ac_t""NONE" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2267 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2268 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2269
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2270 xe_add_unique_runpath_dir='
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2271 xe_add_p=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2272 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2273 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2274 if test "$xe_add_p" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2275 test -n "$runpath" && runpath="${runpath}:"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2276 runpath="${runpath}${xe_runpath_dir}"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2277 runpath_dirs="$runpath_dirs $xe_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2278 fi'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2279
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2280
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2281
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2282
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2283 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2284 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2285 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2286
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2287 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2288 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2289 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2290 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2291 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2292 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2293 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2294 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2295 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
2296 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2297 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2298 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2299 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2300 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2301 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2302 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2303 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2304 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2305 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2306 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2307 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2308 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2309 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2310 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2311 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
2312 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2313 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2314 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2315 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2316 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2317 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2318 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2319 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2320 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2321 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2322 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2323 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2324 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2325 ld_switch_run="${dash_r}${runpath}"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2326 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2327 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2328 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2329
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2330
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2331
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2332 GNU_MALLOC=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2333 if test "$system_malloc" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2334 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2335 GNU_MALLOC_reason="
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
2336 (The GNU allocators don't work with this system configuration)."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
2337 elif test "$with_system_malloc" = "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2338 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2339 GNU_MALLOC_reason="
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
2340 (User chose not to use GNU allocators)."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
2341 elif test "$with_debug_malloc" = "yes" ; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
2342 GNU_MALLOC=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
2343 GNU_MALLOC_reason="
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
2344 (User chose to use Debugging Malloc)."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2345 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2347
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2348 # Extract the first word of "ranlib", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2349 set dummy ranlib; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2351 echo "configure:2352: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2352
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2353 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2355 else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2357 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2358 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2359 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2360 ac_cv_prog_RANLIB="ranlib"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2361 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2362 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2363 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2364 IFS="$ac_save_ifs"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2365 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2366 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2367 RANLIB="$ac_cv_prog_RANLIB"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2368 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2369 echo "$ac_t""$RANLIB" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2370 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2371 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2372 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2373
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2374 ac_aux_dir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2375 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2376 if test -f $ac_dir/install-sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2377 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2378 ac_install_sh="$ac_aux_dir/install-sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2379 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2380 elif test -f $ac_dir/install.sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2381 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2382 ac_install_sh="$ac_aux_dir/install.sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2383 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2384 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2385 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2386 if test -z "$ac_aux_dir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2387 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2388 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2389 ac_config_guess=$ac_aux_dir/config.guess
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2390 ac_config_sub=$ac_aux_dir/config.sub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2391 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2392
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2393 # Find a good install program. We prefer a C program (faster),
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2394 # so one script is as good as another. But avoid the broken or
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2395 # incompatible versions:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2396 # SysV /etc/install, /usr/sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2397 # SunOS /usr/etc/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2398 # IRIX /sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2399 # AIX /bin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2402 # ./install, which can be erroneously created by make from ./install.sh.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2403 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2404 echo "configure:2405: checking for a BSD compatible install" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2405 if test -z "$INSTALL"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2406
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2407 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2408 for ac_dir in $PATH; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2409 # Account for people who put trailing slashes in PATH elements.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2410 case "$ac_dir/" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2411 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2412 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2413 # OSF1 and SCO ODT 3.0 have their own names for install.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2414 for ac_prog in ginstall installbsd scoinst install; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2415 if test -f $ac_dir/$ac_prog; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2416 if test $ac_prog = install &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2417 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2418 # AIX install. It has an incompatible calling convention.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2419 # OSF/1 installbsd also uses dspmsg, but is usable.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2420 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2421 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2422 ac_cv_path_install="$ac_dir/$ac_prog -c"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2423 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2424 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2425 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2426 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2427 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2428 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2429 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2430 IFS="$ac_save_IFS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2431
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2432 if test "${ac_cv_path_install+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2433 INSTALL="$ac_cv_path_install"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2434 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2435 # As a last resort, use the slow shell script. We don't cache a
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2436 # path for INSTALL within a source directory, because that will
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2437 # break other packages using the cache if that directory is
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2438 # removed, or if the path is relative.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2439 INSTALL="$ac_install_sh"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2440 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2441 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2442 echo "$ac_t""$INSTALL" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2443
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2444 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2445 # It thinks the first close brace ends the variable substitution.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2446 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2447
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2449
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2450 for ac_prog in 'bison -y' byacc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2451 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2452 # Extract the first word of "$ac_prog", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2453 set dummy $ac_prog; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2455 echo "configure:2456: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2456
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2457 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2458 ac_cv_prog_YACC="$YACC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2459 else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2461 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2462 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2463 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2464 ac_cv_prog_YACC="$ac_prog"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2465 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2466 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2467 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2468 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2469 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2470 YACC="$ac_cv_prog_YACC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2471 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2472 echo "$ac_t""$YACC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2473 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2474 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2475 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2476
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2477 test -n "$YACC" && break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2478 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2479 test -n "$YACC" || YACC="yacc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2480
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2481
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2482 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2483 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2486 echo "configure:2487: checking for $ac_hdr" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2487
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2488 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2489 #line 2490 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2490 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2491 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2492 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2494 { (eval echo configure:2495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2495 ac_err=`grep -v '^ *+' conftest.out`
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2496 if test -z "$ac_err"; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2497 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2498 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2499 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2500 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2501 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2502 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2503 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2504 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2505 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2506 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2508 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2510 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2511 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2512 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2513 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2514 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2515 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2516 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2517
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2518 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2519 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2520 fi
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2521 done
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2522
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
2523 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2524 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2527 echo "configure:2528: checking for $ac_hdr" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2528
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2529 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2530 #line 2531 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2531 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2532 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2533 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2535 { (eval echo configure:2536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2536 ac_err=`grep -v '^ *+' conftest.out`
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2537 if test -z "$ac_err"; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2538 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2539 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2540 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2541 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2542 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2543 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2544 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2545 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2546 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2547 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2549 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2551 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2552 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2553 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2554 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2555 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2556 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2557 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2558
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2559 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2560 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2561 fi
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2562 done
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2563
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2564 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2565 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2568 echo "configure:2569: checking for $ac_hdr" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2569
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2570 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2571 #line 2572 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2572 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2573 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2574 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2576 { (eval echo configure:2577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2577 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2578 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2579 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2580 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2581 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2582 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2583 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2584 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2585 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2586 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2587 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2588 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2590 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2592 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2593 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2594 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2595 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2596 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2597 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2598 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2599
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2600 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2601 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2602 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2603 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2604
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2605 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2606 echo "configure:2607: checking for sys/wait.h that is POSIX.1 compatible" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2607
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2608 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2609 #line 2610 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2610 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2611 #include <sys/types.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2612 #include <sys/wait.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2613 #ifndef WEXITSTATUS
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2614 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2615 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2616 #ifndef WIFEXITED
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2617 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2618 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2619 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2620 int s;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2621 wait (&s);
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2622 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2623 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2624 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2625 if { (eval echo configure:2626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2626 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2627 ac_cv_header_sys_wait_h=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2628 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2629 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2630 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2631 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2632 ac_cv_header_sys_wait_h=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2633 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2634 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2635
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2636 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2637 if test $ac_cv_header_sys_wait_h = yes; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2638 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2639 Defining HAVE_SYS_WAIT_H
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2640 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2641 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2642 #define HAVE_SYS_WAIT_H 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2643 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2644 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2645
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2646 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2647
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2648 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2649 echo "configure:2650: checking for ANSI C header files" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2650
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2651 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2652 #line 2653 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2653 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2654 #include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2655 #include <stdarg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2656 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2657 #include <float.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2658 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2660 { (eval echo configure:2661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2661 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2662 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2663 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2664 ac_cv_header_stdc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2665 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2666 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2667 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2668 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2669 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2670 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2671 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2672 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2673
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2674 if test $ac_cv_header_stdc = yes; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2676 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2677 #line 2678 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2678 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2679 #include <string.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2680 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2682 egrep "memchr" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2683 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2684 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2685 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2686 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2687 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2688 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2689
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2690 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2691
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2692 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2693 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2694 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2695 #line 2696 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2696 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2697 #include <stdlib.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2698 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2700 egrep "free" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2701 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2702 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2703 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2704 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2705 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2706 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2707
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2708 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2709
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2710 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2712 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2713 #line 2714 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2714 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2715 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2716 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2717 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2718 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2719 int main () { int i; for (i = 0; i < 256; i++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2720 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2721 exit (0); }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2722
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2723 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2725 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2726 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2727 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2728 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2729 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2730 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2731 ac_cv_header_stdc=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2732 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2733 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2734 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2735
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2736 echo "$ac_t""$ac_cv_header_stdc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2737 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2738 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2739 Defining STDC_HEADERS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2740 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2741 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2742 #define STDC_HEADERS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2743 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2744 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2745
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2746 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2747
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2748 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2749 echo "configure:2750: checking whether time.h and sys/time.h may both be included" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2750
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2751 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2752 #line 2753 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2753 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2754 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2755 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2756 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2757 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2758 struct tm *tp;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2759 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2760 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2761 if { (eval echo configure:2762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2762 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2763 ac_cv_header_time=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2764 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2765 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2766 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2767 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2768 ac_cv_header_time=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2769 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2770 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2771
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2772 echo "$ac_t""$ac_cv_header_time" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2773 if test $ac_cv_header_time = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2774 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2775 Defining TIME_WITH_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2776 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2777 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2778 #define TIME_WITH_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2779 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2780 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2781
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2782 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2783
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2784 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2785 echo "configure:2786: checking for sys_siglist declaration in signal.h or unistd.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2786
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2787 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2788 #line 2789 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2789 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2790 #include <sys/types.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2791 #include <signal.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2792 /* NetBSD declares sys_siglist in unistd.h. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2793 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2794 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2795 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2796 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2797 char *msg = *(sys_siglist + 1);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2798 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2799 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2800 if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2801 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2802 ac_cv_decl_sys_siglist=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2803 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2804 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2805 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2806 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2807 ac_cv_decl_sys_siglist=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2808 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2809 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2810
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2811 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2812 if test $ac_cv_decl_sys_siglist = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2813 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2814 Defining SYS_SIGLIST_DECLARED
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2815 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2816 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2817 #define SYS_SIGLIST_DECLARED 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2818 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2819 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2820
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2821 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2822
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2823
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2824 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2825 echo "configure:2826: checking for struct utimbuf" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2826 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2827 #line 2828 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2828 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2829 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2830 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2831 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2832 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2833 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2834 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2835 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2836 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2837 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2838 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2839 #ifdef HAVE_UTIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2840 #include <utime.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2841 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2842 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2843 static struct utimbuf x; x.actime = x.modtime;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2844 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2845 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2846 if { (eval echo configure:2847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2847 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2848 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2849 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2850 Defining HAVE_STRUCT_UTIMBUF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2851 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2852 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2853 #define HAVE_STRUCT_UTIMBUF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2854 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2855 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2856
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2857 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2858 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2859 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2860 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2861 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2862 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2863 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2864
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2865 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2866 echo "configure:2867: checking return type of signal handlers" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2867
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2868 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2869 #line 2870 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2870 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2871 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2872 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2873 #ifdef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2874 #undef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2875 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2876 #ifdef __cplusplus
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2877 extern "C" void (*signal (int, void (*)(int)))(int);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2878 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2879 void (*signal ()) ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2880 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2881
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2882 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2883 int i;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2884 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2885 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2886 if { (eval echo configure:2887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2887 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2888 ac_cv_type_signal=void
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2889 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2890 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2891 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2892 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2893 ac_cv_type_signal=int
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2894 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2895 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2896
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2897 echo "$ac_t""$ac_cv_type_signal" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2898 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2899 Defining RETSIGTYPE = $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2900 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2901 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2902 #define RETSIGTYPE $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2903 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2904 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2905
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2906
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2907 echo $ac_n "checking for size_t""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2908 echo "configure:2909: checking for size_t" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2909
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2910 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2911 #line 2912 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2912 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2913 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2914 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2915 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2916 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2917 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2918 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2920 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2921 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2922 ac_cv_type_size_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2923 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2924 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2925 ac_cv_type_size_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2926 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2927 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2928
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2929 echo "$ac_t""$ac_cv_type_size_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2930 if test $ac_cv_type_size_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2931 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2932 Defining size_t = unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2933 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2934 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2935 #define size_t unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2936 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2937 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2938
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2939 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2940
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2941 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2942 echo "configure:2943: checking for pid_t" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2943
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2944 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2945 #line 2946 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2946 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2947 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2948 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2949 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2950 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2951 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2952 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2954 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2955 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2956 ac_cv_type_pid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2957 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2958 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2959 ac_cv_type_pid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2960 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2961 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2962
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2963 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2964 if test $ac_cv_type_pid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2965 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2966 Defining pid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2967 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2968 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2969 #define pid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2970 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2971 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2972
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2973 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2974
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2975 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2976 echo "configure:2977: checking for uid_t in sys/types.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2977
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2978 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2979 #line 2980 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2980 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2981 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2982 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2984 egrep "uid_t" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2985 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2986 ac_cv_type_uid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2987 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2988 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2989 ac_cv_type_uid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2990 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2991 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2992
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2993
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2994 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2995 if test $ac_cv_type_uid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2996 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2997 Defining uid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2998 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2999 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3000 #define uid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3001 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3002 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3003
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3004 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3005 Defining gid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3006 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3007 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3008 #define gid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3009 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3010 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3011
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3012 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3013
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3014 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3015 echo "configure:3016: checking for mode_t" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3016
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3017 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3018 #line 3019 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3019 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3020 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3021 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3022 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3023 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3024 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3025 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3027 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3028 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3029 ac_cv_type_mode_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3030 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3031 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3032 ac_cv_type_mode_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3033 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3034 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3035
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3036 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3037 if test $ac_cv_type_mode_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3038 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3039 Defining mode_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3040 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3041 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3042 #define mode_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3043 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3044 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3045
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3046 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3047
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3048 echo $ac_n "checking for off_t""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3049 echo "configure:3050: checking for off_t" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3050
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3051 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3052 #line 3053 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3053 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3054 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3055 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3056 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3057 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3058 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3059 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3061 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3062 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3063 ac_cv_type_off_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3064 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3065 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3066 ac_cv_type_off_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3067 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3068 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3069
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3070 echo "$ac_t""$ac_cv_type_off_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3071 if test $ac_cv_type_off_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3072 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3073 Defining off_t = long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3074 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3075 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3076 #define off_t long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3077 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3078 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3079
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3080 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3081
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3082
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3083 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3084 echo "configure:3085: checking for struct timeval" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3085 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3086 #line 3087 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3087 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3088 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3089 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3090 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3091 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3092 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3093 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3094 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3095 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3096 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3097 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3098 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3099 static struct timeval x; x.tv_sec = x.tv_usec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3100 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3101 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3103 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3104 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3105 HAVE_TIMEVAL=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3106 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3107 Defining HAVE_TIMEVAL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3108 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3109 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3110 #define HAVE_TIMEVAL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3111 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3112 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3113
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3114 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3115 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3116 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3117 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3118 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3119 HAVE_TIMEVAL=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3120 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3121 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3122
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3123 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3124 echo "configure:3125: checking whether struct tm is in sys/time.h or time.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3125
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3126 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3127 #line 3128 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3128 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3129 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3130 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3131 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3132 struct tm *tp; tp->tm_sec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3133 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3134 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3135 if { (eval echo configure:3136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3136 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3137 ac_cv_struct_tm=time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3138 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3139 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3140 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3141 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3142 ac_cv_struct_tm=sys/time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3143 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3144 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3145
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3146 echo "$ac_t""$ac_cv_struct_tm" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3147 if test $ac_cv_struct_tm = sys/time.h; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3148 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3149 Defining TM_IN_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3150 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3151 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3152 #define TM_IN_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3153 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3154 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3155
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3156 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3157
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3158 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3159 echo "configure:3160: checking for tm_zone in struct tm" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3160
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3161 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3162 #line 3163 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3163 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3164 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3165 #include <$ac_cv_struct_tm>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3166 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3167 struct tm tm; tm.tm_zone;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3168 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3169 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3171 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3172 ac_cv_struct_tm_zone=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3173 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3174 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3175 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3176 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3177 ac_cv_struct_tm_zone=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3178 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3179 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3180
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3181 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3182 if test "$ac_cv_struct_tm_zone" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3183 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3184 Defining HAVE_TM_ZONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3185 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3186 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3187 #define HAVE_TM_ZONE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3188 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3189 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3190
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3191 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3192 echo $ac_n "checking for tzname""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3193 echo "configure:3194: checking for tzname" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3194
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3195 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3196 #line 3197 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3197 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3198 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3199 #ifndef tzname /* For SGI. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3200 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3201 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3202 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3203 atoi(*tzname);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3204 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3205 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3207 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3208 ac_cv_var_tzname=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3209 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3210 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3211 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3212 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3213 ac_cv_var_tzname=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3214 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3215 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3216
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3217 echo "$ac_t""$ac_cv_var_tzname" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3218 if test $ac_cv_var_tzname = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3219 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3220 Defining HAVE_TZNAME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3221 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3222 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3223 #define HAVE_TZNAME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3224 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3225 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3226
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3227 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3228 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3229
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3230
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3231 echo $ac_n "checking for working const""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3232 echo "configure:3233: checking for working const" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3233
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3234 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3235 #line 3236 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3236 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3237
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3238 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3239
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3240 /* Ultrix mips cc rejects this. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3241 typedef int charset[2]; const charset x;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3242 /* SunOS 4.1.1 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3243 char const *const *ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3244 char **p;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3245 /* NEC SVR4.0.2 mips cc rejects this. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3246 struct point {int x, y;};
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3247 static struct point const zero = {0,0};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3248 /* AIX XL C 1.02.0.0 rejects this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3249 It does not let you subtract one const X* pointer from another in an arm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3250 of an if-expression whose if-part is not a constant expression */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3251 const char *g = "string";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3252 ccp = &g + (g ? g-g : 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3253 /* HPUX 7.0 cc rejects these. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3254 ++ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3255 p = (char**) ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3256 ccp = (char const *const *) p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3257 { /* SCO 3.2v4 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3258 char *t;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3259 char const *s = 0 ? (char *) 0 : (char const *) 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3260
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3261 *t++ = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3262 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3264 int x[] = {25, 17};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3265 const int *foo = &x[0];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3266 ++foo;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3267 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3269 typedef const int *iptr;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3270 iptr p = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3271 ++p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3272 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3273 { /* AIX XL C 1.02.0.0 rejects this saying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3275 struct s { int j; const int *ap[3]; };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3276 struct s *b; b->j = 5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3277 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3279 const int foo = 10;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3280 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3281
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3282 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3283 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3284 if { (eval echo configure:3285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3285 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3286 ac_cv_c_const=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3287 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3288 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3289 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3290 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3291 ac_cv_c_const=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3292 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3293 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3294
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3295 echo "$ac_t""$ac_cv_c_const" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3296 if test $ac_cv_c_const = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3297 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3298 Defining const =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3299 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3300 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3301 #define const
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3302 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3303 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3304
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3305 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3306
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3307
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3308 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3309 echo "configure:3310: checking whether ${MAKE-make} sets \${MAKE}" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3310 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3311
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3312 cat > conftestmake <<\EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3313 all:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3314 @echo 'ac_maketemp="${MAKE}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3315 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3316 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3317 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3318 if test -n "$ac_maketemp"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3319 eval ac_cv_prog_make_${ac_make}_set=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3320 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3321 eval ac_cv_prog_make_${ac_make}_set=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3322 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3323 rm -f conftestmake
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3324 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3325 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3326 SET_MAKE=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3327 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3328 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3329 SET_MAKE="MAKE=${MAKE-make}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3330 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3331
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3332
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3333 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3334 echo "configure:3335: checking whether byte ordering is bigendian" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3335
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3336 ac_cv_c_bigendian=unknown
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3337 # See if sys/param.h defines the BYTE_ORDER macro.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3338 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3339 #line 3340 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3340 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3341 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3342 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3343 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3344
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3345 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3346 bogus endian macros
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3347 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3348 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3349 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3350 if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3351 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3352 # It does; now see whether it defined to BIG_ENDIAN or not.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3353 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3354 #line 3355 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3355 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3356 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3357 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3358 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3359
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3360 #if BYTE_ORDER != BIG_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3361 not big endian
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3362 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3363 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3364 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3365 if { (eval echo configure:3366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3366 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3367 ac_cv_c_bigendian=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3368 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3369 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3370 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3371 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3372 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3373 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3374 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3375 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3376 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3377 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3378 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3379 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3380 if test $ac_cv_c_bigendian = unknown; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3381 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3382 #line 3383 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3383 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3384 main () {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3385 /* Are we little or big endian? From Harbison&Steele. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3386 union
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3387 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3388 long l;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3389 char c[sizeof (long)];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3390 } u;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3391 u.l = 1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3392 exit (u.c[sizeof (long) - 1] == 1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3393 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3394 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3395 if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3396 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3397 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3398 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3399 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3400 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3401 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3402 ac_cv_c_bigendian=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3403 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3404 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3405 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3406
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3407 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3408 if test $ac_cv_c_bigendian = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3409 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3410 Defining WORDS_BIGENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3411 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3412 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3413 #define WORDS_BIGENDIAN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3414 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3415 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3416
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3417 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3418
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3419
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3420 echo $ac_n "checking size of short""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3421 echo "configure:3422: checking size of short" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3422
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3423 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3424 #line 3425 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3425 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3426 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3427 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3428 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3429 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3430 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3431 fprintf(f, "%d\n", sizeof(short));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3432 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3433 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3434 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3436 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3437 ac_cv_sizeof_short=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3438 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3439 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3440 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3441 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3442 ac_cv_sizeof_short=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3443 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3444 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3445 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3446 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3447 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3448 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3449 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3450 #define SIZEOF_SHORT $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3451 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3452 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3453
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3454
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3455 if test "$ac_cv_sizeof_short" = 0; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3456 echo ""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3457 echo "*** PANIC *** Configure tests are not working - compiler is broken."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3458 echo "*** PANIC *** Please examine config.log for compilation errors."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3459 exit 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3460 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3461 echo $ac_n "checking size of int""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3462 echo "configure:3463: checking size of int" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3463
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3464 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3465 #line 3466 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3466 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3467 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3468 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3469 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3470 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3471 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3472 fprintf(f, "%d\n", sizeof(int));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3473 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3474 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3475 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3477 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3478 ac_cv_sizeof_int=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3479 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3480 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3481 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3482 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3483 ac_cv_sizeof_int=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3484 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3485 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3486 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3487 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3488 Defining SIZEOF_INT = $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3489 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3490 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3491 #define SIZEOF_INT $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3492 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3493 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3494
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3495
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3496 echo $ac_n "checking size of long""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3497 echo "configure:3498: checking size of long" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3498
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3499 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3500 #line 3501 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3501 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3502 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3503 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3504 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3505 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3506 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3507 fprintf(f, "%d\n", sizeof(long));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3508 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3509 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3510 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3511 if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3512 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3513 ac_cv_sizeof_long=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3514 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3515 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3516 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3517 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3518 ac_cv_sizeof_long=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3519 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3520 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3521 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3522 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3523 Defining SIZEOF_LONG = $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3524 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3525 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3526 #define SIZEOF_LONG $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3527 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3528 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3529
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3530
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3531 echo $ac_n "checking size of long long""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3532 echo "configure:3533: checking size of long long" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3533
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3534 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3535 #line 3536 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3536 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3537 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3538 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3539 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3540 FILE *f=fopen("conftestval", "w");
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3541 if (!f) exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3542 fprintf(f, "%d\n", sizeof(long long));
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3543 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3544 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3545 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3546 if { (eval echo configure:3547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3547 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3548 ac_cv_sizeof_long_long=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3549 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3550 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3551 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3552 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3553 ac_cv_sizeof_long_long=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3554 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3555 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3556 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3557 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3558 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3559 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3560 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3561 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3562 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3563 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3564
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3565
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3566 echo $ac_n "checking size of void *""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3567 echo "configure:3568: checking size of void *" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3568
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3569 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3570 #line 3571 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3571 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3572 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3573 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3574 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3575 FILE *f=fopen("conftestval", "w");
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3576 if (!f) exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3577 fprintf(f, "%d\n", sizeof(void *));
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3578 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3579 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3580 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3581 if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3582 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3583 ac_cv_sizeof_void_p=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3584 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3585 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3586 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3587 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3588 ac_cv_sizeof_void_p=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3589 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3590 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3591 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3592 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3593 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3594 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3595 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3596 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3597 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3598 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3599
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3600
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3601
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3602 echo $ac_n "checking for long file names""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3603 echo "configure:3604: checking for long file names" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3604
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3605 ac_cv_sys_long_file_names=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3606 # Test for long file names in all the places we know might matter:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3607 # . the current directory, where building will happen
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3608 # $prefix/lib where we will be installing things
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3609 # $exec_prefix/lib likewise
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3610 # eval it to expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3611 # $TMPDIR if set, where it might want to write temporary files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3612 # if $TMPDIR is not set:
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3613 # /tmp where it might want to write temporary files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3614 # /var/tmp likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3615 # /usr/tmp likewise
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3616 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3617 ac_tmpdirs="$TMPDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3618 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3619 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3620 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3621 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3622 test -d $ac_dir || continue
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3623 test -w $ac_dir || continue # It is less confusing to not echo anything here.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3624 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3625 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3626 val=`cat $ac_dir/conftest9012345 2>/dev/null`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3627 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3628 ac_cv_sys_long_file_names=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3629 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3630 break
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3631 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3632 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3633 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3634
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3635 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3636 if test $ac_cv_sys_long_file_names = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3637 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3638 Defining HAVE_LONG_FILE_NAMES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3639 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3640 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3641 #define HAVE_LONG_FILE_NAMES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3642 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3643 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3644
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3645 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3646
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3647
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3648
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3649 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3650 echo "configure:3651: checking for sin in -lm" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3651 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3652
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3653 xe_check_libs=" -lm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3654 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3655 #line 3656 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3656 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3657 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3658 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3659 builtin and then its argument prototype would still apply. */
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3660 char sin();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3661
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3662 int main() {
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3663 sin()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3664 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3665 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3667 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3668 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3669 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3670 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3671 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3672 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3673 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3674 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3675 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3676 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3677
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3679 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3680 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3681 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3682 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3683 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3684 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3685 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3686 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3687 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3688 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3689
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3690 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3691
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3692 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3693 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3694 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3695
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3696
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3697
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3698 { test "$extra_verbose" = "yes" && cat << \EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3699 Defining LISP_FLOAT_TYPE
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3700 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3701 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3702 #define LISP_FLOAT_TYPE 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3703 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3704 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3705
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3706
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3707 echo "checking type of mail spool file locking" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3708 echo "configure:3709: checking type of mail spool file locking" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3709 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3710 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3711 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3712 Defining REAL_MAIL_USE_LOCKF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3713 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3714 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3715 #define REAL_MAIL_USE_LOCKF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3716 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3717 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3718
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3719 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3720 Defining REAL_MAIL_USE_FLOCK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3721 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3722 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3723 #define REAL_MAIL_USE_FLOCK 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3724 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3725 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3726
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
3727 else mail_locking="dot-locking"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3728 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3729
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3730
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3731 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3732 echo "configure:3733: checking for kstat_open in -lkstat" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3733 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3734
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3735 xe_check_libs=" -lkstat "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3736 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3737 #line 3738 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3738 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3739 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3740 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3741 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3742 char kstat_open();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3743
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3744 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3745 kstat_open()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3746 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3747 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3749 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3750 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3751 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3752 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3753 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3754 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3755 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3756 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3757 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3758 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3759
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3761 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3762 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3763 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3764 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3765 Defining $ac_tr_lib
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3766 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3767 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3768 #define $ac_tr_lib 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3769 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3770 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3771
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3772 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3773
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3774 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3775 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3776 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3777
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3778
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3779
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3780
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3781 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3782 echo "configure:3783: checking for kvm_read in -lkvm" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3783 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3784
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3785 xe_check_libs=" -lkvm "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3786 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3787 #line 3788 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3788 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3789 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3790 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3791 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3792 char kvm_read();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3793
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3794 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3795 kvm_read()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3796 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3797 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3799 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3800 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3801 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3802 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3803 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3804 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3805 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3806 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3807 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3808 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3809
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3811 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3812 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3814 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3815 Defining $ac_tr_lib
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3816 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3817 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3818 #define $ac_tr_lib 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3819 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3820 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3821
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3822 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3823
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3824 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3825 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3826 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3827
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3828
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3829
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3830
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3831 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3832 echo "configure:3833: checking for cma_open in -lpthreads" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3833 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3834
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3835 xe_check_libs=" -lpthreads "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3836 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3837 #line 3838 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3838 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3839 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3840 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3841 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3842 char cma_open();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3843
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3844 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3845 cma_open()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3846 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3847 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3849 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3850 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3851 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3852 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3853 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3854 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3855 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3856 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3857 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3858 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3859
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3861 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3862 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3863 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3864 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3865 Defining $ac_tr_lib
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3866 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3867 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3868 #define $ac_tr_lib 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3869 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3870 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3871
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3872 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3873
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3874 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3875 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3876 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3877
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3878
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3879 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3880 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3881 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3882
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3883 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3884 echo "configure:3885: checking whether the -xildoff compiler flag is required" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3885 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3886 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3887 then echo "$ac_t""no" 1>&6;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3888 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3889 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3890 else echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3891 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3892
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3893 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3894 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3895 echo "configure:3896: checking for \"-z ignore\" linker flag" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3896 case "`ld -h 2>&1`" in
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3897 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3898 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3899 *) echo "$ac_t""no" 1>&6 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3900 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3901 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3902
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3903
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3904 echo "checking "for specified window system"" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3905 echo "configure:3906: checking "for specified window system"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3906
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3907 if test "$with_x11" != "no"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3908 test "$x_includes $x_libraries" != "NONE NONE" && \
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3909 window_system=x11 with_x11=yes
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3910
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3911 if test "$x_includes $x_libraries" = "NONE NONE"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3912 if test -n "$OPENWINHOME" \
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3913 -a "$OPENWINHOME" != "/usr/openwin" \
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3914 -a -d "$OPENWINHOME"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3915 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3916 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3917 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3918 else
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3919 for dir in "/usr/X11R6/include" "/usr/include/X11R6"; do
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3920 if test -d "$dir/X11"; then x_includes="$dir"; break; fi
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3921 done
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3922 if test "$x_includes" != "NONE"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3923 for dir in "/usr/X11R6/lib" "/usr/lib/X11R6"; do
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3924 if test -d "$dir"; then x_libraries="$dir"; break; fi
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3925 done
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3926 fi
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3927 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3928 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
3929
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3930 # If we find X, set shell vars x_includes and x_libraries to the
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3931 # paths, otherwise set no_x=yes.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3932 # Uses ac_ vars as temps to allow command line to override cache and checks.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3933 # --without-x overrides everything else, but does not touch the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3934 echo $ac_n "checking for X""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3935 echo "configure:3936: checking for X" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3936
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3937 # Check whether --with-x or --without-x was given.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3938 if test "${with_x+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3939 withval="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3940 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3941 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3942
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3943 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3944 if test "x$with_x" = xno; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3945 # The user explicitly disabled X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3946 have_x=disabled
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3947 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3948 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3949 # Both variables are already set.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3950 have_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3951 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3952
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3953 # One or both of the vars are not set, and there is no cached value.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3954 ac_x_includes=NO ac_x_libraries=NO
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3955 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3956 if mkdir conftestdir; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3957 cd conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3958 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3959 cat > Imakefile <<'EOF'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3960 acfindx:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3961 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3962 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3963 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3964 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3965 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3966 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3967 for ac_extension in a so sl; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3968 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3969 test -f $ac_im_libdir/libX11.$ac_extension; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3970 ac_im_usrlibdir=$ac_im_libdir; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3971 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3972 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3973 # Screen out bogus values from the imake configuration. They are
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3974 # bogus both because they are the default anyway, and because
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3975 # using them would break gcc on systems where it needs fixed includes.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3976 case "$ac_im_incroot" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3977 /usr/include) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3978 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3979 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3980 case "$ac_im_usrlibdir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3981 /usr/lib | /lib) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3982 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3983 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3984 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3985 cd ..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3986 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3987 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3988
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3989 if test "$ac_x_includes" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3990 # Guess where to find include files, by looking for this one X11 .h file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3991 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3992
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3993 # First, try using that file with no special directory specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3994 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3995 #line 3996 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3996 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3997 #include <$x_direct_test_include>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3998 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4000 { (eval echo configure:4001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4001 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4002 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4003 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4004 # We can compile using X headers with no special include directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4005 ac_x_includes=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4006 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4007 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4008 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4009 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4010 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4011 # Look for the header file in a standard set of common directories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4012 # Check X11 before X11Rn because it is often a symlink to the current release.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4013 for ac_dir in \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4014 /usr/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4015 /usr/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4016 /usr/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4017 /usr/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4018 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4019 /usr/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4020 /usr/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4021 /usr/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4022 /usr/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4023 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4024 /usr/local/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4025 /usr/local/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4026 /usr/local/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4027 /usr/local/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4028 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4029 /usr/local/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4030 /usr/local/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4031 /usr/local/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4032 /usr/local/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4033 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4034 /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4035 /usr/x386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4036 /usr/XFree86/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4037 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4038 /usr/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4039 /usr/local/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4040 /usr/unsupported/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4041 /usr/athena/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4042 /usr/local/x11r5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4043 /usr/lpp/Xamples/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4044 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4045 /usr/openwin/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4046 /usr/openwin/share/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4047 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4048 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4049 if test -r "$ac_dir/$x_direct_test_include"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4050 ac_x_includes=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4051 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4052 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4053 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4054 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4055 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4056 fi # $ac_x_includes = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4057
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4058 if test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4059 # Check for the libraries.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4060
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4061 test -z "$x_direct_test_library" && x_direct_test_library=Xt
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4062 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4063
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4064 # See if we find them without any special options.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4065 # Don't add to $LIBS permanently.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4066 ac_save_LIBS="$LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4067 LIBS="-l$x_direct_test_library $LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4068 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4069 #line 4070 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4070 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4071
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4072 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4073 ${x_direct_test_function}()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4074 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4075 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4076 if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4077 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4078 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4079 # We can link X programs with no special library path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4080 ac_x_libraries=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4081 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4082 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4083 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4084 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4085 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4086 # First see if replacing the include by lib works.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4087 # Check X11 before X11Rn because it is often a symlink to the current release.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4088 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4089 /usr/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4090 /usr/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4091 /usr/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4092 /usr/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4093 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4094 /usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4095 /usr/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4096 /usr/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4097 /usr/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4098 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4099 /usr/local/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4100 /usr/local/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4101 /usr/local/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4102 /usr/local/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4103 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4104 /usr/local/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4105 /usr/local/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4106 /usr/local/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4107 /usr/local/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4108 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4109 /usr/X386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4110 /usr/x386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4111 /usr/XFree86/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4112 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4113 /usr/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4114 /usr/local/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4115 /usr/unsupported/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4116 /usr/athena/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4117 /usr/local/x11r5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4118 /usr/lpp/Xamples/lib \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4119 /lib/usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4120 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4121 /usr/openwin/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4122 /usr/openwin/share/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4123 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4124 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4125 for ac_extension in a so sl; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4126 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4127 ac_x_libraries=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4128 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4129 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4130 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4131 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4132 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4133 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4134 fi # $ac_x_libraries = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4135
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4136 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4137 # Didn't find X anywhere. Cache the known absence of X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4138 ac_cv_have_x="have_x=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4139 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4140 # Record where we found X for the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4141 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4142 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4143 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4144 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4145 eval "$ac_cv_have_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4146 fi # $with_x != no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4147
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4148 if test "$have_x" != yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4149 echo "$ac_t""$have_x" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4150 no_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4151 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4152 # If each of the values was on the command line, it overrides each guess.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4153 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4154 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4155 # Update the cache value to reflect the command line values.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4156 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4157 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4158 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4159 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4160
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4161 if test "$no_x" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4162 # Not all programs may use this symbol, but it does not hurt to define it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4163 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4164 Defining X_DISPLAY_MISSING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4165 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4166 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4167 #define X_DISPLAY_MISSING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4168 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4169 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4170
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4171 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4172 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4173 if test -n "$x_includes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4174 X_CFLAGS="$X_CFLAGS -I$x_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4175 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4176
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4177 # It would also be nice to do this for all -L options, not just this one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4178 if test -n "$x_libraries"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4179 X_LIBS="$X_LIBS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4180 # For Solaris; some versions of Sun CC require a space after -R and
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4181 # others require no space. Words are not sufficient . . . .
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4182 case "`(uname -sr) 2>/dev/null`" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4183 "SunOS 5"*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4184 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4185 echo "configure:4186: checking whether -R must be followed by a space" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4186 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4187 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4188 #line 4189 "configure"
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4189 #include "confdefs.h"
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4190
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4191 int main() {
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4192
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4193 ; return 0; }
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4194 EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4196 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4197 ac_R_nospace=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4198 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4199 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4200 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4201 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4202 ac_R_nospace=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4203 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4204 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4205 if test $ac_R_nospace = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4206 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4207 X_LIBS="$X_LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4208 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4209 LIBS="$ac_xsave_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4210 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4211 #line 4212 "configure"
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4212 #include "confdefs.h"
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4213
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4214 int main() {
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4215
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4216 ; return 0; }
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4217 EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4219 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4220 ac_R_space=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4221 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4222 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4223 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4224 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4225 ac_R_space=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4226 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4227 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4228 if test $ac_R_space = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4229 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4230 X_LIBS="$X_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4231 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4232 echo "$ac_t""neither works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4233 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4234 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4235 LIBS="$ac_xsave_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4236 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4237 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4238
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4239 # Check for system-dependent libraries X programs must link with.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4240 # Do this before checking for the system-independent R6 libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4241 # (-lICE), since we may need -lsocket or whatever for X linking.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4242
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4243 if test "$ISC" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4244 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4245 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4246 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4247 # libraries were built with DECnet support. And karl@cs.umb.edu says
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4248 # the Alpha needs dnet_stub (dnet does not exist).
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4249 if test "$with_dnet" = "no" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4250 ac_cv_lib_dnet_dnet_ntoa=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4251 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4252
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4253 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4254 echo "configure:4255: checking for dnet_ntoa in -ldnet" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4255 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4256
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4257 xe_check_libs=" -ldnet "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4258 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4259 #line 4260 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4260 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4261 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4262 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4263 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4264 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4265
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4266 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4267 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4268 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4269 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4271 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4272 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4273 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4274 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4275 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4276 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4277 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4278 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4279 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4280 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4281
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4283 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4284 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4285 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4286 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4287 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4288
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4289 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4290
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4291 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4292
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4293 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4294 echo "configure:4295: checking for dnet_ntoa in -ldnet_stub" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4295 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4296
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4297 xe_check_libs=" -ldnet_stub "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4298 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4299 #line 4300 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4300 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4301 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4302 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4303 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4304 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4305
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4306 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4307 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4308 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4309 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4311 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4312 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4313 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4314 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4315 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4316 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4317 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4318 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4319 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4320 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4321
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4323 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4324 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4325 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4326 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4327 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4328
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4329
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4330 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4331
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4332 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4333 # to get the SysV transport functions.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4334 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4335 # needs -lnsl.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4336 # The nsl library prevents programs from opening the X display
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4337 # on Irix 5.2, according to dickey@clark.net.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4338 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4339 echo "configure:4340: checking for gethostbyname" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4340
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4341 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4342 #line 4343 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4343 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4344 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4345 which can conflict with char gethostbyname(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4346 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4347 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4348 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4349 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4350 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4351
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4352 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4353
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4354 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4355 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4356 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4357 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4358 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4359 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4360 gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4361 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4362
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4363 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4364 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4366 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4367 eval "ac_cv_func_gethostbyname=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4368 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4369 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4370 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4371 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4372 eval "ac_cv_func_gethostbyname=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4373 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4374 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4375
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4376 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4377 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4378 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4379 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4380 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4381 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4382
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4383 if test $ac_cv_func_gethostbyname = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4384
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4385 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4386 echo "configure:4387: checking for gethostbyname in -lnsl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4387 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4388
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4389 xe_check_libs=" -lnsl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4390 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4391 #line 4392 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4392 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4393 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4394 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4395 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4396 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4397
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4398 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4399 gethostbyname()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4400 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4401 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4403 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4404 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4405 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4406 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4407 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4408 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4409 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4410 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4411 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4412 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4413
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4415 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4417 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4418 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4419 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4420
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4421
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4422 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4423
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4424 # lieder@skyler.mavd.honeywell.com says without -lsocket,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4425 # socket/setsockopt and other routines are undefined under SCO ODT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4426 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4427 # on later versions), says simon@lia.di.epfl.ch: it contains
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4428 # gethostby* variants that don't use the nameserver (or something).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4429 # -lsocket must be given before -lnsl if both are needed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4430 # We assume that if connect needs -lnsl, so does gethostbyname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4431 echo $ac_n "checking for connect""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4432 echo "configure:4433: checking for connect" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4433
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4434 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4435 #line 4436 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4436 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4437 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4438 which can conflict with char connect(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4439 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4440 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4441 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4442 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4443 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4444
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4445 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4446
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4447 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4448 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4449 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4450 #if defined (__stub_connect) || defined (__stub___connect)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4451 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4452 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4453 connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4454 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4455
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4456 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4457 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4459 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4460 eval "ac_cv_func_connect=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4461 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4462 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4463 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4464 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4465 eval "ac_cv_func_connect=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4466 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4467 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4468
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4469 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4470 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4471 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4472 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4473 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4474 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4475
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4476 if test $ac_cv_func_connect = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4477
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4478 xe_msg_checking="for connect in -lsocket"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4479 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4480 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4481 echo "configure:4482: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4482 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4483
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4484 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4485 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4486 #line 4487 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4487 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4488 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4489 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4490 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4491 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4492
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4493 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4494 connect()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4495 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4496 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4498 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4499 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4500 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4501 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4502 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4503 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4504 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4505 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4506 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4507 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4508
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4510 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4511 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4512 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4513 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4514 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4515
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4516
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4517 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4518
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4519 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4520 echo $ac_n "checking for remove""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4521 echo "configure:4522: checking for remove" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4522
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4523 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4524 #line 4525 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4525 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4526 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4527 which can conflict with char remove(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4528 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4529 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4530 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4531 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4532 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4533
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4534 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4535
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4536 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4537 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4538 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4539 #if defined (__stub_remove) || defined (__stub___remove)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4540 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4541 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4542 remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4543 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4544
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4545 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4546 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4548 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4549 eval "ac_cv_func_remove=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4550 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4551 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4552 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4553 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4554 eval "ac_cv_func_remove=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4555 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4556 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4557
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4558 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4559 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4560 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4561 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4562 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4563 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4564
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4565 if test $ac_cv_func_remove = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4566
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4567 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4568 echo "configure:4569: checking for remove in -lposix" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4569 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4570
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4571 xe_check_libs=" -lposix "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4572 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4573 #line 4574 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4574 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4575 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4576 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4577 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4578 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4579
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4580 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4581 remove()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4582 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4583 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4584 if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4585 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4586 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4587 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4588 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4589 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4590 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4591 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4592 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4593 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4594 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4595
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4597 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4598 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4599 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4600 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4601 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4602
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4603
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4604 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4605
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4606 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4607 echo $ac_n "checking for shmat""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4608 echo "configure:4609: checking for shmat" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4609
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4610 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4611 #line 4612 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4612 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4613 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4614 which can conflict with char shmat(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4615 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4616 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4617 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4618 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4619 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4620
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4621 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4622
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4623 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4624 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4625 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4626 #if defined (__stub_shmat) || defined (__stub___shmat)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4627 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4628 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4629 shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4630 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4631
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4632 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4633 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4634 if { (eval echo configure:4635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4635 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4636 eval "ac_cv_func_shmat=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4637 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4638 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4639 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4640 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4641 eval "ac_cv_func_shmat=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4642 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4643 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4644
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4645 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4646 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4647 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4648 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4649 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4650 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4651
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4652 if test $ac_cv_func_shmat = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4653
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4654 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4655 echo "configure:4656: checking for shmat in -lipc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4656 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4657
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4658 xe_check_libs=" -lipc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4659 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4660 #line 4661 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4661 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4662 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4663 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4664 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4665 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4666
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4667 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4668 shmat()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4669 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4670 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4671 if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4672 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4673 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4674 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4675 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4676 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4677 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4678 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4679 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4680 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4681 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4682
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4684 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4685 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4686 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4687 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4688 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4689
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4690
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4691 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4692 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4693
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4694 # Check for libraries that X11R6 Xt/Xaw programs need.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4695 ac_save_LDFLAGS="$LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4696 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4697 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4698 # check for ICE first), but we must link in the order -lSM -lICE or
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4699 # we get undefined symbols. So assume we have SM if we have ICE.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4700 # These have to be linked with before -lX11, unlike the other
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4701 # libraries we check for below, so use a different variable.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4702 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4703
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4704 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4705 echo "configure:4706: checking for IceConnectionNumber in -lICE" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4706 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4707
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4708 xe_check_libs=" -lICE "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4709 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4710 #line 4711 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4711 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4712 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4713 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4714 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4715 char IceConnectionNumber();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4716
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4717 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4718 IceConnectionNumber()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4719 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4720 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4722 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4723 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4724 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4725 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4726 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4727 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4728 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4729 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4730 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4731 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4732
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4734 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4735 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4736 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4737 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4738 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4739
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4740
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4741 LDFLAGS="$ac_save_LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4742
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4743 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4744 # Autoconf claims to find X library and include dirs for us.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4745 if test "$no_x" = "yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4746 then with_x11=no window_system=none HAVE_X_WINDOWS=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4747 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4748 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4749 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4750
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4751 case "$with_x11" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4752 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4753 no ) window_system=none HAVE_X_WINDOWS=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4754 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4755
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4756 if test "$with_x11" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4757 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4758 Defining HAVE_X_WINDOWS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4759 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4760 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4761 #define HAVE_X_WINDOWS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4762 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4763 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4764
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4765 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
4766 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4767
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4768 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
4769 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4770 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4771 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4772 x_libraries="$lib_dir $x_libraries"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4773 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4774 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4775 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4776 x_includes="$inc_dir $x_includes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4777 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4778 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4779 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4780 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4781
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4782 for rel in "X11R6" "X11R5" "X11R4"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4783 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4784 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4785 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4786 x_libraries="$x_libraries $lib_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4787 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4788 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4789 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4790 x_includes="$x_includes $inc_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4791 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4792 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4793 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4794 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4795
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4796 ld_switch_x_site="$X_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4797
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4798
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4799 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
4800 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
4801 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4802
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4803 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4804 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4805 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4806 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4807 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4808 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4809 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4810 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4811 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
4812 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4813 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4814 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4815 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4816 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4817 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4818 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4819 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4820 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4821 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4822 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4823 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4824 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4825 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4826 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4827 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
4828 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4829 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4830 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4831 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4832 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4833 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4834 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4835 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4836 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4837 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4838 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4839 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4840 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4841 ld_switch_run="${dash_r}${runpath}"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4842 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4843 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4844 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4845
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4846
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4847 if test "$extra_verbose" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4848 echo; echo "X11 compilation variables:"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4849 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4850 echo
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4851 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4852
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4853 echo "checking for X defines extracted by xmkmf" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4854 echo "configure:4855: checking for X defines extracted by xmkmf" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4855 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4856 if mkdir conftestdir; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4857 cd conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4858 cat > Imakefile <<'EOF'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4859 xetest:
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4860 @echo ${PROTO_DEFINES} ${STD_DEFINES}
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4861 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4862 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4864 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4865 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4866 cd ..
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4867 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4868 for word in $xmkmf_defines; do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4869 case "$word" in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4870 -D*=* ) ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4871 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4872 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4873 Defining $word
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4874 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4875 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4876 #define $word 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4877 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4878 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4879 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4880 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4881 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4882 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4883
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4884 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4885 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4886 echo "configure:4887: checking for X11/Intrinsic.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4887
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4888 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4889 #line 4890 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4890 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4891 #include <X11/Intrinsic.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4892 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4894 { (eval echo configure:4895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4895 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4896 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4897 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4898 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4899 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4900 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4901 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4902 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4903 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4904 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4905 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4906 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4908 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4909 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4910 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4911 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4912 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4913 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4914
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4915
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4916
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4917 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4918 echo "configure:4919: checking for XOpenDisplay in -lX11" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4919 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4920
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4921 xe_check_libs=" -lX11 "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4922 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4923 #line 4924 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4924 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4925 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4926 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4927 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4928 char XOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4929
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4930 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4931 XOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4932 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4933 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4935 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4936 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4937 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4938 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4939 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4940 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4941 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4942 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4943 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4944 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4945
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4947 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4948 have_lib_x11=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4949 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4950 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4951 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4952
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4953
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4954 if test "$have_lib_x11" != "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4955
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4956 xe_msg_checking="for XGetFontProperty in -lX11"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4957 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4958 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4959 echo "configure:4960: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4960 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4961
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4962 xe_check_libs=" -lX11 -b i486-linuxaout"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4963 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4964 #line 4965 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4965 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4966 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4967 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4968 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4969 char XGetFontProperty();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4970
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4971 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4972 XGetFontProperty()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4973 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4974 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4976 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4977 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4978 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4979 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4980 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4981 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4982 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4983 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4984 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4985 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4986
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4988 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4989 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4990 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4991 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4992 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4993 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4994
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4995
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4996 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4997 libs_x="-lX11"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4998 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4999
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5000
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5001 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5002 echo "configure:5003: checking for XShapeSelectInput in -lXext" >&5
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5003 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5004
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5005 xe_check_libs=" -lXext "
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5006 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5007 #line 5008 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5008 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5009 /* Override any gcc2 internal prototype to avoid an error. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5010 /* We use char because int might match the return type of a gcc2
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5011 builtin and then its argument prototype would still apply. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5012 char XShapeSelectInput();
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5013
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5014 int main() {
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5015 XShapeSelectInput()
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5016 ; return 0; }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5017 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5019 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5020 eval "ac_cv_lib_$ac_lib_var=yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5021 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5022 echo "configure: failed program was:" >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5023 cat conftest.$ac_ext >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5024 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5025 eval "ac_cv_lib_$ac_lib_var=no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5026 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5027 rm -f conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5028 xe_check_libs=""
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5029
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5031 echo "$ac_t""yes" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5032 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5033 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5034 echo "$ac_t""no" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5035 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5036
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5037
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5038
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5039
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5040 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5041 echo "configure:5042: checking for XtOpenDisplay in -lXt" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5042 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5043
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5044 xe_check_libs=" -lXt "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5045 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5046 #line 5047 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5047 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5048 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5049 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5050 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5051 char XtOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5052
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5053 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5054 XtOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5055 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5056 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5057 if { (eval echo configure:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5058 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5059 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5060 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5061 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5062 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5063 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5064 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5065 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5066 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5067 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5068
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5070 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5071 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5072 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5073 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5074 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5075 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5076
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5077
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5078
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5079 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5080 echo "configure:5081: checking the version of X11 being used" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5081 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5082 #line 5083 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5083 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5084 #include <X11/Intrinsic.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5085 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5086 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5088 then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5089 ./conftest foobar; x11_release=$?
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5090 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5091 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5092 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5093 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5094 x11_release=4
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5095 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5096 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5097 echo "$ac_t""R${x11_release}" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5098 { test "$extra_verbose" = "yes" && cat << EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5099 Defining THIS_IS_X11R${x11_release}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5100 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5101 cat >> confdefs.h <<EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5102 #define THIS_IS_X11R${x11_release} 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5103 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5104 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5105
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5106
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5107 for ac_hdr in X11/Xlocale.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5108 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5111 echo "configure:5112: checking for $ac_hdr" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5112
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5113 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5114 #line 5115 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5115 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5116 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5117 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5119 { (eval echo configure:5120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5120 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5121 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5122 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5123 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5124 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5125 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5126 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5127 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5128 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5129 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5130 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5131 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5133 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5135 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5136 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5137 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5138 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5139 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5140 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5141 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5142
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5143 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5144 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5145 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5146 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5147
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5148
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5149 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5150 echo "configure:5151: checking for XFree86" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5151 if test -d "/usr/X386/include" -o \
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5152 -f "/etc/XF86Config" -o \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5153 -f "/etc/X11/XF86Config" -o \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5154 -f "/usr/X11R6/lib/X11/XF86Config"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5155 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5156 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5157 Defining HAVE_XFREE386
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5158 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5159 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5160 #define HAVE_XFREE386 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5161 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5162 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5163
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5164 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5165 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5166 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5167
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5168 test -z "$with_xmu" && {
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5169 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5170 echo "configure:5171: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5171 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5172
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5173 xe_check_libs=" -lXmu "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5174 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5175 #line 5176 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5176 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5177 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5178 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5179 builtin and then its argument prototype would still apply. */
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5180 char XmuReadBitmapDataFromFile();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5181
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5182 int main() {
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5183 XmuReadBitmapDataFromFile()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5184 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5185 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5186 if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5187 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5188 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5189 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5190 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5191 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5192 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5193 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5194 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5195 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5196 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5197
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5199 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5200 with_xmu=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5201 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5202 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5203 with_xmu=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5204 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5205
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5206 }
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5207 if test "$with_xmu" = "no"; then
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5208 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5209 echo " xemacs will be linked with \"xmu.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5210 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5211 else
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5212 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5213 { test "$extra_verbose" = "yes" && cat << \EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5214 Defining HAVE_XMU
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5215 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5216 cat >> confdefs.h <<\EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5217 #define HAVE_XMU 1
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5218 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5219 }
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
5220
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5221 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5222
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5223
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5224 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5225 echo "configure:5226: checking for main in -lXbsd" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5226 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5227
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5228 xe_check_libs=" -lXbsd "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5229 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5230 #line 5231 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5231 #include "confdefs.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5232
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5233 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5234 main()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5235 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5236 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5238 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5239 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5240 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5241 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5242 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5243 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5244 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5245 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5246 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5247 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5248
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5250 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5251 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5252 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5253 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5254 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5255
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5256
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5257
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5258 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5259 test -z "$window_system" && window_system="none"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5260
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5261 if test "$window_system" = "none" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5262 if test "$with_tty" = "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5263 { echo "configure: error: No window system support and no TTY support - Unable to proceed." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5264 fi
179
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5265 for feature in tooltalk cde offix session \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5266 menubars scrollbars toolbars dialogs xim xmu \
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
5267 imagick xface xpm
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5268 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5269 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5270 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5271 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5272 eval "with_${feature}=no"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5273 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5274 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5275 test -z "$with_toolbars" && with_toolbars=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5276 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5277
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5278 bitmapdir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5279
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5280 case "$window_system" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5281 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5282 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5283 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5284
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5285 case "$x_libraries" in *X11R4* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5286 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5287 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5288 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5289
179
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5290 echo "checking for session-management option" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5291 echo "configure:5292: checking for session-management option" >&5;
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
5292 if test "$with_session" = "yes"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5293 { test "$extra_verbose" = "yes" && cat << \EOF
179
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5294 Defining HAVE_SESSION
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5295 EOF
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5296 cat >> confdefs.h <<\EOF
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
5297 #define HAVE_SESSION 1
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5298 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5299 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5300
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5301 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
5302
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5303 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5304 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5305 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5306 echo "configure:5307: checking for X11/Xauth.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5307
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5308 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5309 #line 5310 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5310 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5311 #include <X11/Xauth.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5312 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5314 { (eval echo configure:5315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5315 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5316 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5317 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5318 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5319 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5320 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5321 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5322 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5323 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5324 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5325 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5326 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5328 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5329 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5330 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5331 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5332 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5333 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5334 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5335 test -z "$with_xauth" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5336 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5337 echo "configure:5338: checking for XauGetAuthByAddr in -lXau" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5338 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5339
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5340 xe_check_libs=" -lXau "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5341 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5342 #line 5343 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5343 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5344 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5345 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5346 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5347 char XauGetAuthByAddr();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5348
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5349 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5350 XauGetAuthByAddr()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5351 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5352 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5353 if { (eval echo configure:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5354 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5355 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5356 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5357 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5358 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5359 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5360 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5361 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5362 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5363 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5364
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5366 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5367 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5368 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5369 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5370 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5371 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5372
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5373 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5374 test -z "$with_xauth" && with_xauth=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5375 if test "$with_xauth" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5376 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5377 Defining HAVE_XAUTH
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5378 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5379 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5380 #define HAVE_XAUTH 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5381 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5382 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5383
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5384
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5385 T=""
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5386 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5387 libs_xauth="$T"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5388
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5389 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5390
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5391
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 193
diff changeset
5392 OFFIX_O=""
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
5393 test "$window_system" != "x11" && with_offix=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5394 test -z "$with_offix" && with_offix=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5395 if test "$with_offix" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5396 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5397 Defining HAVE_OFFIX_DND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5398 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5399 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5400 #define HAVE_OFFIX_DND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5401 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5402 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5403
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 193
diff changeset
5404 OFFIX_O="offix.o"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 193
diff changeset
5405 fi
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 193
diff changeset
5406
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5407
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5408 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5409 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5410 for dir in "" "Tt/" "desktop/" ; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5411 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5412 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5413 echo "configure:5414: checking for ${dir}tt_c.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5414
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5415 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5416 #line 5417 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5417 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5418 #include <${dir}tt_c.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5419 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5421 { (eval echo configure:5422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5422 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5423 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5424 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5425 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5426 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5427 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5428 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5429 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5430 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5431 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5432 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5433 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5435 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5436 tt_c_h_path="${dir}tt_c.h" && break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5437 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5438 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5439 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5440
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5441 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5442 test -z "$tt_c_h_path" && with_tooltalk=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5443 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5444 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5445 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5446
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5447 xe_msg_checking="for tt_message_create in -ltt"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5448 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5449 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5450 echo "configure:5451: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5451 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5452
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5453 xe_check_libs=" -ltt $extra_libs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5454 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5455 #line 5456 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5456 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5457 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5458 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5459 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5460 char tt_message_create();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5461
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5462 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5463 tt_message_create()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5464 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5465 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5467 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5468 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5469 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5470 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5471 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5472 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5473 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5474 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5475 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5476 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5477
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5479 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5480 with_tooltalk=yes tt_libs="-ltt $extra_libs"; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5481 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5482 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5483 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5484 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5485
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5486
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5487 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5488 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5489 test -z "$with_tooltalk" && with_tooltalk=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5490 if test "$with_tooltalk" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5491 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5492 Defining TOOLTALK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5493 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5494 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5495 #define TOOLTALK 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5496 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5497 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5498
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5499 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5500 Defining TT_C_H_PATH = "$tt_c_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5501 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5502 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5503 #define TT_C_H_PATH "$tt_c_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5504 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5505 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5506
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5507 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5508 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5509 echo " xemacs will be linked with \"tooltalk.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5510 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5511 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5512
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5513 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5514 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5515 echo "configure:5516: checking for Dt/Dt.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5516
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5517 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5518 #line 5519 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5519 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5520 #include <Dt/Dt.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5521 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5523 { (eval echo configure:5524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5524 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5525 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5526 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5527 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5528 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5529 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5530 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5531 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5532 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5533 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5534 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5535 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5537 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5538 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5539 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5540 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5541 with_cde=no
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
5542 fi
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
5543 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5544 test -z "$with_cde" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5545 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5546 echo "configure:5547: checking for DtDndDragStart in -lDtSvc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5547 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5548
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5549 xe_check_libs=" -lDtSvc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5550 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5551 #line 5552 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5552 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5553 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5554 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5555 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5556 char DtDndDragStart();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5557
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5558 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5559 DtDndDragStart()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5560 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5561 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5562 if { (eval echo configure:5563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5563 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5564 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5565 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5566 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5567 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5568 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5569 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5570 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5571 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5572 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5573
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5575 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5576 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5577 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5578 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5579 with_cde=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5580 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5581
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5582 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5583 test -z "$with_cde" && with_cde=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5584 if test "$with_cde" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5585 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5586 Defining HAVE_CDE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5587 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5588 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5589 #define HAVE_CDE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5590 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5591 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5592
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5593 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5594 with_tooltalk=yes # CDE requires Tooltalk
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
5595 need_motif=yes # CDE requires Motif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5596 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5597
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5598
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5599 if test "$with_x11" = "yes"; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5600
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5601 echo "checking for X11 graphics libraries" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5602 echo "configure:5603: checking for X11 graphics libraries" >&5
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5603 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5604 echo "configure:5605: checking for Xpm - no older than 3.4f" >&5
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5605 xe_check_libs=-lXpm
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5606 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5607 #line 5608 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5608 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5609 #include <X11/xpm.h>
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5610 int main(int c, char **v) {
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5611 return c == 1 ? 0 :
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5612 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5613 XpmIncludeVersion < 30406 ? 2 :
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5614 0 ;
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5615 }
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5616 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5617 if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5618 then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5619 ./conftest foobar; xpm_status=$?;
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5620 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5621 else
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5622 echo "configure: failed program was:" >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5623 cat conftest.$ac_ext >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5624 rm -fr conftest*
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5625 with_xpm=no
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5626 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5627 rm -fr conftest*
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5628 }
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5629 xe_check_libs=
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5630 echo "$ac_t""$with_xpm" 1>&6
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5631 if test "$xpm_status" = "1" -o "$xpm_status" = "2"; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5632 test "$xpm_status" = "1" && problem="Xpm library version and header file version don't match!"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5633 test "$xpm_status" = "2" && problem="Xpm library version is too old!"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5634 echo "
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5635 *** WARNING *** $problem
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5636 I'm not touching that with a 10-foot pole!
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5637 If you really want to use the installed version of Xpm, rerun
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5638 configure --with-xpm=yes, but don't blame me if XEmacs crashes!
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5639 "
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5640 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5641 if test "$with_xpm" = "yes"; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5642 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5643 Defining HAVE_XPM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5644 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5645 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5646 #define HAVE_XPM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5647 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5648 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5649
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5650 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5651 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5652
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5653 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5654 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5655 echo "configure:5656: checking for compface.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5656
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5657 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5658 #line 5659 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5659 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5660 #include <compface.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5661 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5663 { (eval echo configure:5664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5664 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5665 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5666 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5667 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5668 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5669 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5670 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5671 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5672 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5673 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5674 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5675 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5677 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5678 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5679 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5680 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5681 with_xface=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5682 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5683 }
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5684 test -z "$with_xface" && {
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5685 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5686 echo "configure:5687: checking for UnGenFace in -lcompface" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5687 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5688
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5689 xe_check_libs=" -lcompface "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5690 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5691 #line 5692 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5692 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5693 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5694 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5695 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5696 char UnGenFace();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5697
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5698 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5699 UnGenFace()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5700 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5701 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5703 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5704 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5705 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5706 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5707 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5708 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5709 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5710 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5711 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5712 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5713
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5715 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5716 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5717 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5718 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5719 with_xface=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5720 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5721
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5722 }
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5723 test -z "$with_xface" && with_xface=yes
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5724 if test "$with_xface" = "yes"; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5725 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5726 Defining HAVE_XFACE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5727 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5728 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5729 #define HAVE_XFACE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5730 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5731 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5732
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5733 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5734 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
5735
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
5736 test -z "$with_imagick" && { ac_safe=`echo "magick/magick.h" | sed 'y%./+-%__p_%'`
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
5737 echo $ac_n "checking for magick/magick.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5738 echo "configure:5739: checking for magick/magick.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5739
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5740 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5741 #line 5742 "configure"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
5742 #include "confdefs.h"
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
5743 #include <magick/magick.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5744 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5746 { (eval echo configure:5747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5747 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5748 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5749 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5750 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5751 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5752 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5753 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5754 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5755 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5756 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5757 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5758 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5760 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5761 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5762 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5763 echo "$ac_t""no" 1>&6
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
5764 with_imagick=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5765 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5766 }
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5767 test -z "$with_imagick" && {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5768 imagick_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5769
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5770 echo $ac_n "checking for XDPSPixelsPerPoint in -ldps""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5771 echo "configure:5772: checking for XDPSPixelsPerPoint in -ldps" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5772 ac_lib_var=`echo dps'_'XDPSPixelsPerPoint | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5773
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5774 xe_check_libs="-ldpstk -ldps "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5775 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5776 #line 5777 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5777 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5778 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5779 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5780 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5781 char XDPSPixelsPerPoint();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5782
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5783 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5784 XDPSPixelsPerPoint()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5785 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5786 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5787 if { (eval echo configure:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5788 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5789 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5790 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5791 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5792 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5793 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5794 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5795 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5796 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5797 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5798
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5800 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5801 imagick_libs="$imagick_libs -ldpstk -ldps" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ldpstk -ldps\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5802 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5803 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5804 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5805
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5806
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5807
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5808 echo $ac_n "checking for FPX_SetToolkitMemoryLimit in -lfpx""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5809 echo "configure:5810: checking for FPX_SetToolkitMemoryLimit in -lfpx" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5810 ac_lib_var=`echo fpx'_'FPX_SetToolkitMemoryLimit | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5811
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5812 xe_check_libs=" -lfpx "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5813 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5814 #line 5815 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5815 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5816 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5817 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5818 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5819 char FPX_SetToolkitMemoryLimit();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5820
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5821 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5822 FPX_SetToolkitMemoryLimit()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5823 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5824 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5826 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5827 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5828 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5829 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5830 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5831 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5832 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5833 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5834 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5835 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5836
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5838 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5839 imagick_libs="$imagick_libs -lfpx" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lfpx\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5840 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5841 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5842 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5843
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5844
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5845
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5846 echo $ac_n "checking for DF24getdims in -ldf""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5847 echo "configure:5848: checking for DF24getdims in -ldf" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5848 ac_lib_var=`echo df'_'DF24getdims | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5849
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5850 xe_check_libs=" -ldf "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5851 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5852 #line 5853 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5853 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5854 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5855 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5856 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5857 char DF24getdims();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5858
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5859 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5860 DF24getdims()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5861 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5862 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5863 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5864 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5865 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5866 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5867 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5868 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5869 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5870 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5871 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5872 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5873 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5874
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5876 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5877 imagick_libs="$imagick_libs -ldf" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ldf\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5878 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5879 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5880 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5881
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5882
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5883
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5884 echo $ac_n "checking for jbg_dec_init in -ljbig""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5885 echo "configure:5886: checking for jbg_dec_init in -ljbig" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5886 ac_lib_var=`echo jbig'_'jbg_dec_init | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5887
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5888 xe_check_libs=" -ljbig "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5889 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5890 #line 5891 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5891 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5892 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5893 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5894 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5895 char jbg_dec_init();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5896
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5897 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5898 jbg_dec_init()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5899 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5900 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5901 if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5902 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5903 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5904 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5905 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5906 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5907 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5908 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5909 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5910 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5911 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5912
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5914 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5915 imagick_libs="$imagick_libs -ljbig" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ljbig\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5916 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5917 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5918 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5919
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5920
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5921
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5922 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5923 echo "configure:5924: checking for jpeg_read_header in -ljpeg" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5924 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5925
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5926 xe_check_libs=" -ljpeg "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5927 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5928 #line 5929 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5929 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5930 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5931 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5932 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5933 char jpeg_read_header();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5934
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5935 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5936 jpeg_read_header()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5937 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5938 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5939 if { (eval echo configure:5940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5940 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5941 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5942 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5943 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5944 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5945 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5946 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5947 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5948 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5949 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5950
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5952 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5953 imagick_libs="$imagick_libs -ljpeg" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ljpeg\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5954 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5955 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5956 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5957
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5958
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5959
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5960 echo $ac_n "checking for OpenMPEG in -lmpeg""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5961 echo "configure:5962: checking for OpenMPEG in -lmpeg" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5962 ac_lib_var=`echo mpeg'_'OpenMPEG | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5963
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5964 xe_check_libs=" -lmpeg "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5965 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5966 #line 5967 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5967 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5968 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5969 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5970 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5971 char OpenMPEG();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5972
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5973 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5974 OpenMPEG()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5975 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5976 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5978 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5979 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5980 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5981 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5982 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5983 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5984 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5985 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5986 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5987 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5988
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5990 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5991 imagick_libs="$imagick_libs -lmpeg" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmpeg\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5992 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5993 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5994 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5995
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5996
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5997
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
5998 echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
5999 echo "configure:6000: checking for png_create_read_struct in -lpng" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6000 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6001
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6002 xe_check_libs=" -lpng "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6003 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6004 #line 6005 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6005 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6006 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6007 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6008 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6009 char png_create_read_struct();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6010
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6011 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6012 png_create_read_struct()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6013 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6014 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6016 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6017 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6018 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6019 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6020 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6021 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6022 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6023 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6024 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6025 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6026
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6028 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6029 imagick_libs="$imagick_libs -lpng" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lpng\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6030 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6031 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6032 xe_msg_checking="for png_create_read_struct in -lpng"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6033 test -n "-lz" && xe_msg_checking="$xe_msg_checking using extra libs -lz"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6034 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6035 echo "configure:6036: checking "$xe_msg_checking"" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6036 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6037
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6038 xe_check_libs=" -lpng -lz"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6039 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6040 #line 6041 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6041 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6042 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6043 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6044 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6045 char png_create_read_struct();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6046
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6047 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6048 png_create_read_struct()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6049 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6050 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6051 if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6052 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6053 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6054 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6055 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6056 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6057 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6058 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6059 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6060 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6061 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6062
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6064 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6065 imagick_libs="$imagick_libs -lpng -lz" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lpng -lz\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6066 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6067 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6068 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6069
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6070
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6071 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6072
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6073
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6074
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6075 echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6076 echo "configure:6077: checking for TIFFOpen in -ltiff" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6077 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6078
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6079 xe_check_libs=" -ltiff "
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6080 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6081 #line 6082 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6082 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6083 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6084 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6085 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6086 char TIFFOpen();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6087
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6088 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6089 TIFFOpen()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6090 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6091 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6092 if { (eval echo configure:6093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6093 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6094 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6095 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6096 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6097 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6098 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6099 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6100 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6101 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6102 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6103
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6105 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6106 imagick_libs="$imagick_libs -ltiff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ltiff\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6107 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6108 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6109 xe_msg_checking="for TIFFOpen in -ltiff"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6110 test -n "-ljpeg -lz" && xe_msg_checking="$xe_msg_checking using extra libs -ljpeg -lz"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6111 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6112 echo "configure:6113: checking "$xe_msg_checking"" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6113 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6114
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6115 xe_check_libs=" -ltiff -ljpeg -lz"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6116 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6117 #line 6118 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6118 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6119 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6120 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6121 builtin and then its argument prototype would still apply. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6122 char TIFFOpen();
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6123
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6124 int main() {
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6125 TIFFOpen()
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6126 ; return 0; }
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6127 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6128 if { (eval echo configure:6129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6129 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6130 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6131 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6132 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6133 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6134 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6135 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6136 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6137 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6138 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6139
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6141 echo "$ac_t""yes" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6142 imagick_libs="$imagick_libs -ltiff -ljpeg -lz" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ltiff -ljpeg -lz\" to \$imagick_libs"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6143 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6144 echo "$ac_t""no" 1>&6
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6145 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6146
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6147
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6148 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6149
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6150
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6151 libs_x="$libs_x $imagick_libs" && if test "$extra_verbose" = "yes"; then echo " Appending \"$imagick_libs\" to \$libs_x"; fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
6152 }
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6153 test -z "$with_imagick" && {
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6154 echo $ac_n "checking for MogrifyImage in -lMagick""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6155 echo "configure:6156: checking for MogrifyImage in -lMagick" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6156 ac_lib_var=`echo Magick'_'MogrifyImage | sed 'y%./+-%__p_%'`
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6157
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6158 xe_check_libs=" -lMagick "
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6159 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6160 #line 6161 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6161 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6162 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6163 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6164 builtin and then its argument prototype would still apply. */
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6165 char MogrifyImage();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6166
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6167 int main() {
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6168 MogrifyImage()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6169 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6170 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6171 if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6172 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6173 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6174 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6175 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6176 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6177 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6178 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6179 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6180 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6181 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6182
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6184 echo "$ac_t""yes" 1>&6
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6185 :
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6186 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6187 echo "$ac_t""no" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6188 with_imagick=no
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6189 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6190
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6191 }
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6192 test -z "$with_imagick" && with_imagick=yes
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6193 if test "$with_imagick" = "yes"; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6194 { test "$extra_verbose" = "yes" && cat << \EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6195 Defining HAVE_IMAGEMAGICK
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6196 EOF
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6197 cat >> confdefs.h <<\EOF
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6198 #define HAVE_IMAGEMAGICK 1
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6199 EOF
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6200 }
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6201
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6202 libs_x="-lMagick $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lMagick\" to \$libs_x"; fi
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6203 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6204
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6205
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6206 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6207 echo "configure:6208: checking for XawScrollbarSetThumb in -lXaw" >&5
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6208 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6209
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6210 xe_check_libs=" -lXaw "
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6211 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6212 #line 6213 "configure"
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6213 #include "confdefs.h"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6214 /* Override any gcc2 internal prototype to avoid an error. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6215 /* We use char because int might match the return type of a gcc2
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6216 builtin and then its argument prototype would still apply. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6217 char XawScrollbarSetThumb();
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6218
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6219 int main() {
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6220 XawScrollbarSetThumb()
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6221 ; return 0; }
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6222 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6223 if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6224 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6225 eval "ac_cv_lib_$ac_lib_var=yes"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6226 else
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6227 echo "configure: failed program was:" >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6228 cat conftest.$ac_ext >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6229 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6230 eval "ac_cv_lib_$ac_lib_var=no"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6231 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6232 rm -f conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6233 xe_check_libs=""
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6234
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6236 echo "$ac_t""yes" 1>&6
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6237 have_xaw=yes
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6238 else
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6239 echo "$ac_t""no" 1>&6
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6240 have_xaw=no
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6241 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6242
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6243
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6244
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6245 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6246 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6247 echo "configure:6248: checking for Xm/Xm.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6248
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6249 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6250 #line 6251 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6251 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6252 #include <Xm/Xm.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6253 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6255 { (eval echo configure:6256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6256 ac_err=`grep -v '^ *+' conftest.out`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6257 if test -z "$ac_err"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6258 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6259 eval "ac_cv_header_$ac_safe=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6260 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6261 echo "$ac_err" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6262 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6263 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6264 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6265 eval "ac_cv_header_$ac_safe=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6266 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6267 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6269 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6270
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6271 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6272 echo "configure:6273: checking for XmStringFree in -lXm" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6273 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6274
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6275 xe_check_libs=" -lXm "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6276 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6277 #line 6278 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6278 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6279 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6280 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6281 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6282 char XmStringFree();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6283
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6284 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6285 XmStringFree()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6286 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6287 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6288 if { (eval echo configure:6289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6289 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6290 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6291 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6292 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6293 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6294 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6295 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6296 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6297 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6298 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6299
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6301 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6302 have_motif=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6303 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6304 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6305 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6306 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6307
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6308
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6309 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6310 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6311 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6312 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6313
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6314
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
6315 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6316
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6317 case "$with_menubars" in "" | "yes" | "athena" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6318 with_menubars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6319 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6320 case "$with_dialogs" in "" | "yes" | "lucid" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6321 if test "$have_motif" = "yes"; then with_dialogs="motif"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6322 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6323 else with_dialogs=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6324 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6325 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6326 case "$with_scrollbars" in "" | "yes" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6327 with_scrollbars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6328 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6329
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6330 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6331
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6332 case "$all_widgets" in *athena* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6333 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6334 Defining LWLIB_USES_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6335 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6336 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6337 #define LWLIB_USES_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6338 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6339 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6340
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6341 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6342 Defining NEED_ATHENA
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6343 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6344 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6345 #define NEED_ATHENA 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6346 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6347 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6348
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6349 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6350 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6351 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6352
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6353 case "$all_widgets" in *motif* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6354 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6355 Defining LWLIB_USES_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6356 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6357 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6358 #define LWLIB_USES_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6359 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6360 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6361
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6362 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6363 Defining NEED_MOTIF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6364 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6365 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6366 #define NEED_MOTIF 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6367 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6368 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6369
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6370 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6371 need_motif=yes ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6372 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6373
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6374 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6375 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6376 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6377 case "$all_widgets" in *lucid* )
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6378 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6379 Defining NEED_LUCID
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6380 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6381 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6382 #define NEED_LUCID 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6383 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6384 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6385
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6386 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6387 esac
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6388
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6389
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
6390
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6391 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6392 Defining LWLIB_SCROLLBARS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6393 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6394 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6395 #define LWLIB_SCROLLBARS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6396 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6397 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6398 ;; esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6399 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6400 Defining LWLIB_DIALOGS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6401 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6402 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6403 #define LWLIB_DIALOGS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6404 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6405 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6406 ;; esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6407 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6408 Defining LWLIB_SCROLLBARS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6409 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6410 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6411 #define LWLIB_SCROLLBARS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6412 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6413 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6414
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6415 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6416 Defining LWLIB_DIALOGS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6417 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6418 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6419 #define LWLIB_DIALOGS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6420 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6421 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6422
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6423
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6424 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6425 Defining HAVE_MENUBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6426 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6427 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6428 #define HAVE_MENUBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6429 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6430 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6431
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6432 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6433 Defining HAVE_SCROLLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6434 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6435 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6436 #define HAVE_SCROLLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6437 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6438 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6439
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6440 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6441 Defining HAVE_DIALOGS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6442 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6443 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6444 #define HAVE_DIALOGS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6445 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6446 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6447
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6448 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6449 Defining HAVE_TOOLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6450 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6451 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6452 #define HAVE_TOOLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6453 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6454 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6455
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6456
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6457 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6458 Defining LWLIB_MENUBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6459 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6460 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6461 #define LWLIB_MENUBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6462 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6463 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6464
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6465 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6466 Defining LWLIB_SCROLLBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6467 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6468 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6469 #define LWLIB_SCROLLBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6470 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6471 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6472
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6473
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6474 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6475 Defining LWLIB_MENUBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6476 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6477 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6478 #define LWLIB_MENUBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6479 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6480 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6481
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6482 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6483 Defining LWLIB_SCROLLBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6484 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6485 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6486 #define LWLIB_SCROLLBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6487 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6488 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6489
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6490 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6491 Defining LWLIB_DIALOGS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6492 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6493 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6494 #define LWLIB_DIALOGS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6495 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6496 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6497
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6498
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6499 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6500 echo " xemacs will be linked with \"menubar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6501 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6502 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6503 echo " xemacs will be linked with \"scrollbar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6504 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6505 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6506 echo " xemacs will be linked with \"dialog.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6507 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6508 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6509 echo " xemacs will be linked with \"toolbar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6510 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6511 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6512 echo " xemacs will be linked with \"gui.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6513 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6514
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6515 if test "$with_x11" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6516 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6517 echo " xemacs will be linked with \"menubar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6518 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6519 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6520 echo " xemacs will be linked with \"scrollbar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6521 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6522 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6523 echo " xemacs will be linked with \"dialog-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6524 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6525 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6526 echo " xemacs will be linked with \"toolbar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6527 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6528 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6529 echo " xemacs will be linked with \"gui-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6530 fi
211
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6531 else
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6532 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6533 echo "Attempt to Build NAS sound without X"
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6534 echo "Please remove NAS configuration or build with X"
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6535 exit 1
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
6536 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6537 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6538
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6539
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6540 test -z "$with_mule" && with_mule=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6541
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6542 if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6543 echo "Attempt to Build with Mule without Mule/Lisp"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6544 echo "Please install the XEmacs/Mule tarball or"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6545 echo "rerun configure with --with-mule=no"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6546 exit 1
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6547 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
6548
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6549 if test "$with_mule" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6550 echo "checking for Mule-related features" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6551 echo "configure:6552: checking for Mule-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6552 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6553 Defining MULE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6554 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6555 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6556 #define MULE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6557 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6558 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6559
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6560 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6561 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6562 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6563
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6564 for ac_hdr in libintl.h
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6565 do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6568 echo "configure:6569: checking for $ac_hdr" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6569
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6570 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6571 #line 6572 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6572 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6573 #include <$ac_hdr>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6574 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6576 { (eval echo configure:6577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6577 ac_err=`grep -v '^ *+' conftest.out`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6578 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6579 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6580 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6581 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6582 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6583 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6584 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6585 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6586 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6587 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6588 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6590 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6592 { test "$extra_verbose" = "yes" && cat << EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6593 Defining $ac_tr_hdr
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6594 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6595 cat >> confdefs.h <<EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6596 #define $ac_tr_hdr 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6597 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6598 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6599
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6600 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6601 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6602 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6603 done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6604
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6605
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6606 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6607 echo "configure:6608: checking for strerror in -lintl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6608 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6609
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6610 xe_check_libs=" -lintl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6611 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6612 #line 6613 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6613 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6614 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6615 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6616 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6617 char strerror();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6618
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6619 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6620 strerror()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6621 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6622 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6624 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6625 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6626 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6627 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6628 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6629 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6630 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6631 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6632 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6633 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6634
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6636 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6637 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6638 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6639 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6640 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6641 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6642 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6643 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6644 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6645 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6646
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6647 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6648
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6649 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6650 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6651 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6652
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6653
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6654
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6655 echo "checking for Mule input methods" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6656 echo "configure:6657: checking for Mule input methods" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6657 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6658 case "$with_xim" in "" | "yes" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6659 echo "checking for XIM" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6660 echo "configure:6661: checking for XIM" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6661
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6662 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6663 echo "configure:6664: checking for XmImMbLookupString in -lXm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6664 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6665
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6666 xe_check_libs=" -lXm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6667 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6668 #line 6669 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6669 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6670 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6671 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6672 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6673 char XmImMbLookupString();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6674
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6675 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6676 XmImMbLookupString()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6677 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6678 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6680 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6681 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6682 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6683 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6684 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6685 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6686 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6687 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6688 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6689 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6690
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6692 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6693 with_xim=motif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6694 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6695 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6696 with_xim=xlib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6697 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6698
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6699
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6700 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6701 if test "$with_xim" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6702 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6703 Defining HAVE_XIM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6704 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6705 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6706 #define HAVE_XIM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6707 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6708 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6709
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6710 if test "$with_xim" = "xlib"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6711 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6712 Defining XIM_XLIB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6713 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6714 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6715 #define XIM_XLIB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6716 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6717 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6718
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6719 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6720 echo " xemacs will be linked with \"input-method-xlib.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6721 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6722 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6723 if test "$with_xim" = "motif"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6724 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6725 Defining XIM_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6726 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6727 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6728 #define XIM_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6729 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6730 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6731
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6732 need_motif=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6733 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6734 echo " xemacs will be linked with \"input-method-motif.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6735 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6736 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6737 if test "$with_xim" = "motif"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6738 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6739 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6740 fi
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6741
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6742 if test "$with_xfs" = "yes" ; then
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6743 echo "checking for XFontSet" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6744 echo "configure:6745: checking for XFontSet" >&5
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6745
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6746 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6747 echo "configure:6748: checking for XmbDrawString in -lX11" >&5
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6748 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6749
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6750 xe_check_libs=" -lX11 "
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6751 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6752 #line 6753 "configure"
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6753 #include "confdefs.h"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6754 /* Override any gcc2 internal prototype to avoid an error. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6755 /* We use char because int might match the return type of a gcc2
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6756 builtin and then its argument prototype would still apply. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6757 char XmbDrawString();
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6758
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6759 int main() {
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6760 XmbDrawString()
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6761 ; return 0; }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6762 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6763 if { (eval echo configure:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6764 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6765 eval "ac_cv_lib_$ac_lib_var=yes"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6766 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6767 echo "configure: failed program was:" >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6768 cat conftest.$ac_ext >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6769 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6770 eval "ac_cv_lib_$ac_lib_var=no"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6771 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6772 rm -f conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6773 xe_check_libs=""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6774
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6776 echo "$ac_t""yes" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6777 :
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6778 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6779 echo "$ac_t""no" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6780 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6781 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6782
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6783
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6784 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6785 { test "$extra_verbose" = "yes" && cat << \EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6786 Defining USE_XFONTSET
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6787 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6788 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6789 #define USE_XFONTSET 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6790 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6791 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6792
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6793 if test "$with_xim" = "no" ; then
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6794 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6795 echo " xemacs will be linked with \"input-method-xfs.o\""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6796 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
6797 fi
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6798 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6799 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6800 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6801 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6802 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6803 echo "configure:6804: checking for wnn/jllib.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6804
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6805 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6806 #line 6807 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6807 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6808 #include <wnn/jllib.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6809 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6811 { (eval echo configure:6812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6812 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6813 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6814 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6815 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6816 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6817 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6818 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6819 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6820 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6821 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6822 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6823 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6825 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6826 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6827 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6828 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6829 with_wnn=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6830 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6831 }
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6832 if test "$with_wnn" != "no"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6833 for ac_func in crypt
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6834 do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6836 echo "configure:6837: checking for $ac_func" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6837
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6838 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6839 #line 6840 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6840 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6841 /* System header to define __stub macros and hopefully few prototypes,
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6842 which can conflict with char $ac_func(); below. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6843 #include <assert.h>
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6844 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6845 /* We use char because int might match the return type of a gcc2
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6846 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6847 char $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6848
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6849 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6850
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6851 /* The GNU C library defines this for functions which it implements
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6852 to always fail with ENOSYS. Some functions are actually named
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6853 something starting with __ and the normal name is an alias. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6855 choke me
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6856 #else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6857 $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6858 #endif
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6859
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6860 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6861 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6862 if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6863 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6864 eval "ac_cv_func_$ac_func=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6865 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6866 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6867 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6868 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6869 eval "ac_cv_func_$ac_func=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6870 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6871 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6872
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6874 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6876 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6877 Defining $ac_tr_func
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6878 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6879 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6880 #define $ac_tr_func 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6881 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6882 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6883
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6884 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6885 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6886 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6887 done
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6888
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6889 test "$ac_cv_func_crypt" != "yes" && {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6890 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6891 echo "configure:6892: checking for crypt in -lcrypt" >&5
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6892 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6893
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6894 xe_check_libs=" -lcrypt "
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6895 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6896 #line 6897 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6897 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6898 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6899 /* We use char because int might match the return type of a gcc2
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6900 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6901 char crypt();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6902
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6903 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6904 crypt()
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6905 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6906 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6908 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6909 eval "ac_cv_lib_$ac_lib_var=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6910 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6911 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6912 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6913 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6914 eval "ac_cv_lib_$ac_lib_var=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6915 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6916 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6917 xe_check_libs=""
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6918
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6920 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6921 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6922 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6923 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6924 Defining $ac_tr_lib
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6925 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6926 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6927 #define $ac_tr_lib 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6928 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6929 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6930
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6931 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6932
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6933 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6934 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6935 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6936
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6937 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6938 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6939 test -z "$with_wnn" && {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6940 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6941 echo "configure:6942: checking for jl_dic_list_e in -lwnn" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6942 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6943
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6944 xe_check_libs=" -lwnn "
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6945 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6946 #line 6947 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6947 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6948 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6949 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6950 builtin and then its argument prototype would still apply. */
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6951 char jl_dic_list_e();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6952
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6953 int main() {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6954 jl_dic_list_e()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6955 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6956 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6957 if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6958 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6959 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6960 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6961 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6962 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6963 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6964 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6965 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6966 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6967 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6968
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6970 echo "$ac_t""yes" 1>&6
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6971 :
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6972 else
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6973 echo "$ac_t""no" 1>&6
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6974 with_wnn=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6975 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6976
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6977 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6978 test -z "$with_wnn" && with_wnn=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6979 if test "$with_wnn" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6980 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6981 Defining HAVE_WNN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6982 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6983 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6984 #define HAVE_WNN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6985 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6986 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6987
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6988 libs_x="-lwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6989 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6990 echo " xemacs will be linked with \"mule-wnnfns.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6991 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6992
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6993 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6994 echo "configure:6995: checking for jl_fi_dic_list in -lwnn" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6995 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6996
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6997 xe_check_libs=" -lwnn "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6998 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
6999 #line 7000 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7000 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7001 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7002 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7003 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7004 char jl_fi_dic_list();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7005
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7006 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7007 jl_fi_dic_list()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7008 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7009 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7011 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7012 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7013 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7014 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7015 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7016 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7017 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7018 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7019 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7020 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7021
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7023 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7024 with_wnn6=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7025 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7026 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7027 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7028
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7029
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7030 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7031 Defining WNN6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7032 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7033 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7034 #define WNN6 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7035 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7036 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7037
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7038 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7039
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7040 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7041 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7042 echo "configure:7043: checking for canna/RK.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7043
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7044 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7045 #line 7046 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7046 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7047 #include <canna/RK.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7048 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7050 { (eval echo configure:7051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7051 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7052 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7053 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7054 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7055 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7056 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7057 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7058 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7059 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7060 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7061 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7062 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7064 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7065 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7066 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7067 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7068 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7069 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7070 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7071 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7072 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7073 echo "configure:7074: checking for RkBgnBun in -lRKC" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7074 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7075
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7076 xe_check_libs=" -lRKC "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7077 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7078 #line 7079 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7079 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7080 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7081 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7082 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7083 char RkBgnBun();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7084
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7085 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7086 RkBgnBun()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7087 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7088 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7089 if { (eval echo configure:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7090 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7091 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7092 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7093 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7094 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7095 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7096 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7097 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7098 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7099 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7100
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7102 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7103 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7104 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7105 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7106 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7107 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7108
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7109 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7110 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7111 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7112 echo "configure:7113: checking for jrKanjiControl in -lcanna" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7113 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7114
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7115 xe_check_libs=" -lcanna "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7116 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7117 #line 7118 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7118 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7119 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7120 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7121 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7122 char jrKanjiControl();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7123
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7124 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7125 jrKanjiControl()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7126 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7127 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7129 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7130 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7131 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7132 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7133 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7134 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7135 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7136 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7137 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7138 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7139
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7141 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7142 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7143 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7144 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7145 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7146 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7147
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7148 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7149 test -z "$with_canna" && with_canna=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7150 if test "$with_canna" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7151 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7152 Defining HAVE_CANNA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7153 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7154 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7155 #define HAVE_CANNA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7156 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7157 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7158
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7159 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7160 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7161 echo " xemacs will be linked with \"mule-canna.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7162 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7163 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7164
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7165 else for feature in xim canna wnn; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7166 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7167 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7168 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7169 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7170 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7171 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7172
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7173 if test "$need_motif" = "yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7174 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7175
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7176 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7177 echo "configure:7178: checking for layout_object_getvalue in -li18n" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7178 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7179
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7180 xe_check_libs=" -li18n "
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7181 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7182 #line 7183 "configure"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7183 #include "confdefs.h"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7184 /* Override any gcc2 internal prototype to avoid an error. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7185 /* We use char because int might match the return type of a gcc2
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7186 builtin and then its argument prototype would still apply. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7187 char layout_object_getvalue();
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7188
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7189 int main() {
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7190 layout_object_getvalue()
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7191 ; return 0; }
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7192 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7194 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7195 eval "ac_cv_lib_$ac_lib_var=yes"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7196 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7197 echo "configure: failed program was:" >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7198 cat conftest.$ac_ext >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7199 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7200 eval "ac_cv_lib_$ac_lib_var=no"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7201 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7202 rm -f conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7203 xe_check_libs=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7204
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7206 echo "$ac_t""yes" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7207 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7208 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7209 echo "$ac_t""no" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7210 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7211
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
7212
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7213
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7214 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
7215 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
7216 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7217
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7218 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7219 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7220 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7221 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7222 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7223 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7224 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7225 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7226 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7227 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7228 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7229 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7230 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7231 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7232 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7233 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7234 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7235 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7236 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7237 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7238 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7239 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7240 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7241 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7242 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7243 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7244 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7245 "$xe_runpath_dir" != "/usr/lib" -a \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7246 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7247 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7248 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7249 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7250 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7251 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7252 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7253 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7254 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7255 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7256 ld_switch_run="${dash_r}${runpath}"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7257 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7258 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7259 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7260
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7261 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7262
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7263 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7264 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7266 echo "configure:7267: checking for $ac_func" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7267
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7268 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7269 #line 7270 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7270 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7271 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7272 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7273 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7274 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7275 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7276 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7277 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7278
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7279 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7280
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7281 /* The GNU C library defines this for functions which it implements
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7282 to always fail with ENOSYS. Some functions are actually named
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7283 something starting with __ and the normal name is an alias. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7285 choke me
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7286 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7287 $ac_func();
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7288 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7289
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7290 ; return 0; }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7291 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7292 if { (eval echo configure:7293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7293 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7294 eval "ac_cv_func_$ac_func=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7295 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7296 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7297 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7298 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7299 eval "ac_cv_func_$ac_func=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7300 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7301 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7302
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7304 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7306 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7307 Defining $ac_tr_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7308 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7309 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7310 #define $ac_tr_func 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7311 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7312 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7313
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7314 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7315 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7316 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7317 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7318
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7319
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7320
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7321 case "$opsys" in
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
7322 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7323 echo " xemacs will be linked with \"realpath.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7324 fi ;;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7325 * )
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7326 for ac_func in realpath
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7327 do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7329 echo "configure:7330: checking for $ac_func" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7330
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7331 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7332 #line 7333 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7333 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7334 /* System header to define __stub macros and hopefully few prototypes,
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7335 which can conflict with char $ac_func(); below. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7336 #include <assert.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7337 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7338 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7339 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7340 char $ac_func();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7341
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7342 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7343
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7344 /* The GNU C library defines this for functions which it implements
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7345 to always fail with ENOSYS. Some functions are actually named
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7346 something starting with __ and the normal name is an alias. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7348 choke me
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7349 #else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7350 $ac_func();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7351 #endif
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7352
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7353 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7354 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7356 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7357 eval "ac_cv_func_$ac_func=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7358 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7359 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7360 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7361 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7362 eval "ac_cv_func_$ac_func=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7363 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7364 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7365
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7367 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7369 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7370 Defining $ac_tr_func
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7371 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7372 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7373 #define $ac_tr_func 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7374 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7375 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7376
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7377 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7378 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7379 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7380 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7381
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7382 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7383 echo " xemacs will be linked with \"realpath.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7384 fi ;;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7385 esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7386
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7387 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7388 echo "configure:7389: checking whether netdb declares h_errno" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7389 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7390 #line 7391 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7391 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7392 #include <netdb.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7393 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7394 return h_errno;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7395 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7396 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7397 if { (eval echo configure:7398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7398 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7399 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7400 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7401 Defining HAVE_H_ERRNO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7402 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7403 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7404 #define HAVE_H_ERRNO 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7405 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7406 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7407
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7408 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7409 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7410 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7411 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7412 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7413 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7414 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7415
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7416 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7417 echo "configure:7418: checking for sigsetjmp" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7418 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7419 #line 7420 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7420 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7421 #include <setjmp.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7422 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7423 sigjmp_buf bar; sigsetjmp (bar, 0);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7424 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7425 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7426 if { (eval echo configure:7427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7427 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7428 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7429 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7430 Defining HAVE_SIGSETJMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7431 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7432 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7433 #define HAVE_SIGSETJMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7434 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7435 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7436
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7437 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7438 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7439 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7440 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7441 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7442 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7443 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7444
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7445 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7446 echo "configure:7447: checking whether localtime caches TZ" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7447
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7448 if test "$ac_cv_func_tzset" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7449 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7450 #line 7451 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7451 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7452 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7453 #if STDC_HEADERS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7454 # include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7455 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7456 extern char **environ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7457 unset_TZ ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7458 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7459 char **from, **to;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7460 for (to = from = environ; (*to = *from); from++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7461 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7462 to++;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7463 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7464 char TZ_GMT0[] = "TZ=GMT0";
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7465 char TZ_PST8[] = "TZ=PST8";
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7466 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7467 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7468 time_t now = time ((time_t *) 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7469 int hour_GMT0, hour_unset;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7470 if (putenv (TZ_GMT0) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7471 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7472 hour_GMT0 = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7473 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7474 hour_unset = localtime (&now)->tm_hour;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7475 if (putenv (TZ_PST8) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7476 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7477 if (localtime (&now)->tm_hour == hour_GMT0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7478 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7479 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7480 if (localtime (&now)->tm_hour != hour_unset)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7481 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7482 exit (0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7483 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7484 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7486 then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7487 emacs_cv_localtime_cache=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7488 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7489 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7490 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7491 rm -fr conftest*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7492 emacs_cv_localtime_cache=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7493 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7494 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7495 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7496 # If we lack tzset, report that localtime does not cache TZ,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7497 # since we can't invalidate the cache if we don't have tzset.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7498 emacs_cv_localtime_cache=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7499 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7500 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7501 if test $emacs_cv_localtime_cache = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7502 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7503 Defining LOCALTIME_CACHE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7504 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7505 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7506 #define LOCALTIME_CACHE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7507 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7508 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7509
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7510 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7511
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7512 if test "$HAVE_TIMEVAL" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7513 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7514 echo "configure:7515: checking whether gettimeofday cannot accept two arguments" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7515 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7516 #line 7517 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7517 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7518
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7519 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7520 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7521 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7522 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7523 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7524 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7525 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7526 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7527 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7528 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7529
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7530 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7531
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7532 struct timeval time;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7533 struct timezone dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7534 gettimeofday (&time, &dummy);
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7535
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7536 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7537 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7538 if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7539 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7540 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7541 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7542 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7543 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7544 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7545 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7546 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7547 Defining GETTIMEOFDAY_ONE_ARGUMENT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7548 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7549 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7550 #define GETTIMEOFDAY_ONE_ARGUMENT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7551 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7552 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7553
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7554 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7555 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7556 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7557
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7558
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7559 echo $ac_n "checking for inline""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7560 echo "configure:7561: checking for inline" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7561
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7562 ac_cv_c_inline=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7563 for ac_kw in inline __inline__ __inline; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7564 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7565 #line 7566 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7566 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7567
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7568 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7569 } $ac_kw foo() {
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7570 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7571 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7572 if { (eval echo configure:7573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7573 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7574 ac_cv_c_inline=$ac_kw; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7575 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7576 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7577 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7578 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7579 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7580 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7581
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7582
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7583 echo "$ac_t""$ac_cv_c_inline" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7584 case "$ac_cv_c_inline" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7585 inline | yes) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7586 no) { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7587 Defining inline =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7588 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7589 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7590 #define inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7591 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7592 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7593 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7594 *) { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7595 Defining inline = $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7596 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7597 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7598 #define inline $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7599 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7600 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7601 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7602 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7603
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7604 if test "$ac_cv_c_inline" != "no"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7605 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7606 Defining HAVE_INLINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7607 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7608 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7609 #define HAVE_INLINE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7610 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7611 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7612
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7613 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7614 echo " xemacs will be linked with \"inline.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7615 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
7616 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7617
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7618
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7619 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7620 # for constant arguments. Useless!
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7621 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7622 echo "configure:7623: checking for working alloca.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7623
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7624 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7625 #line 7626 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7626 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7627 #include <alloca.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7628 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7629 char *p = alloca(2 * sizeof(int));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7630 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7631 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7633 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7634 ac_cv_header_alloca_h=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7635 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7636 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7637 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7638 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7639 ac_cv_header_alloca_h=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7640 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7641 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7642
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7643 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7644 if test $ac_cv_header_alloca_h = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7645 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7646 Defining HAVE_ALLOCA_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7647 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7648 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7649 #define HAVE_ALLOCA_H 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7650 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7651 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7652
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7653 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7654
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7655 echo $ac_n "checking for alloca""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7656 echo "configure:7657: checking for alloca" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7657
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7658 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7659 #line 7660 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7660 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7661
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7662 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7663 # define alloca __builtin_alloca
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7664 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7665 # if HAVE_ALLOCA_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7666 # include <alloca.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7667 # else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7668 # ifdef _AIX
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7669 #pragma alloca
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7670 # else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7671 # ifndef alloca /* predefined by HP cc +Olibcalls */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7672 char *alloca ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7673 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7674 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7675 # endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7676 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7677
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7678 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7679 char *p = (char *) alloca(1);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7680 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7681 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7682 if { (eval echo configure:7683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7683 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7684 ac_cv_func_alloca_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7685 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7686 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7687 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7688 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7689 ac_cv_func_alloca_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7690 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7691 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7692
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7693 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7694 if test $ac_cv_func_alloca_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7695 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7696 Defining HAVE_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7697 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7698 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7699 #define HAVE_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7700 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7701 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7702
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7703 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7704
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7705 if test $ac_cv_func_alloca_works = no; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7707 # that cause trouble. Some versions do not even contain alloca or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7708 # contain a buggy version. If you still want to use their alloca,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7709 # use ar to extract alloca.o from them instead of compiling alloca.c.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7710 ALLOCA=alloca.o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7711 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7712 Defining C_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7713 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7714 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7715 #define C_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7716 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7717 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7718
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7719
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7720 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7721 echo "configure:7722: checking whether alloca needs Cray hooks" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7722
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7723 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7724 #line 7725 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7725 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7726 #if defined(CRAY) && ! defined(CRAY2)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7727 webecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7728 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7729 wenotbecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7730 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7731
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7732 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7734 egrep "webecray" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7735 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7736 ac_cv_os_cray=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7737 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7738 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7739 ac_cv_os_cray=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7740 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7741 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7742
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7743
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7744 echo "$ac_t""$ac_cv_os_cray" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7745 if test $ac_cv_os_cray = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7746 for ac_func in _getb67 GETB67 getb67; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7748 echo "configure:7749: checking for $ac_func" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7749
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7750 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7751 #line 7752 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7752 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7753 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7754 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7755 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7756 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7757 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7758 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7759 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7760
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7761 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7762
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7763 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7764 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7765 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7767 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7768 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7769 $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7770 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7771
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7772 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7773 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7774 if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7775 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7776 eval "ac_cv_func_$ac_func=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7777 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7778 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7779 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7780 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7781 eval "ac_cv_func_$ac_func=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7782 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7783 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7784
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7786 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7787 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7788 Defining CRAY_STACKSEG_END = $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7789 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7790 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7791 #define CRAY_STACKSEG_END $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7792 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7793 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7794
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7795 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7796 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7797 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7798 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7799
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7800 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7801 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7802
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7803 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7804 echo "configure:7805: checking stack direction for C alloca" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7805
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7806 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7807 #line 7808 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7808 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7809 find_stack_direction ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7810 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7811 static char *addr = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7812 auto char dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7813 if (addr == 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7814 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7815 addr = &dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7816 return find_stack_direction ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7817 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7818 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7819 return (&dummy > addr) ? 1 : -1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7820 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7821 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7822 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7823 exit (find_stack_direction() < 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7824 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7825 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7826 if { (eval echo configure:7827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7827 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7828 ac_cv_c_stack_direction=1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7829 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7830 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7831 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7832 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7833 ac_cv_c_stack_direction=-1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7834 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7835 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7836
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7837 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7838 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7839 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7840 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7841 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7842 #define STACK_DIRECTION $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7843 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7844 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7845
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7846 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7847
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7848 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7849 echo " xemacs will be linked with \"$ALLOCA\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7850 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7851
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7852 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7853 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7854 echo "configure:7855: checking for vfork.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7855
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7856 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7857 #line 7858 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7858 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7859 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7860 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7862 { (eval echo configure:7863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7863 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7864 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7865 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7866 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7867 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7868 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7869 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7870 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7871 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7872 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7873 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7874 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7876 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7877 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7878 Defining HAVE_VFORK_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7879 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7880 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7881 #define HAVE_VFORK_H 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7882 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7883 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7884
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7885 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7886 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7887 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7888
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7889 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7890 echo "configure:7891: checking for working vfork" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7891
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7892 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7893 #line 7894 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7894 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7895 /* Thanks to Paul Eggert for this test. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7896 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7897 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7898 #include <sys/stat.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7899 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7900 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7901 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7902 #ifdef HAVE_VFORK_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7903 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7904 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7905 /* On some sparc systems, changes by the child to local and incoming
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7906 argument registers are propagated back to the parent.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7907 The compiler is told about this with #include <vfork.h>,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7908 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7909 Test for this by using a static variable whose address
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7910 is put into a register that is clobbered by the vfork. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7911 static
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7912 #ifdef __cplusplus
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7913 sparc_address_test (int arg)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7914 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7915 sparc_address_test (arg) int arg;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7916 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7917 {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7918 static pid_t child;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7919 if (!child) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7920 child = vfork ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7921 if (child < 0) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7922 perror ("vfork");
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7923 _exit(2);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7924 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7925 if (!child) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7926 arg = getpid();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7927 write(-1, "", 0);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7928 _exit (arg);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7929 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7930 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7931 }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7932 main() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7933 pid_t parent = getpid ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7934 pid_t child;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7935
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7936 sparc_address_test ();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7937
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7938 child = vfork ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7939
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7940 if (child == 0) {
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7941 /* Here is another test for sparc vfork register problems.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7942 This test uses lots of local variables, at least
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7943 as many local variables as main has allocated so far
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7944 including compiler temporaries. 4 locals are enough for
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7945 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7946 A buggy compiler should reuse the register of parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7947 for one of the local variables, since it will think that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7948 parent can't possibly be used any more in this routine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7949 Assigning to the local variable will thus munge parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7950 in the parent process. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7951 pid_t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7952 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7953 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7954 /* Convince the compiler that p..p7 are live; otherwise, it might
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7955 use the same hardware register for all 8 local variables. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7956 if (p != p1 || p != p2 || p != p3 || p != p4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7957 || p != p5 || p != p6 || p != p7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7958 _exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7959
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7960 /* On some systems (e.g. IRIX 3.3),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7961 vfork doesn't separate parent from child file descriptors.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7962 If the child closes a descriptor before it execs or exits,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7963 this munges the parent's descriptor as well.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7964 Test for this by closing stdout in the child. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7965 _exit(close(fileno(stdout)) != 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7966 } else {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7967 int status;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7968 struct stat st;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7969
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7970 while (wait(&status) != child)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7971 ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7972 exit(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7973 /* Was there some problem with vforking? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7974 child < 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7975
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7976 /* Did the child fail? (This shouldn't happen.) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7977 || status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7978
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7979 /* Did the vfork/compiler bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7980 || parent != getpid()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7981
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7982 /* Did the file descriptor bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7983 || fstat(fileno(stdout), &st) != 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7984 );
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7985 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7986 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7987 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
7988 if { (eval echo configure:7989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7989 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7990 ac_cv_func_vfork_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7991 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7992 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7993 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7994 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7995 ac_cv_func_vfork_works=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7996 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7997 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7998
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7999 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8000 if test $ac_cv_func_vfork_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8001 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8002 Defining vfork = fork
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8003 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8004 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8005 #define vfork fork
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8006 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8007 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8008
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8009 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8010
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8011
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8012 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8013 echo "configure:8014: checking for working strcoll" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8014
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8015 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8016 #line 8017 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8017 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8018 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8019 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8020 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8021 exit (strcoll ("abc", "def") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8022 strcoll ("ABC", "DEF") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8023 strcoll ("123", "456") >= 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8024 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8025 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8026 if { (eval echo configure:8027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8027 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8028 ac_cv_func_strcoll_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8029 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8030 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8031 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8032 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8033 ac_cv_func_strcoll_works=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8034 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8035 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8036
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8037 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8038 if test $ac_cv_func_strcoll_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8039 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8040 Defining HAVE_STRCOLL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8041 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8042 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8043 #define HAVE_STRCOLL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8044 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8045 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8046
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8047 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8048
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8049
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8050 for ac_func in getpgrp
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8051 do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8053 echo "configure:8054: checking for $ac_func" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8054
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8055 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8056 #line 8057 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8057 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8058 /* System header to define __stub macros and hopefully few prototypes,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8059 which can conflict with char $ac_func(); below. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8060 #include <assert.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8061 /* Override any gcc2 internal prototype to avoid an error. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8062 /* We use char because int might match the return type of a gcc2
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8063 builtin and then its argument prototype would still apply. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8064 char $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8065
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8066 int main() {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8067
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8068 /* The GNU C library defines this for functions which it implements
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8069 to always fail with ENOSYS. Some functions are actually named
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8070 something starting with __ and the normal name is an alias. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8072 choke me
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8073 #else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8074 $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8075 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8076
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8077 ; return 0; }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8078 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8079 if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8080 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8081 eval "ac_cv_func_$ac_func=yes"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8082 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8083 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8084 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8085 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8086 eval "ac_cv_func_$ac_func=no"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8087 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8088 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8089
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8091 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8093 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8094 Defining $ac_tr_func
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8095 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8096 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8097 #define $ac_tr_func 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8098 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8099 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8100
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8101 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8102 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8103 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8104 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8105
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8106 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8107 echo "configure:8108: checking whether getpgrp takes no argument" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8108
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8109 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8110 #line 8111 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8111 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8112
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8113 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8114 * If this system has a BSD-style getpgrp(),
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8115 * which takes a pid argument, exit unsuccessfully.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8116 *
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8117 * Snarfed from Chet Ramey's bash pgrp.c test program
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8118 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8119 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8120 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8121
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8122 int pid;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8123 int pg1, pg2, pg3, pg4;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8124 int ng, np, s, child;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8125
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8126 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8127 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8128 pid = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8129 pg1 = getpgrp(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8130 pg2 = getpgrp();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8131 pg3 = getpgrp(pid);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8132 pg4 = getpgrp(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8133
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8134 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8135 * If all of these values are the same, it's pretty sure that
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8136 * we're on a system that ignores getpgrp's first argument.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8137 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8138 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8139 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8140
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8141 child = fork();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8142 if (child < 0)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8143 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8144 else if (child == 0) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8145 np = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8146 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8147 * If this is Sys V, this will not work; pgrp will be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8148 * set to np because setpgrp just changes a pgrp to be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8149 * the same as the pid.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8150 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8151 setpgrp(np, pg1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8152 ng = getpgrp(0); /* Same result for Sys V and BSD */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8153 if (ng == pg1) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8154 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8155 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8156 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8157 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8158 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8159 wait(&s);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8160 exit(s>>8);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8161 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8162 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8164 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8166 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8167 ac_cv_func_getpgrp_void=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8168 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8169 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8170 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8171 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8172 ac_cv_func_getpgrp_void=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8173 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8174 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8175
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8176
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8177 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8178 if test $ac_cv_func_getpgrp_void = yes; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8179 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8180 Defining GETPGRP_VOID
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8181 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8182 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8183 #define GETPGRP_VOID 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8184 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8185 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8186
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8187 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8188
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8189
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8190 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8191 echo "configure:8192: checking for working mmap" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8192 case "$opsys" in ultrix* ) have_mmap=no ;; *)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8193 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8194 #line 8195 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8195 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8196 #include <stdio.h>
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8197 #include <unistd.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8198 #include <fcntl.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8199 #include <sys/mman.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8200
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8201 #ifndef MAP_VARIABLE
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8202 #define MAP_VARIABLE 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8203 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8204
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8205 #ifndef MAP_FAILED
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8206 #define MAP_FAILED -1
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8207 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8208
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8209 int main (int argc, char *argv[])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8210 {
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8211 int fd = -1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8212 caddr_t p;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8213 #ifndef MAP_ANONYMOUS
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8214 fd = open ("/dev/zero", O_RDWR);
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8215 if (fd < 0)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8216 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8217 #define MAP_ANONYMOUS 0
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8218 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8219 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8220 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8221 fd, 0) != (void *) MAP_FAILED)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8222 return 0;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8223 perror ("conftest: mmap failed");
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8224 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8225 }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8226 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8227 if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8228 then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8229 have_mmap=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8230 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8231 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8232 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8233 rm -fr conftest*
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8234 have_mmap=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8235 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8236 rm -fr conftest* ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8237 esac
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8238 echo "$ac_t""$have_mmap" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8239 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8240 Defining HAVE_MMAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8241 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8242 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8243 #define HAVE_MMAP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8244 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8245 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8246
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8247
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8248 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
8249 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8250 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8251 Defining REL_ALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8252 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8253 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8254 #define REL_ALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8255 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8256 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8257
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8258
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8259 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8260 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8261 echo "configure:8262: checking for termios.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8262
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8263 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8264 #line 8265 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8265 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8266 #include <termios.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8267 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8269 { (eval echo configure:8270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8270 ac_err=`grep -v '^ *+' conftest.out`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8271 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8272 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8273 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8274 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8275 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8276 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8277 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8278 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8279 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8280 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8281 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8283 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8284 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8285 Defining HAVE_TERMIOS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8286 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8287 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8288 #define HAVE_TERMIOS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8289 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8290 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8291
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8292 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8293 Defining SIGNALS_VIA_CHARACTERS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8294 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8295 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8296 #define SIGNALS_VIA_CHARACTERS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8297 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8298 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8299
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8300 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8301 Defining NO_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8302 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8303 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8304 #define NO_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8305 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8306 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8307
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8308 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8309 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8310 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8311 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8312 echo "configure:8313: checking for termio.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8313
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8314 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8315 #line 8316 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8316 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8317 #include <termio.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8318 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8320 { (eval echo configure:8321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8321 ac_err=`grep -v '^ *+' conftest.out`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8322 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8323 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8324 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8325 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8326 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8327 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8328 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8329 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8330 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8331 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8332 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8334 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8335 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8336 Defining HAVE_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8337 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8338 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8339 #define HAVE_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8340 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8341 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8342
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8343 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8344 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8345 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8346
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8347 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8348
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8349
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
8350
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8351 echo $ac_n "checking for socket""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8352 echo "configure:8353: checking for socket" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8353
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8354 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8355 #line 8356 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8356 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8357 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8358 which can conflict with char socket(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8359 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8360 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8361 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8362 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8363 char socket();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8364
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8365 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8366
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8367 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8368 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8369 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8370 #if defined (__stub_socket) || defined (__stub___socket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8371 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8372 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8373 socket();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8374 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8375
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8376 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8377 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8378 if { (eval echo configure:8379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8379 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8380 eval "ac_cv_func_socket=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8381 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8382 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8383 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8384 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8385 eval "ac_cv_func_socket=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8386 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8387 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8388
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8389 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8390 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8391 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8392 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8393 echo "configure:8394: checking for netinet/in.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8394
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8395 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8396 #line 8397 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8397 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8398 #include <netinet/in.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8399 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8401 { (eval echo configure:8402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8402 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8403 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8404 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8405 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8406 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8407 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8408 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8409 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8410 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8411 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8412 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8413 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8415 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8416 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8417 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8418 echo "configure:8419: checking for arpa/inet.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8419
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8420 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8421 #line 8422 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8422 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8423 #include <arpa/inet.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8424 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8426 { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8427 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8428 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8429 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8430 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8431 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8432 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8433 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8434 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8435 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8436 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8437 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8438 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8440 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8441
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8442 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8443 Defining HAVE_SOCKETS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8444 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8445 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8446 #define HAVE_SOCKETS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8447 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8448 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8449
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8450 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8451 echo "configure:8452: checking "for sun_len member in struct sockaddr_un"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8452 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8453 #line 8454 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8454 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8455
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8456 #include <sys/types.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8457 #include <sys/socket.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8458 #include <sys/un.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8459
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8460 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8461 static struct sockaddr_un x; x.sun_len = 1;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8462 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8463 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8464 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8465 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8466 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8467 Defining HAVE_SOCKADDR_SUN_LEN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8468 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8469 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8470 #define HAVE_SOCKADDR_SUN_LEN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8471 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8472 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8473
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8474 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8475 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8476 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8477 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8478 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8479 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8480 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8481 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8482 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8483 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8484
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8485 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8486 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8487 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8488
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8489 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8490 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8491 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8492
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8493
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8494 echo $ac_n "checking for msgget""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8495 echo "configure:8496: checking for msgget" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8496
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8497 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8498 #line 8499 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8499 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8500 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8501 which can conflict with char msgget(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8502 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8503 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8504 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8505 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8506 char msgget();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8507
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8508 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8509
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8510 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8511 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8512 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8513 #if defined (__stub_msgget) || defined (__stub___msgget)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8514 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8515 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8516 msgget();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8517 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8518
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8519 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8520 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8522 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8523 eval "ac_cv_func_msgget=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8524 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8525 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8526 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8527 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8528 eval "ac_cv_func_msgget=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8529 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8530 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8531
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8532 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8533 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8534 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8535 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8536 echo "configure:8537: checking for sys/ipc.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8537
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8538 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8539 #line 8540 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8540 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8541 #include <sys/ipc.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8542 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8544 { (eval echo configure:8545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8545 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8546 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8547 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8548 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8549 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8550 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8551 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8552 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8553 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8554 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8555 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8556 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8558 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8559 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8560 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8561 echo "configure:8562: checking for sys/msg.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8562
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8563 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8564 #line 8565 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8565 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8566 #include <sys/msg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8567 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8569 { (eval echo configure:8570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8570 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8571 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8572 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8573 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8574 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8575 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8576 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8577 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8578 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8579 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8580 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8581 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8583 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8584 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8585 Defining HAVE_SYSVIPC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8586 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8587 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8588 #define HAVE_SYSVIPC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8589 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8590 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8591
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8592 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8593 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8594 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8595
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8596 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8597 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8598 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8599
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8600 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8601 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8602 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8603
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8604
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8605 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8606 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8607 echo "configure:8608: checking for dirent.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8608
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8609 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8610 #line 8611 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8611 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8612 #include <dirent.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8613 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8615 { (eval echo configure:8616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8616 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8617 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8618 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8619 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8620 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8621 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8622 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8623 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8624 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8625 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8626 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8627 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8629 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8630 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8631 Defining SYSV_SYSTEM_DIR
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8632 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8633 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8634 #define SYSV_SYSTEM_DIR 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8635 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8636 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8637
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8638 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8639 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8640 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8641 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8642 echo "configure:8643: checking for sys/dir.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8643
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8644 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8645 #line 8646 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8646 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8647 #include <sys/dir.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8648 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8650 { (eval echo configure:8651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8651 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8652 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8653 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8654 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8655 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8656 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8657 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8658 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8659 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8660 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8661 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8662 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8664 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8665 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8666 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8667 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8668 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8669 Defining NONSYSTEM_DIR_LIBRARY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8670 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8671 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8672 #define NONSYSTEM_DIR_LIBRARY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8673 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8674 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8675
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8676 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8677
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8678 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8679
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8680
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8681 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8682 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8683 echo "configure:8684: checking for nlist.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8684
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8685 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8686 #line 8687 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8687 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8688 #include <nlist.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8689 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8691 { (eval echo configure:8692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8692 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8693 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8694 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8695 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8696 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8697 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8698 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8699 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8700 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8701 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8702 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8703 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8705 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8706 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8707 Defining NLIST_STRUCT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8708 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8709 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8710 #define NLIST_STRUCT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8711 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8712 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8713
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8714 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8715 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8716 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8717
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8718
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8719
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8720 echo "checking "for sound support"" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8721 echo "configure:8722: checking "for sound support"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8722 case "$with_sound" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8723 native | both ) with_native_sound=yes;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8724 nas | no ) with_native_sound=no;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8725 esac
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8726 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8727
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8728 if test "$with_native_sound" != "no"; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8729 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8730 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8731 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8732 echo "configure:8733: checking for multimedia/audio_device.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8733
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8734 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8735 #line 8736 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8736 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8737 #include <multimedia/audio_device.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8738 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8740 { (eval echo configure:8741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8741 ac_err=`grep -v '^ *+' conftest.out`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8742 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8743 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8744 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8745 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8746 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8747 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8748 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8749 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8750 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8751 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8752 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8754 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8755 sound_found=yes sound_cflags=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8756 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8757 echo " xemacs will be linked with \"sunplay.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8758 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8759 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8760 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8761 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8762
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8763 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8764
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8765 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8766 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8767 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8768 echo " xemacs will be linked with \"sunplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8769 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8770 if test -d "/usr/demo/SOUND/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8771 then sound_cflags="-I/usr/demo/SOUND/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8772 else sound_cflags="-I/usr/demo/SOUND"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8773 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8774 if test -z "$native_sound_lib" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8775 if test -r "/usr/demo/SOUND/lib/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8776 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8777 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8778 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8779 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8780 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8781
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8782 if test -z "$sound_found"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8783 case "$canonical" in
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8784 *-sgi-* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8785 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8786
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8787 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8788 echo "configure:8789: checking for ALopenport in -laudio" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8789 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8790
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8791 xe_check_libs=" -laudio "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8792 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8793 #line 8794 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8794 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8795 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8796 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8797 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8798 char ALopenport();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8799
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8800 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8801 ALopenport()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8802 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8803 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8804 if { (eval echo configure:8805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8805 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8806 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8807 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8808 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8809 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8810 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8811 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8812 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8813 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8814 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8815
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8817 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8818 native_sound_lib="-laudio"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8819 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8820 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8821 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8822
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8823
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8824 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8825 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8826 sound_found=yes sound_cflags=""
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8827 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8828 echo " xemacs will be linked with \"sgiplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8829 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8830 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8831 hppa*-hp-hpux* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8832 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8833
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8834 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8835 echo "configure:8836: checking for AOpenAudio in -lAlib" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8836 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8837
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8838 xe_check_libs=" -lAlib "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8839 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8840 #line 8841 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8841 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8842 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8843 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8844 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8845 char AOpenAudio();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8846
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8847 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8848 AOpenAudio()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8849 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8850 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8851 if { (eval echo configure:8852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8852 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8853 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8854 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8855 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8856 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8857 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8858 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8859 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8860 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8861 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8862
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8864 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8865 native_sound_lib="-lAlib"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8866 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8867 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8868 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8869
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8870
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8871 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8872 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8873 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8874 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8875 echo " xemacs will be linked with \"hpplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8876 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
8877 if test "$GCC" = "yes" # Kludge city
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8878 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8879 else sound_cflags="+e -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8880 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8881 fi ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8882 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8883 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8884
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8885 if test -z "$sound_found"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8886 for dir in "machine" "sys" "linux"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8887 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8888 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8889 echo "configure:8890: checking for ${dir}/soundcard.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8890
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8891 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8892 #line 8893 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8893 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8894 #include <${dir}/soundcard.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8895 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8897 { (eval echo configure:8898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8898 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8899 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8900 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8901 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8902 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8903 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8904 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8905 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8906 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8907 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8908 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8909 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8911 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8912 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8913 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8914 echo " xemacs will be linked with \"linuxplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8915 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8916 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8917 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8918 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8919 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8920 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8921 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8922 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8923
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8924 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8925 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8926 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8927 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8928
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8929 done
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
8930 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8931
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8932 test "$sound_found" = "yes" && with_native_sound=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8933 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8934
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8935 if test -z "$with_sound"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8936 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8937 with_sound=native
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
8938 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
8939 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
8940
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8941 if test "$with_native_sound" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8942 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8943 Defining HAVE_NATIVE_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8944 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8945 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8946 #define HAVE_NATIVE_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8947 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8948 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8949
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8950 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8951 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8952
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8953 case "$with_sound" in both | nas )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8954 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8955 Defining HAVE_NAS_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8956 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8957 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8958 #define HAVE_NAS_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8959 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8960 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8961
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8962 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8963 echo " xemacs will be linked with \"nas.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8964 fi
201
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 197
diff changeset
8965 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8966 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8967 #line 8968 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8968 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8969 #include <audio/Xtutil.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8970 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8972 egrep "AuXtErrorJump" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8973 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8974 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8975 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8976 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8977 Defining NAS_NO_ERROR_JUMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8978 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8979 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8980 #define NAS_NO_ERROR_JUMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8981 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8982 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8983
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8984 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8985 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8986
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8987 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8988
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8989
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8990 test -z "$with_tty" && with_tty=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8991
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8992 if test "$with_tty" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8993 echo "checking for TTY-related features" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
8994 echo "configure:8995: checking for TTY-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8995 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8996 Defining HAVE_TTY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8997 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8998 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8999 #define HAVE_TTY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9000 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9001 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9002
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9003 extra_objs="$extra_objs console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9004 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9005 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9006
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9007 if test -z "$with_ncurses"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9008
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9009 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9010 echo "configure:9011: checking for tgetent in -lncurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9011 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9012
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9013 xe_check_libs=" -lncurses "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9014 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9015 #line 9016 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9016 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9017 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9018 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9019 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9020 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9021
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9022 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9023 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9024 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9025 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9026 if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9027 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9028 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9029 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9030 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9031 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9032 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9033 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9034 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9035 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9036 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9037
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9039 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9040 with_ncurses=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9041 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9042 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9043 with_ncurses=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9044 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9045
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9046
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9047 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9048 if test "$with_ncurses" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9049 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9050 Defining HAVE_NCURSES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9051 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9052 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9053 #define HAVE_NCURSES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9054 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9055 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9056
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9057 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9058 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9059 echo "configure:9060: checking for ncurses/curses.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9060
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9061 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9062 #line 9063 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9063 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9064 #include <ncurses/curses.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9065 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9067 { (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9068 ac_err=`grep -v '^ *+' conftest.out`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9069 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9070 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9071 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9072 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9073 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9074 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9075 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9076 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9077 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9078 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9079 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9081 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9082 curses_h_path=ncurses/curses.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9083 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9084 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9085 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9086
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9087 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9088 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9089 echo "configure:9090: checking for ncurses/term.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9090
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9091 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9092 #line 9093 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9093 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9094 #include <ncurses/term.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9095 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9097 { (eval echo configure:9098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9098 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9099 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9100 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9101 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9102 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9103 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9104 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9105 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9106 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9107 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9108 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9109 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9111 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9112 term_h_path=ncurses/term.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9113 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9114 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9115 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9116
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9117 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9118 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9119 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9120 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9121
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
9122 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9123 save_c_switch_site="$c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9124 c_switch_site="$c_switch_site -I/usr/include/ncurses"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9125 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9126 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9127 echo "configure:9128: checking for ncurses/curses.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9128
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9129 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9130 #line 9131 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9131 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9132 #include <ncurses/curses.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9133 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9135 { (eval echo configure:9136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9136 ac_err=`grep -v '^ *+' conftest.out`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9137 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9138 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9139 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9140 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9141 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9142 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9143 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9144 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9145 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9146 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9147 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9149 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9150 curses_h_path=ncurses/curses.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9151 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9152 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9153 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9154
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
9155 if test "$ac_cv_header_ncurses_curses_h" = "yes"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9156 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9157 else c_switch_site="$save_c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9158 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9159 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9160 else if test "$have_terminfo" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9161 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9162 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9163 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9164 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9165 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9166 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9167 for lib in curses termlib termcap; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9168
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9169 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9170 echo "configure:9171: checking for tgetent in -l$lib" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9171 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9172
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9173 xe_check_libs=" -l$lib "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9174 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9175 #line 9176 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9176 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9177 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9178 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9179 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9180 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9181
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9182 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9183 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9184 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9185 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9186 if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9187 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9188 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9189 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9190 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9191 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9192 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9193 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9194 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9195 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9196 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9197
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9199 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9200 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9201 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9202 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9203 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9204
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9205
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9206 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9207 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9208 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9209 echo " xemacs will be linked with \"tparam.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9210 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9211 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9212 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9213 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9214 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9215
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9216 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9217 echo "configure:9218: checking for tgetent in -lcurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9218 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9219
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9220 xe_check_libs=" -lcurses "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9221 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9222 #line 9223 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9223 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9224 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9225 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9226 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9227 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9228
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9229 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9230 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9231 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9232 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9233 if { (eval echo configure:9234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9234 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9235 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9236 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9237 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9238 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9239 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9240 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9241 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9242 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9243 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9244
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9246 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9247 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9248 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9249 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9250 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9251 echo "configure:9252: checking for tgetent in -ltermcap" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9252 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9253
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9254 xe_check_libs=" -ltermcap "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9255 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9256 #line 9257 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9257 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9258 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9259 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9260 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9261 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9262
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9263 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9264 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9265 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9266 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9267 if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9268 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9269 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9270 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9271 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9272 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9273 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9274 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9275 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9276 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9277 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9278
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9280 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9281 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9282 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9283 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9284 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9285 echo " xemacs will be linked with \"termcap.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9286 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9287 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9288
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9289
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9290 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9291
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9292
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9293 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9294 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9295 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9296 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9297 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9298 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9299 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9300 #define CURSES_H_PATH "${curses_h_path-curses.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9301 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9302 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9303
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9304 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9305 Defining TERM_H_PATH = "${term_h_path-term.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9306 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9307 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9308 #define TERM_H_PATH "${term_h_path-term.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9309 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9310 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9311
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9312
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9313 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9314 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9315 echo "configure:9316: checking for gpm.h" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9316
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9317 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9318 #line 9319 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9319 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9320 #include <gpm.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9321 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9323 { (eval echo configure:9324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9324 ac_err=`grep -v '^ *+' conftest.out`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9325 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9326 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9327 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9328 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9329 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9330 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9331 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9332 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9333 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9334 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9335 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9337 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9338 :
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9339 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9340 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9341 with_gpm=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9342 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9343 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9344 test -z "$with_gpm" && {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9345 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9346 echo "configure:9347: checking for Gpm_Open in -lgpm" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9347 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9348
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9349 xe_check_libs=" -lgpm "
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9350 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9351 #line 9352 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9352 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9353 /* Override any gcc2 internal prototype to avoid an error. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9354 /* We use char because int might match the return type of a gcc2
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9355 builtin and then its argument prototype would still apply. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9356 char Gpm_Open();
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9357
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9358 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9359 Gpm_Open()
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9360 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9361 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9362 if { (eval echo configure:9363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9363 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9364 eval "ac_cv_lib_$ac_lib_var=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9365 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9366 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9367 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9368 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9369 eval "ac_cv_lib_$ac_lib_var=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9370 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9371 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9372 xe_check_libs=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9373
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9375 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9376 with_gpm=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9377 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9378 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9379 with_gpm=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9380 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9381
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9382 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9383 if test "$with_gpm" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9384 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9385 Defining HAVE_GPM
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9386 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9387 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9388 #define HAVE_GPM 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9389 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9390 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9391
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9392 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9393 echo " xemacs will be linked with \"gpmevent.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9394 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9395 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9396 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9397
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9398 else for feature in ncurses gpm; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9399 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9400 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9401 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9402 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9403 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9404 fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9405 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9406 echo " xemacs will be linked with \"event-unixoid.o\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9407 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9408
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9409
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9410 echo "checking for database support" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9411 echo "configure:9412: checking for database support" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9412
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9413 if test "$with_database_gnudbm" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9414
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9415 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9416 echo "configure:9417: checking for dbm_open in -lgdbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9417 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9418
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9419 xe_check_libs=" -lgdbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9420 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9421 #line 9422 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9422 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9423 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9424 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9425 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9426 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9427
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9428 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9429 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9430 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9431 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9432 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9433 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9434 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9435 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9436 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9437 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9438 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9439 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9440 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9441 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9442 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9443
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9445 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9446 with_database_gnudbm=yes have_libgdbm=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9447 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9448 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9449 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9450
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9451
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9452 if test "$with_database_gnudbm" != "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9453 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9454 echo "configure:9455: checking for dbm_open" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9455
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9456 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9457 #line 9458 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9458 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9459 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9460 which can conflict with char dbm_open(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9461 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9462 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9463 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9464 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9465 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9466
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9467 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9468
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9469 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9470 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9471 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9472 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9473 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9474 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9475 dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9476 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9477
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9478 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9479 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9480 if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9481 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9482 eval "ac_cv_func_dbm_open=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9483 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9484 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9485 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9486 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9487 eval "ac_cv_func_dbm_open=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9488 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9489 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9490
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9491 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9492 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9493 with_database_gnudbm=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9494 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9495 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9496 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9497
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9498 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9499 if test "$with_database_gnudbm" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9500 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9501 Defining HAVE_DBM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9502 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9503 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9504 #define HAVE_DBM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9505 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9506 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9507
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9508 test "$have_libgdbm" = "yes" && LIBS="-lgdbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdbm\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9509 with_database_dbm=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9510 else with_database_gnudbm=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9511 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9512 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9513
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9514 if test "$with_database_dbm" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9515 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9516 echo "configure:9517: checking for dbm_open" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9517
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9518 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9519 #line 9520 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9520 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9521 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9522 which can conflict with char dbm_open(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9523 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9524 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9525 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9526 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9527 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9528
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9529 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9530
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9531 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9532 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9533 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9534 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9535 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9536 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9537 dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9538 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9539
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9540 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9541 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9542 if { (eval echo configure:9543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9543 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9544 eval "ac_cv_func_dbm_open=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9545 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9546 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9547 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9548 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9549 eval "ac_cv_func_dbm_open=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9550 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9551 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9552
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9553 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9554 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9555 with_database_dbm=yes need_libdbm=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9556 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9557 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9558 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9559
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9560 if test "$need_libdbm" != "no"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9561
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9562 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9563 echo "configure:9564: checking for dbm_open in -ldbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9564 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9565
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9566 xe_check_libs=" -ldbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9567 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9568 #line 9569 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9569 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9570 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9571 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9572 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9573 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9574
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9575 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9576 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9577 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9578 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9579 if { (eval echo configure:9580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9580 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9581 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9582 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9583 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9584 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9585 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9586 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9587 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9588 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9589 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9590
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9592 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9593 with_database_dbm=yes need_libdbm=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9594 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9595 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9596 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9597
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9598
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9599 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9600 if test "$with_database_dbm" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9601 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9602 Defining HAVE_DBM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9603 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9604 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9605 #define HAVE_DBM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9606 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9607 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9608
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9609 test "$need_libdbm" = "yes" && LIBS="-ldbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldbm\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9610 else with_database_dbm=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9611 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9612 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9613
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9614 if test "$with_database_berkdb" != "no"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9615 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9616 echo "configure:9617: checking for dbopen" >&5
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9617
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9618 cat > conftest.$ac_ext <<EOF
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9619 #line 9620 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9620 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9621 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9622 which can conflict with char dbopen(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9623 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9624 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9625 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9626 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9627 char dbopen();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9628
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9629 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9630
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9631 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9632 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9633 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9634 #if defined (__stub_dbopen) || defined (__stub___dbopen)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9635 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9636 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9637 dbopen();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9638 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9639
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9640 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9641 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9643 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9644 eval "ac_cv_func_dbopen=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9645 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9646 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9647 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9648 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9649 eval "ac_cv_func_dbopen=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9650 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9651 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9652
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9653 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9654 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9655 with_database_berkdb=yes need_libdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9656 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9657 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9658 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9659
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9660 if test "$need_libdb" != "no"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9661
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9662 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9663 echo "configure:9664: checking for dbopen in -ldb" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9664 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9665
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9666 xe_check_libs=" -ldb "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9667 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9668 #line 9669 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9669 #include "confdefs.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9670 /* Override any gcc2 internal prototype to avoid an error. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9671 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9672 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9673 char dbopen();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9674
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9675 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9676 dbopen()
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9677 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9678 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9679 if { (eval echo configure:9680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9680 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9681 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9682 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9683 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9684 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9685 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9686 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9687 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9688 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9689 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9690
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9692 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9693 with_database_berkdb=yes need_libdb=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9694 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9695 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9696 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9697
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9698
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9699 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9700 if test "$with_database_berkdb" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9701 for path in "db/db.h" "db.h"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9702 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9703 #line 9704 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9704 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9705 #ifdef HAVE_INTTYPES_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9706 #define __BIT_TYPES_DEFINED__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9707 #include <inttypes.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9708 typedef uint8_t u_int8_t;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9709 typedef uint16_t u_int16_t;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9710 typedef uint32_t u_int32_t;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9711 #ifdef WE_DONT_NEED_QUADS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9712 typedef uint64_t u_int64_t;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9713 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9714 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9715 #include <$path>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9716
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9717 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9718
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9719 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9720 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9721 if { (eval echo configure:9722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9722 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9723 db_h_path="$path"; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9724 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9725 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9726 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9727 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9728 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9729 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9730 test -z "$db_h_path" && with_database_berkdb=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9731 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9732 if test "$with_database_berkdb" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9733 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9734 Defining DB_H_PATH = "$db_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9735 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9736 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9737 #define DB_H_PATH "$db_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9738 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9739 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9740
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9741 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9742 Defining HAVE_BERKELEY_DB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9743 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9744 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9745 #define HAVE_BERKELEY_DB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9746 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9747 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9748
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9749 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9750 else with_database_berkdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9751 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9752 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9753
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9754 if test "$with_database_gnudbm" = "yes" -o \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9755 "$with_database_dbm" = "yes" -o \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9756 "$with_database_berkdb" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9757 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9758 Defining HAVE_DATABASE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9759 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9760 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9761 #define HAVE_DATABASE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9762 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9763 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9764
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9765 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9766 echo " xemacs will be linked with \"database.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9767 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9768 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9769
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9770 if test "$with_socks" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9771
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9772 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9773 echo "configure:9774: checking for SOCKSinit in -lsocks" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9774 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9775
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9776 xe_check_libs=" -lsocks "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9777 cat > conftest.$ac_ext <<EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9778 #line 9779 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9779 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9780 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9781 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9782 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9783 char SOCKSinit();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9784
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9785 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9786 SOCKSinit()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9787 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9788 EOF
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9789 if { (eval echo configure:9790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9790 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9791 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9792 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9793 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9794 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9795 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9796 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9797 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9798 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9799 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9800
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9802 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9803 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9805 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9806 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9807 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9808 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9809 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9810 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9811 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9812
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9813 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9814
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9815 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9816 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9817 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9818
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9819
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9820 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9821 Defining HAVE_SOCKS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9822 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9823 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9824 #define HAVE_SOCKS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9825 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9826 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9827
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9828 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9829
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9830 if test "$usage_tracking" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9831 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9832 Defining USAGE_TRACKING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9833 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9834 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9835 #define USAGE_TRACKING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9836 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9837 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9838
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9839 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9840 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9841
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9842
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9843
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9844 T=""
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
9845 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
9846 CFLAGS="$T"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
9847
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
9848
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
9849 T=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9850 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9851 extra_objs="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9852
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9853
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9854 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9855 for W in -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9856 c_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9857
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9858
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9859 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9860 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9861 c_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9862
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9863
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9864 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9865 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9866 c_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9867
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9868
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9869 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9870 for W in $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9871 ld_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9872
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9873
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9874 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9875 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9876 ld_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9877
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9878
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9879 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9880 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9881 ld_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9882
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9883
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9884 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9885 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9886 ld_libs_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9887
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9888
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9889 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9890 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9891 ld_libs_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9892
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9893
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9894 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9895 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9896 ld_libs_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9897
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9898
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9899
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9900 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9901 internal_makefile_list="Makefile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9902 SUBDIR_MAKEFILES=''
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9903 test -d lock || mkdir lock
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9904 for dir in $MAKE_SUBDIR; do
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9905 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9906 test -d "$d" || mkdir "$d"; cd "$d"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9907 done ) ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9908 * ) test -d "$dir" || mkdir "$dir" ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9909 esac
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9910
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9911 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9912 for W in $SUBDIR_MAKEFILES $dir/Makefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9913 SUBDIR_MAKEFILES="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9914
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9915
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9916 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9917 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9918 internal_makefile_list="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9919
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9920 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9921
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9922
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9923
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9924
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9925 for dir in src/s src/m; do
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9926 if test ! -d "$dir" ; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9927 echo Making symbolic link to "$srcdir/$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9928 ${LN_S} "$srcdir/$dir" "$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9929 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9930 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9931
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9932 if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9933 echo ""
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9934 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9935 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9936 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9937
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9938 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
9939 echo "creating src/gdbinit"; echo ""
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9940 echo "source $srcdir/src/gdbinit" > src/gdbinit
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9941 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9942
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9943 if test "$__sunpro_c" = "yes"; then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
9944 echo "creating .sbinit"; echo ""
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9945 ( echo "# For use with Sun WorkShop's Source browser."
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9946 echo "# See sbquery(1) and sbinit(4) for more information"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9947 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9948 ) > .sbinit
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9949 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9950
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9951 rm -f core
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9952
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9953
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9954
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9955
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9956
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9957
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9958
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9959
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9960
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9961
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9962
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9963
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9964
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9965
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9966
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9967
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9968
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9969
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9970
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9971
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9972
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9973
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9974
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9975
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9976
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9977
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9978
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9979
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9980
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9981
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9982
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9983
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9984
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9985
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9986
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9987
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9988
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9989
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9990
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9991
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9992
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9993
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9994
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9995
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
9996
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9997
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
9998 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
9999
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10000
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10001
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10002
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10003
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10004
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10005
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10006
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
10007 if test "${package_path}" = "NONE" ; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
10008 package_path="~/.xemacs:${prefix}/lib/xemacs/packages"
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
10009 fi
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
10010 package_path=`echo $package_path | sed 'y/ /:/'`
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
10011 { test "$extra_verbose" = "yes" && cat << EOF
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10012 Defining PACKAGE_PATH = "$package_path"
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10013 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10014 cat >> confdefs.h <<EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10015 #define PACKAGE_PATH "$package_path"
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10016 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10017 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10018
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10019
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10020
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10021 T=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10022 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10023 ac_configure_args="$T"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10024
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10025 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10026 Defining EMACS_CONFIGURATION = "$canonical"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10027 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10028 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10029 #define EMACS_CONFIGURATION "$canonical"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10030 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10031 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10032
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10033 { test "$extra_verbose" = "yes" && cat << EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10034 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10035 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10036 cat >> confdefs.h <<EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10037 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10038 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10039 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10040
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10041 { test "$extra_verbose" = "yes" && cat << EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10042 Defining config_machfile = "$machfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10043 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10044 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10045 #define config_machfile "$machfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10046 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10047 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10048
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10049 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10050 Defining config_opsysfile = "$opsysfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10051 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10052 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10053 #define config_opsysfile "$opsysfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10054 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10055 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10056
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10057
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10058
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10059 null_string=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10060 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10061 Defining LD_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10062 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10063 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10064 #define LD_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10065 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10066 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10067
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10068 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10069 Defining LD_SWITCH_X_SITE_AUX = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10070 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10071 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10072 #define LD_SWITCH_X_SITE_AUX $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10073 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10074 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10075
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10076 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10077 Defining C_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10078 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10079 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10080 #define C_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10081 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10082 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10083
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10084 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10085 Defining LD_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10086 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10087 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10088 #define LD_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10089 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10090 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10091
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10092 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10093 Defining C_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10094 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10095 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10096 #define C_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10097 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10098 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10099
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10100
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10101
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10102 test -n "$puresize" && { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10103 Defining RAW_PURESIZE = $puresize
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10104 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10105 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10106 #define RAW_PURESIZE $puresize
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10107 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10108 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10109
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10110
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10111 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10112 Defining GNU_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10113 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10114 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10115 #define GNU_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10116 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10117 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10118
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10119 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10120 Defining USE_SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10121 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10122 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10123 #define USE_SYSTEM_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10124 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10125 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10126
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10127 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10128 Defining USE_DEBUG_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10129 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10130 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10131 #define USE_DEBUG_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10132 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10133 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10134
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10135 { test "$extra_verbose" = "yes" && cat << \EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10136 Defining USE_SYSTEM_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10137 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10138 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10139 #define USE_SYSTEM_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10140 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10141 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10142
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10143 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10144 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10145 Defining I18N3
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10146 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10147 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10148 #define I18N3 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10149 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10150 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10151
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
10152 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10153 Defining USE_GCC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10154 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10155 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10156 #define USE_GCC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10157 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10158 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10159
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10160 test "$with_term" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10161 Defining HAVE_TERM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10162 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10163 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10164 #define HAVE_TERM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10165 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10166 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10167
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10168 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10169 Defining EXTERNAL_WIDGET
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10170 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10171 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10172 #define EXTERNAL_WIDGET 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10173 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10174 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10175
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10176 test "$with_gnu_make" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10177 Defining USE_GNU_MAKE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10178 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10179 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10180 #define USE_GNU_MAKE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10181 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10182 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10183
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10184 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10185 Defining NO_DOC_FILE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10186 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10187 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10188 #define NO_DOC_FILE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10189 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10190 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10191
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10192 test "$const_is_losing" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10193 Defining CONST_IS_LOSING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10194 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10195 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10196 #define CONST_IS_LOSING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10197 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10198 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10199
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10200 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10201 Defining QUANTIFY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10202 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10203 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10204 #define QUANTIFY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10205 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10206 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10207
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10208 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10209 Defining MAIL_USE_POP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10210 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10211 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10212 #define MAIL_USE_POP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10213 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10214 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10215
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10216 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10217 Defining KERBEROS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10218 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10219 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10220 #define KERBEROS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10221 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10222 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10223
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10224 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10225 Defining HESIOD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10226 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10227 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10228 #define HESIOD 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10229 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10230 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10231
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10232 test "$use_union_type" != yes && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10233 Defining NO_UNION_TYPE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10234 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10235 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10236 #define NO_UNION_TYPE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10237 EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10238 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
10239
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
10240
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10241
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
10242 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10243 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10244 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10245 echo "uname -a: `uname -a`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10246 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10247 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10248 echo "$0 $quoted_arguments"
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
10249 ) >> Installation
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10250
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10251 (
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10252 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10253
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10254 Configured for \`$canonical'.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10255
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10256 Where should the build process find the source code? $srcdir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10257 What installation prefix should install use? $prefix
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
10258 Where should XEmacs look for packages? $package_path
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10259 What operating system and machine description files should XEmacs use?
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10260 \`$opsysfile' and \`$machfile'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10261 What compiler should XEmacs be built with? $CC $CFLAGS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10262 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10263 Should XEmacs use the relocating allocator for buffers? $rel_alloc
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10264 What window system should XEmacs use? ${window_system}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10265 if test "$with_x11" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10266 echo " Where do we find X Windows header files? $x_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10267 echo " Where do we find X Windows libraries? $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10268 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
10269 if test -n "$site_includes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10270 echo " Additional header files: $site_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10271 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10272 if test -n "$site_libraries"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10273 echo " Additional libraries: $site_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10274 fi
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
10275 if test -n "$site_prefixes"; then
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
10276 echo " Additional prefixes: $site_prefixes"
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
10277 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10278 if test -n "$runpath"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10279 echo " Runtime library search path: $runpath"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10280 fi
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
10281 test "$with_dnet" = yes && echo " Compiling in support for DNET."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10282 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10283 test "$with_term" = yes && echo " Compiling in support for TERM."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10284 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10285 if test "$with_xmu" != yes -a "$with_x11" = yes; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10286 echo " No Xmu; substituting equivalent routines."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10287 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10288
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10289 if test "$with_xpm" = yes; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10290 echo " Compiling in support for XPM images."
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10291 elif test "$with_x11" = yes; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10292 echo " --------------------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10293 echo " WARNING: Compiling without XPM support."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10294 echo " WARNING: You should strongly considering installing XPM."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10295 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10296 echo " --------------------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10297 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10298 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10299 test "$with_imagick" = yes && echo " Compiling in support for ImageMagick image conversion."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10300
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10301 case "$with_sound" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10302 nas ) echo " Compiling in network sound (NAS) support." ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10303 native ) echo " Compiling in native sound support." ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10304 both ) echo " Compiling in both network and native sound support." ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10305 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10306 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously"
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10307
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10308 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10309 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
10310 test "$with_database_gnudbm" = yes && echo " Compiling in support for DBM."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10311
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10312 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10313 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10314
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10315 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10316 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10317 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10318 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10319 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10320 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
10321 if test "$with_wnn" = yes; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
10322 echo " Compiling in support for the WNN input method on Mule."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10323 test "$with_wnn6" = yes && echo " Using WNN version 6."
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
10324 fi
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10325 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10326
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10327 test "$with_cde" = yes && echo " Compiling in support for CDE."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10328 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10329 test "$with_offix" = yes && echo " Compiling in support for OffiX."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10330 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
10331 test "$with_session" = yes && echo " Compiling in support for proper session-management."
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10332 case "$with_menubars" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10333 lucid ) echo " Using Lucid menubars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10334 motif ) echo " Using Motif menubars."
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10335 echo " *WARNING* The Motif menubar implementation is currently buggy."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10336 echo " We recommend using the Lucid menubar instead."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10337 echo " Re-run configure with --with-menubars='lucid'." ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10338 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10339 case "$with_scrollbars" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10340 lucid ) echo " Using Lucid scrollbars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10341 motif ) echo " Using Motif scrollbars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10342 athena ) echo " Using Athena scrollbars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10343 athena3d ) echo " Using Athena-3d scrollbars." ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10344 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10345 case "$with_dialogs" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10346 motif ) echo " Using Motif dialog boxes." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10347 athena ) echo " Using Athena dialog boxes." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10348 athena3d ) echo " Using Athena-3d dialog boxes." ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10349 esac
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10350 test "$with_clash_detection" = yes && \
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10351 echo " Clash detection will use \"$lockdir\" for locking files."
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10352 echo " movemail will use \"$mail_locking\" for locking mail spool files."
126
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
10353 test "$with_pop" = yes && echo " Using POP for mail access"
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
10354 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
10355 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10356 echo " The \`Info-default-directory-list' will be initialized from:"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10357 echo " INFOPATH=\"$infopath\""
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10358 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10359 test "$debug" = yes && echo " Compiling in extra code for debugging."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10360 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10361 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10362 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10363 != "no no no no no"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10364 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10365 echo " WARNING: Compiling in support for runtime error checking."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10366 echo " WARNING: XEmacs will run noticeably more slowly as a result."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10367 echo " WARNING: Error checking is on by default for XEmacs beta releases."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10368 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10369 fi
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
10370 echo ""
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
10371 ) | tee -a Installation
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10372 echo "The above configure report is appended to \"Installation\" file."
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
10373 echo ""
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
10374
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
10375
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
10376
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10377 # Remove any trailing slashes in these variables.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10378 test -n "$prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10379 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10380 test -n "$exec_prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10381 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10382
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10383
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10384 trap '' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10385
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10386 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10387
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10389 # Let make expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10391
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10392 # Any assignment to VPATH causes Sun make to only execute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10393 # the first set of double-colon rules, so remove it if not needed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10394 # If there is a colon in the path, we need to keep it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10395 if test "x$srcdir" = x.; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10396 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10397 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10398
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10399 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10400
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10401 DEFS=-DHAVE_CONFIG_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10402
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10403 # Without the "./", some shells look in PATH for config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10404 : ${CONFIG_STATUS=./config.status}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10405
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10406 echo creating $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10407 rm -f $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10408 cat > $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10409 #! /bin/sh
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10410 # Generated automatically by configure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10411 # Run this file to recreate the current configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10412 # This directory was configured as follows,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10413 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10414 #
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10415 # $0 $ac_configure_args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10416 #
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10417 # Compiler output produced by configure, useful for debugging
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10418 # configure, is in ./config.log if it exists.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10419
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10420 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10421 for ac_option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10422 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10423 case "\$ac_option" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10425 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10426 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10427 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10428 echo "$CONFIG_STATUS generated by autoconf version 2.12"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10429 exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10430 -help | --help | --hel | --he | --h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10431 echo "\$ac_cs_usage"; exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10432 *) echo "\$ac_cs_usage"; exit 1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10433 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10434 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10435
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10436 ac_given_srcdir=$srcdir
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10437 ac_given_INSTALL="$INSTALL"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10438
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10439 trap 'rm -fr `echo "$internal_makefile_list lib-src/config.values src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10440 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10441 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10442
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10443 # Protect against being on the right side of a sed subst in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10444 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10445 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10446 $ac_vpsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10447 $extrasub
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10448 s%@CFLAGS@%$CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10449 s%@CPPFLAGS@%$CPPFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10450 s%@CXXFLAGS@%$CXXFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10451 s%@DEFS@%$DEFS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10452 s%@LDFLAGS@%$LDFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10453 s%@LIBS@%$LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10454 s%@exec_prefix@%$exec_prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10455 s%@prefix@%$prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10456 s%@program_transform_name@%$program_transform_name%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10457 s%@bindir@%$bindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10458 s%@sbindir@%$sbindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10459 s%@libexecdir@%$libexecdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10460 s%@datadir@%$datadir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10461 s%@sysconfdir@%$sysconfdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10462 s%@sharedstatedir@%$sharedstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10463 s%@localstatedir@%$localstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10464 s%@libdir@%$libdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10465 s%@includedir@%$includedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10466 s%@oldincludedir@%$oldincludedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10467 s%@infodir@%$infodir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10468 s%@mandir@%$mandir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10469 s%@LN_S@%$LN_S%g
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10470 s%@blddir@%$blddir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10471 s%@CC@%$CC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10472 s%@CPP@%$CPP%g
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10473 s%@start_flags@%$start_flags%g
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10474 s%@ld_switch_shared@%$ld_switch_shared%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10475 s%@start_files@%$start_files%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10476 s%@ld@%$ld%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10477 s%@lib_gcc@%$lib_gcc%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10478 s%@RANLIB@%$RANLIB%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10479 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10480 s%@INSTALL_DATA@%$INSTALL_DATA%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10481 s%@YACC@%$YACC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10482 s%@SET_MAKE@%$SET_MAKE%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10483 s%@X_CFLAGS@%$X_CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10484 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10485 s%@X_LIBS@%$X_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10486 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10487 s%@libs_xauth@%$libs_xauth%g
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents: 193
diff changeset
10488 s%@OFFIX_O@%$OFFIX_O%g
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
10489 s%@lwlib_objs@%$lwlib_objs%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10490 s%@ALLOCA@%$ALLOCA%g
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10491 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10492 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10493 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10494 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10495 s%@version@%$version%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10496 s%@configuration@%$configuration%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10497 s%@canonical@%$canonical%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10498 s%@srcdir@%$srcdir%g
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10499 s%@pkgdir@%$pkgdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10500 s%@statedir@%$statedir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10501 s%@infodir_user_defined@%$infodir_user_defined%g
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
10502 s%@infopath@%$infopath%g
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10503 s%@infopath_user_defined@%$infopath_user_defined%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10504 s%@lispdir@%$lispdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10505 s%@lispdir_user_defined@%$lispdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10506 s%@sitelispdir@%$sitelispdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10507 s%@etcdir@%$etcdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10508 s%@etcdir_user_defined@%$etcdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10509 s%@lockdir@%$lockdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10510 s%@lockdir_user_defined@%$lockdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10511 s%@archlibdir@%$archlibdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10512 s%@archlibdir_user_defined@%$archlibdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10513 s%@docdir@%$docdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10514 s%@bitmapdir@%$bitmapdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10515 s%@extra_objs@%$extra_objs%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10516 s%@machfile@%$machfile%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10517 s%@opsysfile@%$opsysfile%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10518 s%@c_switch_general@%$c_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10519 s%@c_switch_window_system@%$c_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10520 s%@c_switch_all@%$c_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10521 s%@ld_switch_general@%$ld_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10522 s%@ld_switch_window_system@%$ld_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10523 s%@ld_switch_all@%$ld_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10524 s%@ld_libs_general@%$ld_libs_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10525 s%@ld_libs_window_system@%$ld_libs_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10526 s%@ld_libs_all@%$ld_libs_all%g
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
10527 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10528 s%@native_sound_lib@%$native_sound_lib%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10529 s%@sound_cflags@%$sound_cflags%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10530 s%@dynodump_arch@%$dynodump_arch%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10531 s%@internal_makefile_list@%$internal_makefile_list%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10532
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10533 CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10534 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10535
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10536 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10537
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10538 # Split the substitutions into bite-sized pieces for seds with
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10539 # small command number limits, like on Digital OSF/1 and HP-UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10540 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10541 ac_file=1 # Number of current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10542 ac_beg=1 # First line for current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10543 ac_end=$ac_max_sed_cmds # Line after last line for current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10544 ac_more_lines=:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10545 ac_sed_cmds=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10546 while $ac_more_lines; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10547 if test $ac_beg -gt 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10548 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10549 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10550 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10551 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10552 if test ! -s conftest.s$ac_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10553 ac_more_lines=false
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10554 rm -f conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10555 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10556 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10557 ac_sed_cmds="sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10558 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10559 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10560 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10561 ac_file=`expr $ac_file + 1`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10562 ac_beg=$ac_end
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10563 ac_end=`expr $ac_end + $ac_max_sed_cmds`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10564 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10565 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10566 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10567 ac_sed_cmds=cat
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10568 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10569 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10570
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10571 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10572
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10573 CONFIG_FILES=\${CONFIG_FILES-"$internal_makefile_list lib-src/config.values"}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10574 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10575 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10576 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10578 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10579 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10580 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10581 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10582 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10583
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10584 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10585
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10586 # Remove last slash and all that follows it. Not all systems have dirname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10587 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10588 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10589 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10590 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10591 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10592 # A "../" for each directory in $ac_dir_suffix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10593 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10594 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10595 ac_dir_suffix= ac_dots=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10596 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10597
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10598 case "$ac_given_srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10599 .) srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10600 if test -z "$ac_dots"; then top_srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10601 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10602 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10603 *) # Relative path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10604 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10605 top_srcdir="$ac_dots$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10606 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10607
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10608 case "$ac_given_INSTALL" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10609 [/$]*) INSTALL="$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10610 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10611 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10612
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10613 echo creating "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10614 rm -f "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10615 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10616 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10617 *Makefile*) ac_comsub="1i\\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10618 # $configure_input" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10619 *) ac_comsub= ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10620 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10621
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10622 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10623 sed -e "$ac_comsub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10624 s%@configure_input@%$configure_input%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10625 s%@srcdir@%$srcdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10626 s%@top_srcdir@%$top_srcdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10627 s%@INSTALL@%$INSTALL%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10628 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10629 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10630 rm -f conftest.s*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10631
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10632 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10633 # NAME is the cpp macro being defined and VALUE is the value it is being given.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10634 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10635 # ac_d sets the value in "#define NAME VALUE" lines.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10636 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10637 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10638 ac_dC='\3'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10639 ac_dD='%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10640 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10641 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10642 ac_uB='\([ ]\)%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10643 ac_uC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10644 ac_uD='\4%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10645 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10646 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10647 ac_eB='$%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10648 ac_eC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10649 ac_eD='%g'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10650
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10651 if test "${CONFIG_HEADERS+set}" != set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10652 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10653 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10654 CONFIG_HEADERS="src/config.h lwlib/config.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10655 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10656 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10657 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10658 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10660 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10661 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10662 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10663 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10664 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10665
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10666 echo creating $ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10667
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10668 rm -f conftest.frag conftest.in conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10669 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10670 cat $ac_file_inputs > conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10671
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10672 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10673
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10674 # Transform confdefs.h into a sed script conftest.vals that substitutes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10675 # the proper values into config.h.in to produce config.h. And first:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10676 # Protect against being on the right side of a sed subst in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10677 # Protect against being in an unquoted here document in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10678 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10679 cat > conftest.hdr <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10680 s/[\\&%]/\\&/g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10681 s%[\\$`]%\\&%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10682 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10683 s%ac_d%ac_u%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10684 s%ac_u%ac_e%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10685 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10686 sed -n -f conftest.hdr confdefs.h > conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10687 rm -f conftest.hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10688
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10689 # This sed command replaces #undef with comments. This is necessary, for
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10690 # example, in the case of _POSIX_SOURCE, which is predefined and required
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10691 # on some systems where configure will not decide to define it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10692 cat >> conftest.vals <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10693 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10694 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10695
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10696 # Break up conftest.vals because some shells have a limit on
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10697 # the size of here documents, and old seds have small limits too.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10698
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10699 rm -f conftest.tail
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10700 while :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10701 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10702 ac_lines=`grep -c . conftest.vals`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10703 # grep -c gives empty output for an empty file on some AIX systems.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10704 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10705 # Write a limited-size here document to conftest.frag.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10706 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10707 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10708 echo 'CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10709 sed -f conftest.frag conftest.in > conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10710 rm -f conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10711 mv conftest.out conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10712 ' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10713 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10714 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10715 mv conftest.tail conftest.vals
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10716 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10717 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10718
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10719 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10720 rm -f conftest.frag conftest.h
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10721 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10722 cat conftest.in >> conftest.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10723 rm -f conftest.in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10724 if cmp -s $ac_file conftest.h 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10725 echo "$ac_file is unchanged"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10726 rm -f conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10727 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10728 # Remove last slash and all that follows it. Not all systems have dirname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10729 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10730 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10731 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10732 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10733 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10734 rm -f $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10735 mv conftest.h $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10736 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10737 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10738
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10739 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10740 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10741 CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10742 CPPFLAGS="$CPPFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10743 top_srcdir="$srcdir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10744 MAKE_SUBDIR="$MAKE_SUBDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10745
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10746 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10747 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10748
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10749 for dir in $MAKE_SUBDIR; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10750 echo creating $dir/Makefile
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10751 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10752 cd $dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10753 rm -f junk.c
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10754 < Makefile.in \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
10755 sed -e '/^# Generated/d' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10756 -e 's%/\*\*/#.*%%' \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
10757 -e 's/^ *# */#/' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10758 -e '/^##/d' \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10759 -e '/^#/ {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10760 p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10761 d
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10762 }' -e '/./ {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10763 s/\([\"]\)/\\\1/g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10764 s/^/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10765 s/$/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10766 }' > junk.c;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10767 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10768 < junk.cpp \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10769 sed -e 's/^#.*//' \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
10770 -e 's/^[ ][ ]*$//' \
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
10771 -e 's/^ / /' \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10772 | sed -n -e '/^..*$/p' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10773 | sed '/^"/ {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10774 s/\\\([\"]\)/\1/g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10775 s/^"//
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10776 s/"$//
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10777 }' > Makefile.new
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10778 chmod 444 Makefile.new
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10779 mv -f Makefile.new Makefile
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10780 rm -f junk.c junk.cpp
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
10781 )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10782 done
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10783
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10784 sed < config.status >> lib-src/config.values \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10785 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10786 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10787 -e 's/^\([^ ]*\) $/\1 ""/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
10788 -e 's/ 1$/ t/'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10789
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10790
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10791 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10792 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10793 chmod +x $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10794 rm -fr confdefs* $ac_clean_files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10795 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10796