Mercurial > vim
comparison src/auto/configure @ 131:5c65f9e56459
updated for version 7.0044
author | vimboss |
---|---|
date | Tue, 25 Jan 2005 22:03:25 +0000 |
parents | 410fa1a31baf |
children | 72aefd4c1e0d |
comparison
equal
deleted
inserted
replaced
130:964dc7d8b63d | 131:5c65f9e56459 |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 | |
3 # Guess values for system-dependent variables and create Makefiles. | 2 # Guess values for system-dependent variables and create Makefiles. |
4 # Generated automatically using autoconf version 2.13 | 3 # Generated by GNU Autoconf 2.59. |
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 # | 4 # |
5 # Copyright (C) 2003 Free Software Foundation, Inc. | |
7 # This configure script is free software; the Free Software Foundation | 6 # This configure script is free software; the Free Software Foundation |
8 # gives unlimited permission to copy, distribute and modify it. | 7 # gives unlimited permission to copy, distribute and modify it. |
9 | 8 ## --------------------- ## |
10 # Defaults: | 9 ## M4sh Initialization. ## |
11 ac_help= | 10 ## --------------------- ## |
11 | |
12 # Be Bourne compatible | |
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 emulate sh | |
15 NULLCMD=: | |
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 # is contrary to our usage. Disable this feature. | |
18 alias -g '${1+"$@"}'='"$@"' | |
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 set -o posix | |
21 fi | |
22 DUALCASE=1; export DUALCASE # for MKS sh | |
23 | |
24 # Support unset when possible. | |
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 as_unset=unset | |
27 else | |
28 as_unset=false | |
29 fi | |
30 | |
31 | |
32 # Work around bugs in pre-3.0 UWIN ksh. | |
33 $as_unset ENV MAIL MAILPATH | |
34 PS1='$ ' | |
35 PS2='> ' | |
36 PS4='+ ' | |
37 | |
38 # NLS nuisances. | |
39 for as_var in \ | |
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 LC_TELEPHONE LC_TIME | |
43 do | |
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 eval $as_var=C; export $as_var | |
46 else | |
47 $as_unset $as_var | |
48 fi | |
49 done | |
50 | |
51 # Required to use basename. | |
52 if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 as_expr=expr | |
54 else | |
55 as_expr=false | |
56 fi | |
57 | |
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 as_basename=basename | |
60 else | |
61 as_basename=false | |
62 fi | |
63 | |
64 | |
65 # Name of the executable. | |
66 as_me=`$as_basename "$0" || | |
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 X"$0" : 'X\(//\)$' \| \ | |
69 X"$0" : 'X\(/\)$' \| \ | |
70 . : '\(.\)' 2>/dev/null || | |
71 echo X/"$0" | | |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 /^X\/\(\/\).*/{ s//\1/; q; } | |
75 s/.*/./; q'` | |
76 | |
77 | |
78 # PATH needs CR, and LINENO needs CR and PATH. | |
79 # Avoid depending upon Character Ranges. | |
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 as_cr_digits='0123456789' | |
84 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | |
86 # The user is always right. | |
87 if test "${PATH_SEPARATOR+set}" != set; then | |
88 echo "#! /bin/sh" >conf$$.sh | |
89 echo "exit 0" >>conf$$.sh | |
90 chmod +x conf$$.sh | |
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 PATH_SEPARATOR=';' | |
93 else | |
94 PATH_SEPARATOR=: | |
95 fi | |
96 rm -f conf$$.sh | |
97 fi | |
98 | |
99 | |
100 as_lineno_1=$LINENO | |
101 as_lineno_2=$LINENO | |
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 # Find who we are. Look in the path if we contain no path at all | |
106 # relative or not. | |
107 case $0 in | |
108 *[\\/]* ) as_myself=$0 ;; | |
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 for as_dir in $PATH | |
111 do | |
112 IFS=$as_save_IFS | |
113 test -z "$as_dir" && as_dir=. | |
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 done | |
116 | |
117 ;; | |
118 esac | |
119 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 # in which case we are not to be found in the path. | |
121 if test "x$as_myself" = x; then | |
122 as_myself=$0 | |
123 fi | |
124 if test ! -f "$as_myself"; then | |
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 { (exit 1); exit 1; }; } | |
127 fi | |
128 case $CONFIG_SHELL in | |
129 '') | |
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 do | |
133 IFS=$as_save_IFS | |
134 test -z "$as_dir" && as_dir=. | |
135 for as_base in sh bash ksh sh5; do | |
136 case $as_dir in | |
137 /*) | |
138 if ("$as_dir/$as_base" -c ' | |
139 as_lineno_1=$LINENO | |
140 as_lineno_2=$LINENO | |
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 CONFIG_SHELL=$as_dir/$as_base | |
147 export CONFIG_SHELL | |
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 fi;; | |
150 esac | |
151 done | |
152 done | |
153 ;; | |
154 esac | |
155 | |
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 # uniformly replaced by the line number. The first 'sed' inserts a | |
158 # line-number line before each line; the second 'sed' does the real | |
159 # work. The second script uses 'N' to pair each line-number line | |
160 # with the numbered line, and appends trailing '-' during | |
161 # substitution so that $LINENO is not a special case at line end. | |
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 sed '=' <$as_myself | | |
165 sed ' | |
166 N | |
167 s,$,-, | |
168 : loop | |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 t loop | |
171 s,-$,, | |
172 s,^['$as_cr_digits']*\n,, | |
173 ' >$as_me.lineno && | |
174 chmod +x $as_me.lineno || | |
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 { (exit 1); exit 1; }; } | |
177 | |
178 # Don't try to exec as it changes $[0], causing all sort of problems | |
179 # (the dirname of $[0] is not the place where we might find the | |
180 # original and so on. Autoconf is especially sensible to this). | |
181 . ./$as_me.lineno | |
182 # Exit status is that of the last command. | |
183 exit | |
184 } | |
185 | |
186 | |
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 *c*,-n*) ECHO_N= ECHO_C=' | |
189 ' ECHO_T=' ' ;; | |
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 esac | |
193 | |
194 if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 as_expr=expr | |
196 else | |
197 as_expr=false | |
198 fi | |
199 | |
200 rm -f conf$$ conf$$.exe conf$$.file | |
201 echo >conf$$.file | |
202 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 # We could just check for DJGPP; but this test a) works b) is more generic | |
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 if test -f conf$$.exe; then | |
206 # Don't use ln at all; we don't have any links | |
207 as_ln_s='cp -p' | |
208 else | |
209 as_ln_s='ln -s' | |
210 fi | |
211 elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 as_ln_s=ln | |
213 else | |
214 as_ln_s='cp -p' | |
215 fi | |
216 rm -f conf$$ conf$$.exe conf$$.file | |
217 | |
218 if mkdir -p . 2>/dev/null; then | |
219 as_mkdir_p=: | |
220 else | |
221 test -d ./-p && rmdir ./-p | |
222 as_mkdir_p=false | |
223 fi | |
224 | |
225 as_executable_p="test -f" | |
226 | |
227 # Sed expression to map a string onto a valid CPP name. | |
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | |
230 # Sed expression to map a string onto a valid variable name. | |
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | |
233 | |
234 # IFS | |
235 # We need space, tab and new line, in precisely that order. | |
236 as_nl=' | |
237 ' | |
238 IFS=" $as_nl" | |
239 | |
240 # CDPATH. | |
241 $as_unset CDPATH | |
242 | |
243 | |
244 # Name of the host. | |
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 # so uname gets run too. | |
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | |
249 exec 6>&1 | |
250 | |
251 # | |
252 # Initializations. | |
253 # | |
12 ac_default_prefix=/usr/local | 254 ac_default_prefix=/usr/local |
13 # Any additions from configure.in: | 255 ac_config_libobj_dir=. |
14 ac_help="$ac_help | 256 cross_compiling=no |
15 --disable-darwin Disable Darwin (Mac OS X) support." | 257 subdirs= |
16 ac_help="$ac_help | 258 MFLAGS= |
17 --with-vim-name=NAME what to call the Vim executable" | 259 MAKEFLAGS= |
18 ac_help="$ac_help | 260 SHELL=${CONFIG_SHELL-/bin/sh} |
19 --with-ex-name=NAME what to call the Ex executable" | 261 |
20 ac_help="$ac_help | 262 # Maximum number of lines to put in a shell here document. |
21 --with-view-name=NAME what to call the View executable" | 263 # This variable seems obsolete. It should probably be removed, and |
22 ac_help="$ac_help | 264 # only ac_max_sed_lines should be used. |
23 --with-global-runtime=DIR global runtime directory in 'runtimepath'" | 265 : ${ac_max_here_lines=38} |
24 ac_help="$ac_help | 266 |
25 --with-modified-by=NAME name of who modified a release version" | 267 # Identity of this package. |
26 ac_help="$ac_help | 268 PACKAGE_NAME= |
27 --with-features=TYPE tiny, small, normal, big or huge (default: normal)" | 269 PACKAGE_TARNAME= |
28 ac_help="$ac_help | 270 PACKAGE_VERSION= |
29 --with-compiledby=NAME name to show in :version message" | 271 PACKAGE_STRING= |
30 ac_help="$ac_help | 272 PACKAGE_BUGREPORT= |
31 --disable-xsmp Disable XSMP session management" | 273 |
32 ac_help="$ac_help | 274 ac_unique_file="vim.h" |
33 --disable-xsmp-interact Disable XSMP interaction" | 275 # Factoring default headers for most tests. |
34 ac_help="$ac_help | 276 ac_includes_default="\ |
35 --enable-mzschemeinterp Include MzScheme interpreter." | 277 #include <stdio.h> |
36 ac_help="$ac_help | 278 #if HAVE_SYS_TYPES_H |
37 --with-plthome=PLTHOME Use PLTHOME." | 279 # include <sys/types.h> |
38 ac_help="$ac_help | 280 #endif |
39 --enable-perlinterp Include Perl interpreter." | 281 #if HAVE_SYS_STAT_H |
40 ac_help="$ac_help | 282 # include <sys/stat.h> |
41 --enable-pythoninterp Include Python interpreter." | 283 #endif |
42 ac_help="$ac_help | 284 #if STDC_HEADERS |
43 --with-python-config-dir=PATH Python's config directory" | 285 # include <stdlib.h> |
44 ac_help="$ac_help | 286 # include <stddef.h> |
45 --enable-tclinterp Include Tcl interpreter." | 287 #else |
46 ac_help="$ac_help | 288 # if HAVE_STDLIB_H |
47 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)" | 289 # include <stdlib.h> |
48 ac_help="$ac_help | 290 # endif |
49 --enable-rubyinterp Include Ruby interpreter." | 291 #endif |
50 ac_help="$ac_help | 292 #if HAVE_STRING_H |
51 --enable-cscope Include cscope interface." | 293 # if !STDC_HEADERS && HAVE_MEMORY_H |
52 ac_help="$ac_help | 294 # include <memory.h> |
53 --enable-workshop Include Sun Visual Workshop support." | 295 # endif |
54 ac_help="$ac_help | 296 # include <string.h> |
55 --disable-netbeans Disable NetBeans integration support." | 297 #endif |
56 ac_help="$ac_help | 298 #if HAVE_STRINGS_H |
57 --enable-sniff Include Sniff interface." | 299 # include <strings.h> |
58 ac_help="$ac_help | 300 #endif |
59 --enable-multibyte Include multibyte editing support." | 301 #if HAVE_INTTYPES_H |
60 ac_help="$ac_help | 302 # include <inttypes.h> |
61 --enable-hangulinput Include Hangul input support." | 303 #else |
62 ac_help="$ac_help | 304 # if HAVE_STDINT_H |
63 --enable-xim Include XIM input support." | 305 # include <stdint.h> |
64 ac_help="$ac_help | 306 # endif |
65 --enable-fontset Include X fontset output support." | 307 #endif |
66 ac_help="$ac_help | 308 #if HAVE_UNISTD_H |
67 --with-x use the X Window System" | 309 # include <unistd.h> |
68 ac_help="$ac_help | 310 #endif" |
69 --enable-gui[=OPTS] X11 GUI [default=auto] [OPTS=auto/no/gtk/gtk2/gnome/gnome2/kde/motif/athena/neXtaw/beos/photon/carbon]" | 311 |
70 ac_help="$ac_help | 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB MOC KDE_CONFIG KDE_LIBS KDE_INCLUDES KDE_PREFIX CXX CXXFLAGS ac_ct_CXX QT_LIBS QT_INCLUDES ROOTQT GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG MSGFMT MAKEMO LIBOBJS LTLIBOBJS' |
71 --enable-kde-check If auto-select GUI, check for KDE [default=no]" | 313 ac_subst_files='' |
72 ac_help="$ac_help | |
73 --enable-gtk-check If auto-select GUI, check for GTK [default=yes]" | |
74 ac_help="$ac_help | |
75 --enable-gtk2-check If GTK GUI, check for GTK+ 2 [default=yes]" | |
76 ac_help="$ac_help | |
77 --enable-gnome-check If GTK GUI, check for GNOME [default=no]" | |
78 ac_help="$ac_help | |
79 --enable-motif-check If auto-select GUI, check for Motif [default=yes]" | |
80 ac_help="$ac_help | |
81 --enable-athena-check If auto-select GUI, check for Athena [default=yes]" | |
82 ac_help="$ac_help | |
83 --enable-nextaw-check If auto-select GUI, check for neXtaw [default=yes]" | |
84 ac_help="$ac_help | |
85 --enable-carbon-check If auto-select GUI, check for Carbon [default=yes]" | |
86 ac_help="$ac_help | |
87 --with-qt-dir=DIR Specify prefix of QT files" | |
88 ac_help="$ac_help | |
89 --with-qt-includes=DIR Specify location of Qt headers" | |
90 ac_help="$ac_help | |
91 --with-qt-libs=DIR Specify location of Qt libraries" | |
92 ac_help="$ac_help | |
93 --enable-kde-toolbar if KDE GUI is selected, enable a KDE-look toolbar [default=no]" | |
94 ac_help="$ac_help | |
95 --disable-rpath Disable rpath." | |
96 ac_help="$ac_help | |
97 --with-kde-prefix=PFX Prefix where KDE is installed (optional)" | |
98 ac_help="$ac_help | |
99 --with-kde-includes=DIR Specify location of KDE headers" | |
100 ac_help="$ac_help | |
101 --with-kde-libs=DIR Specify location of KDE libraries" | |
102 ac_help="$ac_help | |
103 --disable-kdetest Do not try to compile and run a test KDE program" | |
104 ac_help="$ac_help | |
105 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
106 ac_help="$ac_help | |
107 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
108 ac_help="$ac_help | |
109 --disable-gtktest Do not try to compile and run a test GTK program" | |
110 ac_help="$ac_help | |
111 --with-gnome-includes=DIR Specify location of GNOME headers" | |
112 ac_help="$ac_help | |
113 --with-gnome-libs=DIR Specify location of GNOME libs" | |
114 ac_help="$ac_help | |
115 --with-gnome Specify prefix for GNOME files" | |
116 ac_help="$ac_help | |
117 --with-motif-lib=STRING Library for Motif " | |
118 ac_help="$ac_help | |
119 --with-tlib=library terminal library to be used " | |
120 ac_help="$ac_help | |
121 --disable-acl Don't check for ACL support." | |
122 ac_help="$ac_help | |
123 --disable-gpm Don't use gpm (Linux mouse daemon)." | |
124 ac_help="$ac_help | |
125 --disable-nls Don't support NLS (gettext())." | |
126 | 314 |
127 # Initialize some variables set by options. | 315 # Initialize some variables set by options. |
316 ac_init_help= | |
317 ac_init_version=false | |
128 # The variables have the same names as the options, with | 318 # The variables have the same names as the options, with |
129 # dashes changed to underlines. | 319 # dashes changed to underlines. |
130 build=NONE | 320 cache_file=/dev/null |
131 cache_file=./config.cache | |
132 exec_prefix=NONE | 321 exec_prefix=NONE |
133 host=NONE | |
134 no_create= | 322 no_create= |
135 nonopt=NONE | |
136 no_recursion= | 323 no_recursion= |
137 prefix=NONE | 324 prefix=NONE |
138 program_prefix=NONE | 325 program_prefix=NONE |
139 program_suffix=NONE | 326 program_suffix=NONE |
140 program_transform_name=s,x,x, | 327 program_transform_name=s,x,x, |
141 silent= | 328 silent= |
142 site= | 329 site= |
143 srcdir= | 330 srcdir= |
144 target=NONE | |
145 verbose= | 331 verbose= |
146 x_includes=NONE | 332 x_includes=NONE |
147 x_libraries=NONE | 333 x_libraries=NONE |
334 | |
335 # Installation directory options. | |
336 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 # and all the variables that are supposed to be based on exec_prefix | |
338 # by default will actually change. | |
339 # Use braces instead of parens because sh, perl, etc. also accept them. | |
148 bindir='${exec_prefix}/bin' | 340 bindir='${exec_prefix}/bin' |
149 sbindir='${exec_prefix}/sbin' | 341 sbindir='${exec_prefix}/sbin' |
150 libexecdir='${exec_prefix}/libexec' | 342 libexecdir='${exec_prefix}/libexec' |
151 datadir='${prefix}/share' | 343 datadir='${prefix}/share' |
152 sysconfdir='${prefix}/etc' | 344 sysconfdir='${prefix}/etc' |
156 includedir='${prefix}/include' | 348 includedir='${prefix}/include' |
157 oldincludedir='/usr/include' | 349 oldincludedir='/usr/include' |
158 infodir='${prefix}/info' | 350 infodir='${prefix}/info' |
159 mandir='${prefix}/man' | 351 mandir='${prefix}/man' |
160 | 352 |
161 # Initialize some other variables. | |
162 subdirs= | |
163 MFLAGS= MAKEFLAGS= | |
164 SHELL=${CONFIG_SHELL-/bin/sh} | |
165 # Maximum number of lines to put in a shell here document. | |
166 ac_max_here_lines=12 | |
167 | |
168 ac_prev= | 353 ac_prev= |
169 for ac_option | 354 for ac_option |
170 do | 355 do |
171 | |
172 # If the previous option needs an argument, assign it. | 356 # If the previous option needs an argument, assign it. |
173 if test -n "$ac_prev"; then | 357 if test -n "$ac_prev"; then |
174 eval "$ac_prev=\$ac_option" | 358 eval "$ac_prev=\$ac_option" |
175 ac_prev= | 359 ac_prev= |
176 continue | 360 continue |
177 fi | 361 fi |
178 | 362 |
179 case "$ac_option" in | 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
180 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
181 *) ac_optarg= ;; | |
182 esac | |
183 | 364 |
184 # Accept the important Cygnus configure options, so we can diagnose typos. | 365 # Accept the important Cygnus configure options, so we can diagnose typos. |
185 | 366 |
186 case "$ac_option" in | 367 case $ac_option in |
187 | 368 |
188 -bindir | --bindir | --bindi | --bind | --bin | --bi) | 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) |
189 ac_prev=bindir ;; | 370 ac_prev=bindir ;; |
190 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
191 bindir="$ac_optarg" ;; | 372 bindir=$ac_optarg ;; |
192 | 373 |
193 -build | --build | --buil | --bui | --bu) | 374 -build | --build | --buil | --bui | --bu) |
194 ac_prev=build ;; | 375 ac_prev=build_alias ;; |
195 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
196 build="$ac_optarg" ;; | 377 build_alias=$ac_optarg ;; |
197 | 378 |
198 -cache-file | --cache-file | --cache-fil | --cache-fi \ | 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ |
199 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
200 ac_prev=cache_file ;; | 381 ac_prev=cache_file ;; |
201 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
202 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
203 cache_file="$ac_optarg" ;; | 384 cache_file=$ac_optarg ;; |
385 | |
386 --config-cache | -C) | |
387 cache_file=config.cache ;; | |
204 | 388 |
205 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
206 ac_prev=datadir ;; | 390 ac_prev=datadir ;; |
207 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
208 | --da=*) | 392 | --da=*) |
209 datadir="$ac_optarg" ;; | 393 datadir=$ac_optarg ;; |
210 | 394 |
211 -disable-* | --disable-*) | 395 -disable-* | --disable-*) |
212 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
213 # Reject names that are not valid shell variable names. | 397 # Reject names that are not valid shell variable names. |
214 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
215 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
216 fi | 400 { (exit 1); exit 1; }; } |
217 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
218 eval "enable_${ac_feature}=no" ;; | 402 eval "enable_$ac_feature=no" ;; |
219 | 403 |
220 -enable-* | --enable-*) | 404 -enable-* | --enable-*) |
221 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
222 # Reject names that are not valid shell variable names. | 406 # Reject names that are not valid shell variable names. |
223 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
224 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
225 fi | 409 { (exit 1); exit 1; }; } |
226 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
227 case "$ac_option" in | 411 case $ac_option in |
228 *=*) ;; | 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
229 *) ac_optarg=yes ;; | 413 *) ac_optarg=yes ;; |
230 esac | 414 esac |
231 eval "enable_${ac_feature}='$ac_optarg'" ;; | 415 eval "enable_$ac_feature='$ac_optarg'" ;; |
232 | 416 |
233 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
234 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
235 | --exec | --exe | --ex) | 419 | --exec | --exe | --ex) |
236 ac_prev=exec_prefix ;; | 420 ac_prev=exec_prefix ;; |
237 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
238 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
239 | --exec=* | --exe=* | --ex=*) | 423 | --exec=* | --exe=* | --ex=*) |
240 exec_prefix="$ac_optarg" ;; | 424 exec_prefix=$ac_optarg ;; |
241 | 425 |
242 -gas | --gas | --ga | --g) | 426 -gas | --gas | --ga | --g) |
243 # Obsolete; use --with-gas. | 427 # Obsolete; use --with-gas. |
244 with_gas=yes ;; | 428 with_gas=yes ;; |
245 | 429 |
246 -help | --help | --hel | --he) | 430 -help | --help | --hel | --he | -h) |
247 # Omit some internal or obsolete options to make the list less imposing. | 431 ac_init_help=long ;; |
248 # This message is too long to be a string in the A/UX 3.1 sh. | 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
249 cat << EOF | 433 ac_init_help=recursive ;; |
250 Usage: configure [options] [host] | 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
251 Options: [defaults in brackets after descriptions] | 435 ac_init_help=short ;; |
252 Configuration: | |
253 --cache-file=FILE cache test results in FILE | |
254 --help print this message | |
255 --no-create do not create output files | |
256 --quiet, --silent do not print \`checking...' messages | |
257 --version print the version of autoconf that created configure | |
258 Directory and file names: | |
259 --prefix=PREFIX install architecture-independent files in PREFIX | |
260 [$ac_default_prefix] | |
261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
262 [same as prefix] | |
263 --bindir=DIR user executables in DIR [EPREFIX/bin] | |
264 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
265 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
266 --datadir=DIR read-only architecture-independent data in DIR | |
267 [PREFIX/share] | |
268 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
269 --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
270 [PREFIX/com] | |
271 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
272 --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
273 --includedir=DIR C header files in DIR [PREFIX/include] | |
274 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
275 --infodir=DIR info documentation in DIR [PREFIX/info] | |
276 --mandir=DIR man documentation in DIR [PREFIX/man] | |
277 --srcdir=DIR find the sources in DIR [configure dir or ..] | |
278 --program-prefix=PREFIX prepend PREFIX to installed program names | |
279 --program-suffix=SUFFIX append SUFFIX to installed program names | |
280 --program-transform-name=PROGRAM | |
281 run sed PROGRAM on installed program names | |
282 EOF | |
283 cat << EOF | |
284 Host type: | |
285 --build=BUILD configure for building on BUILD [BUILD=HOST] | |
286 --host=HOST configure for HOST [guessed] | |
287 --target=TARGET configure for TARGET [TARGET=HOST] | |
288 Features and packages: | |
289 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
290 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
291 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
292 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
293 --x-includes=DIR X include files are in DIR | |
294 --x-libraries=DIR X library files are in DIR | |
295 EOF | |
296 if test -n "$ac_help"; then | |
297 echo "--enable and --with options recognized:$ac_help" | |
298 fi | |
299 exit 0 ;; | |
300 | 436 |
301 -host | --host | --hos | --ho) | 437 -host | --host | --hos | --ho) |
302 ac_prev=host ;; | 438 ac_prev=host_alias ;; |
303 -host=* | --host=* | --hos=* | --ho=*) | 439 -host=* | --host=* | --hos=* | --ho=*) |
304 host="$ac_optarg" ;; | 440 host_alias=$ac_optarg ;; |
305 | 441 |
306 -includedir | --includedir | --includedi | --included | --include \ | 442 -includedir | --includedir | --includedi | --included | --include \ |
307 | --includ | --inclu | --incl | --inc) | 443 | --includ | --inclu | --incl | --inc) |
308 ac_prev=includedir ;; | 444 ac_prev=includedir ;; |
309 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
310 | --includ=* | --inclu=* | --incl=* | --inc=*) | 446 | --includ=* | --inclu=* | --incl=* | --inc=*) |
311 includedir="$ac_optarg" ;; | 447 includedir=$ac_optarg ;; |
312 | 448 |
313 -infodir | --infodir | --infodi | --infod | --info | --inf) | 449 -infodir | --infodir | --infodi | --infod | --info | --inf) |
314 ac_prev=infodir ;; | 450 ac_prev=infodir ;; |
315 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
316 infodir="$ac_optarg" ;; | 452 infodir=$ac_optarg ;; |
317 | 453 |
318 -libdir | --libdir | --libdi | --libd) | 454 -libdir | --libdir | --libdi | --libd) |
319 ac_prev=libdir ;; | 455 ac_prev=libdir ;; |
320 -libdir=* | --libdir=* | --libdi=* | --libd=*) | 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) |
321 libdir="$ac_optarg" ;; | 457 libdir=$ac_optarg ;; |
322 | 458 |
323 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
324 | --libexe | --libex | --libe) | 460 | --libexe | --libex | --libe) |
325 ac_prev=libexecdir ;; | 461 ac_prev=libexecdir ;; |
326 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
327 | --libexe=* | --libex=* | --libe=*) | 463 | --libexe=* | --libex=* | --libe=*) |
328 libexecdir="$ac_optarg" ;; | 464 libexecdir=$ac_optarg ;; |
329 | 465 |
330 -localstatedir | --localstatedir | --localstatedi | --localstated \ | 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ |
331 | --localstate | --localstat | --localsta | --localst \ | 467 | --localstate | --localstat | --localsta | --localst \ |
332 | --locals | --local | --loca | --loc | --lo) | 468 | --locals | --local | --loca | --loc | --lo) |
333 ac_prev=localstatedir ;; | 469 ac_prev=localstatedir ;; |
334 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
335 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
336 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
337 localstatedir="$ac_optarg" ;; | 473 localstatedir=$ac_optarg ;; |
338 | 474 |
339 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
340 ac_prev=mandir ;; | 476 ac_prev=mandir ;; |
341 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
342 mandir="$ac_optarg" ;; | 478 mandir=$ac_optarg ;; |
343 | 479 |
344 -nfp | --nfp | --nf) | 480 -nfp | --nfp | --nf) |
345 # Obsolete; use --without-fp. | 481 # Obsolete; use --without-fp. |
346 with_fp=no ;; | 482 with_fp=no ;; |
347 | 483 |
348 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
349 | --no-cr | --no-c) | 485 | --no-cr | --no-c | -n) |
350 no_create=yes ;; | 486 no_create=yes ;; |
351 | 487 |
352 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
353 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
354 no_recursion=yes ;; | 490 no_recursion=yes ;; |
358 | --oldin | --oldi | --old | --ol | --o) | 494 | --oldin | --oldi | --old | --ol | --o) |
359 ac_prev=oldincludedir ;; | 495 ac_prev=oldincludedir ;; |
360 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
361 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
362 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
363 oldincludedir="$ac_optarg" ;; | 499 oldincludedir=$ac_optarg ;; |
364 | 500 |
365 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
366 ac_prev=prefix ;; | 502 ac_prev=prefix ;; |
367 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
368 prefix="$ac_optarg" ;; | 504 prefix=$ac_optarg ;; |
369 | 505 |
370 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
371 | --program-pre | --program-pr | --program-p) | 507 | --program-pre | --program-pr | --program-p) |
372 ac_prev=program_prefix ;; | 508 ac_prev=program_prefix ;; |
373 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
374 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
375 program_prefix="$ac_optarg" ;; | 511 program_prefix=$ac_optarg ;; |
376 | 512 |
377 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
378 | --program-suf | --program-su | --program-s) | 514 | --program-suf | --program-su | --program-s) |
379 ac_prev=program_suffix ;; | 515 ac_prev=program_suffix ;; |
380 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
381 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
382 program_suffix="$ac_optarg" ;; | 518 program_suffix=$ac_optarg ;; |
383 | 519 |
384 -program-transform-name | --program-transform-name \ | 520 -program-transform-name | --program-transform-name \ |
385 | --program-transform-nam | --program-transform-na \ | 521 | --program-transform-nam | --program-transform-na \ |
386 | --program-transform-n | --program-transform- \ | 522 | --program-transform-n | --program-transform- \ |
387 | --program-transform | --program-transfor \ | 523 | --program-transform | --program-transfor \ |
394 | --program-transform-n=* | --program-transform-=* \ | 530 | --program-transform-n=* | --program-transform-=* \ |
395 | --program-transform=* | --program-transfor=* \ | 531 | --program-transform=* | --program-transfor=* \ |
396 | --program-transfo=* | --program-transf=* \ | 532 | --program-transfo=* | --program-transf=* \ |
397 | --program-trans=* | --program-tran=* \ | 533 | --program-trans=* | --program-tran=* \ |
398 | --progr-tra=* | --program-tr=* | --program-t=*) | 534 | --progr-tra=* | --program-tr=* | --program-t=*) |
399 program_transform_name="$ac_optarg" ;; | 535 program_transform_name=$ac_optarg ;; |
400 | 536 |
401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
402 | -silent | --silent | --silen | --sile | --sil) | 538 | -silent | --silent | --silen | --sile | --sil) |
403 silent=yes ;; | 539 silent=yes ;; |
404 | 540 |
405 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
406 ac_prev=sbindir ;; | 542 ac_prev=sbindir ;; |
407 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
408 | --sbi=* | --sb=*) | 544 | --sbi=* | --sb=*) |
409 sbindir="$ac_optarg" ;; | 545 sbindir=$ac_optarg ;; |
410 | 546 |
411 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
412 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
413 | --sharedst | --shareds | --shared | --share | --shar \ | 549 | --sharedst | --shareds | --shared | --share | --shar \ |
414 | --sha | --sh) | 550 | --sha | --sh) |
415 ac_prev=sharedstatedir ;; | 551 ac_prev=sharedstatedir ;; |
416 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
417 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
418 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
419 | --sha=* | --sh=*) | 555 | --sha=* | --sh=*) |
420 sharedstatedir="$ac_optarg" ;; | 556 sharedstatedir=$ac_optarg ;; |
421 | 557 |
422 -site | --site | --sit) | 558 -site | --site | --sit) |
423 ac_prev=site ;; | 559 ac_prev=site ;; |
424 -site=* | --site=* | --sit=*) | 560 -site=* | --site=* | --sit=*) |
425 site="$ac_optarg" ;; | 561 site=$ac_optarg ;; |
426 | 562 |
427 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
428 ac_prev=srcdir ;; | 564 ac_prev=srcdir ;; |
429 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
430 srcdir="$ac_optarg" ;; | 566 srcdir=$ac_optarg ;; |
431 | 567 |
432 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
433 | --syscon | --sysco | --sysc | --sys | --sy) | 569 | --syscon | --sysco | --sysc | --sys | --sy) |
434 ac_prev=sysconfdir ;; | 570 ac_prev=sysconfdir ;; |
435 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
436 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
437 sysconfdir="$ac_optarg" ;; | 573 sysconfdir=$ac_optarg ;; |
438 | 574 |
439 -target | --target | --targe | --targ | --tar | --ta | --t) | 575 -target | --target | --targe | --targ | --tar | --ta | --t) |
440 ac_prev=target ;; | 576 ac_prev=target_alias ;; |
441 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
442 target="$ac_optarg" ;; | 578 target_alias=$ac_optarg ;; |
443 | 579 |
444 -v | -verbose | --verbose | --verbos | --verbo | --verb) | 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) |
445 verbose=yes ;; | 581 verbose=yes ;; |
446 | 582 |
447 -version | --version | --versio | --versi | --vers) | 583 -version | --version | --versio | --versi | --vers | -V) |
448 echo "configure generated by autoconf version 2.13" | 584 ac_init_version=: ;; |
449 exit 0 ;; | |
450 | 585 |
451 -with-* | --with-*) | 586 -with-* | --with-*) |
452 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
453 # Reject names that are not valid shell variable names. | 588 # Reject names that are not valid shell variable names. |
454 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
455 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 |
456 fi | 591 { (exit 1); exit 1; }; } |
457 ac_package=`echo $ac_package| sed 's/-/_/g'` | 592 ac_package=`echo $ac_package| sed 's/-/_/g'` |
458 case "$ac_option" in | 593 case $ac_option in |
459 *=*) ;; | 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
460 *) ac_optarg=yes ;; | 595 *) ac_optarg=yes ;; |
461 esac | 596 esac |
462 eval "with_${ac_package}='$ac_optarg'" ;; | 597 eval "with_$ac_package='$ac_optarg'" ;; |
463 | 598 |
464 -without-* | --without-*) | 599 -without-* | --without-*) |
465 ac_package=`echo $ac_option|sed -e 's/-*without-//'` | 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
466 # Reject names that are not valid shell variable names. | 601 # Reject names that are not valid shell variable names. |
467 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
468 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 |
469 fi | 604 { (exit 1); exit 1; }; } |
470 ac_package=`echo $ac_package| sed 's/-/_/g'` | 605 ac_package=`echo $ac_package | sed 's/-/_/g'` |
471 eval "with_${ac_package}=no" ;; | 606 eval "with_$ac_package=no" ;; |
472 | 607 |
473 --x) | 608 --x) |
474 # Obsolete; use --with-x. | 609 # Obsolete; use --with-x. |
475 with_x=yes ;; | 610 with_x=yes ;; |
476 | 611 |
477 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
478 | --x-incl | --x-inc | --x-in | --x-i) | 613 | --x-incl | --x-inc | --x-in | --x-i) |
479 ac_prev=x_includes ;; | 614 ac_prev=x_includes ;; |
480 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
481 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
482 x_includes="$ac_optarg" ;; | 617 x_includes=$ac_optarg ;; |
483 | 618 |
484 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
485 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
486 ac_prev=x_libraries ;; | 621 ac_prev=x_libraries ;; |
487 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
488 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
489 x_libraries="$ac_optarg" ;; | 624 x_libraries=$ac_optarg ;; |
490 | 625 |
491 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | 626 -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 Try \`$0 --help' for more information." >&2 | |
628 { (exit 1); exit 1; }; } | |
492 ;; | 629 ;; |
493 | 630 |
631 *=*) | |
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 # Reject names that are not valid shell variable names. | |
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 { (exit 1); exit 1; }; } | |
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 eval "$ac_envvar='$ac_optarg'" | |
639 export $ac_envvar ;; | |
640 | |
494 *) | 641 *) |
495 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | 642 # FIXME: should be removed in autoconf 3.0. |
496 echo "configure: warning: $ac_option: invalid host type" 1>&2 | 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
497 fi | 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
498 if test "x$nonopt" != xNONE; then | 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
499 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
500 fi | |
501 nonopt="$ac_option" | |
502 ;; | 647 ;; |
503 | 648 |
504 esac | 649 esac |
505 done | 650 done |
506 | 651 |
507 if test -n "$ac_prev"; then | 652 if test -n "$ac_prev"; then |
508 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
509 fi | 654 { echo "$as_me: error: missing argument to $ac_option" >&2 |
510 | 655 { (exit 1); exit 1; }; } |
511 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 656 fi |
512 | 657 |
513 # File descriptor usage: | 658 # Be sure to have absolute paths. |
514 # 0 standard input | 659 for ac_var in exec_prefix prefix |
515 # 1 file creation | |
516 # 2 errors and warnings | |
517 # 3 some systems may open it to /dev/tty | |
518 # 4 used on the Kubota Titan | |
519 # 6 checking for... messages and results | |
520 # 5 compiler messages saved in config.log | |
521 if test "$silent" = yes; then | |
522 exec 6>/dev/null | |
523 else | |
524 exec 6>&1 | |
525 fi | |
526 exec 5>auto/config.log | |
527 | |
528 echo "\ | |
529 This file contains any messages produced by compilers while | |
530 running configure, to aid debugging if configure makes a mistake. | |
531 " 1>&5 | |
532 | |
533 # Strip out --no-create and --no-recursion so they do not pile up. | |
534 # Also quote any args containing shell metacharacters. | |
535 ac_configure_args= | |
536 for ac_arg | |
537 do | 660 do |
538 case "$ac_arg" in | 661 eval ac_val=$`echo $ac_var` |
539 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 662 case $ac_val in |
540 | --no-cr | --no-c) ;; | 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
541 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
542 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | 665 { (exit 1); exit 1; }; };; |
543 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
544 ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
545 *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
546 esac | 666 esac |
547 done | 667 done |
548 | 668 |
549 # NLS nuisances. | 669 # Be sure to have absolute paths. |
550 # Only set these to C if already set. These must not be set unconditionally | 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
551 # because not all systems understand e.g. LANG=C (notably SCO). | 671 localstatedir libdir includedir oldincludedir infodir mandir |
552 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | 672 do |
553 # Non-C LC_CTYPE values break the ctype check. | 673 eval ac_val=$`echo $ac_var` |
554 if test "${LANG+set}" = set; then LANG=C; export LANG; fi | 674 case $ac_val in |
555 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 675 [\\/$]* | ?:[\\/]* ) ;; |
556 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
557 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | 677 { (exit 1); exit 1; }; };; |
558 | 678 esac |
559 # confdefs.h avoids OS command line length limits that DEFS can exceed. | 679 done |
560 rm -rf conftest* confdefs.h | 680 |
561 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 681 # There might be people who depend on the old broken behavior: `$host' |
562 echo > confdefs.h | 682 # used to hold the argument of --host etc. |
563 | 683 # FIXME: To remove some day. |
564 # A filename unique to this package, relative to the directory that | 684 build=$build_alias |
565 # configure is in, which we can look for to find out if srcdir is correct. | 685 host=$host_alias |
566 ac_unique_file=vim.h | 686 target=$target_alias |
687 | |
688 # FIXME: To remove some day. | |
689 if test "x$host_alias" != x; then | |
690 if test "x$build_alias" = x; then | |
691 cross_compiling=maybe | |
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 elif test "x$build_alias" != "x$host_alias"; then | |
695 cross_compiling=yes | |
696 fi | |
697 fi | |
698 | |
699 ac_tool_prefix= | |
700 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | |
702 test "$silent" = yes && exec 6>/dev/null | |
703 | |
567 | 704 |
568 # Find the source files, if location was not specified. | 705 # Find the source files, if location was not specified. |
569 if test -z "$srcdir"; then | 706 if test -z "$srcdir"; then |
570 ac_srcdir_defaulted=yes | 707 ac_srcdir_defaulted=yes |
571 # Try the directory containing this script, then its parent. | 708 # Try the directory containing this script, then its parent. |
572 ac_prog=$0 | 709 ac_confdir=`(dirname "$0") 2>/dev/null || |
573 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
574 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | 711 X"$0" : 'X\(//\)[^/]' \| \ |
712 X"$0" : 'X\(//\)$' \| \ | |
713 X"$0" : 'X\(/\)' \| \ | |
714 . : '\(.\)' 2>/dev/null || | |
715 echo X"$0" | | |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 /^X\(\/\/\)$/{ s//\1/; q; } | |
719 /^X\(\/\).*/{ s//\1/; q; } | |
720 s/.*/./; q'` | |
575 srcdir=$ac_confdir | 721 srcdir=$ac_confdir |
576 if test ! -r $srcdir/$ac_unique_file; then | 722 if test ! -r $srcdir/$ac_unique_file; then |
577 srcdir=.. | 723 srcdir=.. |
578 fi | 724 fi |
579 else | 725 else |
580 ac_srcdir_defaulted=no | 726 ac_srcdir_defaulted=no |
581 fi | 727 fi |
582 if test ! -r $srcdir/$ac_unique_file; then | 728 if test ! -r $srcdir/$ac_unique_file; then |
583 if test "$ac_srcdir_defaulted" = yes; then | 729 if test "$ac_srcdir_defaulted" = yes; then |
584 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 { (exit 1); exit 1; }; } | |
585 else | 732 else |
586 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 { (exit 1); exit 1; }; } | |
587 fi | 735 fi |
588 fi | 736 fi |
589 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
590 | 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
739 { (exit 1); exit 1; }; } | |
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 ac_env_build_alias_set=${build_alias+set} | |
742 ac_env_build_alias_value=$build_alias | |
743 ac_cv_env_build_alias_set=${build_alias+set} | |
744 ac_cv_env_build_alias_value=$build_alias | |
745 ac_env_host_alias_set=${host_alias+set} | |
746 ac_env_host_alias_value=$host_alias | |
747 ac_cv_env_host_alias_set=${host_alias+set} | |
748 ac_cv_env_host_alias_value=$host_alias | |
749 ac_env_target_alias_set=${target_alias+set} | |
750 ac_env_target_alias_value=$target_alias | |
751 ac_cv_env_target_alias_set=${target_alias+set} | |
752 ac_cv_env_target_alias_value=$target_alias | |
753 ac_env_CC_set=${CC+set} | |
754 ac_env_CC_value=$CC | |
755 ac_cv_env_CC_set=${CC+set} | |
756 ac_cv_env_CC_value=$CC | |
757 ac_env_CFLAGS_set=${CFLAGS+set} | |
758 ac_env_CFLAGS_value=$CFLAGS | |
759 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 ac_cv_env_CFLAGS_value=$CFLAGS | |
761 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 ac_env_LDFLAGS_value=$LDFLAGS | |
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 ac_env_CPP_set=${CPP+set} | |
770 ac_env_CPP_value=$CPP | |
771 ac_cv_env_CPP_set=${CPP+set} | |
772 ac_cv_env_CPP_value=$CPP | |
773 ac_env_CXX_set=${CXX+set} | |
774 ac_env_CXX_value=$CXX | |
775 ac_cv_env_CXX_set=${CXX+set} | |
776 ac_cv_env_CXX_value=$CXX | |
777 ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
778 ac_env_CXXFLAGS_value=$CXXFLAGS | |
779 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
780 ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
781 | |
782 # | |
783 # Report the --help message. | |
784 # | |
785 if test "$ac_init_help" = "long"; then | |
786 # Omit some internal or obsolete options to make the list less imposing. | |
787 # This message is too long to be a string in the A/UX 3.1 sh. | |
788 cat <<_ACEOF | |
789 \`configure' configures this package to adapt to many kinds of systems. | |
790 | |
791 Usage: $0 [OPTION]... [VAR=VALUE]... | |
792 | |
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
794 VAR=VALUE. See below for descriptions of some of the useful variables. | |
795 | |
796 Defaults for the options are specified in brackets. | |
797 | |
798 Configuration: | |
799 -h, --help display this help and exit | |
800 --help=short display options specific to this package | |
801 --help=recursive display the short help of all the included packages | |
802 -V, --version display version information and exit | |
803 -q, --quiet, --silent do not print \`checking...' messages | |
804 --cache-file=FILE cache test results in FILE [disabled] | |
805 -C, --config-cache alias for \`--cache-file=config.cache' | |
806 -n, --no-create do not create output files | |
807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
808 | |
809 _ACEOF | |
810 | |
811 cat <<_ACEOF | |
812 Installation directories: | |
813 --prefix=PREFIX install architecture-independent files in PREFIX | |
814 [$ac_default_prefix] | |
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
816 [PREFIX] | |
817 | |
818 By default, \`make install' will install all the files in | |
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
821 for instance \`--prefix=\$HOME'. | |
822 | |
823 For better control, use the options below. | |
824 | |
825 Fine tuning of the installation directories: | |
826 --bindir=DIR user executables [EPREFIX/bin] | |
827 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
828 --libexecdir=DIR program executables [EPREFIX/libexec] | |
829 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
833 --libdir=DIR object code libraries [EPREFIX/lib] | |
834 --includedir=DIR C header files [PREFIX/include] | |
835 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
836 --infodir=DIR info documentation [PREFIX/info] | |
837 --mandir=DIR man documentation [PREFIX/man] | |
838 _ACEOF | |
839 | |
840 cat <<\_ACEOF | |
841 | |
842 X features: | |
843 --x-includes=DIR X include files are in DIR | |
844 --x-libraries=DIR X library files are in DIR | |
845 _ACEOF | |
846 fi | |
847 | |
848 if test -n "$ac_init_help"; then | |
849 | |
850 cat <<\_ACEOF | |
851 | |
852 Optional Features: | |
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
855 --disable-darwin Disable Darwin (Mac OS X) support. | |
856 --disable-xsmp Disable XSMP session management | |
857 --disable-xsmp-interact Disable XSMP interaction | |
858 --enable-mzschemeinterp Include MzScheme interpreter. | |
859 --enable-perlinterp Include Perl interpreter. | |
860 --enable-pythoninterp Include Python interpreter. | |
861 --enable-tclinterp Include Tcl interpreter. | |
862 --enable-rubyinterp Include Ruby interpreter. | |
863 --enable-cscope Include cscope interface. | |
864 --enable-workshop Include Sun Visual Workshop support. | |
865 --disable-netbeans Disable NetBeans integration support. | |
866 --enable-sniff Include Sniff interface. | |
867 --enable-multibyte Include multibyte editing support. | |
868 --enable-hangulinput Include Hangul input support. | |
869 --enable-xim Include XIM input support. | |
870 --enable-fontset Include X fontset output support. | |
871 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/kde/motif/athena/neXtaw/beos/photon/carbon | |
872 --enable-kde-check If auto-select GUI, check for KDE default=no | |
873 --enable-gtk-check If auto-select GUI, check for GTK default=yes | |
874 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes | |
875 --enable-gnome-check If GTK GUI, check for GNOME default=no | |
876 --enable-motif-check If auto-select GUI, check for Motif default=yes | |
877 --enable-athena-check If auto-select GUI, check for Athena default=yes | |
878 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes | |
879 --enable-carbon-check If auto-select GUI, check for Carbon default=yes | |
880 --enable-kde-toolbar if KDE GUI is selected, enable a KDE-look toolbar default=no | |
881 --disable-rpath Disable rpath. | |
882 --disable-kdetest Do not try to compile and run a test KDE program | |
883 --disable-gtktest Do not try to compile and run a test GTK program | |
884 --disable-acl Don't check for ACL support. | |
885 --disable-gpm Don't use gpm (Linux mouse daemon). | |
886 --disable-nls Don't support NLS (gettext()). | |
887 | |
888 Optional Packages: | |
889 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
890 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
891 --with-vim-name=NAME what to call the Vim executable | |
892 --with-ex-name=NAME what to call the Ex executable | |
893 --with-view-name=NAME what to call the View executable | |
894 --with-global-runtime=DIR global runtime directory in 'runtimepath' | |
895 --with-modified-by=NAME name of who modified a release version | |
896 --with-features=TYPE tiny, small, normal, big or huge (default: normal) | |
897 --with-compiledby=NAME name to show in :version message | |
898 --with-plthome=PLTHOME Use PLTHOME. | |
899 --with-python-config-dir=PATH Python's config directory | |
900 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) | |
901 --with-x use the X Window System | |
902 --with-qt-dir=DIR Specify prefix of QT files | |
903 --with-qt-includes=DIR Specify location of Qt headers | |
904 --with-qt-libs=DIR Specify location of Qt libraries | |
905 --with-kde-prefix=PFX Prefix where KDE is installed (optional) | |
906 --with-kde-includes=DIR Specify location of KDE headers | |
907 --with-kde-libs=DIR Specify location of KDE libraries | |
908 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
909 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
910 --with-gnome-includes=DIR Specify location of GNOME headers | |
911 --with-gnome-libs=DIR Specify location of GNOME libs | |
912 --with-gnome Specify prefix for GNOME files | |
913 --with-motif-lib=STRING Library for Motif | |
914 --with-tlib=library terminal library to be used | |
915 | |
916 Some influential environment variables: | |
917 CC C compiler command | |
918 CFLAGS C compiler flags | |
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
920 nonstandard directory <lib dir> | |
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
922 headers in a nonstandard directory <include dir> | |
923 CPP C preprocessor | |
924 CXX C++ compiler command | |
925 CXXFLAGS C++ compiler flags | |
926 | |
927 Use these variables to override the choices made by `configure' or to help | |
928 it to find libraries and programs with nonstandard names/locations. | |
929 | |
930 _ACEOF | |
931 fi | |
932 | |
933 if test "$ac_init_help" = "recursive"; then | |
934 # If there are subdirs, report their specific --help. | |
935 ac_popdir=`pwd` | |
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
937 test -d $ac_dir || continue | |
938 ac_builddir=. | |
939 | |
940 if test "$ac_dir" != .; then | |
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
942 # A "../" for each directory in $ac_dir_suffix. | |
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
944 else | |
945 ac_dir_suffix= ac_top_builddir= | |
946 fi | |
947 | |
948 case $srcdir in | |
949 .) # No --srcdir option. We are building in place. | |
950 ac_srcdir=. | |
951 if test -z "$ac_top_builddir"; then | |
952 ac_top_srcdir=. | |
953 else | |
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
955 fi ;; | |
956 [\\/]* | ?:[\\/]* ) # Absolute path. | |
957 ac_srcdir=$srcdir$ac_dir_suffix; | |
958 ac_top_srcdir=$srcdir ;; | |
959 *) # Relative path. | |
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
961 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
962 esac | |
963 | |
964 # Do not use `cd foo && pwd` to compute absolute paths, because | |
965 # the directories may not exist. | |
966 case `pwd` in | |
967 .) ac_abs_builddir="$ac_dir";; | |
968 *) | |
969 case "$ac_dir" in | |
970 .) ac_abs_builddir=`pwd`;; | |
971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
972 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
973 esac;; | |
974 esac | |
975 case $ac_abs_builddir in | |
976 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
977 *) | |
978 case ${ac_top_builddir}. in | |
979 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
982 esac;; | |
983 esac | |
984 case $ac_abs_builddir in | |
985 .) ac_abs_srcdir=$ac_srcdir;; | |
986 *) | |
987 case $ac_srcdir in | |
988 .) ac_abs_srcdir=$ac_abs_builddir;; | |
989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
991 esac;; | |
992 esac | |
993 case $ac_abs_builddir in | |
994 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
995 *) | |
996 case $ac_top_srcdir in | |
997 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1000 esac;; | |
1001 esac | |
1002 | |
1003 cd $ac_dir | |
1004 # Check for guested configure; otherwise get Cygnus style configure. | |
1005 if test -f $ac_srcdir/configure.gnu; then | |
1006 echo | |
1007 $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1008 elif test -f $ac_srcdir/configure; then | |
1009 echo | |
1010 $SHELL $ac_srcdir/configure --help=recursive | |
1011 elif test -f $ac_srcdir/configure.ac || | |
1012 test -f $ac_srcdir/configure.in; then | |
1013 echo | |
1014 $ac_configure --help | |
1015 else | |
1016 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1017 fi | |
1018 cd $ac_popdir | |
1019 done | |
1020 fi | |
1021 | |
1022 test -n "$ac_init_help" && exit 0 | |
1023 if $ac_init_version; then | |
1024 cat <<\_ACEOF | |
1025 | |
1026 Copyright (C) 2003 Free Software Foundation, Inc. | |
1027 This configure script is free software; the Free Software Foundation | |
1028 gives unlimited permission to copy, distribute and modify it. | |
1029 _ACEOF | |
1030 exit 0 | |
1031 fi | |
1032 exec 5>auto/config.log | |
1033 cat >&5 <<_ACEOF | |
1034 This file contains any messages produced by compilers while | |
1035 running configure, to aid debugging if configure makes a mistake. | |
1036 | |
1037 It was created by $as_me, which was | |
1038 generated by GNU Autoconf 2.59. Invocation command line was | |
1039 | |
1040 $ $0 $@ | |
1041 | |
1042 _ACEOF | |
1043 { | |
1044 cat <<_ASUNAME | |
1045 ## --------- ## | |
1046 ## Platform. ## | |
1047 ## --------- ## | |
1048 | |
1049 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1050 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1051 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1052 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1053 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1054 | |
1055 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1056 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1057 | |
1058 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1059 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1060 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1061 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1062 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1063 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1064 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1065 | |
1066 _ASUNAME | |
1067 | |
1068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1069 for as_dir in $PATH | |
1070 do | |
1071 IFS=$as_save_IFS | |
1072 test -z "$as_dir" && as_dir=. | |
1073 echo "PATH: $as_dir" | |
1074 done | |
1075 | |
1076 } >&5 | |
1077 | |
1078 cat >&5 <<_ACEOF | |
1079 | |
1080 | |
1081 ## ----------- ## | |
1082 ## Core tests. ## | |
1083 ## ----------- ## | |
1084 | |
1085 _ACEOF | |
1086 | |
1087 | |
1088 # Keep a trace of the command line. | |
1089 # Strip out --no-create and --no-recursion so they do not pile up. | |
1090 # Strip out --silent because we don't want to record it for future runs. | |
1091 # Also quote any args containing shell meta-characters. | |
1092 # Make two passes to allow for proper duplicate-argument suppression. | |
1093 ac_configure_args= | |
1094 ac_configure_args0= | |
1095 ac_configure_args1= | |
1096 ac_sep= | |
1097 ac_must_keep_next=false | |
1098 for ac_pass in 1 2 | |
1099 do | |
1100 for ac_arg | |
1101 do | |
1102 case $ac_arg in | |
1103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1105 | -silent | --silent | --silen | --sile | --sil) | |
1106 continue ;; | |
1107 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1108 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1109 esac | |
1110 case $ac_pass in | |
1111 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1112 2) | |
1113 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1114 if test $ac_must_keep_next = true; then | |
1115 ac_must_keep_next=false # Got value, back to normal. | |
1116 else | |
1117 case $ac_arg in | |
1118 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1121 | -with-* | --with-* | -without-* | --without-* | --x) | |
1122 case "$ac_configure_args0 " in | |
1123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1124 esac | |
1125 ;; | |
1126 -* ) ac_must_keep_next=true ;; | |
1127 esac | |
1128 fi | |
1129 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1130 # Get rid of the leading space. | |
1131 ac_sep=" " | |
1132 ;; | |
1133 esac | |
1134 done | |
1135 done | |
1136 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1137 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1138 | |
1139 # When interrupted or exit'd, cleanup temporary files, and complete | |
1140 # config.log. We remove comments because anyway the quotes in there | |
1141 # would cause problems or look ugly. | |
1142 # WARNING: Be sure not to use single quotes in there, as some shells, | |
1143 # such as our DU 5.0 friend, will then `close' the trap. | |
1144 trap 'exit_status=$? | |
1145 # Save into config.log some information that might help in debugging. | |
1146 { | |
1147 echo | |
1148 | |
1149 cat <<\_ASBOX | |
1150 ## ---------------- ## | |
1151 ## Cache variables. ## | |
1152 ## ---------------- ## | |
1153 _ASBOX | |
1154 echo | |
1155 # The following way of writing the cache mishandles newlines in values, | |
1156 { | |
1157 (set) 2>&1 | | |
1158 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1159 *ac_space=\ *) | |
1160 sed -n \ | |
1161 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1163 ;; | |
1164 *) | |
1165 sed -n \ | |
1166 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1167 ;; | |
1168 esac; | |
1169 } | |
1170 echo | |
1171 | |
1172 cat <<\_ASBOX | |
1173 ## ----------------- ## | |
1174 ## Output variables. ## | |
1175 ## ----------------- ## | |
1176 _ASBOX | |
1177 echo | |
1178 for ac_var in $ac_subst_vars | |
1179 do | |
1180 eval ac_val=$`echo $ac_var` | |
1181 echo "$ac_var='"'"'$ac_val'"'"'" | |
1182 done | sort | |
1183 echo | |
1184 | |
1185 if test -n "$ac_subst_files"; then | |
1186 cat <<\_ASBOX | |
1187 ## ------------- ## | |
1188 ## Output files. ## | |
1189 ## ------------- ## | |
1190 _ASBOX | |
1191 echo | |
1192 for ac_var in $ac_subst_files | |
1193 do | |
1194 eval ac_val=$`echo $ac_var` | |
1195 echo "$ac_var='"'"'$ac_val'"'"'" | |
1196 done | sort | |
1197 echo | |
1198 fi | |
1199 | |
1200 if test -s confdefs.h; then | |
1201 cat <<\_ASBOX | |
1202 ## ----------- ## | |
1203 ## confdefs.h. ## | |
1204 ## ----------- ## | |
1205 _ASBOX | |
1206 echo | |
1207 sed "/^$/d" confdefs.h | sort | |
1208 echo | |
1209 fi | |
1210 test "$ac_signal" != 0 && | |
1211 echo "$as_me: caught signal $ac_signal" | |
1212 echo "$as_me: exit $exit_status" | |
1213 } >&5 | |
1214 rm -f core *.core && | |
1215 rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1216 exit $exit_status | |
1217 ' 0 | |
1218 for ac_signal in 1 2 13 15; do | |
1219 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1220 done | |
1221 ac_signal=0 | |
1222 | |
1223 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1224 rm -rf conftest* confdefs.h | |
1225 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1226 echo >confdefs.h | |
1227 | |
1228 # Predefined preprocessor variables. | |
1229 | |
1230 cat >>confdefs.h <<_ACEOF | |
1231 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1232 _ACEOF | |
1233 | |
1234 | |
1235 cat >>confdefs.h <<_ACEOF | |
1236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1237 _ACEOF | |
1238 | |
1239 | |
1240 cat >>confdefs.h <<_ACEOF | |
1241 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1242 _ACEOF | |
1243 | |
1244 | |
1245 cat >>confdefs.h <<_ACEOF | |
1246 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1247 _ACEOF | |
1248 | |
1249 | |
1250 cat >>confdefs.h <<_ACEOF | |
1251 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1252 _ACEOF | |
1253 | |
1254 | |
1255 # Let the site file select an alternate cache file if it wants to. | |
591 # Prefer explicitly selected file to automatically selected ones. | 1256 # Prefer explicitly selected file to automatically selected ones. |
592 if test -z "$CONFIG_SITE"; then | 1257 if test -z "$CONFIG_SITE"; then |
593 if test "x$prefix" != xNONE; then | 1258 if test "x$prefix" != xNONE; then |
594 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 1259 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
595 else | 1260 else |
596 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 1261 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
597 fi | 1262 fi |
598 fi | 1263 fi |
599 for ac_site_file in $CONFIG_SITE; do | 1264 for ac_site_file in $CONFIG_SITE; do |
600 if test -r "$ac_site_file"; then | 1265 if test -r "$ac_site_file"; then |
601 echo "loading site script $ac_site_file" | 1266 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1267 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1268 sed 's/^/| /' "$ac_site_file" >&5 | |
602 . "$ac_site_file" | 1269 . "$ac_site_file" |
603 fi | 1270 fi |
604 done | 1271 done |
605 | 1272 |
606 if test -r "$cache_file"; then | 1273 if test -r "$cache_file"; then |
607 echo "loading cache $cache_file" | 1274 # Some versions of bash will fail to source /dev/null (special |
608 . $cache_file | 1275 # files actually), so we avoid doing that. |
609 else | 1276 if test -f "$cache_file"; then |
610 echo "creating cache $cache_file" | 1277 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
611 > $cache_file | 1278 echo "$as_me: loading cache $cache_file" >&6;} |
1279 case $cache_file in | |
1280 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1281 *) . ./$cache_file;; | |
1282 esac | |
1283 fi | |
1284 else | |
1285 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1286 echo "$as_me: creating cache $cache_file" >&6;} | |
1287 >$cache_file | |
1288 fi | |
1289 | |
1290 # Check that the precious variables saved in the cache have kept the same | |
1291 # value. | |
1292 ac_cache_corrupted=false | |
1293 for ac_var in `(set) 2>&1 | | |
1294 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1295 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1296 eval ac_new_set=\$ac_env_${ac_var}_set | |
1297 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1298 eval ac_new_val="\$ac_env_${ac_var}_value" | |
1299 case $ac_old_set,$ac_new_set in | |
1300 set,) | |
1301 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1302 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1303 ac_cache_corrupted=: ;; | |
1304 ,set) | |
1305 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1306 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1307 ac_cache_corrupted=: ;; | |
1308 ,);; | |
1309 *) | |
1310 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1311 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1312 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1313 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1314 echo "$as_me: former value: $ac_old_val" >&2;} | |
1315 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1316 echo "$as_me: current value: $ac_new_val" >&2;} | |
1317 ac_cache_corrupted=: | |
1318 fi;; | |
1319 esac | |
1320 # Pass precious variables to config.status. | |
1321 if test "$ac_new_set" = set; then | |
1322 case $ac_new_val in | |
1323 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1324 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1325 *) ac_arg=$ac_var=$ac_new_val ;; | |
1326 esac | |
1327 case " $ac_configure_args " in | |
1328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1329 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1330 esac | |
1331 fi | |
1332 done | |
1333 if $ac_cache_corrupted; then | |
1334 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1335 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1336 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1337 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1338 { (exit 1); exit 1; }; } | |
612 fi | 1339 fi |
613 | 1340 |
614 ac_ext=c | 1341 ac_ext=c |
615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
616 ac_cpp='$CPP $CPPFLAGS' | 1342 ac_cpp='$CPP $CPPFLAGS' |
617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 1343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 1344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
619 cross_compiling=$ac_cv_prog_cc_cross | 1345 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
620 | 1346 |
621 ac_exeext= | 1347 |
622 ac_objext=o | 1348 |
623 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 1349 |
624 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 1350 |
625 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 1351 |
626 ac_n= ac_c=' | 1352 |
627 ' ac_t=' ' | 1353 |
628 else | 1354 |
629 ac_n=-n ac_c= ac_t= | 1355 |
630 fi | 1356 |
631 else | 1357 |
632 ac_n= ac_c='\c' ac_t= | 1358 |
633 fi | 1359 |
634 | 1360 |
635 | 1361 |
636 | 1362 |
637 | 1363 |
638 cat >> confdefs.h <<\EOF | 1364 |
1365 ac_config_headers="$ac_config_headers auto/config.h:config.h.in" | |
1366 | |
1367 | |
1368 cat >>confdefs.h <<\_ACEOF | |
639 #define UNIX 1 | 1369 #define UNIX 1 |
640 EOF | 1370 _ACEOF |
641 | 1371 |
642 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 1372 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
643 echo "configure:644: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 1373 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
644 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 1374 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
645 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 1375 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
646 echo $ac_n "(cached) $ac_c" 1>&6 | 1376 echo $ECHO_N "(cached) $ECHO_C" >&6 |
647 else | 1377 else |
648 cat > conftestmake <<\EOF | 1378 cat >conftest.make <<\_ACEOF |
649 all: | 1379 all: |
650 @echo 'ac_maketemp="${MAKE}"' | 1380 @echo 'ac_maketemp="$(MAKE)"' |
651 EOF | 1381 _ACEOF |
652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 1382 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
653 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 1383 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
654 if test -n "$ac_maketemp"; then | 1384 if test -n "$ac_maketemp"; then |
655 eval ac_cv_prog_make_${ac_make}_set=yes | 1385 eval ac_cv_prog_make_${ac_make}_set=yes |
656 else | 1386 else |
657 eval ac_cv_prog_make_${ac_make}_set=no | 1387 eval ac_cv_prog_make_${ac_make}_set=no |
658 fi | 1388 fi |
659 rm -f conftestmake | 1389 rm -f conftest.make |
660 fi | 1390 fi |
661 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 1391 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
662 echo "$ac_t""yes" 1>&6 | 1392 echo "$as_me:$LINENO: result: yes" >&5 |
1393 echo "${ECHO_T}yes" >&6 | |
663 SET_MAKE= | 1394 SET_MAKE= |
664 else | 1395 else |
665 echo "$ac_t""no" 1>&6 | 1396 echo "$as_me:$LINENO: result: no" >&5 |
1397 echo "${ECHO_T}no" >&6 | |
666 SET_MAKE="MAKE=${MAKE-make}" | 1398 SET_MAKE="MAKE=${MAKE-make}" |
667 fi | 1399 fi |
668 | 1400 |
669 | 1401 |
670 # Extract the first word of "gcc", so it can be a program name with args. | 1402 ac_ext=c |
671 set dummy gcc; ac_word=$2 | 1403 ac_cpp='$CPP $CPPFLAGS' |
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
673 echo "configure:674: checking for $ac_word" >&5 | 1405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1406 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
675 echo $ac_n "(cached) $ac_c" 1>&6 | 1407 if test -n "$ac_tool_prefix"; then |
1408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1409 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1410 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1412 if test "${ac_cv_prog_CC+set}" = set; then | |
1413 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
676 else | 1414 else |
677 if test -n "$CC"; then | 1415 if test -n "$CC"; then |
678 ac_cv_prog_CC="$CC" # Let the user override the test. | 1416 ac_cv_prog_CC="$CC" # Let the user override the test. |
679 else | 1417 else |
680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
681 ac_dummy="$PATH" | 1419 for as_dir in $PATH |
682 for ac_dir in $ac_dummy; do | 1420 do |
683 test -z "$ac_dir" && ac_dir=. | 1421 IFS=$as_save_IFS |
684 if test -f $ac_dir/$ac_word; then | 1422 test -z "$as_dir" && as_dir=. |
685 ac_cv_prog_CC="gcc" | 1423 for ac_exec_ext in '' $ac_executable_extensions; do |
686 break | 1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
687 fi | 1425 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
688 done | 1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
689 IFS="$ac_save_ifs" | 1427 break 2 |
690 fi | 1428 fi |
691 fi | 1429 done |
692 CC="$ac_cv_prog_CC" | 1430 done |
1431 | |
1432 fi | |
1433 fi | |
1434 CC=$ac_cv_prog_CC | |
693 if test -n "$CC"; then | 1435 if test -n "$CC"; then |
694 echo "$ac_t""$CC" 1>&6 | 1436 echo "$as_me:$LINENO: result: $CC" >&5 |
695 else | 1437 echo "${ECHO_T}$CC" >&6 |
696 echo "$ac_t""no" 1>&6 | 1438 else |
697 fi | 1439 echo "$as_me:$LINENO: result: no" >&5 |
698 | 1440 echo "${ECHO_T}no" >&6 |
1441 fi | |
1442 | |
1443 fi | |
1444 if test -z "$ac_cv_prog_CC"; then | |
1445 ac_ct_CC=$CC | |
1446 # Extract the first word of "gcc", so it can be a program name with args. | |
1447 set dummy gcc; ac_word=$2 | |
1448 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1451 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1452 else | |
1453 if test -n "$ac_ct_CC"; then | |
1454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1455 else | |
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1457 for as_dir in $PATH | |
1458 do | |
1459 IFS=$as_save_IFS | |
1460 test -z "$as_dir" && as_dir=. | |
1461 for ac_exec_ext in '' $ac_executable_extensions; do | |
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1463 ac_cv_prog_ac_ct_CC="gcc" | |
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1465 break 2 | |
1466 fi | |
1467 done | |
1468 done | |
1469 | |
1470 fi | |
1471 fi | |
1472 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1473 if test -n "$ac_ct_CC"; then | |
1474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1475 echo "${ECHO_T}$ac_ct_CC" >&6 | |
1476 else | |
1477 echo "$as_me:$LINENO: result: no" >&5 | |
1478 echo "${ECHO_T}no" >&6 | |
1479 fi | |
1480 | |
1481 CC=$ac_ct_CC | |
1482 else | |
1483 CC="$ac_cv_prog_CC" | |
1484 fi | |
1485 | |
1486 if test -z "$CC"; then | |
1487 if test -n "$ac_tool_prefix"; then | |
1488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1489 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1492 if test "${ac_cv_prog_CC+set}" = set; then | |
1493 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1494 else | |
1495 if test -n "$CC"; then | |
1496 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1497 else | |
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1499 for as_dir in $PATH | |
1500 do | |
1501 IFS=$as_save_IFS | |
1502 test -z "$as_dir" && as_dir=. | |
1503 for ac_exec_ext in '' $ac_executable_extensions; do | |
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1505 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1507 break 2 | |
1508 fi | |
1509 done | |
1510 done | |
1511 | |
1512 fi | |
1513 fi | |
1514 CC=$ac_cv_prog_CC | |
1515 if test -n "$CC"; then | |
1516 echo "$as_me:$LINENO: result: $CC" >&5 | |
1517 echo "${ECHO_T}$CC" >&6 | |
1518 else | |
1519 echo "$as_me:$LINENO: result: no" >&5 | |
1520 echo "${ECHO_T}no" >&6 | |
1521 fi | |
1522 | |
1523 fi | |
1524 if test -z "$ac_cv_prog_CC"; then | |
1525 ac_ct_CC=$CC | |
1526 # Extract the first word of "cc", so it can be a program name with args. | |
1527 set dummy cc; ac_word=$2 | |
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1531 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1532 else | |
1533 if test -n "$ac_ct_CC"; then | |
1534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1535 else | |
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1537 for as_dir in $PATH | |
1538 do | |
1539 IFS=$as_save_IFS | |
1540 test -z "$as_dir" && as_dir=. | |
1541 for ac_exec_ext in '' $ac_executable_extensions; do | |
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1543 ac_cv_prog_ac_ct_CC="cc" | |
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1545 break 2 | |
1546 fi | |
1547 done | |
1548 done | |
1549 | |
1550 fi | |
1551 fi | |
1552 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1553 if test -n "$ac_ct_CC"; then | |
1554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1555 echo "${ECHO_T}$ac_ct_CC" >&6 | |
1556 else | |
1557 echo "$as_me:$LINENO: result: no" >&5 | |
1558 echo "${ECHO_T}no" >&6 | |
1559 fi | |
1560 | |
1561 CC=$ac_ct_CC | |
1562 else | |
1563 CC="$ac_cv_prog_CC" | |
1564 fi | |
1565 | |
1566 fi | |
699 if test -z "$CC"; then | 1567 if test -z "$CC"; then |
700 # Extract the first word of "cc", so it can be a program name with args. | 1568 # Extract the first word of "cc", so it can be a program name with args. |
701 set dummy cc; ac_word=$2 | 1569 set dummy cc; ac_word=$2 |
702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1570 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
703 echo "configure:704: checking for $ac_word" >&5 | 1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
704 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1572 if test "${ac_cv_prog_CC+set}" = set; then |
705 echo $ac_n "(cached) $ac_c" 1>&6 | 1573 echo $ECHO_N "(cached) $ECHO_C" >&6 |
706 else | 1574 else |
707 if test -n "$CC"; then | 1575 if test -n "$CC"; then |
708 ac_cv_prog_CC="$CC" # Let the user override the test. | 1576 ac_cv_prog_CC="$CC" # Let the user override the test. |
709 else | 1577 else |
710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
711 ac_prog_rejected=no | 1578 ac_prog_rejected=no |
712 ac_dummy="$PATH" | 1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
713 for ac_dir in $ac_dummy; do | 1580 for as_dir in $PATH |
714 test -z "$ac_dir" && ac_dir=. | 1581 do |
715 if test -f $ac_dir/$ac_word; then | 1582 IFS=$as_save_IFS |
716 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | 1583 test -z "$as_dir" && as_dir=. |
717 ac_prog_rejected=yes | 1584 for ac_exec_ext in '' $ac_executable_extensions; do |
718 continue | 1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
719 fi | 1586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
720 ac_cv_prog_CC="cc" | 1587 ac_prog_rejected=yes |
721 break | 1588 continue |
722 fi | 1589 fi |
723 done | 1590 ac_cv_prog_CC="cc" |
724 IFS="$ac_save_ifs" | 1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1592 break 2 | |
1593 fi | |
1594 done | |
1595 done | |
1596 | |
725 if test $ac_prog_rejected = yes; then | 1597 if test $ac_prog_rejected = yes; then |
726 # We found a bogon in the path, so make sure we never use it. | 1598 # We found a bogon in the path, so make sure we never use it. |
727 set dummy $ac_cv_prog_CC | 1599 set dummy $ac_cv_prog_CC |
728 shift | 1600 shift |
729 if test $# -gt 0; then | 1601 if test $# != 0; then |
730 # We chose a different compiler from the bogus one. | 1602 # We chose a different compiler from the bogus one. |
731 # However, it has the same basename, so the bogon will be chosen | 1603 # However, it has the same basename, so the bogon will be chosen |
732 # first if we set CC to just the basename; use the full file name. | 1604 # first if we set CC to just the basename; use the full file name. |
733 shift | 1605 shift |
734 set dummy "$ac_dir/$ac_word" "$@" | 1606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
735 shift | |
736 ac_cv_prog_CC="$@" | |
737 fi | 1607 fi |
738 fi | 1608 fi |
739 fi | 1609 fi |
740 fi | 1610 fi |
741 CC="$ac_cv_prog_CC" | 1611 CC=$ac_cv_prog_CC |
742 if test -n "$CC"; then | 1612 if test -n "$CC"; then |
743 echo "$ac_t""$CC" 1>&6 | 1613 echo "$as_me:$LINENO: result: $CC" >&5 |
744 else | 1614 echo "${ECHO_T}$CC" >&6 |
745 echo "$ac_t""no" 1>&6 | 1615 else |
746 fi | 1616 echo "$as_me:$LINENO: result: no" >&5 |
747 | 1617 echo "${ECHO_T}no" >&6 |
748 if test -z "$CC"; then | 1618 fi |
749 case "`uname -s`" in | 1619 |
750 *win32* | *WIN32*) | 1620 fi |
751 # Extract the first word of "cl", so it can be a program name with args. | 1621 if test -z "$CC"; then |
752 set dummy cl; ac_word=$2 | 1622 if test -n "$ac_tool_prefix"; then |
753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1623 for ac_prog in cl |
754 echo "configure:755: checking for $ac_word" >&5 | 1624 do |
755 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
756 echo $ac_n "(cached) $ac_c" 1>&6 | 1626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1629 if test "${ac_cv_prog_CC+set}" = set; then | |
1630 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
757 else | 1631 else |
758 if test -n "$CC"; then | 1632 if test -n "$CC"; then |
759 ac_cv_prog_CC="$CC" # Let the user override the test. | 1633 ac_cv_prog_CC="$CC" # Let the user override the test. |
760 else | 1634 else |
761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
762 ac_dummy="$PATH" | 1636 for as_dir in $PATH |
763 for ac_dir in $ac_dummy; do | 1637 do |
764 test -z "$ac_dir" && ac_dir=. | 1638 IFS=$as_save_IFS |
765 if test -f $ac_dir/$ac_word; then | 1639 test -z "$as_dir" && as_dir=. |
766 ac_cv_prog_CC="cl" | 1640 for ac_exec_ext in '' $ac_executable_extensions; do |
767 break | 1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1644 break 2 | |
1645 fi | |
1646 done | |
1647 done | |
1648 | |
1649 fi | |
1650 fi | |
1651 CC=$ac_cv_prog_CC | |
1652 if test -n "$CC"; then | |
1653 echo "$as_me:$LINENO: result: $CC" >&5 | |
1654 echo "${ECHO_T}$CC" >&6 | |
1655 else | |
1656 echo "$as_me:$LINENO: result: no" >&5 | |
1657 echo "${ECHO_T}no" >&6 | |
1658 fi | |
1659 | |
1660 test -n "$CC" && break | |
1661 done | |
1662 fi | |
1663 if test -z "$CC"; then | |
1664 ac_ct_CC=$CC | |
1665 for ac_prog in cl | |
1666 do | |
1667 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1668 set dummy $ac_prog; ac_word=$2 | |
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1672 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1673 else | |
1674 if test -n "$ac_ct_CC"; then | |
1675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1676 else | |
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1678 for as_dir in $PATH | |
1679 do | |
1680 IFS=$as_save_IFS | |
1681 test -z "$as_dir" && as_dir=. | |
1682 for ac_exec_ext in '' $ac_executable_extensions; do | |
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1684 ac_cv_prog_ac_ct_CC="$ac_prog" | |
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1686 break 2 | |
1687 fi | |
1688 done | |
1689 done | |
1690 | |
1691 fi | |
1692 fi | |
1693 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1694 if test -n "$ac_ct_CC"; then | |
1695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1696 echo "${ECHO_T}$ac_ct_CC" >&6 | |
1697 else | |
1698 echo "$as_me:$LINENO: result: no" >&5 | |
1699 echo "${ECHO_T}no" >&6 | |
1700 fi | |
1701 | |
1702 test -n "$ac_ct_CC" && break | |
1703 done | |
1704 | |
1705 CC=$ac_ct_CC | |
1706 fi | |
1707 | |
1708 fi | |
1709 | |
1710 | |
1711 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1712 See \`config.log' for more details." >&5 | |
1713 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1714 See \`config.log' for more details." >&2;} | |
1715 { (exit 1); exit 1; }; } | |
1716 | |
1717 # Provide some information about the compiler. | |
1718 echo "$as_me:$LINENO:" \ | |
1719 "checking for C compiler version" >&5 | |
1720 ac_compiler=`set X $ac_compile; echo $2` | |
1721 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1722 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1723 ac_status=$? | |
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1725 (exit $ac_status); } | |
1726 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1727 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1728 ac_status=$? | |
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1730 (exit $ac_status); } | |
1731 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1732 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1733 ac_status=$? | |
1734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1735 (exit $ac_status); } | |
1736 | |
1737 cat >conftest.$ac_ext <<_ACEOF | |
1738 /* confdefs.h. */ | |
1739 _ACEOF | |
1740 cat confdefs.h >>conftest.$ac_ext | |
1741 cat >>conftest.$ac_ext <<_ACEOF | |
1742 /* end confdefs.h. */ | |
1743 | |
1744 int | |
1745 main () | |
1746 { | |
1747 | |
1748 ; | |
1749 return 0; | |
1750 } | |
1751 _ACEOF | |
1752 ac_clean_files_save=$ac_clean_files | |
1753 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1754 # Try to create an executable without -o first, disregard a.out. | |
1755 # It will help us diagnose broken compilers, and finding out an intuition | |
1756 # of exeext. | |
1757 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1758 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1759 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1760 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1761 (eval $ac_link_default) 2>&5 | |
1762 ac_status=$? | |
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1764 (exit $ac_status); }; then | |
1765 # Find the output, starting from the most likely. This scheme is | |
1766 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1767 # resort. | |
1768 | |
1769 # Be careful to initialize this variable, since it used to be cached. | |
1770 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1771 ac_cv_exeext= | |
1772 # b.out is created by i960 compilers. | |
1773 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1774 do | |
1775 test -f "$ac_file" || continue | |
1776 case $ac_file in | |
1777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1778 ;; | |
1779 conftest.$ac_ext ) | |
1780 # This is the source file. | |
1781 ;; | |
1782 [ab].out ) | |
1783 # We found the default executable, but exeext='' is most | |
1784 # certainly right. | |
1785 break;; | |
1786 *.* ) | |
1787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1788 # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1789 # but it would be cool to find out if it's true. Does anybody | |
1790 # maintain Libtool? --akim. | |
1791 export ac_cv_exeext | |
1792 break;; | |
1793 * ) | |
1794 break;; | |
1795 esac | |
1796 done | |
1797 else | |
1798 echo "$as_me: failed program was:" >&5 | |
1799 sed 's/^/| /' conftest.$ac_ext >&5 | |
1800 | |
1801 { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1802 See \`config.log' for more details." >&5 | |
1803 echo "$as_me: error: C compiler cannot create executables | |
1804 See \`config.log' for more details." >&2;} | |
1805 { (exit 77); exit 77; }; } | |
1806 fi | |
1807 | |
1808 ac_exeext=$ac_cv_exeext | |
1809 echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1810 echo "${ECHO_T}$ac_file" >&6 | |
1811 | |
1812 # Check the compiler produces executables we can run. If not, either | |
1813 # the compiler is broken, or we cross compile. | |
1814 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1815 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1816 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1817 # If not cross compiling, check that we can run a simple program. | |
1818 if test "$cross_compiling" != yes; then | |
1819 if { ac_try='./$ac_file' | |
1820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1821 (eval $ac_try) 2>&5 | |
1822 ac_status=$? | |
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1824 (exit $ac_status); }; }; then | |
1825 cross_compiling=no | |
1826 else | |
1827 if test "$cross_compiling" = maybe; then | |
1828 cross_compiling=yes | |
1829 else | |
1830 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1831 If you meant to cross compile, use \`--host'. | |
1832 See \`config.log' for more details." >&5 | |
1833 echo "$as_me: error: cannot run C compiled programs. | |
1834 If you meant to cross compile, use \`--host'. | |
1835 See \`config.log' for more details." >&2;} | |
1836 { (exit 1); exit 1; }; } | |
768 fi | 1837 fi |
769 done | |
770 IFS="$ac_save_ifs" | |
771 fi | |
772 fi | |
773 CC="$ac_cv_prog_CC" | |
774 if test -n "$CC"; then | |
775 echo "$ac_t""$CC" 1>&6 | |
776 else | |
777 echo "$ac_t""no" 1>&6 | |
778 fi | |
779 ;; | |
780 esac | |
781 fi | 1838 fi |
782 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 1839 fi |
783 fi | 1840 echo "$as_me:$LINENO: result: yes" >&5 |
784 | 1841 echo "${ECHO_T}yes" >&6 |
785 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 1842 |
786 echo "configure:787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 1843 rm -f a.out a.exe conftest$ac_cv_exeext b.out |
787 | 1844 ac_clean_files=$ac_clean_files_save |
788 ac_ext=c | 1845 # Check the compiler produces executables we can run. If not, either |
789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 1846 # the compiler is broken, or we cross compile. |
790 ac_cpp='$CPP $CPPFLAGS' | 1847 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 1848 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 1849 echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
793 cross_compiling=$ac_cv_prog_cc_cross | 1850 echo "${ECHO_T}$cross_compiling" >&6 |
794 | 1851 |
795 cat > conftest.$ac_ext << EOF | 1852 echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
796 | 1853 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
797 #line 798 "configure" | 1854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
798 #include "confdefs.h" | 1855 (eval $ac_link) 2>&5 |
799 | 1856 ac_status=$? |
800 main(){return(0);} | 1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
801 EOF | 1858 (exit $ac_status); }; then |
802 if { (eval echo configure:803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1859 # If both `conftest.exe' and `conftest' are `present' (well, observable) |
803 ac_cv_prog_cc_works=yes | 1860 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
804 # If we can't run a trivial program, we are probably using a cross compiler. | 1861 # work properly (i.e., refer to `conftest.exe'), while it won't with |
805 if (./conftest; exit) 2>/dev/null; then | 1862 # `rm'. |
806 ac_cv_prog_cc_cross=no | 1863 for ac_file in conftest.exe conftest conftest.*; do |
807 else | 1864 test -f "$ac_file" || continue |
808 ac_cv_prog_cc_cross=yes | 1865 case $ac_file in |
809 fi | 1866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
810 else | 1867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
811 echo "configure: failed program was:" >&5 | 1868 export ac_cv_exeext |
812 cat conftest.$ac_ext >&5 | 1869 break;; |
813 ac_cv_prog_cc_works=no | 1870 * ) break;; |
814 fi | 1871 esac |
815 rm -fr conftest* | 1872 done |
816 ac_ext=c | 1873 else |
817 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
818 ac_cpp='$CPP $CPPFLAGS' | 1875 See \`config.log' for more details." >&5 |
819 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 1876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
820 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 1877 See \`config.log' for more details." >&2;} |
821 cross_compiling=$ac_cv_prog_cc_cross | 1878 { (exit 1); exit 1; }; } |
822 | 1879 fi |
823 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 1880 |
824 if test $ac_cv_prog_cc_works = no; then | 1881 rm -f conftest$ac_cv_exeext |
825 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 1882 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
826 fi | 1883 echo "${ECHO_T}$ac_cv_exeext" >&6 |
827 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 1884 |
828 echo "configure:829: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 1885 rm -f conftest.$ac_ext |
829 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 1886 EXEEXT=$ac_cv_exeext |
830 cross_compiling=$ac_cv_prog_cc_cross | 1887 ac_exeext=$EXEEXT |
831 | 1888 echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
832 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 1889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
833 echo "configure:834: checking whether we are using GNU C" >&5 | 1890 if test "${ac_cv_objext+set}" = set; then |
834 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 1891 echo $ECHO_N "(cached) $ECHO_C" >&6 |
835 echo $ac_n "(cached) $ac_c" 1>&6 | 1892 else |
836 else | 1893 cat >conftest.$ac_ext <<_ACEOF |
837 cat > conftest.c <<EOF | 1894 /* confdefs.h. */ |
838 #ifdef __GNUC__ | 1895 _ACEOF |
839 yes; | 1896 cat confdefs.h >>conftest.$ac_ext |
1897 cat >>conftest.$ac_ext <<_ACEOF | |
1898 /* end confdefs.h. */ | |
1899 | |
1900 int | |
1901 main () | |
1902 { | |
1903 | |
1904 ; | |
1905 return 0; | |
1906 } | |
1907 _ACEOF | |
1908 rm -f conftest.o conftest.obj | |
1909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1910 (eval $ac_compile) 2>&5 | |
1911 ac_status=$? | |
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1913 (exit $ac_status); }; then | |
1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1915 case $ac_file in | |
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1918 break;; | |
1919 esac | |
1920 done | |
1921 else | |
1922 echo "$as_me: failed program was:" >&5 | |
1923 sed 's/^/| /' conftest.$ac_ext >&5 | |
1924 | |
1925 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1926 See \`config.log' for more details." >&5 | |
1927 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1928 See \`config.log' for more details." >&2;} | |
1929 { (exit 1); exit 1; }; } | |
1930 fi | |
1931 | |
1932 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1933 fi | |
1934 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1935 echo "${ECHO_T}$ac_cv_objext" >&6 | |
1936 OBJEXT=$ac_cv_objext | |
1937 ac_objext=$OBJEXT | |
1938 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1939 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1940 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1941 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1942 else | |
1943 cat >conftest.$ac_ext <<_ACEOF | |
1944 /* confdefs.h. */ | |
1945 _ACEOF | |
1946 cat confdefs.h >>conftest.$ac_ext | |
1947 cat >>conftest.$ac_ext <<_ACEOF | |
1948 /* end confdefs.h. */ | |
1949 | |
1950 int | |
1951 main () | |
1952 { | |
1953 #ifndef __GNUC__ | |
1954 choke me | |
840 #endif | 1955 #endif |
841 EOF | 1956 |
842 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 1957 ; |
843 ac_cv_prog_gcc=yes | 1958 return 0; |
844 else | 1959 } |
845 ac_cv_prog_gcc=no | 1960 _ACEOF |
846 fi | 1961 rm -f conftest.$ac_objext |
847 fi | 1962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
848 | 1963 (eval $ac_compile) 2>conftest.er1 |
849 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 1964 ac_status=$? |
850 | 1965 grep -v '^ *+' conftest.er1 >conftest.err |
851 if test $ac_cv_prog_gcc = yes; then | 1966 rm -f conftest.er1 |
852 GCC=yes | 1967 cat conftest.err >&5 |
853 else | 1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
854 GCC= | 1969 (exit $ac_status); } && |
855 fi | 1970 { ac_try='test -z "$ac_c_werror_flag" |
856 | 1971 || test ! -s conftest.err' |
857 ac_test_CFLAGS="${CFLAGS+set}" | 1972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
858 ac_save_CFLAGS="$CFLAGS" | 1973 (eval $ac_try) 2>&5 |
859 CFLAGS= | 1974 ac_status=$? |
860 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
861 echo "configure:862: checking whether ${CC-cc} accepts -g" >&5 | 1976 (exit $ac_status); }; } && |
862 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 1977 { ac_try='test -s conftest.$ac_objext' |
863 echo $ac_n "(cached) $ac_c" 1>&6 | 1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
864 else | 1979 (eval $ac_try) 2>&5 |
865 echo 'void f(){}' > conftest.c | 1980 ac_status=$? |
866 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1982 (exit $ac_status); }; }; then | |
1983 ac_compiler_gnu=yes | |
1984 else | |
1985 echo "$as_me: failed program was:" >&5 | |
1986 sed 's/^/| /' conftest.$ac_ext >&5 | |
1987 | |
1988 ac_compiler_gnu=no | |
1989 fi | |
1990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1991 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1992 | |
1993 fi | |
1994 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
1995 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1996 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1997 ac_test_CFLAGS=${CFLAGS+set} | |
1998 ac_save_CFLAGS=$CFLAGS | |
1999 CFLAGS="-g" | |
2000 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2001 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2002 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2003 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2004 else | |
2005 cat >conftest.$ac_ext <<_ACEOF | |
2006 /* confdefs.h. */ | |
2007 _ACEOF | |
2008 cat confdefs.h >>conftest.$ac_ext | |
2009 cat >>conftest.$ac_ext <<_ACEOF | |
2010 /* end confdefs.h. */ | |
2011 | |
2012 int | |
2013 main () | |
2014 { | |
2015 | |
2016 ; | |
2017 return 0; | |
2018 } | |
2019 _ACEOF | |
2020 rm -f conftest.$ac_objext | |
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2022 (eval $ac_compile) 2>conftest.er1 | |
2023 ac_status=$? | |
2024 grep -v '^ *+' conftest.er1 >conftest.err | |
2025 rm -f conftest.er1 | |
2026 cat conftest.err >&5 | |
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2028 (exit $ac_status); } && | |
2029 { ac_try='test -z "$ac_c_werror_flag" | |
2030 || test ! -s conftest.err' | |
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2032 (eval $ac_try) 2>&5 | |
2033 ac_status=$? | |
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2035 (exit $ac_status); }; } && | |
2036 { ac_try='test -s conftest.$ac_objext' | |
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2038 (eval $ac_try) 2>&5 | |
2039 ac_status=$? | |
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2041 (exit $ac_status); }; }; then | |
867 ac_cv_prog_cc_g=yes | 2042 ac_cv_prog_cc_g=yes |
868 else | 2043 else |
869 ac_cv_prog_cc_g=no | 2044 echo "$as_me: failed program was:" >&5 |
870 fi | 2045 sed 's/^/| /' conftest.$ac_ext >&5 |
871 rm -f conftest* | 2046 |
872 | 2047 ac_cv_prog_cc_g=no |
873 fi | 2048 fi |
874 | 2049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
875 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 2050 fi |
2051 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2052 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
876 if test "$ac_test_CFLAGS" = set; then | 2053 if test "$ac_test_CFLAGS" = set; then |
877 CFLAGS="$ac_save_CFLAGS" | 2054 CFLAGS=$ac_save_CFLAGS |
878 elif test $ac_cv_prog_cc_g = yes; then | 2055 elif test $ac_cv_prog_cc_g = yes; then |
879 if test "$GCC" = yes; then | 2056 if test "$GCC" = yes; then |
880 CFLAGS="-g -O2" | 2057 CFLAGS="-g -O2" |
881 else | 2058 else |
882 CFLAGS="-g" | 2059 CFLAGS="-g" |
886 CFLAGS="-O2" | 2063 CFLAGS="-O2" |
887 else | 2064 else |
888 CFLAGS= | 2065 CFLAGS= |
889 fi | 2066 fi |
890 fi | 2067 fi |
891 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 2068 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
892 echo "configure:893: checking how to run the C preprocessor" >&5 | 2069 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2070 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2071 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2072 else | |
2073 ac_cv_prog_cc_stdc=no | |
2074 ac_save_CC=$CC | |
2075 cat >conftest.$ac_ext <<_ACEOF | |
2076 /* confdefs.h. */ | |
2077 _ACEOF | |
2078 cat confdefs.h >>conftest.$ac_ext | |
2079 cat >>conftest.$ac_ext <<_ACEOF | |
2080 /* end confdefs.h. */ | |
2081 #include <stdarg.h> | |
2082 #include <stdio.h> | |
2083 #include <sys/types.h> | |
2084 #include <sys/stat.h> | |
2085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2086 struct buf { int x; }; | |
2087 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2088 static char *e (p, i) | |
2089 char **p; | |
2090 int i; | |
2091 { | |
2092 return p[i]; | |
2093 } | |
2094 static char *f (char * (*g) (char **, int), char **p, ...) | |
2095 { | |
2096 char *s; | |
2097 va_list v; | |
2098 va_start (v,p); | |
2099 s = g (p, va_arg (v,int)); | |
2100 va_end (v); | |
2101 return s; | |
2102 } | |
2103 | |
2104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2105 function prototypes and stuff, but not '\xHH' hex character constants. | |
2106 These don't provoke an error unfortunately, instead are silently treated | |
2107 as 'x'. The following induces an error, until -std1 is added to get | |
2108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2109 array size at least. It's necessary to write '\x00'==0 to get something | |
2110 that's true only with -std1. */ | |
2111 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2112 | |
2113 int test (int i, double x); | |
2114 struct s1 {int (*f) (int a);}; | |
2115 struct s2 {int (*f) (double a);}; | |
2116 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2117 int argc; | |
2118 char **argv; | |
2119 int | |
2120 main () | |
2121 { | |
2122 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2123 ; | |
2124 return 0; | |
2125 } | |
2126 _ACEOF | |
2127 # Don't try gcc -ansi; that turns off useful extensions and | |
2128 # breaks some systems' header files. | |
2129 # AIX -qlanglvl=ansi | |
2130 # Ultrix and OSF/1 -std1 | |
2131 # HP-UX 10.20 and later -Ae | |
2132 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2133 # SVR4 -Xc -D__EXTENSIONS__ | |
2134 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2135 do | |
2136 CC="$ac_save_CC $ac_arg" | |
2137 rm -f conftest.$ac_objext | |
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2139 (eval $ac_compile) 2>conftest.er1 | |
2140 ac_status=$? | |
2141 grep -v '^ *+' conftest.er1 >conftest.err | |
2142 rm -f conftest.er1 | |
2143 cat conftest.err >&5 | |
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2145 (exit $ac_status); } && | |
2146 { ac_try='test -z "$ac_c_werror_flag" | |
2147 || test ! -s conftest.err' | |
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2149 (eval $ac_try) 2>&5 | |
2150 ac_status=$? | |
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2152 (exit $ac_status); }; } && | |
2153 { ac_try='test -s conftest.$ac_objext' | |
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2155 (eval $ac_try) 2>&5 | |
2156 ac_status=$? | |
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2158 (exit $ac_status); }; }; then | |
2159 ac_cv_prog_cc_stdc=$ac_arg | |
2160 break | |
2161 else | |
2162 echo "$as_me: failed program was:" >&5 | |
2163 sed 's/^/| /' conftest.$ac_ext >&5 | |
2164 | |
2165 fi | |
2166 rm -f conftest.err conftest.$ac_objext | |
2167 done | |
2168 rm -f conftest.$ac_ext conftest.$ac_objext | |
2169 CC=$ac_save_CC | |
2170 | |
2171 fi | |
2172 | |
2173 case "x$ac_cv_prog_cc_stdc" in | |
2174 x|xno) | |
2175 echo "$as_me:$LINENO: result: none needed" >&5 | |
2176 echo "${ECHO_T}none needed" >&6 ;; | |
2177 *) | |
2178 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2179 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2180 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2181 esac | |
2182 | |
2183 # Some people use a C++ compiler to compile C. Since we use `exit', | |
2184 # in C++ we need to declare it. In case someone uses the same compiler | |
2185 # for both compiling C and C++ we need to have the C++ compiler decide | |
2186 # the declaration of exit, since it's the most demanding environment. | |
2187 cat >conftest.$ac_ext <<_ACEOF | |
2188 #ifndef __cplusplus | |
2189 choke me | |
2190 #endif | |
2191 _ACEOF | |
2192 rm -f conftest.$ac_objext | |
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2194 (eval $ac_compile) 2>conftest.er1 | |
2195 ac_status=$? | |
2196 grep -v '^ *+' conftest.er1 >conftest.err | |
2197 rm -f conftest.er1 | |
2198 cat conftest.err >&5 | |
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2200 (exit $ac_status); } && | |
2201 { ac_try='test -z "$ac_c_werror_flag" | |
2202 || test ! -s conftest.err' | |
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2204 (eval $ac_try) 2>&5 | |
2205 ac_status=$? | |
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2207 (exit $ac_status); }; } && | |
2208 { ac_try='test -s conftest.$ac_objext' | |
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2210 (eval $ac_try) 2>&5 | |
2211 ac_status=$? | |
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2213 (exit $ac_status); }; }; then | |
2214 for ac_declaration in \ | |
2215 '' \ | |
2216 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2217 'extern "C" void std::exit (int); using std::exit;' \ | |
2218 'extern "C" void exit (int) throw ();' \ | |
2219 'extern "C" void exit (int);' \ | |
2220 'void exit (int);' | |
2221 do | |
2222 cat >conftest.$ac_ext <<_ACEOF | |
2223 /* confdefs.h. */ | |
2224 _ACEOF | |
2225 cat confdefs.h >>conftest.$ac_ext | |
2226 cat >>conftest.$ac_ext <<_ACEOF | |
2227 /* end confdefs.h. */ | |
2228 $ac_declaration | |
2229 #include <stdlib.h> | |
2230 int | |
2231 main () | |
2232 { | |
2233 exit (42); | |
2234 ; | |
2235 return 0; | |
2236 } | |
2237 _ACEOF | |
2238 rm -f conftest.$ac_objext | |
2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2240 (eval $ac_compile) 2>conftest.er1 | |
2241 ac_status=$? | |
2242 grep -v '^ *+' conftest.er1 >conftest.err | |
2243 rm -f conftest.er1 | |
2244 cat conftest.err >&5 | |
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2246 (exit $ac_status); } && | |
2247 { ac_try='test -z "$ac_c_werror_flag" | |
2248 || test ! -s conftest.err' | |
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2250 (eval $ac_try) 2>&5 | |
2251 ac_status=$? | |
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2253 (exit $ac_status); }; } && | |
2254 { ac_try='test -s conftest.$ac_objext' | |
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2256 (eval $ac_try) 2>&5 | |
2257 ac_status=$? | |
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2259 (exit $ac_status); }; }; then | |
2260 : | |
2261 else | |
2262 echo "$as_me: failed program was:" >&5 | |
2263 sed 's/^/| /' conftest.$ac_ext >&5 | |
2264 | |
2265 continue | |
2266 fi | |
2267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2268 cat >conftest.$ac_ext <<_ACEOF | |
2269 /* confdefs.h. */ | |
2270 _ACEOF | |
2271 cat confdefs.h >>conftest.$ac_ext | |
2272 cat >>conftest.$ac_ext <<_ACEOF | |
2273 /* end confdefs.h. */ | |
2274 $ac_declaration | |
2275 int | |
2276 main () | |
2277 { | |
2278 exit (42); | |
2279 ; | |
2280 return 0; | |
2281 } | |
2282 _ACEOF | |
2283 rm -f conftest.$ac_objext | |
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2285 (eval $ac_compile) 2>conftest.er1 | |
2286 ac_status=$? | |
2287 grep -v '^ *+' conftest.er1 >conftest.err | |
2288 rm -f conftest.er1 | |
2289 cat conftest.err >&5 | |
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2291 (exit $ac_status); } && | |
2292 { ac_try='test -z "$ac_c_werror_flag" | |
2293 || test ! -s conftest.err' | |
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2295 (eval $ac_try) 2>&5 | |
2296 ac_status=$? | |
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2298 (exit $ac_status); }; } && | |
2299 { ac_try='test -s conftest.$ac_objext' | |
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2301 (eval $ac_try) 2>&5 | |
2302 ac_status=$? | |
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2304 (exit $ac_status); }; }; then | |
2305 break | |
2306 else | |
2307 echo "$as_me: failed program was:" >&5 | |
2308 sed 's/^/| /' conftest.$ac_ext >&5 | |
2309 | |
2310 fi | |
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2312 done | |
2313 rm -f conftest* | |
2314 if test -n "$ac_declaration"; then | |
2315 echo '#ifdef __cplusplus' >>confdefs.h | |
2316 echo $ac_declaration >>confdefs.h | |
2317 echo '#endif' >>confdefs.h | |
2318 fi | |
2319 | |
2320 else | |
2321 echo "$as_me: failed program was:" >&5 | |
2322 sed 's/^/| /' conftest.$ac_ext >&5 | |
2323 | |
2324 fi | |
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2326 ac_ext=c | |
2327 ac_cpp='$CPP $CPPFLAGS' | |
2328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2330 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2331 ac_ext=c | |
2332 ac_cpp='$CPP $CPPFLAGS' | |
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2336 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2337 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
893 # On Suns, sometimes $CPP names a directory. | 2338 # On Suns, sometimes $CPP names a directory. |
894 if test -n "$CPP" && test -d "$CPP"; then | 2339 if test -n "$CPP" && test -d "$CPP"; then |
895 CPP= | 2340 CPP= |
896 fi | 2341 fi |
897 if test -z "$CPP"; then | 2342 if test -z "$CPP"; then |
898 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 2343 if test "${ac_cv_prog_CPP+set}" = set; then |
899 echo $ac_n "(cached) $ac_c" 1>&6 | 2344 echo $ECHO_N "(cached) $ECHO_C" >&6 |
900 else | 2345 else |
901 # This must be in double quotes, not single quotes, because CPP may get | 2346 # Double quotes because CPP needs to be expanded |
902 # substituted into the Makefile and "${CC-cc}" will confuse make. | 2347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
903 CPP="${CC-cc} -E" | 2348 do |
2349 ac_preproc_ok=false | |
2350 for ac_c_preproc_warn_flag in '' yes | |
2351 do | |
2352 # Use a header file that comes with gcc, so configuring glibc | |
2353 # with a fresh cross-compiler works. | |
2354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2355 # <limits.h> exists even on freestanding compilers. | |
904 # On the NeXT, cc -E runs the code through the compiler's parser, | 2356 # On the NeXT, cc -E runs the code through the compiler's parser, |
905 # not just through cpp. | 2357 # not just through cpp. "Syntax error" is here to catch this case. |
906 cat > conftest.$ac_ext <<EOF | 2358 cat >conftest.$ac_ext <<_ACEOF |
907 #line 908 "configure" | 2359 /* confdefs.h. */ |
908 #include "confdefs.h" | 2360 _ACEOF |
909 #include <assert.h> | 2361 cat confdefs.h >>conftest.$ac_ext |
910 Syntax Error | 2362 cat >>conftest.$ac_ext <<_ACEOF |
911 EOF | 2363 /* end confdefs.h. */ |
912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2364 #ifdef __STDC__ |
913 { (eval echo configure:914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2365 # include <limits.h> |
914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2366 #else |
915 if test -z "$ac_err"; then | 2367 # include <assert.h> |
2368 #endif | |
2369 Syntax error | |
2370 _ACEOF | |
2371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2373 ac_status=$? | |
2374 grep -v '^ *+' conftest.er1 >conftest.err | |
2375 rm -f conftest.er1 | |
2376 cat conftest.err >&5 | |
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2378 (exit $ac_status); } >/dev/null; then | |
2379 if test -s conftest.err; then | |
2380 ac_cpp_err=$ac_c_preproc_warn_flag | |
2381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2382 else | |
2383 ac_cpp_err= | |
2384 fi | |
2385 else | |
2386 ac_cpp_err=yes | |
2387 fi | |
2388 if test -z "$ac_cpp_err"; then | |
916 : | 2389 : |
917 else | 2390 else |
918 echo "$ac_err" >&5 | 2391 echo "$as_me: failed program was:" >&5 |
919 echo "configure: failed program was:" >&5 | 2392 sed 's/^/| /' conftest.$ac_ext >&5 |
920 cat conftest.$ac_ext >&5 | 2393 |
921 rm -rf conftest* | 2394 # Broken: fails on valid input. |
922 CPP="${CC-cc} -E -traditional-cpp" | 2395 continue |
923 cat > conftest.$ac_ext <<EOF | 2396 fi |
924 #line 925 "configure" | 2397 rm -f conftest.err conftest.$ac_ext |
925 #include "confdefs.h" | 2398 |
926 #include <assert.h> | 2399 # OK, works on sane cases. Now check whether non-existent headers |
927 Syntax Error | 2400 # can be detected and how. |
928 EOF | 2401 cat >conftest.$ac_ext <<_ACEOF |
929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2402 /* confdefs.h. */ |
930 { (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2403 _ACEOF |
931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2404 cat confdefs.h >>conftest.$ac_ext |
932 if test -z "$ac_err"; then | 2405 cat >>conftest.$ac_ext <<_ACEOF |
2406 /* end confdefs.h. */ | |
2407 #include <ac_nonexistent.h> | |
2408 _ACEOF | |
2409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2411 ac_status=$? | |
2412 grep -v '^ *+' conftest.er1 >conftest.err | |
2413 rm -f conftest.er1 | |
2414 cat conftest.err >&5 | |
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2416 (exit $ac_status); } >/dev/null; then | |
2417 if test -s conftest.err; then | |
2418 ac_cpp_err=$ac_c_preproc_warn_flag | |
2419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2420 else | |
2421 ac_cpp_err= | |
2422 fi | |
2423 else | |
2424 ac_cpp_err=yes | |
2425 fi | |
2426 if test -z "$ac_cpp_err"; then | |
2427 # Broken: success on invalid input. | |
2428 continue | |
2429 else | |
2430 echo "$as_me: failed program was:" >&5 | |
2431 sed 's/^/| /' conftest.$ac_ext >&5 | |
2432 | |
2433 # Passes both tests. | |
2434 ac_preproc_ok=: | |
2435 break | |
2436 fi | |
2437 rm -f conftest.err conftest.$ac_ext | |
2438 | |
2439 done | |
2440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2441 rm -f conftest.err conftest.$ac_ext | |
2442 if $ac_preproc_ok; then | |
2443 break | |
2444 fi | |
2445 | |
2446 done | |
2447 ac_cv_prog_CPP=$CPP | |
2448 | |
2449 fi | |
2450 CPP=$ac_cv_prog_CPP | |
2451 else | |
2452 ac_cv_prog_CPP=$CPP | |
2453 fi | |
2454 echo "$as_me:$LINENO: result: $CPP" >&5 | |
2455 echo "${ECHO_T}$CPP" >&6 | |
2456 ac_preproc_ok=false | |
2457 for ac_c_preproc_warn_flag in '' yes | |
2458 do | |
2459 # Use a header file that comes with gcc, so configuring glibc | |
2460 # with a fresh cross-compiler works. | |
2461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2462 # <limits.h> exists even on freestanding compilers. | |
2463 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2464 # not just through cpp. "Syntax error" is here to catch this case. | |
2465 cat >conftest.$ac_ext <<_ACEOF | |
2466 /* confdefs.h. */ | |
2467 _ACEOF | |
2468 cat confdefs.h >>conftest.$ac_ext | |
2469 cat >>conftest.$ac_ext <<_ACEOF | |
2470 /* end confdefs.h. */ | |
2471 #ifdef __STDC__ | |
2472 # include <limits.h> | |
2473 #else | |
2474 # include <assert.h> | |
2475 #endif | |
2476 Syntax error | |
2477 _ACEOF | |
2478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2480 ac_status=$? | |
2481 grep -v '^ *+' conftest.er1 >conftest.err | |
2482 rm -f conftest.er1 | |
2483 cat conftest.err >&5 | |
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2485 (exit $ac_status); } >/dev/null; then | |
2486 if test -s conftest.err; then | |
2487 ac_cpp_err=$ac_c_preproc_warn_flag | |
2488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2489 else | |
2490 ac_cpp_err= | |
2491 fi | |
2492 else | |
2493 ac_cpp_err=yes | |
2494 fi | |
2495 if test -z "$ac_cpp_err"; then | |
933 : | 2496 : |
934 else | 2497 else |
935 echo "$ac_err" >&5 | 2498 echo "$as_me: failed program was:" >&5 |
936 echo "configure: failed program was:" >&5 | 2499 sed 's/^/| /' conftest.$ac_ext >&5 |
937 cat conftest.$ac_ext >&5 | 2500 |
938 rm -rf conftest* | 2501 # Broken: fails on valid input. |
939 CPP="${CC-cc} -nologo -E" | 2502 continue |
940 cat > conftest.$ac_ext <<EOF | 2503 fi |
941 #line 942 "configure" | 2504 rm -f conftest.err conftest.$ac_ext |
942 #include "confdefs.h" | 2505 |
943 #include <assert.h> | 2506 # OK, works on sane cases. Now check whether non-existent headers |
944 Syntax Error | 2507 # can be detected and how. |
945 EOF | 2508 cat >conftest.$ac_ext <<_ACEOF |
946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2509 /* confdefs.h. */ |
947 { (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2510 _ACEOF |
948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2511 cat confdefs.h >>conftest.$ac_ext |
949 if test -z "$ac_err"; then | 2512 cat >>conftest.$ac_ext <<_ACEOF |
2513 /* end confdefs.h. */ | |
2514 #include <ac_nonexistent.h> | |
2515 _ACEOF | |
2516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2518 ac_status=$? | |
2519 grep -v '^ *+' conftest.er1 >conftest.err | |
2520 rm -f conftest.er1 | |
2521 cat conftest.err >&5 | |
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2523 (exit $ac_status); } >/dev/null; then | |
2524 if test -s conftest.err; then | |
2525 ac_cpp_err=$ac_c_preproc_warn_flag | |
2526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2527 else | |
2528 ac_cpp_err= | |
2529 fi | |
2530 else | |
2531 ac_cpp_err=yes | |
2532 fi | |
2533 if test -z "$ac_cpp_err"; then | |
2534 # Broken: success on invalid input. | |
2535 continue | |
2536 else | |
2537 echo "$as_me: failed program was:" >&5 | |
2538 sed 's/^/| /' conftest.$ac_ext >&5 | |
2539 | |
2540 # Passes both tests. | |
2541 ac_preproc_ok=: | |
2542 break | |
2543 fi | |
2544 rm -f conftest.err conftest.$ac_ext | |
2545 | |
2546 done | |
2547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2548 rm -f conftest.err conftest.$ac_ext | |
2549 if $ac_preproc_ok; then | |
950 : | 2550 : |
951 else | 2551 else |
952 echo "$ac_err" >&5 | 2552 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
953 echo "configure: failed program was:" >&5 | 2553 See \`config.log' for more details." >&5 |
954 cat conftest.$ac_ext >&5 | 2554 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
955 rm -rf conftest* | 2555 See \`config.log' for more details." >&2;} |
956 CPP=/lib/cpp | 2556 { (exit 1); exit 1; }; } |
2557 fi | |
2558 | |
2559 ac_ext=c | |
2560 ac_cpp='$CPP $CPPFLAGS' | |
2561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2563 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2564 | |
2565 | |
2566 echo "$as_me:$LINENO: checking for egrep" >&5 | |
2567 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2568 if test "${ac_cv_prog_egrep+set}" = set; then | |
2569 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2570 else | |
2571 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2572 then ac_cv_prog_egrep='grep -E' | |
2573 else ac_cv_prog_egrep='egrep' | |
2574 fi | |
2575 fi | |
2576 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
2577 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2578 EGREP=$ac_cv_prog_egrep | |
2579 | |
2580 | |
2581 cat >conftest.$ac_ext <<_ACEOF | |
2582 /* confdefs.h. */ | |
2583 _ACEOF | |
2584 cat confdefs.h >>conftest.$ac_ext | |
2585 cat >>conftest.$ac_ext <<_ACEOF | |
2586 /* end confdefs.h. */ | |
2587 | |
2588 _ACEOF | |
2589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2590 $EGREP "" >/dev/null 2>&1; then | |
2591 : | |
957 fi | 2592 fi |
958 rm -f conftest* | 2593 rm -f conftest* |
959 fi | 2594 echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
960 rm -f conftest* | 2595 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
961 fi | 2596 if test "${ac_cv_search_strerror+set}" = set; then |
962 rm -f conftest* | 2597 echo $ECHO_N "(cached) $ECHO_C" >&6 |
963 ac_cv_prog_CPP="$CPP" | 2598 else |
964 fi | 2599 ac_func_search_save_LIBS=$LIBS |
965 CPP="$ac_cv_prog_CPP" | 2600 ac_cv_search_strerror=no |
966 else | 2601 cat >conftest.$ac_ext <<_ACEOF |
967 ac_cv_prog_CPP="$CPP" | 2602 /* confdefs.h. */ |
968 fi | 2603 _ACEOF |
969 echo "$ac_t""$CPP" 1>&6 | 2604 cat confdefs.h >>conftest.$ac_ext |
970 cat > conftest.$ac_ext <<EOF | 2605 cat >>conftest.$ac_ext <<_ACEOF |
971 #line 972 "configure" | 2606 /* end confdefs.h. */ |
972 #include "confdefs.h" | 2607 |
973 | 2608 /* Override any gcc2 internal prototype to avoid an error. */ |
974 EOF | 2609 #ifdef __cplusplus |
975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2610 extern "C" |
976 egrep "" >/dev/null 2>&1; then | 2611 #endif |
977 : | 2612 /* We use char because int might match the return type of a gcc2 |
978 fi | 2613 builtin and then its argument prototype would still apply. */ |
979 rm -f conftest* | 2614 char strerror (); |
980 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | 2615 int |
981 echo "configure:982: checking for POSIXized ISC" >&5 | 2616 main () |
982 if test -d /etc/conf/kconfig.d && | 2617 { |
983 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | 2618 strerror (); |
984 then | 2619 ; |
985 echo "$ac_t""yes" 1>&6 | 2620 return 0; |
986 ISC=yes # If later tests want to check for ISC. | 2621 } |
987 cat >> confdefs.h <<\EOF | 2622 _ACEOF |
988 #define _POSIX_SOURCE 1 | 2623 rm -f conftest.$ac_objext conftest$ac_exeext |
989 EOF | 2624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
990 | 2625 (eval $ac_link) 2>conftest.er1 |
991 if test "$GCC" = yes; then | 2626 ac_status=$? |
992 CC="$CC -posix" | 2627 grep -v '^ *+' conftest.er1 >conftest.err |
993 else | 2628 rm -f conftest.er1 |
994 CC="$CC -Xp" | 2629 cat conftest.err >&5 |
995 fi | 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
996 else | 2631 (exit $ac_status); } && |
997 echo "$ac_t""no" 1>&6 | 2632 { ac_try='test -z "$ac_c_werror_flag" |
998 ISC= | 2633 || test ! -s conftest.err' |
999 fi | 2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1000 for ac_prog in mawk gawk nawk awk | 2635 (eval $ac_try) 2>&5 |
2636 ac_status=$? | |
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2638 (exit $ac_status); }; } && | |
2639 { ac_try='test -s conftest$ac_exeext' | |
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2641 (eval $ac_try) 2>&5 | |
2642 ac_status=$? | |
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2644 (exit $ac_status); }; }; then | |
2645 ac_cv_search_strerror="none required" | |
2646 else | |
2647 echo "$as_me: failed program was:" >&5 | |
2648 sed 's/^/| /' conftest.$ac_ext >&5 | |
2649 | |
2650 fi | |
2651 rm -f conftest.err conftest.$ac_objext \ | |
2652 conftest$ac_exeext conftest.$ac_ext | |
2653 if test "$ac_cv_search_strerror" = no; then | |
2654 for ac_lib in cposix; do | |
2655 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2656 cat >conftest.$ac_ext <<_ACEOF | |
2657 /* confdefs.h. */ | |
2658 _ACEOF | |
2659 cat confdefs.h >>conftest.$ac_ext | |
2660 cat >>conftest.$ac_ext <<_ACEOF | |
2661 /* end confdefs.h. */ | |
2662 | |
2663 /* Override any gcc2 internal prototype to avoid an error. */ | |
2664 #ifdef __cplusplus | |
2665 extern "C" | |
2666 #endif | |
2667 /* We use char because int might match the return type of a gcc2 | |
2668 builtin and then its argument prototype would still apply. */ | |
2669 char strerror (); | |
2670 int | |
2671 main () | |
2672 { | |
2673 strerror (); | |
2674 ; | |
2675 return 0; | |
2676 } | |
2677 _ACEOF | |
2678 rm -f conftest.$ac_objext conftest$ac_exeext | |
2679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2680 (eval $ac_link) 2>conftest.er1 | |
2681 ac_status=$? | |
2682 grep -v '^ *+' conftest.er1 >conftest.err | |
2683 rm -f conftest.er1 | |
2684 cat conftest.err >&5 | |
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2686 (exit $ac_status); } && | |
2687 { ac_try='test -z "$ac_c_werror_flag" | |
2688 || test ! -s conftest.err' | |
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2690 (eval $ac_try) 2>&5 | |
2691 ac_status=$? | |
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2693 (exit $ac_status); }; } && | |
2694 { ac_try='test -s conftest$ac_exeext' | |
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2696 (eval $ac_try) 2>&5 | |
2697 ac_status=$? | |
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2699 (exit $ac_status); }; }; then | |
2700 ac_cv_search_strerror="-l$ac_lib" | |
2701 break | |
2702 else | |
2703 echo "$as_me: failed program was:" >&5 | |
2704 sed 's/^/| /' conftest.$ac_ext >&5 | |
2705 | |
2706 fi | |
2707 rm -f conftest.err conftest.$ac_objext \ | |
2708 conftest$ac_exeext conftest.$ac_ext | |
2709 done | |
2710 fi | |
2711 LIBS=$ac_func_search_save_LIBS | |
2712 fi | |
2713 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2714 echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2715 if test "$ac_cv_search_strerror" != no; then | |
2716 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2717 | |
2718 fi | |
2719 for ac_prog in gawk mawk nawk awk | |
1001 do | 2720 do |
1002 # Extract the first word of "$ac_prog", so it can be a program name with args. | 2721 # Extract the first word of "$ac_prog", so it can be a program name with args. |
1003 set dummy $ac_prog; ac_word=$2 | 2722 set dummy $ac_prog; ac_word=$2 |
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2723 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1005 echo "configure:1006: checking for $ac_word" >&5 | 2724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1006 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then | 2725 if test "${ac_cv_prog_AWK+set}" = set; then |
1007 echo $ac_n "(cached) $ac_c" 1>&6 | 2726 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1008 else | 2727 else |
1009 if test -n "$AWK"; then | 2728 if test -n "$AWK"; then |
1010 ac_cv_prog_AWK="$AWK" # Let the user override the test. | 2729 ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1011 else | 2730 else |
1012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1013 ac_dummy="$PATH" | 2732 for as_dir in $PATH |
1014 for ac_dir in $ac_dummy; do | 2733 do |
1015 test -z "$ac_dir" && ac_dir=. | 2734 IFS=$as_save_IFS |
1016 if test -f $ac_dir/$ac_word; then | 2735 test -z "$as_dir" && as_dir=. |
1017 ac_cv_prog_AWK="$ac_prog" | 2736 for ac_exec_ext in '' $ac_executable_extensions; do |
1018 break | 2737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1019 fi | 2738 ac_cv_prog_AWK="$ac_prog" |
1020 done | 2739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1021 IFS="$ac_save_ifs" | 2740 break 2 |
1022 fi | 2741 fi |
1023 fi | 2742 done |
1024 AWK="$ac_cv_prog_AWK" | 2743 done |
2744 | |
2745 fi | |
2746 fi | |
2747 AWK=$ac_cv_prog_AWK | |
1025 if test -n "$AWK"; then | 2748 if test -n "$AWK"; then |
1026 echo "$ac_t""$AWK" 1>&6 | 2749 echo "$as_me:$LINENO: result: $AWK" >&5 |
1027 else | 2750 echo "${ECHO_T}$AWK" >&6 |
1028 echo "$ac_t""no" 1>&6 | 2751 else |
1029 fi | 2752 echo "$as_me:$LINENO: result: no" >&5 |
1030 | 2753 echo "${ECHO_T}no" >&6 |
1031 test -n "$AWK" && break | 2754 fi |
2755 | |
2756 test -n "$AWK" && break | |
1032 done | 2757 done |
1033 | 2758 |
1034 # Extract the first word of "strip", so it can be a program name with args. | 2759 # Extract the first word of "strip", so it can be a program name with args. |
1035 set dummy strip; ac_word=$2 | 2760 set dummy strip; ac_word=$2 |
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2761 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1037 echo "configure:1038: checking for $ac_word" >&5 | 2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1038 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 2763 if test "${ac_cv_prog_STRIP+set}" = set; then |
1039 echo $ac_n "(cached) $ac_c" 1>&6 | 2764 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1040 else | 2765 else |
1041 if test -n "$STRIP"; then | 2766 if test -n "$STRIP"; then |
1042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 2767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1043 else | 2768 else |
1044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1045 ac_dummy="$PATH" | 2770 for as_dir in $PATH |
1046 for ac_dir in $ac_dummy; do | 2771 do |
1047 test -z "$ac_dir" && ac_dir=. | 2772 IFS=$as_save_IFS |
1048 if test -f $ac_dir/$ac_word; then | 2773 test -z "$as_dir" && as_dir=. |
1049 ac_cv_prog_STRIP="strip" | 2774 for ac_exec_ext in '' $ac_executable_extensions; do |
1050 break | 2775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1051 fi | 2776 ac_cv_prog_STRIP="strip" |
1052 done | 2777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1053 IFS="$ac_save_ifs" | 2778 break 2 |
2779 fi | |
2780 done | |
2781 done | |
2782 | |
1054 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | 2783 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
1055 fi | 2784 fi |
1056 fi | 2785 fi |
1057 STRIP="$ac_cv_prog_STRIP" | 2786 STRIP=$ac_cv_prog_STRIP |
1058 if test -n "$STRIP"; then | 2787 if test -n "$STRIP"; then |
1059 echo "$ac_t""$STRIP" 1>&6 | 2788 echo "$as_me:$LINENO: result: $STRIP" >&5 |
1060 else | 2789 echo "${ECHO_T}$STRIP" >&6 |
1061 echo "$ac_t""no" 1>&6 | 2790 else |
1062 fi | 2791 echo "$as_me:$LINENO: result: no" >&5 |
1063 | 2792 echo "${ECHO_T}no" >&6 |
1064 | 2793 fi |
1065 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | 2794 |
1066 echo "configure:1067: checking for Cygwin environment" >&5 | 2795 |
1067 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | |
1068 echo $ac_n "(cached) $ac_c" 1>&6 | |
1069 else | |
1070 cat > conftest.$ac_ext <<EOF | |
1071 #line 1072 "configure" | |
1072 #include "confdefs.h" | |
1073 | |
1074 int main() { | |
1075 | |
1076 #ifndef __CYGWIN__ | |
1077 #define __CYGWIN__ __CYGWIN32__ | |
1078 #endif | |
1079 return __CYGWIN__; | |
1080 ; return 0; } | |
1081 EOF | |
1082 if { (eval echo configure:1083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1083 rm -rf conftest* | |
1084 ac_cv_cygwin=yes | |
1085 else | |
1086 echo "configure: failed program was:" >&5 | |
1087 cat conftest.$ac_ext >&5 | |
1088 rm -rf conftest* | |
1089 ac_cv_cygwin=no | |
1090 fi | |
1091 rm -f conftest* | |
1092 rm -f conftest* | |
1093 fi | |
1094 | |
1095 echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
1096 CYGWIN= | |
1097 test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
1098 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
1099 echo "configure:1100: checking for mingw32 environment" >&5 | |
1100 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | |
1101 echo $ac_n "(cached) $ac_c" 1>&6 | |
1102 else | |
1103 cat > conftest.$ac_ext <<EOF | |
1104 #line 1105 "configure" | |
1105 #include "confdefs.h" | |
1106 | |
1107 int main() { | |
1108 return __MINGW32__; | |
1109 ; return 0; } | |
1110 EOF | |
1111 if { (eval echo configure:1112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1112 rm -rf conftest* | |
1113 ac_cv_mingw32=yes | |
1114 else | |
1115 echo "configure: failed program was:" >&5 | |
1116 cat conftest.$ac_ext >&5 | |
1117 rm -rf conftest* | |
1118 ac_cv_mingw32=no | |
1119 fi | |
1120 rm -f conftest* | |
1121 rm -f conftest* | |
1122 fi | |
1123 | |
1124 echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
1125 MINGW32= | |
1126 test "$ac_cv_mingw32" = yes && MINGW32=yes | |
1127 | |
1128 | |
1129 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
1130 echo "configure:1131: checking for executable suffix" >&5 | |
1131 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | |
1132 echo $ac_n "(cached) $ac_c" 1>&6 | |
1133 else | |
1134 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1135 ac_cv_exeext=.exe | |
1136 else | |
1137 rm -f conftest* | |
1138 echo 'int main () { return 0; }' > conftest.$ac_ext | |
1139 ac_cv_exeext= | |
1140 if { (eval echo configure:1141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | |
1141 for file in conftest.*; do | |
1142 case $file in | |
1143 *.c | *.o | *.obj) ;; | |
1144 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | |
1145 esac | |
1146 done | |
1147 else | |
1148 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1149 fi | |
1150 rm -f conftest* | |
1151 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1152 fi | |
1153 fi | |
1154 | |
1155 EXEEXT="" | |
1156 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1157 echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1158 ac_exeext=$EXEEXT | |
1159 | 2796 |
1160 | 2797 |
1161 if test -z "$CFLAGS"; then | 2798 if test -z "$CFLAGS"; then |
1162 CFLAGS="-O" | 2799 CFLAGS="-O" |
1163 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" | 2800 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
1174 fi | 2811 fi |
1175 fi | 2812 fi |
1176 fi | 2813 fi |
1177 | 2814 |
1178 if test "$cross_compiling" = yes; then | 2815 if test "$cross_compiling" = yes; then |
1179 { echo "configure: error: cannot compile a simple program, check CC and CFLAGS | 2816 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS |
1180 (cross compiling doesn't work)" 1>&2; exit 1; } | 2817 (cross compiling doesn't work)" >&5 |
1181 fi | 2818 echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS |
1182 | 2819 (cross compiling doesn't work)" >&2;} |
1183 test "$GCC" = yes && CPP_MM=M; | 2820 { (exit 1); exit 1; }; } |
2821 fi | |
2822 | |
2823 test "$GCC" = yes && CPP_MM=M; | |
1184 | 2824 |
1185 if test -f ./toolcheck; then | 2825 if test -f ./toolcheck; then |
1186 echo "checking for buggy tools" 1>&6 | 2826 { echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
1187 echo "configure:1188: checking for buggy tools" >&5 | 2827 echo "$as_me: checking for buggy tools..." >&6;} |
1188 sh ./toolcheck 1>&6 | 2828 sh ./toolcheck 1>&6 |
1189 fi | 2829 fi |
1190 | 2830 |
1191 OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" | 2831 OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
1192 | 2832 |
1193 echo $ac_n "checking for BeOS""... $ac_c" 1>&6 | 2833 echo "$as_me:$LINENO: checking for BeOS" >&5 |
1194 echo "configure:1195: checking for BeOS" >&5 | 2834 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6 |
1195 case `uname` in | 2835 case `uname` in |
1196 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o | 2836 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
1197 BEOS=yes; echo "$ac_t""yes" 1>&6;; | 2837 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5 |
1198 *) BEOS=no; echo "$ac_t""no" 1>&6;; | 2838 echo "${ECHO_T}yes" >&6;; |
2839 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5 | |
2840 echo "${ECHO_T}no" >&6;; | |
1199 esac | 2841 esac |
1200 | 2842 |
1201 echo $ac_n "checking for QNX""... $ac_c" 1>&6 | 2843 echo "$as_me:$LINENO: checking for QNX" >&5 |
1202 echo "configure:1203: checking for QNX" >&5 | 2844 echo $ECHO_N "checking for QNX... $ECHO_C" >&6 |
1203 case `uname` in | 2845 case `uname` in |
1204 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o | 2846 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
1205 test -z "$with_x" && with_x=no | 2847 test -z "$with_x" && with_x=no |
1206 QNX=yes; echo "$ac_t""yes" 1>&6;; | 2848 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5 |
1207 *) QNX=no; echo "$ac_t""no" 1>&6;; | 2849 echo "${ECHO_T}yes" >&6;; |
2850 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5 | |
2851 echo "${ECHO_T}no" >&6;; | |
1208 esac | 2852 esac |
1209 | 2853 |
1210 DEFAULT_VIMNAME=vim | 2854 DEFAULT_VIMNAME=vim |
1211 echo $ac_n "checking for Darwin (Mac OS X)""... $ac_c" 1>&6 | 2855 echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
1212 echo "configure:1213: checking for Darwin (Mac OS X)" >&5 | 2856 echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6 |
1213 if test "`(uname) 2>/dev/null`" = Darwin; then | 2857 if test "`(uname) 2>/dev/null`" = Darwin; then |
1214 echo "$ac_t""yes" 1>&6 | 2858 echo "$as_me:$LINENO: result: yes" >&5 |
1215 | 2859 echo "${ECHO_T}yes" >&6 |
1216 echo $ac_n "checking --disable-darwin argument""... $ac_c" 1>&6 | 2860 |
1217 echo "configure:1218: checking --disable-darwin argument" >&5 | 2861 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
2862 echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6 | |
1218 # Check whether --enable-darwin or --disable-darwin was given. | 2863 # Check whether --enable-darwin or --disable-darwin was given. |
1219 if test "${enable_darwin+set}" = set; then | 2864 if test "${enable_darwin+set}" = set; then |
1220 enableval="$enable_darwin" | 2865 enableval="$enable_darwin" |
1221 : | 2866 |
1222 else | 2867 else |
1223 enable_darwin="yes" | 2868 enable_darwin="yes" |
1224 fi | 2869 fi; |
1225 | |
1226 if test "$enable_darwin" = "yes"; then | 2870 if test "$enable_darwin" = "yes"; then |
1227 echo "$ac_t""no" 1>&6 | 2871 echo "$as_me:$LINENO: result: no" >&5 |
1228 echo $ac_n "checking if Darwin files are there""... $ac_c" 1>&6 | 2872 echo "${ECHO_T}no" >&6 |
1229 echo "configure:1230: checking if Darwin files are there" >&5 | 2873 echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
2874 echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6 | |
1230 if test -f os_macosx.c; then | 2875 if test -f os_macosx.c; then |
1231 echo "$ac_t""yes" 1>&6 | 2876 echo "$as_me:$LINENO: result: yes" >&5 |
2877 echo "${ECHO_T}yes" >&6 | |
1232 else | 2878 else |
1233 echo "$ac_t""no, Darwin support disabled" 1>&6 | 2879 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
2880 echo "${ECHO_T}no, Darwin support disabled" >&6 | |
1234 enable_darwin=no | 2881 enable_darwin=no |
1235 fi | 2882 fi |
1236 else | 2883 else |
1237 echo "$ac_t""yes, Darwin support excluded" 1>&6 | 2884 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
2885 echo "${ECHO_T}yes, Darwin support excluded" >&6 | |
1238 fi | 2886 fi |
1239 | 2887 |
1240 if test "$enable_darwin" = "yes"; then | 2888 if test "$enable_darwin" = "yes"; then |
1241 MACOSX=yes | 2889 MACOSX=yes |
1242 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; | 2890 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
1243 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" | 2891 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
1244 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp" | 2892 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp" |
1245 | 2893 |
1246 ac_safe=`echo "Carbon/Carbon.h" | sed 'y%./+-%__p_%'` | 2894 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
1247 echo $ac_n "checking for Carbon/Carbon.h""... $ac_c" 1>&6 | 2895 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
1248 echo "configure:1249: checking for Carbon/Carbon.h" >&5 | 2896 if test "${ac_cv_header_stdc+set}" = set; then |
1249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2897 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1250 echo $ac_n "(cached) $ac_c" 1>&6 | 2898 else |
1251 else | 2899 cat >conftest.$ac_ext <<_ACEOF |
1252 cat > conftest.$ac_ext <<EOF | 2900 /* confdefs.h. */ |
1253 #line 1254 "configure" | 2901 _ACEOF |
1254 #include "confdefs.h" | 2902 cat confdefs.h >>conftest.$ac_ext |
2903 cat >>conftest.$ac_ext <<_ACEOF | |
2904 /* end confdefs.h. */ | |
2905 #include <stdlib.h> | |
2906 #include <stdarg.h> | |
2907 #include <string.h> | |
2908 #include <float.h> | |
2909 | |
2910 int | |
2911 main () | |
2912 { | |
2913 | |
2914 ; | |
2915 return 0; | |
2916 } | |
2917 _ACEOF | |
2918 rm -f conftest.$ac_objext | |
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2920 (eval $ac_compile) 2>conftest.er1 | |
2921 ac_status=$? | |
2922 grep -v '^ *+' conftest.er1 >conftest.err | |
2923 rm -f conftest.er1 | |
2924 cat conftest.err >&5 | |
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2926 (exit $ac_status); } && | |
2927 { ac_try='test -z "$ac_c_werror_flag" | |
2928 || test ! -s conftest.err' | |
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2930 (eval $ac_try) 2>&5 | |
2931 ac_status=$? | |
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2933 (exit $ac_status); }; } && | |
2934 { ac_try='test -s conftest.$ac_objext' | |
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2936 (eval $ac_try) 2>&5 | |
2937 ac_status=$? | |
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2939 (exit $ac_status); }; }; then | |
2940 ac_cv_header_stdc=yes | |
2941 else | |
2942 echo "$as_me: failed program was:" >&5 | |
2943 sed 's/^/| /' conftest.$ac_ext >&5 | |
2944 | |
2945 ac_cv_header_stdc=no | |
2946 fi | |
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2948 | |
2949 if test $ac_cv_header_stdc = yes; then | |
2950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2951 cat >conftest.$ac_ext <<_ACEOF | |
2952 /* confdefs.h. */ | |
2953 _ACEOF | |
2954 cat confdefs.h >>conftest.$ac_ext | |
2955 cat >>conftest.$ac_ext <<_ACEOF | |
2956 /* end confdefs.h. */ | |
2957 #include <string.h> | |
2958 | |
2959 _ACEOF | |
2960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2961 $EGREP "memchr" >/dev/null 2>&1; then | |
2962 : | |
2963 else | |
2964 ac_cv_header_stdc=no | |
2965 fi | |
2966 rm -f conftest* | |
2967 | |
2968 fi | |
2969 | |
2970 if test $ac_cv_header_stdc = yes; then | |
2971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2972 cat >conftest.$ac_ext <<_ACEOF | |
2973 /* confdefs.h. */ | |
2974 _ACEOF | |
2975 cat confdefs.h >>conftest.$ac_ext | |
2976 cat >>conftest.$ac_ext <<_ACEOF | |
2977 /* end confdefs.h. */ | |
2978 #include <stdlib.h> | |
2979 | |
2980 _ACEOF | |
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2982 $EGREP "free" >/dev/null 2>&1; then | |
2983 : | |
2984 else | |
2985 ac_cv_header_stdc=no | |
2986 fi | |
2987 rm -f conftest* | |
2988 | |
2989 fi | |
2990 | |
2991 if test $ac_cv_header_stdc = yes; then | |
2992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2993 if test "$cross_compiling" = yes; then | |
2994 : | |
2995 else | |
2996 cat >conftest.$ac_ext <<_ACEOF | |
2997 /* confdefs.h. */ | |
2998 _ACEOF | |
2999 cat confdefs.h >>conftest.$ac_ext | |
3000 cat >>conftest.$ac_ext <<_ACEOF | |
3001 /* end confdefs.h. */ | |
3002 #include <ctype.h> | |
3003 #if ((' ' & 0x0FF) == 0x020) | |
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3006 #else | |
3007 # define ISLOWER(c) \ | |
3008 (('a' <= (c) && (c) <= 'i') \ | |
3009 || ('j' <= (c) && (c) <= 'r') \ | |
3010 || ('s' <= (c) && (c) <= 'z')) | |
3011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3012 #endif | |
3013 | |
3014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3015 int | |
3016 main () | |
3017 { | |
3018 int i; | |
3019 for (i = 0; i < 256; i++) | |
3020 if (XOR (islower (i), ISLOWER (i)) | |
3021 || toupper (i) != TOUPPER (i)) | |
3022 exit(2); | |
3023 exit (0); | |
3024 } | |
3025 _ACEOF | |
3026 rm -f conftest$ac_exeext | |
3027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3028 (eval $ac_link) 2>&5 | |
3029 ac_status=$? | |
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3033 (eval $ac_try) 2>&5 | |
3034 ac_status=$? | |
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3036 (exit $ac_status); }; }; then | |
3037 : | |
3038 else | |
3039 echo "$as_me: program exited with status $ac_status" >&5 | |
3040 echo "$as_me: failed program was:" >&5 | |
3041 sed 's/^/| /' conftest.$ac_ext >&5 | |
3042 | |
3043 ( exit $ac_status ) | |
3044 ac_cv_header_stdc=no | |
3045 fi | |
3046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3047 fi | |
3048 fi | |
3049 fi | |
3050 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3051 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3052 if test $ac_cv_header_stdc = yes; then | |
3053 | |
3054 cat >>confdefs.h <<\_ACEOF | |
3055 #define STDC_HEADERS 1 | |
3056 _ACEOF | |
3057 | |
3058 fi | |
3059 | |
3060 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3061 | |
3062 | |
3063 | |
3064 | |
3065 | |
3066 | |
3067 | |
3068 | |
3069 | |
3070 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3071 inttypes.h stdint.h unistd.h | |
3072 do | |
3073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3074 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3076 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3077 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3078 else | |
3079 cat >conftest.$ac_ext <<_ACEOF | |
3080 /* confdefs.h. */ | |
3081 _ACEOF | |
3082 cat confdefs.h >>conftest.$ac_ext | |
3083 cat >>conftest.$ac_ext <<_ACEOF | |
3084 /* end confdefs.h. */ | |
3085 $ac_includes_default | |
3086 | |
3087 #include <$ac_header> | |
3088 _ACEOF | |
3089 rm -f conftest.$ac_objext | |
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3091 (eval $ac_compile) 2>conftest.er1 | |
3092 ac_status=$? | |
3093 grep -v '^ *+' conftest.er1 >conftest.err | |
3094 rm -f conftest.er1 | |
3095 cat conftest.err >&5 | |
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3097 (exit $ac_status); } && | |
3098 { ac_try='test -z "$ac_c_werror_flag" | |
3099 || test ! -s conftest.err' | |
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3101 (eval $ac_try) 2>&5 | |
3102 ac_status=$? | |
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3104 (exit $ac_status); }; } && | |
3105 { ac_try='test -s conftest.$ac_objext' | |
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3107 (eval $ac_try) 2>&5 | |
3108 ac_status=$? | |
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3110 (exit $ac_status); }; }; then | |
3111 eval "$as_ac_Header=yes" | |
3112 else | |
3113 echo "$as_me: failed program was:" >&5 | |
3114 sed 's/^/| /' conftest.$ac_ext >&5 | |
3115 | |
3116 eval "$as_ac_Header=no" | |
3117 fi | |
3118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3119 fi | |
3120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3122 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3123 cat >>confdefs.h <<_ACEOF | |
3124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3125 _ACEOF | |
3126 | |
3127 fi | |
3128 | |
3129 done | |
3130 | |
3131 | |
3132 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
3133 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
3134 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
3135 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
3136 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3137 fi | |
3138 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 | |
3139 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 | |
3140 else | |
3141 # Is the header compilable? | |
3142 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 | |
3143 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 | |
3144 cat >conftest.$ac_ext <<_ACEOF | |
3145 /* confdefs.h. */ | |
3146 _ACEOF | |
3147 cat confdefs.h >>conftest.$ac_ext | |
3148 cat >>conftest.$ac_ext <<_ACEOF | |
3149 /* end confdefs.h. */ | |
3150 $ac_includes_default | |
1255 #include <Carbon/Carbon.h> | 3151 #include <Carbon/Carbon.h> |
1256 EOF | 3152 _ACEOF |
1257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3153 rm -f conftest.$ac_objext |
1258 { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 3155 (eval $ac_compile) 2>conftest.er1 |
1260 if test -z "$ac_err"; then | 3156 ac_status=$? |
1261 rm -rf conftest* | 3157 grep -v '^ *+' conftest.er1 >conftest.err |
1262 eval "ac_cv_header_$ac_safe=yes" | 3158 rm -f conftest.er1 |
1263 else | 3159 cat conftest.err >&5 |
1264 echo "$ac_err" >&5 | 3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1265 echo "configure: failed program was:" >&5 | 3161 (exit $ac_status); } && |
1266 cat conftest.$ac_ext >&5 | 3162 { ac_try='test -z "$ac_c_werror_flag" |
1267 rm -rf conftest* | 3163 || test ! -s conftest.err' |
1268 eval "ac_cv_header_$ac_safe=no" | 3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1269 fi | 3165 (eval $ac_try) 2>&5 |
1270 rm -f conftest* | 3166 ac_status=$? |
1271 fi | 3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 3168 (exit $ac_status); }; } && |
1273 echo "$ac_t""yes" 1>&6 | 3169 { ac_try='test -s conftest.$ac_objext' |
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3171 (eval $ac_try) 2>&5 | |
3172 ac_status=$? | |
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3174 (exit $ac_status); }; }; then | |
3175 ac_header_compiler=yes | |
3176 else | |
3177 echo "$as_me: failed program was:" >&5 | |
3178 sed 's/^/| /' conftest.$ac_ext >&5 | |
3179 | |
3180 ac_header_compiler=no | |
3181 fi | |
3182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3184 echo "${ECHO_T}$ac_header_compiler" >&6 | |
3185 | |
3186 # Is the header present? | |
3187 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 | |
3188 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 | |
3189 cat >conftest.$ac_ext <<_ACEOF | |
3190 /* confdefs.h. */ | |
3191 _ACEOF | |
3192 cat confdefs.h >>conftest.$ac_ext | |
3193 cat >>conftest.$ac_ext <<_ACEOF | |
3194 /* end confdefs.h. */ | |
3195 #include <Carbon/Carbon.h> | |
3196 _ACEOF | |
3197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3199 ac_status=$? | |
3200 grep -v '^ *+' conftest.er1 >conftest.err | |
3201 rm -f conftest.er1 | |
3202 cat conftest.err >&5 | |
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3204 (exit $ac_status); } >/dev/null; then | |
3205 if test -s conftest.err; then | |
3206 ac_cpp_err=$ac_c_preproc_warn_flag | |
3207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3208 else | |
3209 ac_cpp_err= | |
3210 fi | |
3211 else | |
3212 ac_cpp_err=yes | |
3213 fi | |
3214 if test -z "$ac_cpp_err"; then | |
3215 ac_header_preproc=yes | |
3216 else | |
3217 echo "$as_me: failed program was:" >&5 | |
3218 sed 's/^/| /' conftest.$ac_ext >&5 | |
3219 | |
3220 ac_header_preproc=no | |
3221 fi | |
3222 rm -f conftest.err conftest.$ac_ext | |
3223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3224 echo "${ECHO_T}$ac_header_preproc" >&6 | |
3225 | |
3226 # So? What about this header? | |
3227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3228 yes:no: ) | |
3229 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3230 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3231 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 | |
3232 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} | |
3233 ac_header_preproc=yes | |
3234 ;; | |
3235 no:yes:* ) | |
3236 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 | |
3237 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
3238 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 | |
3239 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
3240 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 | |
3241 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} | |
3242 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3243 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3244 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 | |
3245 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} | |
3246 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 | |
3247 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} | |
3248 ( | |
3249 cat <<\_ASBOX | |
3250 ## ------------------------------------------ ## | |
3251 ## Report this to the AC_PACKAGE_NAME lists. ## | |
3252 ## ------------------------------------------ ## | |
3253 _ASBOX | |
3254 ) | | |
3255 sed "s/^/$as_me: WARNING: /" >&2 | |
3256 ;; | |
3257 esac | |
3258 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
3259 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
3260 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
3261 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3262 else | |
3263 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
3264 fi | |
3265 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 | |
3266 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 | |
3267 | |
3268 fi | |
3269 if test $ac_cv_header_Carbon_Carbon_h = yes; then | |
1274 CARBON=yes | 3270 CARBON=yes |
1275 else | 3271 fi |
1276 echo "$ac_t""no" 1>&6 | 3272 |
1277 fi | |
1278 | 3273 |
1279 if test "x$CARBON" = "xyes"; then | 3274 if test "x$CARBON" = "xyes"; then |
1280 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then | 3275 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then |
1281 with_x=no | 3276 with_x=no |
1282 DEFAULT_VIMNAME=Vim | 3277 DEFAULT_VIMNAME=Vim |
1283 fi | 3278 fi |
1284 fi | 3279 fi |
1285 fi | 3280 fi |
1286 else | 3281 else |
1287 echo "$ac_t""no" 1>&6 | 3282 echo "$as_me:$LINENO: result: no" >&5 |
3283 echo "${ECHO_T}no" >&6 | |
1288 fi | 3284 fi |
1289 | 3285 |
1290 | 3286 |
1291 | 3287 |
1292 | 3288 |
1309 if test "$tt" = "$CPPFLAGS"; then | 3305 if test "$tt" = "$CPPFLAGS"; then |
1310 CPPFLAGS="$CPPFLAGS -I/usr/local/include" | 3306 CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
1311 fi | 3307 fi |
1312 fi | 3308 fi |
1313 | 3309 |
1314 echo $ac_n "checking --with-vim-name argument""... $ac_c" 1>&6 | 3310 echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
1315 echo "configure:1316: checking --with-vim-name argument" >&5 | 3311 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6 |
3312 | |
1316 # Check whether --with-vim-name or --without-vim-name was given. | 3313 # Check whether --with-vim-name or --without-vim-name was given. |
1317 if test "${with_vim_name+set}" = set; then | 3314 if test "${with_vim_name+set}" = set; then |
1318 withval="$with_vim_name" | 3315 withval="$with_vim_name" |
1319 VIMNAME="$withval"; echo "$ac_t""$VIMNAME" 1>&6 | 3316 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
1320 else | 3317 echo "${ECHO_T}$VIMNAME" >&6 |
1321 VIMNAME="$DEFAULT_VIMNAME"; echo "$ac_t""Defaulting to $VIMNAME" 1>&6 | 3318 else |
1322 fi | 3319 VIMNAME="$DEFAULT_VIMNAME"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
1323 | 3320 echo "${ECHO_T}Defaulting to $VIMNAME" >&6 |
1324 | 3321 fi; |
1325 echo $ac_n "checking --with-ex-name argument""... $ac_c" 1>&6 | 3322 |
1326 echo "configure:1327: checking --with-ex-name argument" >&5 | 3323 echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
3324 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6 | |
3325 | |
1327 # Check whether --with-ex-name or --without-ex-name was given. | 3326 # Check whether --with-ex-name or --without-ex-name was given. |
1328 if test "${with_ex_name+set}" = set; then | 3327 if test "${with_ex_name+set}" = set; then |
1329 withval="$with_ex_name" | 3328 withval="$with_ex_name" |
1330 EXNAME="$withval"; echo "$ac_t""$EXNAME" 1>&6 | 3329 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5 |
1331 else | 3330 echo "${ECHO_T}$EXNAME" >&6 |
1332 EXNAME="ex"; echo "$ac_t""Defaulting to ex" 1>&6 | 3331 else |
1333 fi | 3332 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
1334 | 3333 echo "${ECHO_T}Defaulting to ex" >&6 |
1335 | 3334 fi; |
1336 echo $ac_n "checking --with-view-name argument""... $ac_c" 1>&6 | 3335 |
1337 echo "configure:1338: checking --with-view-name argument" >&5 | 3336 echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
3337 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6 | |
3338 | |
1338 # Check whether --with-view-name or --without-view-name was given. | 3339 # Check whether --with-view-name or --without-view-name was given. |
1339 if test "${with_view_name+set}" = set; then | 3340 if test "${with_view_name+set}" = set; then |
1340 withval="$with_view_name" | 3341 withval="$with_view_name" |
1341 VIEWNAME="$withval"; echo "$ac_t""$VIEWNAME" 1>&6 | 3342 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
1342 else | 3343 echo "${ECHO_T}$VIEWNAME" >&6 |
1343 VIEWNAME="view"; echo "$ac_t""Defaulting to view" 1>&6 | 3344 else |
1344 fi | 3345 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
1345 | 3346 echo "${ECHO_T}Defaulting to view" >&6 |
1346 | 3347 fi; |
1347 | 3348 |
1348 echo $ac_n "checking --with-global-runtime argument""... $ac_c" 1>&6 | 3349 |
1349 echo "configure:1350: checking --with-global-runtime argument" >&5 | 3350 echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
3351 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6 | |
3352 | |
1350 # Check whether --with-global-runtime or --without-global-runtime was given. | 3353 # Check whether --with-global-runtime or --without-global-runtime was given. |
1351 if test "${with_global_runtime+set}" = set; then | 3354 if test "${with_global_runtime+set}" = set; then |
1352 withval="$with_global_runtime" | 3355 withval="$with_global_runtime" |
1353 echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF | 3356 echo "$as_me:$LINENO: result: $withval" >&5 |
3357 echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF | |
1354 #define RUNTIME_GLOBAL "$withval" | 3358 #define RUNTIME_GLOBAL "$withval" |
1355 EOF | 3359 _ACEOF |
1356 | 3360 |
1357 else | 3361 else |
1358 echo "$ac_t""no" 1>&6 | 3362 echo "$as_me:$LINENO: result: no" >&5 |
1359 fi | 3363 echo "${ECHO_T}no" >&6 |
1360 | 3364 fi; |
1361 | 3365 |
1362 echo $ac_n "checking --with-modified-by argument""... $ac_c" 1>&6 | 3366 echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
1363 echo "configure:1364: checking --with-modified-by argument" >&5 | 3367 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6 |
3368 | |
1364 # Check whether --with-modified-by or --without-modified-by was given. | 3369 # Check whether --with-modified-by or --without-modified-by was given. |
1365 if test "${with_modified_by+set}" = set; then | 3370 if test "${with_modified_by+set}" = set; then |
1366 withval="$with_modified_by" | 3371 withval="$with_modified_by" |
1367 echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF | 3372 echo "$as_me:$LINENO: result: $withval" >&5 |
3373 echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF | |
1368 #define MODIFIED_BY "$withval" | 3374 #define MODIFIED_BY "$withval" |
1369 EOF | 3375 _ACEOF |
1370 | 3376 |
1371 else | 3377 else |
1372 echo "$ac_t""no" 1>&6 | 3378 echo "$as_me:$LINENO: result: no" >&5 |
1373 fi | 3379 echo "${ECHO_T}no" >&6 |
1374 | 3380 fi; |
1375 | 3381 |
1376 echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6 | 3382 echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
1377 echo "configure:1378: checking if character set is EBCDIC" >&5 | 3383 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6 |
1378 cat > conftest.$ac_ext <<EOF | 3384 cat >conftest.$ac_ext <<_ACEOF |
1379 #line 1380 "configure" | 3385 /* confdefs.h. */ |
1380 #include "confdefs.h" | 3386 _ACEOF |
1381 | 3387 cat confdefs.h >>conftest.$ac_ext |
1382 int main() { | 3388 cat >>conftest.$ac_ext <<_ACEOF |
3389 /* end confdefs.h. */ | |
3390 | |
3391 int | |
3392 main () | |
3393 { | |
1383 /* TryCompile function for CharSet. | 3394 /* TryCompile function for CharSet. |
1384 Treat any failure as ASCII for compatibility with existing art. | 3395 Treat any failure as ASCII for compatibility with existing art. |
1385 Use compile-time rather than run-time tests for cross-compiler | 3396 Use compile-time rather than run-time tests for cross-compiler |
1386 tolerance. */ | 3397 tolerance. */ |
1387 #if '0'!=240 | 3398 #if '0'!=240 |
1388 make an error "Character set is not EBCDIC" | 3399 make an error "Character set is not EBCDIC" |
1389 #endif | 3400 #endif |
1390 ; return 0; } | 3401 ; |
1391 EOF | 3402 return 0; |
1392 if { (eval echo configure:1393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3403 } |
1393 rm -rf conftest* | 3404 _ACEOF |
3405 rm -f conftest.$ac_objext | |
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3407 (eval $ac_compile) 2>conftest.er1 | |
3408 ac_status=$? | |
3409 grep -v '^ *+' conftest.er1 >conftest.err | |
3410 rm -f conftest.er1 | |
3411 cat conftest.err >&5 | |
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3413 (exit $ac_status); } && | |
3414 { ac_try='test -z "$ac_c_werror_flag" | |
3415 || test ! -s conftest.err' | |
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3417 (eval $ac_try) 2>&5 | |
3418 ac_status=$? | |
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3420 (exit $ac_status); }; } && | |
3421 { ac_try='test -s conftest.$ac_objext' | |
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3423 (eval $ac_try) 2>&5 | |
3424 ac_status=$? | |
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3426 (exit $ac_status); }; }; then | |
1394 # TryCompile action if true | 3427 # TryCompile action if true |
1395 cf_cv_ebcdic=yes | 3428 cf_cv_ebcdic=yes |
1396 else | 3429 else |
1397 echo "configure: failed program was:" >&5 | 3430 echo "$as_me: failed program was:" >&5 |
1398 cat conftest.$ac_ext >&5 | 3431 sed 's/^/| /' conftest.$ac_ext >&5 |
1399 rm -rf conftest* | 3432 |
1400 # TryCompile action if false | 3433 # TryCompile action if false |
1401 cf_cv_ebcdic=no | 3434 cf_cv_ebcdic=no |
1402 fi | 3435 fi |
1403 rm -f conftest* | 3436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1404 # end of TryCompile ]) | 3437 # end of TryCompile ]) |
1405 # end of CacheVal CvEbcdic | 3438 # end of CacheVal CvEbcdic |
1406 echo "$ac_t""$cf_cv_ebcdic" 1>&6 | 3439 echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
3440 echo "${ECHO_T}$cf_cv_ebcdic" >&6 | |
1407 case "$cf_cv_ebcdic" in #(vi | 3441 case "$cf_cv_ebcdic" in #(vi |
1408 yes) cat >> confdefs.h <<\EOF | 3442 yes) cat >>confdefs.h <<\_ACEOF |
1409 #define EBCDIC 1 | 3443 #define EBCDIC 1 |
1410 EOF | 3444 _ACEOF |
1411 | 3445 |
1412 line_break='"\\n"' | 3446 line_break='"\\n"' |
1413 ;; | 3447 ;; |
1414 *) line_break='"\\012"';; | 3448 *) line_break='"\\012"';; |
1415 esac | 3449 esac |
1416 | 3450 |
1417 | 3451 |
1418 if test "$cf_cv_ebcdic" = "yes"; then | 3452 if test "$cf_cv_ebcdic" = "yes"; then |
1419 echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6 | 3453 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
1420 echo "configure:1421: checking for OS/390 Unix" >&5 | 3454 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6 |
1421 case `uname` in | 3455 case `uname` in |
1422 OS/390) OS390Unix="yes"; | 3456 OS/390) OS390Unix="yes"; |
1423 if test "$CC" = "cc"; then | 3457 if test "$CC" = "cc"; then |
1424 ccm="$_CC_CCMODE" | 3458 ccm="$_CC_CCMODE" |
1425 ccn="CC" | 3459 ccn="CC" |
1441 echo " and then call configure again." | 3475 echo " and then call configure again." |
1442 echo "------------------------------------------" | 3476 echo "------------------------------------------" |
1443 exit 1 | 3477 exit 1 |
1444 fi | 3478 fi |
1445 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" | 3479 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
1446 echo "$ac_t""yes" 1>&6 | 3480 echo "$as_me:$LINENO: result: yes" >&5 |
3481 echo "${ECHO_T}yes" >&6 | |
1447 ;; | 3482 ;; |
1448 *) OS390Unix="no"; | 3483 *) OS390Unix="no"; |
1449 echo "$ac_t""no" 1>&6 | 3484 echo "$as_me:$LINENO: result: no" >&5 |
3485 echo "${ECHO_T}no" >&6 | |
1450 ;; | 3486 ;; |
1451 esac | 3487 esac |
1452 fi | 3488 fi |
1453 | 3489 |
1454 | 3490 |
1455 | 3491 |
1456 echo $ac_n "checking --with-features argument""... $ac_c" 1>&6 | 3492 echo "$as_me:$LINENO: checking --with-features argument" >&5 |
1457 echo "configure:1458: checking --with-features argument" >&5 | 3493 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6 |
3494 | |
1458 # Check whether --with-features or --without-features was given. | 3495 # Check whether --with-features or --without-features was given. |
1459 if test "${with_features+set}" = set; then | 3496 if test "${with_features+set}" = set; then |
1460 withval="$with_features" | 3497 withval="$with_features" |
1461 features="$withval"; echo "$ac_t""$features" 1>&6 | 3498 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5 |
1462 else | 3499 echo "${ECHO_T}$features" >&6 |
1463 features="normal"; echo "$ac_t""Defaulting to normal" 1>&6 | 3500 else |
1464 fi | 3501 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
1465 | 3502 echo "${ECHO_T}Defaulting to normal" >&6 |
3503 fi; | |
1466 | 3504 |
1467 dovimdiff="" | 3505 dovimdiff="" |
1468 dogvimdiff="" | 3506 dogvimdiff="" |
1469 case "$features" in | 3507 case "$features" in |
1470 tiny) cat >> confdefs.h <<\EOF | 3508 tiny) cat >>confdefs.h <<\_ACEOF |
1471 #define FEAT_TINY 1 | 3509 #define FEAT_TINY 1 |
1472 EOF | 3510 _ACEOF |
1473 ;; | 3511 ;; |
1474 small) cat >> confdefs.h <<\EOF | 3512 small) cat >>confdefs.h <<\_ACEOF |
1475 #define FEAT_SMALL 1 | 3513 #define FEAT_SMALL 1 |
1476 EOF | 3514 _ACEOF |
1477 ;; | 3515 ;; |
1478 normal) cat >> confdefs.h <<\EOF | 3516 normal) cat >>confdefs.h <<\_ACEOF |
1479 #define FEAT_NORMAL 1 | 3517 #define FEAT_NORMAL 1 |
1480 EOF | 3518 _ACEOF |
1481 dovimdiff="installvimdiff"; | 3519 dovimdiff="installvimdiff"; |
1482 dogvimdiff="installgvimdiff" ;; | 3520 dogvimdiff="installgvimdiff" ;; |
1483 big) cat >> confdefs.h <<\EOF | 3521 big) cat >>confdefs.h <<\_ACEOF |
1484 #define FEAT_BIG 1 | 3522 #define FEAT_BIG 1 |
1485 EOF | 3523 _ACEOF |
1486 dovimdiff="installvimdiff"; | 3524 dovimdiff="installvimdiff"; |
1487 dogvimdiff="installgvimdiff" ;; | 3525 dogvimdiff="installgvimdiff" ;; |
1488 huge) cat >> confdefs.h <<\EOF | 3526 huge) cat >>confdefs.h <<\_ACEOF |
1489 #define FEAT_HUGE 1 | 3527 #define FEAT_HUGE 1 |
1490 EOF | 3528 _ACEOF |
1491 dovimdiff="installvimdiff"; | 3529 dovimdiff="installvimdiff"; |
1492 dogvimdiff="installgvimdiff" ;; | 3530 dogvimdiff="installgvimdiff" ;; |
1493 *) echo "$ac_t""Sorry, $features is not supported" 1>&6 ;; | 3531 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
3532 echo "${ECHO_T}Sorry, $features is not supported" >&6 ;; | |
1494 esac | 3533 esac |
1495 | 3534 |
1496 | 3535 |
1497 | 3536 |
1498 | 3537 |
1499 echo $ac_n "checking --with-compiledby argument""... $ac_c" 1>&6 | 3538 echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
1500 echo "configure:1501: checking --with-compiledby argument" >&5 | 3539 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6 |
3540 | |
1501 # Check whether --with-compiledby or --without-compiledby was given. | 3541 # Check whether --with-compiledby or --without-compiledby was given. |
1502 if test "${with_compiledby+set}" = set; then | 3542 if test "${with_compiledby+set}" = set; then |
1503 withval="$with_compiledby" | 3543 withval="$with_compiledby" |
1504 compiledby="$withval"; echo "$ac_t""$withval" 1>&6 | 3544 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5 |
1505 else | 3545 echo "${ECHO_T}$withval" >&6 |
1506 compiledby=""; echo "$ac_t""no" 1>&6 | 3546 else |
1507 fi | 3547 compiledby=""; echo "$as_me:$LINENO: result: no" >&5 |
1508 | 3548 echo "${ECHO_T}no" >&6 |
1509 | 3549 fi; |
1510 | 3550 |
1511 echo $ac_n "checking --disable-xsmp argument""... $ac_c" 1>&6 | 3551 |
1512 echo "configure:1513: checking --disable-xsmp argument" >&5 | 3552 echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
3553 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6 | |
1513 # Check whether --enable-xsmp or --disable-xsmp was given. | 3554 # Check whether --enable-xsmp or --disable-xsmp was given. |
1514 if test "${enable_xsmp+set}" = set; then | 3555 if test "${enable_xsmp+set}" = set; then |
1515 enableval="$enable_xsmp" | 3556 enableval="$enable_xsmp" |
1516 : | 3557 |
1517 else | 3558 else |
1518 enable_xsmp="yes" | 3559 enable_xsmp="yes" |
1519 fi | 3560 fi; |
1520 | |
1521 | 3561 |
1522 if test "$enable_xsmp" = "yes"; then | 3562 if test "$enable_xsmp" = "yes"; then |
1523 echo "$ac_t""no" 1>&6 | 3563 echo "$as_me:$LINENO: result: no" >&5 |
1524 echo $ac_n "checking --disable-xsmp-interact argument""... $ac_c" 1>&6 | 3564 echo "${ECHO_T}no" >&6 |
1525 echo "configure:1526: checking --disable-xsmp-interact argument" >&5 | 3565 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
3566 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6 | |
1526 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. | 3567 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. |
1527 if test "${enable_xsmp_interact+set}" = set; then | 3568 if test "${enable_xsmp_interact+set}" = set; then |
1528 enableval="$enable_xsmp_interact" | 3569 enableval="$enable_xsmp_interact" |
1529 : | 3570 |
1530 else | 3571 else |
1531 enable_xsmp_interact="yes" | 3572 enable_xsmp_interact="yes" |
1532 fi | 3573 fi; |
1533 | |
1534 if test "$enable_xsmp_interact" = "yes"; then | 3574 if test "$enable_xsmp_interact" = "yes"; then |
1535 echo "$ac_t""no" 1>&6 | 3575 echo "$as_me:$LINENO: result: no" >&5 |
1536 cat >> confdefs.h <<\EOF | 3576 echo "${ECHO_T}no" >&6 |
3577 cat >>confdefs.h <<\_ACEOF | |
1537 #define USE_XSMP_INTERACT 1 | 3578 #define USE_XSMP_INTERACT 1 |
1538 EOF | 3579 _ACEOF |
1539 | 3580 |
1540 else | 3581 else |
1541 echo "$ac_t""yes" 1>&6 | 3582 echo "$as_me:$LINENO: result: yes" >&5 |
3583 echo "${ECHO_T}yes" >&6 | |
1542 fi | 3584 fi |
1543 else | 3585 else |
1544 echo "$ac_t""yes" 1>&6 | 3586 echo "$as_me:$LINENO: result: yes" >&5 |
1545 fi | 3587 echo "${ECHO_T}yes" >&6 |
1546 | 3588 fi |
1547 echo $ac_n "checking --enable-mzschemeinterp argument""... $ac_c" 1>&6 | 3589 |
1548 echo "configure:1549: checking --enable-mzschemeinterp argument" >&5 | 3590 echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
3591 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6 | |
1549 # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given. | 3592 # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given. |
1550 if test "${enable_mzschemeinterp+set}" = set; then | 3593 if test "${enable_mzschemeinterp+set}" = set; then |
1551 enableval="$enable_mzschemeinterp" | 3594 enableval="$enable_mzschemeinterp" |
1552 : | 3595 |
1553 else | 3596 else |
1554 enable_mzschemeinterp="no" | 3597 enable_mzschemeinterp="no" |
1555 fi | 3598 fi; |
1556 | 3599 echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
1557 echo "$ac_t""$enable_mzschemeinterp" 1>&6 | 3600 echo "${ECHO_T}$enable_mzschemeinterp" >&6 |
1558 | 3601 |
1559 if test "$enable_mzschemeinterp" = "yes"; then | 3602 if test "$enable_mzschemeinterp" = "yes"; then |
1560 | 3603 |
1561 | 3604 |
1562 echo $ac_n "checking --with-plthome argument""... $ac_c" 1>&6 | 3605 echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
1563 echo "configure:1564: checking --with-plthome argument" >&5 | 3606 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6 |
1564 # Check whether --with-plthome or --without-plthome was given. | 3607 |
3608 # Check whether --with-plthome or --without-plthome was given. | |
1565 if test "${with_plthome+set}" = set; then | 3609 if test "${with_plthome+set}" = set; then |
1566 withval="$with_plthome" | 3610 withval="$with_plthome" |
1567 with_plthome="$withval"; echo "$ac_t""$with_plthome" 1>&6 | 3611 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5 |
1568 else | 3612 echo "${ECHO_T}$with_plthome" >&6 |
1569 with_plthome="";echo "$ac_t"""no"" 1>&6 | 3613 else |
1570 fi | 3614 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5 |
1571 | 3615 echo "${ECHO_T}\"no\"" >&6 |
3616 fi; | |
1572 | 3617 |
1573 if test "X$with_plthome" != "X"; then | 3618 if test "X$with_plthome" != "X"; then |
1574 vi_cv_path_mzscheme_pfx="$with_plthome" | 3619 vi_cv_path_mzscheme_pfx="$with_plthome" |
1575 else | 3620 else |
1576 echo $ac_n "checking PLTHOME environment var""... $ac_c" 1>&6 | 3621 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
1577 echo "configure:1578: checking PLTHOME environment var" >&5 | 3622 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6 |
1578 if test "X$PLTHOME" != "X"; then | 3623 if test "X$PLTHOME" != "X"; then |
1579 echo "$ac_t"""$PLTHOME"" 1>&6 | 3624 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
3625 echo "${ECHO_T}\"$PLTHOME\"" >&6 | |
1580 vi_cv_path_mzscheme_pfx="$PLTHOME" | 3626 vi_cv_path_mzscheme_pfx="$PLTHOME" |
1581 else | 3627 else |
1582 echo "$ac_t"""not set"" 1>&6 | 3628 echo "$as_me:$LINENO: result: \"not set\"" >&5 |
3629 echo "${ECHO_T}\"not set\"" >&6 | |
1583 # Extract the first word of "mzscheme", so it can be a program name with args. | 3630 # Extract the first word of "mzscheme", so it can be a program name with args. |
1584 set dummy mzscheme; ac_word=$2 | 3631 set dummy mzscheme; ac_word=$2 |
1585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 3632 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1586 echo "configure:1587: checking for $ac_word" >&5 | 3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1587 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_mzscheme'+set}'`\" = set"; then | 3634 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
1588 echo $ac_n "(cached) $ac_c" 1>&6 | 3635 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1589 else | 3636 else |
1590 case "$vi_cv_path_mzscheme" in | 3637 case $vi_cv_path_mzscheme in |
1591 /*) | 3638 [\\/]* | ?:[\\/]*) |
1592 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. | 3639 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
1593 ;; | 3640 ;; |
1594 ?:/*) | |
1595 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a dos path. | |
1596 ;; | |
1597 *) | 3641 *) |
1598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1599 ac_dummy="$PATH" | 3643 for as_dir in $PATH |
1600 for ac_dir in $ac_dummy; do | 3644 do |
1601 test -z "$ac_dir" && ac_dir=. | 3645 IFS=$as_save_IFS |
1602 if test -f $ac_dir/$ac_word; then | 3646 test -z "$as_dir" && as_dir=. |
1603 ac_cv_path_vi_cv_path_mzscheme="$ac_dir/$ac_word" | 3647 for ac_exec_ext in '' $ac_executable_extensions; do |
1604 break | 3648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1605 fi | 3649 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" |
1606 done | 3650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1607 IFS="$ac_save_ifs" | 3651 break 2 |
3652 fi | |
3653 done | |
3654 done | |
3655 | |
1608 ;; | 3656 ;; |
1609 esac | 3657 esac |
1610 fi | 3658 fi |
1611 vi_cv_path_mzscheme="$ac_cv_path_vi_cv_path_mzscheme" | 3659 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
3660 | |
1612 if test -n "$vi_cv_path_mzscheme"; then | 3661 if test -n "$vi_cv_path_mzscheme"; then |
1613 echo "$ac_t""$vi_cv_path_mzscheme" 1>&6 | 3662 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
1614 else | 3663 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6 |
1615 echo "$ac_t""no" 1>&6 | 3664 else |
3665 echo "$as_me:$LINENO: result: no" >&5 | |
3666 echo "${ECHO_T}no" >&6 | |
1616 fi | 3667 fi |
1617 | 3668 |
1618 | 3669 |
1619 if test "X$vi_cv_path_mzscheme" != "X"; then | 3670 if test "X$vi_cv_path_mzscheme" != "X"; then |
1620 lsout=`ls -l $vi_cv_path_mzscheme` | 3671 lsout=`ls -l $vi_cv_path_mzscheme` |
1622 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` | 3673 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
1623 fi | 3674 fi |
1624 fi | 3675 fi |
1625 | 3676 |
1626 if test "X$vi_cv_path_mzscheme" != "X"; then | 3677 if test "X$vi_cv_path_mzscheme" != "X"; then |
1627 echo $ac_n "checking MzScheme install prefix""... $ac_c" 1>&6 | 3678 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
1628 echo "configure:1629: checking MzScheme install prefix" >&5 | 3679 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6 |
1629 if eval "test \"`echo '$''{'vi_cv_path_mzscheme_pfx'+set}'`\" = set"; then | 3680 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
1630 echo $ac_n "(cached) $ac_c" 1>&6 | 3681 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1631 else | 3682 else |
1632 vi_cv_path_mzscheme_pfx=` | 3683 vi_cv_path_mzscheme_pfx=` |
1633 ${vi_cv_path_mzscheme} -evm \ | 3684 ${vi_cv_path_mzscheme} -evm \ |
1634 "(display (simplify-path \ | 3685 "(display (simplify-path \ |
1635 (build-path (call-with-values \ | 3686 (build-path (call-with-values \ |
1636 (lambda () (split-path (find-system-path (quote exec-file)))) \ | 3687 (lambda () (split-path (find-system-path (quote exec-file)))) \ |
1637 (lambda (base name must-be-dir?) base)) (quote up))))"` | 3688 (lambda (base name must-be-dir?) base)) (quote up))))"` |
1638 fi | 3689 fi |
1639 | 3690 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
1640 echo "$ac_t""$vi_cv_path_mzscheme_pfx" 1>&6 | 3691 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6 |
1641 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'` | 3692 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'` |
1642 fi | 3693 fi |
1643 fi | 3694 fi |
1644 fi | 3695 fi |
1645 | 3696 |
1646 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then | 3697 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
1647 echo $ac_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include""... $ac_c" 1>&6 | 3698 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
1648 echo "configure:1649: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 | 3699 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6 |
1649 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then | 3700 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
1650 echo "$ac_t"""yes"" 1>&6 | 3701 echo "$as_me:$LINENO: result: \"yes\"" >&5 |
3702 echo "${ECHO_T}\"yes\"" >&6 | |
1651 else | 3703 else |
1652 echo "$ac_t"""no"" 1>&6 | 3704 echo "$as_me:$LINENO: result: \"no\"" >&5 |
3705 echo "${ECHO_T}\"no\"" >&6 | |
1653 vi_cv_path_mzscheme_pfx= | 3706 vi_cv_path_mzscheme_pfx= |
1654 fi | 3707 fi |
1655 fi | 3708 fi |
1656 | 3709 |
1657 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then | 3710 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
1669 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \ | 3722 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \ |
1670 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'" | 3723 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'" |
1671 MZSCHEME_SRC="if_mzsch.c" | 3724 MZSCHEME_SRC="if_mzsch.c" |
1672 MZSCHEME_OBJ="objects/if_mzsch.o" | 3725 MZSCHEME_OBJ="objects/if_mzsch.o" |
1673 MZSCHEME_PRO="if_mzsch.pro" | 3726 MZSCHEME_PRO="if_mzsch.pro" |
1674 cat >> confdefs.h <<\EOF | 3727 cat >>confdefs.h <<\_ACEOF |
1675 #define FEAT_MZSCHEME 1 | 3728 #define FEAT_MZSCHEME 1 |
1676 EOF | 3729 _ACEOF |
1677 | 3730 |
1678 fi | 3731 fi |
1679 | 3732 |
1680 | 3733 |
1681 | 3734 |
1682 | 3735 |
1683 | 3736 |
1684 fi | 3737 fi |
1685 | 3738 |
1686 | 3739 |
1687 echo $ac_n "checking --enable-perlinterp argument""... $ac_c" 1>&6 | 3740 echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
1688 echo "configure:1689: checking --enable-perlinterp argument" >&5 | 3741 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6 |
1689 # Check whether --enable-perlinterp or --disable-perlinterp was given. | 3742 # Check whether --enable-perlinterp or --disable-perlinterp was given. |
1690 if test "${enable_perlinterp+set}" = set; then | 3743 if test "${enable_perlinterp+set}" = set; then |
1691 enableval="$enable_perlinterp" | 3744 enableval="$enable_perlinterp" |
1692 : | 3745 |
1693 else | 3746 else |
1694 enable_perlinterp="no" | 3747 enable_perlinterp="no" |
1695 fi | 3748 fi; |
1696 | 3749 echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
1697 echo "$ac_t""$enable_perlinterp" 1>&6 | 3750 echo "${ECHO_T}$enable_perlinterp" >&6 |
1698 if test "$enable_perlinterp" = "yes"; then | 3751 if test "$enable_perlinterp" = "yes"; then |
1699 | 3752 |
1700 # Extract the first word of "perl", so it can be a program name with args. | 3753 # Extract the first word of "perl", so it can be a program name with args. |
1701 set dummy perl; ac_word=$2 | 3754 set dummy perl; ac_word=$2 |
1702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 3755 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1703 echo "configure:1704: checking for $ac_word" >&5 | 3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1704 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_perl'+set}'`\" = set"; then | 3757 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
1705 echo $ac_n "(cached) $ac_c" 1>&6 | 3758 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1706 else | 3759 else |
1707 case "$vi_cv_path_perl" in | 3760 case $vi_cv_path_perl in |
1708 /*) | 3761 [\\/]* | ?:[\\/]*) |
1709 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. | 3762 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
1710 ;; | 3763 ;; |
1711 ?:/*) | |
1712 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a dos path. | |
1713 ;; | |
1714 *) | 3764 *) |
1715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1716 ac_dummy="$PATH" | 3766 for as_dir in $PATH |
1717 for ac_dir in $ac_dummy; do | 3767 do |
1718 test -z "$ac_dir" && ac_dir=. | 3768 IFS=$as_save_IFS |
1719 if test -f $ac_dir/$ac_word; then | 3769 test -z "$as_dir" && as_dir=. |
1720 ac_cv_path_vi_cv_path_perl="$ac_dir/$ac_word" | 3770 for ac_exec_ext in '' $ac_executable_extensions; do |
1721 break | 3771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1722 fi | 3772 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" |
1723 done | 3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1724 IFS="$ac_save_ifs" | 3774 break 2 |
3775 fi | |
3776 done | |
3777 done | |
3778 | |
1725 ;; | 3779 ;; |
1726 esac | 3780 esac |
1727 fi | 3781 fi |
1728 vi_cv_path_perl="$ac_cv_path_vi_cv_path_perl" | 3782 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
3783 | |
1729 if test -n "$vi_cv_path_perl"; then | 3784 if test -n "$vi_cv_path_perl"; then |
1730 echo "$ac_t""$vi_cv_path_perl" 1>&6 | 3785 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
1731 else | 3786 echo "${ECHO_T}$vi_cv_path_perl" >&6 |
1732 echo "$ac_t""no" 1>&6 | 3787 else |
3788 echo "$as_me:$LINENO: result: no" >&5 | |
3789 echo "${ECHO_T}no" >&6 | |
1733 fi | 3790 fi |
1734 | 3791 |
1735 if test "X$vi_cv_path_perl" != "X"; then | 3792 if test "X$vi_cv_path_perl" != "X"; then |
1736 echo $ac_n "checking Perl version""... $ac_c" 1>&6 | 3793 echo "$as_me:$LINENO: checking Perl version" >&5 |
1737 echo "configure:1738: checking Perl version" >&5 | 3794 echo $ECHO_N "checking Perl version... $ECHO_C" >&6 |
1738 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then | 3795 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
1739 eval `$vi_cv_path_perl -V:usethreads` | 3796 eval `$vi_cv_path_perl -V:usethreads` |
1740 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then | 3797 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
1741 badthreads=no | 3798 badthreads=no |
1742 else | 3799 else |
1744 eval `$vi_cv_path_perl -V:use5005threads` | 3801 eval `$vi_cv_path_perl -V:use5005threads` |
1745 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then | 3802 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
1746 badthreads=no | 3803 badthreads=no |
1747 else | 3804 else |
1748 badthreads=yes | 3805 badthreads=yes |
1749 echo "$ac_t"">>> Perl > 5.6 with 5.5 threads cannot be used <<<" 1>&6 | 3806 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
3807 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6 | |
1750 fi | 3808 fi |
1751 else | 3809 else |
1752 badthreads=yes | 3810 badthreads=yes |
1753 echo "$ac_t"">>> Perl 5.5 with threads cannot be used <<<" 1>&6 | 3811 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
3812 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6 | |
1754 fi | 3813 fi |
1755 fi | 3814 fi |
1756 if test $badthreads = no; then | 3815 if test $badthreads = no; then |
1757 echo "$ac_t""OK" 1>&6 | 3816 echo "$as_me:$LINENO: result: OK" >&5 |
3817 echo "${ECHO_T}OK" >&6 | |
1758 eval `$vi_cv_path_perl -V:shrpenv` | 3818 eval `$vi_cv_path_perl -V:shrpenv` |
1759 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 | 3819 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
1760 shrpenv="" | 3820 shrpenv="" |
1761 fi | 3821 fi |
1762 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` | 3822 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
1763 | 3823 |
1764 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ | 3824 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
1765 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` | 3825 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
1766 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ | 3826 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
1767 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ | 3827 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
1768 -e 's/-bE:perl.exp//' -e 's/-lc //'` | 3828 -e 's/-bE:perl.exp//' -e 's/-lc //'` |
1769 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ | 3829 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
1770 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` | 3830 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
1771 | 3831 |
1772 echo $ac_n "checking if compile and link flags for Perl are sane""... $ac_c" 1>&6 | 3832 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
1773 echo "configure:1774: checking if compile and link flags for Perl are sane" >&5 | 3833 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6 |
1774 cflags_save=$CFLAGS | 3834 cflags_save=$CFLAGS |
1775 libs_save=$LIBS | 3835 libs_save=$LIBS |
1776 ldflags_save=$LDFLAGS | 3836 ldflags_save=$LDFLAGS |
1777 CFLAGS="$CFLAGS $perlcppflags" | 3837 CFLAGS="$CFLAGS $perlcppflags" |
1778 LIBS="$LIBS $perllibs" | 3838 LIBS="$LIBS $perllibs" |
1779 LDFLAGS="$perlldflags $LDFLAGS" | 3839 LDFLAGS="$perlldflags $LDFLAGS" |
1780 cat > conftest.$ac_ext <<EOF | 3840 cat >conftest.$ac_ext <<_ACEOF |
1781 #line 1782 "configure" | 3841 /* confdefs.h. */ |
1782 #include "confdefs.h" | 3842 _ACEOF |
1783 | 3843 cat confdefs.h >>conftest.$ac_ext |
1784 int main() { | 3844 cat >>conftest.$ac_ext <<_ACEOF |
1785 | 3845 /* end confdefs.h. */ |
1786 ; return 0; } | 3846 |
1787 EOF | 3847 int |
1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3848 main () |
1789 rm -rf conftest* | 3849 { |
1790 echo "$ac_t""yes" 1>&6; perl_ok=yes | 3850 |
1791 else | 3851 ; |
1792 echo "configure: failed program was:" >&5 | 3852 return 0; |
1793 cat conftest.$ac_ext >&5 | 3853 } |
1794 rm -rf conftest* | 3854 _ACEOF |
1795 echo "$ac_t""no: PERL DISABLED" 1>&6; perl_ok=no | 3855 rm -f conftest.$ac_objext conftest$ac_exeext |
1796 fi | 3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1797 rm -f conftest* | 3857 (eval $ac_link) 2>conftest.er1 |
3858 ac_status=$? | |
3859 grep -v '^ *+' conftest.er1 >conftest.err | |
3860 rm -f conftest.er1 | |
3861 cat conftest.err >&5 | |
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3863 (exit $ac_status); } && | |
3864 { ac_try='test -z "$ac_c_werror_flag" | |
3865 || test ! -s conftest.err' | |
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3867 (eval $ac_try) 2>&5 | |
3868 ac_status=$? | |
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3870 (exit $ac_status); }; } && | |
3871 { ac_try='test -s conftest$ac_exeext' | |
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3873 (eval $ac_try) 2>&5 | |
3874 ac_status=$? | |
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3876 (exit $ac_status); }; }; then | |
3877 echo "$as_me:$LINENO: result: yes" >&5 | |
3878 echo "${ECHO_T}yes" >&6; perl_ok=yes | |
3879 else | |
3880 echo "$as_me: failed program was:" >&5 | |
3881 sed 's/^/| /' conftest.$ac_ext >&5 | |
3882 | |
3883 echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 | |
3884 echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no | |
3885 fi | |
3886 rm -f conftest.err conftest.$ac_objext \ | |
3887 conftest$ac_exeext conftest.$ac_ext | |
1798 CFLAGS=$cflags_save | 3888 CFLAGS=$cflags_save |
1799 LIBS=$libs_save | 3889 LIBS=$libs_save |
1800 LDFLAGS=$ldflags_save | 3890 LDFLAGS=$ldflags_save |
1801 if test $perl_ok = yes; then | 3891 if test $perl_ok = yes; then |
1802 if test "X$perlcppflags" != "X"; then | 3892 if test "X$perlcppflags" != "X"; then |
1807 fi | 3897 fi |
1808 PERL_LIBS=$perllibs | 3898 PERL_LIBS=$perllibs |
1809 PERL_SRC="auto/if_perl.c if_perlsfio.c" | 3899 PERL_SRC="auto/if_perl.c if_perlsfio.c" |
1810 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" | 3900 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
1811 PERL_PRO="if_perl.pro if_perlsfio.pro" | 3901 PERL_PRO="if_perl.pro if_perlsfio.pro" |
1812 cat >> confdefs.h <<\EOF | 3902 cat >>confdefs.h <<\_ACEOF |
1813 #define FEAT_PERL 1 | 3903 #define FEAT_PERL 1 |
1814 EOF | 3904 _ACEOF |
1815 | 3905 |
1816 fi | 3906 fi |
1817 fi | 3907 fi |
1818 else | 3908 else |
1819 echo "$ac_t"">>> too old; need Perl version 5.003_01 or later <<<" 1>&6 | 3909 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
3910 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6 | |
1820 fi | 3911 fi |
1821 fi | 3912 fi |
1822 | 3913 |
1823 if test "x$MACOSX" = "xyes"; then | 3914 if test "x$MACOSX" = "xyes"; then |
1824 dir=/System/Library/Perl | 3915 dir=/System/Library/Perl |
1845 | 3936 |
1846 | 3937 |
1847 | 3938 |
1848 | 3939 |
1849 | 3940 |
1850 echo $ac_n "checking --enable-pythoninterp argument""... $ac_c" 1>&6 | 3941 echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
1851 echo "configure:1852: checking --enable-pythoninterp argument" >&5 | 3942 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6 |
1852 # Check whether --enable-pythoninterp or --disable-pythoninterp was given. | 3943 # Check whether --enable-pythoninterp or --disable-pythoninterp was given. |
1853 if test "${enable_pythoninterp+set}" = set; then | 3944 if test "${enable_pythoninterp+set}" = set; then |
1854 enableval="$enable_pythoninterp" | 3945 enableval="$enable_pythoninterp" |
1855 : | 3946 |
1856 else | 3947 else |
1857 enable_pythoninterp="no" | 3948 enable_pythoninterp="no" |
1858 fi | 3949 fi; |
1859 | 3950 echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
1860 echo "$ac_t""$enable_pythoninterp" 1>&6 | 3951 echo "${ECHO_T}$enable_pythoninterp" >&6 |
1861 if test "$enable_pythoninterp" = "yes"; then | 3952 if test "$enable_pythoninterp" = "yes"; then |
1862 # Extract the first word of "python", so it can be a program name with args. | 3953 # Extract the first word of "python", so it can be a program name with args. |
1863 set dummy python; ac_word=$2 | 3954 set dummy python; ac_word=$2 |
1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 3955 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1865 echo "configure:1866: checking for $ac_word" >&5 | 3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1866 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_python'+set}'`\" = set"; then | 3957 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
1867 echo $ac_n "(cached) $ac_c" 1>&6 | 3958 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1868 else | 3959 else |
1869 case "$vi_cv_path_python" in | 3960 case $vi_cv_path_python in |
1870 /*) | 3961 [\\/]* | ?:[\\/]*) |
1871 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. | 3962 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
1872 ;; | 3963 ;; |
1873 ?:/*) | |
1874 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a dos path. | |
1875 ;; | |
1876 *) | 3964 *) |
1877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1878 ac_dummy="$PATH" | 3966 for as_dir in $PATH |
1879 for ac_dir in $ac_dummy; do | 3967 do |
1880 test -z "$ac_dir" && ac_dir=. | 3968 IFS=$as_save_IFS |
1881 if test -f $ac_dir/$ac_word; then | 3969 test -z "$as_dir" && as_dir=. |
1882 ac_cv_path_vi_cv_path_python="$ac_dir/$ac_word" | 3970 for ac_exec_ext in '' $ac_executable_extensions; do |
1883 break | 3971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1884 fi | 3972 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" |
1885 done | 3973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1886 IFS="$ac_save_ifs" | 3974 break 2 |
3975 fi | |
3976 done | |
3977 done | |
3978 | |
1887 ;; | 3979 ;; |
1888 esac | 3980 esac |
1889 fi | 3981 fi |
1890 vi_cv_path_python="$ac_cv_path_vi_cv_path_python" | 3982 vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
3983 | |
1891 if test -n "$vi_cv_path_python"; then | 3984 if test -n "$vi_cv_path_python"; then |
1892 echo "$ac_t""$vi_cv_path_python" 1>&6 | 3985 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
1893 else | 3986 echo "${ECHO_T}$vi_cv_path_python" >&6 |
1894 echo "$ac_t""no" 1>&6 | 3987 else |
3988 echo "$as_me:$LINENO: result: no" >&5 | |
3989 echo "${ECHO_T}no" >&6 | |
1895 fi | 3990 fi |
1896 | 3991 |
1897 if test "X$vi_cv_path_python" != "X"; then | 3992 if test "X$vi_cv_path_python" != "X"; then |
1898 | 3993 |
1899 echo $ac_n "checking Python version""... $ac_c" 1>&6 | 3994 echo "$as_me:$LINENO: checking Python version" >&5 |
1900 echo "configure:1901: checking Python version" >&5 | 3995 echo $ECHO_N "checking Python version... $ECHO_C" >&6 |
1901 if eval "test \"`echo '$''{'vi_cv_var_python_version'+set}'`\" = set"; then | 3996 if test "${vi_cv_var_python_version+set}" = set; then |
1902 echo $ac_n "(cached) $ac_c" 1>&6 | 3997 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1903 else | 3998 else |
1904 vi_cv_var_python_version=` | 3999 vi_cv_var_python_version=` |
1905 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` | 4000 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
1906 | 4001 |
1907 fi | 4002 fi |
1908 | 4003 echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
1909 echo "$ac_t""$vi_cv_var_python_version" 1>&6 | 4004 echo "${ECHO_T}$vi_cv_var_python_version" >&6 |
1910 | 4005 |
1911 echo $ac_n "checking Python is 1.4 or better""... $ac_c" 1>&6 | 4006 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
1912 echo "configure:1913: checking Python is 1.4 or better" >&5 | 4007 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6 |
1913 if ${vi_cv_path_python} -c \ | 4008 if ${vi_cv_path_python} -c \ |
1914 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" | 4009 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
1915 then | 4010 then |
1916 echo "$ac_t""yep" 1>&6 | 4011 echo "$as_me:$LINENO: result: yep" >&5 |
1917 | 4012 echo "${ECHO_T}yep" >&6 |
1918 echo $ac_n "checking Python's install prefix""... $ac_c" 1>&6 | 4013 |
1919 echo "configure:1920: checking Python's install prefix" >&5 | 4014 echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
1920 if eval "test \"`echo '$''{'vi_cv_path_python_pfx'+set}'`\" = set"; then | 4015 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6 |
1921 echo $ac_n "(cached) $ac_c" 1>&6 | 4016 if test "${vi_cv_path_python_pfx+set}" = set; then |
4017 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1922 else | 4018 else |
1923 vi_cv_path_python_pfx=` | 4019 vi_cv_path_python_pfx=` |
1924 ${vi_cv_path_python} -c \ | 4020 ${vi_cv_path_python} -c \ |
1925 "import sys; print sys.prefix"` | 4021 "import sys; print sys.prefix"` |
1926 fi | 4022 fi |
1927 | 4023 echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
1928 echo "$ac_t""$vi_cv_path_python_pfx" 1>&6 | 4024 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6 |
1929 | 4025 |
1930 echo $ac_n "checking Python's execution prefix""... $ac_c" 1>&6 | 4026 echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
1931 echo "configure:1932: checking Python's execution prefix" >&5 | 4027 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6 |
1932 if eval "test \"`echo '$''{'vi_cv_path_python_epfx'+set}'`\" = set"; then | 4028 if test "${vi_cv_path_python_epfx+set}" = set; then |
1933 echo $ac_n "(cached) $ac_c" 1>&6 | 4029 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1934 else | 4030 else |
1935 vi_cv_path_python_epfx=` | 4031 vi_cv_path_python_epfx=` |
1936 ${vi_cv_path_python} -c \ | 4032 ${vi_cv_path_python} -c \ |
1937 "import sys; print sys.exec_prefix"` | 4033 "import sys; print sys.exec_prefix"` |
1938 fi | 4034 fi |
1939 | 4035 echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
1940 echo "$ac_t""$vi_cv_path_python_epfx" 1>&6 | 4036 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6 |
1941 | 4037 |
1942 | 4038 |
1943 if eval "test \"`echo '$''{'vi_cv_path_pythonpath'+set}'`\" = set"; then | 4039 if test "${vi_cv_path_pythonpath+set}" = set; then |
1944 echo $ac_n "(cached) $ac_c" 1>&6 | 4040 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1945 else | 4041 else |
1946 vi_cv_path_pythonpath=` | 4042 vi_cv_path_pythonpath=` |
1947 unset PYTHONPATH; | 4043 unset PYTHONPATH; |
1948 ${vi_cv_path_python} -c \ | 4044 ${vi_cv_path_python} -c \ |
1949 "import sys, string; print string.join(sys.path,':')"` | 4045 "import sys, string; print string.join(sys.path,':')"` |
1950 fi | 4046 fi |
1951 | 4047 |
1952 | 4048 |
1953 | 4049 |
1954 # Check whether --with-python-config-dir or --without-python-config-dir was given. | 4050 |
4051 # Check whether --with-python-config-dir or --without-python-config-dir was given. | |
1955 if test "${with_python_config_dir+set}" = set; then | 4052 if test "${with_python_config_dir+set}" = set; then |
1956 withval="$with_python_config_dir" | 4053 withval="$with_python_config_dir" |
1957 vi_cv_path_python_conf="${withval}" | 4054 vi_cv_path_python_conf="${withval}" |
1958 fi | 4055 fi; |
1959 | 4056 |
1960 | 4057 echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
1961 echo $ac_n "checking Python's configuration directory""... $ac_c" 1>&6 | 4058 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6 |
1962 echo "configure:1963: checking Python's configuration directory" >&5 | 4059 if test "${vi_cv_path_python_conf+set}" = set; then |
1963 if eval "test \"`echo '$''{'vi_cv_path_python_conf'+set}'`\" = set"; then | 4060 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1964 echo $ac_n "(cached) $ac_c" 1>&6 | 4061 else |
1965 else | 4062 |
1966 | |
1967 vi_cv_path_python_conf= | 4063 vi_cv_path_python_conf= |
1968 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do | 4064 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
1969 for subdir in lib share; do | 4065 for subdir in lib share; do |
1970 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" | 4066 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
1971 if test -d "$d" && test -f "$d/config.c"; then | 4067 if test -d "$d" && test -f "$d/config.c"; then |
1972 vi_cv_path_python_conf="$d" | 4068 vi_cv_path_python_conf="$d" |
1973 fi | 4069 fi |
1974 done | 4070 done |
1975 done | 4071 done |
1976 | 4072 |
1977 fi | 4073 fi |
1978 | 4074 echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
1979 echo "$ac_t""$vi_cv_path_python_conf" 1>&6 | 4075 echo "${ECHO_T}$vi_cv_path_python_conf" >&6 |
1980 | 4076 |
1981 PYTHON_CONFDIR="${vi_cv_path_python_conf}" | 4077 PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
1982 | 4078 |
1983 if test "X$PYTHON_CONFDIR" = "X"; then | 4079 if test "X$PYTHON_CONFDIR" = "X"; then |
1984 echo "$ac_t""can't find it!" 1>&6 | 4080 echo "$as_me:$LINENO: result: can't find it!" >&5 |
4081 echo "${ECHO_T}can't find it!" >&6 | |
1985 else | 4082 else |
1986 | 4083 |
1987 if eval "test \"`echo '$''{'vi_cv_path_python_plibs'+set}'`\" = set"; then | 4084 if test "${vi_cv_path_python_plibs+set}" = set; then |
1988 echo $ac_n "(cached) $ac_c" 1>&6 | 4085 echo $ECHO_N "(cached) $ECHO_C" >&6 |
1989 else | 4086 else |
1990 | 4087 |
1991 tmp_mkf="/tmp/Makefile-conf$$" | 4088 tmp_mkf="/tmp/Makefile-conf$$" |
1992 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} | 4089 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
1993 __: | 4090 __: |
1994 @echo "python_MODLIBS='$(MODLIBS)'" | 4091 @echo "python_MODLIBS='$(MODLIBS)'" |
1995 @echo "python_LIBS='$(LIBS)'" | 4092 @echo "python_LIBS='$(LIBS)'" |
2008 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" | 4105 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
2009 fi | 4106 fi |
2010 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" | 4107 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
2011 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` | 4108 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
2012 fi | 4109 fi |
2013 | 4110 |
2014 fi | 4111 fi |
2015 | 4112 |
2016 | 4113 |
2017 PYTHON_LIBS="${vi_cv_path_python_plibs}" | 4114 PYTHON_LIBS="${vi_cv_path_python_plibs}" |
2018 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then | 4115 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
2029 if test "${vi_cv_var_python_version}" = "1.4"; then | 4126 if test "${vi_cv_var_python_version}" = "1.4"; then |
2030 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" | 4127 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
2031 fi | 4128 fi |
2032 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" | 4129 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
2033 | 4130 |
2034 echo $ac_n "checking if -pthread should be used""... $ac_c" 1>&6 | 4131 echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
2035 echo "configure:2036: checking if -pthread should be used" >&5 | 4132 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6 |
2036 threadsafe_flag= | 4133 threadsafe_flag= |
2037 thread_lib= | 4134 thread_lib= |
2038 if test "x$MACOSX" != "xyes"; then | 4135 if test "x$MACOSX" != "xyes"; then |
2039 test "$GCC" = yes && threadsafe_flag="-pthread" | 4136 test "$GCC" = yes && threadsafe_flag="-pthread" |
2040 if test "`(uname) 2>/dev/null`" = FreeBSD; then | 4137 if test "`(uname) 2>/dev/null`" = FreeBSD; then |
2045 libs_save_old=$LIBS | 4142 libs_save_old=$LIBS |
2046 if test -n "$threadsafe_flag"; then | 4143 if test -n "$threadsafe_flag"; then |
2047 cflags_save=$CFLAGS | 4144 cflags_save=$CFLAGS |
2048 CFLAGS="$CFLAGS $threadsafe_flag" | 4145 CFLAGS="$CFLAGS $threadsafe_flag" |
2049 LIBS="$LIBS $thread_lib" | 4146 LIBS="$LIBS $thread_lib" |
2050 cat > conftest.$ac_ext <<EOF | 4147 cat >conftest.$ac_ext <<_ACEOF |
2051 #line 2052 "configure" | 4148 /* confdefs.h. */ |
2052 #include "confdefs.h" | 4149 _ACEOF |
2053 | 4150 cat confdefs.h >>conftest.$ac_ext |
2054 int main() { | 4151 cat >>conftest.$ac_ext <<_ACEOF |
2055 | 4152 /* end confdefs.h. */ |
2056 ; return 0; } | 4153 |
2057 EOF | 4154 int |
2058 if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4155 main () |
2059 rm -rf conftest* | 4156 { |
2060 echo "$ac_t""yes" 1>&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" | 4157 |
2061 else | 4158 ; |
2062 echo "configure: failed program was:" >&5 | 4159 return 0; |
2063 cat conftest.$ac_ext >&5 | 4160 } |
2064 rm -rf conftest* | 4161 _ACEOF |
2065 echo "$ac_t""no" 1>&6; LIBS=$libs_save_old | 4162 rm -f conftest.$ac_objext conftest$ac_exeext |
2066 | 4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2067 fi | 4164 (eval $ac_link) 2>conftest.er1 |
2068 rm -f conftest* | 4165 ac_status=$? |
4166 grep -v '^ *+' conftest.er1 >conftest.err | |
4167 rm -f conftest.er1 | |
4168 cat conftest.err >&5 | |
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4170 (exit $ac_status); } && | |
4171 { ac_try='test -z "$ac_c_werror_flag" | |
4172 || test ! -s conftest.err' | |
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4174 (eval $ac_try) 2>&5 | |
4175 ac_status=$? | |
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4177 (exit $ac_status); }; } && | |
4178 { ac_try='test -s conftest$ac_exeext' | |
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4180 (eval $ac_try) 2>&5 | |
4181 ac_status=$? | |
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4183 (exit $ac_status); }; }; then | |
4184 echo "$as_me:$LINENO: result: yes" >&5 | |
4185 echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" | |
4186 else | |
4187 echo "$as_me: failed program was:" >&5 | |
4188 sed 's/^/| /' conftest.$ac_ext >&5 | |
4189 | |
4190 echo "$as_me:$LINENO: result: no" >&5 | |
4191 echo "${ECHO_T}no" >&6; LIBS=$libs_save_old | |
4192 | |
4193 fi | |
4194 rm -f conftest.err conftest.$ac_objext \ | |
4195 conftest$ac_exeext conftest.$ac_ext | |
2069 CFLAGS=$cflags_save | 4196 CFLAGS=$cflags_save |
2070 else | 4197 else |
2071 echo "$ac_t""no" 1>&6 | 4198 echo "$as_me:$LINENO: result: no" >&5 |
4199 echo "${ECHO_T}no" >&6 | |
2072 fi | 4200 fi |
2073 | 4201 |
2074 echo $ac_n "checking if compile and link flags for Python are sane""... $ac_c" 1>&6 | 4202 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
2075 echo "configure:2076: checking if compile and link flags for Python are sane" >&5 | 4203 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6 |
2076 cflags_save=$CFLAGS | 4204 cflags_save=$CFLAGS |
2077 libs_save=$LIBS | 4205 libs_save=$LIBS |
2078 CFLAGS="$CFLAGS $PYTHON_CFLAGS" | 4206 CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
2079 LIBS="$LIBS $PYTHON_LIBS" | 4207 LIBS="$LIBS $PYTHON_LIBS" |
2080 cat > conftest.$ac_ext <<EOF | 4208 cat >conftest.$ac_ext <<_ACEOF |
2081 #line 2082 "configure" | 4209 /* confdefs.h. */ |
2082 #include "confdefs.h" | 4210 _ACEOF |
2083 | 4211 cat confdefs.h >>conftest.$ac_ext |
2084 int main() { | 4212 cat >>conftest.$ac_ext <<_ACEOF |
2085 | 4213 /* end confdefs.h. */ |
2086 ; return 0; } | 4214 |
2087 EOF | 4215 int |
2088 if { (eval echo configure:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4216 main () |
2089 rm -rf conftest* | 4217 { |
2090 echo "$ac_t""yes" 1>&6; python_ok=yes | 4218 |
2091 else | 4219 ; |
2092 echo "configure: failed program was:" >&5 | 4220 return 0; |
2093 cat conftest.$ac_ext >&5 | 4221 } |
2094 rm -rf conftest* | 4222 _ACEOF |
2095 echo "$ac_t""no: PYTHON DISABLED" 1>&6; python_ok=no | 4223 rm -f conftest.$ac_objext conftest$ac_exeext |
2096 fi | 4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2097 rm -f conftest* | 4225 (eval $ac_link) 2>conftest.er1 |
4226 ac_status=$? | |
4227 grep -v '^ *+' conftest.er1 >conftest.err | |
4228 rm -f conftest.er1 | |
4229 cat conftest.err >&5 | |
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4231 (exit $ac_status); } && | |
4232 { ac_try='test -z "$ac_c_werror_flag" | |
4233 || test ! -s conftest.err' | |
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4235 (eval $ac_try) 2>&5 | |
4236 ac_status=$? | |
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4238 (exit $ac_status); }; } && | |
4239 { ac_try='test -s conftest$ac_exeext' | |
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4241 (eval $ac_try) 2>&5 | |
4242 ac_status=$? | |
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4244 (exit $ac_status); }; }; then | |
4245 echo "$as_me:$LINENO: result: yes" >&5 | |
4246 echo "${ECHO_T}yes" >&6; python_ok=yes | |
4247 else | |
4248 echo "$as_me: failed program was:" >&5 | |
4249 sed 's/^/| /' conftest.$ac_ext >&5 | |
4250 | |
4251 echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 | |
4252 echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no | |
4253 fi | |
4254 rm -f conftest.err conftest.$ac_objext \ | |
4255 conftest$ac_exeext conftest.$ac_ext | |
2098 CFLAGS=$cflags_save | 4256 CFLAGS=$cflags_save |
2099 LIBS=$libs_save | 4257 LIBS=$libs_save |
2100 if test $python_ok = yes; then | 4258 if test $python_ok = yes; then |
2101 cat >> confdefs.h <<\EOF | 4259 cat >>confdefs.h <<\_ACEOF |
2102 #define FEAT_PYTHON 1 | 4260 #define FEAT_PYTHON 1 |
2103 EOF | 4261 _ACEOF |
2104 | 4262 |
2105 else | 4263 else |
2106 LIBS=$libs_save_old | 4264 LIBS=$libs_save_old |
2107 PYTHON_SRC= | 4265 PYTHON_SRC= |
2108 PYTHON_OBJ= | 4266 PYTHON_OBJ= |
2110 PYTHON_CFLAGS= | 4268 PYTHON_CFLAGS= |
2111 fi | 4269 fi |
2112 | 4270 |
2113 fi | 4271 fi |
2114 else | 4272 else |
2115 echo "$ac_t""too old" 1>&6 | 4273 echo "$as_me:$LINENO: result: too old" >&5 |
4274 echo "${ECHO_T}too old" >&6 | |
2116 fi | 4275 fi |
2117 fi | 4276 fi |
2118 fi | 4277 fi |
2119 | 4278 |
2120 | 4279 |
2121 | 4280 |
2122 | 4281 |
2123 | 4282 |
2124 | 4283 |
2125 | 4284 |
2126 echo $ac_n "checking --enable-tclinterp argument""... $ac_c" 1>&6 | 4285 echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
2127 echo "configure:2128: checking --enable-tclinterp argument" >&5 | 4286 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6 |
2128 # Check whether --enable-tclinterp or --disable-tclinterp was given. | 4287 # Check whether --enable-tclinterp or --disable-tclinterp was given. |
2129 if test "${enable_tclinterp+set}" = set; then | 4288 if test "${enable_tclinterp+set}" = set; then |
2130 enableval="$enable_tclinterp" | 4289 enableval="$enable_tclinterp" |
2131 : | 4290 |
2132 else | 4291 else |
2133 enable_tclinterp="no" | 4292 enable_tclinterp="no" |
2134 fi | 4293 fi; |
2135 | 4294 echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
2136 echo "$ac_t""$enable_tclinterp" 1>&6 | 4295 echo "${ECHO_T}$enable_tclinterp" >&6 |
2137 | 4296 |
2138 if test "$enable_tclinterp" = "yes"; then | 4297 if test "$enable_tclinterp" = "yes"; then |
2139 | 4298 |
2140 echo $ac_n "checking --with-tclsh argument""... $ac_c" 1>&6 | 4299 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
2141 echo "configure:2142: checking --with-tclsh argument" >&5 | 4300 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6 |
2142 # Check whether --with-tclsh or --without-tclsh was given. | 4301 |
4302 # Check whether --with-tclsh or --without-tclsh was given. | |
2143 if test "${with_tclsh+set}" = set; then | 4303 if test "${with_tclsh+set}" = set; then |
2144 withval="$with_tclsh" | 4304 withval="$with_tclsh" |
2145 tclsh_name="$withval"; echo "$ac_t""$tclsh_name" 1>&6 | 4305 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
2146 else | 4306 echo "${ECHO_T}$tclsh_name" >&6 |
2147 tclsh_name="tclsh8.0"; echo "$ac_t""no" 1>&6 | 4307 else |
2148 fi | 4308 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5 |
2149 | 4309 echo "${ECHO_T}no" >&6 |
4310 fi; | |
2150 # Extract the first word of "$tclsh_name", so it can be a program name with args. | 4311 # Extract the first word of "$tclsh_name", so it can be a program name with args. |
2151 set dummy $tclsh_name; ac_word=$2 | 4312 set dummy $tclsh_name; ac_word=$2 |
2152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 4313 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2153 echo "configure:2154: checking for $ac_word" >&5 | 4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2154 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then | 4315 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
2155 echo $ac_n "(cached) $ac_c" 1>&6 | 4316 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2156 else | 4317 else |
2157 case "$vi_cv_path_tcl" in | 4318 case $vi_cv_path_tcl in |
2158 /*) | 4319 [\\/]* | ?:[\\/]*) |
2159 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. | 4320 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
2160 ;; | 4321 ;; |
2161 ?:/*) | |
2162 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. | |
2163 ;; | |
2164 *) | 4322 *) |
2165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2166 ac_dummy="$PATH" | 4324 for as_dir in $PATH |
2167 for ac_dir in $ac_dummy; do | 4325 do |
2168 test -z "$ac_dir" && ac_dir=. | 4326 IFS=$as_save_IFS |
2169 if test -f $ac_dir/$ac_word; then | 4327 test -z "$as_dir" && as_dir=. |
2170 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" | 4328 for ac_exec_ext in '' $ac_executable_extensions; do |
2171 break | 4329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2172 fi | 4330 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
2173 done | 4331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2174 IFS="$ac_save_ifs" | 4332 break 2 |
4333 fi | |
4334 done | |
4335 done | |
4336 | |
2175 ;; | 4337 ;; |
2176 esac | 4338 esac |
2177 fi | 4339 fi |
2178 vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" | 4340 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
4341 | |
2179 if test -n "$vi_cv_path_tcl"; then | 4342 if test -n "$vi_cv_path_tcl"; then |
2180 echo "$ac_t""$vi_cv_path_tcl" 1>&6 | 4343 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
2181 else | 4344 echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
2182 echo "$ac_t""no" 1>&6 | 4345 else |
2183 fi | 4346 echo "$as_me:$LINENO: result: no" >&5 |
2184 | 4347 echo "${ECHO_T}no" >&6 |
2185 | 4348 fi |
2186 | 4349 |
2187 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.0"; then | 4350 |
4351 | |
4352 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then | |
2188 tclsh_name="tclsh8.2" | 4353 tclsh_name="tclsh8.2" |
2189 # Extract the first word of "$tclsh_name", so it can be a program name with args. | 4354 # Extract the first word of "$tclsh_name", so it can be a program name with args. |
2190 set dummy $tclsh_name; ac_word=$2 | 4355 set dummy $tclsh_name; ac_word=$2 |
2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 4356 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2192 echo "configure:2193: checking for $ac_word" >&5 | 4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2193 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then | 4358 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
2194 echo $ac_n "(cached) $ac_c" 1>&6 | 4359 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2195 else | 4360 else |
2196 case "$vi_cv_path_tcl" in | 4361 case $vi_cv_path_tcl in |
2197 /*) | 4362 [\\/]* | ?:[\\/]*) |
2198 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. | 4363 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
2199 ;; | 4364 ;; |
2200 ?:/*) | 4365 *) |
2201 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. | 4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4367 for as_dir in $PATH | |
4368 do | |
4369 IFS=$as_save_IFS | |
4370 test -z "$as_dir" && as_dir=. | |
4371 for ac_exec_ext in '' $ac_executable_extensions; do | |
4372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4373 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" | |
4374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4375 break 2 | |
4376 fi | |
4377 done | |
4378 done | |
4379 | |
4380 ;; | |
4381 esac | |
4382 fi | |
4383 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl | |
4384 | |
4385 if test -n "$vi_cv_path_tcl"; then | |
4386 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 | |
4387 echo "${ECHO_T}$vi_cv_path_tcl" >&6 | |
4388 else | |
4389 echo "$as_me:$LINENO: result: no" >&5 | |
4390 echo "${ECHO_T}no" >&6 | |
4391 fi | |
4392 | |
4393 fi | |
4394 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then | |
4395 tclsh_name="tclsh8.0" | |
4396 # Extract the first word of "$tclsh_name", so it can be a program name with args. | |
4397 set dummy $tclsh_name; ac_word=$2 | |
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4400 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then | |
4401 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4402 else | |
4403 case $vi_cv_path_tcl in | |
4404 [\\/]* | ?:[\\/]*) | |
4405 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. | |
2202 ;; | 4406 ;; |
2203 *) | 4407 *) |
2204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2205 ac_dummy="$PATH" | 4409 for as_dir in $PATH |
2206 for ac_dir in $ac_dummy; do | 4410 do |
2207 test -z "$ac_dir" && ac_dir=. | 4411 IFS=$as_save_IFS |
2208 if test -f $ac_dir/$ac_word; then | 4412 test -z "$as_dir" && as_dir=. |
2209 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" | 4413 for ac_exec_ext in '' $ac_executable_extensions; do |
2210 break | 4414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2211 fi | 4415 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
2212 done | 4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2213 IFS="$ac_save_ifs" | 4417 break 2 |
4418 fi | |
4419 done | |
4420 done | |
4421 | |
2214 ;; | 4422 ;; |
2215 esac | 4423 esac |
2216 fi | 4424 fi |
2217 vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" | 4425 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
4426 | |
2218 if test -n "$vi_cv_path_tcl"; then | 4427 if test -n "$vi_cv_path_tcl"; then |
2219 echo "$ac_t""$vi_cv_path_tcl" 1>&6 | 4428 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
2220 else | 4429 echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
2221 echo "$ac_t""no" 1>&6 | 4430 else |
4431 echo "$as_me:$LINENO: result: no" >&5 | |
4432 echo "${ECHO_T}no" >&6 | |
2222 fi | 4433 fi |
2223 | 4434 |
2224 fi | 4435 fi |
2225 if test "X$vi_cv_path_tcl" = "X"; then | 4436 if test "X$vi_cv_path_tcl" = "X"; then |
2226 tclsh_name="tclsh" | 4437 tclsh_name="tclsh" |
2227 # Extract the first word of "$tclsh_name", so it can be a program name with args. | 4438 # Extract the first word of "$tclsh_name", so it can be a program name with args. |
2228 set dummy $tclsh_name; ac_word=$2 | 4439 set dummy $tclsh_name; ac_word=$2 |
2229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 4440 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2230 echo "configure:2231: checking for $ac_word" >&5 | 4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2231 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then | 4442 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
2232 echo $ac_n "(cached) $ac_c" 1>&6 | 4443 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2233 else | 4444 else |
2234 case "$vi_cv_path_tcl" in | 4445 case $vi_cv_path_tcl in |
2235 /*) | 4446 [\\/]* | ?:[\\/]*) |
2236 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. | 4447 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
2237 ;; | 4448 ;; |
2238 ?:/*) | |
2239 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. | |
2240 ;; | |
2241 *) | 4449 *) |
2242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2243 ac_dummy="$PATH" | 4451 for as_dir in $PATH |
2244 for ac_dir in $ac_dummy; do | 4452 do |
2245 test -z "$ac_dir" && ac_dir=. | 4453 IFS=$as_save_IFS |
2246 if test -f $ac_dir/$ac_word; then | 4454 test -z "$as_dir" && as_dir=. |
2247 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" | 4455 for ac_exec_ext in '' $ac_executable_extensions; do |
2248 break | 4456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2249 fi | 4457 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
2250 done | 4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2251 IFS="$ac_save_ifs" | 4459 break 2 |
4460 fi | |
4461 done | |
4462 done | |
4463 | |
2252 ;; | 4464 ;; |
2253 esac | 4465 esac |
2254 fi | 4466 fi |
2255 vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" | 4467 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
4468 | |
2256 if test -n "$vi_cv_path_tcl"; then | 4469 if test -n "$vi_cv_path_tcl"; then |
2257 echo "$ac_t""$vi_cv_path_tcl" 1>&6 | 4470 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
2258 else | 4471 echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
2259 echo "$ac_t""no" 1>&6 | 4472 else |
4473 echo "$as_me:$LINENO: result: no" >&5 | |
4474 echo "${ECHO_T}no" >&6 | |
2260 fi | 4475 fi |
2261 | 4476 |
2262 fi | 4477 fi |
2263 if test "X$vi_cv_path_tcl" != "X"; then | 4478 if test "X$vi_cv_path_tcl" != "X"; then |
2264 echo $ac_n "checking Tcl version""... $ac_c" 1>&6 | 4479 echo "$as_me:$LINENO: checking Tcl version" >&5 |
2265 echo "configure:2266: checking Tcl version" >&5 | 4480 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6 |
2266 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then | 4481 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
2267 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` | 4482 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
2268 echo "$ac_t""$tclver - OK" 1>&6; | 4483 echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
4484 echo "${ECHO_T}$tclver - OK" >&6; | |
2269 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -` | 4485 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -` |
2270 | 4486 |
2271 echo $ac_n "checking for location of Tcl include""... $ac_c" 1>&6 | 4487 echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
2272 echo "configure:2273: checking for location of Tcl include" >&5 | 4488 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6 |
2273 if test "x$MACOSX" != "xyes"; then | 4489 if test "x$MACOSX" != "xyes"; then |
2274 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include" | 4490 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include" |
2275 else | 4491 else |
2276 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" | 4492 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
2277 fi | 4493 fi |
2278 for try in $tclinc; do | 4494 for try in $tclinc; do |
2279 if test -f "$try/tcl.h"; then | 4495 if test -f "$try/tcl.h"; then |
2280 echo "$ac_t""$try/tcl.h" 1>&6 | 4496 echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
4497 echo "${ECHO_T}$try/tcl.h" >&6 | |
2281 TCL_INC=$try | 4498 TCL_INC=$try |
2282 break | 4499 break |
2283 fi | 4500 fi |
2284 done | 4501 done |
2285 if test -z "$TCL_INC"; then | 4502 if test -z "$TCL_INC"; then |
2286 echo "$ac_t""<not found>" 1>&6 | 4503 echo "$as_me:$LINENO: result: <not found>" >&5 |
4504 echo "${ECHO_T}<not found>" >&6 | |
2287 SKIP_TCL=YES | 4505 SKIP_TCL=YES |
2288 fi | 4506 fi |
2289 if test -z "$SKIP_TCL"; then | 4507 if test -z "$SKIP_TCL"; then |
2290 echo $ac_n "checking for location of tclConfig.sh script""... $ac_c" 1>&6 | 4508 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
2291 echo "configure:2292: checking for location of tclConfig.sh script" >&5 | 4509 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6 |
2292 if test "x$MACOSX" != "xyes"; then | 4510 if test "x$MACOSX" != "xyes"; then |
2293 tclcnf=`echo $tclinc | sed s/include/lib/g` | 4511 tclcnf=`echo $tclinc | sed s/include/lib/g` |
2294 else | 4512 else |
2295 tclcnf="/System/Library/Frameworks/Tcl.framework" | 4513 tclcnf="/System/Library/Frameworks/Tcl.framework" |
2296 fi | 4514 fi |
2297 for try in $tclcnf; do | 4515 for try in $tclcnf; do |
2298 if test -f $try/tclConfig.sh; then | 4516 if test -f $try/tclConfig.sh; then |
2299 echo "$ac_t""$try/tclConfig.sh" 1>&6 | 4517 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
4518 echo "${ECHO_T}$try/tclConfig.sh" >&6 | |
2300 . $try/tclConfig.sh | 4519 . $try/tclConfig.sh |
2301 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` | 4520 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
2302 TCL_DEFS=`echo $TCL_DEFS | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'` | 4521 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\ /\X/' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'` |
2303 break | 4522 break |
2304 fi | 4523 fi |
2305 done | 4524 done |
2306 if test -z "$TCL_LIBS"; then | 4525 if test -z "$TCL_LIBS"; then |
2307 echo "$ac_t""<not found>" 1>&6 | 4526 echo "$as_me:$LINENO: result: <not found>" >&5 |
2308 echo $ac_n "checking for Tcl library by myself""... $ac_c" 1>&6 | 4527 echo "${ECHO_T}<not found>" >&6 |
2309 echo "configure:2310: checking for Tcl library by myself" >&5 | 4528 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
4529 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6 | |
2310 tcllib=`echo $tclinc | sed s/include/lib/g` | 4530 tcllib=`echo $tclinc | sed s/include/lib/g` |
2311 for ext in .so .a ; do | 4531 for ext in .so .a ; do |
2312 for ver in "" $tclver ; do | 4532 for ver in "" $tclver ; do |
2313 for try in $tcllib ; do | 4533 for try in $tcllib ; do |
2314 trylib=tcl$ver$ext | 4534 trylib=tcl$ver$ext |
2315 if test -f $try/lib$trylib ; then | 4535 if test -f $try/lib$trylib ; then |
2316 echo "$ac_t""$try/lib$trylib" 1>&6 | 4536 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
4537 echo "${ECHO_T}$try/lib$trylib" >&6 | |
2317 TCL_LIBS="-L$try -ltcl$ver -ldl -lm" | 4538 TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
2318 if test "`(uname) 2>/dev/null`" = SunOS && | 4539 if test "`(uname) 2>/dev/null`" = SunOS && |
2319 uname -r | grep '^5' >/dev/null; then | 4540 uname -r | grep '^5' >/dev/null; then |
2320 TCL_LIBS="$TCL_LIBS -R $try" | 4541 TCL_LIBS="$TCL_LIBS -R $try" |
2321 fi | 4542 fi |
2323 fi | 4544 fi |
2324 done | 4545 done |
2325 done | 4546 done |
2326 done | 4547 done |
2327 if test -z "$TCL_LIBS"; then | 4548 if test -z "$TCL_LIBS"; then |
2328 echo "$ac_t""<not found>" 1>&6 | 4549 echo "$as_me:$LINENO: result: <not found>" >&5 |
4550 echo "${ECHO_T}<not found>" >&6 | |
2329 SKIP_TCL=YES | 4551 SKIP_TCL=YES |
2330 fi | 4552 fi |
2331 fi | 4553 fi |
2332 if test -z "$SKIP_TCL"; then | 4554 if test -z "$SKIP_TCL"; then |
2333 cat >> confdefs.h <<\EOF | 4555 cat >>confdefs.h <<\_ACEOF |
2334 #define FEAT_TCL 1 | 4556 #define FEAT_TCL 1 |
2335 EOF | 4557 _ACEOF |
2336 | 4558 |
2337 TCL_SRC=if_tcl.c | 4559 TCL_SRC=if_tcl.c |
2338 TCL_OBJ=objects/if_tcl.o | 4560 TCL_OBJ=objects/if_tcl.o |
2339 TCL_PRO=if_tcl.pro | 4561 TCL_PRO=if_tcl.pro |
2340 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" | 4562 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
2341 fi | 4563 fi |
2342 fi | 4564 fi |
2343 else | 4565 else |
2344 echo "$ac_t""too old; need Tcl version 8.0 or later" 1>&6 | 4566 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
4567 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6 | |
2345 fi | 4568 fi |
2346 fi | 4569 fi |
2347 fi | 4570 fi |
2348 | 4571 |
2349 | 4572 |
2350 | 4573 |
2351 | 4574 |
2352 | 4575 |
2353 | 4576 |
2354 echo $ac_n "checking --enable-rubyinterp argument""... $ac_c" 1>&6 | 4577 echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
2355 echo "configure:2356: checking --enable-rubyinterp argument" >&5 | 4578 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6 |
2356 # Check whether --enable-rubyinterp or --disable-rubyinterp was given. | 4579 # Check whether --enable-rubyinterp or --disable-rubyinterp was given. |
2357 if test "${enable_rubyinterp+set}" = set; then | 4580 if test "${enable_rubyinterp+set}" = set; then |
2358 enableval="$enable_rubyinterp" | 4581 enableval="$enable_rubyinterp" |
2359 : | 4582 |
2360 else | 4583 else |
2361 enable_rubyinterp="no" | 4584 enable_rubyinterp="no" |
2362 fi | 4585 fi; |
2363 | 4586 echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
2364 echo "$ac_t""$enable_rubyinterp" 1>&6 | 4587 echo "${ECHO_T}$enable_rubyinterp" >&6 |
2365 if test "$enable_rubyinterp" = "yes"; then | 4588 if test "$enable_rubyinterp" = "yes"; then |
2366 | 4589 |
2367 # Extract the first word of "ruby", so it can be a program name with args. | 4590 # Extract the first word of "ruby", so it can be a program name with args. |
2368 set dummy ruby; ac_word=$2 | 4591 set dummy ruby; ac_word=$2 |
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 4592 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2370 echo "configure:2371: checking for $ac_word" >&5 | 4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2371 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_ruby'+set}'`\" = set"; then | 4594 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
2372 echo $ac_n "(cached) $ac_c" 1>&6 | 4595 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2373 else | 4596 else |
2374 case "$vi_cv_path_ruby" in | 4597 case $vi_cv_path_ruby in |
2375 /*) | 4598 [\\/]* | ?:[\\/]*) |
2376 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. | 4599 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
2377 ;; | 4600 ;; |
2378 ?:/*) | |
2379 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a dos path. | |
2380 ;; | |
2381 *) | 4601 *) |
2382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2383 ac_dummy="$PATH" | 4603 for as_dir in $PATH |
2384 for ac_dir in $ac_dummy; do | 4604 do |
2385 test -z "$ac_dir" && ac_dir=. | 4605 IFS=$as_save_IFS |
2386 if test -f $ac_dir/$ac_word; then | 4606 test -z "$as_dir" && as_dir=. |
2387 ac_cv_path_vi_cv_path_ruby="$ac_dir/$ac_word" | 4607 for ac_exec_ext in '' $ac_executable_extensions; do |
2388 break | 4608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2389 fi | 4609 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" |
2390 done | 4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2391 IFS="$ac_save_ifs" | 4611 break 2 |
4612 fi | |
4613 done | |
4614 done | |
4615 | |
2392 ;; | 4616 ;; |
2393 esac | 4617 esac |
2394 fi | 4618 fi |
2395 vi_cv_path_ruby="$ac_cv_path_vi_cv_path_ruby" | 4619 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
4620 | |
2396 if test -n "$vi_cv_path_ruby"; then | 4621 if test -n "$vi_cv_path_ruby"; then |
2397 echo "$ac_t""$vi_cv_path_ruby" 1>&6 | 4622 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
2398 else | 4623 echo "${ECHO_T}$vi_cv_path_ruby" >&6 |
2399 echo "$ac_t""no" 1>&6 | 4624 else |
4625 echo "$as_me:$LINENO: result: no" >&5 | |
4626 echo "${ECHO_T}no" >&6 | |
2400 fi | 4627 fi |
2401 | 4628 |
2402 if test "X$vi_cv_path_ruby" != "X"; then | 4629 if test "X$vi_cv_path_ruby" != "X"; then |
2403 echo $ac_n "checking Ruby version""... $ac_c" 1>&6 | 4630 echo "$as_me:$LINENO: checking Ruby version" >&5 |
2404 echo "configure:2405: checking Ruby version" >&5 | 4631 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6 |
2405 if $vi_cv_path_ruby -e 'VERSION >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then | 4632 if $vi_cv_path_ruby -e 'VERSION >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then |
2406 echo "$ac_t""OK" 1>&6 | 4633 echo "$as_me:$LINENO: result: OK" >&5 |
2407 echo $ac_n "checking Ruby header files""... $ac_c" 1>&6 | 4634 echo "${ECHO_T}OK" >&6 |
2408 echo "configure:2409: checking Ruby header files" >&5 | 4635 echo "$as_me:$LINENO: checking Ruby header files" >&5 |
4636 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6 | |
2409 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` | 4637 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
2410 if test "X$rubyhdrdir" != "X"; then | 4638 if test "X$rubyhdrdir" != "X"; then |
2411 echo "$ac_t""$rubyhdrdir" 1>&6 | 4639 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
4640 echo "${ECHO_T}$rubyhdrdir" >&6 | |
2412 RUBY_CFLAGS="-I$rubyhdrdir" | 4641 RUBY_CFLAGS="-I$rubyhdrdir" |
2413 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` | 4642 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
2414 if test "X$rubylibs" != "X"; then | 4643 if test "X$rubylibs" != "X"; then |
2415 RUBY_LIBS="$rubylibs" | 4644 RUBY_LIBS="$rubylibs" |
2416 fi | 4645 fi |
2436 LDFLAGS="$rubyldflags $LDFLAGS" | 4665 LDFLAGS="$rubyldflags $LDFLAGS" |
2437 fi | 4666 fi |
2438 RUBY_SRC="if_ruby.c" | 4667 RUBY_SRC="if_ruby.c" |
2439 RUBY_OBJ="objects/if_ruby.o" | 4668 RUBY_OBJ="objects/if_ruby.o" |
2440 RUBY_PRO="if_ruby.pro" | 4669 RUBY_PRO="if_ruby.pro" |
2441 cat >> confdefs.h <<\EOF | 4670 cat >>confdefs.h <<\_ACEOF |
2442 #define FEAT_RUBY 1 | 4671 #define FEAT_RUBY 1 |
2443 EOF | 4672 _ACEOF |
2444 | 4673 |
2445 else | 4674 else |
2446 echo "$ac_t""not found" 1>&6 | 4675 echo "$as_me:$LINENO: result: not found" >&5 |
4676 echo "${ECHO_T}not found" >&6 | |
2447 fi | 4677 fi |
2448 else | 4678 else |
2449 echo "$ac_t""too old; need Ruby version 1.6.0 or later" 1>&6 | 4679 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
4680 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6 | |
2450 fi | 4681 fi |
2451 fi | 4682 fi |
2452 fi | 4683 fi |
2453 | 4684 |
2454 | 4685 |
2455 | 4686 |
2456 | 4687 |
2457 | 4688 |
2458 | 4689 |
2459 echo $ac_n "checking --enable-cscope argument""... $ac_c" 1>&6 | 4690 echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
2460 echo "configure:2461: checking --enable-cscope argument" >&5 | 4691 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6 |
2461 # Check whether --enable-cscope or --disable-cscope was given. | 4692 # Check whether --enable-cscope or --disable-cscope was given. |
2462 if test "${enable_cscope+set}" = set; then | 4693 if test "${enable_cscope+set}" = set; then |
2463 enableval="$enable_cscope" | 4694 enableval="$enable_cscope" |
2464 : | 4695 |
2465 else | 4696 else |
2466 enable_cscope="no" | 4697 enable_cscope="no" |
2467 fi | 4698 fi; |
2468 | 4699 echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
2469 echo "$ac_t""$enable_cscope" 1>&6 | 4700 echo "${ECHO_T}$enable_cscope" >&6 |
2470 if test "$enable_cscope" = "yes"; then | 4701 if test "$enable_cscope" = "yes"; then |
2471 cat >> confdefs.h <<\EOF | 4702 cat >>confdefs.h <<\_ACEOF |
2472 #define FEAT_CSCOPE 1 | 4703 #define FEAT_CSCOPE 1 |
2473 EOF | 4704 _ACEOF |
2474 | 4705 |
2475 fi | 4706 fi |
2476 | 4707 |
2477 echo $ac_n "checking --enable-workshop argument""... $ac_c" 1>&6 | 4708 echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
2478 echo "configure:2479: checking --enable-workshop argument" >&5 | 4709 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6 |
2479 # Check whether --enable-workshop or --disable-workshop was given. | 4710 # Check whether --enable-workshop or --disable-workshop was given. |
2480 if test "${enable_workshop+set}" = set; then | 4711 if test "${enable_workshop+set}" = set; then |
2481 enableval="$enable_workshop" | 4712 enableval="$enable_workshop" |
2482 : | 4713 |
2483 else | 4714 else |
2484 enable_workshop="no" | 4715 enable_workshop="no" |
2485 fi | 4716 fi; |
2486 | 4717 echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
2487 echo "$ac_t""$enable_workshop" 1>&6 | 4718 echo "${ECHO_T}$enable_workshop" >&6 |
2488 if test "$enable_workshop" = "yes"; then | 4719 if test "$enable_workshop" = "yes"; then |
2489 cat >> confdefs.h <<\EOF | 4720 cat >>confdefs.h <<\_ACEOF |
2490 #define FEAT_SUN_WORKSHOP 1 | 4721 #define FEAT_SUN_WORKSHOP 1 |
2491 EOF | 4722 _ACEOF |
2492 | 4723 |
2493 WORKSHOP_SRC="workshop.c integration.c" | 4724 WORKSHOP_SRC="workshop.c integration.c" |
2494 | 4725 |
2495 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" | 4726 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
2496 | 4727 |
2497 if test "${enable_gui-xxx}" = xxx; then | 4728 if test "${enable_gui-xxx}" = xxx; then |
2498 enable_gui=motif | 4729 enable_gui=motif |
2499 fi | 4730 fi |
2500 fi | 4731 fi |
2501 | 4732 |
2502 echo $ac_n "checking --disable-netbeans argument""... $ac_c" 1>&6 | 4733 echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
2503 echo "configure:2504: checking --disable-netbeans argument" >&5 | 4734 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6 |
2504 # Check whether --enable-netbeans or --disable-netbeans was given. | 4735 # Check whether --enable-netbeans or --disable-netbeans was given. |
2505 if test "${enable_netbeans+set}" = set; then | 4736 if test "${enable_netbeans+set}" = set; then |
2506 enableval="$enable_netbeans" | 4737 enableval="$enable_netbeans" |
2507 : | 4738 |
2508 else | 4739 else |
2509 enable_netbeans="yes" | 4740 enable_netbeans="yes" |
2510 fi | 4741 fi; |
2511 | |
2512 if test "$enable_netbeans" = "yes"; then | 4742 if test "$enable_netbeans" = "yes"; then |
2513 echo "$ac_t""no" 1>&6 | 4743 echo "$as_me:$LINENO: result: no" >&5 |
2514 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | 4744 echo "${ECHO_T}no" >&6 |
2515 echo "configure:2516: checking for socket in -lsocket" >&5 | 4745 |
2516 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | 4746 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
2517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4747 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
2518 echo $ac_n "(cached) $ac_c" 1>&6 | 4748 if test "${ac_cv_lib_socket_socket+set}" = set; then |
2519 else | 4749 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2520 ac_save_LIBS="$LIBS" | 4750 else |
4751 ac_check_lib_save_LIBS=$LIBS | |
2521 LIBS="-lsocket $LIBS" | 4752 LIBS="-lsocket $LIBS" |
2522 cat > conftest.$ac_ext <<EOF | 4753 cat >conftest.$ac_ext <<_ACEOF |
2523 #line 2524 "configure" | 4754 /* confdefs.h. */ |
2524 #include "confdefs.h" | 4755 _ACEOF |
4756 cat confdefs.h >>conftest.$ac_ext | |
4757 cat >>conftest.$ac_ext <<_ACEOF | |
4758 /* end confdefs.h. */ | |
4759 | |
2525 /* Override any gcc2 internal prototype to avoid an error. */ | 4760 /* Override any gcc2 internal prototype to avoid an error. */ |
4761 #ifdef __cplusplus | |
4762 extern "C" | |
4763 #endif | |
2526 /* We use char because int might match the return type of a gcc2 | 4764 /* We use char because int might match the return type of a gcc2 |
2527 builtin and then its argument prototype would still apply. */ | 4765 builtin and then its argument prototype would still apply. */ |
2528 char socket(); | 4766 char socket (); |
2529 | 4767 int |
2530 int main() { | 4768 main () |
2531 socket() | 4769 { |
2532 ; return 0; } | 4770 socket (); |
2533 EOF | 4771 ; |
2534 if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4772 return 0; |
2535 rm -rf conftest* | 4773 } |
2536 eval "ac_cv_lib_$ac_lib_var=yes" | 4774 _ACEOF |
2537 else | 4775 rm -f conftest.$ac_objext conftest$ac_exeext |
2538 echo "configure: failed program was:" >&5 | 4776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2539 cat conftest.$ac_ext >&5 | 4777 (eval $ac_link) 2>conftest.er1 |
2540 rm -rf conftest* | 4778 ac_status=$? |
2541 eval "ac_cv_lib_$ac_lib_var=no" | 4779 grep -v '^ *+' conftest.er1 >conftest.err |
2542 fi | 4780 rm -f conftest.er1 |
2543 rm -f conftest* | 4781 cat conftest.err >&5 |
2544 LIBS="$ac_save_LIBS" | 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2545 | 4783 (exit $ac_status); } && |
2546 fi | 4784 { ac_try='test -z "$ac_c_werror_flag" |
2547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4785 || test ! -s conftest.err' |
2548 echo "$ac_t""yes" 1>&6 | 4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2549 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 4787 (eval $ac_try) 2>&5 |
2550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 4788 ac_status=$? |
2551 cat >> confdefs.h <<EOF | 4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2552 #define $ac_tr_lib 1 | 4790 (exit $ac_status); }; } && |
2553 EOF | 4791 { ac_try='test -s conftest$ac_exeext' |
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4793 (eval $ac_try) 2>&5 | |
4794 ac_status=$? | |
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4796 (exit $ac_status); }; }; then | |
4797 ac_cv_lib_socket_socket=yes | |
4798 else | |
4799 echo "$as_me: failed program was:" >&5 | |
4800 sed 's/^/| /' conftest.$ac_ext >&5 | |
4801 | |
4802 ac_cv_lib_socket_socket=no | |
4803 fi | |
4804 rm -f conftest.err conftest.$ac_objext \ | |
4805 conftest$ac_exeext conftest.$ac_ext | |
4806 LIBS=$ac_check_lib_save_LIBS | |
4807 fi | |
4808 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
4809 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
4810 if test $ac_cv_lib_socket_socket = yes; then | |
4811 cat >>confdefs.h <<_ACEOF | |
4812 #define HAVE_LIBSOCKET 1 | |
4813 _ACEOF | |
2554 | 4814 |
2555 LIBS="-lsocket $LIBS" | 4815 LIBS="-lsocket $LIBS" |
2556 | 4816 |
2557 else | 4817 fi |
2558 echo "$ac_t""no" 1>&6 | 4818 |
2559 fi | 4819 |
2560 | 4820 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
2561 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | 4821 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
2562 echo "configure:2563: checking for gethostbyname in -lnsl" >&5 | 4822 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
2563 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | 4823 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4824 else |
2565 echo $ac_n "(cached) $ac_c" 1>&6 | 4825 ac_check_lib_save_LIBS=$LIBS |
2566 else | |
2567 ac_save_LIBS="$LIBS" | |
2568 LIBS="-lnsl $LIBS" | 4826 LIBS="-lnsl $LIBS" |
2569 cat > conftest.$ac_ext <<EOF | 4827 cat >conftest.$ac_ext <<_ACEOF |
2570 #line 2571 "configure" | 4828 /* confdefs.h. */ |
2571 #include "confdefs.h" | 4829 _ACEOF |
4830 cat confdefs.h >>conftest.$ac_ext | |
4831 cat >>conftest.$ac_ext <<_ACEOF | |
4832 /* end confdefs.h. */ | |
4833 | |
2572 /* Override any gcc2 internal prototype to avoid an error. */ | 4834 /* Override any gcc2 internal prototype to avoid an error. */ |
4835 #ifdef __cplusplus | |
4836 extern "C" | |
4837 #endif | |
2573 /* We use char because int might match the return type of a gcc2 | 4838 /* We use char because int might match the return type of a gcc2 |
2574 builtin and then its argument prototype would still apply. */ | 4839 builtin and then its argument prototype would still apply. */ |
2575 char gethostbyname(); | 4840 char gethostbyname (); |
2576 | 4841 int |
2577 int main() { | 4842 main () |
2578 gethostbyname() | 4843 { |
2579 ; return 0; } | 4844 gethostbyname (); |
2580 EOF | 4845 ; |
2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4846 return 0; |
2582 rm -rf conftest* | 4847 } |
2583 eval "ac_cv_lib_$ac_lib_var=yes" | 4848 _ACEOF |
2584 else | 4849 rm -f conftest.$ac_objext conftest$ac_exeext |
2585 echo "configure: failed program was:" >&5 | 4850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2586 cat conftest.$ac_ext >&5 | 4851 (eval $ac_link) 2>conftest.er1 |
2587 rm -rf conftest* | 4852 ac_status=$? |
2588 eval "ac_cv_lib_$ac_lib_var=no" | 4853 grep -v '^ *+' conftest.er1 >conftest.err |
2589 fi | 4854 rm -f conftest.er1 |
2590 rm -f conftest* | 4855 cat conftest.err >&5 |
2591 LIBS="$ac_save_LIBS" | 4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2592 | 4857 (exit $ac_status); } && |
2593 fi | 4858 { ac_try='test -z "$ac_c_werror_flag" |
2594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4859 || test ! -s conftest.err' |
2595 echo "$ac_t""yes" 1>&6 | 4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2596 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 4861 (eval $ac_try) 2>&5 |
2597 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 4862 ac_status=$? |
2598 cat >> confdefs.h <<EOF | 4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2599 #define $ac_tr_lib 1 | 4864 (exit $ac_status); }; } && |
2600 EOF | 4865 { ac_try='test -s conftest$ac_exeext' |
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4867 (eval $ac_try) 2>&5 | |
4868 ac_status=$? | |
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4870 (exit $ac_status); }; }; then | |
4871 ac_cv_lib_nsl_gethostbyname=yes | |
4872 else | |
4873 echo "$as_me: failed program was:" >&5 | |
4874 sed 's/^/| /' conftest.$ac_ext >&5 | |
4875 | |
4876 ac_cv_lib_nsl_gethostbyname=no | |
4877 fi | |
4878 rm -f conftest.err conftest.$ac_objext \ | |
4879 conftest$ac_exeext conftest.$ac_ext | |
4880 LIBS=$ac_check_lib_save_LIBS | |
4881 fi | |
4882 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
4883 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
4884 if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
4885 cat >>confdefs.h <<_ACEOF | |
4886 #define HAVE_LIBNSL 1 | |
4887 _ACEOF | |
2601 | 4888 |
2602 LIBS="-lnsl $LIBS" | 4889 LIBS="-lnsl $LIBS" |
2603 | 4890 |
2604 else | 4891 fi |
2605 echo "$ac_t""no" 1>&6 | 4892 |
2606 fi | 4893 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
2607 | 4894 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6 |
2608 echo $ac_n "checking whether compiling netbeans integration is possible""... $ac_c" 1>&6 | 4895 cat >conftest.$ac_ext <<_ACEOF |
2609 echo "configure:2610: checking whether compiling netbeans integration is possible" >&5 | 4896 /* confdefs.h. */ |
2610 cat > conftest.$ac_ext <<EOF | 4897 _ACEOF |
2611 #line 2612 "configure" | 4898 cat confdefs.h >>conftest.$ac_ext |
2612 #include "confdefs.h" | 4899 cat >>conftest.$ac_ext <<_ACEOF |
4900 /* end confdefs.h. */ | |
2613 | 4901 |
2614 #include <stdio.h> | 4902 #include <stdio.h> |
2615 #include <stdlib.h> | 4903 #include <stdlib.h> |
2616 #include <stdarg.h> | 4904 #include <stdarg.h> |
2617 #include <fcntl.h> | 4905 #include <fcntl.h> |
2623 /* Check bitfields */ | 4911 /* Check bitfields */ |
2624 struct nbbuf { | 4912 struct nbbuf { |
2625 unsigned int initDone:1; | 4913 unsigned int initDone:1; |
2626 ushort signmaplen; | 4914 ushort signmaplen; |
2627 }; | 4915 }; |
2628 | 4916 |
2629 int main() { | 4917 int |
4918 main () | |
4919 { | |
2630 | 4920 |
2631 /* Check creating a socket. */ | 4921 /* Check creating a socket. */ |
2632 struct sockaddr_in server; | 4922 struct sockaddr_in server; |
2633 (void)socket(AF_INET, SOCK_STREAM, 0); | 4923 (void)socket(AF_INET, SOCK_STREAM, 0); |
2634 (void)htons(100); | 4924 (void)htons(100); |
2635 (void)gethostbyname("microsoft.com"); | 4925 (void)gethostbyname("microsoft.com"); |
2636 if (errno == ECONNREFUSED) | 4926 if (errno == ECONNREFUSED) |
2637 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); | 4927 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
2638 | 4928 |
2639 ; return 0; } | 4929 ; |
2640 EOF | 4930 return 0; |
2641 if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4931 } |
2642 rm -rf conftest* | 4932 _ACEOF |
2643 echo "$ac_t""yes" 1>&6 | 4933 rm -f conftest.$ac_objext conftest$ac_exeext |
2644 else | 4934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2645 echo "configure: failed program was:" >&5 | 4935 (eval $ac_link) 2>conftest.er1 |
2646 cat conftest.$ac_ext >&5 | 4936 ac_status=$? |
2647 rm -rf conftest* | 4937 grep -v '^ *+' conftest.er1 >conftest.err |
2648 echo "$ac_t""no" 1>&6; enable_netbeans="no" | 4938 rm -f conftest.er1 |
2649 fi | 4939 cat conftest.err >&5 |
2650 rm -f conftest* | 4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2651 else | 4941 (exit $ac_status); } && |
2652 echo "$ac_t""yes" 1>&6 | 4942 { ac_try='test -z "$ac_c_werror_flag" |
4943 || test ! -s conftest.err' | |
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4945 (eval $ac_try) 2>&5 | |
4946 ac_status=$? | |
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4948 (exit $ac_status); }; } && | |
4949 { ac_try='test -s conftest$ac_exeext' | |
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4951 (eval $ac_try) 2>&5 | |
4952 ac_status=$? | |
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4954 (exit $ac_status); }; }; then | |
4955 echo "$as_me:$LINENO: result: yes" >&5 | |
4956 echo "${ECHO_T}yes" >&6 | |
4957 else | |
4958 echo "$as_me: failed program was:" >&5 | |
4959 sed 's/^/| /' conftest.$ac_ext >&5 | |
4960 | |
4961 echo "$as_me:$LINENO: result: no" >&5 | |
4962 echo "${ECHO_T}no" >&6; enable_netbeans="no" | |
4963 fi | |
4964 rm -f conftest.err conftest.$ac_objext \ | |
4965 conftest$ac_exeext conftest.$ac_ext | |
4966 else | |
4967 echo "$as_me:$LINENO: result: yes" >&5 | |
4968 echo "${ECHO_T}yes" >&6 | |
2653 fi | 4969 fi |
2654 if test "$enable_netbeans" = "yes"; then | 4970 if test "$enable_netbeans" = "yes"; then |
2655 cat >> confdefs.h <<\EOF | 4971 cat >>confdefs.h <<\_ACEOF |
2656 #define FEAT_NETBEANS_INTG 1 | 4972 #define FEAT_NETBEANS_INTG 1 |
2657 EOF | 4973 _ACEOF |
2658 | 4974 |
2659 NETBEANS_SRC="netbeans.c" | 4975 NETBEANS_SRC="netbeans.c" |
2660 | 4976 |
2661 NETBEANS_OBJ="objects/netbeans.o" | 4977 NETBEANS_OBJ="objects/netbeans.o" |
2662 | 4978 |
2663 fi | 4979 fi |
2664 | 4980 |
2665 echo $ac_n "checking --enable-sniff argument""... $ac_c" 1>&6 | 4981 echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
2666 echo "configure:2667: checking --enable-sniff argument" >&5 | 4982 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6 |
2667 # Check whether --enable-sniff or --disable-sniff was given. | 4983 # Check whether --enable-sniff or --disable-sniff was given. |
2668 if test "${enable_sniff+set}" = set; then | 4984 if test "${enable_sniff+set}" = set; then |
2669 enableval="$enable_sniff" | 4985 enableval="$enable_sniff" |
2670 : | 4986 |
2671 else | 4987 else |
2672 enable_sniff="no" | 4988 enable_sniff="no" |
2673 fi | 4989 fi; |
2674 | 4990 echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
2675 echo "$ac_t""$enable_sniff" 1>&6 | 4991 echo "${ECHO_T}$enable_sniff" >&6 |
2676 if test "$enable_sniff" = "yes"; then | 4992 if test "$enable_sniff" = "yes"; then |
2677 cat >> confdefs.h <<\EOF | 4993 cat >>confdefs.h <<\_ACEOF |
2678 #define FEAT_SNIFF 1 | 4994 #define FEAT_SNIFF 1 |
2679 EOF | 4995 _ACEOF |
2680 | 4996 |
2681 SNIFF_SRC="if_sniff.c" | 4997 SNIFF_SRC="if_sniff.c" |
2682 | 4998 |
2683 SNIFF_OBJ="objects/if_sniff.o" | 4999 SNIFF_OBJ="objects/if_sniff.o" |
2684 | 5000 |
2685 fi | 5001 fi |
2686 | 5002 |
2687 echo $ac_n "checking --enable-multibyte argument""... $ac_c" 1>&6 | 5003 echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
2688 echo "configure:2689: checking --enable-multibyte argument" >&5 | 5004 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6 |
2689 # Check whether --enable-multibyte or --disable-multibyte was given. | 5005 # Check whether --enable-multibyte or --disable-multibyte was given. |
2690 if test "${enable_multibyte+set}" = set; then | 5006 if test "${enable_multibyte+set}" = set; then |
2691 enableval="$enable_multibyte" | 5007 enableval="$enable_multibyte" |
2692 : | 5008 |
2693 else | 5009 else |
2694 enable_multibyte="no" | 5010 enable_multibyte="no" |
2695 fi | 5011 fi; |
2696 | 5012 echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
2697 echo "$ac_t""$enable_multibyte" 1>&6 | 5013 echo "${ECHO_T}$enable_multibyte" >&6 |
2698 if test "$enable_multibyte" = "yes"; then | 5014 if test "$enable_multibyte" = "yes"; then |
2699 cat >> confdefs.h <<\EOF | 5015 cat >>confdefs.h <<\_ACEOF |
2700 #define FEAT_MBYTE 1 | 5016 #define FEAT_MBYTE 1 |
2701 EOF | 5017 _ACEOF |
2702 | 5018 |
2703 fi | 5019 fi |
2704 | 5020 |
2705 echo $ac_n "checking --enable-hangulinput argument""... $ac_c" 1>&6 | 5021 echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
2706 echo "configure:2707: checking --enable-hangulinput argument" >&5 | 5022 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6 |
2707 # Check whether --enable-hangulinput or --disable-hangulinput was given. | 5023 # Check whether --enable-hangulinput or --disable-hangulinput was given. |
2708 if test "${enable_hangulinput+set}" = set; then | 5024 if test "${enable_hangulinput+set}" = set; then |
2709 enableval="$enable_hangulinput" | 5025 enableval="$enable_hangulinput" |
2710 : | 5026 |
2711 else | 5027 else |
2712 enable_hangulinput="no" | 5028 enable_hangulinput="no" |
2713 fi | 5029 fi; |
2714 | 5030 echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
2715 echo "$ac_t""$enable_hangulinput" 1>&6 | 5031 echo "${ECHO_T}$enable_hangulinput" >&6 |
2716 | 5032 |
2717 echo $ac_n "checking --enable-xim argument""... $ac_c" 1>&6 | 5033 echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
2718 echo "configure:2719: checking --enable-xim argument" >&5 | 5034 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6 |
2719 # Check whether --enable-xim or --disable-xim was given. | 5035 # Check whether --enable-xim or --disable-xim was given. |
2720 if test "${enable_xim+set}" = set; then | 5036 if test "${enable_xim+set}" = set; then |
2721 enableval="$enable_xim" | 5037 enableval="$enable_xim" |
2722 echo "$ac_t""$enable_xim" 1>&6 | 5038 echo "$as_me:$LINENO: result: $enable_xim" >&5 |
2723 else | 5039 echo "${ECHO_T}$enable_xim" >&6 |
2724 enable_xim="auto"; echo "$ac_t""defaulting to auto" 1>&6 | 5040 else |
2725 fi | 5041 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
2726 | 5042 echo "${ECHO_T}defaulting to auto" >&6 |
2727 | 5043 fi; |
2728 echo $ac_n "checking --enable-fontset argument""... $ac_c" 1>&6 | 5044 |
2729 echo "configure:2730: checking --enable-fontset argument" >&5 | 5045 echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
5046 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6 | |
2730 # Check whether --enable-fontset or --disable-fontset was given. | 5047 # Check whether --enable-fontset or --disable-fontset was given. |
2731 if test "${enable_fontset+set}" = set; then | 5048 if test "${enable_fontset+set}" = set; then |
2732 enableval="$enable_fontset" | 5049 enableval="$enable_fontset" |
2733 : | 5050 |
2734 else | 5051 else |
2735 enable_fontset="no" | 5052 enable_fontset="no" |
2736 fi | 5053 fi; |
2737 | 5054 echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
2738 echo "$ac_t""$enable_fontset" 1>&6 | 5055 echo "${ECHO_T}$enable_fontset" >&6 |
2739 | 5056 |
2740 test -z "$with_x" && with_x=yes | 5057 test -z "$with_x" && with_x=yes |
2741 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes | 5058 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
2742 if test "$with_x" = no; then | 5059 if test "$with_x" = no; then |
2743 echo "$ac_t""defaulting to: don't HAVE_X11" 1>&6 | 5060 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
2744 else | 5061 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6 |
2745 | 5062 else |
5063 | |
2746 # Extract the first word of "xmkmf", so it can be a program name with args. | 5064 # Extract the first word of "xmkmf", so it can be a program name with args. |
2747 set dummy xmkmf; ac_word=$2 | 5065 set dummy xmkmf; ac_word=$2 |
2748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 5066 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2749 echo "configure:2750: checking for $ac_word" >&5 | 5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2750 if eval "test \"`echo '$''{'ac_cv_path_xmkmfpath'+set}'`\" = set"; then | 5068 if test "${ac_cv_path_xmkmfpath+set}" = set; then |
2751 echo $ac_n "(cached) $ac_c" 1>&6 | 5069 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2752 else | 5070 else |
2753 case "$xmkmfpath" in | 5071 case $xmkmfpath in |
2754 /*) | 5072 [\\/]* | ?:[\\/]*) |
2755 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. | 5073 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
2756 ;; | 5074 ;; |
2757 ?:/*) | |
2758 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a dos path. | |
2759 ;; | |
2760 *) | 5075 *) |
2761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2762 ac_dummy="$PATH" | 5077 for as_dir in $PATH |
2763 for ac_dir in $ac_dummy; do | 5078 do |
2764 test -z "$ac_dir" && ac_dir=. | 5079 IFS=$as_save_IFS |
2765 if test -f $ac_dir/$ac_word; then | 5080 test -z "$as_dir" && as_dir=. |
2766 ac_cv_path_xmkmfpath="$ac_dir/$ac_word" | 5081 for ac_exec_ext in '' $ac_executable_extensions; do |
2767 break | 5082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2768 fi | 5083 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
2769 done | 5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2770 IFS="$ac_save_ifs" | 5085 break 2 |
5086 fi | |
5087 done | |
5088 done | |
5089 | |
2771 ;; | 5090 ;; |
2772 esac | 5091 esac |
2773 fi | 5092 fi |
2774 xmkmfpath="$ac_cv_path_xmkmfpath" | 5093 xmkmfpath=$ac_cv_path_xmkmfpath |
5094 | |
2775 if test -n "$xmkmfpath"; then | 5095 if test -n "$xmkmfpath"; then |
2776 echo "$ac_t""$xmkmfpath" 1>&6 | 5096 echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
2777 else | 5097 echo "${ECHO_T}$xmkmfpath" >&6 |
2778 echo "$ac_t""no" 1>&6 | 5098 else |
2779 fi | 5099 echo "$as_me:$LINENO: result: no" >&5 |
2780 | 5100 echo "${ECHO_T}no" >&6 |
2781 | 5101 fi |
2782 # If we find X, set shell vars x_includes and x_libraries to the | 5102 |
2783 # paths, otherwise set no_x=yes. | 5103 |
2784 # Uses ac_ vars as temps to allow command line to override cache and checks. | 5104 echo "$as_me:$LINENO: checking for X" >&5 |
2785 # --without-x overrides everything else, but does not touch the cache. | 5105 echo $ECHO_N "checking for X... $ECHO_C" >&6 |
2786 echo $ac_n "checking for X""... $ac_c" 1>&6 | 5106 |
2787 echo "configure:2788: checking for X" >&5 | |
2788 | 5107 |
2789 # Check whether --with-x or --without-x was given. | 5108 # Check whether --with-x or --without-x was given. |
2790 if test "${with_x+set}" = set; then | 5109 if test "${with_x+set}" = set; then |
2791 withval="$with_x" | 5110 withval="$with_x" |
2792 : | 5111 |
2793 fi | 5112 fi; |
2794 | |
2795 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | 5113 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
2796 if test "x$with_x" = xno; then | 5114 if test "x$with_x" = xno; then |
2797 # The user explicitly disabled X. | 5115 # The user explicitly disabled X. |
2798 have_x=disabled | 5116 have_x=disabled |
2799 else | 5117 else |
2800 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | 5118 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
2801 # Both variables are already set. | 5119 # Both variables are already set. |
2802 have_x=yes | 5120 have_x=yes |
2803 else | 5121 else |
2804 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | 5122 if test "${ac_cv_have_x+set}" = set; then |
2805 echo $ac_n "(cached) $ac_c" 1>&6 | 5123 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2806 else | 5124 else |
2807 # One or both of the vars are not set, and there is no cached value. | 5125 # One or both of the vars are not set, and there is no cached value. |
2808 ac_x_includes=NO ac_x_libraries=NO | 5126 ac_x_includes=no ac_x_libraries=no |
2809 rm -fr conftestdir | 5127 rm -fr conftest.dir |
2810 if mkdir conftestdir; then | 5128 if mkdir conftest.dir; then |
2811 cd conftestdir | 5129 cd conftest.dir |
2812 # Make sure to not put "make" in the Imakefile rules, since we grep it out. | 5130 # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
2813 cat > Imakefile <<'EOF' | 5131 cat >Imakefile <<'_ACEOF' |
2814 acfindx: | 5132 acfindx: |
2815 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | 5133 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
2816 EOF | 5134 _ACEOF |
2817 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | 5135 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
2818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 5136 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
2819 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | 5137 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
2820 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | 5138 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
2821 for ac_extension in a so sl; do | 5139 for ac_extension in a so sl; do |
2822 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | 5140 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
2823 test -f $ac_im_libdir/libX11.$ac_extension; then | 5141 test -f $ac_im_libdir/libX11.$ac_extension; then |
2824 ac_im_usrlibdir=$ac_im_libdir; break | 5142 ac_im_usrlibdir=$ac_im_libdir; break |
2825 fi | 5143 fi |
2826 done | 5144 done |
2827 # Screen out bogus values from the imake configuration. They are | 5145 # Screen out bogus values from the imake configuration. They are |
2828 # bogus both because they are the default anyway, and because | 5146 # bogus both because they are the default anyway, and because |
2829 # using them would break gcc on systems where it needs fixed includes. | 5147 # using them would break gcc on systems where it needs fixed includes. |
2830 case "$ac_im_incroot" in | 5148 case $ac_im_incroot in |
2831 /usr/include) ;; | 5149 /usr/include) ;; |
2832 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | 5150 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
2833 esac | 5151 esac |
2834 case "$ac_im_usrlibdir" in | 5152 case $ac_im_usrlibdir in |
2835 /usr/lib | /lib) ;; | 5153 /usr/lib | /lib) ;; |
2836 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | 5154 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
2837 esac | 5155 esac |
2838 fi | 5156 fi |
2839 cd .. | 5157 cd .. |
2840 rm -fr conftestdir | 5158 rm -fr conftest.dir |
2841 fi | 5159 fi |
2842 | 5160 |
2843 if test "$ac_x_includes" = NO; then | 5161 # Standard set of common directories for X headers. |
2844 # Guess where to find include files, by looking for this one X11 .h file. | 5162 # Check X11 before X11Rn because it is often a symlink to the current release. |
2845 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | 5163 ac_x_header_dirs=' |
2846 | 5164 /usr/X11/include |
5165 /usr/X11R6/include | |
5166 /usr/X11R5/include | |
5167 /usr/X11R4/include | |
5168 | |
5169 /usr/include/X11 | |
5170 /usr/include/X11R6 | |
5171 /usr/include/X11R5 | |
5172 /usr/include/X11R4 | |
5173 | |
5174 /usr/local/X11/include | |
5175 /usr/local/X11R6/include | |
5176 /usr/local/X11R5/include | |
5177 /usr/local/X11R4/include | |
5178 | |
5179 /usr/local/include/X11 | |
5180 /usr/local/include/X11R6 | |
5181 /usr/local/include/X11R5 | |
5182 /usr/local/include/X11R4 | |
5183 | |
5184 /usr/X386/include | |
5185 /usr/x386/include | |
5186 /usr/XFree86/include/X11 | |
5187 | |
5188 /usr/include | |
5189 /usr/local/include | |
5190 /usr/unsupported/include | |
5191 /usr/athena/include | |
5192 /usr/local/x11r5/include | |
5193 /usr/lpp/Xamples/include | |
5194 | |
5195 /usr/openwin/include | |
5196 /usr/openwin/share/include' | |
5197 | |
5198 if test "$ac_x_includes" = no; then | |
5199 # Guess where to find include files, by looking for Intrinsic.h. | |
2847 # First, try using that file with no special directory specified. | 5200 # First, try using that file with no special directory specified. |
2848 cat > conftest.$ac_ext <<EOF | 5201 cat >conftest.$ac_ext <<_ACEOF |
2849 #line 2850 "configure" | 5202 /* confdefs.h. */ |
2850 #include "confdefs.h" | 5203 _ACEOF |
2851 #include <$x_direct_test_include> | 5204 cat confdefs.h >>conftest.$ac_ext |
2852 EOF | 5205 cat >>conftest.$ac_ext <<_ACEOF |
2853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5206 /* end confdefs.h. */ |
2854 { (eval echo configure:2855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5207 #include <X11/Intrinsic.h> |
2855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5208 _ACEOF |
2856 if test -z "$ac_err"; then | 5209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2857 rm -rf conftest* | 5210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5211 ac_status=$? | |
5212 grep -v '^ *+' conftest.er1 >conftest.err | |
5213 rm -f conftest.er1 | |
5214 cat conftest.err >&5 | |
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5216 (exit $ac_status); } >/dev/null; then | |
5217 if test -s conftest.err; then | |
5218 ac_cpp_err=$ac_c_preproc_warn_flag | |
5219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5220 else | |
5221 ac_cpp_err= | |
5222 fi | |
5223 else | |
5224 ac_cpp_err=yes | |
5225 fi | |
5226 if test -z "$ac_cpp_err"; then | |
2858 # We can compile using X headers with no special include directory. | 5227 # We can compile using X headers with no special include directory. |
2859 ac_x_includes= | 5228 ac_x_includes= |
2860 else | 5229 else |
2861 echo "$ac_err" >&5 | 5230 echo "$as_me: failed program was:" >&5 |
2862 echo "configure: failed program was:" >&5 | 5231 sed 's/^/| /' conftest.$ac_ext >&5 |
2863 cat conftest.$ac_ext >&5 | 5232 |
2864 rm -rf conftest* | 5233 for ac_dir in $ac_x_header_dirs; do |
2865 # Look for the header file in a standard set of common directories. | 5234 if test -r "$ac_dir/X11/Intrinsic.h"; then |
2866 # Check X11 before X11Rn because it is often a symlink to the current release. | 5235 ac_x_includes=$ac_dir |
2867 for ac_dir in \ | 5236 break |
2868 /usr/X11/include \ | 5237 fi |
2869 /usr/X11R6/include \ | 5238 done |
2870 /usr/X11R5/include \ | 5239 fi |
2871 /usr/X11R4/include \ | 5240 rm -f conftest.err conftest.$ac_ext |
2872 \ | 5241 fi # $ac_x_includes = no |
2873 /usr/include/X11 \ | 5242 |
2874 /usr/include/X11R6 \ | 5243 if test "$ac_x_libraries" = no; then |
2875 /usr/include/X11R5 \ | |
2876 /usr/include/X11R4 \ | |
2877 \ | |
2878 /usr/local/X11/include \ | |
2879 /usr/local/X11R6/include \ | |
2880 /usr/local/X11R5/include \ | |
2881 /usr/local/X11R4/include \ | |
2882 \ | |
2883 /usr/local/include/X11 \ | |
2884 /usr/local/include/X11R6 \ | |
2885 /usr/local/include/X11R5 \ | |
2886 /usr/local/include/X11R4 \ | |
2887 \ | |
2888 /usr/X386/include \ | |
2889 /usr/x386/include \ | |
2890 /usr/XFree86/include/X11 \ | |
2891 \ | |
2892 /usr/include \ | |
2893 /usr/local/include \ | |
2894 /usr/unsupported/include \ | |
2895 /usr/athena/include \ | |
2896 /usr/local/x11r5/include \ | |
2897 /usr/lpp/Xamples/include \ | |
2898 \ | |
2899 /usr/openwin/include \ | |
2900 /usr/openwin/share/include \ | |
2901 ; \ | |
2902 do | |
2903 if test -r "$ac_dir/$x_direct_test_include"; then | |
2904 ac_x_includes=$ac_dir | |
2905 break | |
2906 fi | |
2907 done | |
2908 fi | |
2909 rm -f conftest* | |
2910 fi # $ac_x_includes = NO | |
2911 | |
2912 if test "$ac_x_libraries" = NO; then | |
2913 # Check for the libraries. | 5244 # Check for the libraries. |
2914 | |
2915 test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
2916 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
2917 | |
2918 # See if we find them without any special options. | 5245 # See if we find them without any special options. |
2919 # Don't add to $LIBS permanently. | 5246 # Don't add to $LIBS permanently. |
2920 ac_save_LIBS="$LIBS" | 5247 ac_save_LIBS=$LIBS |
2921 LIBS="-l$x_direct_test_library $LIBS" | 5248 LIBS="-lXt $LIBS" |
2922 cat > conftest.$ac_ext <<EOF | 5249 cat >conftest.$ac_ext <<_ACEOF |
2923 #line 2924 "configure" | 5250 /* confdefs.h. */ |
2924 #include "confdefs.h" | 5251 _ACEOF |
2925 | 5252 cat confdefs.h >>conftest.$ac_ext |
2926 int main() { | 5253 cat >>conftest.$ac_ext <<_ACEOF |
2927 ${x_direct_test_function}() | 5254 /* end confdefs.h. */ |
2928 ; return 0; } | 5255 #include <X11/Intrinsic.h> |
2929 EOF | 5256 int |
2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5257 main () |
2931 rm -rf conftest* | 5258 { |
2932 LIBS="$ac_save_LIBS" | 5259 XtMalloc (0) |
5260 ; | |
5261 return 0; | |
5262 } | |
5263 _ACEOF | |
5264 rm -f conftest.$ac_objext conftest$ac_exeext | |
5265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5266 (eval $ac_link) 2>conftest.er1 | |
5267 ac_status=$? | |
5268 grep -v '^ *+' conftest.er1 >conftest.err | |
5269 rm -f conftest.er1 | |
5270 cat conftest.err >&5 | |
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5272 (exit $ac_status); } && | |
5273 { ac_try='test -z "$ac_c_werror_flag" | |
5274 || test ! -s conftest.err' | |
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5276 (eval $ac_try) 2>&5 | |
5277 ac_status=$? | |
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5279 (exit $ac_status); }; } && | |
5280 { ac_try='test -s conftest$ac_exeext' | |
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5282 (eval $ac_try) 2>&5 | |
5283 ac_status=$? | |
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5285 (exit $ac_status); }; }; then | |
5286 LIBS=$ac_save_LIBS | |
2933 # We can link X programs with no special library path. | 5287 # We can link X programs with no special library path. |
2934 ac_x_libraries= | 5288 ac_x_libraries= |
2935 else | 5289 else |
2936 echo "configure: failed program was:" >&5 | 5290 echo "$as_me: failed program was:" >&5 |
2937 cat conftest.$ac_ext >&5 | 5291 sed 's/^/| /' conftest.$ac_ext >&5 |
2938 rm -rf conftest* | 5292 |
2939 LIBS="$ac_save_LIBS" | 5293 LIBS=$ac_save_LIBS |
2940 # First see if replacing the include by lib works. | 5294 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
2941 # Check X11 before X11Rn because it is often a symlink to the current release. | |
2942 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
2943 /usr/X11/lib \ | |
2944 /usr/X11R6/lib \ | |
2945 /usr/X11R5/lib \ | |
2946 /usr/X11R4/lib \ | |
2947 \ | |
2948 /usr/lib/X11 \ | |
2949 /usr/lib/X11R6 \ | |
2950 /usr/lib/X11R5 \ | |
2951 /usr/lib/X11R4 \ | |
2952 \ | |
2953 /usr/local/X11/lib \ | |
2954 /usr/local/X11R6/lib \ | |
2955 /usr/local/X11R5/lib \ | |
2956 /usr/local/X11R4/lib \ | |
2957 \ | |
2958 /usr/local/lib/X11 \ | |
2959 /usr/local/lib/X11R6 \ | |
2960 /usr/local/lib/X11R5 \ | |
2961 /usr/local/lib/X11R4 \ | |
2962 \ | |
2963 /usr/X386/lib \ | |
2964 /usr/x386/lib \ | |
2965 /usr/XFree86/lib/X11 \ | |
2966 \ | |
2967 /usr/lib \ | |
2968 /usr/local/lib \ | |
2969 /usr/unsupported/lib \ | |
2970 /usr/athena/lib \ | |
2971 /usr/local/x11r5/lib \ | |
2972 /usr/lpp/Xamples/lib \ | |
2973 /lib/usr/lib/X11 \ | |
2974 \ | |
2975 /usr/openwin/lib \ | |
2976 /usr/openwin/share/lib \ | |
2977 ; \ | |
2978 do | 5295 do |
5296 # Don't even attempt the hair of trying to link an X program! | |
2979 for ac_extension in a so sl; do | 5297 for ac_extension in a so sl; do |
2980 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | 5298 if test -r $ac_dir/libXt.$ac_extension; then |
2981 ac_x_libraries=$ac_dir | 5299 ac_x_libraries=$ac_dir |
2982 break 2 | 5300 break 2 |
2983 fi | 5301 fi |
2984 done | 5302 done |
2985 done | 5303 done |
2986 fi | 5304 fi |
2987 rm -f conftest* | 5305 rm -f conftest.err conftest.$ac_objext \ |
2988 fi # $ac_x_libraries = NO | 5306 conftest$ac_exeext conftest.$ac_ext |
2989 | 5307 fi # $ac_x_libraries = no |
2990 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | 5308 |
5309 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
2991 # Didn't find X anywhere. Cache the known absence of X. | 5310 # Didn't find X anywhere. Cache the known absence of X. |
2992 ac_cv_have_x="have_x=no" | 5311 ac_cv_have_x="have_x=no" |
2993 else | 5312 else |
2994 # Record where we found X for the cache. | 5313 # Record where we found X for the cache. |
2995 ac_cv_have_x="have_x=yes \ | 5314 ac_cv_have_x="have_x=yes \ |
2996 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | 5315 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
2997 fi | 5316 fi |
2998 fi | 5317 fi |
5318 | |
2999 fi | 5319 fi |
3000 eval "$ac_cv_have_x" | 5320 eval "$ac_cv_have_x" |
3001 fi # $with_x != no | 5321 fi # $with_x != no |
3002 | 5322 |
3003 if test "$have_x" != yes; then | 5323 if test "$have_x" != yes; then |
3004 echo "$ac_t""$have_x" 1>&6 | 5324 echo "$as_me:$LINENO: result: $have_x" >&5 |
5325 echo "${ECHO_T}$have_x" >&6 | |
3005 no_x=yes | 5326 no_x=yes |
3006 else | 5327 else |
3007 # If each of the values was on the command line, it overrides each guess. | 5328 # If each of the values was on the command line, it overrides each guess. |
3008 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | 5329 test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
3009 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | 5330 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
3010 # Update the cache value to reflect the command line values. | 5331 # Update the cache value to reflect the command line values. |
3011 ac_cv_have_x="have_x=yes \ | 5332 ac_cv_have_x="have_x=yes \ |
3012 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | 5333 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
3013 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | 5334 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
5335 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
3014 fi | 5336 fi |
3015 | 5337 |
3016 if test "$no_x" = yes; then | 5338 if test "$no_x" = yes; then |
3017 # Not all programs may use this symbol, but it does not hurt to define it. | 5339 # Not all programs may use this symbol, but it does not hurt to define it. |
3018 cat >> confdefs.h <<\EOF | 5340 |
5341 cat >>confdefs.h <<\_ACEOF | |
3019 #define X_DISPLAY_MISSING 1 | 5342 #define X_DISPLAY_MISSING 1 |
3020 EOF | 5343 _ACEOF |
3021 | 5344 |
3022 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | 5345 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
3023 else | 5346 else |
3024 if test -n "$x_includes"; then | 5347 if test -n "$x_includes"; then |
3025 X_CFLAGS="$X_CFLAGS -I$x_includes" | 5348 X_CFLAGS="$X_CFLAGS -I$x_includes" |
3028 # It would also be nice to do this for all -L options, not just this one. | 5351 # It would also be nice to do this for all -L options, not just this one. |
3029 if test -n "$x_libraries"; then | 5352 if test -n "$x_libraries"; then |
3030 X_LIBS="$X_LIBS -L$x_libraries" | 5353 X_LIBS="$X_LIBS -L$x_libraries" |
3031 # For Solaris; some versions of Sun CC require a space after -R and | 5354 # For Solaris; some versions of Sun CC require a space after -R and |
3032 # others require no space. Words are not sufficient . . . . | 5355 # others require no space. Words are not sufficient . . . . |
3033 case "`(uname -sr) 2>/dev/null`" in | 5356 case `(uname -sr) 2>/dev/null` in |
3034 "SunOS 5"*) | 5357 "SunOS 5"*) |
3035 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | 5358 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
3036 echo "configure:3037: checking whether -R must be followed by a space" >&5 | 5359 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
3037 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | 5360 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
3038 cat > conftest.$ac_ext <<EOF | 5361 cat >conftest.$ac_ext <<_ACEOF |
3039 #line 3040 "configure" | 5362 /* confdefs.h. */ |
3040 #include "confdefs.h" | 5363 _ACEOF |
3041 | 5364 cat confdefs.h >>conftest.$ac_ext |
3042 int main() { | 5365 cat >>conftest.$ac_ext <<_ACEOF |
3043 | 5366 /* end confdefs.h. */ |
3044 ; return 0; } | 5367 |
3045 EOF | 5368 int |
3046 if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5369 main () |
3047 rm -rf conftest* | 5370 { |
5371 | |
5372 ; | |
5373 return 0; | |
5374 } | |
5375 _ACEOF | |
5376 rm -f conftest.$ac_objext conftest$ac_exeext | |
5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5378 (eval $ac_link) 2>conftest.er1 | |
5379 ac_status=$? | |
5380 grep -v '^ *+' conftest.er1 >conftest.err | |
5381 rm -f conftest.er1 | |
5382 cat conftest.err >&5 | |
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5384 (exit $ac_status); } && | |
5385 { ac_try='test -z "$ac_c_werror_flag" | |
5386 || test ! -s conftest.err' | |
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5388 (eval $ac_try) 2>&5 | |
5389 ac_status=$? | |
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5391 (exit $ac_status); }; } && | |
5392 { ac_try='test -s conftest$ac_exeext' | |
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5394 (eval $ac_try) 2>&5 | |
5395 ac_status=$? | |
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5397 (exit $ac_status); }; }; then | |
3048 ac_R_nospace=yes | 5398 ac_R_nospace=yes |
3049 else | 5399 else |
3050 echo "configure: failed program was:" >&5 | 5400 echo "$as_me: failed program was:" >&5 |
3051 cat conftest.$ac_ext >&5 | 5401 sed 's/^/| /' conftest.$ac_ext >&5 |
3052 rm -rf conftest* | 5402 |
3053 ac_R_nospace=no | 5403 ac_R_nospace=no |
3054 fi | 5404 fi |
3055 rm -f conftest* | 5405 rm -f conftest.err conftest.$ac_objext \ |
5406 conftest$ac_exeext conftest.$ac_ext | |
3056 if test $ac_R_nospace = yes; then | 5407 if test $ac_R_nospace = yes; then |
3057 echo "$ac_t""no" 1>&6 | 5408 echo "$as_me:$LINENO: result: no" >&5 |
5409 echo "${ECHO_T}no" >&6 | |
3058 X_LIBS="$X_LIBS -R$x_libraries" | 5410 X_LIBS="$X_LIBS -R$x_libraries" |
3059 else | 5411 else |
3060 LIBS="$ac_xsave_LIBS -R $x_libraries" | 5412 LIBS="$ac_xsave_LIBS -R $x_libraries" |
3061 cat > conftest.$ac_ext <<EOF | 5413 cat >conftest.$ac_ext <<_ACEOF |
3062 #line 3063 "configure" | 5414 /* confdefs.h. */ |
3063 #include "confdefs.h" | 5415 _ACEOF |
3064 | 5416 cat confdefs.h >>conftest.$ac_ext |
3065 int main() { | 5417 cat >>conftest.$ac_ext <<_ACEOF |
3066 | 5418 /* end confdefs.h. */ |
3067 ; return 0; } | 5419 |
3068 EOF | 5420 int |
3069 if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5421 main () |
3070 rm -rf conftest* | 5422 { |
5423 | |
5424 ; | |
5425 return 0; | |
5426 } | |
5427 _ACEOF | |
5428 rm -f conftest.$ac_objext conftest$ac_exeext | |
5429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5430 (eval $ac_link) 2>conftest.er1 | |
5431 ac_status=$? | |
5432 grep -v '^ *+' conftest.er1 >conftest.err | |
5433 rm -f conftest.er1 | |
5434 cat conftest.err >&5 | |
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5436 (exit $ac_status); } && | |
5437 { ac_try='test -z "$ac_c_werror_flag" | |
5438 || test ! -s conftest.err' | |
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5440 (eval $ac_try) 2>&5 | |
5441 ac_status=$? | |
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5443 (exit $ac_status); }; } && | |
5444 { ac_try='test -s conftest$ac_exeext' | |
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5446 (eval $ac_try) 2>&5 | |
5447 ac_status=$? | |
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5449 (exit $ac_status); }; }; then | |
3071 ac_R_space=yes | 5450 ac_R_space=yes |
3072 else | 5451 else |
3073 echo "configure: failed program was:" >&5 | 5452 echo "$as_me: failed program was:" >&5 |
3074 cat conftest.$ac_ext >&5 | 5453 sed 's/^/| /' conftest.$ac_ext >&5 |
3075 rm -rf conftest* | 5454 |
3076 ac_R_space=no | 5455 ac_R_space=no |
3077 fi | 5456 fi |
3078 rm -f conftest* | 5457 rm -f conftest.err conftest.$ac_objext \ |
5458 conftest$ac_exeext conftest.$ac_ext | |
3079 if test $ac_R_space = yes; then | 5459 if test $ac_R_space = yes; then |
3080 echo "$ac_t""yes" 1>&6 | 5460 echo "$as_me:$LINENO: result: yes" >&5 |
5461 echo "${ECHO_T}yes" >&6 | |
3081 X_LIBS="$X_LIBS -R $x_libraries" | 5462 X_LIBS="$X_LIBS -R $x_libraries" |
3082 else | 5463 else |
3083 echo "$ac_t""neither works" 1>&6 | 5464 echo "$as_me:$LINENO: result: neither works" >&5 |
5465 echo "${ECHO_T}neither works" >&6 | |
3084 fi | 5466 fi |
3085 fi | 5467 fi |
3086 LIBS="$ac_xsave_LIBS" | 5468 LIBS=$ac_xsave_LIBS |
3087 esac | 5469 esac |
3088 fi | 5470 fi |
3089 | 5471 |
3090 # Check for system-dependent libraries X programs must link with. | 5472 # Check for system-dependent libraries X programs must link with. |
3091 # Do this before checking for the system-independent R6 libraries | 5473 # Do this before checking for the system-independent R6 libraries |
3092 # (-lICE), since we may need -lsocket or whatever for X linking. | 5474 # (-lICE), since we may need -lsocket or whatever for X linking. |
3093 | 5475 |
3094 if test "$ISC" = yes; then | 5476 if test "$ISC" = yes; then |
3095 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | 5477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
3096 else | 5478 else |
3097 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | 5479 # Martyn Johnson says this is needed for Ultrix, if the X |
3098 # libraries were built with DECnet support. And karl@cs.umb.edu says | 5480 # libraries were built with DECnet support. And Karl Berry says |
3099 # the Alpha needs dnet_stub (dnet does not exist). | 5481 # the Alpha needs dnet_stub (dnet does not exist). |
3100 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 5482 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
3101 echo "configure:3102: checking for dnet_ntoa in -ldnet" >&5 | 5483 cat >conftest.$ac_ext <<_ACEOF |
3102 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 5484 /* confdefs.h. */ |
3103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5485 _ACEOF |
3104 echo $ac_n "(cached) $ac_c" 1>&6 | 5486 cat confdefs.h >>conftest.$ac_ext |
3105 else | 5487 cat >>conftest.$ac_ext <<_ACEOF |
3106 ac_save_LIBS="$LIBS" | 5488 /* end confdefs.h. */ |
5489 | |
5490 /* Override any gcc2 internal prototype to avoid an error. */ | |
5491 #ifdef __cplusplus | |
5492 extern "C" | |
5493 #endif | |
5494 /* We use char because int might match the return type of a gcc2 | |
5495 builtin and then its argument prototype would still apply. */ | |
5496 char XOpenDisplay (); | |
5497 int | |
5498 main () | |
5499 { | |
5500 XOpenDisplay (); | |
5501 ; | |
5502 return 0; | |
5503 } | |
5504 _ACEOF | |
5505 rm -f conftest.$ac_objext conftest$ac_exeext | |
5506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5507 (eval $ac_link) 2>conftest.er1 | |
5508 ac_status=$? | |
5509 grep -v '^ *+' conftest.er1 >conftest.err | |
5510 rm -f conftest.er1 | |
5511 cat conftest.err >&5 | |
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5513 (exit $ac_status); } && | |
5514 { ac_try='test -z "$ac_c_werror_flag" | |
5515 || test ! -s conftest.err' | |
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5517 (eval $ac_try) 2>&5 | |
5518 ac_status=$? | |
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5520 (exit $ac_status); }; } && | |
5521 { ac_try='test -s conftest$ac_exeext' | |
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5523 (eval $ac_try) 2>&5 | |
5524 ac_status=$? | |
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5526 (exit $ac_status); }; }; then | |
5527 : | |
5528 else | |
5529 echo "$as_me: failed program was:" >&5 | |
5530 sed 's/^/| /' conftest.$ac_ext >&5 | |
5531 | |
5532 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
5533 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
5534 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
5535 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5536 else | |
5537 ac_check_lib_save_LIBS=$LIBS | |
3107 LIBS="-ldnet $LIBS" | 5538 LIBS="-ldnet $LIBS" |
3108 cat > conftest.$ac_ext <<EOF | 5539 cat >conftest.$ac_ext <<_ACEOF |
3109 #line 3110 "configure" | 5540 /* confdefs.h. */ |
3110 #include "confdefs.h" | 5541 _ACEOF |
5542 cat confdefs.h >>conftest.$ac_ext | |
5543 cat >>conftest.$ac_ext <<_ACEOF | |
5544 /* end confdefs.h. */ | |
5545 | |
3111 /* Override any gcc2 internal prototype to avoid an error. */ | 5546 /* Override any gcc2 internal prototype to avoid an error. */ |
5547 #ifdef __cplusplus | |
5548 extern "C" | |
5549 #endif | |
3112 /* We use char because int might match the return type of a gcc2 | 5550 /* We use char because int might match the return type of a gcc2 |
3113 builtin and then its argument prototype would still apply. */ | 5551 builtin and then its argument prototype would still apply. */ |
3114 char dnet_ntoa(); | 5552 char dnet_ntoa (); |
3115 | 5553 int |
3116 int main() { | 5554 main () |
3117 dnet_ntoa() | 5555 { |
3118 ; return 0; } | 5556 dnet_ntoa (); |
3119 EOF | 5557 ; |
3120 if { (eval echo configure:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5558 return 0; |
3121 rm -rf conftest* | 5559 } |
3122 eval "ac_cv_lib_$ac_lib_var=yes" | 5560 _ACEOF |
3123 else | 5561 rm -f conftest.$ac_objext conftest$ac_exeext |
3124 echo "configure: failed program was:" >&5 | 5562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3125 cat conftest.$ac_ext >&5 | 5563 (eval $ac_link) 2>conftest.er1 |
3126 rm -rf conftest* | 5564 ac_status=$? |
3127 eval "ac_cv_lib_$ac_lib_var=no" | 5565 grep -v '^ *+' conftest.er1 >conftest.err |
3128 fi | 5566 rm -f conftest.er1 |
3129 rm -f conftest* | 5567 cat conftest.err >&5 |
3130 LIBS="$ac_save_LIBS" | 5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3131 | 5569 (exit $ac_status); } && |
3132 fi | 5570 { ac_try='test -z "$ac_c_werror_flag" |
3133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5571 || test ! -s conftest.err' |
3134 echo "$ac_t""yes" 1>&6 | 5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5573 (eval $ac_try) 2>&5 | |
5574 ac_status=$? | |
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5576 (exit $ac_status); }; } && | |
5577 { ac_try='test -s conftest$ac_exeext' | |
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5579 (eval $ac_try) 2>&5 | |
5580 ac_status=$? | |
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5582 (exit $ac_status); }; }; then | |
5583 ac_cv_lib_dnet_dnet_ntoa=yes | |
5584 else | |
5585 echo "$as_me: failed program was:" >&5 | |
5586 sed 's/^/| /' conftest.$ac_ext >&5 | |
5587 | |
5588 ac_cv_lib_dnet_dnet_ntoa=no | |
5589 fi | |
5590 rm -f conftest.err conftest.$ac_objext \ | |
5591 conftest$ac_exeext conftest.$ac_ext | |
5592 LIBS=$ac_check_lib_save_LIBS | |
5593 fi | |
5594 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
5595 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
5596 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
3135 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | 5597 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3136 else | |
3137 echo "$ac_t""no" 1>&6 | |
3138 fi | 5598 fi |
3139 | 5599 |
3140 if test $ac_cv_lib_dnet_dnet_ntoa = no; then | 5600 if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
3141 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | 5601 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
3142 echo "configure:3143: checking for dnet_ntoa in -ldnet_stub" >&5 | 5602 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
3143 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 5603 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
3144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5604 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3145 echo $ac_n "(cached) $ac_c" 1>&6 | 5605 else |
3146 else | 5606 ac_check_lib_save_LIBS=$LIBS |
3147 ac_save_LIBS="$LIBS" | |
3148 LIBS="-ldnet_stub $LIBS" | 5607 LIBS="-ldnet_stub $LIBS" |
3149 cat > conftest.$ac_ext <<EOF | 5608 cat >conftest.$ac_ext <<_ACEOF |
3150 #line 3151 "configure" | 5609 /* confdefs.h. */ |
3151 #include "confdefs.h" | 5610 _ACEOF |
5611 cat confdefs.h >>conftest.$ac_ext | |
5612 cat >>conftest.$ac_ext <<_ACEOF | |
5613 /* end confdefs.h. */ | |
5614 | |
3152 /* Override any gcc2 internal prototype to avoid an error. */ | 5615 /* Override any gcc2 internal prototype to avoid an error. */ |
5616 #ifdef __cplusplus | |
5617 extern "C" | |
5618 #endif | |
3153 /* We use char because int might match the return type of a gcc2 | 5619 /* We use char because int might match the return type of a gcc2 |
3154 builtin and then its argument prototype would still apply. */ | 5620 builtin and then its argument prototype would still apply. */ |
3155 char dnet_ntoa(); | 5621 char dnet_ntoa (); |
3156 | 5622 int |
3157 int main() { | 5623 main () |
3158 dnet_ntoa() | 5624 { |
3159 ; return 0; } | 5625 dnet_ntoa (); |
3160 EOF | 5626 ; |
3161 if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5627 return 0; |
3162 rm -rf conftest* | 5628 } |
3163 eval "ac_cv_lib_$ac_lib_var=yes" | 5629 _ACEOF |
3164 else | 5630 rm -f conftest.$ac_objext conftest$ac_exeext |
3165 echo "configure: failed program was:" >&5 | 5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3166 cat conftest.$ac_ext >&5 | 5632 (eval $ac_link) 2>conftest.er1 |
3167 rm -rf conftest* | 5633 ac_status=$? |
3168 eval "ac_cv_lib_$ac_lib_var=no" | 5634 grep -v '^ *+' conftest.er1 >conftest.err |
3169 fi | 5635 rm -f conftest.er1 |
3170 rm -f conftest* | 5636 cat conftest.err >&5 |
3171 LIBS="$ac_save_LIBS" | 5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3172 | 5638 (exit $ac_status); } && |
3173 fi | 5639 { ac_try='test -z "$ac_c_werror_flag" |
3174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5640 || test ! -s conftest.err' |
3175 echo "$ac_t""yes" 1>&6 | 5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5642 (eval $ac_try) 2>&5 | |
5643 ac_status=$? | |
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5645 (exit $ac_status); }; } && | |
5646 { ac_try='test -s conftest$ac_exeext' | |
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5648 (eval $ac_try) 2>&5 | |
5649 ac_status=$? | |
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5651 (exit $ac_status); }; }; then | |
5652 ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
5653 else | |
5654 echo "$as_me: failed program was:" >&5 | |
5655 sed 's/^/| /' conftest.$ac_ext >&5 | |
5656 | |
5657 ac_cv_lib_dnet_stub_dnet_ntoa=no | |
5658 fi | |
5659 rm -f conftest.err conftest.$ac_objext \ | |
5660 conftest$ac_exeext conftest.$ac_ext | |
5661 LIBS=$ac_check_lib_save_LIBS | |
5662 fi | |
5663 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
5664 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
5665 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
3176 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | 5666 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3177 else | |
3178 echo "$ac_t""no" 1>&6 | |
3179 fi | 5667 fi |
3180 | 5668 |
3181 fi | 5669 fi |
5670 fi | |
5671 rm -f conftest.err conftest.$ac_objext \ | |
5672 conftest$ac_exeext conftest.$ac_ext | |
5673 LIBS="$ac_xsave_LIBS" | |
3182 | 5674 |
3183 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | 5675 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
3184 # to get the SysV transport functions. | 5676 # to get the SysV transport functions. |
3185 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | 5677 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
3186 # needs -lnsl. | 5678 # needs -lnsl. |
3187 # The nsl library prevents programs from opening the X display | 5679 # The nsl library prevents programs from opening the X display |
3188 # on Irix 5.2, according to dickey@clark.net. | 5680 # on Irix 5.2, according to T.E. Dickey. |
3189 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | 5681 # The functions gethostbyname, getservbyname, and inet_addr are |
3190 echo "configure:3191: checking for gethostbyname" >&5 | 5682 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
3191 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | 5683 echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
3192 echo $ac_n "(cached) $ac_c" 1>&6 | 5684 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
3193 else | 5685 if test "${ac_cv_func_gethostbyname+set}" = set; then |
3194 cat > conftest.$ac_ext <<EOF | 5686 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3195 #line 3196 "configure" | 5687 else |
3196 #include "confdefs.h" | 5688 cat >conftest.$ac_ext <<_ACEOF |
5689 /* confdefs.h. */ | |
5690 _ACEOF | |
5691 cat confdefs.h >>conftest.$ac_ext | |
5692 cat >>conftest.$ac_ext <<_ACEOF | |
5693 /* end confdefs.h. */ | |
5694 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
5695 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5696 #define gethostbyname innocuous_gethostbyname | |
5697 | |
3197 /* System header to define __stub macros and hopefully few prototypes, | 5698 /* System header to define __stub macros and hopefully few prototypes, |
3198 which can conflict with char gethostbyname(); below. */ | 5699 which can conflict with char gethostbyname (); below. |
3199 #include <assert.h> | 5700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5701 <limits.h> exists even on freestanding compilers. */ | |
5702 | |
5703 #ifdef __STDC__ | |
5704 # include <limits.h> | |
5705 #else | |
5706 # include <assert.h> | |
5707 #endif | |
5708 | |
5709 #undef gethostbyname | |
5710 | |
3200 /* Override any gcc2 internal prototype to avoid an error. */ | 5711 /* Override any gcc2 internal prototype to avoid an error. */ |
5712 #ifdef __cplusplus | |
5713 extern "C" | |
5714 { | |
5715 #endif | |
3201 /* We use char because int might match the return type of a gcc2 | 5716 /* We use char because int might match the return type of a gcc2 |
3202 builtin and then its argument prototype would still apply. */ | 5717 builtin and then its argument prototype would still apply. */ |
3203 char gethostbyname(); | 5718 char gethostbyname (); |
3204 | |
3205 int main() { | |
3206 | |
3207 /* The GNU C library defines this for functions which it implements | 5719 /* The GNU C library defines this for functions which it implements |
3208 to always fail with ENOSYS. Some functions are actually named | 5720 to always fail with ENOSYS. Some functions are actually named |
3209 something starting with __ and the normal name is an alias. */ | 5721 something starting with __ and the normal name is an alias. */ |
3210 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | 5722 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
3211 choke me | 5723 choke me |
3212 #else | 5724 #else |
3213 gethostbyname(); | 5725 char (*f) () = gethostbyname; |
3214 #endif | 5726 #endif |
3215 | 5727 #ifdef __cplusplus |
3216 ; return 0; } | 5728 } |
3217 EOF | 5729 #endif |
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5730 |
3219 rm -rf conftest* | 5731 int |
3220 eval "ac_cv_func_gethostbyname=yes" | 5732 main () |
3221 else | 5733 { |
3222 echo "configure: failed program was:" >&5 | 5734 return f != gethostbyname; |
3223 cat conftest.$ac_ext >&5 | 5735 ; |
3224 rm -rf conftest* | 5736 return 0; |
3225 eval "ac_cv_func_gethostbyname=no" | 5737 } |
3226 fi | 5738 _ACEOF |
3227 rm -f conftest* | 5739 rm -f conftest.$ac_objext conftest$ac_exeext |
3228 fi | 5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3229 | 5741 (eval $ac_link) 2>conftest.er1 |
3230 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | 5742 ac_status=$? |
3231 echo "$ac_t""yes" 1>&6 | 5743 grep -v '^ *+' conftest.er1 >conftest.err |
3232 : | 5744 rm -f conftest.er1 |
3233 else | 5745 cat conftest.err >&5 |
3234 echo "$ac_t""no" 1>&6 | 5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3235 fi | 5747 (exit $ac_status); } && |
5748 { ac_try='test -z "$ac_c_werror_flag" | |
5749 || test ! -s conftest.err' | |
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5751 (eval $ac_try) 2>&5 | |
5752 ac_status=$? | |
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5754 (exit $ac_status); }; } && | |
5755 { ac_try='test -s conftest$ac_exeext' | |
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5757 (eval $ac_try) 2>&5 | |
5758 ac_status=$? | |
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5760 (exit $ac_status); }; }; then | |
5761 ac_cv_func_gethostbyname=yes | |
5762 else | |
5763 echo "$as_me: failed program was:" >&5 | |
5764 sed 's/^/| /' conftest.$ac_ext >&5 | |
5765 | |
5766 ac_cv_func_gethostbyname=no | |
5767 fi | |
5768 rm -f conftest.err conftest.$ac_objext \ | |
5769 conftest$ac_exeext conftest.$ac_ext | |
5770 fi | |
5771 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
5772 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
3236 | 5773 |
3237 if test $ac_cv_func_gethostbyname = no; then | 5774 if test $ac_cv_func_gethostbyname = no; then |
3238 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | 5775 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3239 echo "configure:3240: checking for gethostbyname in -lnsl" >&5 | 5776 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3240 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | 5777 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5778 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3242 echo $ac_n "(cached) $ac_c" 1>&6 | 5779 else |
3243 else | 5780 ac_check_lib_save_LIBS=$LIBS |
3244 ac_save_LIBS="$LIBS" | |
3245 LIBS="-lnsl $LIBS" | 5781 LIBS="-lnsl $LIBS" |
3246 cat > conftest.$ac_ext <<EOF | 5782 cat >conftest.$ac_ext <<_ACEOF |
3247 #line 3248 "configure" | 5783 /* confdefs.h. */ |
3248 #include "confdefs.h" | 5784 _ACEOF |
5785 cat confdefs.h >>conftest.$ac_ext | |
5786 cat >>conftest.$ac_ext <<_ACEOF | |
5787 /* end confdefs.h. */ | |
5788 | |
3249 /* Override any gcc2 internal prototype to avoid an error. */ | 5789 /* Override any gcc2 internal prototype to avoid an error. */ |
5790 #ifdef __cplusplus | |
5791 extern "C" | |
5792 #endif | |
3250 /* We use char because int might match the return type of a gcc2 | 5793 /* We use char because int might match the return type of a gcc2 |
3251 builtin and then its argument prototype would still apply. */ | 5794 builtin and then its argument prototype would still apply. */ |
3252 char gethostbyname(); | 5795 char gethostbyname (); |
3253 | 5796 int |
3254 int main() { | 5797 main () |
3255 gethostbyname() | 5798 { |
3256 ; return 0; } | 5799 gethostbyname (); |
3257 EOF | 5800 ; |
3258 if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5801 return 0; |
3259 rm -rf conftest* | 5802 } |
3260 eval "ac_cv_lib_$ac_lib_var=yes" | 5803 _ACEOF |
3261 else | 5804 rm -f conftest.$ac_objext conftest$ac_exeext |
3262 echo "configure: failed program was:" >&5 | 5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3263 cat conftest.$ac_ext >&5 | 5806 (eval $ac_link) 2>conftest.er1 |
3264 rm -rf conftest* | 5807 ac_status=$? |
3265 eval "ac_cv_lib_$ac_lib_var=no" | 5808 grep -v '^ *+' conftest.er1 >conftest.err |
3266 fi | 5809 rm -f conftest.er1 |
3267 rm -f conftest* | 5810 cat conftest.err >&5 |
3268 LIBS="$ac_save_LIBS" | 5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3269 | 5812 (exit $ac_status); } && |
3270 fi | 5813 { ac_try='test -z "$ac_c_werror_flag" |
3271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5814 || test ! -s conftest.err' |
3272 echo "$ac_t""yes" 1>&6 | 5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5816 (eval $ac_try) 2>&5 | |
5817 ac_status=$? | |
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5819 (exit $ac_status); }; } && | |
5820 { ac_try='test -s conftest$ac_exeext' | |
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5822 (eval $ac_try) 2>&5 | |
5823 ac_status=$? | |
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5825 (exit $ac_status); }; }; then | |
5826 ac_cv_lib_nsl_gethostbyname=yes | |
5827 else | |
5828 echo "$as_me: failed program was:" >&5 | |
5829 sed 's/^/| /' conftest.$ac_ext >&5 | |
5830 | |
5831 ac_cv_lib_nsl_gethostbyname=no | |
5832 fi | |
5833 rm -f conftest.err conftest.$ac_objext \ | |
5834 conftest$ac_exeext conftest.$ac_ext | |
5835 LIBS=$ac_check_lib_save_LIBS | |
5836 fi | |
5837 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
5838 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
5839 if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
3273 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | 5840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
3274 else | 5841 fi |
3275 echo "$ac_t""no" 1>&6 | 5842 |
3276 fi | 5843 if test $ac_cv_lib_nsl_gethostbyname = no; then |
3277 | 5844 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
5845 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
5846 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
5847 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5848 else | |
5849 ac_check_lib_save_LIBS=$LIBS | |
5850 LIBS="-lbsd $LIBS" | |
5851 cat >conftest.$ac_ext <<_ACEOF | |
5852 /* confdefs.h. */ | |
5853 _ACEOF | |
5854 cat confdefs.h >>conftest.$ac_ext | |
5855 cat >>conftest.$ac_ext <<_ACEOF | |
5856 /* end confdefs.h. */ | |
5857 | |
5858 /* Override any gcc2 internal prototype to avoid an error. */ | |
5859 #ifdef __cplusplus | |
5860 extern "C" | |
5861 #endif | |
5862 /* We use char because int might match the return type of a gcc2 | |
5863 builtin and then its argument prototype would still apply. */ | |
5864 char gethostbyname (); | |
5865 int | |
5866 main () | |
5867 { | |
5868 gethostbyname (); | |
5869 ; | |
5870 return 0; | |
5871 } | |
5872 _ACEOF | |
5873 rm -f conftest.$ac_objext conftest$ac_exeext | |
5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5875 (eval $ac_link) 2>conftest.er1 | |
5876 ac_status=$? | |
5877 grep -v '^ *+' conftest.er1 >conftest.err | |
5878 rm -f conftest.er1 | |
5879 cat conftest.err >&5 | |
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5881 (exit $ac_status); } && | |
5882 { ac_try='test -z "$ac_c_werror_flag" | |
5883 || test ! -s conftest.err' | |
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5885 (eval $ac_try) 2>&5 | |
5886 ac_status=$? | |
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5888 (exit $ac_status); }; } && | |
5889 { ac_try='test -s conftest$ac_exeext' | |
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5891 (eval $ac_try) 2>&5 | |
5892 ac_status=$? | |
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5894 (exit $ac_status); }; }; then | |
5895 ac_cv_lib_bsd_gethostbyname=yes | |
5896 else | |
5897 echo "$as_me: failed program was:" >&5 | |
5898 sed 's/^/| /' conftest.$ac_ext >&5 | |
5899 | |
5900 ac_cv_lib_bsd_gethostbyname=no | |
5901 fi | |
5902 rm -f conftest.err conftest.$ac_objext \ | |
5903 conftest$ac_exeext conftest.$ac_ext | |
5904 LIBS=$ac_check_lib_save_LIBS | |
5905 fi | |
5906 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
5907 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
5908 if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
5909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
5910 fi | |
5911 | |
5912 fi | |
3278 fi | 5913 fi |
3279 | 5914 |
3280 # lieder@skyler.mavd.honeywell.com says without -lsocket, | 5915 # lieder@skyler.mavd.honeywell.com says without -lsocket, |
3281 # socket/setsockopt and other routines are undefined under SCO ODT | 5916 # socket/setsockopt and other routines are undefined under SCO ODT |
3282 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | 5917 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
3283 # on later versions), says simon@lia.di.epfl.ch: it contains | 5918 # on later versions), says Simon Leinen: it contains gethostby* |
3284 # gethostby* variants that don't use the nameserver (or something). | 5919 # variants that don't use the name server (or something). -lsocket |
3285 # -lsocket must be given before -lnsl if both are needed. | 5920 # must be given before -lnsl if both are needed. We assume that |
3286 # We assume that if connect needs -lnsl, so does gethostbyname. | 5921 # if connect needs -lnsl, so does gethostbyname. |
3287 echo $ac_n "checking for connect""... $ac_c" 1>&6 | 5922 echo "$as_me:$LINENO: checking for connect" >&5 |
3288 echo "configure:3289: checking for connect" >&5 | 5923 echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
3289 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | 5924 if test "${ac_cv_func_connect+set}" = set; then |
3290 echo $ac_n "(cached) $ac_c" 1>&6 | 5925 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3291 else | 5926 else |
3292 cat > conftest.$ac_ext <<EOF | 5927 cat >conftest.$ac_ext <<_ACEOF |
3293 #line 3294 "configure" | 5928 /* confdefs.h. */ |
3294 #include "confdefs.h" | 5929 _ACEOF |
5930 cat confdefs.h >>conftest.$ac_ext | |
5931 cat >>conftest.$ac_ext <<_ACEOF | |
5932 /* end confdefs.h. */ | |
5933 /* Define connect to an innocuous variant, in case <limits.h> declares connect. | |
5934 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5935 #define connect innocuous_connect | |
5936 | |
3295 /* System header to define __stub macros and hopefully few prototypes, | 5937 /* System header to define __stub macros and hopefully few prototypes, |
3296 which can conflict with char connect(); below. */ | 5938 which can conflict with char connect (); below. |
3297 #include <assert.h> | 5939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5940 <limits.h> exists even on freestanding compilers. */ | |
5941 | |
5942 #ifdef __STDC__ | |
5943 # include <limits.h> | |
5944 #else | |
5945 # include <assert.h> | |
5946 #endif | |
5947 | |
5948 #undef connect | |
5949 | |
3298 /* Override any gcc2 internal prototype to avoid an error. */ | 5950 /* Override any gcc2 internal prototype to avoid an error. */ |
5951 #ifdef __cplusplus | |
5952 extern "C" | |
5953 { | |
5954 #endif | |
3299 /* We use char because int might match the return type of a gcc2 | 5955 /* We use char because int might match the return type of a gcc2 |
3300 builtin and then its argument prototype would still apply. */ | 5956 builtin and then its argument prototype would still apply. */ |
3301 char connect(); | 5957 char connect (); |
3302 | |
3303 int main() { | |
3304 | |
3305 /* The GNU C library defines this for functions which it implements | 5958 /* The GNU C library defines this for functions which it implements |
3306 to always fail with ENOSYS. Some functions are actually named | 5959 to always fail with ENOSYS. Some functions are actually named |
3307 something starting with __ and the normal name is an alias. */ | 5960 something starting with __ and the normal name is an alias. */ |
3308 #if defined (__stub_connect) || defined (__stub___connect) | 5961 #if defined (__stub_connect) || defined (__stub___connect) |
3309 choke me | 5962 choke me |
3310 #else | 5963 #else |
3311 connect(); | 5964 char (*f) () = connect; |
3312 #endif | 5965 #endif |
3313 | 5966 #ifdef __cplusplus |
3314 ; return 0; } | 5967 } |
3315 EOF | 5968 #endif |
3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5969 |
3317 rm -rf conftest* | 5970 int |
3318 eval "ac_cv_func_connect=yes" | 5971 main () |
3319 else | 5972 { |
3320 echo "configure: failed program was:" >&5 | 5973 return f != connect; |
3321 cat conftest.$ac_ext >&5 | 5974 ; |
3322 rm -rf conftest* | 5975 return 0; |
3323 eval "ac_cv_func_connect=no" | 5976 } |
3324 fi | 5977 _ACEOF |
3325 rm -f conftest* | 5978 rm -f conftest.$ac_objext conftest$ac_exeext |
3326 fi | 5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3327 | 5980 (eval $ac_link) 2>conftest.er1 |
3328 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | 5981 ac_status=$? |
3329 echo "$ac_t""yes" 1>&6 | 5982 grep -v '^ *+' conftest.er1 >conftest.err |
3330 : | 5983 rm -f conftest.er1 |
3331 else | 5984 cat conftest.err >&5 |
3332 echo "$ac_t""no" 1>&6 | 5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3333 fi | 5986 (exit $ac_status); } && |
5987 { ac_try='test -z "$ac_c_werror_flag" | |
5988 || test ! -s conftest.err' | |
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5990 (eval $ac_try) 2>&5 | |
5991 ac_status=$? | |
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5993 (exit $ac_status); }; } && | |
5994 { ac_try='test -s conftest$ac_exeext' | |
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5996 (eval $ac_try) 2>&5 | |
5997 ac_status=$? | |
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5999 (exit $ac_status); }; }; then | |
6000 ac_cv_func_connect=yes | |
6001 else | |
6002 echo "$as_me: failed program was:" >&5 | |
6003 sed 's/^/| /' conftest.$ac_ext >&5 | |
6004 | |
6005 ac_cv_func_connect=no | |
6006 fi | |
6007 rm -f conftest.err conftest.$ac_objext \ | |
6008 conftest$ac_exeext conftest.$ac_ext | |
6009 fi | |
6010 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
6011 echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
3334 | 6012 |
3335 if test $ac_cv_func_connect = no; then | 6013 if test $ac_cv_func_connect = no; then |
3336 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | 6014 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
3337 echo "configure:3338: checking for connect in -lsocket" >&5 | 6015 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
3338 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | 6016 if test "${ac_cv_lib_socket_connect+set}" = set; then |
3339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6017 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3340 echo $ac_n "(cached) $ac_c" 1>&6 | 6018 else |
3341 else | 6019 ac_check_lib_save_LIBS=$LIBS |
3342 ac_save_LIBS="$LIBS" | |
3343 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | 6020 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
3344 cat > conftest.$ac_ext <<EOF | 6021 cat >conftest.$ac_ext <<_ACEOF |
3345 #line 3346 "configure" | 6022 /* confdefs.h. */ |
3346 #include "confdefs.h" | 6023 _ACEOF |
6024 cat confdefs.h >>conftest.$ac_ext | |
6025 cat >>conftest.$ac_ext <<_ACEOF | |
6026 /* end confdefs.h. */ | |
6027 | |
3347 /* Override any gcc2 internal prototype to avoid an error. */ | 6028 /* Override any gcc2 internal prototype to avoid an error. */ |
6029 #ifdef __cplusplus | |
6030 extern "C" | |
6031 #endif | |
3348 /* We use char because int might match the return type of a gcc2 | 6032 /* We use char because int might match the return type of a gcc2 |
3349 builtin and then its argument prototype would still apply. */ | 6033 builtin and then its argument prototype would still apply. */ |
3350 char connect(); | 6034 char connect (); |
3351 | 6035 int |
3352 int main() { | 6036 main () |
3353 connect() | 6037 { |
3354 ; return 0; } | 6038 connect (); |
3355 EOF | 6039 ; |
3356 if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6040 return 0; |
3357 rm -rf conftest* | 6041 } |
3358 eval "ac_cv_lib_$ac_lib_var=yes" | 6042 _ACEOF |
3359 else | 6043 rm -f conftest.$ac_objext conftest$ac_exeext |
3360 echo "configure: failed program was:" >&5 | 6044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3361 cat conftest.$ac_ext >&5 | 6045 (eval $ac_link) 2>conftest.er1 |
3362 rm -rf conftest* | 6046 ac_status=$? |
3363 eval "ac_cv_lib_$ac_lib_var=no" | 6047 grep -v '^ *+' conftest.er1 >conftest.err |
3364 fi | 6048 rm -f conftest.er1 |
3365 rm -f conftest* | 6049 cat conftest.err >&5 |
3366 LIBS="$ac_save_LIBS" | 6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3367 | 6051 (exit $ac_status); } && |
3368 fi | 6052 { ac_try='test -z "$ac_c_werror_flag" |
3369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6053 || test ! -s conftest.err' |
3370 echo "$ac_t""yes" 1>&6 | 6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6055 (eval $ac_try) 2>&5 | |
6056 ac_status=$? | |
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6058 (exit $ac_status); }; } && | |
6059 { ac_try='test -s conftest$ac_exeext' | |
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6061 (eval $ac_try) 2>&5 | |
6062 ac_status=$? | |
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6064 (exit $ac_status); }; }; then | |
6065 ac_cv_lib_socket_connect=yes | |
6066 else | |
6067 echo "$as_me: failed program was:" >&5 | |
6068 sed 's/^/| /' conftest.$ac_ext >&5 | |
6069 | |
6070 ac_cv_lib_socket_connect=no | |
6071 fi | |
6072 rm -f conftest.err conftest.$ac_objext \ | |
6073 conftest$ac_exeext conftest.$ac_ext | |
6074 LIBS=$ac_check_lib_save_LIBS | |
6075 fi | |
6076 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
6077 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
6078 if test $ac_cv_lib_socket_connect = yes; then | |
3371 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | 6079 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
3372 else | |
3373 echo "$ac_t""no" 1>&6 | |
3374 fi | 6080 fi |
3375 | 6081 |
3376 fi | 6082 fi |
3377 | 6083 |
3378 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | 6084 # Guillermo Gomez says -lposix is necessary on A/UX. |
3379 echo $ac_n "checking for remove""... $ac_c" 1>&6 | 6085 echo "$as_me:$LINENO: checking for remove" >&5 |
3380 echo "configure:3381: checking for remove" >&5 | 6086 echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
3381 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | 6087 if test "${ac_cv_func_remove+set}" = set; then |
3382 echo $ac_n "(cached) $ac_c" 1>&6 | 6088 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3383 else | 6089 else |
3384 cat > conftest.$ac_ext <<EOF | 6090 cat >conftest.$ac_ext <<_ACEOF |
3385 #line 3386 "configure" | 6091 /* confdefs.h. */ |
3386 #include "confdefs.h" | 6092 _ACEOF |
6093 cat confdefs.h >>conftest.$ac_ext | |
6094 cat >>conftest.$ac_ext <<_ACEOF | |
6095 /* end confdefs.h. */ | |
6096 /* Define remove to an innocuous variant, in case <limits.h> declares remove. | |
6097 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6098 #define remove innocuous_remove | |
6099 | |
3387 /* System header to define __stub macros and hopefully few prototypes, | 6100 /* System header to define __stub macros and hopefully few prototypes, |
3388 which can conflict with char remove(); below. */ | 6101 which can conflict with char remove (); below. |
3389 #include <assert.h> | 6102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6103 <limits.h> exists even on freestanding compilers. */ | |
6104 | |
6105 #ifdef __STDC__ | |
6106 # include <limits.h> | |
6107 #else | |
6108 # include <assert.h> | |
6109 #endif | |
6110 | |
6111 #undef remove | |
6112 | |
3390 /* Override any gcc2 internal prototype to avoid an error. */ | 6113 /* Override any gcc2 internal prototype to avoid an error. */ |
6114 #ifdef __cplusplus | |
6115 extern "C" | |
6116 { | |
6117 #endif | |
3391 /* We use char because int might match the return type of a gcc2 | 6118 /* We use char because int might match the return type of a gcc2 |
3392 builtin and then its argument prototype would still apply. */ | 6119 builtin and then its argument prototype would still apply. */ |
3393 char remove(); | 6120 char remove (); |
3394 | |
3395 int main() { | |
3396 | |
3397 /* The GNU C library defines this for functions which it implements | 6121 /* The GNU C library defines this for functions which it implements |
3398 to always fail with ENOSYS. Some functions are actually named | 6122 to always fail with ENOSYS. Some functions are actually named |
3399 something starting with __ and the normal name is an alias. */ | 6123 something starting with __ and the normal name is an alias. */ |
3400 #if defined (__stub_remove) || defined (__stub___remove) | 6124 #if defined (__stub_remove) || defined (__stub___remove) |
3401 choke me | 6125 choke me |
3402 #else | 6126 #else |
3403 remove(); | 6127 char (*f) () = remove; |
3404 #endif | 6128 #endif |
3405 | 6129 #ifdef __cplusplus |
3406 ; return 0; } | 6130 } |
3407 EOF | 6131 #endif |
3408 if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6132 |
3409 rm -rf conftest* | 6133 int |
3410 eval "ac_cv_func_remove=yes" | 6134 main () |
3411 else | 6135 { |
3412 echo "configure: failed program was:" >&5 | 6136 return f != remove; |
3413 cat conftest.$ac_ext >&5 | 6137 ; |
3414 rm -rf conftest* | 6138 return 0; |
3415 eval "ac_cv_func_remove=no" | 6139 } |
3416 fi | 6140 _ACEOF |
3417 rm -f conftest* | 6141 rm -f conftest.$ac_objext conftest$ac_exeext |
3418 fi | 6142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3419 | 6143 (eval $ac_link) 2>conftest.er1 |
3420 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | 6144 ac_status=$? |
3421 echo "$ac_t""yes" 1>&6 | 6145 grep -v '^ *+' conftest.er1 >conftest.err |
3422 : | 6146 rm -f conftest.er1 |
3423 else | 6147 cat conftest.err >&5 |
3424 echo "$ac_t""no" 1>&6 | 6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3425 fi | 6149 (exit $ac_status); } && |
6150 { ac_try='test -z "$ac_c_werror_flag" | |
6151 || test ! -s conftest.err' | |
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6153 (eval $ac_try) 2>&5 | |
6154 ac_status=$? | |
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6156 (exit $ac_status); }; } && | |
6157 { ac_try='test -s conftest$ac_exeext' | |
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6159 (eval $ac_try) 2>&5 | |
6160 ac_status=$? | |
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6162 (exit $ac_status); }; }; then | |
6163 ac_cv_func_remove=yes | |
6164 else | |
6165 echo "$as_me: failed program was:" >&5 | |
6166 sed 's/^/| /' conftest.$ac_ext >&5 | |
6167 | |
6168 ac_cv_func_remove=no | |
6169 fi | |
6170 rm -f conftest.err conftest.$ac_objext \ | |
6171 conftest$ac_exeext conftest.$ac_ext | |
6172 fi | |
6173 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
6174 echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
3426 | 6175 |
3427 if test $ac_cv_func_remove = no; then | 6176 if test $ac_cv_func_remove = no; then |
3428 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | 6177 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
3429 echo "configure:3430: checking for remove in -lposix" >&5 | 6178 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
3430 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | 6179 if test "${ac_cv_lib_posix_remove+set}" = set; then |
3431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6180 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3432 echo $ac_n "(cached) $ac_c" 1>&6 | 6181 else |
3433 else | 6182 ac_check_lib_save_LIBS=$LIBS |
3434 ac_save_LIBS="$LIBS" | |
3435 LIBS="-lposix $LIBS" | 6183 LIBS="-lposix $LIBS" |
3436 cat > conftest.$ac_ext <<EOF | 6184 cat >conftest.$ac_ext <<_ACEOF |
3437 #line 3438 "configure" | 6185 /* confdefs.h. */ |
3438 #include "confdefs.h" | 6186 _ACEOF |
6187 cat confdefs.h >>conftest.$ac_ext | |
6188 cat >>conftest.$ac_ext <<_ACEOF | |
6189 /* end confdefs.h. */ | |
6190 | |
3439 /* Override any gcc2 internal prototype to avoid an error. */ | 6191 /* Override any gcc2 internal prototype to avoid an error. */ |
6192 #ifdef __cplusplus | |
6193 extern "C" | |
6194 #endif | |
3440 /* We use char because int might match the return type of a gcc2 | 6195 /* We use char because int might match the return type of a gcc2 |
3441 builtin and then its argument prototype would still apply. */ | 6196 builtin and then its argument prototype would still apply. */ |
3442 char remove(); | 6197 char remove (); |
3443 | 6198 int |
3444 int main() { | 6199 main () |
3445 remove() | 6200 { |
3446 ; return 0; } | 6201 remove (); |
3447 EOF | 6202 ; |
3448 if { (eval echo configure:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6203 return 0; |
3449 rm -rf conftest* | 6204 } |
3450 eval "ac_cv_lib_$ac_lib_var=yes" | 6205 _ACEOF |
3451 else | 6206 rm -f conftest.$ac_objext conftest$ac_exeext |
3452 echo "configure: failed program was:" >&5 | 6207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3453 cat conftest.$ac_ext >&5 | 6208 (eval $ac_link) 2>conftest.er1 |
3454 rm -rf conftest* | 6209 ac_status=$? |
3455 eval "ac_cv_lib_$ac_lib_var=no" | 6210 grep -v '^ *+' conftest.er1 >conftest.err |
3456 fi | 6211 rm -f conftest.er1 |
3457 rm -f conftest* | 6212 cat conftest.err >&5 |
3458 LIBS="$ac_save_LIBS" | 6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3459 | 6214 (exit $ac_status); } && |
3460 fi | 6215 { ac_try='test -z "$ac_c_werror_flag" |
3461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6216 || test ! -s conftest.err' |
3462 echo "$ac_t""yes" 1>&6 | 6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6218 (eval $ac_try) 2>&5 | |
6219 ac_status=$? | |
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6221 (exit $ac_status); }; } && | |
6222 { ac_try='test -s conftest$ac_exeext' | |
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6224 (eval $ac_try) 2>&5 | |
6225 ac_status=$? | |
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6227 (exit $ac_status); }; }; then | |
6228 ac_cv_lib_posix_remove=yes | |
6229 else | |
6230 echo "$as_me: failed program was:" >&5 | |
6231 sed 's/^/| /' conftest.$ac_ext >&5 | |
6232 | |
6233 ac_cv_lib_posix_remove=no | |
6234 fi | |
6235 rm -f conftest.err conftest.$ac_objext \ | |
6236 conftest$ac_exeext conftest.$ac_ext | |
6237 LIBS=$ac_check_lib_save_LIBS | |
6238 fi | |
6239 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
6240 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
6241 if test $ac_cv_lib_posix_remove = yes; then | |
3463 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | 6242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
3464 else | |
3465 echo "$ac_t""no" 1>&6 | |
3466 fi | 6243 fi |
3467 | 6244 |
3468 fi | 6245 fi |
3469 | 6246 |
3470 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | 6247 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
3471 echo $ac_n "checking for shmat""... $ac_c" 1>&6 | 6248 echo "$as_me:$LINENO: checking for shmat" >&5 |
3472 echo "configure:3473: checking for shmat" >&5 | 6249 echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
3473 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | 6250 if test "${ac_cv_func_shmat+set}" = set; then |
3474 echo $ac_n "(cached) $ac_c" 1>&6 | 6251 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3475 else | 6252 else |
3476 cat > conftest.$ac_ext <<EOF | 6253 cat >conftest.$ac_ext <<_ACEOF |
3477 #line 3478 "configure" | 6254 /* confdefs.h. */ |
3478 #include "confdefs.h" | 6255 _ACEOF |
6256 cat confdefs.h >>conftest.$ac_ext | |
6257 cat >>conftest.$ac_ext <<_ACEOF | |
6258 /* end confdefs.h. */ | |
6259 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. | |
6260 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6261 #define shmat innocuous_shmat | |
6262 | |
3479 /* System header to define __stub macros and hopefully few prototypes, | 6263 /* System header to define __stub macros and hopefully few prototypes, |
3480 which can conflict with char shmat(); below. */ | 6264 which can conflict with char shmat (); below. |
3481 #include <assert.h> | 6265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6266 <limits.h> exists even on freestanding compilers. */ | |
6267 | |
6268 #ifdef __STDC__ | |
6269 # include <limits.h> | |
6270 #else | |
6271 # include <assert.h> | |
6272 #endif | |
6273 | |
6274 #undef shmat | |
6275 | |
3482 /* Override any gcc2 internal prototype to avoid an error. */ | 6276 /* Override any gcc2 internal prototype to avoid an error. */ |
6277 #ifdef __cplusplus | |
6278 extern "C" | |
6279 { | |
6280 #endif | |
3483 /* We use char because int might match the return type of a gcc2 | 6281 /* We use char because int might match the return type of a gcc2 |
3484 builtin and then its argument prototype would still apply. */ | 6282 builtin and then its argument prototype would still apply. */ |
3485 char shmat(); | 6283 char shmat (); |
3486 | |
3487 int main() { | |
3488 | |
3489 /* The GNU C library defines this for functions which it implements | 6284 /* The GNU C library defines this for functions which it implements |
3490 to always fail with ENOSYS. Some functions are actually named | 6285 to always fail with ENOSYS. Some functions are actually named |
3491 something starting with __ and the normal name is an alias. */ | 6286 something starting with __ and the normal name is an alias. */ |
3492 #if defined (__stub_shmat) || defined (__stub___shmat) | 6287 #if defined (__stub_shmat) || defined (__stub___shmat) |
3493 choke me | 6288 choke me |
3494 #else | 6289 #else |
3495 shmat(); | 6290 char (*f) () = shmat; |
3496 #endif | 6291 #endif |
3497 | 6292 #ifdef __cplusplus |
3498 ; return 0; } | 6293 } |
3499 EOF | 6294 #endif |
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6295 |
3501 rm -rf conftest* | 6296 int |
3502 eval "ac_cv_func_shmat=yes" | 6297 main () |
3503 else | 6298 { |
3504 echo "configure: failed program was:" >&5 | 6299 return f != shmat; |
3505 cat conftest.$ac_ext >&5 | 6300 ; |
3506 rm -rf conftest* | 6301 return 0; |
3507 eval "ac_cv_func_shmat=no" | 6302 } |
3508 fi | 6303 _ACEOF |
3509 rm -f conftest* | 6304 rm -f conftest.$ac_objext conftest$ac_exeext |
3510 fi | 6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3511 | 6306 (eval $ac_link) 2>conftest.er1 |
3512 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | 6307 ac_status=$? |
3513 echo "$ac_t""yes" 1>&6 | 6308 grep -v '^ *+' conftest.er1 >conftest.err |
3514 : | 6309 rm -f conftest.er1 |
3515 else | 6310 cat conftest.err >&5 |
3516 echo "$ac_t""no" 1>&6 | 6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3517 fi | 6312 (exit $ac_status); } && |
6313 { ac_try='test -z "$ac_c_werror_flag" | |
6314 || test ! -s conftest.err' | |
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6316 (eval $ac_try) 2>&5 | |
6317 ac_status=$? | |
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6319 (exit $ac_status); }; } && | |
6320 { ac_try='test -s conftest$ac_exeext' | |
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6322 (eval $ac_try) 2>&5 | |
6323 ac_status=$? | |
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6325 (exit $ac_status); }; }; then | |
6326 ac_cv_func_shmat=yes | |
6327 else | |
6328 echo "$as_me: failed program was:" >&5 | |
6329 sed 's/^/| /' conftest.$ac_ext >&5 | |
6330 | |
6331 ac_cv_func_shmat=no | |
6332 fi | |
6333 rm -f conftest.err conftest.$ac_objext \ | |
6334 conftest$ac_exeext conftest.$ac_ext | |
6335 fi | |
6336 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
6337 echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
3518 | 6338 |
3519 if test $ac_cv_func_shmat = no; then | 6339 if test $ac_cv_func_shmat = no; then |
3520 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | 6340 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
3521 echo "configure:3522: checking for shmat in -lipc" >&5 | 6341 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
3522 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | 6342 if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
3523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6343 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3524 echo $ac_n "(cached) $ac_c" 1>&6 | 6344 else |
3525 else | 6345 ac_check_lib_save_LIBS=$LIBS |
3526 ac_save_LIBS="$LIBS" | |
3527 LIBS="-lipc $LIBS" | 6346 LIBS="-lipc $LIBS" |
3528 cat > conftest.$ac_ext <<EOF | 6347 cat >conftest.$ac_ext <<_ACEOF |
3529 #line 3530 "configure" | 6348 /* confdefs.h. */ |
3530 #include "confdefs.h" | 6349 _ACEOF |
6350 cat confdefs.h >>conftest.$ac_ext | |
6351 cat >>conftest.$ac_ext <<_ACEOF | |
6352 /* end confdefs.h. */ | |
6353 | |
3531 /* Override any gcc2 internal prototype to avoid an error. */ | 6354 /* Override any gcc2 internal prototype to avoid an error. */ |
6355 #ifdef __cplusplus | |
6356 extern "C" | |
6357 #endif | |
3532 /* We use char because int might match the return type of a gcc2 | 6358 /* We use char because int might match the return type of a gcc2 |
3533 builtin and then its argument prototype would still apply. */ | 6359 builtin and then its argument prototype would still apply. */ |
3534 char shmat(); | 6360 char shmat (); |
3535 | 6361 int |
3536 int main() { | 6362 main () |
3537 shmat() | 6363 { |
3538 ; return 0; } | 6364 shmat (); |
3539 EOF | 6365 ; |
3540 if { (eval echo configure:3541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6366 return 0; |
3541 rm -rf conftest* | 6367 } |
3542 eval "ac_cv_lib_$ac_lib_var=yes" | 6368 _ACEOF |
3543 else | 6369 rm -f conftest.$ac_objext conftest$ac_exeext |
3544 echo "configure: failed program was:" >&5 | 6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3545 cat conftest.$ac_ext >&5 | 6371 (eval $ac_link) 2>conftest.er1 |
3546 rm -rf conftest* | 6372 ac_status=$? |
3547 eval "ac_cv_lib_$ac_lib_var=no" | 6373 grep -v '^ *+' conftest.er1 >conftest.err |
3548 fi | 6374 rm -f conftest.er1 |
3549 rm -f conftest* | 6375 cat conftest.err >&5 |
3550 LIBS="$ac_save_LIBS" | 6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3551 | 6377 (exit $ac_status); } && |
3552 fi | 6378 { ac_try='test -z "$ac_c_werror_flag" |
3553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6379 || test ! -s conftest.err' |
3554 echo "$ac_t""yes" 1>&6 | 6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6381 (eval $ac_try) 2>&5 | |
6382 ac_status=$? | |
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6384 (exit $ac_status); }; } && | |
6385 { ac_try='test -s conftest$ac_exeext' | |
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6387 (eval $ac_try) 2>&5 | |
6388 ac_status=$? | |
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6390 (exit $ac_status); }; }; then | |
6391 ac_cv_lib_ipc_shmat=yes | |
6392 else | |
6393 echo "$as_me: failed program was:" >&5 | |
6394 sed 's/^/| /' conftest.$ac_ext >&5 | |
6395 | |
6396 ac_cv_lib_ipc_shmat=no | |
6397 fi | |
6398 rm -f conftest.err conftest.$ac_objext \ | |
6399 conftest$ac_exeext conftest.$ac_ext | |
6400 LIBS=$ac_check_lib_save_LIBS | |
6401 fi | |
6402 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
6403 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
6404 if test $ac_cv_lib_ipc_shmat = yes; then | |
3555 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | 6405 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
3556 else | |
3557 echo "$ac_t""no" 1>&6 | |
3558 fi | 6406 fi |
3559 | 6407 |
3560 fi | 6408 fi |
3561 fi | 6409 fi |
3562 | 6410 |
3563 # Check for libraries that X11R6 Xt/Xaw programs need. | 6411 # Check for libraries that X11R6 Xt/Xaw programs need. |
3564 ac_save_LDFLAGS="$LDFLAGS" | 6412 ac_save_LDFLAGS=$LDFLAGS |
3565 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | 6413 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
3566 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | 6414 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
3567 # check for ICE first), but we must link in the order -lSM -lICE or | 6415 # check for ICE first), but we must link in the order -lSM -lICE or |
3568 # we get undefined symbols. So assume we have SM if we have ICE. | 6416 # we get undefined symbols. So assume we have SM if we have ICE. |
3569 # These have to be linked with before -lX11, unlike the other | 6417 # These have to be linked with before -lX11, unlike the other |
3570 # libraries we check for below, so use a different variable. | 6418 # libraries we check for below, so use a different variable. |
3571 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | 6419 # John Interrante, Karl Berry |
3572 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | 6420 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
3573 echo "configure:3574: checking for IceConnectionNumber in -lICE" >&5 | 6421 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
3574 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | 6422 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
3575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6423 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3576 echo $ac_n "(cached) $ac_c" 1>&6 | 6424 else |
3577 else | 6425 ac_check_lib_save_LIBS=$LIBS |
3578 ac_save_LIBS="$LIBS" | |
3579 LIBS="-lICE $X_EXTRA_LIBS $LIBS" | 6426 LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
3580 cat > conftest.$ac_ext <<EOF | 6427 cat >conftest.$ac_ext <<_ACEOF |
3581 #line 3582 "configure" | 6428 /* confdefs.h. */ |
3582 #include "confdefs.h" | 6429 _ACEOF |
6430 cat confdefs.h >>conftest.$ac_ext | |
6431 cat >>conftest.$ac_ext <<_ACEOF | |
6432 /* end confdefs.h. */ | |
6433 | |
3583 /* Override any gcc2 internal prototype to avoid an error. */ | 6434 /* Override any gcc2 internal prototype to avoid an error. */ |
6435 #ifdef __cplusplus | |
6436 extern "C" | |
6437 #endif | |
3584 /* We use char because int might match the return type of a gcc2 | 6438 /* We use char because int might match the return type of a gcc2 |
3585 builtin and then its argument prototype would still apply. */ | 6439 builtin and then its argument prototype would still apply. */ |
3586 char IceConnectionNumber(); | 6440 char IceConnectionNumber (); |
3587 | 6441 int |
3588 int main() { | 6442 main () |
3589 IceConnectionNumber() | 6443 { |
3590 ; return 0; } | 6444 IceConnectionNumber (); |
3591 EOF | 6445 ; |
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6446 return 0; |
3593 rm -rf conftest* | 6447 } |
3594 eval "ac_cv_lib_$ac_lib_var=yes" | 6448 _ACEOF |
3595 else | 6449 rm -f conftest.$ac_objext conftest$ac_exeext |
3596 echo "configure: failed program was:" >&5 | 6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3597 cat conftest.$ac_ext >&5 | 6451 (eval $ac_link) 2>conftest.er1 |
3598 rm -rf conftest* | 6452 ac_status=$? |
3599 eval "ac_cv_lib_$ac_lib_var=no" | 6453 grep -v '^ *+' conftest.er1 >conftest.err |
3600 fi | 6454 rm -f conftest.er1 |
3601 rm -f conftest* | 6455 cat conftest.err >&5 |
3602 LIBS="$ac_save_LIBS" | 6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3603 | 6457 (exit $ac_status); } && |
3604 fi | 6458 { ac_try='test -z "$ac_c_werror_flag" |
3605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6459 || test ! -s conftest.err' |
3606 echo "$ac_t""yes" 1>&6 | 6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6461 (eval $ac_try) 2>&5 | |
6462 ac_status=$? | |
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6464 (exit $ac_status); }; } && | |
6465 { ac_try='test -s conftest$ac_exeext' | |
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6467 (eval $ac_try) 2>&5 | |
6468 ac_status=$? | |
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6470 (exit $ac_status); }; }; then | |
6471 ac_cv_lib_ICE_IceConnectionNumber=yes | |
6472 else | |
6473 echo "$as_me: failed program was:" >&5 | |
6474 sed 's/^/| /' conftest.$ac_ext >&5 | |
6475 | |
6476 ac_cv_lib_ICE_IceConnectionNumber=no | |
6477 fi | |
6478 rm -f conftest.err conftest.$ac_objext \ | |
6479 conftest$ac_exeext conftest.$ac_ext | |
6480 LIBS=$ac_check_lib_save_LIBS | |
6481 fi | |
6482 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
6483 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
6484 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
3607 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | 6485 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
3608 else | 6486 fi |
3609 echo "$ac_t""no" 1>&6 | 6487 |
3610 fi | 6488 LDFLAGS=$ac_save_LDFLAGS |
3611 | |
3612 LDFLAGS="$ac_save_LDFLAGS" | |
3613 | 6489 |
3614 fi | 6490 fi |
3615 | 6491 |
3616 | 6492 |
3617 if test "$OS390Unix" = "yes"; then | 6493 if test "$OS390Unix" = "yes"; then |
3618 CFLAGS="$CFLAGS -W c,dll" | 6494 CFLAGS="$CFLAGS -W c,dll" |
3619 LDFLAGS="$LDFLAGS -W l,dll" | 6495 LDFLAGS="$LDFLAGS -W l,dll" |
3620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" | 6496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
3621 fi | 6497 fi |
3622 | 6498 |
3623 | 6499 |
3624 if test -d "$x_includes" && test ! -d "$x_libraries"; then | 6500 if test -d "$x_includes" && test ! -d "$x_libraries"; then |
3625 x_libraries=`echo "$x_includes" | sed s/include/lib/` | 6501 x_libraries=`echo "$x_includes" | sed s/include/lib/` |
3626 echo "$ac_t""Corrected X libraries to $x_libraries" 1>&6 | 6502 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
6503 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6 | |
3627 X_LIBS="$X_LIBS -L$x_libraries" | 6504 X_LIBS="$X_LIBS -L$x_libraries" |
3628 if test "`(uname) 2>/dev/null`" = SunOS && | 6505 if test "`(uname) 2>/dev/null`" = SunOS && |
3629 uname -r | grep '^5' >/dev/null; then | 6506 uname -r | grep '^5' >/dev/null; then |
3630 X_LIBS="$X_LIBS -R $x_libraries" | 6507 X_LIBS="$X_LIBS -R $x_libraries" |
3631 fi | 6508 fi |
3632 fi | 6509 fi |
3633 | 6510 |
3634 if test -d "$x_libraries" && test ! -d "$x_includes"; then | 6511 if test -d "$x_libraries" && test ! -d "$x_includes"; then |
3635 x_includes=`echo "$x_libraries" | sed s/lib/include/` | 6512 x_includes=`echo "$x_libraries" | sed s/lib/include/` |
3636 echo "$ac_t""Corrected X includes to $x_includes" 1>&6 | 6513 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
6514 echo "${ECHO_T}Corrected X includes to $x_includes" >&6 | |
3637 X_CFLAGS="$X_CFLAGS -I$x_includes" | 6515 X_CFLAGS="$X_CFLAGS -I$x_includes" |
3638 fi | 6516 fi |
3639 | 6517 |
3640 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" | 6518 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
3641 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" | 6519 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
3642 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" | 6520 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
3643 | 6521 |
3644 | 6522 |
3645 echo $ac_n "checking if X11 header files can be found""... $ac_c" 1>&6 | 6523 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 |
3646 echo "configure:3647: checking if X11 header files can be found" >&5 | 6524 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6 |
3647 cflags_save=$CFLAGS | 6525 cflags_save=$CFLAGS |
3648 CFLAGS="$CFLAGS $X_CFLAGS" | 6526 CFLAGS="$CFLAGS $X_CFLAGS" |
3649 cat > conftest.$ac_ext <<EOF | 6527 cat >conftest.$ac_ext <<_ACEOF |
3650 #line 3651 "configure" | 6528 /* confdefs.h. */ |
3651 #include "confdefs.h" | 6529 _ACEOF |
6530 cat confdefs.h >>conftest.$ac_ext | |
6531 cat >>conftest.$ac_ext <<_ACEOF | |
6532 /* end confdefs.h. */ | |
3652 #include <X11/Xlib.h> | 6533 #include <X11/Xlib.h> |
3653 int main() { | 6534 int |
3654 | 6535 main () |
3655 ; return 0; } | 6536 { |
3656 EOF | 6537 |
3657 if { (eval echo configure:3658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6538 ; |
3658 rm -rf conftest* | 6539 return 0; |
3659 echo "$ac_t""yes" 1>&6 | 6540 } |
3660 else | 6541 _ACEOF |
3661 echo "configure: failed program was:" >&5 | 6542 rm -f conftest.$ac_objext |
3662 cat conftest.$ac_ext >&5 | 6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3663 rm -rf conftest* | 6544 (eval $ac_compile) 2>conftest.er1 |
3664 echo "$ac_t""no" 1>&6; no_x=yes | 6545 ac_status=$? |
3665 fi | 6546 grep -v '^ *+' conftest.er1 >conftest.err |
3666 rm -f conftest* | 6547 rm -f conftest.er1 |
6548 cat conftest.err >&5 | |
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6550 (exit $ac_status); } && | |
6551 { ac_try='test -z "$ac_c_werror_flag" | |
6552 || test ! -s conftest.err' | |
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6554 (eval $ac_try) 2>&5 | |
6555 ac_status=$? | |
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6557 (exit $ac_status); }; } && | |
6558 { ac_try='test -s conftest.$ac_objext' | |
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6560 (eval $ac_try) 2>&5 | |
6561 ac_status=$? | |
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6563 (exit $ac_status); }; }; then | |
6564 echo "$as_me:$LINENO: result: yes" >&5 | |
6565 echo "${ECHO_T}yes" >&6 | |
6566 else | |
6567 echo "$as_me: failed program was:" >&5 | |
6568 sed 's/^/| /' conftest.$ac_ext >&5 | |
6569 | |
6570 echo "$as_me:$LINENO: result: no" >&5 | |
6571 echo "${ECHO_T}no" >&6; no_x=yes | |
6572 fi | |
6573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3667 CFLAGS=$cflags_save | 6574 CFLAGS=$cflags_save |
3668 | 6575 |
3669 if test "${no_x-no}" = yes; then | 6576 if test "${no_x-no}" = yes; then |
3670 with_x=no | 6577 with_x=no |
3671 else | 6578 else |
3672 cat >> confdefs.h <<\EOF | 6579 cat >>confdefs.h <<\_ACEOF |
3673 #define HAVE_X11 1 | 6580 #define HAVE_X11 1 |
3674 EOF | 6581 _ACEOF |
3675 | 6582 |
3676 X_LIB="-lXt -lX11"; | 6583 X_LIB="-lXt -lX11"; |
3677 | 6584 |
3678 | 6585 |
3679 ac_save_LDFLAGS="$LDFLAGS" | 6586 ac_save_LDFLAGS="$LDFLAGS" |
3680 LDFLAGS="-L$x_libraries $LDFLAGS" | 6587 LDFLAGS="-L$x_libraries $LDFLAGS" |
3681 | 6588 |
3682 echo $ac_n "checking for _XdmcpAuthDoIt in -lXdmcp""... $ac_c" 1>&6 | 6589 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
3683 echo "configure:3684: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 | 6590 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6 |
3684 ac_lib_var=`echo Xdmcp'_'_XdmcpAuthDoIt | sed 'y%./+-%__p_%'` | 6591 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
3685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6592 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3686 echo $ac_n "(cached) $ac_c" 1>&6 | 6593 else |
3687 else | 6594 ac_check_lib_save_LIBS=$LIBS |
3688 ac_save_LIBS="$LIBS" | |
3689 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" | 6595 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
3690 cat > conftest.$ac_ext <<EOF | 6596 cat >conftest.$ac_ext <<_ACEOF |
3691 #line 3692 "configure" | 6597 /* confdefs.h. */ |
3692 #include "confdefs.h" | 6598 _ACEOF |
6599 cat confdefs.h >>conftest.$ac_ext | |
6600 cat >>conftest.$ac_ext <<_ACEOF | |
6601 /* end confdefs.h. */ | |
6602 | |
3693 /* Override any gcc2 internal prototype to avoid an error. */ | 6603 /* Override any gcc2 internal prototype to avoid an error. */ |
6604 #ifdef __cplusplus | |
6605 extern "C" | |
6606 #endif | |
3694 /* We use char because int might match the return type of a gcc2 | 6607 /* We use char because int might match the return type of a gcc2 |
3695 builtin and then its argument prototype would still apply. */ | 6608 builtin and then its argument prototype would still apply. */ |
3696 char _XdmcpAuthDoIt(); | 6609 char _XdmcpAuthDoIt (); |
3697 | 6610 int |
3698 int main() { | 6611 main () |
3699 _XdmcpAuthDoIt() | 6612 { |
3700 ; return 0; } | 6613 _XdmcpAuthDoIt (); |
3701 EOF | 6614 ; |
3702 if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6615 return 0; |
3703 rm -rf conftest* | 6616 } |
3704 eval "ac_cv_lib_$ac_lib_var=yes" | 6617 _ACEOF |
3705 else | 6618 rm -f conftest.$ac_objext conftest$ac_exeext |
3706 echo "configure: failed program was:" >&5 | 6619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3707 cat conftest.$ac_ext >&5 | 6620 (eval $ac_link) 2>conftest.er1 |
3708 rm -rf conftest* | 6621 ac_status=$? |
3709 eval "ac_cv_lib_$ac_lib_var=no" | 6622 grep -v '^ *+' conftest.er1 >conftest.err |
3710 fi | 6623 rm -f conftest.er1 |
3711 rm -f conftest* | 6624 cat conftest.err >&5 |
3712 LIBS="$ac_save_LIBS" | 6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3713 | 6626 (exit $ac_status); } && |
3714 fi | 6627 { ac_try='test -z "$ac_c_werror_flag" |
3715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6628 || test ! -s conftest.err' |
3716 echo "$ac_t""yes" 1>&6 | 6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6630 (eval $ac_try) 2>&5 | |
6631 ac_status=$? | |
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6633 (exit $ac_status); }; } && | |
6634 { ac_try='test -s conftest$ac_exeext' | |
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6636 (eval $ac_try) 2>&5 | |
6637 ac_status=$? | |
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6639 (exit $ac_status); }; }; then | |
6640 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes | |
6641 else | |
6642 echo "$as_me: failed program was:" >&5 | |
6643 sed 's/^/| /' conftest.$ac_ext >&5 | |
6644 | |
6645 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no | |
6646 fi | |
6647 rm -f conftest.err conftest.$ac_objext \ | |
6648 conftest$ac_exeext conftest.$ac_ext | |
6649 LIBS=$ac_check_lib_save_LIBS | |
6650 fi | |
6651 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 | |
6652 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6 | |
6653 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then | |
3717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" | 6654 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
3718 else | 6655 fi |
3719 echo "$ac_t""no" 1>&6 | 6656 |
3720 fi | 6657 |
3721 | 6658 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
3722 | 6659 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6 |
3723 echo $ac_n "checking for IceOpenConnection in -lICE""... $ac_c" 1>&6 | 6660 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
3724 echo "configure:3725: checking for IceOpenConnection in -lICE" >&5 | 6661 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3725 ac_lib_var=`echo ICE'_'IceOpenConnection | sed 'y%./+-%__p_%'` | 6662 else |
3726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6663 ac_check_lib_save_LIBS=$LIBS |
3727 echo $ac_n "(cached) $ac_c" 1>&6 | |
3728 else | |
3729 ac_save_LIBS="$LIBS" | |
3730 LIBS="-lICE $X_EXTRA_LIBS $LIBS" | 6664 LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
3731 cat > conftest.$ac_ext <<EOF | 6665 cat >conftest.$ac_ext <<_ACEOF |
3732 #line 3733 "configure" | 6666 /* confdefs.h. */ |
3733 #include "confdefs.h" | 6667 _ACEOF |
6668 cat confdefs.h >>conftest.$ac_ext | |
6669 cat >>conftest.$ac_ext <<_ACEOF | |
6670 /* end confdefs.h. */ | |
6671 | |
3734 /* Override any gcc2 internal prototype to avoid an error. */ | 6672 /* Override any gcc2 internal prototype to avoid an error. */ |
6673 #ifdef __cplusplus | |
6674 extern "C" | |
6675 #endif | |
3735 /* We use char because int might match the return type of a gcc2 | 6676 /* We use char because int might match the return type of a gcc2 |
3736 builtin and then its argument prototype would still apply. */ | 6677 builtin and then its argument prototype would still apply. */ |
3737 char IceOpenConnection(); | 6678 char IceOpenConnection (); |
3738 | 6679 int |
3739 int main() { | 6680 main () |
3740 IceOpenConnection() | 6681 { |
3741 ; return 0; } | 6682 IceOpenConnection (); |
3742 EOF | 6683 ; |
3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6684 return 0; |
3744 rm -rf conftest* | 6685 } |
3745 eval "ac_cv_lib_$ac_lib_var=yes" | 6686 _ACEOF |
3746 else | 6687 rm -f conftest.$ac_objext conftest$ac_exeext |
3747 echo "configure: failed program was:" >&5 | 6688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3748 cat conftest.$ac_ext >&5 | 6689 (eval $ac_link) 2>conftest.er1 |
3749 rm -rf conftest* | 6690 ac_status=$? |
3750 eval "ac_cv_lib_$ac_lib_var=no" | 6691 grep -v '^ *+' conftest.er1 >conftest.err |
3751 fi | 6692 rm -f conftest.er1 |
3752 rm -f conftest* | 6693 cat conftest.err >&5 |
3753 LIBS="$ac_save_LIBS" | 6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3754 | 6695 (exit $ac_status); } && |
3755 fi | 6696 { ac_try='test -z "$ac_c_werror_flag" |
3756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6697 || test ! -s conftest.err' |
3757 echo "$ac_t""yes" 1>&6 | 6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6699 (eval $ac_try) 2>&5 | |
6700 ac_status=$? | |
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6702 (exit $ac_status); }; } && | |
6703 { ac_try='test -s conftest$ac_exeext' | |
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6705 (eval $ac_try) 2>&5 | |
6706 ac_status=$? | |
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6708 (exit $ac_status); }; }; then | |
6709 ac_cv_lib_ICE_IceOpenConnection=yes | |
6710 else | |
6711 echo "$as_me: failed program was:" >&5 | |
6712 sed 's/^/| /' conftest.$ac_ext >&5 | |
6713 | |
6714 ac_cv_lib_ICE_IceOpenConnection=no | |
6715 fi | |
6716 rm -f conftest.err conftest.$ac_objext \ | |
6717 conftest$ac_exeext conftest.$ac_ext | |
6718 LIBS=$ac_check_lib_save_LIBS | |
6719 fi | |
6720 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 | |
6721 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6 | |
6722 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then | |
3758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" | 6723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
3759 else | |
3760 echo "$ac_t""no" 1>&6 | |
3761 fi | 6724 fi |
3762 | 6725 |
3763 | 6726 |
3764 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" | 6727 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
3765 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6 | 6728 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
3766 echo "configure:3767: checking for XpmCreatePixmapFromData in -lXpm" >&5 | 6729 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 |
3767 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'` | 6730 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
3768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6731 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3769 echo $ac_n "(cached) $ac_c" 1>&6 | 6732 else |
3770 else | 6733 ac_check_lib_save_LIBS=$LIBS |
3771 ac_save_LIBS="$LIBS" | |
3772 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" | 6734 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
3773 cat > conftest.$ac_ext <<EOF | 6735 cat >conftest.$ac_ext <<_ACEOF |
3774 #line 3775 "configure" | 6736 /* confdefs.h. */ |
3775 #include "confdefs.h" | 6737 _ACEOF |
6738 cat confdefs.h >>conftest.$ac_ext | |
6739 cat >>conftest.$ac_ext <<_ACEOF | |
6740 /* end confdefs.h. */ | |
6741 | |
3776 /* Override any gcc2 internal prototype to avoid an error. */ | 6742 /* Override any gcc2 internal prototype to avoid an error. */ |
6743 #ifdef __cplusplus | |
6744 extern "C" | |
6745 #endif | |
3777 /* We use char because int might match the return type of a gcc2 | 6746 /* We use char because int might match the return type of a gcc2 |
3778 builtin and then its argument prototype would still apply. */ | 6747 builtin and then its argument prototype would still apply. */ |
3779 char XpmCreatePixmapFromData(); | 6748 char XpmCreatePixmapFromData (); |
3780 | 6749 int |
3781 int main() { | 6750 main () |
3782 XpmCreatePixmapFromData() | 6751 { |
3783 ; return 0; } | 6752 XpmCreatePixmapFromData (); |
3784 EOF | 6753 ; |
3785 if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6754 return 0; |
3786 rm -rf conftest* | 6755 } |
3787 eval "ac_cv_lib_$ac_lib_var=yes" | 6756 _ACEOF |
3788 else | 6757 rm -f conftest.$ac_objext conftest$ac_exeext |
3789 echo "configure: failed program was:" >&5 | 6758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3790 cat conftest.$ac_ext >&5 | 6759 (eval $ac_link) 2>conftest.er1 |
3791 rm -rf conftest* | 6760 ac_status=$? |
3792 eval "ac_cv_lib_$ac_lib_var=no" | 6761 grep -v '^ *+' conftest.er1 >conftest.err |
3793 fi | 6762 rm -f conftest.er1 |
3794 rm -f conftest* | 6763 cat conftest.err >&5 |
3795 LIBS="$ac_save_LIBS" | 6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3796 | 6765 (exit $ac_status); } && |
3797 fi | 6766 { ac_try='test -z "$ac_c_werror_flag" |
3798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6767 || test ! -s conftest.err' |
3799 echo "$ac_t""yes" 1>&6 | 6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6769 (eval $ac_try) 2>&5 | |
6770 ac_status=$? | |
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6772 (exit $ac_status); }; } && | |
6773 { ac_try='test -s conftest$ac_exeext' | |
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6775 (eval $ac_try) 2>&5 | |
6776 ac_status=$? | |
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6778 (exit $ac_status); }; }; then | |
6779 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes | |
6780 else | |
6781 echo "$as_me: failed program was:" >&5 | |
6782 sed 's/^/| /' conftest.$ac_ext >&5 | |
6783 | |
6784 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no | |
6785 fi | |
6786 rm -f conftest.err conftest.$ac_objext \ | |
6787 conftest$ac_exeext conftest.$ac_ext | |
6788 LIBS=$ac_check_lib_save_LIBS | |
6789 fi | |
6790 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 | |
6791 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 | |
6792 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then | |
3800 X_PRE_LIBS="$X_PRE_LIBS -lXpm" | 6793 X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
3801 else | 6794 fi |
3802 echo "$ac_t""no" 1>&6 | 6795 |
3803 fi | 6796 |
3804 | 6797 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
3805 | 6798 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6 |
3806 echo $ac_n "checking if X11 header files implicitly declare return values""... $ac_c" 1>&6 | |
3807 echo "configure:3808: checking if X11 header files implicitly declare return values" >&5 | |
3808 cflags_save=$CFLAGS | 6799 cflags_save=$CFLAGS |
3809 CFLAGS="$CFLAGS $X_CFLAGS -Werror" | 6800 CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
3810 cat > conftest.$ac_ext <<EOF | 6801 cat >conftest.$ac_ext <<_ACEOF |
3811 #line 3812 "configure" | 6802 /* confdefs.h. */ |
3812 #include "confdefs.h" | 6803 _ACEOF |
6804 cat confdefs.h >>conftest.$ac_ext | |
6805 cat >>conftest.$ac_ext <<_ACEOF | |
6806 /* end confdefs.h. */ | |
3813 #include <X11/Xlib.h> | 6807 #include <X11/Xlib.h> |
3814 int main() { | 6808 int |
3815 | 6809 main () |
3816 ; return 0; } | 6810 { |
3817 EOF | 6811 |
3818 if { (eval echo configure:3819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6812 ; |
3819 rm -rf conftest* | 6813 return 0; |
3820 echo "$ac_t""no" 1>&6 | 6814 } |
3821 else | 6815 _ACEOF |
3822 echo "configure: failed program was:" >&5 | 6816 rm -f conftest.$ac_objext |
3823 cat conftest.$ac_ext >&5 | 6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3824 rm -rf conftest* | 6818 (eval $ac_compile) 2>conftest.er1 |
3825 CFLAGS="$CFLAGS -Wno-implicit-int" | 6819 ac_status=$? |
3826 cat > conftest.$ac_ext <<EOF | 6820 grep -v '^ *+' conftest.er1 >conftest.err |
3827 #line 3828 "configure" | 6821 rm -f conftest.er1 |
3828 #include "confdefs.h" | 6822 cat conftest.err >&5 |
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6824 (exit $ac_status); } && | |
6825 { ac_try='test -z "$ac_c_werror_flag" | |
6826 || test ! -s conftest.err' | |
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6828 (eval $ac_try) 2>&5 | |
6829 ac_status=$? | |
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6831 (exit $ac_status); }; } && | |
6832 { ac_try='test -s conftest.$ac_objext' | |
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6834 (eval $ac_try) 2>&5 | |
6835 ac_status=$? | |
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6837 (exit $ac_status); }; }; then | |
6838 echo "$as_me:$LINENO: result: no" >&5 | |
6839 echo "${ECHO_T}no" >&6 | |
6840 else | |
6841 echo "$as_me: failed program was:" >&5 | |
6842 sed 's/^/| /' conftest.$ac_ext >&5 | |
6843 | |
6844 CFLAGS="$CFLAGS -Wno-implicit-int" | |
6845 cat >conftest.$ac_ext <<_ACEOF | |
6846 /* confdefs.h. */ | |
6847 _ACEOF | |
6848 cat confdefs.h >>conftest.$ac_ext | |
6849 cat >>conftest.$ac_ext <<_ACEOF | |
6850 /* end confdefs.h. */ | |
3829 #include <X11/Xlib.h> | 6851 #include <X11/Xlib.h> |
3830 int main() { | 6852 int |
3831 | 6853 main () |
3832 ; return 0; } | 6854 { |
3833 EOF | 6855 |
3834 if { (eval echo configure:3835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6856 ; |
3835 rm -rf conftest* | 6857 return 0; |
3836 echo "$ac_t""yes" 1>&6; cflags_save="$cflags_save -Wno-implicit-int" | 6858 } |
3837 else | 6859 _ACEOF |
3838 echo "configure: failed program was:" >&5 | 6860 rm -f conftest.$ac_objext |
3839 cat conftest.$ac_ext >&5 | 6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3840 rm -rf conftest* | 6862 (eval $ac_compile) 2>conftest.er1 |
3841 echo "$ac_t""test failed" 1>&6 | 6863 ac_status=$? |
3842 | 6864 grep -v '^ *+' conftest.er1 >conftest.err |
3843 fi | 6865 rm -f conftest.er1 |
3844 rm -f conftest* | 6866 cat conftest.err >&5 |
3845 | 6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3846 fi | 6868 (exit $ac_status); } && |
3847 rm -f conftest* | 6869 { ac_try='test -z "$ac_c_werror_flag" |
6870 || test ! -s conftest.err' | |
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6872 (eval $ac_try) 2>&5 | |
6873 ac_status=$? | |
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6875 (exit $ac_status); }; } && | |
6876 { ac_try='test -s conftest.$ac_objext' | |
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6878 (eval $ac_try) 2>&5 | |
6879 ac_status=$? | |
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6881 (exit $ac_status); }; }; then | |
6882 echo "$as_me:$LINENO: result: yes" >&5 | |
6883 echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int" | |
6884 else | |
6885 echo "$as_me: failed program was:" >&5 | |
6886 sed 's/^/| /' conftest.$ac_ext >&5 | |
6887 | |
6888 echo "$as_me:$LINENO: result: test failed" >&5 | |
6889 echo "${ECHO_T}test failed" >&6 | |
6890 | |
6891 fi | |
6892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6893 | |
6894 fi | |
6895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3848 CFLAGS=$cflags_save | 6896 CFLAGS=$cflags_save |
3849 | 6897 |
3850 LDFLAGS="$ac_save_LDFLAGS" | 6898 LDFLAGS="$ac_save_LDFLAGS" |
3851 | 6899 |
3852 fi | 6900 fi |
3853 fi | 6901 fi |
3854 | 6902 |
3855 test "x$with_x" = xno -a "x$BEOS" != "xyes" -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no | 6903 test "x$with_x" = xno -a "x$BEOS" != "xyes" -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no |
3856 | 6904 |
3857 echo $ac_n "checking --enable-gui argument""... $ac_c" 1>&6 | 6905 echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
3858 echo "configure:3859: checking --enable-gui argument" >&5 | 6906 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6 |
3859 # Check whether --enable-gui or --disable-gui was given. | 6907 # Check whether --enable-gui or --disable-gui was given. |
3860 if test "${enable_gui+set}" = set; then | 6908 if test "${enable_gui+set}" = set; then |
3861 enableval="$enable_gui" | 6909 enableval="$enable_gui" |
3862 : | 6910 |
3863 else | 6911 else |
3864 enable_gui="auto" | 6912 enable_gui="auto" |
3865 fi | 6913 fi; |
3866 | |
3867 | 6914 |
3868 enable_gui_canon=`echo "_$enable_gui" | \ | 6915 enable_gui_canon=`echo "_$enable_gui" | \ |
3869 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` | 6916 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
3870 | 6917 |
3871 SKIP_GTK=YES | 6918 SKIP_GTK=YES |
3874 SKIP_KDE=YES | 6921 SKIP_KDE=YES |
3875 SKIP_MOTIF=YES | 6922 SKIP_MOTIF=YES |
3876 SKIP_ATHENA=YES | 6923 SKIP_ATHENA=YES |
3877 SKIP_NEXTAW=YES | 6924 SKIP_NEXTAW=YES |
3878 SKIP_PHOTON=YES | 6925 SKIP_PHOTON=YES |
3879 SKIP_BEOS=YES | |
3880 SKIP_CARBON=YES | 6926 SKIP_CARBON=YES |
3881 GUITYPE=NONE | 6927 GUITYPE=NONE |
3882 | 6928 |
3883 if test "x$BEOS" = "xyes"; then | 6929 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
3884 SKIP_BEOS= | |
3885 case "$enable_gui_canon" in | |
3886 no) echo "$ac_t""no GUI support" 1>&6 | |
3887 SKIP_BEOS=YES ;; | |
3888 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; | |
3889 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; | |
3890 beos) echo "$ac_t""BeOS GUI support" 1>&6 ;; | |
3891 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 | |
3892 SKIP_BEOS=YES ;; | |
3893 esac | |
3894 | |
3895 elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then | |
3896 SKIP_PHOTON= | 6930 SKIP_PHOTON= |
3897 case "$enable_gui_canon" in | 6931 case "$enable_gui_canon" in |
3898 no) echo "$ac_t""no GUI support" 1>&6 | 6932 no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
6933 echo "${ECHO_T}no GUI support" >&6 | |
3899 SKIP_PHOTON=YES ;; | 6934 SKIP_PHOTON=YES ;; |
3900 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; | 6935 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
3901 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; | 6936 echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
3902 photon) echo "$ac_t""Photon GUI support" 1>&6 ;; | 6937 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
3903 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 | 6938 echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
6939 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5 | |
6940 echo "${ECHO_T}Photon GUI support" >&6 ;; | |
6941 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 | |
6942 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 | |
3904 SKIP_PHOTON=YES ;; | 6943 SKIP_PHOTON=YES ;; |
3905 esac | 6944 esac |
3906 | 6945 |
3907 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then | 6946 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
3908 SKIP_CARBON= | 6947 SKIP_CARBON= |
3909 case "$enable_gui_canon" in | 6948 case "$enable_gui_canon" in |
3910 no) echo "$ac_t""no GUI support" 1>&6 | 6949 no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
6950 echo "${ECHO_T}no GUI support" >&6 | |
3911 SKIP_CARBON=YES ;; | 6951 SKIP_CARBON=YES ;; |
3912 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; | 6952 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
3913 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; | 6953 echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
3914 carbon) echo "$ac_t""Carbon GUI support" 1>&6 ;; | 6954 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
3915 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 | 6955 echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
6956 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5 | |
6957 echo "${ECHO_T}Carbon GUI support" >&6 ;; | |
6958 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 | |
6959 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 | |
3916 SKIP_CARBON=YES ;; | 6960 SKIP_CARBON=YES ;; |
3917 esac | 6961 esac |
3918 | 6962 |
3919 else | 6963 else |
3920 | 6964 |
3921 case "$enable_gui_canon" in | 6965 case "$enable_gui_canon" in |
3922 no|none) echo "$ac_t""no GUI support" 1>&6 ;; | 6966 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5 |
3923 yes|""|auto) echo "$ac_t""yes/auto - automatic GUI support" 1>&6 | 6967 echo "${ECHO_T}no GUI support" >&6 ;; |
6968 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 | |
6969 echo "${ECHO_T}yes/auto - automatic GUI support" >&6 | |
3924 SKIP_GTK= | 6970 SKIP_GTK= |
3925 SKIP_GTK2= | 6971 SKIP_GTK2= |
3926 SKIP_GNOME= | 6972 SKIP_GNOME= |
3927 SKIP_MOTIF= | 6973 SKIP_MOTIF= |
3928 SKIP_ATHENA= | 6974 SKIP_ATHENA= |
3929 SKIP_NEXTAW= | 6975 SKIP_NEXTAW= |
3930 SKIP_CARBON=;; | 6976 SKIP_CARBON=;; |
3931 kde|Kde|KDE) echo "$ac_t""KDE 2.x or 3.x GUI support" 1>&6 | 6977 kde|Kde|KDE) echo "$as_me:$LINENO: result: KDE 2.x or 3.x GUI support" >&5 |
6978 echo "${ECHO_T}KDE 2.x or 3.x GUI support" >&6 | |
3932 SKIP_KDE=;; | 6979 SKIP_KDE=;; |
3933 gtk) echo "$ac_t""GTK+ 1.x GUI support" 1>&6 | 6980 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
6981 echo "${ECHO_T}GTK+ 1.x GUI support" >&6 | |
3934 SKIP_GTK=;; | 6982 SKIP_GTK=;; |
3935 gtk2) echo "$ac_t""GTK+ 2.x GUI support" 1>&6 | 6983 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
6984 echo "${ECHO_T}GTK+ 2.x GUI support" >&6 | |
3936 SKIP_GTK= | 6985 SKIP_GTK= |
3937 SKIP_GTK2=;; | 6986 SKIP_GTK2=;; |
3938 gnome) echo "$ac_t""GNOME 1.x GUI support" 1>&6 | 6987 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
6988 echo "${ECHO_T}GNOME 1.x GUI support" >&6 | |
3939 SKIP_GNOME= | 6989 SKIP_GNOME= |
3940 SKIP_GTK=;; | 6990 SKIP_GTK=;; |
3941 gnome2) echo "$ac_t""GNOME 2.x GUI support" 1>&6 | 6991 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
6992 echo "${ECHO_T}GNOME 2.x GUI support" >&6 | |
3942 SKIP_GNOME= | 6993 SKIP_GNOME= |
3943 SKIP_GTK= | 6994 SKIP_GTK= |
3944 SKIP_GTK2=;; | 6995 SKIP_GTK2=;; |
3945 motif) echo "$ac_t""Motif GUI support" 1>&6 | 6996 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
6997 echo "${ECHO_T}Motif GUI support" >&6 | |
3946 SKIP_MOTIF=;; | 6998 SKIP_MOTIF=;; |
3947 athena) echo "$ac_t""Athena GUI support" 1>&6 | 6999 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
7000 echo "${ECHO_T}Athena GUI support" >&6 | |
3948 SKIP_ATHENA=;; | 7001 SKIP_ATHENA=;; |
3949 nextaw) echo "$ac_t""neXtaw GUI support" 1>&6 | 7002 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
7003 echo "${ECHO_T}neXtaw GUI support" >&6 | |
3950 SKIP_NEXTAW=;; | 7004 SKIP_NEXTAW=;; |
3951 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 ;; | 7005 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
7006 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;; | |
3952 esac | 7007 esac |
3953 | 7008 |
3954 fi | 7009 fi |
3955 | 7010 |
3956 if test "x$SKIP_KDE" != "xYES" -a "$enable_gui_canon" != "kde"; then | 7011 if test "x$SKIP_KDE" != "xYES" -a "$enable_gui_canon" != "kde"; then |
3957 echo $ac_n "checking whether or not to look for KDE""... $ac_c" 1>&6 | 7012 echo "$as_me:$LINENO: checking whether or not to look for KDE" >&5 |
3958 echo "configure:3959: checking whether or not to look for KDE" >&5 | 7013 echo $ECHO_N "checking whether or not to look for KDE... $ECHO_C" >&6 |
3959 # Check whether --enable-kde-check or --disable-kde-check was given. | 7014 # Check whether --enable-kde-check or --disable-kde-check was given. |
3960 if test "${enable_kde_check+set}" = set; then | 7015 if test "${enable_kde_check+set}" = set; then |
3961 enableval="$enable_kde_check" | 7016 enableval="$enable_kde_check" |
3962 : | 7017 |
3963 else | 7018 else |
3964 enable_kde_check="no" | 7019 enable_kde_check="no" |
3965 fi | 7020 fi; |
3966 | 7021 echo "$as_me:$LINENO: result: $enable_kde_check" >&5 |
3967 echo "$ac_t""$enable_kde_check" 1>&6; | 7022 echo "${ECHO_T}$enable_kde_check" >&6; |
3968 if test "x$enable_kde_check" = "xno"; then | 7023 if test "x$enable_kde_check" = "xno"; then |
3969 SKIP_KDE=YES | 7024 SKIP_KDE=YES |
3970 fi | 7025 fi |
3971 fi | 7026 fi |
3972 | 7027 |
3973 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then | 7028 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then |
3974 echo $ac_n "checking whether or not to look for GTK""... $ac_c" 1>&6 | 7029 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
3975 echo "configure:3976: checking whether or not to look for GTK" >&5 | 7030 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6 |
3976 # Check whether --enable-gtk-check or --disable-gtk-check was given. | 7031 # Check whether --enable-gtk-check or --disable-gtk-check was given. |
3977 if test "${enable_gtk_check+set}" = set; then | 7032 if test "${enable_gtk_check+set}" = set; then |
3978 enableval="$enable_gtk_check" | 7033 enableval="$enable_gtk_check" |
3979 : | 7034 |
3980 else | 7035 else |
3981 enable_gtk_check="yes" | 7036 enable_gtk_check="yes" |
3982 fi | 7037 fi; |
3983 | 7038 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
3984 echo "$ac_t""$enable_gtk_check" 1>&6 | 7039 echo "${ECHO_T}$enable_gtk_check" >&6 |
3985 if test "x$enable_gtk_check" = "xno"; then | 7040 if test "x$enable_gtk_check" = "xno"; then |
3986 SKIP_GTK=YES | 7041 SKIP_GTK=YES |
3987 SKIP_GNOME=YES | 7042 SKIP_GNOME=YES |
3988 fi | 7043 fi |
3989 fi | 7044 fi |
3990 | 7045 |
3991 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ | 7046 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
3992 -a "$enable_gui_canon" != "gnome2"; then | 7047 -a "$enable_gui_canon" != "gnome2"; then |
3993 echo $ac_n "checking whether or not to look for GTK+ 2""... $ac_c" 1>&6 | 7048 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
3994 echo "configure:3995: checking whether or not to look for GTK+ 2" >&5 | 7049 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6 |
3995 # Check whether --enable-gtk2-check or --disable-gtk2-check was given. | 7050 # Check whether --enable-gtk2-check or --disable-gtk2-check was given. |
3996 if test "${enable_gtk2_check+set}" = set; then | 7051 if test "${enable_gtk2_check+set}" = set; then |
3997 enableval="$enable_gtk2_check" | 7052 enableval="$enable_gtk2_check" |
3998 : | 7053 |
3999 else | 7054 else |
4000 enable_gtk2_check="yes" | 7055 enable_gtk2_check="yes" |
4001 fi | 7056 fi; |
4002 | 7057 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
4003 echo "$ac_t""$enable_gtk2_check" 1>&6 | 7058 echo "${ECHO_T}$enable_gtk2_check" >&6 |
4004 if test "x$enable_gtk2_check" = "xno"; then | 7059 if test "x$enable_gtk2_check" = "xno"; then |
4005 SKIP_GTK2=YES | 7060 SKIP_GTK2=YES |
4006 fi | 7061 fi |
4007 fi | 7062 fi |
4008 | 7063 |
4009 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ | 7064 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
4010 -a "$enable_gui_canon" != "gnome2"; then | 7065 -a "$enable_gui_canon" != "gnome2"; then |
4011 echo $ac_n "checking whether or not to look for GNOME""... $ac_c" 1>&6 | 7066 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
4012 echo "configure:4013: checking whether or not to look for GNOME" >&5 | 7067 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6 |
4013 # Check whether --enable-gnome-check or --disable-gnome-check was given. | 7068 # Check whether --enable-gnome-check or --disable-gnome-check was given. |
4014 if test "${enable_gnome_check+set}" = set; then | 7069 if test "${enable_gnome_check+set}" = set; then |
4015 enableval="$enable_gnome_check" | 7070 enableval="$enable_gnome_check" |
4016 : | 7071 |
4017 else | 7072 else |
4018 enable_gnome_check="no" | 7073 enable_gnome_check="no" |
4019 fi | 7074 fi; |
4020 | 7075 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
4021 echo "$ac_t""$enable_gnome_check" 1>&6 | 7076 echo "${ECHO_T}$enable_gnome_check" >&6 |
4022 if test "x$enable_gnome_check" = "xno"; then | 7077 if test "x$enable_gnome_check" = "xno"; then |
4023 SKIP_GNOME=YES | 7078 SKIP_GNOME=YES |
4024 fi | 7079 fi |
4025 fi | 7080 fi |
4026 | 7081 |
4027 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then | 7082 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
4028 echo $ac_n "checking whether or not to look for Motif""... $ac_c" 1>&6 | 7083 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
4029 echo "configure:4030: checking whether or not to look for Motif" >&5 | 7084 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6 |
4030 # Check whether --enable-motif-check or --disable-motif-check was given. | 7085 # Check whether --enable-motif-check or --disable-motif-check was given. |
4031 if test "${enable_motif_check+set}" = set; then | 7086 if test "${enable_motif_check+set}" = set; then |
4032 enableval="$enable_motif_check" | 7087 enableval="$enable_motif_check" |
4033 : | 7088 |
4034 else | 7089 else |
4035 enable_motif_check="yes" | 7090 enable_motif_check="yes" |
4036 fi | 7091 fi; |
4037 | 7092 echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
4038 echo "$ac_t""$enable_motif_check" 1>&6 | 7093 echo "${ECHO_T}$enable_motif_check" >&6 |
4039 if test "x$enable_motif_check" = "xno"; then | 7094 if test "x$enable_motif_check" = "xno"; then |
4040 SKIP_MOTIF=YES | 7095 SKIP_MOTIF=YES |
4041 fi | 7096 fi |
4042 fi | 7097 fi |
4043 | 7098 |
4044 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then | 7099 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
4045 echo $ac_n "checking whether or not to look for Athena""... $ac_c" 1>&6 | 7100 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
4046 echo "configure:4047: checking whether or not to look for Athena" >&5 | 7101 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6 |
4047 # Check whether --enable-athena-check or --disable-athena-check was given. | 7102 # Check whether --enable-athena-check or --disable-athena-check was given. |
4048 if test "${enable_athena_check+set}" = set; then | 7103 if test "${enable_athena_check+set}" = set; then |
4049 enableval="$enable_athena_check" | 7104 enableval="$enable_athena_check" |
4050 : | 7105 |
4051 else | 7106 else |
4052 enable_athena_check="yes" | 7107 enable_athena_check="yes" |
4053 fi | 7108 fi; |
4054 | 7109 echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
4055 echo "$ac_t""$enable_athena_check" 1>&6 | 7110 echo "${ECHO_T}$enable_athena_check" >&6 |
4056 if test "x$enable_athena_check" = "xno"; then | 7111 if test "x$enable_athena_check" = "xno"; then |
4057 SKIP_ATHENA=YES | 7112 SKIP_ATHENA=YES |
4058 fi | 7113 fi |
4059 fi | 7114 fi |
4060 | 7115 |
4061 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then | 7116 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
4062 echo $ac_n "checking whether or not to look for neXtaw""... $ac_c" 1>&6 | 7117 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
4063 echo "configure:4064: checking whether or not to look for neXtaw" >&5 | 7118 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6 |
4064 # Check whether --enable-nextaw-check or --disable-nextaw-check was given. | 7119 # Check whether --enable-nextaw-check or --disable-nextaw-check was given. |
4065 if test "${enable_nextaw_check+set}" = set; then | 7120 if test "${enable_nextaw_check+set}" = set; then |
4066 enableval="$enable_nextaw_check" | 7121 enableval="$enable_nextaw_check" |
4067 : | 7122 |
4068 else | 7123 else |
4069 enable_nextaw_check="yes" | 7124 enable_nextaw_check="yes" |
4070 fi | 7125 fi; |
4071 | 7126 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
4072 echo "$ac_t""$enable_nextaw_check" 1>&6; | 7127 echo "${ECHO_T}$enable_nextaw_check" >&6; |
4073 if test "x$enable_nextaw_check" = "xno"; then | 7128 if test "x$enable_nextaw_check" = "xno"; then |
4074 SKIP_NEXTAW=YES | 7129 SKIP_NEXTAW=YES |
4075 fi | 7130 fi |
4076 fi | 7131 fi |
4077 | 7132 |
4078 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then | 7133 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
4079 echo $ac_n "checking whether or not to look for Carbon""... $ac_c" 1>&6 | 7134 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
4080 echo "configure:4081: checking whether or not to look for Carbon" >&5 | 7135 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6 |
4081 # Check whether --enable-carbon-check or --disable-carbon-check was given. | 7136 # Check whether --enable-carbon-check or --disable-carbon-check was given. |
4082 if test "${enable_carbon_check+set}" = set; then | 7137 if test "${enable_carbon_check+set}" = set; then |
4083 enableval="$enable_carbon_check" | 7138 enableval="$enable_carbon_check" |
4084 : | 7139 |
4085 else | 7140 else |
4086 enable_carbon_check="yes" | 7141 enable_carbon_check="yes" |
4087 fi | 7142 fi; |
4088 | 7143 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
4089 echo "$ac_t""$enable_carbon_check" 1>&6; | 7144 echo "${ECHO_T}$enable_carbon_check" >&6; |
4090 if test "x$enable_carbon_check" = "xno"; then | 7145 if test "x$enable_carbon_check" = "xno"; then |
4091 SKIP_CARBON=YES | 7146 SKIP_CARBON=YES |
4092 fi | 7147 fi |
4093 fi | 7148 fi |
4094 | 7149 |
4095 | 7150 |
4096 if test -z "$SKIP_KDE"; then | 7151 if test -z "$SKIP_KDE"; then |
7152 | |
4097 # Check whether --with-qt-dir or --without-qt-dir was given. | 7153 # Check whether --with-qt-dir or --without-qt-dir was given. |
4098 if test "${with_qt_dir+set}" = set; then | 7154 if test "${with_qt_dir+set}" = set; then |
4099 withval="$with_qt_dir" | 7155 withval="$with_qt_dir" |
4100 | 7156 |
4101 ROOTQT="$withval" | 7157 ROOTQT="$withval" |
4102 MOC="$withval"/bin/moc | 7158 MOC="$withval"/bin/moc |
4103 QT_INCLUDES="$withval"/include | 7159 QT_INCLUDES="$withval"/include |
4104 QT_LIBS="$withval"/lib | 7160 QT_LIBS="$withval"/lib |
4105 | 7161 |
4106 fi | 7162 fi; |
4107 | |
4108 | 7163 |
4109 if test "x$ROOTQT" = "x"; then | 7164 if test "x$ROOTQT" = "x"; then |
4110 if test -z "$QTDIR"; then | 7165 if test -z "$QTDIR"; then |
4111 # Extract the first word of "moc", so it can be a program name with args. | 7166 # Extract the first word of "moc", so it can be a program name with args. |
4112 set dummy moc; ac_word=$2 | 7167 set dummy moc; ac_word=$2 |
4113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 7168 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4114 echo "configure:4115: checking for $ac_word" >&5 | 7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4115 if eval "test \"`echo '$''{'ac_cv_path_MOC'+set}'`\" = set"; then | 7170 if test "${ac_cv_path_MOC+set}" = set; then |
4116 echo $ac_n "(cached) $ac_c" 1>&6 | 7171 echo $ECHO_N "(cached) $ECHO_C" >&6 |
4117 else | 7172 else |
4118 case "$MOC" in | 7173 case $MOC in |
4119 /*) | 7174 [\\/]* | ?:[\\/]*) |
4120 ac_cv_path_MOC="$MOC" # Let the user override the test with a path. | 7175 ac_cv_path_MOC="$MOC" # Let the user override the test with a path. |
4121 ;; | 7176 ;; |
4122 ?:/*) | |
4123 ac_cv_path_MOC="$MOC" # Let the user override the test with a dos path. | |
4124 ;; | |
4125 *) | 7177 *) |
4126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4127 ac_dummy="$PATH" | 7179 for as_dir in $PATH |
4128 for ac_dir in $ac_dummy; do | 7180 do |
4129 test -z "$ac_dir" && ac_dir=. | 7181 IFS=$as_save_IFS |
4130 if test -f $ac_dir/$ac_word; then | 7182 test -z "$as_dir" && as_dir=. |
4131 ac_cv_path_MOC="$ac_dir/$ac_word" | 7183 for ac_exec_ext in '' $ac_executable_extensions; do |
4132 break | 7184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4133 fi | 7185 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext" |
4134 done | 7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4135 IFS="$ac_save_ifs" | 7187 break 2 |
7188 fi | |
7189 done | |
7190 done | |
7191 | |
4136 test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no" | 7192 test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no" |
4137 ;; | 7193 ;; |
4138 esac | 7194 esac |
4139 fi | 7195 fi |
4140 MOC="$ac_cv_path_MOC" | 7196 MOC=$ac_cv_path_MOC |
7197 | |
4141 if test -n "$MOC"; then | 7198 if test -n "$MOC"; then |
4142 echo "$ac_t""$MOC" 1>&6 | 7199 echo "$as_me:$LINENO: result: $MOC" >&5 |
4143 else | 7200 echo "${ECHO_T}$MOC" >&6 |
4144 echo "$ac_t""no" 1>&6 | 7201 else |
7202 echo "$as_me:$LINENO: result: no" >&5 | |
7203 echo "${ECHO_T}no" >&6 | |
4145 fi | 7204 fi |
4146 | 7205 |
4147 if test "x$MOC" = "xno"; then | 7206 if test "x$MOC" = "xno"; then |
4148 { echo "configure: error: could not find Qt directory" 1>&2; exit 1; } | 7207 { { echo "$as_me:$LINENO: error: could not find Qt directory" >&5 |
7208 echo "$as_me: error: could not find Qt directory" >&2;} | |
7209 { (exit 1); exit 1; }; } | |
4149 else | 7210 else |
4150 ROOTQT=`echo $MOC | sed 's+/bin/moc++'` | 7211 ROOTQT=`echo $MOC | sed 's+/bin/moc++'` |
4151 fi | 7212 fi |
4152 else | 7213 else |
4153 ROOTQT="$QTDIR" | 7214 ROOTQT="$QTDIR" |
4155 fi | 7216 fi |
4156 MOC="$ROOTQT"/bin/moc | 7217 MOC="$ROOTQT"/bin/moc |
4157 QT_INCLUDES="$ROOTQT"/include | 7218 QT_INCLUDES="$ROOTQT"/include |
4158 QT_LIBS="$ROOTQT"/lib | 7219 QT_LIBS="$ROOTQT"/lib |
4159 | 7220 |
7221 | |
4160 # Check whether --with-qt-includes or --without-qt-includes was given. | 7222 # Check whether --with-qt-includes or --without-qt-includes was given. |
4161 if test "${with_qt_includes+set}" = set; then | 7223 if test "${with_qt_includes+set}" = set; then |
4162 withval="$with_qt_includes" | 7224 withval="$with_qt_includes" |
4163 QT_INCLUDES="$withval" | 7225 QT_INCLUDES="$withval" |
4164 | 7226 |
4165 fi | 7227 fi; |
4166 | 7228 |
4167 | 7229 |
4168 # Check whether --with-qt-libraries or --without-qt-libraries was given. | 7230 # Check whether --with-qt-libraries or --without-qt-libraries was given. |
4169 if test "${with_qt_libraries+set}" = set; then | 7231 if test "${with_qt_libraries+set}" = set; then |
4170 withval="$with_qt_libraries" | 7232 withval="$with_qt_libraries" |
4171 QT_LIBS="$withval" | 7233 QT_LIBS="$withval" |
4172 | 7234 |
4173 fi | 7235 fi; |
4174 | |
4175 | 7236 |
4176 if test "x$QT_LIBS" = "x" ; then | 7237 if test "x$QT_LIBS" = "x" ; then |
4177 QT_LIBS="$ROOTQT"/lib | 7238 QT_LIBS="$ROOTQT"/lib |
4178 fi | 7239 fi |
4179 if test "x$QT_INCLUDES" = "x" ; then | 7240 if test "x$QT_INCLUDES" = "x" ; then |
4180 QT_INCLUDES="$ROOTQT"/include | 7241 QT_INCLUDES="$ROOTQT"/include |
4181 fi | 7242 fi |
4182 | 7243 |
4183 echo $ac_n "checking whether or not to use a KDE Toolbar in KVim""... $ac_c" 1>&6 | 7244 echo "$as_me:$LINENO: checking whether or not to use a KDE Toolbar in KVim" >&5 |
4184 echo "configure:4185: checking whether or not to use a KDE Toolbar in KVim" >&5 | 7245 echo $ECHO_N "checking whether or not to use a KDE Toolbar in KVim... $ECHO_C" >&6 |
4185 # Check whether --enable-kde-toolbar or --disable-kde-toolbar was given. | 7246 # Check whether --enable-kde-toolbar or --disable-kde-toolbar was given. |
4186 if test "${enable_kde_toolbar+set}" = set; then | 7247 if test "${enable_kde_toolbar+set}" = set; then |
4187 enableval="$enable_kde_toolbar" | 7248 enableval="$enable_kde_toolbar" |
4188 : | 7249 |
4189 else | 7250 else |
4190 enable_kde_toolbar="no" | 7251 enable_kde_toolbar="no" |
4191 fi | 7252 fi; |
4192 | |
4193 if test "x$enable_kde_toolbar" != "xno"; then | 7253 if test "x$enable_kde_toolbar" != "xno"; then |
4194 cat >> confdefs.h <<\EOF | 7254 cat >>confdefs.h <<\_ACEOF |
4195 #define FEAT_KDETOOLBAR 1 | 7255 #define FEAT_KDETOOLBAR 1 |
4196 EOF | 7256 _ACEOF |
4197 | 7257 |
4198 fi | 7258 fi |
4199 echo "$ac_t""$enable_kde_toolbar" 1>&6; | 7259 echo "$as_me:$LINENO: result: $enable_kde_toolbar" >&5 |
7260 echo "${ECHO_T}$enable_kde_toolbar" >&6; | |
4200 fi | 7261 fi |
4201 | 7262 |
4202 | 7263 |
4203 if test -z "$SKIP_KDE"; then | 7264 if test -z "$SKIP_KDE"; then |
4204 | 7265 |
4205 | 7266 |
4206 | 7267 |
4207 | 7268 |
4208 echo $ac_n "checking --disable-rpath argument""... $ac_c" 1>&6 | 7269 echo "$as_me:$LINENO: checking --disable-rpath argument" >&5 |
4209 echo "configure:4210: checking --disable-rpath argument" >&5 | 7270 echo $ECHO_N "checking --disable-rpath argument... $ECHO_C" >&6 |
4210 # Check whether --enable-rpath or --disable-rpath was given. | 7271 # Check whether --enable-rpath or --disable-rpath was given. |
4211 if test "${enable_rpath+set}" = set; then | 7272 if test "${enable_rpath+set}" = set; then |
4212 enableval="$enable_rpath" | 7273 enableval="$enable_rpath" |
4213 : | 7274 |
4214 else | 7275 else |
4215 enable_rpath="yes" | 7276 enable_rpath="yes" |
4216 fi | 7277 fi; |
4217 | |
4218 if test "$enable_rpath" = "yes"; then | 7278 if test "$enable_rpath" = "yes"; then |
4219 echo "$ac_t""no" 1>&6 | 7279 echo "$as_me:$LINENO: result: no" >&5 |
4220 else | 7280 echo "${ECHO_T}no" >&6 |
4221 echo "$ac_t""yes" 1>&6 | 7281 else |
4222 fi | 7282 echo "$as_me:$LINENO: result: yes" >&5 |
4223 | 7283 echo "${ECHO_T}yes" >&6 |
4224 echo $ac_n "checking --with-kde-prefix argument""... $ac_c" 1>&6 | 7284 fi |
4225 echo "configure:4226: checking --with-kde-prefix argument" >&5 | 7285 |
7286 echo "$as_me:$LINENO: checking --with-kde-prefix argument" >&5 | |
7287 echo $ECHO_N "checking --with-kde-prefix argument... $ECHO_C" >&6 | |
7288 | |
4226 # Check whether --with-kde-prefix or --without-kde-prefix was given. | 7289 # Check whether --with-kde-prefix or --without-kde-prefix was given. |
4227 if test "${with_kde_prefix+set}" = set; then | 7290 if test "${with_kde_prefix+set}" = set; then |
4228 withval="$with_kde_prefix" | 7291 withval="$with_kde_prefix" |
4229 kde_config_prefix="$withval"; | 7292 kde_config_prefix="$withval"; |
4230 echo "$ac_t""$kde_config_prefix" 1>&6 | 7293 echo "$as_me:$LINENO: result: $kde_config_prefix" >&5 |
4231 else | 7294 echo "${ECHO_T}$kde_config_prefix" >&6 |
4232 kde_config_prefix="";echo "$ac_t""no" 1>&6 | 7295 else |
4233 fi | 7296 kde_config_prefix="";echo "$as_me:$LINENO: result: no" >&5 |
7297 echo "${ECHO_T}no" >&6 | |
7298 fi; | |
4234 | 7299 |
4235 | 7300 |
4236 # Check whether --with-kde-includes or --without-kde-includes was given. | 7301 # Check whether --with-kde-includes or --without-kde-includes was given. |
4237 if test "${with_kde_includes+set}" = set; then | 7302 if test "${with_kde_includes+set}" = set; then |
4238 withval="$with_kde_includes" | 7303 withval="$with_kde_includes" |
4239 KDE_INCLUDES="$withval" | 7304 KDE_INCLUDES="$withval" |
4240 | 7305 |
4241 fi | 7306 fi; |
4242 | 7307 |
4243 | 7308 |
4244 # Check whether --with-kde-libraries or --without-kde-libraries was given. | 7309 # Check whether --with-kde-libraries or --without-kde-libraries was given. |
4245 if test "${with_kde_libraries+set}" = set; then | 7310 if test "${with_kde_libraries+set}" = set; then |
4246 withval="$with_kde_libraries" | 7311 withval="$with_kde_libraries" |
4247 KDE_LIBS="$withval" | 7312 KDE_LIBS="$withval" |
4248 | 7313 |
4249 fi | 7314 fi; |
4250 | 7315 |
4251 | 7316 echo "$as_me:$LINENO: checking --disable-kdetest argument" >&5 |
4252 echo $ac_n "checking --disable-kdetest argument""... $ac_c" 1>&6 | 7317 echo $ECHO_N "checking --disable-kdetest argument... $ECHO_C" >&6 |
4253 echo "configure:4254: checking --disable-kdetest argument" >&5 | |
4254 # Check whether --enable-kdetest or --disable-kdetest was given. | 7318 # Check whether --enable-kdetest or --disable-kdetest was given. |
4255 if test "${enable_kdetest+set}" = set; then | 7319 if test "${enable_kdetest+set}" = set; then |
4256 enableval="$enable_kdetest" | 7320 enableval="$enable_kdetest" |
4257 enable_kdetest=yes | 7321 enable_kdetest=yes |
4258 fi | 7322 fi; |
4259 | |
4260 | 7323 |
4261 if test "x$enable_kdetest" = "xyes" ; then | 7324 if test "x$enable_kdetest" = "xyes" ; then |
4262 echo "$ac_t""kde test enabled" 1>&6 | 7325 echo "$as_me:$LINENO: result: kde test enabled" >&5 |
4263 else | 7326 echo "${ECHO_T}kde test enabled" >&6 |
4264 echo "$ac_t""kde test disabled" 1>&6 | 7327 else |
7328 echo "$as_me:$LINENO: result: kde test disabled" >&5 | |
7329 echo "${ECHO_T}kde test disabled" >&6 | |
4265 fi | 7330 fi |
4266 | 7331 |
4267 if test "x$kde_config_prefix" != "x" ; then | 7332 if test "x$kde_config_prefix" != "x" ; then |
4268 KDE_CONFIG=$kde_config_prefix/bin/kde-config | 7333 KDE_CONFIG=$kde_config_prefix/bin/kde-config |
4269 fi | 7334 fi |
4270 | 7335 |
4271 if test "X$KDE_CONFIG" = "X"; then | 7336 if test "X$KDE_CONFIG" = "X"; then |
4272 # Extract the first word of "kde-config", so it can be a program name with args. | 7337 # Extract the first word of "kde-config", so it can be a program name with args. |
4273 set dummy kde-config; ac_word=$2 | 7338 set dummy kde-config; ac_word=$2 |
4274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 7339 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4275 echo "configure:4276: checking for $ac_word" >&5 | 7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4276 if eval "test \"`echo '$''{'ac_cv_path_KDE_CONFIG'+set}'`\" = set"; then | 7341 if test "${ac_cv_path_KDE_CONFIG+set}" = set; then |
4277 echo $ac_n "(cached) $ac_c" 1>&6 | 7342 echo $ECHO_N "(cached) $ECHO_C" >&6 |
4278 else | 7343 else |
4279 case "$KDE_CONFIG" in | 7344 case $KDE_CONFIG in |
4280 /*) | 7345 [\\/]* | ?:[\\/]*) |
4281 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path. | 7346 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path. |
4282 ;; | 7347 ;; |
4283 ?:/*) | |
4284 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a dos path. | |
4285 ;; | |
4286 *) | 7348 *) |
4287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4288 ac_dummy="$PATH" | 7350 for as_dir in $PATH |
4289 for ac_dir in $ac_dummy; do | 7351 do |
4290 test -z "$ac_dir" && ac_dir=. | 7352 IFS=$as_save_IFS |
4291 if test -f $ac_dir/$ac_word; then | 7353 test -z "$as_dir" && as_dir=. |
4292 ac_cv_path_KDE_CONFIG="$ac_dir/$ac_word" | 7354 for ac_exec_ext in '' $ac_executable_extensions; do |
4293 break | 7355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4294 fi | 7356 ac_cv_path_KDE_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
4295 done | 7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4296 IFS="$ac_save_ifs" | 7358 break 2 |
7359 fi | |
7360 done | |
7361 done | |
7362 | |
4297 test -z "$ac_cv_path_KDE_CONFIG" && ac_cv_path_KDE_CONFIG="no" | 7363 test -z "$ac_cv_path_KDE_CONFIG" && ac_cv_path_KDE_CONFIG="no" |
4298 ;; | 7364 ;; |
4299 esac | 7365 esac |
4300 fi | 7366 fi |
4301 KDE_CONFIG="$ac_cv_path_KDE_CONFIG" | 7367 KDE_CONFIG=$ac_cv_path_KDE_CONFIG |
7368 | |
4302 if test -n "$KDE_CONFIG"; then | 7369 if test -n "$KDE_CONFIG"; then |
4303 echo "$ac_t""$KDE_CONFIG" 1>&6 | 7370 echo "$as_me:$LINENO: result: $KDE_CONFIG" >&5 |
4304 else | 7371 echo "${ECHO_T}$KDE_CONFIG" >&6 |
4305 echo "$ac_t""no" 1>&6 | 7372 else |
4306 fi | 7373 echo "$as_me:$LINENO: result: no" >&5 |
4307 | 7374 echo "${ECHO_T}no" >&6 |
4308 else | 7375 fi |
4309 echo "$ac_t""Using KDE configuration program $KDE_CONFIG" 1>&6 | 7376 |
7377 else | |
7378 echo "$as_me:$LINENO: result: Using KDE configuration program $KDE_CONFIG" >&5 | |
7379 echo "${ECHO_T}Using KDE configuration program $KDE_CONFIG" >&6 | |
4310 fi | 7380 fi |
4311 | 7381 |
4312 if test "X$KDE_CONFIG" != "X" ; then | 7382 if test "X$KDE_CONFIG" != "X" ; then |
4313 | 7383 |
4314 if test "X$KDE_CONFIG" != "X"; then | 7384 if test "X$KDE_CONFIG" != "X"; then |
4315 min_kde_version=2.0.0 | 7385 min_kde_version=2.0.0 |
4316 echo $ac_n "checking for KDE version >= $min_kde_version""... $ac_c" 1>&6 | 7386 echo "$as_me:$LINENO: checking for KDE version >= $min_kde_version" >&5 |
4317 echo "configure:4318: checking for KDE version >= $min_kde_version" >&5 | 7387 echo $ECHO_N "checking for KDE version >= $min_kde_version... $ECHO_C" >&6 |
4318 no_kde="" | 7388 no_kde="" |
4319 if test "$KDE_CONFIG" = "no" ; then | 7389 if test "$KDE_CONFIG" = "no" ; then |
4320 no_kde=yes | 7390 no_kde=yes |
4321 else | 7391 else |
4322 KDE_PREFIX=`$KDE_CONFIG --prefix` | 7392 KDE_PREFIX=`$KDE_CONFIG --prefix` |
4344 LIBS="$LIBS $KDE_LIBS" | 7414 LIBS="$LIBS $KDE_LIBS" |
4345 | 7415 |
4346 if test "$cross_compiling" = yes; then | 7416 if test "$cross_compiling" = yes; then |
4347 echo $ac_n "cross compiling KDE ? ? how can i remove that ? :)" | 7417 echo $ac_n "cross compiling KDE ? ? how can i remove that ? :)" |
4348 else | 7418 else |
4349 cat > conftest.$ac_ext <<EOF | 7419 cat >conftest.$ac_ext <<_ACEOF |
4350 #line 4351 "configure" | 7420 /* confdefs.h. */ |
4351 #include "confdefs.h" | 7421 _ACEOF |
7422 cat confdefs.h >>conftest.$ac_ext | |
7423 cat >>conftest.$ac_ext <<_ACEOF | |
7424 /* end confdefs.h. */ | |
4352 | 7425 |
4353 #include <stdio.h> | 7426 #include <stdio.h> |
4354 int | 7427 int |
4355 main() | 7428 main() |
4356 { return 0; } | 7429 { return 0; } |
4357 | 7430 |
4358 EOF | 7431 _ACEOF |
4359 if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 7432 rm -f conftest$ac_exeext |
4360 then | 7433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7434 (eval $ac_link) 2>&5 | |
7435 ac_status=$? | |
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7439 (eval $ac_try) 2>&5 | |
7440 ac_status=$? | |
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7442 (exit $ac_status); }; }; then | |
4361 : | 7443 : |
4362 else | 7444 else |
4363 echo "configure: failed program was:" >&5 | 7445 echo "$as_me: program exited with status $ac_status" >&5 |
4364 cat conftest.$ac_ext >&5 | 7446 echo "$as_me: failed program was:" >&5 |
4365 rm -fr conftest* | 7447 sed 's/^/| /' conftest.$ac_ext >&5 |
4366 no_kde=yes | 7448 |
4367 fi | 7449 ( exit $ac_status ) |
4368 rm -fr conftest* | 7450 no_kde=yes |
4369 fi | 7451 fi |
4370 | 7452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7453 fi | |
4371 LIBS="$ac_save_LIBS" | 7454 LIBS="$ac_save_LIBS" |
4372 fi | 7455 fi |
4373 fi | 7456 fi |
4374 if test "x$no_kde" = x ; then | 7457 if test "x$no_kde" = x ; then |
4375 echo "$ac_t""found KDE $kde_major_version.$kde_minor_version" 1>&6 | 7458 echo "$as_me:$LINENO: result: found KDE $kde_major_version.$kde_minor_version" >&5 |
7459 echo "${ECHO_T}found KDE $kde_major_version.$kde_minor_version" >&6 | |
4376 GUI_LIB_LOC="-L$KDE_LIBS -lkdeui -lkdecore -lDCOP" | 7460 GUI_LIB_LOC="-L$KDE_LIBS -lkdeui -lkdecore -lDCOP" |
4377 GUI_INC_LOC="-I$KDE_INCLUDES" | 7461 GUI_INC_LOC="-I$KDE_INCLUDES" |
4378 KDEDIR="$KDE_PREFIX" | 7462 KDEDIR="$KDE_PREFIX" |
4379 else | 7463 else |
4380 echo "$ac_t""no" 1>&6 | 7464 echo "$as_me:$LINENO: result: no" >&5 |
7465 echo "${ECHO_T}no" >&6 | |
4381 KDE_LIBS="" | 7466 KDE_LIBS="" |
4382 : | 7467 : |
4383 fi | 7468 fi |
4384 else | 7469 else |
4385 echo "$ac_t""no" 1>&6 | 7470 echo "$as_me:$LINENO: result: no" >&5 |
7471 echo "${ECHO_T}no" >&6 | |
4386 KDE_LIBS="" | 7472 KDE_LIBS="" |
4387 : | 7473 : |
4388 fi | 7474 fi |
4389 | 7475 |
4390 | 7476 |
4391 | 7477 |
4392 | 7478 |
4393 | 7479 |
4394 if test "x$KDE_PREFIX" != "x"; then | 7480 if test "x$KDE_PREFIX" != "x"; then |
4395 echo $ac_n "checking for QT version $qt_major_version.x""... $ac_c" 1>&6 | 7481 echo "$as_me:$LINENO: checking for QT version $qt_major_version.x" >&5 |
4396 echo "configure:4397: checking for QT version $qt_major_version.x" >&5 | 7482 echo $ECHO_N "checking for QT version $qt_major_version.x... $ECHO_C" >&6 |
4397 if test "x$ROOTQT" != "x" ; then | 7483 if test "x$ROOTQT" != "x" ; then |
4398 GUI_INC_LOC="-I$QT_INCLUDES $GUI_INC_LOC" | 7484 GUI_INC_LOC="-I$QT_INCLUDES $GUI_INC_LOC" |
4399 if test $qt_major_version -lt 2; then | 7485 if test $qt_major_version -lt 2; then |
4400 { echo "configure: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" 1>&2; exit 1; } | 7486 { { echo "$as_me:$LINENO: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" >&5 |
7487 echo "$as_me: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" >&2;} | |
7488 { (exit 1); exit 1; }; } | |
4401 fi | 7489 fi |
4402 if test "`(uname) 2>/dev/null`" = "FreeBSD"; then | 7490 if test "`(uname) 2>/dev/null`" = "FreeBSD"; then |
4403 CFLAGS="$CFLAGS -D_THREAD_SAFE" | 7491 CFLAGS="$CFLAGS -D_THREAD_SAFE" |
4404 CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE" | 7492 CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE" |
4405 GUI_LIB_LOC="$GUI_LIB_LOC -pthread" | 7493 GUI_LIB_LOC="$GUI_LIB_LOC -pthread" |
4422 fi | 7510 fi |
4423 fi | 7511 fi |
4424 | 7512 |
4425 GUI_INC_LOC="`echo $GUI_INC_LOC\ | sed 's%-I/usr/include %%'`" | 7513 GUI_INC_LOC="`echo $GUI_INC_LOC\ | sed 's%-I/usr/include %%'`" |
4426 | 7514 |
4427 echo "$ac_t""found $qt_major_version.$qt_minor_version in $ROOTQT" 1>&6 | 7515 echo "$as_me:$LINENO: result: found $qt_major_version.$qt_minor_version in $ROOTQT" >&5 |
4428 | 7516 echo "${ECHO_T}found $qt_major_version.$qt_minor_version in $ROOTQT" >&6 |
4429 | 7517 |
7518 | |
4430 qt_incdir=NO | 7519 qt_incdir=NO |
4431 for i in $QT_INCLUDES; | 7520 for i in $QT_INCLUDES; |
4432 do | 7521 do |
4433 for j in qstyle.h; | 7522 for j in qstyle.h; |
4434 do | 7523 do |
4435 echo "configure: 4436: $i/$j" >&5 | 7524 echo "configure: 7524: $i/$j" >&5 |
4436 if test -r "$i/$j"; then | 7525 if test -r "$i/$j"; then |
4437 echo "taking that" >&5 | 7526 echo "taking that" >&5 |
4438 qt_incdir=$i | 7527 qt_incdir=$i |
4439 break 2 | 7528 break 2 |
4440 fi | 7529 fi |
4441 done | 7530 done |
4442 done | 7531 done |
4443 | 7532 |
4444 if test "x$qt_incdir" = "xNO"; then | 7533 if test "x$qt_incdir" = "xNO"; then |
4445 { echo "configure: error: Could not find Qt headers in $QT_INCLUDES" 1>&2; exit 1; } | 7534 { { echo "$as_me:$LINENO: error: Could not find Qt headers in $QT_INCLUDES" >&5 |
7535 echo "$as_me: error: Could not find Qt headers in $QT_INCLUDES" >&2;} | |
7536 { (exit 1); exit 1; }; } | |
4446 fi | 7537 fi |
4447 | 7538 |
4448 kde_incdir=NO | 7539 kde_incdir=NO |
4449 for i in $KDE_INCLUDES; | 7540 for i in $KDE_INCLUDES; |
4450 do | 7541 do |
4451 for j in kapplication.h; | 7542 for j in kapplication.h; |
4452 do | 7543 do |
4453 echo "configure: 4454: $i/$j" >&5 | 7544 echo "configure: 7544: $i/$j" >&5 |
4454 if test -r "$i/$j"; then | 7545 if test -r "$i/$j"; then |
4455 echo "taking that" >&5 | 7546 echo "taking that" >&5 |
4456 kde_incdir=$i | 7547 kde_incdir=$i |
4457 break 2 | 7548 break 2 |
4458 fi | 7549 fi |
4459 done | 7550 done |
4460 done | 7551 done |
4461 | 7552 |
4462 if test "x$kde_incdir" = "xNO"; then | 7553 if test "x$kde_incdir" = "xNO"; then |
4463 { echo "configure: error: Could not find KDE headers in $KDE_INCLUDES" 1>&2; exit 1; } | 7554 { { echo "$as_me:$LINENO: error: Could not find KDE headers in $KDE_INCLUDES" >&5 |
7555 echo "$as_me: error: Could not find KDE headers in $KDE_INCLUDES" >&2;} | |
7556 { (exit 1); exit 1; }; } | |
4464 fi | 7557 fi |
4465 | 7558 |
4466 | 7559 |
4467 ac_ext=C | 7560 |
4468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 7561 ac_ext=cc |
4469 ac_cpp='$CXXCPP $CPPFLAGS' | 7562 ac_cpp='$CXXCPP $CPPFLAGS' |
4470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 7563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 7564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4472 cross_compiling=$ac_cv_prog_cxx_cross | 7565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
7566 | |
7567 ac_ext=cc | |
7568 ac_cpp='$CXXCPP $CPPFLAGS' | |
7569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7572 if test -n "$ac_tool_prefix"; then | |
7573 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
7574 do | |
7575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7577 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7579 if test "${ac_cv_prog_CXX+set}" = set; then | |
7580 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7581 else | |
7582 if test -n "$CXX"; then | |
7583 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
7584 else | |
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7586 for as_dir in $PATH | |
7587 do | |
7588 IFS=$as_save_IFS | |
7589 test -z "$as_dir" && as_dir=. | |
7590 for ac_exec_ext in '' $ac_executable_extensions; do | |
7591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7592 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7594 break 2 | |
7595 fi | |
7596 done | |
7597 done | |
7598 | |
7599 fi | |
7600 fi | |
7601 CXX=$ac_cv_prog_CXX | |
7602 if test -n "$CXX"; then | |
7603 echo "$as_me:$LINENO: result: $CXX" >&5 | |
7604 echo "${ECHO_T}$CXX" >&6 | |
7605 else | |
7606 echo "$as_me:$LINENO: result: no" >&5 | |
7607 echo "${ECHO_T}no" >&6 | |
7608 fi | |
7609 | |
7610 test -n "$CXX" && break | |
7611 done | |
7612 fi | |
7613 if test -z "$CXX"; then | |
7614 ac_ct_CXX=$CXX | |
7615 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
7616 do | |
7617 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7618 set dummy $ac_prog; ac_word=$2 | |
7619 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7621 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
7622 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7623 else | |
7624 if test -n "$ac_ct_CXX"; then | |
7625 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
7626 else | |
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7628 for as_dir in $PATH | |
7629 do | |
7630 IFS=$as_save_IFS | |
7631 test -z "$as_dir" && as_dir=. | |
7632 for ac_exec_ext in '' $ac_executable_extensions; do | |
7633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7634 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
7635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7636 break 2 | |
7637 fi | |
7638 done | |
7639 done | |
7640 | |
7641 fi | |
7642 fi | |
7643 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
7644 if test -n "$ac_ct_CXX"; then | |
7645 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
7646 echo "${ECHO_T}$ac_ct_CXX" >&6 | |
7647 else | |
7648 echo "$as_me:$LINENO: result: no" >&5 | |
7649 echo "${ECHO_T}no" >&6 | |
7650 fi | |
7651 | |
7652 test -n "$ac_ct_CXX" && break | |
7653 done | |
7654 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
7655 | |
7656 CXX=$ac_ct_CXX | |
7657 fi | |
7658 | |
7659 | |
7660 # Provide some information about the compiler. | |
7661 echo "$as_me:$LINENO:" \ | |
7662 "checking for C++ compiler version" >&5 | |
7663 ac_compiler=`set X $ac_compile; echo $2` | |
7664 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
7665 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
7666 ac_status=$? | |
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7668 (exit $ac_status); } | |
7669 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
7670 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
7671 ac_status=$? | |
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7673 (exit $ac_status); } | |
7674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
7675 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
7676 ac_status=$? | |
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7678 (exit $ac_status); } | |
7679 | |
7680 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
7681 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
7682 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
7683 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7684 else | |
7685 cat >conftest.$ac_ext <<_ACEOF | |
7686 /* confdefs.h. */ | |
7687 _ACEOF | |
7688 cat confdefs.h >>conftest.$ac_ext | |
7689 cat >>conftest.$ac_ext <<_ACEOF | |
7690 /* end confdefs.h. */ | |
7691 | |
7692 int | |
7693 main () | |
7694 { | |
7695 #ifndef __GNUC__ | |
7696 choke me | |
7697 #endif | |
7698 | |
7699 ; | |
7700 return 0; | |
7701 } | |
7702 _ACEOF | |
7703 rm -f conftest.$ac_objext | |
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7705 (eval $ac_compile) 2>conftest.er1 | |
7706 ac_status=$? | |
7707 grep -v '^ *+' conftest.er1 >conftest.err | |
7708 rm -f conftest.er1 | |
7709 cat conftest.err >&5 | |
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7711 (exit $ac_status); } && | |
7712 { ac_try='test -z "$ac_cxx_werror_flag" | |
7713 || test ! -s conftest.err' | |
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7715 (eval $ac_try) 2>&5 | |
7716 ac_status=$? | |
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7718 (exit $ac_status); }; } && | |
7719 { ac_try='test -s conftest.$ac_objext' | |
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7721 (eval $ac_try) 2>&5 | |
7722 ac_status=$? | |
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7724 (exit $ac_status); }; }; then | |
7725 ac_compiler_gnu=yes | |
7726 else | |
7727 echo "$as_me: failed program was:" >&5 | |
7728 sed 's/^/| /' conftest.$ac_ext >&5 | |
7729 | |
7730 ac_compiler_gnu=no | |
7731 fi | |
7732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7733 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
7734 | |
7735 fi | |
7736 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
7737 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
7738 GXX=`test $ac_compiler_gnu = yes && echo yes` | |
7739 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
7740 ac_save_CXXFLAGS=$CXXFLAGS | |
7741 CXXFLAGS="-g" | |
7742 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
7743 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
7744 if test "${ac_cv_prog_cxx_g+set}" = set; then | |
7745 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7746 else | |
7747 cat >conftest.$ac_ext <<_ACEOF | |
7748 /* confdefs.h. */ | |
7749 _ACEOF | |
7750 cat confdefs.h >>conftest.$ac_ext | |
7751 cat >>conftest.$ac_ext <<_ACEOF | |
7752 /* end confdefs.h. */ | |
7753 | |
7754 int | |
7755 main () | |
7756 { | |
7757 | |
7758 ; | |
7759 return 0; | |
7760 } | |
7761 _ACEOF | |
7762 rm -f conftest.$ac_objext | |
7763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7764 (eval $ac_compile) 2>conftest.er1 | |
7765 ac_status=$? | |
7766 grep -v '^ *+' conftest.er1 >conftest.err | |
7767 rm -f conftest.er1 | |
7768 cat conftest.err >&5 | |
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7770 (exit $ac_status); } && | |
7771 { ac_try='test -z "$ac_cxx_werror_flag" | |
7772 || test ! -s conftest.err' | |
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7774 (eval $ac_try) 2>&5 | |
7775 ac_status=$? | |
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7777 (exit $ac_status); }; } && | |
7778 { ac_try='test -s conftest.$ac_objext' | |
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7780 (eval $ac_try) 2>&5 | |
7781 ac_status=$? | |
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7783 (exit $ac_status); }; }; then | |
7784 ac_cv_prog_cxx_g=yes | |
7785 else | |
7786 echo "$as_me: failed program was:" >&5 | |
7787 sed 's/^/| /' conftest.$ac_ext >&5 | |
7788 | |
7789 ac_cv_prog_cxx_g=no | |
7790 fi | |
7791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7792 fi | |
7793 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
7794 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
7795 if test "$ac_test_CXXFLAGS" = set; then | |
7796 CXXFLAGS=$ac_save_CXXFLAGS | |
7797 elif test $ac_cv_prog_cxx_g = yes; then | |
7798 if test "$GXX" = yes; then | |
7799 CXXFLAGS="-g -O2" | |
7800 else | |
7801 CXXFLAGS="-g" | |
7802 fi | |
7803 else | |
7804 if test "$GXX" = yes; then | |
7805 CXXFLAGS="-O2" | |
7806 else | |
7807 CXXFLAGS= | |
7808 fi | |
7809 fi | |
7810 for ac_declaration in \ | |
7811 '' \ | |
7812 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
7813 'extern "C" void std::exit (int); using std::exit;' \ | |
7814 'extern "C" void exit (int) throw ();' \ | |
7815 'extern "C" void exit (int);' \ | |
7816 'void exit (int);' | |
7817 do | |
7818 cat >conftest.$ac_ext <<_ACEOF | |
7819 /* confdefs.h. */ | |
7820 _ACEOF | |
7821 cat confdefs.h >>conftest.$ac_ext | |
7822 cat >>conftest.$ac_ext <<_ACEOF | |
7823 /* end confdefs.h. */ | |
7824 $ac_declaration | |
7825 #include <stdlib.h> | |
7826 int | |
7827 main () | |
7828 { | |
7829 exit (42); | |
7830 ; | |
7831 return 0; | |
7832 } | |
7833 _ACEOF | |
7834 rm -f conftest.$ac_objext | |
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7836 (eval $ac_compile) 2>conftest.er1 | |
7837 ac_status=$? | |
7838 grep -v '^ *+' conftest.er1 >conftest.err | |
7839 rm -f conftest.er1 | |
7840 cat conftest.err >&5 | |
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7842 (exit $ac_status); } && | |
7843 { ac_try='test -z "$ac_cxx_werror_flag" | |
7844 || test ! -s conftest.err' | |
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7846 (eval $ac_try) 2>&5 | |
7847 ac_status=$? | |
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7849 (exit $ac_status); }; } && | |
7850 { ac_try='test -s conftest.$ac_objext' | |
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7852 (eval $ac_try) 2>&5 | |
7853 ac_status=$? | |
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7855 (exit $ac_status); }; }; then | |
7856 : | |
7857 else | |
7858 echo "$as_me: failed program was:" >&5 | |
7859 sed 's/^/| /' conftest.$ac_ext >&5 | |
7860 | |
7861 continue | |
7862 fi | |
7863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7864 cat >conftest.$ac_ext <<_ACEOF | |
7865 /* confdefs.h. */ | |
7866 _ACEOF | |
7867 cat confdefs.h >>conftest.$ac_ext | |
7868 cat >>conftest.$ac_ext <<_ACEOF | |
7869 /* end confdefs.h. */ | |
7870 $ac_declaration | |
7871 int | |
7872 main () | |
7873 { | |
7874 exit (42); | |
7875 ; | |
7876 return 0; | |
7877 } | |
7878 _ACEOF | |
7879 rm -f conftest.$ac_objext | |
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7881 (eval $ac_compile) 2>conftest.er1 | |
7882 ac_status=$? | |
7883 grep -v '^ *+' conftest.er1 >conftest.err | |
7884 rm -f conftest.er1 | |
7885 cat conftest.err >&5 | |
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7887 (exit $ac_status); } && | |
7888 { ac_try='test -z "$ac_cxx_werror_flag" | |
7889 || test ! -s conftest.err' | |
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7891 (eval $ac_try) 2>&5 | |
7892 ac_status=$? | |
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7894 (exit $ac_status); }; } && | |
7895 { ac_try='test -s conftest.$ac_objext' | |
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7897 (eval $ac_try) 2>&5 | |
7898 ac_status=$? | |
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7900 (exit $ac_status); }; }; then | |
7901 break | |
7902 else | |
7903 echo "$as_me: failed program was:" >&5 | |
7904 sed 's/^/| /' conftest.$ac_ext >&5 | |
7905 | |
7906 fi | |
7907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7908 done | |
7909 rm -f conftest* | |
7910 if test -n "$ac_declaration"; then | |
7911 echo '#ifdef __cplusplus' >>confdefs.h | |
7912 echo $ac_declaration >>confdefs.h | |
7913 echo '#endif' >>confdefs.h | |
7914 fi | |
7915 | |
7916 ac_ext=cc | |
7917 ac_cpp='$CXXCPP $CPPFLAGS' | |
7918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4473 | 7921 |
4474 ac_save_LIBS="$LIBS" | 7922 ac_save_LIBS="$LIBS" |
4475 LIBS="$GUI_LIB_LOC" | 7923 LIBS="$GUI_LIB_LOC" |
4476 ac_save_CXXFLAGS="$CXXFLAGS" | 7924 ac_save_CXXFLAGS="$CXXFLAGS" |
4477 CXXFLAGS="$CXXFLAGS $GUI_INC_LOC" | 7925 CXXFLAGS="$CXXFLAGS $GUI_INC_LOC" |
4478 echo $ac_n "checking whether Qt libraries are usable""... $ac_c" 1>&6 | 7926 echo "$as_me:$LINENO: checking whether Qt libraries are usable" >&5 |
4479 echo "configure:4480: checking whether Qt libraries are usable" >&5 | 7927 echo $ECHO_N "checking whether Qt libraries are usable... $ECHO_C" >&6 |
4480 cat > conftest.$ac_ext <<EOF | 7928 |
4481 #line 4482 "configure" | 7929 cat >conftest.$ac_ext <<_ACEOF |
4482 #include "confdefs.h" | 7930 /* confdefs.h. */ |
7931 _ACEOF | |
7932 cat confdefs.h >>conftest.$ac_ext | |
7933 cat >>conftest.$ac_ext <<_ACEOF | |
7934 /* end confdefs.h. */ | |
4483 #include <qapplication.h> | 7935 #include <qapplication.h> |
4484 int main() { | 7936 int |
7937 main () | |
7938 { | |
4485 | 7939 |
4486 int argc; | 7940 int argc; |
4487 char** argv; | 7941 char** argv; |
4488 QApplication app(argc, argv); | 7942 QApplication app(argc, argv); |
4489 | 7943 |
4490 ; return 0; } | 7944 ; |
4491 EOF | 7945 return 0; |
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7946 } |
4493 rm -rf conftest* | 7947 _ACEOF |
4494 echo "$ac_t""yes" 1>&6 | 7948 rm -f conftest.$ac_objext conftest$ac_exeext |
4495 else | 7949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4496 echo "configure: failed program was:" >&5 | 7950 (eval $ac_link) 2>conftest.er1 |
4497 cat conftest.$ac_ext >&5 | 7951 ac_status=$? |
4498 rm -rf conftest* | 7952 grep -v '^ *+' conftest.er1 >conftest.err |
4499 echo "$ac_t""no" 1>&6;{ echo "configure: error: Qt fails to link a simple application" 1>&2; exit 1; } | 7953 rm -f conftest.er1 |
4500 fi | 7954 cat conftest.err >&5 |
4501 rm -f conftest* | 7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4502 | 7956 (exit $ac_status); } && |
4503 echo $ac_n "checking whether KDE libraries are usable""... $ac_c" 1>&6 | 7957 { ac_try='test -z "$ac_cxx_werror_flag" |
4504 echo "configure:4505: checking whether KDE libraries are usable" >&5 | 7958 || test ! -s conftest.err' |
4505 cat > conftest.$ac_ext <<EOF | 7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4506 #line 4507 "configure" | 7960 (eval $ac_try) 2>&5 |
4507 #include "confdefs.h" | 7961 ac_status=$? |
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7963 (exit $ac_status); }; } && | |
7964 { ac_try='test -s conftest$ac_exeext' | |
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7966 (eval $ac_try) 2>&5 | |
7967 ac_status=$? | |
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7969 (exit $ac_status); }; }; then | |
7970 echo "$as_me:$LINENO: result: yes" >&5 | |
7971 echo "${ECHO_T}yes" >&6 | |
7972 else | |
7973 echo "$as_me: failed program was:" >&5 | |
7974 sed 's/^/| /' conftest.$ac_ext >&5 | |
7975 | |
7976 echo "$as_me:$LINENO: result: no" >&5 | |
7977 echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: Qt fails to link a simple application" >&5 | |
7978 echo "$as_me: error: Qt fails to link a simple application" >&2;} | |
7979 { (exit check your installation and settings); exit check your installation and settings; }; } | |
7980 fi | |
7981 rm -f conftest.err conftest.$ac_objext \ | |
7982 conftest$ac_exeext conftest.$ac_ext | |
7983 | |
7984 echo "$as_me:$LINENO: checking whether KDE libraries are usable" >&5 | |
7985 echo $ECHO_N "checking whether KDE libraries are usable... $ECHO_C" >&6 | |
7986 cat >conftest.$ac_ext <<_ACEOF | |
7987 /* confdefs.h. */ | |
7988 _ACEOF | |
7989 cat confdefs.h >>conftest.$ac_ext | |
7990 cat >>conftest.$ac_ext <<_ACEOF | |
7991 /* end confdefs.h. */ | |
4508 #include <kapplication.h> | 7992 #include <kapplication.h> |
4509 int main() { | 7993 int |
7994 main () | |
7995 { | |
4510 | 7996 |
4511 int argc; | 7997 int argc; |
4512 char** argv; | 7998 char** argv; |
4513 KApplication app(argc, argv); | 7999 KApplication app(argc, argv); |
4514 | 8000 |
4515 ; return 0; } | 8001 ; |
4516 EOF | 8002 return 0; |
4517 if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8003 } |
4518 rm -rf conftest* | 8004 _ACEOF |
4519 echo "$ac_t""yes" 1>&6 | 8005 rm -f conftest.$ac_objext conftest$ac_exeext |
4520 else | 8006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4521 echo "configure: failed program was:" >&5 | 8007 (eval $ac_link) 2>conftest.er1 |
4522 cat conftest.$ac_ext >&5 | 8008 ac_status=$? |
4523 rm -rf conftest* | 8009 grep -v '^ *+' conftest.er1 >conftest.err |
4524 echo "$ac_t""no" 1>&6;{ echo "configure: error: KDE fails to link a simple application" 1>&2; exit 1; } | 8010 rm -f conftest.er1 |
4525 fi | 8011 cat conftest.err >&5 |
4526 rm -f conftest* | 8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8013 (exit $ac_status); } && | |
8014 { ac_try='test -z "$ac_cxx_werror_flag" | |
8015 || test ! -s conftest.err' | |
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8017 (eval $ac_try) 2>&5 | |
8018 ac_status=$? | |
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8020 (exit $ac_status); }; } && | |
8021 { ac_try='test -s conftest$ac_exeext' | |
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8023 (eval $ac_try) 2>&5 | |
8024 ac_status=$? | |
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8026 (exit $ac_status); }; }; then | |
8027 echo "$as_me:$LINENO: result: yes" >&5 | |
8028 echo "${ECHO_T}yes" >&6 | |
8029 else | |
8030 echo "$as_me: failed program was:" >&5 | |
8031 sed 's/^/| /' conftest.$ac_ext >&5 | |
8032 | |
8033 echo "$as_me:$LINENO: result: no" >&5 | |
8034 echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: KDE fails to link a simple application" >&5 | |
8035 echo "$as_me: error: KDE fails to link a simple application" >&2;} | |
8036 { (exit check your installation and settings); exit check your installation and settings; }; } | |
8037 fi | |
8038 rm -f conftest.err conftest.$ac_objext \ | |
8039 conftest$ac_exeext conftest.$ac_ext | |
4527 | 8040 |
4528 LIBS="$ac_save_LIBS" | 8041 LIBS="$ac_save_LIBS" |
4529 CXXFLAGS="$ac_save_CXXFLAGS" | 8042 CXXFLAGS="$ac_save_CXXFLAGS" |
4530 ac_ext=c | 8043 ac_ext=c |
4531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4532 ac_cpp='$CPP $CPPFLAGS' | 8044 ac_cpp='$CPP $CPPFLAGS' |
4533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 8045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 8046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4535 cross_compiling=$ac_cv_prog_cc_cross | 8047 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4536 | 8048 |
4537 | 8049 |
4538 | 8050 |
4539 SKIP_GTK=YES | 8051 SKIP_GTK=YES |
4540 SKIP_ATHENA=YES | 8052 SKIP_ATHENA=YES |
4541 SKIP_MOTIF=YES | 8053 SKIP_MOTIF=YES |
4542 GUITYPE=KDE | 8054 GUITYPE=KDE |
4543 | 8055 |
4544 | 8056 |
4545 | 8057 |
4546 | 8058 |
4547 | 8059 |
4548 cat >> confdefs.h <<\EOF | 8060 cat >>confdefs.h <<\_ACEOF |
4549 #define FEAT_GUI_KDE 1 | 8061 #define FEAT_GUI_KDE 1 |
4550 EOF | 8062 _ACEOF |
4551 | 8063 |
4552 else | 8064 else |
4553 { echo "configure: error: Detected QT version mismatched" 1>&2; exit 1; } | 8065 { { echo "$as_me:$LINENO: error: Detected QT version mismatched" >&5 |
8066 echo "$as_me: error: Detected QT version mismatched" >&2;} | |
8067 { (exit 1); exit 1; }; } | |
4554 fi | 8068 fi |
4555 else | 8069 else |
4556 { echo "configure: error: Could not find KDE installation prefix" 1>&2; exit 1; } | 8070 { { echo "$as_me:$LINENO: error: Could not find KDE installation prefix" >&5 |
8071 echo "$as_me: error: Could not find KDE installation prefix" >&2;} | |
8072 { (exit 1); exit 1; }; } | |
4557 fi | 8073 fi |
4558 fi | 8074 fi |
4559 fi | 8075 fi |
4560 | 8076 |
4561 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then | 8077 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then |
4562 echo $ac_n "checking for Carbon GUI""... $ac_c" 1>&6 | 8078 echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
4563 echo "configure:4564: checking for Carbon GUI" >&5 | 8079 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6 |
4564 echo "$ac_t""yes" 1>&6; | 8080 echo "$as_me:$LINENO: result: yes" >&5 |
8081 echo "${ECHO_T}yes" >&6; | |
4565 GUITYPE=CARBONGUI | 8082 GUITYPE=CARBONGUI |
4566 SKIP_GTK=YES; | 8083 SKIP_GTK=YES; |
4567 SKIP_GTK2=YES; | 8084 SKIP_GTK2=YES; |
4568 SKIP_GNOME=YES; | 8085 SKIP_GNOME=YES; |
4569 SKIP_MOTIF=YES; | 8086 SKIP_MOTIF=YES; |
4570 SKIP_ATHENA=YES; | 8087 SKIP_ATHENA=YES; |
4571 SKIP_NEXTAW=YES; | 8088 SKIP_NEXTAW=YES; |
4572 SKIP_PHOTON=YES; | 8089 SKIP_PHOTON=YES; |
4573 SKIP_BEOS=YES; | |
4574 SKIP_CARBON=YES | 8090 SKIP_CARBON=YES |
4575 fi | 8091 fi |
4576 | 8092 |
4577 | 8093 |
4578 | 8094 |
4582 | 8098 |
4583 | 8099 |
4584 | 8100 |
4585 if test -z "$SKIP_GTK"; then | 8101 if test -z "$SKIP_GTK"; then |
4586 | 8102 |
4587 echo $ac_n "checking --with-gtk-prefix argument""... $ac_c" 1>&6 | 8103 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
4588 echo "configure:4589: checking --with-gtk-prefix argument" >&5 | 8104 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6 |
4589 # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | 8105 |
8106 # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
4590 if test "${with_gtk_prefix+set}" = set; then | 8107 if test "${with_gtk_prefix+set}" = set; then |
4591 withval="$with_gtk_prefix" | 8108 withval="$with_gtk_prefix" |
4592 gtk_config_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6 | 8109 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
4593 else | 8110 echo "${ECHO_T}$gtk_config_prefix" >&6 |
4594 gtk_config_prefix=""; echo "$ac_t""no" 1>&6 | 8111 else |
4595 fi | 8112 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
4596 | 8113 echo "${ECHO_T}no" >&6 |
4597 | 8114 fi; |
4598 echo $ac_n "checking --with-gtk-exec-prefix argument""... $ac_c" 1>&6 | 8115 |
4599 echo "configure:4600: checking --with-gtk-exec-prefix argument" >&5 | 8116 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
4600 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | 8117 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6 |
8118 | |
8119 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
4601 if test "${with_gtk_exec_prefix+set}" = set; then | 8120 if test "${with_gtk_exec_prefix+set}" = set; then |
4602 withval="$with_gtk_exec_prefix" | 8121 withval="$with_gtk_exec_prefix" |
4603 gtk_config_exec_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6 | 8122 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
4604 else | 8123 echo "${ECHO_T}$gtk_config_prefix" >&6 |
4605 gtk_config_exec_prefix=""; echo "$ac_t""no" 1>&6 | 8124 else |
4606 fi | 8125 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
4607 | 8126 echo "${ECHO_T}no" >&6 |
4608 | 8127 fi; |
4609 echo $ac_n "checking --disable-gtktest argument""... $ac_c" 1>&6 | 8128 |
4610 echo "configure:4611: checking --disable-gtktest argument" >&5 | 8129 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
8130 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6 | |
4611 # Check whether --enable-gtktest or --disable-gtktest was given. | 8131 # Check whether --enable-gtktest or --disable-gtktest was given. |
4612 if test "${enable_gtktest+set}" = set; then | 8132 if test "${enable_gtktest+set}" = set; then |
4613 enableval="$enable_gtktest" | 8133 enableval="$enable_gtktest" |
4614 : | 8134 |
4615 else | 8135 else |
4616 enable_gtktest=yes | 8136 enable_gtktest=yes |
4617 fi | 8137 fi; |
4618 | |
4619 if test "x$enable_gtktest" = "xyes" ; then | 8138 if test "x$enable_gtktest" = "xyes" ; then |
4620 echo "$ac_t""gtk test enabled" 1>&6 | 8139 echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
8140 echo "${ECHO_T}gtk test enabled" >&6 | |
4621 else | 8141 else |
4622 echo "$ac_t""gtk test disabled" 1>&6 | 8142 echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
8143 echo "${ECHO_T}gtk test disabled" >&6 | |
4623 fi | 8144 fi |
4624 | 8145 |
4625 if test "x$gtk_config_prefix" != "x" ; then | 8146 if test "x$gtk_config_prefix" != "x" ; then |
4626 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | 8147 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
4627 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | 8148 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
4631 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | 8152 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
4632 fi | 8153 fi |
4633 if test "X$GTK_CONFIG" = "X"; then | 8154 if test "X$GTK_CONFIG" = "X"; then |
4634 # Extract the first word of "gtk-config", so it can be a program name with args. | 8155 # Extract the first word of "gtk-config", so it can be a program name with args. |
4635 set dummy gtk-config; ac_word=$2 | 8156 set dummy gtk-config; ac_word=$2 |
4636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 8157 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4637 echo "configure:4638: checking for $ac_word" >&5 | 8158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4638 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | 8159 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
4639 echo $ac_n "(cached) $ac_c" 1>&6 | 8160 echo $ECHO_N "(cached) $ECHO_C" >&6 |
4640 else | 8161 else |
4641 case "$GTK_CONFIG" in | 8162 case $GTK_CONFIG in |
4642 /*) | 8163 [\\/]* | ?:[\\/]*) |
4643 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | 8164 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
4644 ;; | 8165 ;; |
4645 ?:/*) | |
4646 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
4647 ;; | |
4648 *) | 8166 *) |
4649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4650 ac_dummy="$PATH" | 8168 for as_dir in $PATH |
4651 for ac_dir in $ac_dummy; do | 8169 do |
4652 test -z "$ac_dir" && ac_dir=. | 8170 IFS=$as_save_IFS |
4653 if test -f $ac_dir/$ac_word; then | 8171 test -z "$as_dir" && as_dir=. |
4654 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | 8172 for ac_exec_ext in '' $ac_executable_extensions; do |
4655 break | 8173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4656 fi | 8174 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
4657 done | 8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4658 IFS="$ac_save_ifs" | 8176 break 2 |
8177 fi | |
8178 done | |
8179 done | |
8180 | |
4659 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | 8181 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
4660 ;; | 8182 ;; |
4661 esac | 8183 esac |
4662 fi | 8184 fi |
4663 GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | 8185 GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
8186 | |
4664 if test -n "$GTK_CONFIG"; then | 8187 if test -n "$GTK_CONFIG"; then |
4665 echo "$ac_t""$GTK_CONFIG" 1>&6 | 8188 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
4666 else | 8189 echo "${ECHO_T}$GTK_CONFIG" >&6 |
4667 echo "$ac_t""no" 1>&6 | 8190 else |
8191 echo "$as_me:$LINENO: result: no" >&5 | |
8192 echo "${ECHO_T}no" >&6 | |
4668 fi | 8193 fi |
4669 | 8194 |
4670 if test "X$GTK_CONFIG" = "Xno"; then | 8195 if test "X$GTK_CONFIG" = "Xno"; then |
4671 # Extract the first word of "gtk12-config", so it can be a program name with args. | 8196 # Extract the first word of "gtk12-config", so it can be a program name with args. |
4672 set dummy gtk12-config; ac_word=$2 | 8197 set dummy gtk12-config; ac_word=$2 |
4673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 8198 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4674 echo "configure:4675: checking for $ac_word" >&5 | 8199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4675 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then | 8200 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
4676 echo $ac_n "(cached) $ac_c" 1>&6 | 8201 echo $ECHO_N "(cached) $ECHO_C" >&6 |
4677 else | 8202 else |
4678 case "$GTK12_CONFIG" in | 8203 case $GTK12_CONFIG in |
4679 /*) | 8204 [\\/]* | ?:[\\/]*) |
4680 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. | 8205 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
4681 ;; | 8206 ;; |
4682 ?:/*) | |
4683 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path. | |
4684 ;; | |
4685 *) | 8207 *) |
4686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4687 ac_dummy="$PATH" | 8209 for as_dir in $PATH |
4688 for ac_dir in $ac_dummy; do | 8210 do |
4689 test -z "$ac_dir" && ac_dir=. | 8211 IFS=$as_save_IFS |
4690 if test -f $ac_dir/$ac_word; then | 8212 test -z "$as_dir" && as_dir=. |
4691 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word" | 8213 for ac_exec_ext in '' $ac_executable_extensions; do |
4692 break | 8214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4693 fi | 8215 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
4694 done | 8216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4695 IFS="$ac_save_ifs" | 8217 break 2 |
8218 fi | |
8219 done | |
8220 done | |
8221 | |
4696 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" | 8222 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
4697 ;; | 8223 ;; |
4698 esac | 8224 esac |
4699 fi | 8225 fi |
4700 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG" | 8226 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
8227 | |
4701 if test -n "$GTK12_CONFIG"; then | 8228 if test -n "$GTK12_CONFIG"; then |
4702 echo "$ac_t""$GTK12_CONFIG" 1>&6 | 8229 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
4703 else | 8230 echo "${ECHO_T}$GTK12_CONFIG" >&6 |
4704 echo "$ac_t""no" 1>&6 | 8231 else |
8232 echo "$as_me:$LINENO: result: no" >&5 | |
8233 echo "${ECHO_T}no" >&6 | |
4705 fi | 8234 fi |
4706 | 8235 |
4707 GTK_CONFIG="$GTK12_CONFIG" | 8236 GTK_CONFIG="$GTK12_CONFIG" |
4708 fi | 8237 fi |
4709 else | 8238 else |
4710 echo "$ac_t""Using GTK configuration program $GTK_CONFIG" 1>&6 | 8239 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
8240 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6 | |
4711 fi | 8241 fi |
4712 if test "X$PKG_CONFIG" = "X"; then | 8242 if test "X$PKG_CONFIG" = "X"; then |
4713 # Extract the first word of "pkg-config", so it can be a program name with args. | 8243 # Extract the first word of "pkg-config", so it can be a program name with args. |
4714 set dummy pkg-config; ac_word=$2 | 8244 set dummy pkg-config; ac_word=$2 |
4715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 8245 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4716 echo "configure:4717: checking for $ac_word" >&5 | 8246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4717 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | 8247 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
4718 echo $ac_n "(cached) $ac_c" 1>&6 | 8248 echo $ECHO_N "(cached) $ECHO_C" >&6 |
4719 else | 8249 else |
4720 case "$PKG_CONFIG" in | 8250 case $PKG_CONFIG in |
4721 /*) | 8251 [\\/]* | ?:[\\/]*) |
4722 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 8252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
4723 ;; | 8253 ;; |
4724 ?:/*) | |
4725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
4726 ;; | |
4727 *) | 8254 *) |
4728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4729 ac_dummy="$PATH" | 8256 for as_dir in $PATH |
4730 for ac_dir in $ac_dummy; do | 8257 do |
4731 test -z "$ac_dir" && ac_dir=. | 8258 IFS=$as_save_IFS |
4732 if test -f $ac_dir/$ac_word; then | 8259 test -z "$as_dir" && as_dir=. |
4733 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | 8260 for ac_exec_ext in '' $ac_executable_extensions; do |
4734 break | 8261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4735 fi | 8262 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
4736 done | 8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4737 IFS="$ac_save_ifs" | 8264 break 2 |
8265 fi | |
8266 done | |
8267 done | |
8268 | |
4738 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 8269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
4739 ;; | 8270 ;; |
4740 esac | 8271 esac |
4741 fi | 8272 fi |
4742 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 8273 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
8274 | |
4743 if test -n "$PKG_CONFIG"; then | 8275 if test -n "$PKG_CONFIG"; then |
4744 echo "$ac_t""$PKG_CONFIG" 1>&6 | 8276 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
4745 else | 8277 echo "${ECHO_T}$PKG_CONFIG" >&6 |
4746 echo "$ac_t""no" 1>&6 | 8278 else |
8279 echo "$as_me:$LINENO: result: no" >&5 | |
8280 echo "${ECHO_T}no" >&6 | |
4747 fi | 8281 fi |
4748 | 8282 |
4749 fi | 8283 fi |
4750 | 8284 |
4751 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then | 8285 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
4752 if test "X$SKIP_GTK2" != "XYES"; then | 8286 if test "X$SKIP_GTK2" != "XYES"; then |
4753 | 8287 |
4754 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then | 8288 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
4755 { | 8289 { |
4756 min_gtk_version=2.2.0 | 8290 min_gtk_version=2.2.0 |
4757 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | 8291 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
4758 echo "configure:4759: checking for GTK - version >= $min_gtk_version" >&5 | 8292 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 |
4759 no_gtk="" | 8293 no_gtk="" |
4760 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ | 8294 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
4761 && $PKG_CONFIG --exists gtk+-2.0; then | 8295 && $PKG_CONFIG --exists gtk+-2.0; then |
4762 { | 8296 { |
4763 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` | 8297 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
4795 | 8329 |
4796 rm -f conf.gtktest | 8330 rm -f conf.gtktest |
4797 if test "$cross_compiling" = yes; then | 8331 if test "$cross_compiling" = yes; then |
4798 echo $ac_n "cross compiling; assumed OK... $ac_c" | 8332 echo $ac_n "cross compiling; assumed OK... $ac_c" |
4799 else | 8333 else |
4800 cat > conftest.$ac_ext <<EOF | 8334 cat >conftest.$ac_ext <<_ACEOF |
4801 #line 4802 "configure" | 8335 /* confdefs.h. */ |
4802 #include "confdefs.h" | 8336 _ACEOF |
8337 cat confdefs.h >>conftest.$ac_ext | |
8338 cat >>conftest.$ac_ext <<_ACEOF | |
8339 /* end confdefs.h. */ | |
4803 | 8340 |
4804 #include <gtk/gtk.h> | 8341 #include <gtk/gtk.h> |
4805 #include <stdio.h> | 8342 #include <stdio.h> |
4806 | 8343 |
4807 int | 8344 int |
4827 return 0; | 8364 return 0; |
4828 } | 8365 } |
4829 return 1; | 8366 return 1; |
4830 } | 8367 } |
4831 | 8368 |
4832 EOF | 8369 _ACEOF |
4833 if { (eval echo configure:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8370 rm -f conftest$ac_exeext |
4834 then | 8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8372 (eval $ac_link) 2>&5 | |
8373 ac_status=$? | |
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8377 (eval $ac_try) 2>&5 | |
8378 ac_status=$? | |
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8380 (exit $ac_status); }; }; then | |
4835 : | 8381 : |
4836 else | 8382 else |
4837 echo "configure: failed program was:" >&5 | 8383 echo "$as_me: program exited with status $ac_status" >&5 |
4838 cat conftest.$ac_ext >&5 | 8384 echo "$as_me: failed program was:" >&5 |
4839 rm -fr conftest* | 8385 sed 's/^/| /' conftest.$ac_ext >&5 |
4840 no_gtk=yes | 8386 |
4841 fi | 8387 ( exit $ac_status ) |
4842 rm -fr conftest* | 8388 no_gtk=yes |
4843 fi | 8389 fi |
4844 | 8390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8391 fi | |
4845 CFLAGS="$ac_save_CFLAGS" | 8392 CFLAGS="$ac_save_CFLAGS" |
4846 LIBS="$ac_save_LIBS" | 8393 LIBS="$ac_save_LIBS" |
4847 } | 8394 } |
4848 fi | 8395 fi |
4849 if test "x$no_gtk" = x ; then | 8396 if test "x$no_gtk" = x ; then |
4850 if test "x$enable_gtktest" = "xyes"; then | 8397 if test "x$enable_gtktest" = "xyes"; then |
4851 echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 | 8398 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
8399 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 | |
4852 else | 8400 else |
4853 echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 | 8401 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
8402 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 | |
4854 fi | 8403 fi |
4855 GUI_LIB_LOC="$GTK_LIBDIR" | 8404 GUI_LIB_LOC="$GTK_LIBDIR" |
4856 GTK_LIBNAME="$GTK_LIBS" | 8405 GTK_LIBNAME="$GTK_LIBS" |
4857 GUI_INC_LOC="$GTK_CFLAGS" | 8406 GUI_INC_LOC="$GTK_CFLAGS" |
4858 else | 8407 else |
4859 { | 8408 { |
4860 echo "$ac_t""no" 1>&6 | 8409 echo "$as_me:$LINENO: result: no" >&5 |
8410 echo "${ECHO_T}no" >&6 | |
4861 GTK_CFLAGS="" | 8411 GTK_CFLAGS="" |
4862 GTK_LIBS="" | 8412 GTK_LIBS="" |
4863 : | 8413 : |
4864 } | 8414 } |
4865 fi | 8415 fi |
4867 else | 8417 else |
4868 GTK_CFLAGS="" | 8418 GTK_CFLAGS="" |
4869 GTK_LIBS="" | 8419 GTK_LIBS="" |
4870 : | 8420 : |
4871 fi | 8421 fi |
4872 | 8422 |
4873 | 8423 |
4874 rm -f conf.gtktest | 8424 rm -f conf.gtktest |
4875 | 8425 |
4876 if test "x$GTK_CFLAGS" != "x"; then | 8426 if test "x$GTK_CFLAGS" != "x"; then |
4877 SKIP_ATHENA=YES | 8427 SKIP_ATHENA=YES |
4878 SKIP_NEXTAW=YES | 8428 SKIP_NEXTAW=YES |
4879 SKIP_MOTIF=YES | 8429 SKIP_MOTIF=YES |
4880 GUITYPE=GTK | 8430 GUITYPE=GTK |
4881 | 8431 |
4882 fi | 8432 fi |
4883 fi | 8433 fi |
4884 | 8434 |
4885 if test "x$GUITYPE" != "xGTK"; then | 8435 if test "x$GUITYPE" != "xGTK"; then |
4886 SKIP_GTK2=YES | 8436 SKIP_GTK2=YES |
4887 | 8437 |
4888 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then | 8438 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
4889 { | 8439 { |
4890 min_gtk_version=1.1.16 | 8440 min_gtk_version=1.1.16 |
4891 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | 8441 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
4892 echo "configure:4893: checking for GTK - version >= $min_gtk_version" >&5 | 8442 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 |
4893 no_gtk="" | 8443 no_gtk="" |
4894 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ | 8444 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
4895 && $PKG_CONFIG --exists gtk+-2.0; then | 8445 && $PKG_CONFIG --exists gtk+-2.0; then |
4896 { | 8446 { |
4897 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` | 8447 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
4929 | 8479 |
4930 rm -f conf.gtktest | 8480 rm -f conf.gtktest |
4931 if test "$cross_compiling" = yes; then | 8481 if test "$cross_compiling" = yes; then |
4932 echo $ac_n "cross compiling; assumed OK... $ac_c" | 8482 echo $ac_n "cross compiling; assumed OK... $ac_c" |
4933 else | 8483 else |
4934 cat > conftest.$ac_ext <<EOF | 8484 cat >conftest.$ac_ext <<_ACEOF |
4935 #line 4936 "configure" | 8485 /* confdefs.h. */ |
4936 #include "confdefs.h" | 8486 _ACEOF |
8487 cat confdefs.h >>conftest.$ac_ext | |
8488 cat >>conftest.$ac_ext <<_ACEOF | |
8489 /* end confdefs.h. */ | |
4937 | 8490 |
4938 #include <gtk/gtk.h> | 8491 #include <gtk/gtk.h> |
4939 #include <stdio.h> | 8492 #include <stdio.h> |
4940 | 8493 |
4941 int | 8494 int |
4961 return 0; | 8514 return 0; |
4962 } | 8515 } |
4963 return 1; | 8516 return 1; |
4964 } | 8517 } |
4965 | 8518 |
4966 EOF | 8519 _ACEOF |
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8520 rm -f conftest$ac_exeext |
4968 then | 8521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8522 (eval $ac_link) 2>&5 | |
8523 ac_status=$? | |
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8527 (eval $ac_try) 2>&5 | |
8528 ac_status=$? | |
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8530 (exit $ac_status); }; }; then | |
4969 : | 8531 : |
4970 else | 8532 else |
4971 echo "configure: failed program was:" >&5 | 8533 echo "$as_me: program exited with status $ac_status" >&5 |
4972 cat conftest.$ac_ext >&5 | 8534 echo "$as_me: failed program was:" >&5 |
4973 rm -fr conftest* | 8535 sed 's/^/| /' conftest.$ac_ext >&5 |
4974 no_gtk=yes | 8536 |
4975 fi | 8537 ( exit $ac_status ) |
4976 rm -fr conftest* | 8538 no_gtk=yes |
4977 fi | 8539 fi |
4978 | 8540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8541 fi | |
4979 CFLAGS="$ac_save_CFLAGS" | 8542 CFLAGS="$ac_save_CFLAGS" |
4980 LIBS="$ac_save_LIBS" | 8543 LIBS="$ac_save_LIBS" |
4981 } | 8544 } |
4982 fi | 8545 fi |
4983 if test "x$no_gtk" = x ; then | 8546 if test "x$no_gtk" = x ; then |
4984 if test "x$enable_gtktest" = "xyes"; then | 8547 if test "x$enable_gtktest" = "xyes"; then |
4985 echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 | 8548 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
8549 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 | |
4986 else | 8550 else |
4987 echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 | 8551 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
8552 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 | |
4988 fi | 8553 fi |
4989 GTK_LIBNAME="$GTK_LIBS" | 8554 GTK_LIBNAME="$GTK_LIBS" |
4990 GUI_INC_LOC="$GTK_CFLAGS" | 8555 GUI_INC_LOC="$GTK_CFLAGS" |
4991 else | 8556 else |
4992 { | 8557 { |
4993 echo "$ac_t""no" 1>&6 | 8558 echo "$as_me:$LINENO: result: no" >&5 |
8559 echo "${ECHO_T}no" >&6 | |
4994 GTK_CFLAGS="" | 8560 GTK_CFLAGS="" |
4995 GTK_LIBS="" | 8561 GTK_LIBS="" |
4996 : | 8562 : |
4997 } | 8563 } |
4998 fi | 8564 fi |
5000 else | 8566 else |
5001 GTK_CFLAGS="" | 8567 GTK_CFLAGS="" |
5002 GTK_LIBS="" | 8568 GTK_LIBS="" |
5003 : | 8569 : |
5004 fi | 8570 fi |
5005 | 8571 |
5006 | 8572 |
5007 rm -f conf.gtktest | 8573 rm -f conf.gtktest |
5008 | 8574 |
5009 if test "x$GTK_CFLAGS" != "x"; then | 8575 if test "x$GTK_CFLAGS" != "x"; then |
5010 SKIP_ATHENA=YES | 8576 SKIP_ATHENA=YES |
5011 SKIP_NEXTAW=YES | 8577 SKIP_NEXTAW=YES |
5012 SKIP_MOTIF=YES | 8578 SKIP_MOTIF=YES |
5013 GUITYPE=GTK | 8579 GUITYPE=GTK |
5014 | 8580 |
5015 fi | 8581 fi |
5016 fi | 8582 fi |
5017 fi | 8583 fi |
5018 if test "x$GUITYPE" = "xGTK"; then | 8584 if test "x$GUITYPE" = "xGTK"; then |
5019 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ | 8585 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
5020 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then | 8586 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then |
5021 echo "$ac_t""this GTK version is old; version 1.2.3 or later is recommended" 1>&6 | 8587 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
8588 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6 | |
5022 else | 8589 else |
5023 { | 8590 { |
5024 if test "0$gtk_major_version" -ge 2; then | 8591 if test "0$gtk_major_version" -ge 2; then |
5025 cat >> confdefs.h <<\EOF | 8592 cat >>confdefs.h <<\_ACEOF |
5026 #define HAVE_GTK2 1 | 8593 #define HAVE_GTK2 1 |
5027 EOF | 8594 _ACEOF |
5028 | 8595 |
5029 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ | 8596 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
5030 || test "0$gtk_minor_version" -ge 2 \ | 8597 || test "0$gtk_minor_version" -ge 2 \ |
5031 || test "0$gtk_major_version" -gt 2; then | 8598 || test "0$gtk_major_version" -gt 2; then |
5032 cat >> confdefs.h <<\EOF | 8599 cat >>confdefs.h <<\_ACEOF |
5033 #define HAVE_GTK_MULTIHEAD 1 | 8600 #define HAVE_GTK_MULTIHEAD 1 |
5034 EOF | 8601 _ACEOF |
5035 | 8602 |
5036 fi | 8603 fi |
5037 fi | 8604 fi |
5038 if test -z "$SKIP_GNOME"; then | 8605 if test -z "$SKIP_GNOME"; then |
5039 { | 8606 { |
5040 | 8607 |
5041 | 8608 |
5042 | 8609 |
5043 | 8610 |
5044 | 8611 |
5045 # Check whether --with-gnome-includes or --without-gnome-includes was given. | 8612 |
8613 # Check whether --with-gnome-includes or --without-gnome-includes was given. | |
5046 if test "${with_gnome_includes+set}" = set; then | 8614 if test "${with_gnome_includes+set}" = set; then |
5047 withval="$with_gnome_includes" | 8615 withval="$with_gnome_includes" |
5048 CFLAGS="$CFLAGS -I$withval" | 8616 CFLAGS="$CFLAGS -I$withval" |
5049 | 8617 |
5050 fi | 8618 fi; |
5051 | 8619 |
5052 | 8620 |
5053 # Check whether --with-gnome-libs or --without-gnome-libs was given. | 8621 # Check whether --with-gnome-libs or --without-gnome-libs was given. |
5054 if test "${with_gnome_libs+set}" = set; then | 8622 if test "${with_gnome_libs+set}" = set; then |
5055 withval="$with_gnome_libs" | 8623 withval="$with_gnome_libs" |
5056 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval | 8624 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
5057 | 8625 |
5058 fi | 8626 fi; |
5059 | 8627 |
5060 | 8628 |
5061 # Check whether --with-gnome or --without-gnome was given. | 8629 # Check whether --with-gnome or --without-gnome was given. |
5062 if test "${with_gnome+set}" = set; then | 8630 if test "${with_gnome+set}" = set; then |
5063 withval="$with_gnome" | 8631 withval="$with_gnome" |
5064 if test x$withval = xyes; then | 8632 if test x$withval = xyes; then |
5065 want_gnome=yes | 8633 want_gnome=yes |
5066 have_gnome=yes | 8634 have_gnome=yes |
5074 gnome_prefix=$withval/lib | 8642 gnome_prefix=$withval/lib |
5075 fi | 8643 fi |
5076 fi | 8644 fi |
5077 else | 8645 else |
5078 want_gnome=yes | 8646 want_gnome=yes |
5079 fi | 8647 fi; |
5080 | |
5081 | 8648 |
5082 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then | 8649 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
5083 { | 8650 { |
5084 echo $ac_n "checking for libgnomeui-2.0""... $ac_c" 1>&6 | 8651 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
5085 echo "configure:5086: checking for libgnomeui-2.0" >&5 | 8652 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6 |
5086 if $PKG_CONFIG --exists libgnomeui-2.0; then | 8653 if $PKG_CONFIG --exists libgnomeui-2.0; then |
5087 echo "$ac_t""yes" 1>&6 | 8654 echo "$as_me:$LINENO: result: yes" >&5 |
8655 echo "${ECHO_T}yes" >&6 | |
5088 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` | 8656 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
5089 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` | 8657 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
5090 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` | 8658 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
5091 have_gnome=yes | 8659 have_gnome=yes |
5092 else | 8660 else |
5093 echo "$ac_t""not found" 1>&6 | 8661 echo "$as_me:$LINENO: result: not found" >&5 |
8662 echo "${ECHO_T}not found" >&6 | |
5094 if test "x" = xfail; then | 8663 if test "x" = xfail; then |
5095 { echo "configure: error: Could not find libgnomeui-2.0 via pkg-config" 1>&2; exit 1; } | 8664 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
8665 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} | |
8666 { (exit 1); exit 1; }; } | |
5096 fi | 8667 fi |
5097 fi | 8668 fi |
5098 } | 8669 } |
5099 elif test "x$want_gnome" = xyes; then | 8670 elif test "x$want_gnome" = xyes; then |
5100 { | 8671 { |
5101 # Extract the first word of "gnome-config", so it can be a program name with args. | 8672 # Extract the first word of "gnome-config", so it can be a program name with args. |
5102 set dummy gnome-config; ac_word=$2 | 8673 set dummy gnome-config; ac_word=$2 |
5103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 8674 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5104 echo "configure:5105: checking for $ac_word" >&5 | 8675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5105 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then | 8676 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
5106 echo $ac_n "(cached) $ac_c" 1>&6 | 8677 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5107 else | 8678 else |
5108 case "$GNOME_CONFIG" in | 8679 case $GNOME_CONFIG in |
5109 /*) | 8680 [\\/]* | ?:[\\/]*) |
5110 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. | 8681 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
5111 ;; | 8682 ;; |
5112 ?:/*) | |
5113 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path. | |
5114 ;; | |
5115 *) | 8683 *) |
5116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5117 ac_dummy="$PATH" | 8685 for as_dir in $PATH |
5118 for ac_dir in $ac_dummy; do | 8686 do |
5119 test -z "$ac_dir" && ac_dir=. | 8687 IFS=$as_save_IFS |
5120 if test -f $ac_dir/$ac_word; then | 8688 test -z "$as_dir" && as_dir=. |
5121 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word" | 8689 for ac_exec_ext in '' $ac_executable_extensions; do |
5122 break | 8690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5123 fi | 8691 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5124 done | 8692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5125 IFS="$ac_save_ifs" | 8693 break 2 |
8694 fi | |
8695 done | |
8696 done | |
8697 | |
5126 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" | 8698 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
5127 ;; | 8699 ;; |
5128 esac | 8700 esac |
5129 fi | 8701 fi |
5130 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG" | 8702 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
8703 | |
5131 if test -n "$GNOME_CONFIG"; then | 8704 if test -n "$GNOME_CONFIG"; then |
5132 echo "$ac_t""$GNOME_CONFIG" 1>&6 | 8705 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
5133 else | 8706 echo "${ECHO_T}$GNOME_CONFIG" >&6 |
5134 echo "$ac_t""no" 1>&6 | 8707 else |
8708 echo "$as_me:$LINENO: result: no" >&5 | |
8709 echo "${ECHO_T}no" >&6 | |
5135 fi | 8710 fi |
5136 | 8711 |
5137 if test "$GNOME_CONFIG" = "no"; then | 8712 if test "$GNOME_CONFIG" = "no"; then |
5138 no_gnome_config="yes" | 8713 no_gnome_config="yes" |
5139 else | 8714 else |
5140 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6 | 8715 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
5141 echo "configure:5142: checking if $GNOME_CONFIG works" >&5 | 8716 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6 |
5142 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then | 8717 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
5143 echo "$ac_t""yes" 1>&6 | 8718 echo "$as_me:$LINENO: result: yes" >&5 |
8719 echo "${ECHO_T}yes" >&6 | |
5144 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" | 8720 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
5145 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" | 8721 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
5146 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" | 8722 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
5147 have_gnome=yes | 8723 have_gnome=yes |
5148 else | 8724 else |
5149 echo "$ac_t""no" 1>&6 | 8725 echo "$as_me:$LINENO: result: no" >&5 |
8726 echo "${ECHO_T}no" >&6 | |
5150 no_gnome_config="yes" | 8727 no_gnome_config="yes" |
5151 fi | 8728 fi |
5152 fi | 8729 fi |
5153 | 8730 |
5154 if test x$exec_prefix = xNONE; then | 8731 if test x$exec_prefix = xNONE; then |
5160 else | 8737 else |
5161 gnome_prefix=`eval echo \`echo $libdir\`` | 8738 gnome_prefix=`eval echo \`echo $libdir\`` |
5162 fi | 8739 fi |
5163 | 8740 |
5164 if test "$no_gnome_config" = "yes"; then | 8741 if test "$no_gnome_config" = "yes"; then |
5165 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6 | 8742 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
5166 echo "configure:5167: checking for gnomeConf.sh file in $gnome_prefix" >&5 | 8743 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6 |
5167 if test -f $gnome_prefix/gnomeConf.sh; then | 8744 if test -f $gnome_prefix/gnomeConf.sh; then |
5168 echo "$ac_t""found" 1>&6 | 8745 echo "$as_me:$LINENO: result: found" >&5 |
8746 echo "${ECHO_T}found" >&6 | |
5169 echo "loading gnome configuration from" \ | 8747 echo "loading gnome configuration from" \ |
5170 "$gnome_prefix/gnomeConf.sh" | 8748 "$gnome_prefix/gnomeConf.sh" |
5171 . $gnome_prefix/gnomeConf.sh | 8749 . $gnome_prefix/gnomeConf.sh |
5172 have_gnome=yes | 8750 have_gnome=yes |
5173 else | 8751 else |
5174 echo "$ac_t""not found" 1>&6 | 8752 echo "$as_me:$LINENO: result: not found" >&5 |
8753 echo "${ECHO_T}not found" >&6 | |
5175 if test x = xfail; then | 8754 if test x = xfail; then |
5176 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; } | 8755 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
8756 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} | |
8757 { (exit 1); exit 1; }; } | |
5177 fi | 8758 fi |
5178 fi | 8759 fi |
5179 fi | 8760 fi |
5180 } | 8761 } |
5181 fi | 8762 fi |
5182 | 8763 |
5183 if test x$have_gnome = xyes ; then | 8764 if test x$have_gnome = xyes ; then |
5184 cat >> confdefs.h <<\EOF | 8765 cat >>confdefs.h <<\_ACEOF |
5185 #define FEAT_GUI_GNOME 1 | 8766 #define FEAT_GUI_GNOME 1 |
5186 EOF | 8767 _ACEOF |
5187 | 8768 |
5188 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" | 8769 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
5189 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" | 8770 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
5190 fi | 8771 fi |
5191 } | 8772 } |
5198 | 8779 |
5199 if test -z "$SKIP_MOTIF"; then | 8780 if test -z "$SKIP_MOTIF"; then |
5200 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX" | 8781 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX" |
5201 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" | 8782 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
5202 | 8783 |
5203 echo $ac_n "checking for location of Motif GUI includes""... $ac_c" 1>&6 | 8784 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
5204 echo "configure:5205: checking for location of Motif GUI includes" >&5 | 8785 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6 |
5205 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" | 8786 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
5206 GUI_INC_LOC= | 8787 GUI_INC_LOC= |
5207 for try in $gui_includes; do | 8788 for try in $gui_includes; do |
5208 if test -f "$try/Xm/Xm.h"; then | 8789 if test -f "$try/Xm/Xm.h"; then |
5209 GUI_INC_LOC=$try | 8790 GUI_INC_LOC=$try |
5210 fi | 8791 fi |
5211 done | 8792 done |
5212 if test -n "$GUI_INC_LOC"; then | 8793 if test -n "$GUI_INC_LOC"; then |
5213 if test "$GUI_INC_LOC" = /usr/include; then | 8794 if test "$GUI_INC_LOC" = /usr/include; then |
5214 GUI_INC_LOC= | 8795 GUI_INC_LOC= |
5215 echo "$ac_t""in default path" 1>&6 | 8796 echo "$as_me:$LINENO: result: in default path" >&5 |
8797 echo "${ECHO_T}in default path" >&6 | |
5216 else | 8798 else |
5217 echo "$ac_t""$GUI_INC_LOC" 1>&6 | 8799 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
8800 echo "${ECHO_T}$GUI_INC_LOC" >&6 | |
5218 fi | 8801 fi |
5219 else | 8802 else |
5220 echo "$ac_t""<not found>" 1>&6 | 8803 echo "$as_me:$LINENO: result: <not found>" >&5 |
8804 echo "${ECHO_T}<not found>" >&6 | |
5221 SKIP_MOTIF=YES | 8805 SKIP_MOTIF=YES |
5222 fi | 8806 fi |
5223 fi | 8807 fi |
5224 | 8808 |
5225 | 8809 |
5226 if test -z "$SKIP_MOTIF"; then | 8810 if test -z "$SKIP_MOTIF"; then |
5227 echo $ac_n "checking --with-motif-lib argument""... $ac_c" 1>&6 | 8811 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
5228 echo "configure:5229: checking --with-motif-lib argument" >&5 | 8812 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6 |
5229 # Check whether --with-motif-lib or --without-motif-lib was given. | 8813 |
8814 # Check whether --with-motif-lib or --without-motif-lib was given. | |
5230 if test "${with_motif_lib+set}" = set; then | 8815 if test "${with_motif_lib+set}" = set; then |
5231 withval="$with_motif_lib" | 8816 withval="$with_motif_lib" |
5232 MOTIF_LIBNAME="${withval}" | 8817 MOTIF_LIBNAME="${withval}" |
5233 fi | 8818 fi; |
5234 | |
5235 | 8819 |
5236 if test -n "$MOTIF_LIBNAME"; then | 8820 if test -n "$MOTIF_LIBNAME"; then |
5237 echo "$ac_t""$MOTIF_LIBNAME" 1>&6 | 8821 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
8822 echo "${ECHO_T}$MOTIF_LIBNAME" >&6 | |
5238 GUI_LIB_LOC= | 8823 GUI_LIB_LOC= |
5239 else | 8824 else |
5240 echo "$ac_t""no" 1>&6 | 8825 echo "$as_me:$LINENO: result: no" >&5 |
8826 echo "${ECHO_T}no" >&6 | |
5241 | 8827 |
5242 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" | 8828 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
5243 | 8829 |
5244 echo $ac_n "checking for location of Motif GUI libs""... $ac_c" 1>&6 | 8830 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
5245 echo "configure:5246: checking for location of Motif GUI libs" >&5 | 8831 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6 |
5246 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" | 8832 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" |
5247 GUI_LIB_LOC= | 8833 GUI_LIB_LOC= |
5248 for try in $gui_libs; do | 8834 for try in $gui_libs; do |
5249 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do | 8835 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do |
5250 if test -f "$libtry"; then | 8836 if test -f "$libtry"; then |
5253 done | 8839 done |
5254 done | 8840 done |
5255 if test -n "$GUI_LIB_LOC"; then | 8841 if test -n "$GUI_LIB_LOC"; then |
5256 if test "$GUI_LIB_LOC" = /usr/lib; then | 8842 if test "$GUI_LIB_LOC" = /usr/lib; then |
5257 GUI_LIB_LOC= | 8843 GUI_LIB_LOC= |
5258 echo "$ac_t""in default path" 1>&6 | 8844 echo "$as_me:$LINENO: result: in default path" >&5 |
8845 echo "${ECHO_T}in default path" >&6 | |
5259 else | 8846 else |
5260 if test -n "$GUI_LIB_LOC"; then | 8847 if test -n "$GUI_LIB_LOC"; then |
5261 echo "$ac_t""$GUI_LIB_LOC" 1>&6 | 8848 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
8849 echo "${ECHO_T}$GUI_LIB_LOC" >&6 | |
5262 if test "`(uname) 2>/dev/null`" = SunOS && | 8850 if test "`(uname) 2>/dev/null`" = SunOS && |
5263 uname -r | grep '^5' >/dev/null; then | 8851 uname -r | grep '^5' >/dev/null; then |
5264 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" | 8852 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
5265 fi | 8853 fi |
5266 fi | 8854 fi |
5267 fi | 8855 fi |
5268 MOTIF_LIBNAME=-lXm | 8856 MOTIF_LIBNAME=-lXm |
5269 else | 8857 else |
5270 echo "$ac_t""<not found>" 1>&6 | 8858 echo "$as_me:$LINENO: result: <not found>" >&5 |
8859 echo "${ECHO_T}<not found>" >&6 | |
5271 SKIP_MOTIF=YES | 8860 SKIP_MOTIF=YES |
5272 fi | 8861 fi |
5273 fi | 8862 fi |
5274 fi | 8863 fi |
5275 | 8864 |
5276 if test -z "$SKIP_MOTIF"; then | 8865 if test -z "$SKIP_MOTIF"; then |
5277 SKIP_ATHENA=YES | 8866 SKIP_ATHENA=YES |
5278 SKIP_NEXTAW=YES | 8867 SKIP_NEXTAW=YES |
5279 GUITYPE=MOTIF | 8868 GUITYPE=MOTIF |
5280 | 8869 |
5281 fi | 8870 fi |
5282 | 8871 |
5283 | 8872 |
5284 GUI_X_LIBS= | 8873 GUI_X_LIBS= |
5285 | 8874 |
5286 if test -z "$SKIP_ATHENA"; then | 8875 if test -z "$SKIP_ATHENA"; then |
5287 echo $ac_n "checking if Athena header files can be found""... $ac_c" 1>&6 | 8876 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
5288 echo "configure:5289: checking if Athena header files can be found" >&5 | 8877 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6 |
5289 cflags_save=$CFLAGS | 8878 cflags_save=$CFLAGS |
5290 CFLAGS="$CFLAGS $X_CFLAGS" | 8879 CFLAGS="$CFLAGS $X_CFLAGS" |
5291 cat > conftest.$ac_ext <<EOF | 8880 cat >conftest.$ac_ext <<_ACEOF |
5292 #line 5293 "configure" | 8881 /* confdefs.h. */ |
5293 #include "confdefs.h" | 8882 _ACEOF |
8883 cat confdefs.h >>conftest.$ac_ext | |
8884 cat >>conftest.$ac_ext <<_ACEOF | |
8885 /* end confdefs.h. */ | |
5294 | 8886 |
5295 #include <X11/Intrinsic.h> | 8887 #include <X11/Intrinsic.h> |
5296 #include <X11/Xaw/Paned.h> | 8888 #include <X11/Xaw/Paned.h> |
5297 int main() { | 8889 int |
5298 | 8890 main () |
5299 ; return 0; } | 8891 { |
5300 EOF | 8892 |
5301 if { (eval echo configure:5302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8893 ; |
5302 rm -rf conftest* | 8894 return 0; |
5303 echo "$ac_t""yes" 1>&6 | 8895 } |
5304 else | 8896 _ACEOF |
5305 echo "configure: failed program was:" >&5 | 8897 rm -f conftest.$ac_objext |
5306 cat conftest.$ac_ext >&5 | 8898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5307 rm -rf conftest* | 8899 (eval $ac_compile) 2>conftest.er1 |
5308 echo "$ac_t""no" 1>&6; SKIP_ATHENA=YES | 8900 ac_status=$? |
5309 fi | 8901 grep -v '^ *+' conftest.er1 >conftest.err |
5310 rm -f conftest* | 8902 rm -f conftest.er1 |
8903 cat conftest.err >&5 | |
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8905 (exit $ac_status); } && | |
8906 { ac_try='test -z "$ac_c_werror_flag" | |
8907 || test ! -s conftest.err' | |
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8909 (eval $ac_try) 2>&5 | |
8910 ac_status=$? | |
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8912 (exit $ac_status); }; } && | |
8913 { ac_try='test -s conftest.$ac_objext' | |
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8915 (eval $ac_try) 2>&5 | |
8916 ac_status=$? | |
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8918 (exit $ac_status); }; }; then | |
8919 echo "$as_me:$LINENO: result: yes" >&5 | |
8920 echo "${ECHO_T}yes" >&6 | |
8921 else | |
8922 echo "$as_me: failed program was:" >&5 | |
8923 sed 's/^/| /' conftest.$ac_ext >&5 | |
8924 | |
8925 echo "$as_me:$LINENO: result: no" >&5 | |
8926 echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES | |
8927 fi | |
8928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5311 CFLAGS=$cflags_save | 8929 CFLAGS=$cflags_save |
5312 fi | 8930 fi |
5313 | 8931 |
5314 if test -z "$SKIP_ATHENA"; then | 8932 if test -z "$SKIP_ATHENA"; then |
5315 GUITYPE=ATHENA | 8933 GUITYPE=ATHENA |
5316 fi | 8934 fi |
5317 | 8935 |
5318 if test -z "$SKIP_NEXTAW"; then | 8936 if test -z "$SKIP_NEXTAW"; then |
5319 echo $ac_n "checking if neXtaw header files can be found""... $ac_c" 1>&6 | 8937 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
5320 echo "configure:5321: checking if neXtaw header files can be found" >&5 | 8938 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6 |
5321 cflags_save=$CFLAGS | 8939 cflags_save=$CFLAGS |
5322 CFLAGS="$CFLAGS $X_CFLAGS" | 8940 CFLAGS="$CFLAGS $X_CFLAGS" |
5323 cat > conftest.$ac_ext <<EOF | 8941 cat >conftest.$ac_ext <<_ACEOF |
5324 #line 5325 "configure" | 8942 /* confdefs.h. */ |
5325 #include "confdefs.h" | 8943 _ACEOF |
8944 cat confdefs.h >>conftest.$ac_ext | |
8945 cat >>conftest.$ac_ext <<_ACEOF | |
8946 /* end confdefs.h. */ | |
5326 | 8947 |
5327 #include <X11/Intrinsic.h> | 8948 #include <X11/Intrinsic.h> |
5328 #include <X11/neXtaw/Paned.h> | 8949 #include <X11/neXtaw/Paned.h> |
5329 int main() { | 8950 int |
5330 | 8951 main () |
5331 ; return 0; } | 8952 { |
5332 EOF | 8953 |
5333 if { (eval echo configure:5334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8954 ; |
5334 rm -rf conftest* | 8955 return 0; |
5335 echo "$ac_t""yes" 1>&6 | 8956 } |
5336 else | 8957 _ACEOF |
5337 echo "configure: failed program was:" >&5 | 8958 rm -f conftest.$ac_objext |
5338 cat conftest.$ac_ext >&5 | 8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5339 rm -rf conftest* | 8960 (eval $ac_compile) 2>conftest.er1 |
5340 echo "$ac_t""no" 1>&6; SKIP_NEXTAW=YES | 8961 ac_status=$? |
5341 fi | 8962 grep -v '^ *+' conftest.er1 >conftest.err |
5342 rm -f conftest* | 8963 rm -f conftest.er1 |
8964 cat conftest.err >&5 | |
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8966 (exit $ac_status); } && | |
8967 { ac_try='test -z "$ac_c_werror_flag" | |
8968 || test ! -s conftest.err' | |
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8970 (eval $ac_try) 2>&5 | |
8971 ac_status=$? | |
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8973 (exit $ac_status); }; } && | |
8974 { ac_try='test -s conftest.$ac_objext' | |
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8976 (eval $ac_try) 2>&5 | |
8977 ac_status=$? | |
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8979 (exit $ac_status); }; }; then | |
8980 echo "$as_me:$LINENO: result: yes" >&5 | |
8981 echo "${ECHO_T}yes" >&6 | |
8982 else | |
8983 echo "$as_me: failed program was:" >&5 | |
8984 sed 's/^/| /' conftest.$ac_ext >&5 | |
8985 | |
8986 echo "$as_me:$LINENO: result: no" >&5 | |
8987 echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES | |
8988 fi | |
8989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5343 CFLAGS=$cflags_save | 8990 CFLAGS=$cflags_save |
5344 fi | 8991 fi |
5345 | 8992 |
5346 if test -z "$SKIP_NEXTAW"; then | 8993 if test -z "$SKIP_NEXTAW"; then |
5347 GUITYPE=NEXTAW | 8994 GUITYPE=NEXTAW |
5355 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" | 9002 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
5356 fi | 9003 fi |
5357 | 9004 |
5358 ldflags_save=$LDFLAGS | 9005 ldflags_save=$LDFLAGS |
5359 LDFLAGS="$X_LIBS $LDFLAGS" | 9006 LDFLAGS="$X_LIBS $LDFLAGS" |
5360 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 | 9007 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
5361 echo "configure:5362: checking for XShapeQueryExtension in -lXext" >&5 | 9008 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
5362 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` | 9009 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
5363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 9010 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5364 echo $ac_n "(cached) $ac_c" 1>&6 | 9011 else |
5365 else | 9012 ac_check_lib_save_LIBS=$LIBS |
5366 ac_save_LIBS="$LIBS" | |
5367 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" | 9013 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
5368 cat > conftest.$ac_ext <<EOF | 9014 cat >conftest.$ac_ext <<_ACEOF |
5369 #line 5370 "configure" | 9015 /* confdefs.h. */ |
5370 #include "confdefs.h" | 9016 _ACEOF |
9017 cat confdefs.h >>conftest.$ac_ext | |
9018 cat >>conftest.$ac_ext <<_ACEOF | |
9019 /* end confdefs.h. */ | |
9020 | |
5371 /* Override any gcc2 internal prototype to avoid an error. */ | 9021 /* Override any gcc2 internal prototype to avoid an error. */ |
9022 #ifdef __cplusplus | |
9023 extern "C" | |
9024 #endif | |
5372 /* We use char because int might match the return type of a gcc2 | 9025 /* We use char because int might match the return type of a gcc2 |
5373 builtin and then its argument prototype would still apply. */ | 9026 builtin and then its argument prototype would still apply. */ |
5374 char XShapeQueryExtension(); | 9027 char XShapeQueryExtension (); |
5375 | 9028 int |
5376 int main() { | 9029 main () |
5377 XShapeQueryExtension() | 9030 { |
5378 ; return 0; } | 9031 XShapeQueryExtension (); |
5379 EOF | 9032 ; |
5380 if { (eval echo configure:5381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 9033 return 0; |
5381 rm -rf conftest* | 9034 } |
5382 eval "ac_cv_lib_$ac_lib_var=yes" | 9035 _ACEOF |
5383 else | 9036 rm -f conftest.$ac_objext conftest$ac_exeext |
5384 echo "configure: failed program was:" >&5 | 9037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5385 cat conftest.$ac_ext >&5 | 9038 (eval $ac_link) 2>conftest.er1 |
5386 rm -rf conftest* | 9039 ac_status=$? |
5387 eval "ac_cv_lib_$ac_lib_var=no" | 9040 grep -v '^ *+' conftest.er1 >conftest.err |
5388 fi | 9041 rm -f conftest.er1 |
5389 rm -f conftest* | 9042 cat conftest.err >&5 |
5390 LIBS="$ac_save_LIBS" | 9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5391 | 9044 (exit $ac_status); } && |
5392 fi | 9045 { ac_try='test -z "$ac_c_werror_flag" |
5393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 9046 || test ! -s conftest.err' |
5394 echo "$ac_t""yes" 1>&6 | 9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9048 (eval $ac_try) 2>&5 | |
9049 ac_status=$? | |
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9051 (exit $ac_status); }; } && | |
9052 { ac_try='test -s conftest$ac_exeext' | |
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9054 (eval $ac_try) 2>&5 | |
9055 ac_status=$? | |
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9057 (exit $ac_status); }; }; then | |
9058 ac_cv_lib_Xext_XShapeQueryExtension=yes | |
9059 else | |
9060 echo "$as_me: failed program was:" >&5 | |
9061 sed 's/^/| /' conftest.$ac_ext >&5 | |
9062 | |
9063 ac_cv_lib_Xext_XShapeQueryExtension=no | |
9064 fi | |
9065 rm -f conftest.err conftest.$ac_objext \ | |
9066 conftest$ac_exeext conftest.$ac_ext | |
9067 LIBS=$ac_check_lib_save_LIBS | |
9068 fi | |
9069 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
9070 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
9071 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
5395 GUI_X_LIBS="-lXext" | 9072 GUI_X_LIBS="-lXext" |
5396 else | 9073 fi |
5397 echo "$ac_t""no" 1>&6 | 9074 |
5398 fi | 9075 echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
5399 | 9076 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6 |
5400 echo $ac_n "checking for wslen in -lw""... $ac_c" 1>&6 | 9077 if test "${ac_cv_lib_w_wslen+set}" = set; then |
5401 echo "configure:5402: checking for wslen in -lw" >&5 | 9078 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5402 ac_lib_var=`echo w'_'wslen | sed 'y%./+-%__p_%'` | 9079 else |
5403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 9080 ac_check_lib_save_LIBS=$LIBS |
5404 echo $ac_n "(cached) $ac_c" 1>&6 | |
5405 else | |
5406 ac_save_LIBS="$LIBS" | |
5407 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" | 9081 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
5408 cat > conftest.$ac_ext <<EOF | 9082 cat >conftest.$ac_ext <<_ACEOF |
5409 #line 5410 "configure" | 9083 /* confdefs.h. */ |
5410 #include "confdefs.h" | 9084 _ACEOF |
9085 cat confdefs.h >>conftest.$ac_ext | |
9086 cat >>conftest.$ac_ext <<_ACEOF | |
9087 /* end confdefs.h. */ | |
9088 | |
5411 /* Override any gcc2 internal prototype to avoid an error. */ | 9089 /* Override any gcc2 internal prototype to avoid an error. */ |
9090 #ifdef __cplusplus | |
9091 extern "C" | |
9092 #endif | |
5412 /* We use char because int might match the return type of a gcc2 | 9093 /* We use char because int might match the return type of a gcc2 |
5413 builtin and then its argument prototype would still apply. */ | 9094 builtin and then its argument prototype would still apply. */ |
5414 char wslen(); | 9095 char wslen (); |
5415 | 9096 int |
5416 int main() { | 9097 main () |
5417 wslen() | 9098 { |
5418 ; return 0; } | 9099 wslen (); |
5419 EOF | 9100 ; |
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 9101 return 0; |
5421 rm -rf conftest* | 9102 } |
5422 eval "ac_cv_lib_$ac_lib_var=yes" | 9103 _ACEOF |
5423 else | 9104 rm -f conftest.$ac_objext conftest$ac_exeext |
5424 echo "configure: failed program was:" >&5 | 9105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5425 cat conftest.$ac_ext >&5 | 9106 (eval $ac_link) 2>conftest.er1 |
5426 rm -rf conftest* | 9107 ac_status=$? |
5427 eval "ac_cv_lib_$ac_lib_var=no" | 9108 grep -v '^ *+' conftest.er1 >conftest.err |
5428 fi | 9109 rm -f conftest.er1 |
5429 rm -f conftest* | 9110 cat conftest.err >&5 |
5430 LIBS="$ac_save_LIBS" | 9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5431 | 9112 (exit $ac_status); } && |
5432 fi | 9113 { ac_try='test -z "$ac_c_werror_flag" |
5433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 9114 || test ! -s conftest.err' |
5434 echo "$ac_t""yes" 1>&6 | 9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9116 (eval $ac_try) 2>&5 | |
9117 ac_status=$? | |
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9119 (exit $ac_status); }; } && | |
9120 { ac_try='test -s conftest$ac_exeext' | |
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9122 (eval $ac_try) 2>&5 | |
9123 ac_status=$? | |
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9125 (exit $ac_status); }; }; then | |
9126 ac_cv_lib_w_wslen=yes | |
9127 else | |
9128 echo "$as_me: failed program was:" >&5 | |
9129 sed 's/^/| /' conftest.$ac_ext >&5 | |
9130 | |
9131 ac_cv_lib_w_wslen=no | |
9132 fi | |
9133 rm -f conftest.err conftest.$ac_objext \ | |
9134 conftest$ac_exeext conftest.$ac_ext | |
9135 LIBS=$ac_check_lib_save_LIBS | |
9136 fi | |
9137 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 | |
9138 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6 | |
9139 if test $ac_cv_lib_w_wslen = yes; then | |
5435 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" | 9140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
5436 else | 9141 fi |
5437 echo "$ac_t""no" 1>&6 | 9142 |
5438 fi | 9143 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
5439 | 9144 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 |
5440 echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6 | 9145 if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
5441 echo "configure:5442: checking for dlsym in -ldl" >&5 | 9146 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5442 ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'` | 9147 else |
5443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 9148 ac_check_lib_save_LIBS=$LIBS |
5444 echo $ac_n "(cached) $ac_c" 1>&6 | |
5445 else | |
5446 ac_save_LIBS="$LIBS" | |
5447 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" | 9149 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
5448 cat > conftest.$ac_ext <<EOF | 9150 cat >conftest.$ac_ext <<_ACEOF |
5449 #line 5450 "configure" | 9151 /* confdefs.h. */ |
5450 #include "confdefs.h" | 9152 _ACEOF |
9153 cat confdefs.h >>conftest.$ac_ext | |
9154 cat >>conftest.$ac_ext <<_ACEOF | |
9155 /* end confdefs.h. */ | |
9156 | |
5451 /* Override any gcc2 internal prototype to avoid an error. */ | 9157 /* Override any gcc2 internal prototype to avoid an error. */ |
9158 #ifdef __cplusplus | |
9159 extern "C" | |
9160 #endif | |
5452 /* We use char because int might match the return type of a gcc2 | 9161 /* We use char because int might match the return type of a gcc2 |
5453 builtin and then its argument prototype would still apply. */ | 9162 builtin and then its argument prototype would still apply. */ |
5454 char dlsym(); | 9163 char dlsym (); |
5455 | 9164 int |
5456 int main() { | 9165 main () |
5457 dlsym() | 9166 { |
5458 ; return 0; } | 9167 dlsym (); |
5459 EOF | 9168 ; |
5460 if { (eval echo configure:5461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 9169 return 0; |
5461 rm -rf conftest* | 9170 } |
5462 eval "ac_cv_lib_$ac_lib_var=yes" | 9171 _ACEOF |
5463 else | 9172 rm -f conftest.$ac_objext conftest$ac_exeext |
5464 echo "configure: failed program was:" >&5 | 9173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5465 cat conftest.$ac_ext >&5 | 9174 (eval $ac_link) 2>conftest.er1 |
5466 rm -rf conftest* | 9175 ac_status=$? |
5467 eval "ac_cv_lib_$ac_lib_var=no" | 9176 grep -v '^ *+' conftest.er1 >conftest.err |
5468 fi | 9177 rm -f conftest.er1 |
5469 rm -f conftest* | 9178 cat conftest.err >&5 |
5470 LIBS="$ac_save_LIBS" | 9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5471 | 9180 (exit $ac_status); } && |
5472 fi | 9181 { ac_try='test -z "$ac_c_werror_flag" |
5473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 9182 || test ! -s conftest.err' |
5474 echo "$ac_t""yes" 1>&6 | 9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9184 (eval $ac_try) 2>&5 | |
9185 ac_status=$? | |
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9187 (exit $ac_status); }; } && | |
9188 { ac_try='test -s conftest$ac_exeext' | |
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9190 (eval $ac_try) 2>&5 | |
9191 ac_status=$? | |
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9193 (exit $ac_status); }; }; then | |
9194 ac_cv_lib_dl_dlsym=yes | |
9195 else | |
9196 echo "$as_me: failed program was:" >&5 | |
9197 sed 's/^/| /' conftest.$ac_ext >&5 | |
9198 | |
9199 ac_cv_lib_dl_dlsym=no | |
9200 fi | |
9201 rm -f conftest.err conftest.$ac_objext \ | |
9202 conftest$ac_exeext conftest.$ac_ext | |
9203 LIBS=$ac_check_lib_save_LIBS | |
9204 fi | |
9205 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | |
9206 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 | |
9207 if test $ac_cv_lib_dl_dlsym = yes; then | |
5475 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" | 9208 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
5476 else | 9209 fi |
5477 echo "$ac_t""no" 1>&6 | 9210 |
5478 fi | 9211 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
5479 | 9212 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6 |
5480 echo $ac_n "checking for XmuCreateStippledPixmap in -lXmu""... $ac_c" 1>&6 | 9213 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
5481 echo "configure:5482: checking for XmuCreateStippledPixmap in -lXmu" >&5 | 9214 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5482 ac_lib_var=`echo Xmu'_'XmuCreateStippledPixmap | sed 'y%./+-%__p_%'` | 9215 else |
5483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 9216 ac_check_lib_save_LIBS=$LIBS |
5484 echo $ac_n "(cached) $ac_c" 1>&6 | |
5485 else | |
5486 ac_save_LIBS="$LIBS" | |
5487 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" | 9217 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
5488 cat > conftest.$ac_ext <<EOF | 9218 cat >conftest.$ac_ext <<_ACEOF |
5489 #line 5490 "configure" | 9219 /* confdefs.h. */ |
5490 #include "confdefs.h" | 9220 _ACEOF |
9221 cat confdefs.h >>conftest.$ac_ext | |
9222 cat >>conftest.$ac_ext <<_ACEOF | |
9223 /* end confdefs.h. */ | |
9224 | |
5491 /* Override any gcc2 internal prototype to avoid an error. */ | 9225 /* Override any gcc2 internal prototype to avoid an error. */ |
9226 #ifdef __cplusplus | |
9227 extern "C" | |
9228 #endif | |
5492 /* We use char because int might match the return type of a gcc2 | 9229 /* We use char because int might match the return type of a gcc2 |
5493 builtin and then its argument prototype would still apply. */ | 9230 builtin and then its argument prototype would still apply. */ |
5494 char XmuCreateStippledPixmap(); | 9231 char XmuCreateStippledPixmap (); |
5495 | 9232 int |
5496 int main() { | 9233 main () |
5497 XmuCreateStippledPixmap() | 9234 { |
5498 ; return 0; } | 9235 XmuCreateStippledPixmap (); |
5499 EOF | 9236 ; |
5500 if { (eval echo configure:5501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 9237 return 0; |
5501 rm -rf conftest* | 9238 } |
5502 eval "ac_cv_lib_$ac_lib_var=yes" | 9239 _ACEOF |
5503 else | 9240 rm -f conftest.$ac_objext conftest$ac_exeext |
5504 echo "configure: failed program was:" >&5 | 9241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5505 cat conftest.$ac_ext >&5 | 9242 (eval $ac_link) 2>conftest.er1 |
5506 rm -rf conftest* | 9243 ac_status=$? |
5507 eval "ac_cv_lib_$ac_lib_var=no" | 9244 grep -v '^ *+' conftest.er1 >conftest.err |
5508 fi | 9245 rm -f conftest.er1 |
5509 rm -f conftest* | 9246 cat conftest.err >&5 |
5510 LIBS="$ac_save_LIBS" | 9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5511 | 9248 (exit $ac_status); } && |
5512 fi | 9249 { ac_try='test -z "$ac_c_werror_flag" |
5513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 9250 || test ! -s conftest.err' |
5514 echo "$ac_t""yes" 1>&6 | 9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9252 (eval $ac_try) 2>&5 | |
9253 ac_status=$? | |
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9255 (exit $ac_status); }; } && | |
9256 { ac_try='test -s conftest$ac_exeext' | |
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9258 (eval $ac_try) 2>&5 | |
9259 ac_status=$? | |
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9261 (exit $ac_status); }; }; then | |
9262 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes | |
9263 else | |
9264 echo "$as_me: failed program was:" >&5 | |
9265 sed 's/^/| /' conftest.$ac_ext >&5 | |
9266 | |
9267 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no | |
9268 fi | |
9269 rm -f conftest.err conftest.$ac_objext \ | |
9270 conftest$ac_exeext conftest.$ac_ext | |
9271 LIBS=$ac_check_lib_save_LIBS | |
9272 fi | |
9273 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 | |
9274 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6 | |
9275 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then | |
5515 GUI_X_LIBS="-lXmu $GUI_X_LIBS" | 9276 GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
5516 else | |
5517 echo "$ac_t""no" 1>&6 | |
5518 fi | 9277 fi |
5519 | 9278 |
5520 if test -z "$SKIP_MOTIF"; then | 9279 if test -z "$SKIP_MOTIF"; then |
5521 echo $ac_n "checking for XpEndJob in -lXp""... $ac_c" 1>&6 | 9280 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
5522 echo "configure:5523: checking for XpEndJob in -lXp" >&5 | 9281 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6 |
5523 ac_lib_var=`echo Xp'_'XpEndJob | sed 'y%./+-%__p_%'` | 9282 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
5524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 9283 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5525 echo $ac_n "(cached) $ac_c" 1>&6 | 9284 else |
5526 else | 9285 ac_check_lib_save_LIBS=$LIBS |
5527 ac_save_LIBS="$LIBS" | |
5528 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" | 9286 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
5529 cat > conftest.$ac_ext <<EOF | 9287 cat >conftest.$ac_ext <<_ACEOF |
5530 #line 5531 "configure" | 9288 /* confdefs.h. */ |
5531 #include "confdefs.h" | 9289 _ACEOF |
9290 cat confdefs.h >>conftest.$ac_ext | |
9291 cat >>conftest.$ac_ext <<_ACEOF | |
9292 /* end confdefs.h. */ | |
9293 | |
5532 /* Override any gcc2 internal prototype to avoid an error. */ | 9294 /* Override any gcc2 internal prototype to avoid an error. */ |
9295 #ifdef __cplusplus | |
9296 extern "C" | |
9297 #endif | |
5533 /* We use char because int might match the return type of a gcc2 | 9298 /* We use char because int might match the return type of a gcc2 |
5534 builtin and then its argument prototype would still apply. */ | 9299 builtin and then its argument prototype would still apply. */ |
5535 char XpEndJob(); | 9300 char XpEndJob (); |
5536 | 9301 int |
5537 int main() { | 9302 main () |
5538 XpEndJob() | 9303 { |
5539 ; return 0; } | 9304 XpEndJob (); |
5540 EOF | 9305 ; |
5541 if { (eval echo configure:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 9306 return 0; |
5542 rm -rf conftest* | 9307 } |
5543 eval "ac_cv_lib_$ac_lib_var=yes" | 9308 _ACEOF |
5544 else | 9309 rm -f conftest.$ac_objext conftest$ac_exeext |
5545 echo "configure: failed program was:" >&5 | 9310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5546 cat conftest.$ac_ext >&5 | 9311 (eval $ac_link) 2>conftest.er1 |
5547 rm -rf conftest* | 9312 ac_status=$? |
5548 eval "ac_cv_lib_$ac_lib_var=no" | 9313 grep -v '^ *+' conftest.er1 >conftest.err |
5549 fi | 9314 rm -f conftest.er1 |
5550 rm -f conftest* | 9315 cat conftest.err >&5 |
5551 LIBS="$ac_save_LIBS" | 9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5552 | 9317 (exit $ac_status); } && |
5553 fi | 9318 { ac_try='test -z "$ac_c_werror_flag" |
5554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 9319 || test ! -s conftest.err' |
5555 echo "$ac_t""yes" 1>&6 | 9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9321 (eval $ac_try) 2>&5 | |
9322 ac_status=$? | |
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9324 (exit $ac_status); }; } && | |
9325 { ac_try='test -s conftest$ac_exeext' | |
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9327 (eval $ac_try) 2>&5 | |
9328 ac_status=$? | |
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9330 (exit $ac_status); }; }; then | |
9331 ac_cv_lib_Xp_XpEndJob=yes | |
9332 else | |
9333 echo "$as_me: failed program was:" >&5 | |
9334 sed 's/^/| /' conftest.$ac_ext >&5 | |
9335 | |
9336 ac_cv_lib_Xp_XpEndJob=no | |
9337 fi | |
9338 rm -f conftest.err conftest.$ac_objext \ | |
9339 conftest$ac_exeext conftest.$ac_ext | |
9340 LIBS=$ac_check_lib_save_LIBS | |
9341 fi | |
9342 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 | |
9343 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6 | |
9344 if test $ac_cv_lib_Xp_XpEndJob = yes; then | |
5556 GUI_X_LIBS="-lXp $GUI_X_LIBS" | 9345 GUI_X_LIBS="-lXp $GUI_X_LIBS" |
5557 else | |
5558 echo "$ac_t""no" 1>&6 | |
5559 fi | 9346 fi |
5560 | 9347 |
5561 fi | 9348 fi |
5562 LDFLAGS=$ldflags_save | 9349 LDFLAGS=$ldflags_save |
5563 | 9350 |
5564 echo $ac_n "checking for extra X11 defines""... $ac_c" 1>&6 | 9351 echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
5565 echo "configure:5566: checking for extra X11 defines" >&5 | 9352 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6 |
5566 NARROW_PROTO= | 9353 NARROW_PROTO= |
5567 rm -fr conftestdir | 9354 rm -fr conftestdir |
5568 if mkdir conftestdir; then | 9355 if mkdir conftestdir; then |
5569 cd conftestdir | 9356 cd conftestdir |
5570 cat > Imakefile <<'EOF' | 9357 cat > Imakefile <<'EOF' |
5576 fi | 9363 fi |
5577 cd .. | 9364 cd .. |
5578 rm -fr conftestdir | 9365 rm -fr conftestdir |
5579 fi | 9366 fi |
5580 if test -z "$NARROW_PROTO"; then | 9367 if test -z "$NARROW_PROTO"; then |
5581 echo "$ac_t""no" 1>&6 | 9368 echo "$as_me:$LINENO: result: no" >&5 |
9369 echo "${ECHO_T}no" >&6 | |
5582 else | 9370 else |
5583 echo "$ac_t""$NARROW_PROTO" 1>&6 | 9371 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
9372 echo "${ECHO_T}$NARROW_PROTO" >&6 | |
5584 fi | 9373 fi |
5585 | 9374 |
5586 fi | 9375 fi |
5587 | 9376 |
5588 if test "$enable_xsmp" = "yes"; then | 9377 if test "$enable_xsmp" = "yes"; then |
5589 cppflags_save=$CPPFLAGS | 9378 cppflags_save=$CPPFLAGS |
5590 CPPFLAGS="$CPPFLAGS $X_CFLAGS" | 9379 CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
5591 for ac_hdr in X11/SM/SMlib.h | 9380 |
9381 for ac_header in X11/SM/SMlib.h | |
5592 do | 9382 do |
5593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 9383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 9384 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5595 echo "configure:5596: checking for $ac_hdr" >&5 | 9385 echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 9386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5597 echo $ac_n "(cached) $ac_c" 1>&6 | 9387 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5598 else | 9388 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5599 cat > conftest.$ac_ext <<EOF | 9389 fi |
5600 #line 5601 "configure" | 9390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5601 #include "confdefs.h" | 9391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5602 #include <$ac_hdr> | 9392 else |
5603 EOF | 9393 # Is the header compilable? |
5604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9394 echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5605 { (eval echo configure:5606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
5606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 9396 cat >conftest.$ac_ext <<_ACEOF |
5607 if test -z "$ac_err"; then | 9397 /* confdefs.h. */ |
5608 rm -rf conftest* | 9398 _ACEOF |
5609 eval "ac_cv_header_$ac_safe=yes" | 9399 cat confdefs.h >>conftest.$ac_ext |
5610 else | 9400 cat >>conftest.$ac_ext <<_ACEOF |
5611 echo "$ac_err" >&5 | 9401 /* end confdefs.h. */ |
5612 echo "configure: failed program was:" >&5 | 9402 $ac_includes_default |
5613 cat conftest.$ac_ext >&5 | 9403 #include <$ac_header> |
5614 rm -rf conftest* | 9404 _ACEOF |
5615 eval "ac_cv_header_$ac_safe=no" | 9405 rm -f conftest.$ac_objext |
5616 fi | 9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5617 rm -f conftest* | 9407 (eval $ac_compile) 2>conftest.er1 |
5618 fi | 9408 ac_status=$? |
5619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 9409 grep -v '^ *+' conftest.er1 >conftest.err |
5620 echo "$ac_t""yes" 1>&6 | 9410 rm -f conftest.er1 |
5621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 9411 cat conftest.err >&5 |
5622 cat >> confdefs.h <<EOF | 9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5623 #define $ac_tr_hdr 1 | 9413 (exit $ac_status); } && |
5624 EOF | 9414 { ac_try='test -z "$ac_c_werror_flag" |
5625 | 9415 || test ! -s conftest.err' |
5626 else | 9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5627 echo "$ac_t""no" 1>&6 | 9417 (eval $ac_try) 2>&5 |
5628 fi | 9418 ac_status=$? |
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9420 (exit $ac_status); }; } && | |
9421 { ac_try='test -s conftest.$ac_objext' | |
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9423 (eval $ac_try) 2>&5 | |
9424 ac_status=$? | |
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9426 (exit $ac_status); }; }; then | |
9427 ac_header_compiler=yes | |
9428 else | |
9429 echo "$as_me: failed program was:" >&5 | |
9430 sed 's/^/| /' conftest.$ac_ext >&5 | |
9431 | |
9432 ac_header_compiler=no | |
9433 fi | |
9434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9436 echo "${ECHO_T}$ac_header_compiler" >&6 | |
9437 | |
9438 # Is the header present? | |
9439 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9441 cat >conftest.$ac_ext <<_ACEOF | |
9442 /* confdefs.h. */ | |
9443 _ACEOF | |
9444 cat confdefs.h >>conftest.$ac_ext | |
9445 cat >>conftest.$ac_ext <<_ACEOF | |
9446 /* end confdefs.h. */ | |
9447 #include <$ac_header> | |
9448 _ACEOF | |
9449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9451 ac_status=$? | |
9452 grep -v '^ *+' conftest.er1 >conftest.err | |
9453 rm -f conftest.er1 | |
9454 cat conftest.err >&5 | |
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9456 (exit $ac_status); } >/dev/null; then | |
9457 if test -s conftest.err; then | |
9458 ac_cpp_err=$ac_c_preproc_warn_flag | |
9459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9460 else | |
9461 ac_cpp_err= | |
9462 fi | |
9463 else | |
9464 ac_cpp_err=yes | |
9465 fi | |
9466 if test -z "$ac_cpp_err"; then | |
9467 ac_header_preproc=yes | |
9468 else | |
9469 echo "$as_me: failed program was:" >&5 | |
9470 sed 's/^/| /' conftest.$ac_ext >&5 | |
9471 | |
9472 ac_header_preproc=no | |
9473 fi | |
9474 rm -f conftest.err conftest.$ac_ext | |
9475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9476 echo "${ECHO_T}$ac_header_preproc" >&6 | |
9477 | |
9478 # So? What about this header? | |
9479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9480 yes:no: ) | |
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9485 ac_header_preproc=yes | |
9486 ;; | |
9487 no:yes:* ) | |
9488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9500 ( | |
9501 cat <<\_ASBOX | |
9502 ## ------------------------------------------ ## | |
9503 ## Report this to the AC_PACKAGE_NAME lists. ## | |
9504 ## ------------------------------------------ ## | |
9505 _ASBOX | |
9506 ) | | |
9507 sed "s/^/$as_me: WARNING: /" >&2 | |
9508 ;; | |
9509 esac | |
9510 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9512 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9513 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9514 else | |
9515 eval "$as_ac_Header=\$ac_header_preproc" | |
9516 fi | |
9517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9519 | |
9520 fi | |
9521 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9522 cat >>confdefs.h <<_ACEOF | |
9523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9524 _ACEOF | |
9525 | |
9526 fi | |
9527 | |
5629 done | 9528 done |
5630 | 9529 |
5631 CPPFLAGS=$cppflags_save | 9530 CPPFLAGS=$cppflags_save |
5632 fi | 9531 fi |
5633 | 9532 |
5634 | 9533 |
5635 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then | 9534 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
5636 cppflags_save=$CPPFLAGS | 9535 cppflags_save=$CPPFLAGS |
5637 CPPFLAGS="$CPPFLAGS $X_CFLAGS" | 9536 CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
5638 for ac_hdr in X11/xpm.h X11/Sunkeysym.h | 9537 |
9538 | |
9539 for ac_header in X11/xpm.h X11/Sunkeysym.h | |
5639 do | 9540 do |
5640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 9541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 9542 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5642 echo "configure:5643: checking for $ac_hdr" >&5 | 9543 echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5643 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 9544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5644 echo $ac_n "(cached) $ac_c" 1>&6 | 9545 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5645 else | 9546 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5646 cat > conftest.$ac_ext <<EOF | 9547 fi |
5647 #line 5648 "configure" | 9548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5648 #include "confdefs.h" | 9549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5649 #include <$ac_hdr> | 9550 else |
5650 EOF | 9551 # Is the header compilable? |
5651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9552 echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5652 { (eval echo configure:5653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
5653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 9554 cat >conftest.$ac_ext <<_ACEOF |
5654 if test -z "$ac_err"; then | 9555 /* confdefs.h. */ |
5655 rm -rf conftest* | 9556 _ACEOF |
5656 eval "ac_cv_header_$ac_safe=yes" | 9557 cat confdefs.h >>conftest.$ac_ext |
5657 else | 9558 cat >>conftest.$ac_ext <<_ACEOF |
5658 echo "$ac_err" >&5 | 9559 /* end confdefs.h. */ |
5659 echo "configure: failed program was:" >&5 | 9560 $ac_includes_default |
5660 cat conftest.$ac_ext >&5 | 9561 #include <$ac_header> |
5661 rm -rf conftest* | 9562 _ACEOF |
5662 eval "ac_cv_header_$ac_safe=no" | 9563 rm -f conftest.$ac_objext |
5663 fi | 9564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5664 rm -f conftest* | 9565 (eval $ac_compile) 2>conftest.er1 |
5665 fi | 9566 ac_status=$? |
5666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 9567 grep -v '^ *+' conftest.er1 >conftest.err |
5667 echo "$ac_t""yes" 1>&6 | 9568 rm -f conftest.er1 |
5668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 9569 cat conftest.err >&5 |
5669 cat >> confdefs.h <<EOF | 9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5670 #define $ac_tr_hdr 1 | 9571 (exit $ac_status); } && |
5671 EOF | 9572 { ac_try='test -z "$ac_c_werror_flag" |
5672 | 9573 || test ! -s conftest.err' |
5673 else | 9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5674 echo "$ac_t""no" 1>&6 | 9575 (eval $ac_try) 2>&5 |
5675 fi | 9576 ac_status=$? |
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9578 (exit $ac_status); }; } && | |
9579 { ac_try='test -s conftest.$ac_objext' | |
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9581 (eval $ac_try) 2>&5 | |
9582 ac_status=$? | |
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9584 (exit $ac_status); }; }; then | |
9585 ac_header_compiler=yes | |
9586 else | |
9587 echo "$as_me: failed program was:" >&5 | |
9588 sed 's/^/| /' conftest.$ac_ext >&5 | |
9589 | |
9590 ac_header_compiler=no | |
9591 fi | |
9592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9594 echo "${ECHO_T}$ac_header_compiler" >&6 | |
9595 | |
9596 # Is the header present? | |
9597 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9599 cat >conftest.$ac_ext <<_ACEOF | |
9600 /* confdefs.h. */ | |
9601 _ACEOF | |
9602 cat confdefs.h >>conftest.$ac_ext | |
9603 cat >>conftest.$ac_ext <<_ACEOF | |
9604 /* end confdefs.h. */ | |
9605 #include <$ac_header> | |
9606 _ACEOF | |
9607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9609 ac_status=$? | |
9610 grep -v '^ *+' conftest.er1 >conftest.err | |
9611 rm -f conftest.er1 | |
9612 cat conftest.err >&5 | |
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9614 (exit $ac_status); } >/dev/null; then | |
9615 if test -s conftest.err; then | |
9616 ac_cpp_err=$ac_c_preproc_warn_flag | |
9617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9618 else | |
9619 ac_cpp_err= | |
9620 fi | |
9621 else | |
9622 ac_cpp_err=yes | |
9623 fi | |
9624 if test -z "$ac_cpp_err"; then | |
9625 ac_header_preproc=yes | |
9626 else | |
9627 echo "$as_me: failed program was:" >&5 | |
9628 sed 's/^/| /' conftest.$ac_ext >&5 | |
9629 | |
9630 ac_header_preproc=no | |
9631 fi | |
9632 rm -f conftest.err conftest.$ac_ext | |
9633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9634 echo "${ECHO_T}$ac_header_preproc" >&6 | |
9635 | |
9636 # So? What about this header? | |
9637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9638 yes:no: ) | |
9639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9643 ac_header_preproc=yes | |
9644 ;; | |
9645 no:yes:* ) | |
9646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9658 ( | |
9659 cat <<\_ASBOX | |
9660 ## ------------------------------------------ ## | |
9661 ## Report this to the AC_PACKAGE_NAME lists. ## | |
9662 ## ------------------------------------------ ## | |
9663 _ASBOX | |
9664 ) | | |
9665 sed "s/^/$as_me: WARNING: /" >&2 | |
9666 ;; | |
9667 esac | |
9668 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9670 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9671 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9672 else | |
9673 eval "$as_ac_Header=\$ac_header_preproc" | |
9674 fi | |
9675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9677 | |
9678 fi | |
9679 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9680 cat >>confdefs.h <<_ACEOF | |
9681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9682 _ACEOF | |
9683 | |
9684 fi | |
9685 | |
5676 done | 9686 done |
5677 | 9687 |
5678 | 9688 |
5679 if test ! "$enable_xim" = "no"; then | 9689 if test ! "$enable_xim" = "no"; then |
5680 echo $ac_n "checking for XIMText in X11/Xlib.h""... $ac_c" 1>&6 | 9690 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
5681 echo "configure:5682: checking for XIMText in X11/Xlib.h" >&5 | 9691 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6 |
5682 cat > conftest.$ac_ext <<EOF | 9692 cat >conftest.$ac_ext <<_ACEOF |
5683 #line 5684 "configure" | 9693 /* confdefs.h. */ |
5684 #include "confdefs.h" | 9694 _ACEOF |
9695 cat confdefs.h >>conftest.$ac_ext | |
9696 cat >>conftest.$ac_ext <<_ACEOF | |
9697 /* end confdefs.h. */ | |
5685 #include <X11/Xlib.h> | 9698 #include <X11/Xlib.h> |
5686 EOF | 9699 _ACEOF |
5687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 9700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5688 egrep "XIMText" >/dev/null 2>&1; then | 9701 $EGREP "XIMText" >/dev/null 2>&1; then |
5689 rm -rf conftest* | 9702 echo "$as_me:$LINENO: result: yes" >&5 |
5690 echo "$ac_t""yes" 1>&6 | 9703 echo "${ECHO_T}yes" >&6 |
5691 else | 9704 else |
5692 rm -rf conftest* | 9705 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
5693 echo "$ac_t""no; xim has been disabled" 1>&6; enable_xim = "no" | 9706 echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no" |
5694 fi | 9707 fi |
5695 rm -f conftest* | 9708 rm -f conftest* |
5696 | 9709 |
5697 fi | 9710 fi |
5698 CPPFLAGS=$cppflags_save | 9711 CPPFLAGS=$cppflags_save |
5699 | 9712 |
5700 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ | 9713 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
5701 -a "x$GUITYPE" != "xNONE" ; then | 9714 -a "x$GUITYPE" != "xNONE" ; then |
5702 echo "$ac_t""X GUI selected; xim has been enabled" 1>&6 | 9715 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
9716 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6 | |
5703 enable_xim="yes" | 9717 enable_xim="yes" |
5704 fi | 9718 fi |
5705 fi | 9719 fi |
5706 | 9720 |
5707 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then | 9721 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
5708 cppflags_save=$CPPFLAGS | 9722 cppflags_save=$CPPFLAGS |
5709 CPPFLAGS="$CPPFLAGS $X_CFLAGS" | 9723 CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
5710 for ac_hdr in X11/Xmu/Editres.h | 9724 |
9725 for ac_header in X11/Xmu/Editres.h | |
5711 do | 9726 do |
5712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 9727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 9728 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5714 echo "configure:5715: checking for $ac_hdr" >&5 | 9729 echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 9730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5716 echo $ac_n "(cached) $ac_c" 1>&6 | 9731 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5717 else | 9732 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5718 cat > conftest.$ac_ext <<EOF | 9733 fi |
5719 #line 5720 "configure" | 9734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5720 #include "confdefs.h" | 9735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5721 #include <$ac_hdr> | 9736 else |
5722 EOF | 9737 # Is the header compilable? |
5723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9738 echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5724 { (eval echo configure:5725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
5725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 9740 cat >conftest.$ac_ext <<_ACEOF |
5726 if test -z "$ac_err"; then | 9741 /* confdefs.h. */ |
5727 rm -rf conftest* | 9742 _ACEOF |
5728 eval "ac_cv_header_$ac_safe=yes" | 9743 cat confdefs.h >>conftest.$ac_ext |
5729 else | 9744 cat >>conftest.$ac_ext <<_ACEOF |
5730 echo "$ac_err" >&5 | 9745 /* end confdefs.h. */ |
5731 echo "configure: failed program was:" >&5 | 9746 $ac_includes_default |
5732 cat conftest.$ac_ext >&5 | 9747 #include <$ac_header> |
5733 rm -rf conftest* | 9748 _ACEOF |
5734 eval "ac_cv_header_$ac_safe=no" | 9749 rm -f conftest.$ac_objext |
5735 fi | 9750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5736 rm -f conftest* | 9751 (eval $ac_compile) 2>conftest.er1 |
5737 fi | 9752 ac_status=$? |
5738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 9753 grep -v '^ *+' conftest.er1 >conftest.err |
5739 echo "$ac_t""yes" 1>&6 | 9754 rm -f conftest.er1 |
5740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 9755 cat conftest.err >&5 |
5741 cat >> confdefs.h <<EOF | 9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5742 #define $ac_tr_hdr 1 | 9757 (exit $ac_status); } && |
5743 EOF | 9758 { ac_try='test -z "$ac_c_werror_flag" |
5744 | 9759 || test ! -s conftest.err' |
5745 else | 9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5746 echo "$ac_t""no" 1>&6 | 9761 (eval $ac_try) 2>&5 |
5747 fi | 9762 ac_status=$? |
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9764 (exit $ac_status); }; } && | |
9765 { ac_try='test -s conftest.$ac_objext' | |
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9767 (eval $ac_try) 2>&5 | |
9768 ac_status=$? | |
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9770 (exit $ac_status); }; }; then | |
9771 ac_header_compiler=yes | |
9772 else | |
9773 echo "$as_me: failed program was:" >&5 | |
9774 sed 's/^/| /' conftest.$ac_ext >&5 | |
9775 | |
9776 ac_header_compiler=no | |
9777 fi | |
9778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9780 echo "${ECHO_T}$ac_header_compiler" >&6 | |
9781 | |
9782 # Is the header present? | |
9783 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9785 cat >conftest.$ac_ext <<_ACEOF | |
9786 /* confdefs.h. */ | |
9787 _ACEOF | |
9788 cat confdefs.h >>conftest.$ac_ext | |
9789 cat >>conftest.$ac_ext <<_ACEOF | |
9790 /* end confdefs.h. */ | |
9791 #include <$ac_header> | |
9792 _ACEOF | |
9793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9795 ac_status=$? | |
9796 grep -v '^ *+' conftest.er1 >conftest.err | |
9797 rm -f conftest.er1 | |
9798 cat conftest.err >&5 | |
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9800 (exit $ac_status); } >/dev/null; then | |
9801 if test -s conftest.err; then | |
9802 ac_cpp_err=$ac_c_preproc_warn_flag | |
9803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9804 else | |
9805 ac_cpp_err= | |
9806 fi | |
9807 else | |
9808 ac_cpp_err=yes | |
9809 fi | |
9810 if test -z "$ac_cpp_err"; then | |
9811 ac_header_preproc=yes | |
9812 else | |
9813 echo "$as_me: failed program was:" >&5 | |
9814 sed 's/^/| /' conftest.$ac_ext >&5 | |
9815 | |
9816 ac_header_preproc=no | |
9817 fi | |
9818 rm -f conftest.err conftest.$ac_ext | |
9819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9820 echo "${ECHO_T}$ac_header_preproc" >&6 | |
9821 | |
9822 # So? What about this header? | |
9823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9824 yes:no: ) | |
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9829 ac_header_preproc=yes | |
9830 ;; | |
9831 no:yes:* ) | |
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9844 ( | |
9845 cat <<\_ASBOX | |
9846 ## ------------------------------------------ ## | |
9847 ## Report this to the AC_PACKAGE_NAME lists. ## | |
9848 ## ------------------------------------------ ## | |
9849 _ASBOX | |
9850 ) | | |
9851 sed "s/^/$as_me: WARNING: /" >&2 | |
9852 ;; | |
9853 esac | |
9854 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9856 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9857 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9858 else | |
9859 eval "$as_ac_Header=\$ac_header_preproc" | |
9860 fi | |
9861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9863 | |
9864 fi | |
9865 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9866 cat >>confdefs.h <<_ACEOF | |
9867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9868 _ACEOF | |
9869 | |
9870 fi | |
9871 | |
5748 done | 9872 done |
5749 | 9873 |
5750 CPPFLAGS=$cppflags_save | 9874 CPPFLAGS=$cppflags_save |
5751 fi | 9875 fi |
5752 | 9876 |
5753 if test -z "$SKIP_MOTIF"; then | 9877 if test -z "$SKIP_MOTIF"; then |
5754 cppflags_save=$CPPFLAGS | 9878 cppflags_save=$CPPFLAGS |
5755 CPPFLAGS="$CPPFLAGS $X_CFLAGS" | 9879 CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
5756 for ac_hdr in Xm/Xm.h Xm/XpmP.h | 9880 |
9881 | |
9882 for ac_header in Xm/Xm.h Xm/XpmP.h | |
5757 do | 9883 do |
5758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 9884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 9885 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5760 echo "configure:5761: checking for $ac_hdr" >&5 | 9886 echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 9887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5762 echo $ac_n "(cached) $ac_c" 1>&6 | 9888 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5763 else | 9889 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5764 cat > conftest.$ac_ext <<EOF | 9890 fi |
5765 #line 5766 "configure" | 9891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5766 #include "confdefs.h" | 9892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5767 #include <$ac_hdr> | 9893 else |
5768 EOF | 9894 # Is the header compilable? |
5769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9895 echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5770 { (eval echo configure:5771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
5771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 9897 cat >conftest.$ac_ext <<_ACEOF |
5772 if test -z "$ac_err"; then | 9898 /* confdefs.h. */ |
5773 rm -rf conftest* | 9899 _ACEOF |
5774 eval "ac_cv_header_$ac_safe=yes" | 9900 cat confdefs.h >>conftest.$ac_ext |
5775 else | 9901 cat >>conftest.$ac_ext <<_ACEOF |
5776 echo "$ac_err" >&5 | 9902 /* end confdefs.h. */ |
5777 echo "configure: failed program was:" >&5 | 9903 $ac_includes_default |
5778 cat conftest.$ac_ext >&5 | 9904 #include <$ac_header> |
5779 rm -rf conftest* | 9905 _ACEOF |
5780 eval "ac_cv_header_$ac_safe=no" | 9906 rm -f conftest.$ac_objext |
5781 fi | 9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5782 rm -f conftest* | 9908 (eval $ac_compile) 2>conftest.er1 |
5783 fi | 9909 ac_status=$? |
5784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 9910 grep -v '^ *+' conftest.er1 >conftest.err |
5785 echo "$ac_t""yes" 1>&6 | 9911 rm -f conftest.er1 |
5786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 9912 cat conftest.err >&5 |
5787 cat >> confdefs.h <<EOF | 9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5788 #define $ac_tr_hdr 1 | 9914 (exit $ac_status); } && |
5789 EOF | 9915 { ac_try='test -z "$ac_c_werror_flag" |
5790 | 9916 || test ! -s conftest.err' |
5791 else | 9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5792 echo "$ac_t""no" 1>&6 | 9918 (eval $ac_try) 2>&5 |
5793 fi | 9919 ac_status=$? |
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9921 (exit $ac_status); }; } && | |
9922 { ac_try='test -s conftest.$ac_objext' | |
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9924 (eval $ac_try) 2>&5 | |
9925 ac_status=$? | |
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9927 (exit $ac_status); }; }; then | |
9928 ac_header_compiler=yes | |
9929 else | |
9930 echo "$as_me: failed program was:" >&5 | |
9931 sed 's/^/| /' conftest.$ac_ext >&5 | |
9932 | |
9933 ac_header_compiler=no | |
9934 fi | |
9935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9937 echo "${ECHO_T}$ac_header_compiler" >&6 | |
9938 | |
9939 # Is the header present? | |
9940 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9942 cat >conftest.$ac_ext <<_ACEOF | |
9943 /* confdefs.h. */ | |
9944 _ACEOF | |
9945 cat confdefs.h >>conftest.$ac_ext | |
9946 cat >>conftest.$ac_ext <<_ACEOF | |
9947 /* end confdefs.h. */ | |
9948 #include <$ac_header> | |
9949 _ACEOF | |
9950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9952 ac_status=$? | |
9953 grep -v '^ *+' conftest.er1 >conftest.err | |
9954 rm -f conftest.er1 | |
9955 cat conftest.err >&5 | |
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9957 (exit $ac_status); } >/dev/null; then | |
9958 if test -s conftest.err; then | |
9959 ac_cpp_err=$ac_c_preproc_warn_flag | |
9960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9961 else | |
9962 ac_cpp_err= | |
9963 fi | |
9964 else | |
9965 ac_cpp_err=yes | |
9966 fi | |
9967 if test -z "$ac_cpp_err"; then | |
9968 ac_header_preproc=yes | |
9969 else | |
9970 echo "$as_me: failed program was:" >&5 | |
9971 sed 's/^/| /' conftest.$ac_ext >&5 | |
9972 | |
9973 ac_header_preproc=no | |
9974 fi | |
9975 rm -f conftest.err conftest.$ac_ext | |
9976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9977 echo "${ECHO_T}$ac_header_preproc" >&6 | |
9978 | |
9979 # So? What about this header? | |
9980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9981 yes:no: ) | |
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9986 ac_header_preproc=yes | |
9987 ;; | |
9988 no:yes:* ) | |
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10001 ( | |
10002 cat <<\_ASBOX | |
10003 ## ------------------------------------------ ## | |
10004 ## Report this to the AC_PACKAGE_NAME lists. ## | |
10005 ## ------------------------------------------ ## | |
10006 _ASBOX | |
10007 ) | | |
10008 sed "s/^/$as_me: WARNING: /" >&2 | |
10009 ;; | |
10010 esac | |
10011 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10013 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10014 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10015 else | |
10016 eval "$as_ac_Header=\$ac_header_preproc" | |
10017 fi | |
10018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10020 | |
10021 fi | |
10022 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10023 cat >>confdefs.h <<_ACEOF | |
10024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10025 _ACEOF | |
10026 | |
10027 fi | |
10028 | |
5794 done | 10029 done |
5795 | 10030 |
5796 CPPFLAGS=$cppflags_save | 10031 CPPFLAGS=$cppflags_save |
5797 fi | 10032 fi |
5798 | 10033 |
5799 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then | 10034 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
5800 echo "$ac_t""no GUI selected; xim has been disabled" 1>&6 | 10035 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
10036 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6 | |
5801 enable_xim="no" | 10037 enable_xim="no" |
5802 fi | 10038 fi |
5803 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then | 10039 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
5804 echo "$ac_t""no GUI selected; fontset has been disabled" 1>&6 | 10040 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
10041 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6 | |
5805 enable_fontset="no" | 10042 enable_fontset="no" |
5806 fi | 10043 fi |
5807 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then | 10044 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then |
5808 echo "$ac_t""GTK+ 2 GUI selected; fontset has been disabled" 1>&6 | 10045 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
10046 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6 | |
5809 enable_fontset="no" | 10047 enable_fontset="no" |
5810 fi | 10048 fi |
5811 | 10049 if test "x$GUITYPE:$enable_fontset" = "xKDE:yes"; then |
5812 if test -z "$SKIP_BEOS"; then | 10050 echo "$as_me:$LINENO: result: KDE GUI selected; fontset has been disabled" >&5 |
5813 GUITYPE=BEOSGUI | 10051 echo "${ECHO_T}KDE GUI selected; fontset has been disabled" >&6 |
10052 enable_fontset="no" | |
5814 fi | 10053 fi |
5815 | 10054 |
5816 if test -z "$SKIP_PHOTON"; then | 10055 if test -z "$SKIP_PHOTON"; then |
5817 GUITYPE=PHOTONGUI | 10056 GUITYPE=PHOTONGUI |
5818 fi | 10057 fi |
5821 | 10060 |
5822 | 10061 |
5823 | 10062 |
5824 | 10063 |
5825 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then | 10064 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
5826 { echo "configure: error: cannot use workshop without Motif" 1>&2; exit 1; } | 10065 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
10066 echo "$as_me: error: cannot use workshop without Motif" >&2;} | |
10067 { (exit 1); exit 1; }; } | |
5827 fi | 10068 fi |
5828 | 10069 |
5829 if test "$enable_xim" = "yes"; then | 10070 if test "$enable_xim" = "yes"; then |
5830 cat >> confdefs.h <<\EOF | 10071 cat >>confdefs.h <<\_ACEOF |
5831 #define FEAT_XIM 1 | 10072 #define FEAT_XIM 1 |
5832 EOF | 10073 _ACEOF |
5833 | 10074 |
5834 fi | 10075 fi |
5835 if test "$enable_fontset" = "yes"; then | 10076 if test "$enable_fontset" = "yes"; then |
5836 cat >> confdefs.h <<\EOF | 10077 cat >>confdefs.h <<\_ACEOF |
5837 #define FEAT_XFONTSET 1 | 10078 #define FEAT_XFONTSET 1 |
5838 EOF | 10079 _ACEOF |
5839 | 10080 |
5840 fi | 10081 fi |
5841 | 10082 |
5842 | 10083 |
5843 | 10084 |
5844 | 10085 |
5845 if test "$enable_hangulinput" = "yes"; then | 10086 if test "$enable_hangulinput" = "yes"; then |
5846 if test "x$GUITYPE" = "xNONE"; then | 10087 if test "x$GUITYPE" = "xNONE"; then |
5847 echo "$ac_t""no GUI selected; hangul input has been disabled" 1>&6 | 10088 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
10089 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6 | |
5848 enable_hangulinput=no | 10090 enable_hangulinput=no |
5849 else | 10091 else |
5850 cat >> confdefs.h <<\EOF | 10092 cat >>confdefs.h <<\_ACEOF |
5851 #define FEAT_HANGULIN 1 | 10093 #define FEAT_HANGULIN 1 |
5852 EOF | 10094 _ACEOF |
5853 | 10095 |
5854 HANGULIN_SRC=hangulin.c | 10096 HANGULIN_SRC=hangulin.c |
5855 | 10097 |
5856 HANGULIN_OBJ=objects/hangulin.o | 10098 HANGULIN_OBJ=objects/hangulin.o |
5857 | 10099 |
5858 fi | 10100 fi |
5859 fi | 10101 fi |
5860 | 10102 |
5861 | 10103 |
5862 echo $ac_n "checking quality of toupper""... $ac_c" 1>&6 | 10104 echo "$as_me:$LINENO: checking quality of toupper" >&5 |
5863 echo "configure:5864: checking quality of toupper" >&5 | 10105 echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6 |
5864 if test "$cross_compiling" = yes; then | 10106 if test "$cross_compiling" = yes; then |
5865 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } | 10107 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
5866 else | 10108 echo "$as_me: error: failed to compile test program" >&2;} |
5867 cat > conftest.$ac_ext <<EOF | 10109 { (exit 1); exit 1; }; } |
5868 #line 5869 "configure" | 10110 else |
5869 #include "confdefs.h" | 10111 cat >conftest.$ac_ext <<_ACEOF |
10112 /* confdefs.h. */ | |
10113 _ACEOF | |
10114 cat confdefs.h >>conftest.$ac_ext | |
10115 cat >>conftest.$ac_ext <<_ACEOF | |
10116 /* end confdefs.h. */ | |
5870 #include <ctype.h> | 10117 #include <ctype.h> |
5871 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } | 10118 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
5872 EOF | 10119 _ACEOF |
5873 if { (eval echo configure:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 10120 rm -f conftest$ac_exeext |
5874 then | 10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5875 cat >> confdefs.h <<\EOF | 10122 (eval $ac_link) 2>&5 |
10123 ac_status=$? | |
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10127 (eval $ac_try) 2>&5 | |
10128 ac_status=$? | |
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10130 (exit $ac_status); }; }; then | |
10131 cat >>confdefs.h <<\_ACEOF | |
5876 #define BROKEN_TOUPPER 1 | 10132 #define BROKEN_TOUPPER 1 |
5877 EOF | 10133 _ACEOF |
5878 echo "$ac_t""bad" 1>&6 | 10134 echo "$as_me:$LINENO: result: bad" >&5 |
5879 else | 10135 echo "${ECHO_T}bad" >&6 |
5880 echo "configure: failed program was:" >&5 | 10136 else |
5881 cat conftest.$ac_ext >&5 | 10137 echo "$as_me: program exited with status $ac_status" >&5 |
5882 rm -fr conftest* | 10138 echo "$as_me: failed program was:" >&5 |
5883 echo "$ac_t""good" 1>&6 | 10139 sed 's/^/| /' conftest.$ac_ext >&5 |
5884 fi | 10140 |
5885 rm -fr conftest* | 10141 ( exit $ac_status ) |
5886 fi | 10142 echo "$as_me:$LINENO: result: good" >&5 |
5887 | 10143 echo "${ECHO_T}good" >&6 |
5888 | 10144 fi |
5889 echo $ac_n "checking whether __DATE__ and __TIME__ work""... $ac_c" 1>&6 | 10145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5890 echo "configure:5891: checking whether __DATE__ and __TIME__ work" >&5 | 10146 fi |
5891 cat > conftest.$ac_ext <<EOF | 10147 |
5892 #line 5893 "configure" | 10148 echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
5893 #include "confdefs.h" | 10149 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6 |
5894 | 10150 cat >conftest.$ac_ext <<_ACEOF |
5895 int main() { | 10151 /* confdefs.h. */ |
10152 _ACEOF | |
10153 cat confdefs.h >>conftest.$ac_ext | |
10154 cat >>conftest.$ac_ext <<_ACEOF | |
10155 /* end confdefs.h. */ | |
10156 | |
10157 int | |
10158 main () | |
10159 { | |
5896 printf("(" __DATE__ " " __TIME__ ")"); | 10160 printf("(" __DATE__ " " __TIME__ ")"); |
5897 ; return 0; } | 10161 ; |
5898 EOF | 10162 return 0; |
5899 if { (eval echo configure:5900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 10163 } |
5900 rm -rf conftest* | 10164 _ACEOF |
5901 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 10165 rm -f conftest.$ac_objext |
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10167 (eval $ac_compile) 2>conftest.er1 | |
10168 ac_status=$? | |
10169 grep -v '^ *+' conftest.er1 >conftest.err | |
10170 rm -f conftest.er1 | |
10171 cat conftest.err >&5 | |
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10173 (exit $ac_status); } && | |
10174 { ac_try='test -z "$ac_c_werror_flag" | |
10175 || test ! -s conftest.err' | |
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10177 (eval $ac_try) 2>&5 | |
10178 ac_status=$? | |
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10180 (exit $ac_status); }; } && | |
10181 { ac_try='test -s conftest.$ac_objext' | |
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10183 (eval $ac_try) 2>&5 | |
10184 ac_status=$? | |
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10186 (exit $ac_status); }; }; then | |
10187 echo "$as_me:$LINENO: result: yes" >&5 | |
10188 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
5902 #define HAVE_DATE_TIME 1 | 10189 #define HAVE_DATE_TIME 1 |
5903 EOF | 10190 _ACEOF |
5904 | 10191 |
5905 else | 10192 else |
5906 echo "configure: failed program was:" >&5 | 10193 echo "$as_me: failed program was:" >&5 |
5907 cat conftest.$ac_ext >&5 | 10194 sed 's/^/| /' conftest.$ac_ext >&5 |
5908 rm -rf conftest* | 10195 |
5909 echo "$ac_t""no" 1>&6 | 10196 echo "$as_me:$LINENO: result: no" >&5 |
5910 fi | 10197 echo "${ECHO_T}no" >&6 |
5911 rm -f conftest* | 10198 fi |
5912 | 10199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5913 ac_safe=`echo "elf.h" | sed 'y%./+-%__p_%'` | 10200 |
5914 echo $ac_n "checking for elf.h""... $ac_c" 1>&6 | 10201 if test "${ac_cv_header_elf_h+set}" = set; then |
5915 echo "configure:5916: checking for elf.h" >&5 | 10202 echo "$as_me:$LINENO: checking for elf.h" >&5 |
5916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 10203 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
5917 echo $ac_n "(cached) $ac_c" 1>&6 | 10204 if test "${ac_cv_header_elf_h+set}" = set; then |
5918 else | 10205 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5919 cat > conftest.$ac_ext <<EOF | 10206 fi |
5920 #line 5921 "configure" | 10207 echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
5921 #include "confdefs.h" | 10208 echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
10209 else | |
10210 # Is the header compilable? | |
10211 echo "$as_me:$LINENO: checking elf.h usability" >&5 | |
10212 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6 | |
10213 cat >conftest.$ac_ext <<_ACEOF | |
10214 /* confdefs.h. */ | |
10215 _ACEOF | |
10216 cat confdefs.h >>conftest.$ac_ext | |
10217 cat >>conftest.$ac_ext <<_ACEOF | |
10218 /* end confdefs.h. */ | |
10219 $ac_includes_default | |
5922 #include <elf.h> | 10220 #include <elf.h> |
5923 EOF | 10221 _ACEOF |
5924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10222 rm -f conftest.$ac_objext |
5925 { (eval echo configure:5926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 10224 (eval $ac_compile) 2>conftest.er1 |
5927 if test -z "$ac_err"; then | 10225 ac_status=$? |
5928 rm -rf conftest* | 10226 grep -v '^ *+' conftest.er1 >conftest.err |
5929 eval "ac_cv_header_$ac_safe=yes" | 10227 rm -f conftest.er1 |
5930 else | 10228 cat conftest.err >&5 |
5931 echo "$ac_err" >&5 | 10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5932 echo "configure: failed program was:" >&5 | 10230 (exit $ac_status); } && |
5933 cat conftest.$ac_ext >&5 | 10231 { ac_try='test -z "$ac_c_werror_flag" |
5934 rm -rf conftest* | 10232 || test ! -s conftest.err' |
5935 eval "ac_cv_header_$ac_safe=no" | 10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5936 fi | 10234 (eval $ac_try) 2>&5 |
5937 rm -f conftest* | 10235 ac_status=$? |
5938 fi | 10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10237 (exit $ac_status); }; } && |
5940 echo "$ac_t""yes" 1>&6 | 10238 { ac_try='test -s conftest.$ac_objext' |
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10240 (eval $ac_try) 2>&5 | |
10241 ac_status=$? | |
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10243 (exit $ac_status); }; }; then | |
10244 ac_header_compiler=yes | |
10245 else | |
10246 echo "$as_me: failed program was:" >&5 | |
10247 sed 's/^/| /' conftest.$ac_ext >&5 | |
10248 | |
10249 ac_header_compiler=no | |
10250 fi | |
10251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10253 echo "${ECHO_T}$ac_header_compiler" >&6 | |
10254 | |
10255 # Is the header present? | |
10256 echo "$as_me:$LINENO: checking elf.h presence" >&5 | |
10257 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6 | |
10258 cat >conftest.$ac_ext <<_ACEOF | |
10259 /* confdefs.h. */ | |
10260 _ACEOF | |
10261 cat confdefs.h >>conftest.$ac_ext | |
10262 cat >>conftest.$ac_ext <<_ACEOF | |
10263 /* end confdefs.h. */ | |
10264 #include <elf.h> | |
10265 _ACEOF | |
10266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10268 ac_status=$? | |
10269 grep -v '^ *+' conftest.er1 >conftest.err | |
10270 rm -f conftest.er1 | |
10271 cat conftest.err >&5 | |
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10273 (exit $ac_status); } >/dev/null; then | |
10274 if test -s conftest.err; then | |
10275 ac_cpp_err=$ac_c_preproc_warn_flag | |
10276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10277 else | |
10278 ac_cpp_err= | |
10279 fi | |
10280 else | |
10281 ac_cpp_err=yes | |
10282 fi | |
10283 if test -z "$ac_cpp_err"; then | |
10284 ac_header_preproc=yes | |
10285 else | |
10286 echo "$as_me: failed program was:" >&5 | |
10287 sed 's/^/| /' conftest.$ac_ext >&5 | |
10288 | |
10289 ac_header_preproc=no | |
10290 fi | |
10291 rm -f conftest.err conftest.$ac_ext | |
10292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10293 echo "${ECHO_T}$ac_header_preproc" >&6 | |
10294 | |
10295 # So? What about this header? | |
10296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10297 yes:no: ) | |
10298 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10299 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10300 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 | |
10301 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} | |
10302 ac_header_preproc=yes | |
10303 ;; | |
10304 no:yes:* ) | |
10305 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 | |
10306 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} | |
10307 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 | |
10308 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} | |
10309 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 | |
10310 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} | |
10311 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 | |
10312 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
10313 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 | |
10314 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} | |
10315 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 | |
10316 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} | |
10317 ( | |
10318 cat <<\_ASBOX | |
10319 ## ------------------------------------------ ## | |
10320 ## Report this to the AC_PACKAGE_NAME lists. ## | |
10321 ## ------------------------------------------ ## | |
10322 _ASBOX | |
10323 ) | | |
10324 sed "s/^/$as_me: WARNING: /" >&2 | |
10325 ;; | |
10326 esac | |
10327 echo "$as_me:$LINENO: checking for elf.h" >&5 | |
10328 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 | |
10329 if test "${ac_cv_header_elf_h+set}" = set; then | |
10330 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10331 else | |
10332 ac_cv_header_elf_h=$ac_header_preproc | |
10333 fi | |
10334 echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 | |
10335 echo "${ECHO_T}$ac_cv_header_elf_h" >&6 | |
10336 | |
10337 fi | |
10338 if test $ac_cv_header_elf_h = yes; then | |
5941 HAS_ELF=1 | 10339 HAS_ELF=1 |
5942 else | 10340 fi |
5943 echo "$ac_t""no" 1>&6 | 10341 |
5944 fi | |
5945 | 10342 |
5946 if test "$HAS_ELF" = 1; then | 10343 if test "$HAS_ELF" = 1; then |
5947 echo $ac_n "checking for main in -lelf""... $ac_c" 1>&6 | 10344 |
5948 echo "configure:5949: checking for main in -lelf" >&5 | 10345 echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
5949 ac_lib_var=`echo elf'_'main | sed 'y%./+-%__p_%'` | 10346 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6 |
5950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10347 if test "${ac_cv_lib_elf_main+set}" = set; then |
5951 echo $ac_n "(cached) $ac_c" 1>&6 | 10348 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5952 else | 10349 else |
5953 ac_save_LIBS="$LIBS" | 10350 ac_check_lib_save_LIBS=$LIBS |
5954 LIBS="-lelf $LIBS" | 10351 LIBS="-lelf $LIBS" |
5955 cat > conftest.$ac_ext <<EOF | 10352 cat >conftest.$ac_ext <<_ACEOF |
5956 #line 5957 "configure" | 10353 /* confdefs.h. */ |
5957 #include "confdefs.h" | 10354 _ACEOF |
5958 | 10355 cat confdefs.h >>conftest.$ac_ext |
5959 int main() { | 10356 cat >>conftest.$ac_ext <<_ACEOF |
5960 main() | 10357 /* end confdefs.h. */ |
5961 ; return 0; } | 10358 |
5962 EOF | 10359 |
5963 if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10360 int |
5964 rm -rf conftest* | 10361 main () |
5965 eval "ac_cv_lib_$ac_lib_var=yes" | 10362 { |
5966 else | 10363 main (); |
5967 echo "configure: failed program was:" >&5 | 10364 ; |
5968 cat conftest.$ac_ext >&5 | 10365 return 0; |
5969 rm -rf conftest* | 10366 } |
5970 eval "ac_cv_lib_$ac_lib_var=no" | 10367 _ACEOF |
5971 fi | 10368 rm -f conftest.$ac_objext conftest$ac_exeext |
5972 rm -f conftest* | 10369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5973 LIBS="$ac_save_LIBS" | 10370 (eval $ac_link) 2>conftest.er1 |
5974 | 10371 ac_status=$? |
5975 fi | 10372 grep -v '^ *+' conftest.er1 >conftest.err |
5976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10373 rm -f conftest.er1 |
5977 echo "$ac_t""yes" 1>&6 | 10374 cat conftest.err >&5 |
5978 ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5979 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 10376 (exit $ac_status); } && |
5980 cat >> confdefs.h <<EOF | 10377 { ac_try='test -z "$ac_c_werror_flag" |
5981 #define $ac_tr_lib 1 | 10378 || test ! -s conftest.err' |
5982 EOF | 10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10380 (eval $ac_try) 2>&5 | |
10381 ac_status=$? | |
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10383 (exit $ac_status); }; } && | |
10384 { ac_try='test -s conftest$ac_exeext' | |
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10386 (eval $ac_try) 2>&5 | |
10387 ac_status=$? | |
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10389 (exit $ac_status); }; }; then | |
10390 ac_cv_lib_elf_main=yes | |
10391 else | |
10392 echo "$as_me: failed program was:" >&5 | |
10393 sed 's/^/| /' conftest.$ac_ext >&5 | |
10394 | |
10395 ac_cv_lib_elf_main=no | |
10396 fi | |
10397 rm -f conftest.err conftest.$ac_objext \ | |
10398 conftest$ac_exeext conftest.$ac_ext | |
10399 LIBS=$ac_check_lib_save_LIBS | |
10400 fi | |
10401 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 | |
10402 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6 | |
10403 if test $ac_cv_lib_elf_main = yes; then | |
10404 cat >>confdefs.h <<_ACEOF | |
10405 #define HAVE_LIBELF 1 | |
10406 _ACEOF | |
5983 | 10407 |
5984 LIBS="-lelf $LIBS" | 10408 LIBS="-lelf $LIBS" |
5985 | 10409 |
5986 else | 10410 fi |
5987 echo "$ac_t""no" 1>&6 | 10411 |
5988 fi | 10412 fi |
5989 | 10413 |
5990 fi | 10414 |
10415 | |
10416 | |
10417 | |
5991 | 10418 |
5992 ac_header_dirent=no | 10419 ac_header_dirent=no |
5993 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | 10420 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
5994 do | 10421 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
5995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10422 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
5996 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | 10423 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
5997 echo "configure:5998: checking for $ac_hdr that defines DIR" >&5 | 10424 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5998 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then | 10425 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5999 echo $ac_n "(cached) $ac_c" 1>&6 | 10426 else |
6000 else | 10427 cat >conftest.$ac_ext <<_ACEOF |
6001 cat > conftest.$ac_ext <<EOF | 10428 /* confdefs.h. */ |
6002 #line 6003 "configure" | 10429 _ACEOF |
6003 #include "confdefs.h" | 10430 cat confdefs.h >>conftest.$ac_ext |
10431 cat >>conftest.$ac_ext <<_ACEOF | |
10432 /* end confdefs.h. */ | |
6004 #include <sys/types.h> | 10433 #include <sys/types.h> |
6005 #include <$ac_hdr> | 10434 #include <$ac_hdr> |
6006 int main() { | 10435 |
6007 DIR *dirp = 0; | 10436 int |
6008 ; return 0; } | 10437 main () |
6009 EOF | 10438 { |
6010 if { (eval echo configure:6011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 10439 if ((DIR *) 0) |
6011 rm -rf conftest* | 10440 return 0; |
6012 eval "ac_cv_header_dirent_$ac_safe=yes" | 10441 ; |
6013 else | 10442 return 0; |
6014 echo "configure: failed program was:" >&5 | 10443 } |
6015 cat conftest.$ac_ext >&5 | 10444 _ACEOF |
6016 rm -rf conftest* | 10445 rm -f conftest.$ac_objext |
6017 eval "ac_cv_header_dirent_$ac_safe=no" | 10446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6018 fi | 10447 (eval $ac_compile) 2>conftest.er1 |
6019 rm -f conftest* | 10448 ac_status=$? |
6020 fi | 10449 grep -v '^ *+' conftest.er1 >conftest.err |
6021 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then | 10450 rm -f conftest.er1 |
6022 echo "$ac_t""yes" 1>&6 | 10451 cat conftest.err >&5 |
6023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6024 cat >> confdefs.h <<EOF | 10453 (exit $ac_status); } && |
6025 #define $ac_tr_hdr 1 | 10454 { ac_try='test -z "$ac_c_werror_flag" |
6026 EOF | 10455 || test ! -s conftest.err' |
6027 ac_header_dirent=$ac_hdr; break | 10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6028 else | 10457 (eval $ac_try) 2>&5 |
6029 echo "$ac_t""no" 1>&6 | 10458 ac_status=$? |
6030 fi | 10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10460 (exit $ac_status); }; } && | |
10461 { ac_try='test -s conftest.$ac_objext' | |
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10463 (eval $ac_try) 2>&5 | |
10464 ac_status=$? | |
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10466 (exit $ac_status); }; }; then | |
10467 eval "$as_ac_Header=yes" | |
10468 else | |
10469 echo "$as_me: failed program was:" >&5 | |
10470 sed 's/^/| /' conftest.$ac_ext >&5 | |
10471 | |
10472 eval "$as_ac_Header=no" | |
10473 fi | |
10474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10475 fi | |
10476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10478 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10479 cat >>confdefs.h <<_ACEOF | |
10480 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
10481 _ACEOF | |
10482 | |
10483 ac_header_dirent=$ac_hdr; break | |
10484 fi | |
10485 | |
6031 done | 10486 done |
6032 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 10487 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
6033 if test $ac_header_dirent = dirent.h; then | 10488 if test $ac_header_dirent = dirent.h; then |
6034 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | 10489 echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6035 echo "configure:6036: checking for opendir in -ldir" >&5 | 10490 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
6036 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` | 10491 if test "${ac_cv_search_opendir+set}" = set; then |
6037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10492 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6038 echo $ac_n "(cached) $ac_c" 1>&6 | 10493 else |
6039 else | 10494 ac_func_search_save_LIBS=$LIBS |
6040 ac_save_LIBS="$LIBS" | 10495 ac_cv_search_opendir=no |
6041 LIBS="-ldir $LIBS" | 10496 cat >conftest.$ac_ext <<_ACEOF |
6042 cat > conftest.$ac_ext <<EOF | 10497 /* confdefs.h. */ |
6043 #line 6044 "configure" | 10498 _ACEOF |
6044 #include "confdefs.h" | 10499 cat confdefs.h >>conftest.$ac_ext |
10500 cat >>conftest.$ac_ext <<_ACEOF | |
10501 /* end confdefs.h. */ | |
10502 | |
6045 /* Override any gcc2 internal prototype to avoid an error. */ | 10503 /* Override any gcc2 internal prototype to avoid an error. */ |
10504 #ifdef __cplusplus | |
10505 extern "C" | |
10506 #endif | |
6046 /* We use char because int might match the return type of a gcc2 | 10507 /* We use char because int might match the return type of a gcc2 |
6047 builtin and then its argument prototype would still apply. */ | 10508 builtin and then its argument prototype would still apply. */ |
6048 char opendir(); | 10509 char opendir (); |
6049 | 10510 int |
6050 int main() { | 10511 main () |
6051 opendir() | 10512 { |
6052 ; return 0; } | 10513 opendir (); |
6053 EOF | 10514 ; |
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10515 return 0; |
6055 rm -rf conftest* | 10516 } |
6056 eval "ac_cv_lib_$ac_lib_var=yes" | 10517 _ACEOF |
6057 else | 10518 rm -f conftest.$ac_objext conftest$ac_exeext |
6058 echo "configure: failed program was:" >&5 | 10519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6059 cat conftest.$ac_ext >&5 | 10520 (eval $ac_link) 2>conftest.er1 |
6060 rm -rf conftest* | 10521 ac_status=$? |
6061 eval "ac_cv_lib_$ac_lib_var=no" | 10522 grep -v '^ *+' conftest.er1 >conftest.err |
6062 fi | 10523 rm -f conftest.er1 |
6063 rm -f conftest* | 10524 cat conftest.err >&5 |
6064 LIBS="$ac_save_LIBS" | 10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6065 | 10526 (exit $ac_status); } && |
6066 fi | 10527 { ac_try='test -z "$ac_c_werror_flag" |
6067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10528 || test ! -s conftest.err' |
6068 echo "$ac_t""yes" 1>&6 | 10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6069 LIBS="$LIBS -ldir" | 10530 (eval $ac_try) 2>&5 |
6070 else | 10531 ac_status=$? |
6071 echo "$ac_t""no" 1>&6 | 10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6072 fi | 10533 (exit $ac_status); }; } && |
6073 | 10534 { ac_try='test -s conftest$ac_exeext' |
6074 else | 10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6075 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | 10536 (eval $ac_try) 2>&5 |
6076 echo "configure:6077: checking for opendir in -lx" >&5 | 10537 ac_status=$? |
6077 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` | 10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10539 (exit $ac_status); }; }; then |
6079 echo $ac_n "(cached) $ac_c" 1>&6 | 10540 ac_cv_search_opendir="none required" |
6080 else | 10541 else |
6081 ac_save_LIBS="$LIBS" | 10542 echo "$as_me: failed program was:" >&5 |
6082 LIBS="-lx $LIBS" | 10543 sed 's/^/| /' conftest.$ac_ext >&5 |
6083 cat > conftest.$ac_ext <<EOF | 10544 |
6084 #line 6085 "configure" | 10545 fi |
6085 #include "confdefs.h" | 10546 rm -f conftest.err conftest.$ac_objext \ |
10547 conftest$ac_exeext conftest.$ac_ext | |
10548 if test "$ac_cv_search_opendir" = no; then | |
10549 for ac_lib in dir; do | |
10550 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10551 cat >conftest.$ac_ext <<_ACEOF | |
10552 /* confdefs.h. */ | |
10553 _ACEOF | |
10554 cat confdefs.h >>conftest.$ac_ext | |
10555 cat >>conftest.$ac_ext <<_ACEOF | |
10556 /* end confdefs.h. */ | |
10557 | |
6086 /* Override any gcc2 internal prototype to avoid an error. */ | 10558 /* Override any gcc2 internal prototype to avoid an error. */ |
10559 #ifdef __cplusplus | |
10560 extern "C" | |
10561 #endif | |
6087 /* We use char because int might match the return type of a gcc2 | 10562 /* We use char because int might match the return type of a gcc2 |
6088 builtin and then its argument prototype would still apply. */ | 10563 builtin and then its argument prototype would still apply. */ |
6089 char opendir(); | 10564 char opendir (); |
6090 | 10565 int |
6091 int main() { | 10566 main () |
6092 opendir() | 10567 { |
6093 ; return 0; } | 10568 opendir (); |
6094 EOF | 10569 ; |
6095 if { (eval echo configure:6096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10570 return 0; |
6096 rm -rf conftest* | 10571 } |
6097 eval "ac_cv_lib_$ac_lib_var=yes" | 10572 _ACEOF |
6098 else | 10573 rm -f conftest.$ac_objext conftest$ac_exeext |
6099 echo "configure: failed program was:" >&5 | 10574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6100 cat conftest.$ac_ext >&5 | 10575 (eval $ac_link) 2>conftest.er1 |
6101 rm -rf conftest* | 10576 ac_status=$? |
6102 eval "ac_cv_lib_$ac_lib_var=no" | 10577 grep -v '^ *+' conftest.er1 >conftest.err |
6103 fi | 10578 rm -f conftest.er1 |
6104 rm -f conftest* | 10579 cat conftest.err >&5 |
6105 LIBS="$ac_save_LIBS" | 10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6106 | 10581 (exit $ac_status); } && |
6107 fi | 10582 { ac_try='test -z "$ac_c_werror_flag" |
6108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10583 || test ! -s conftest.err' |
6109 echo "$ac_t""yes" 1>&6 | 10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6110 LIBS="$LIBS -lx" | 10585 (eval $ac_try) 2>&5 |
6111 else | 10586 ac_status=$? |
6112 echo "$ac_t""no" 1>&6 | 10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6113 fi | 10588 (exit $ac_status); }; } && |
6114 | 10589 { ac_try='test -s conftest$ac_exeext' |
6115 fi | 10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6116 | 10591 (eval $ac_try) 2>&5 |
6117 | 10592 ac_status=$? |
6118 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6119 echo "configure:6120: checking for ANSI C header files" >&5 | 10594 (exit $ac_status); }; }; then |
6120 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 10595 ac_cv_search_opendir="-l$ac_lib" |
6121 echo $ac_n "(cached) $ac_c" 1>&6 | 10596 break |
6122 else | 10597 else |
6123 cat > conftest.$ac_ext <<EOF | 10598 echo "$as_me: failed program was:" >&5 |
6124 #line 6125 "configure" | 10599 sed 's/^/| /' conftest.$ac_ext >&5 |
6125 #include "confdefs.h" | 10600 |
10601 fi | |
10602 rm -f conftest.err conftest.$ac_objext \ | |
10603 conftest$ac_exeext conftest.$ac_ext | |
10604 done | |
10605 fi | |
10606 LIBS=$ac_func_search_save_LIBS | |
10607 fi | |
10608 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
10609 echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
10610 if test "$ac_cv_search_opendir" != no; then | |
10611 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
10612 | |
10613 fi | |
10614 | |
10615 else | |
10616 echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
10617 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
10618 if test "${ac_cv_search_opendir+set}" = set; then | |
10619 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10620 else | |
10621 ac_func_search_save_LIBS=$LIBS | |
10622 ac_cv_search_opendir=no | |
10623 cat >conftest.$ac_ext <<_ACEOF | |
10624 /* confdefs.h. */ | |
10625 _ACEOF | |
10626 cat confdefs.h >>conftest.$ac_ext | |
10627 cat >>conftest.$ac_ext <<_ACEOF | |
10628 /* end confdefs.h. */ | |
10629 | |
10630 /* Override any gcc2 internal prototype to avoid an error. */ | |
10631 #ifdef __cplusplus | |
10632 extern "C" | |
10633 #endif | |
10634 /* We use char because int might match the return type of a gcc2 | |
10635 builtin and then its argument prototype would still apply. */ | |
10636 char opendir (); | |
10637 int | |
10638 main () | |
10639 { | |
10640 opendir (); | |
10641 ; | |
10642 return 0; | |
10643 } | |
10644 _ACEOF | |
10645 rm -f conftest.$ac_objext conftest$ac_exeext | |
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10647 (eval $ac_link) 2>conftest.er1 | |
10648 ac_status=$? | |
10649 grep -v '^ *+' conftest.er1 >conftest.err | |
10650 rm -f conftest.er1 | |
10651 cat conftest.err >&5 | |
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10653 (exit $ac_status); } && | |
10654 { ac_try='test -z "$ac_c_werror_flag" | |
10655 || test ! -s conftest.err' | |
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10657 (eval $ac_try) 2>&5 | |
10658 ac_status=$? | |
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10660 (exit $ac_status); }; } && | |
10661 { ac_try='test -s conftest$ac_exeext' | |
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10663 (eval $ac_try) 2>&5 | |
10664 ac_status=$? | |
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10666 (exit $ac_status); }; }; then | |
10667 ac_cv_search_opendir="none required" | |
10668 else | |
10669 echo "$as_me: failed program was:" >&5 | |
10670 sed 's/^/| /' conftest.$ac_ext >&5 | |
10671 | |
10672 fi | |
10673 rm -f conftest.err conftest.$ac_objext \ | |
10674 conftest$ac_exeext conftest.$ac_ext | |
10675 if test "$ac_cv_search_opendir" = no; then | |
10676 for ac_lib in x; do | |
10677 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10678 cat >conftest.$ac_ext <<_ACEOF | |
10679 /* confdefs.h. */ | |
10680 _ACEOF | |
10681 cat confdefs.h >>conftest.$ac_ext | |
10682 cat >>conftest.$ac_ext <<_ACEOF | |
10683 /* end confdefs.h. */ | |
10684 | |
10685 /* Override any gcc2 internal prototype to avoid an error. */ | |
10686 #ifdef __cplusplus | |
10687 extern "C" | |
10688 #endif | |
10689 /* We use char because int might match the return type of a gcc2 | |
10690 builtin and then its argument prototype would still apply. */ | |
10691 char opendir (); | |
10692 int | |
10693 main () | |
10694 { | |
10695 opendir (); | |
10696 ; | |
10697 return 0; | |
10698 } | |
10699 _ACEOF | |
10700 rm -f conftest.$ac_objext conftest$ac_exeext | |
10701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10702 (eval $ac_link) 2>conftest.er1 | |
10703 ac_status=$? | |
10704 grep -v '^ *+' conftest.er1 >conftest.err | |
10705 rm -f conftest.er1 | |
10706 cat conftest.err >&5 | |
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10708 (exit $ac_status); } && | |
10709 { ac_try='test -z "$ac_c_werror_flag" | |
10710 || test ! -s conftest.err' | |
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10712 (eval $ac_try) 2>&5 | |
10713 ac_status=$? | |
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10715 (exit $ac_status); }; } && | |
10716 { ac_try='test -s conftest$ac_exeext' | |
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10718 (eval $ac_try) 2>&5 | |
10719 ac_status=$? | |
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10721 (exit $ac_status); }; }; then | |
10722 ac_cv_search_opendir="-l$ac_lib" | |
10723 break | |
10724 else | |
10725 echo "$as_me: failed program was:" >&5 | |
10726 sed 's/^/| /' conftest.$ac_ext >&5 | |
10727 | |
10728 fi | |
10729 rm -f conftest.err conftest.$ac_objext \ | |
10730 conftest$ac_exeext conftest.$ac_ext | |
10731 done | |
10732 fi | |
10733 LIBS=$ac_func_search_save_LIBS | |
10734 fi | |
10735 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
10736 echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
10737 if test "$ac_cv_search_opendir" != no; then | |
10738 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
10739 | |
10740 fi | |
10741 | |
10742 fi | |
10743 | |
10744 | |
10745 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
10746 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
10747 if test "${ac_cv_header_stdc+set}" = set; then | |
10748 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10749 else | |
10750 cat >conftest.$ac_ext <<_ACEOF | |
10751 /* confdefs.h. */ | |
10752 _ACEOF | |
10753 cat confdefs.h >>conftest.$ac_ext | |
10754 cat >>conftest.$ac_ext <<_ACEOF | |
10755 /* end confdefs.h. */ | |
6126 #include <stdlib.h> | 10756 #include <stdlib.h> |
6127 #include <stdarg.h> | 10757 #include <stdarg.h> |
6128 #include <string.h> | 10758 #include <string.h> |
6129 #include <float.h> | 10759 #include <float.h> |
6130 EOF | 10760 |
6131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10761 int |
6132 { (eval echo configure:6133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10762 main () |
6133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 10763 { |
6134 if test -z "$ac_err"; then | 10764 |
6135 rm -rf conftest* | 10765 ; |
10766 return 0; | |
10767 } | |
10768 _ACEOF | |
10769 rm -f conftest.$ac_objext | |
10770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10771 (eval $ac_compile) 2>conftest.er1 | |
10772 ac_status=$? | |
10773 grep -v '^ *+' conftest.er1 >conftest.err | |
10774 rm -f conftest.er1 | |
10775 cat conftest.err >&5 | |
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10777 (exit $ac_status); } && | |
10778 { ac_try='test -z "$ac_c_werror_flag" | |
10779 || test ! -s conftest.err' | |
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10781 (eval $ac_try) 2>&5 | |
10782 ac_status=$? | |
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10784 (exit $ac_status); }; } && | |
10785 { ac_try='test -s conftest.$ac_objext' | |
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10787 (eval $ac_try) 2>&5 | |
10788 ac_status=$? | |
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10790 (exit $ac_status); }; }; then | |
6136 ac_cv_header_stdc=yes | 10791 ac_cv_header_stdc=yes |
6137 else | 10792 else |
6138 echo "$ac_err" >&5 | 10793 echo "$as_me: failed program was:" >&5 |
6139 echo "configure: failed program was:" >&5 | 10794 sed 's/^/| /' conftest.$ac_ext >&5 |
6140 cat conftest.$ac_ext >&5 | 10795 |
6141 rm -rf conftest* | 10796 ac_cv_header_stdc=no |
6142 ac_cv_header_stdc=no | 10797 fi |
6143 fi | 10798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6144 rm -f conftest* | |
6145 | 10799 |
6146 if test $ac_cv_header_stdc = yes; then | 10800 if test $ac_cv_header_stdc = yes; then |
6147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 10801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
6148 cat > conftest.$ac_ext <<EOF | 10802 cat >conftest.$ac_ext <<_ACEOF |
6149 #line 6150 "configure" | 10803 /* confdefs.h. */ |
6150 #include "confdefs.h" | 10804 _ACEOF |
10805 cat confdefs.h >>conftest.$ac_ext | |
10806 cat >>conftest.$ac_ext <<_ACEOF | |
10807 /* end confdefs.h. */ | |
6151 #include <string.h> | 10808 #include <string.h> |
6152 EOF | 10809 |
10810 _ACEOF | |
6153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 10811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6154 egrep "memchr" >/dev/null 2>&1; then | 10812 $EGREP "memchr" >/dev/null 2>&1; then |
6155 : | 10813 : |
6156 else | 10814 else |
6157 rm -rf conftest* | |
6158 ac_cv_header_stdc=no | 10815 ac_cv_header_stdc=no |
6159 fi | 10816 fi |
6160 rm -f conftest* | 10817 rm -f conftest* |
6161 | 10818 |
6162 fi | 10819 fi |
6163 | 10820 |
6164 if test $ac_cv_header_stdc = yes; then | 10821 if test $ac_cv_header_stdc = yes; then |
6165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 10822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
6166 cat > conftest.$ac_ext <<EOF | 10823 cat >conftest.$ac_ext <<_ACEOF |
6167 #line 6168 "configure" | 10824 /* confdefs.h. */ |
6168 #include "confdefs.h" | 10825 _ACEOF |
10826 cat confdefs.h >>conftest.$ac_ext | |
10827 cat >>conftest.$ac_ext <<_ACEOF | |
10828 /* end confdefs.h. */ | |
6169 #include <stdlib.h> | 10829 #include <stdlib.h> |
6170 EOF | 10830 |
10831 _ACEOF | |
6171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 10832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6172 egrep "free" >/dev/null 2>&1; then | 10833 $EGREP "free" >/dev/null 2>&1; then |
6173 : | 10834 : |
6174 else | 10835 else |
6175 rm -rf conftest* | |
6176 ac_cv_header_stdc=no | 10836 ac_cv_header_stdc=no |
6177 fi | 10837 fi |
6178 rm -f conftest* | 10838 rm -f conftest* |
6179 | 10839 |
6180 fi | 10840 fi |
6181 | 10841 |
6182 if test $ac_cv_header_stdc = yes; then | 10842 if test $ac_cv_header_stdc = yes; then |
6183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 10843 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
6184 if test "$cross_compiling" = yes; then | 10844 if test "$cross_compiling" = yes; then |
6185 : | 10845 : |
6186 else | 10846 else |
6187 cat > conftest.$ac_ext <<EOF | 10847 cat >conftest.$ac_ext <<_ACEOF |
6188 #line 6189 "configure" | 10848 /* confdefs.h. */ |
6189 #include "confdefs.h" | 10849 _ACEOF |
10850 cat confdefs.h >>conftest.$ac_ext | |
10851 cat >>conftest.$ac_ext <<_ACEOF | |
10852 /* end confdefs.h. */ | |
6190 #include <ctype.h> | 10853 #include <ctype.h> |
6191 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 10854 #if ((' ' & 0x0FF) == 0x020) |
6192 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 10855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
10856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
10857 #else | |
10858 # define ISLOWER(c) \ | |
10859 (('a' <= (c) && (c) <= 'i') \ | |
10860 || ('j' <= (c) && (c) <= 'r') \ | |
10861 || ('s' <= (c) && (c) <= 'z')) | |
10862 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
10863 #endif | |
10864 | |
6193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 10865 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6194 int main () { int i; for (i = 0; i < 256; i++) | 10866 int |
6195 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 10867 main () |
6196 exit (0); } | 10868 { |
6197 | 10869 int i; |
6198 EOF | 10870 for (i = 0; i < 256; i++) |
6199 if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 10871 if (XOR (islower (i), ISLOWER (i)) |
6200 then | 10872 || toupper (i) != TOUPPER (i)) |
10873 exit(2); | |
10874 exit (0); | |
10875 } | |
10876 _ACEOF | |
10877 rm -f conftest$ac_exeext | |
10878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10879 (eval $ac_link) 2>&5 | |
10880 ac_status=$? | |
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10884 (eval $ac_try) 2>&5 | |
10885 ac_status=$? | |
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10887 (exit $ac_status); }; }; then | |
6201 : | 10888 : |
6202 else | 10889 else |
6203 echo "configure: failed program was:" >&5 | 10890 echo "$as_me: program exited with status $ac_status" >&5 |
6204 cat conftest.$ac_ext >&5 | 10891 echo "$as_me: failed program was:" >&5 |
6205 rm -fr conftest* | 10892 sed 's/^/| /' conftest.$ac_ext >&5 |
6206 ac_cv_header_stdc=no | 10893 |
6207 fi | 10894 ( exit $ac_status ) |
6208 rm -fr conftest* | 10895 ac_cv_header_stdc=no |
6209 fi | 10896 fi |
6210 | 10897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6211 fi | 10898 fi |
6212 fi | 10899 fi |
6213 | 10900 fi |
6214 echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 10901 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
10902 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6215 if test $ac_cv_header_stdc = yes; then | 10903 if test $ac_cv_header_stdc = yes; then |
6216 cat >> confdefs.h <<\EOF | 10904 |
10905 cat >>confdefs.h <<\_ACEOF | |
6217 #define STDC_HEADERS 1 | 10906 #define STDC_HEADERS 1 |
6218 EOF | 10907 _ACEOF |
6219 | 10908 |
6220 fi | 10909 fi |
6221 | 10910 |
6222 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | 10911 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
6223 echo "configure:6224: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 10912 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
6224 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then | 10913 if test "${ac_cv_header_sys_wait_h+set}" = set; then |
6225 echo $ac_n "(cached) $ac_c" 1>&6 | 10914 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6226 else | 10915 else |
6227 cat > conftest.$ac_ext <<EOF | 10916 cat >conftest.$ac_ext <<_ACEOF |
6228 #line 6229 "configure" | 10917 /* confdefs.h. */ |
6229 #include "confdefs.h" | 10918 _ACEOF |
10919 cat confdefs.h >>conftest.$ac_ext | |
10920 cat >>conftest.$ac_ext <<_ACEOF | |
10921 /* end confdefs.h. */ | |
6230 #include <sys/types.h> | 10922 #include <sys/types.h> |
6231 #include <sys/wait.h> | 10923 #include <sys/wait.h> |
6232 #ifndef WEXITSTATUS | 10924 #ifndef WEXITSTATUS |
6233 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 10925 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
6234 #endif | 10926 #endif |
6235 #ifndef WIFEXITED | 10927 #ifndef WIFEXITED |
6236 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 10928 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
6237 #endif | 10929 #endif |
6238 int main() { | 10930 |
6239 int s; | 10931 int |
6240 wait (&s); | 10932 main () |
6241 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 10933 { |
6242 ; return 0; } | 10934 int s; |
6243 EOF | 10935 wait (&s); |
6244 if { (eval echo configure:6245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 10936 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
6245 rm -rf conftest* | 10937 ; |
10938 return 0; | |
10939 } | |
10940 _ACEOF | |
10941 rm -f conftest.$ac_objext | |
10942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10943 (eval $ac_compile) 2>conftest.er1 | |
10944 ac_status=$? | |
10945 grep -v '^ *+' conftest.er1 >conftest.err | |
10946 rm -f conftest.er1 | |
10947 cat conftest.err >&5 | |
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10949 (exit $ac_status); } && | |
10950 { ac_try='test -z "$ac_c_werror_flag" | |
10951 || test ! -s conftest.err' | |
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10953 (eval $ac_try) 2>&5 | |
10954 ac_status=$? | |
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10956 (exit $ac_status); }; } && | |
10957 { ac_try='test -s conftest.$ac_objext' | |
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10959 (eval $ac_try) 2>&5 | |
10960 ac_status=$? | |
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10962 (exit $ac_status); }; }; then | |
6246 ac_cv_header_sys_wait_h=yes | 10963 ac_cv_header_sys_wait_h=yes |
6247 else | 10964 else |
6248 echo "configure: failed program was:" >&5 | 10965 echo "$as_me: failed program was:" >&5 |
6249 cat conftest.$ac_ext >&5 | 10966 sed 's/^/| /' conftest.$ac_ext >&5 |
6250 rm -rf conftest* | 10967 |
6251 ac_cv_header_sys_wait_h=no | 10968 ac_cv_header_sys_wait_h=no |
6252 fi | 10969 fi |
6253 rm -f conftest* | 10970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6254 fi | 10971 fi |
6255 | 10972 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
6256 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | 10973 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
6257 if test $ac_cv_header_sys_wait_h = yes; then | 10974 if test $ac_cv_header_sys_wait_h = yes; then |
6258 cat >> confdefs.h <<\EOF | 10975 |
10976 cat >>confdefs.h <<\_ACEOF | |
6259 #define HAVE_SYS_WAIT_H 1 | 10977 #define HAVE_SYS_WAIT_H 1 |
6260 EOF | 10978 _ACEOF |
6261 | 10979 |
6262 fi | 10980 fi |
6263 | 10981 |
6264 | 10982 |
6265 if test $ac_cv_header_sys_wait_h = no; then | 10983 if test $ac_cv_header_sys_wait_h = no; then |
6266 echo $ac_n "checking for sys/wait.h that defines union wait""... $ac_c" 1>&6 | 10984 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
6267 echo "configure:6268: checking for sys/wait.h that defines union wait" >&5 | 10985 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6 |
6268 cat > conftest.$ac_ext <<EOF | 10986 cat >conftest.$ac_ext <<_ACEOF |
6269 #line 6270 "configure" | 10987 /* confdefs.h. */ |
6270 #include "confdefs.h" | 10988 _ACEOF |
10989 cat confdefs.h >>conftest.$ac_ext | |
10990 cat >>conftest.$ac_ext <<_ACEOF | |
10991 /* end confdefs.h. */ | |
6271 #include <sys/wait.h> | 10992 #include <sys/wait.h> |
6272 int main() { | 10993 int |
10994 main () | |
10995 { | |
6273 union wait xx, yy; xx = yy | 10996 union wait xx, yy; xx = yy |
6274 ; return 0; } | 10997 ; |
6275 EOF | 10998 return 0; |
6276 if { (eval echo configure:6277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 10999 } |
6277 rm -rf conftest* | 11000 _ACEOF |
6278 echo "$ac_t""yes" 1>&6 | 11001 rm -f conftest.$ac_objext |
6279 cat >> confdefs.h <<\EOF | 11002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11003 (eval $ac_compile) 2>conftest.er1 | |
11004 ac_status=$? | |
11005 grep -v '^ *+' conftest.er1 >conftest.err | |
11006 rm -f conftest.er1 | |
11007 cat conftest.err >&5 | |
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11009 (exit $ac_status); } && | |
11010 { ac_try='test -z "$ac_c_werror_flag" | |
11011 || test ! -s conftest.err' | |
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11013 (eval $ac_try) 2>&5 | |
11014 ac_status=$? | |
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11016 (exit $ac_status); }; } && | |
11017 { ac_try='test -s conftest.$ac_objext' | |
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11019 (eval $ac_try) 2>&5 | |
11020 ac_status=$? | |
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11022 (exit $ac_status); }; }; then | |
11023 echo "$as_me:$LINENO: result: yes" >&5 | |
11024 echo "${ECHO_T}yes" >&6 | |
11025 cat >>confdefs.h <<\_ACEOF | |
6280 #define HAVE_SYS_WAIT_H 1 | 11026 #define HAVE_SYS_WAIT_H 1 |
6281 EOF | 11027 _ACEOF |
6282 | 11028 |
6283 cat >> confdefs.h <<\EOF | 11029 cat >>confdefs.h <<\_ACEOF |
6284 #define HAVE_UNION_WAIT 1 | 11030 #define HAVE_UNION_WAIT 1 |
6285 EOF | 11031 _ACEOF |
6286 | 11032 |
6287 else | 11033 else |
6288 echo "configure: failed program was:" >&5 | 11034 echo "$as_me: failed program was:" >&5 |
6289 cat conftest.$ac_ext >&5 | 11035 sed 's/^/| /' conftest.$ac_ext >&5 |
6290 rm -rf conftest* | 11036 |
6291 echo "$ac_t""no" 1>&6 | 11037 echo "$as_me:$LINENO: result: no" >&5 |
6292 fi | 11038 echo "${ECHO_T}no" >&6 |
6293 rm -f conftest* | 11039 fi |
6294 fi | 11040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6295 | 11041 fi |
6296 for ac_hdr in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ | 11042 |
11043 | |
11044 | |
11045 | |
11046 | |
11047 | |
11048 | |
11049 | |
11050 | |
11051 | |
11052 | |
11053 | |
11054 | |
11055 | |
11056 | |
11057 | |
11058 | |
11059 | |
11060 | |
11061 | |
11062 | |
11063 | |
11064 | |
11065 | |
11066 | |
11067 | |
11068 | |
11069 | |
11070 | |
11071 | |
11072 | |
11073 | |
11074 | |
11075 | |
11076 | |
11077 | |
11078 | |
11079 | |
11080 | |
11081 | |
11082 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ | |
6297 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ | 11083 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ |
6298 iconv.h langinfo.h unistd.h stropts.h errno.h \ | 11084 iconv.h langinfo.h unistd.h stropts.h errno.h \ |
6299 sys/resource.h sys/systeminfo.h locale.h \ | 11085 sys/resource.h sys/systeminfo.h locale.h \ |
6300 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ | 11086 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
6301 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \ | 11087 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \ |
6302 libgen.h util/debug.h util/msg18n.h frame.h pthread_np.h \ | 11088 libgen.h util/debug.h util/msg18n.h frame.h \ |
6303 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h | 11089 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h |
6304 do | 11090 do |
6305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11092 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6307 echo "configure:6308: checking for $ac_hdr" >&5 | 11093 echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 11094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6309 echo $ac_n "(cached) $ac_c" 1>&6 | 11095 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6310 else | 11096 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6311 cat > conftest.$ac_ext <<EOF | 11097 fi |
6312 #line 6313 "configure" | 11098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6313 #include "confdefs.h" | 11099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6314 #include <$ac_hdr> | 11100 else |
6315 EOF | 11101 # Is the header compilable? |
6316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11102 echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6317 { (eval echo configure:6318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
6318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 11104 cat >conftest.$ac_ext <<_ACEOF |
6319 if test -z "$ac_err"; then | 11105 /* confdefs.h. */ |
6320 rm -rf conftest* | 11106 _ACEOF |
6321 eval "ac_cv_header_$ac_safe=yes" | 11107 cat confdefs.h >>conftest.$ac_ext |
6322 else | 11108 cat >>conftest.$ac_ext <<_ACEOF |
6323 echo "$ac_err" >&5 | 11109 /* end confdefs.h. */ |
6324 echo "configure: failed program was:" >&5 | 11110 $ac_includes_default |
6325 cat conftest.$ac_ext >&5 | 11111 #include <$ac_header> |
6326 rm -rf conftest* | 11112 _ACEOF |
6327 eval "ac_cv_header_$ac_safe=no" | 11113 rm -f conftest.$ac_objext |
6328 fi | 11114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6329 rm -f conftest* | 11115 (eval $ac_compile) 2>conftest.er1 |
6330 fi | 11116 ac_status=$? |
6331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 11117 grep -v '^ *+' conftest.er1 >conftest.err |
6332 echo "$ac_t""yes" 1>&6 | 11118 rm -f conftest.er1 |
6333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 11119 cat conftest.err >&5 |
6334 cat >> confdefs.h <<EOF | 11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6335 #define $ac_tr_hdr 1 | 11121 (exit $ac_status); } && |
6336 EOF | 11122 { ac_try='test -z "$ac_c_werror_flag" |
6337 | 11123 || test ! -s conftest.err' |
6338 else | 11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6339 echo "$ac_t""no" 1>&6 | 11125 (eval $ac_try) 2>&5 |
6340 fi | 11126 ac_status=$? |
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11128 (exit $ac_status); }; } && | |
11129 { ac_try='test -s conftest.$ac_objext' | |
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11131 (eval $ac_try) 2>&5 | |
11132 ac_status=$? | |
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11134 (exit $ac_status); }; }; then | |
11135 ac_header_compiler=yes | |
11136 else | |
11137 echo "$as_me: failed program was:" >&5 | |
11138 sed 's/^/| /' conftest.$ac_ext >&5 | |
11139 | |
11140 ac_header_compiler=no | |
11141 fi | |
11142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11144 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11145 | |
11146 # Is the header present? | |
11147 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11149 cat >conftest.$ac_ext <<_ACEOF | |
11150 /* confdefs.h. */ | |
11151 _ACEOF | |
11152 cat confdefs.h >>conftest.$ac_ext | |
11153 cat >>conftest.$ac_ext <<_ACEOF | |
11154 /* end confdefs.h. */ | |
11155 #include <$ac_header> | |
11156 _ACEOF | |
11157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11159 ac_status=$? | |
11160 grep -v '^ *+' conftest.er1 >conftest.err | |
11161 rm -f conftest.er1 | |
11162 cat conftest.err >&5 | |
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11164 (exit $ac_status); } >/dev/null; then | |
11165 if test -s conftest.err; then | |
11166 ac_cpp_err=$ac_c_preproc_warn_flag | |
11167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11168 else | |
11169 ac_cpp_err= | |
11170 fi | |
11171 else | |
11172 ac_cpp_err=yes | |
11173 fi | |
11174 if test -z "$ac_cpp_err"; then | |
11175 ac_header_preproc=yes | |
11176 else | |
11177 echo "$as_me: failed program was:" >&5 | |
11178 sed 's/^/| /' conftest.$ac_ext >&5 | |
11179 | |
11180 ac_header_preproc=no | |
11181 fi | |
11182 rm -f conftest.err conftest.$ac_ext | |
11183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11184 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11185 | |
11186 # So? What about this header? | |
11187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11188 yes:no: ) | |
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11193 ac_header_preproc=yes | |
11194 ;; | |
11195 no:yes:* ) | |
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11208 ( | |
11209 cat <<\_ASBOX | |
11210 ## ------------------------------------------ ## | |
11211 ## Report this to the AC_PACKAGE_NAME lists. ## | |
11212 ## ------------------------------------------ ## | |
11213 _ASBOX | |
11214 ) | | |
11215 sed "s/^/$as_me: WARNING: /" >&2 | |
11216 ;; | |
11217 esac | |
11218 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11220 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11221 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11222 else | |
11223 eval "$as_ac_Header=\$ac_header_preproc" | |
11224 fi | |
11225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11227 | |
11228 fi | |
11229 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11230 cat >>confdefs.h <<_ACEOF | |
11231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11232 _ACEOF | |
11233 | |
11234 fi | |
11235 | |
6341 done | 11236 done |
6342 | 11237 |
6343 | 11238 |
11239 echo "$as_me:$LINENO: checking for pthread_np.h" >&5 | |
11240 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6 | |
11241 cat >conftest.$ac_ext <<_ACEOF | |
11242 /* confdefs.h. */ | |
11243 _ACEOF | |
11244 cat confdefs.h >>conftest.$ac_ext | |
11245 cat >>conftest.$ac_ext <<_ACEOF | |
11246 /* end confdefs.h. */ | |
11247 | |
11248 #include <pthread.h> | |
11249 #include <pthread_np.h> | |
11250 int | |
11251 main () | |
11252 { | |
11253 int i; i = 0; | |
11254 ; | |
11255 return 0; | |
11256 } | |
11257 _ACEOF | |
11258 rm -f conftest.$ac_objext | |
11259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11260 (eval $ac_compile) 2>conftest.er1 | |
11261 ac_status=$? | |
11262 grep -v '^ *+' conftest.er1 >conftest.err | |
11263 rm -f conftest.er1 | |
11264 cat conftest.err >&5 | |
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11266 (exit $ac_status); } && | |
11267 { ac_try='test -z "$ac_c_werror_flag" | |
11268 || test ! -s conftest.err' | |
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11270 (eval $ac_try) 2>&5 | |
11271 ac_status=$? | |
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11273 (exit $ac_status); }; } && | |
11274 { ac_try='test -s conftest.$ac_objext' | |
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11276 (eval $ac_try) 2>&5 | |
11277 ac_status=$? | |
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11279 (exit $ac_status); }; }; then | |
11280 echo "$as_me:$LINENO: result: yes" >&5 | |
11281 echo "${ECHO_T}yes" >&6 | |
11282 cat >>confdefs.h <<\_ACEOF | |
11283 #define HAVE_PTHREAD_NP_H 1 | |
11284 _ACEOF | |
11285 | |
11286 else | |
11287 echo "$as_me: failed program was:" >&5 | |
11288 sed 's/^/| /' conftest.$ac_ext >&5 | |
11289 | |
11290 echo "$as_me:$LINENO: result: no" >&5 | |
11291 echo "${ECHO_T}no" >&6 | |
11292 fi | |
11293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11294 | |
6344 if test "x$MACOSX" != "xyes"; then | 11295 if test "x$MACOSX" != "xyes"; then |
6345 for ac_hdr in strings.h | 11296 |
11297 for ac_header in strings.h | |
6346 do | 11298 do |
6347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11300 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6349 echo "configure:6350: checking for $ac_hdr" >&5 | 11301 echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 11302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6351 echo $ac_n "(cached) $ac_c" 1>&6 | 11303 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6352 else | 11304 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6353 cat > conftest.$ac_ext <<EOF | 11305 fi |
6354 #line 6355 "configure" | 11306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6355 #include "confdefs.h" | 11307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6356 #include <$ac_hdr> | 11308 else |
6357 EOF | 11309 # Is the header compilable? |
6358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11310 echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6359 { (eval echo configure:6360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
6360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 11312 cat >conftest.$ac_ext <<_ACEOF |
6361 if test -z "$ac_err"; then | 11313 /* confdefs.h. */ |
6362 rm -rf conftest* | 11314 _ACEOF |
6363 eval "ac_cv_header_$ac_safe=yes" | 11315 cat confdefs.h >>conftest.$ac_ext |
6364 else | 11316 cat >>conftest.$ac_ext <<_ACEOF |
6365 echo "$ac_err" >&5 | 11317 /* end confdefs.h. */ |
6366 echo "configure: failed program was:" >&5 | 11318 $ac_includes_default |
6367 cat conftest.$ac_ext >&5 | 11319 #include <$ac_header> |
6368 rm -rf conftest* | 11320 _ACEOF |
6369 eval "ac_cv_header_$ac_safe=no" | 11321 rm -f conftest.$ac_objext |
6370 fi | 11322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6371 rm -f conftest* | 11323 (eval $ac_compile) 2>conftest.er1 |
6372 fi | 11324 ac_status=$? |
6373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 11325 grep -v '^ *+' conftest.er1 >conftest.err |
6374 echo "$ac_t""yes" 1>&6 | 11326 rm -f conftest.er1 |
6375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 11327 cat conftest.err >&5 |
6376 cat >> confdefs.h <<EOF | 11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6377 #define $ac_tr_hdr 1 | 11329 (exit $ac_status); } && |
6378 EOF | 11330 { ac_try='test -z "$ac_c_werror_flag" |
6379 | 11331 || test ! -s conftest.err' |
6380 else | 11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6381 echo "$ac_t""no" 1>&6 | 11333 (eval $ac_try) 2>&5 |
6382 fi | 11334 ac_status=$? |
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11336 (exit $ac_status); }; } && | |
11337 { ac_try='test -s conftest.$ac_objext' | |
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11339 (eval $ac_try) 2>&5 | |
11340 ac_status=$? | |
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11342 (exit $ac_status); }; }; then | |
11343 ac_header_compiler=yes | |
11344 else | |
11345 echo "$as_me: failed program was:" >&5 | |
11346 sed 's/^/| /' conftest.$ac_ext >&5 | |
11347 | |
11348 ac_header_compiler=no | |
11349 fi | |
11350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11352 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11353 | |
11354 # Is the header present? | |
11355 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11357 cat >conftest.$ac_ext <<_ACEOF | |
11358 /* confdefs.h. */ | |
11359 _ACEOF | |
11360 cat confdefs.h >>conftest.$ac_ext | |
11361 cat >>conftest.$ac_ext <<_ACEOF | |
11362 /* end confdefs.h. */ | |
11363 #include <$ac_header> | |
11364 _ACEOF | |
11365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11367 ac_status=$? | |
11368 grep -v '^ *+' conftest.er1 >conftest.err | |
11369 rm -f conftest.er1 | |
11370 cat conftest.err >&5 | |
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11372 (exit $ac_status); } >/dev/null; then | |
11373 if test -s conftest.err; then | |
11374 ac_cpp_err=$ac_c_preproc_warn_flag | |
11375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11376 else | |
11377 ac_cpp_err= | |
11378 fi | |
11379 else | |
11380 ac_cpp_err=yes | |
11381 fi | |
11382 if test -z "$ac_cpp_err"; then | |
11383 ac_header_preproc=yes | |
11384 else | |
11385 echo "$as_me: failed program was:" >&5 | |
11386 sed 's/^/| /' conftest.$ac_ext >&5 | |
11387 | |
11388 ac_header_preproc=no | |
11389 fi | |
11390 rm -f conftest.err conftest.$ac_ext | |
11391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11392 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11393 | |
11394 # So? What about this header? | |
11395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11396 yes:no: ) | |
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11401 ac_header_preproc=yes | |
11402 ;; | |
11403 no:yes:* ) | |
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11416 ( | |
11417 cat <<\_ASBOX | |
11418 ## ------------------------------------------ ## | |
11419 ## Report this to the AC_PACKAGE_NAME lists. ## | |
11420 ## ------------------------------------------ ## | |
11421 _ASBOX | |
11422 ) | | |
11423 sed "s/^/$as_me: WARNING: /" >&2 | |
11424 ;; | |
11425 esac | |
11426 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11428 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11429 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11430 else | |
11431 eval "$as_ac_Header=\$ac_header_preproc" | |
11432 fi | |
11433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11435 | |
11436 fi | |
11437 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11438 cat >>confdefs.h <<_ACEOF | |
11439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11440 _ACEOF | |
11441 | |
11442 fi | |
11443 | |
6383 done | 11444 done |
6384 | 11445 |
6385 fi | 11446 fi |
6386 | 11447 |
6387 echo $ac_n "checking if strings.h can be included after string.h""... $ac_c" 1>&6 | 11448 echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
6388 echo "configure:6389: checking if strings.h can be included after string.h" >&5 | 11449 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6 |
6389 cppflags_save=$CPPFLAGS | 11450 cppflags_save=$CPPFLAGS |
6390 CPPFLAGS="$CPPFLAGS $X_CFLAGS" | 11451 CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
6391 cat > conftest.$ac_ext <<EOF | 11452 cat >conftest.$ac_ext <<_ACEOF |
6392 #line 6393 "configure" | 11453 /* confdefs.h. */ |
6393 #include "confdefs.h" | 11454 _ACEOF |
11455 cat confdefs.h >>conftest.$ac_ext | |
11456 cat >>conftest.$ac_ext <<_ACEOF | |
11457 /* end confdefs.h. */ | |
6394 | 11458 |
6395 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) | 11459 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
6396 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ | 11460 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
6397 /* but don't do it on AIX 5.1 (Uribarri) */ | 11461 /* but don't do it on AIX 5.1 (Uribarri) */ |
6398 #endif | 11462 #endif |
6403 # include <string.h> | 11467 # include <string.h> |
6404 #endif | 11468 #endif |
6405 #if defined(HAVE_STRINGS_H) | 11469 #if defined(HAVE_STRINGS_H) |
6406 # include <strings.h> | 11470 # include <strings.h> |
6407 #endif | 11471 #endif |
6408 | 11472 |
6409 int main() { | 11473 int |
11474 main () | |
11475 { | |
6410 int i; i = 0; | 11476 int i; i = 0; |
6411 ; return 0; } | 11477 ; |
6412 EOF | 11478 return 0; |
6413 if { (eval echo configure:6414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 11479 } |
6414 rm -rf conftest* | 11480 _ACEOF |
6415 echo "$ac_t""yes" 1>&6 | 11481 rm -f conftest.$ac_objext |
6416 else | 11482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6417 echo "configure: failed program was:" >&5 | 11483 (eval $ac_compile) 2>conftest.er1 |
6418 cat conftest.$ac_ext >&5 | 11484 ac_status=$? |
6419 rm -rf conftest* | 11485 grep -v '^ *+' conftest.er1 >conftest.err |
6420 cat >> confdefs.h <<\EOF | 11486 rm -f conftest.er1 |
11487 cat conftest.err >&5 | |
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11489 (exit $ac_status); } && | |
11490 { ac_try='test -z "$ac_c_werror_flag" | |
11491 || test ! -s conftest.err' | |
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11493 (eval $ac_try) 2>&5 | |
11494 ac_status=$? | |
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11496 (exit $ac_status); }; } && | |
11497 { ac_try='test -s conftest.$ac_objext' | |
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11499 (eval $ac_try) 2>&5 | |
11500 ac_status=$? | |
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11502 (exit $ac_status); }; }; then | |
11503 echo "$as_me:$LINENO: result: yes" >&5 | |
11504 echo "${ECHO_T}yes" >&6 | |
11505 else | |
11506 echo "$as_me: failed program was:" >&5 | |
11507 sed 's/^/| /' conftest.$ac_ext >&5 | |
11508 | |
11509 cat >>confdefs.h <<\_ACEOF | |
6421 #define NO_STRINGS_WITH_STRING_H 1 | 11510 #define NO_STRINGS_WITH_STRING_H 1 |
6422 EOF | 11511 _ACEOF |
6423 | 11512 |
6424 echo "$ac_t""no" 1>&6 | 11513 echo "$as_me:$LINENO: result: no" >&5 |
6425 fi | 11514 echo "${ECHO_T}no" >&6 |
6426 rm -f conftest* | 11515 fi |
11516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6427 CPPFLAGS=$cppflags_save | 11517 CPPFLAGS=$cppflags_save |
6428 | 11518 |
6429 if test $ac_cv_prog_gcc = yes; then | 11519 if test $ac_cv_c_compiler_gnu = yes; then |
6430 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | 11520 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
6431 echo "configure:6432: checking whether ${CC-cc} needs -traditional" >&5 | 11521 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
6432 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | 11522 if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
6433 echo $ac_n "(cached) $ac_c" 1>&6 | 11523 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6434 else | 11524 else |
6435 ac_pattern="Autoconf.*'x'" | 11525 ac_pattern="Autoconf.*'x'" |
6436 cat > conftest.$ac_ext <<EOF | 11526 cat >conftest.$ac_ext <<_ACEOF |
6437 #line 6438 "configure" | 11527 /* confdefs.h. */ |
6438 #include "confdefs.h" | 11528 _ACEOF |
11529 cat confdefs.h >>conftest.$ac_ext | |
11530 cat >>conftest.$ac_ext <<_ACEOF | |
11531 /* end confdefs.h. */ | |
6439 #include <sgtty.h> | 11532 #include <sgtty.h> |
6440 Autoconf TIOCGETP | 11533 Autoconf TIOCGETP |
6441 EOF | 11534 _ACEOF |
6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 11535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6443 egrep "$ac_pattern" >/dev/null 2>&1; then | 11536 $EGREP "$ac_pattern" >/dev/null 2>&1; then |
6444 rm -rf conftest* | |
6445 ac_cv_prog_gcc_traditional=yes | 11537 ac_cv_prog_gcc_traditional=yes |
6446 else | 11538 else |
6447 rm -rf conftest* | |
6448 ac_cv_prog_gcc_traditional=no | 11539 ac_cv_prog_gcc_traditional=no |
6449 fi | 11540 fi |
6450 rm -f conftest* | 11541 rm -f conftest* |
6451 | 11542 |
6452 | 11543 |
6453 if test $ac_cv_prog_gcc_traditional = no; then | 11544 if test $ac_cv_prog_gcc_traditional = no; then |
6454 cat > conftest.$ac_ext <<EOF | 11545 cat >conftest.$ac_ext <<_ACEOF |
6455 #line 6456 "configure" | 11546 /* confdefs.h. */ |
6456 #include "confdefs.h" | 11547 _ACEOF |
11548 cat confdefs.h >>conftest.$ac_ext | |
11549 cat >>conftest.$ac_ext <<_ACEOF | |
11550 /* end confdefs.h. */ | |
6457 #include <termio.h> | 11551 #include <termio.h> |
6458 Autoconf TCGETA | 11552 Autoconf TCGETA |
6459 EOF | 11553 _ACEOF |
6460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 11554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6461 egrep "$ac_pattern" >/dev/null 2>&1; then | 11555 $EGREP "$ac_pattern" >/dev/null 2>&1; then |
6462 rm -rf conftest* | |
6463 ac_cv_prog_gcc_traditional=yes | 11556 ac_cv_prog_gcc_traditional=yes |
6464 fi | 11557 fi |
6465 rm -f conftest* | 11558 rm -f conftest* |
6466 | 11559 |
6467 fi | 11560 fi |
6468 fi | 11561 fi |
6469 | 11562 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
6470 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | 11563 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
6471 if test $ac_cv_prog_gcc_traditional = yes; then | 11564 if test $ac_cv_prog_gcc_traditional = yes; then |
6472 CC="$CC -traditional" | 11565 CC="$CC -traditional" |
6473 fi | 11566 fi |
6474 fi | 11567 fi |
6475 | 11568 |
6476 echo $ac_n "checking for working const""... $ac_c" 1>&6 | 11569 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
6477 echo "configure:6478: checking for working const" >&5 | 11570 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
6478 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 11571 if test "${ac_cv_c_const+set}" = set; then |
6479 echo $ac_n "(cached) $ac_c" 1>&6 | 11572 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6480 else | 11573 else |
6481 cat > conftest.$ac_ext <<EOF | 11574 cat >conftest.$ac_ext <<_ACEOF |
6482 #line 6483 "configure" | 11575 /* confdefs.h. */ |
6483 #include "confdefs.h" | 11576 _ACEOF |
6484 | 11577 cat confdefs.h >>conftest.$ac_ext |
6485 int main() { | 11578 cat >>conftest.$ac_ext <<_ACEOF |
6486 | 11579 /* end confdefs.h. */ |
6487 /* Ultrix mips cc rejects this. */ | 11580 |
6488 typedef int charset[2]; const charset x; | 11581 int |
6489 /* SunOS 4.1.1 cc rejects this. */ | 11582 main () |
6490 char const *const *ccp; | 11583 { |
6491 char **p; | 11584 /* FIXME: Include the comments suggested by Paul. */ |
6492 /* NEC SVR4.0.2 mips cc rejects this. */ | 11585 #ifndef __cplusplus |
6493 struct point {int x, y;}; | 11586 /* Ultrix mips cc rejects this. */ |
6494 static struct point const zero = {0,0}; | 11587 typedef int charset[2]; |
6495 /* AIX XL C 1.02.0.0 rejects this. | 11588 const charset x; |
6496 It does not let you subtract one const X* pointer from another in an arm | 11589 /* SunOS 4.1.1 cc rejects this. */ |
6497 of an if-expression whose if-part is not a constant expression */ | 11590 char const *const *ccp; |
6498 const char *g = "string"; | 11591 char **p; |
6499 ccp = &g + (g ? g-g : 0); | 11592 /* NEC SVR4.0.2 mips cc rejects this. */ |
6500 /* HPUX 7.0 cc rejects these. */ | 11593 struct point {int x, y;}; |
6501 ++ccp; | 11594 static struct point const zero = {0,0}; |
6502 p = (char**) ccp; | 11595 /* AIX XL C 1.02.0.0 rejects this. |
6503 ccp = (char const *const *) p; | 11596 It does not let you subtract one const X* pointer from another in |
6504 { /* SCO 3.2v4 cc rejects this. */ | 11597 an arm of an if-expression whose if-part is not a constant |
6505 char *t; | 11598 expression */ |
6506 char const *s = 0 ? (char *) 0 : (char const *) 0; | 11599 const char *g = "string"; |
6507 | 11600 ccp = &g + (g ? g-g : 0); |
6508 *t++ = 0; | 11601 /* HPUX 7.0 cc rejects these. */ |
11602 ++ccp; | |
11603 p = (char**) ccp; | |
11604 ccp = (char const *const *) p; | |
11605 { /* SCO 3.2v4 cc rejects this. */ | |
11606 char *t; | |
11607 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11608 | |
11609 *t++ = 0; | |
11610 } | |
11611 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11612 int x[] = {25, 17}; | |
11613 const int *foo = &x[0]; | |
11614 ++foo; | |
11615 } | |
11616 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11617 typedef const int *iptr; | |
11618 iptr p = 0; | |
11619 ++p; | |
11620 } | |
11621 { /* AIX XL C 1.02.0.0 rejects this saying | |
11622 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11623 struct s { int j; const int *ap[3]; }; | |
11624 struct s *b; b->j = 5; | |
11625 } | |
11626 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11627 const int foo = 10; | |
11628 } | |
11629 #endif | |
11630 | |
11631 ; | |
11632 return 0; | |
6509 } | 11633 } |
6510 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | 11634 _ACEOF |
6511 int x[] = {25, 17}; | 11635 rm -f conftest.$ac_objext |
6512 const int *foo = &x[0]; | 11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6513 ++foo; | 11637 (eval $ac_compile) 2>conftest.er1 |
11638 ac_status=$? | |
11639 grep -v '^ *+' conftest.er1 >conftest.err | |
11640 rm -f conftest.er1 | |
11641 cat conftest.err >&5 | |
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11643 (exit $ac_status); } && | |
11644 { ac_try='test -z "$ac_c_werror_flag" | |
11645 || test ! -s conftest.err' | |
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11647 (eval $ac_try) 2>&5 | |
11648 ac_status=$? | |
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11650 (exit $ac_status); }; } && | |
11651 { ac_try='test -s conftest.$ac_objext' | |
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11653 (eval $ac_try) 2>&5 | |
11654 ac_status=$? | |
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11656 (exit $ac_status); }; }; then | |
11657 ac_cv_c_const=yes | |
11658 else | |
11659 echo "$as_me: failed program was:" >&5 | |
11660 sed 's/^/| /' conftest.$ac_ext >&5 | |
11661 | |
11662 ac_cv_c_const=no | |
11663 fi | |
11664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11665 fi | |
11666 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
11667 echo "${ECHO_T}$ac_cv_c_const" >&6 | |
11668 if test $ac_cv_c_const = no; then | |
11669 | |
11670 cat >>confdefs.h <<\_ACEOF | |
11671 #define const | |
11672 _ACEOF | |
11673 | |
11674 fi | |
11675 | |
11676 echo "$as_me:$LINENO: checking for mode_t" >&5 | |
11677 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
11678 if test "${ac_cv_type_mode_t+set}" = set; then | |
11679 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11680 else | |
11681 cat >conftest.$ac_ext <<_ACEOF | |
11682 /* confdefs.h. */ | |
11683 _ACEOF | |
11684 cat confdefs.h >>conftest.$ac_ext | |
11685 cat >>conftest.$ac_ext <<_ACEOF | |
11686 /* end confdefs.h. */ | |
11687 $ac_includes_default | |
11688 int | |
11689 main () | |
11690 { | |
11691 if ((mode_t *) 0) | |
11692 return 0; | |
11693 if (sizeof (mode_t)) | |
11694 return 0; | |
11695 ; | |
11696 return 0; | |
6514 } | 11697 } |
6515 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 11698 _ACEOF |
6516 typedef const int *iptr; | 11699 rm -f conftest.$ac_objext |
6517 iptr p = 0; | 11700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6518 ++p; | 11701 (eval $ac_compile) 2>conftest.er1 |
11702 ac_status=$? | |
11703 grep -v '^ *+' conftest.er1 >conftest.err | |
11704 rm -f conftest.er1 | |
11705 cat conftest.err >&5 | |
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11707 (exit $ac_status); } && | |
11708 { ac_try='test -z "$ac_c_werror_flag" | |
11709 || test ! -s conftest.err' | |
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11711 (eval $ac_try) 2>&5 | |
11712 ac_status=$? | |
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11714 (exit $ac_status); }; } && | |
11715 { ac_try='test -s conftest.$ac_objext' | |
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11717 (eval $ac_try) 2>&5 | |
11718 ac_status=$? | |
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11720 (exit $ac_status); }; }; then | |
11721 ac_cv_type_mode_t=yes | |
11722 else | |
11723 echo "$as_me: failed program was:" >&5 | |
11724 sed 's/^/| /' conftest.$ac_ext >&5 | |
11725 | |
11726 ac_cv_type_mode_t=no | |
11727 fi | |
11728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11729 fi | |
11730 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
11731 echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
11732 if test $ac_cv_type_mode_t = yes; then | |
11733 : | |
11734 else | |
11735 | |
11736 cat >>confdefs.h <<_ACEOF | |
11737 #define mode_t int | |
11738 _ACEOF | |
11739 | |
11740 fi | |
11741 | |
11742 echo "$as_me:$LINENO: checking for off_t" >&5 | |
11743 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
11744 if test "${ac_cv_type_off_t+set}" = set; then | |
11745 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11746 else | |
11747 cat >conftest.$ac_ext <<_ACEOF | |
11748 /* confdefs.h. */ | |
11749 _ACEOF | |
11750 cat confdefs.h >>conftest.$ac_ext | |
11751 cat >>conftest.$ac_ext <<_ACEOF | |
11752 /* end confdefs.h. */ | |
11753 $ac_includes_default | |
11754 int | |
11755 main () | |
11756 { | |
11757 if ((off_t *) 0) | |
11758 return 0; | |
11759 if (sizeof (off_t)) | |
11760 return 0; | |
11761 ; | |
11762 return 0; | |
6519 } | 11763 } |
6520 { /* AIX XL C 1.02.0.0 rejects this saying | 11764 _ACEOF |
6521 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 11765 rm -f conftest.$ac_objext |
6522 struct s { int j; const int *ap[3]; }; | 11766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6523 struct s *b; b->j = 5; | 11767 (eval $ac_compile) 2>conftest.er1 |
11768 ac_status=$? | |
11769 grep -v '^ *+' conftest.er1 >conftest.err | |
11770 rm -f conftest.er1 | |
11771 cat conftest.err >&5 | |
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11773 (exit $ac_status); } && | |
11774 { ac_try='test -z "$ac_c_werror_flag" | |
11775 || test ! -s conftest.err' | |
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11777 (eval $ac_try) 2>&5 | |
11778 ac_status=$? | |
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11780 (exit $ac_status); }; } && | |
11781 { ac_try='test -s conftest.$ac_objext' | |
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11783 (eval $ac_try) 2>&5 | |
11784 ac_status=$? | |
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11786 (exit $ac_status); }; }; then | |
11787 ac_cv_type_off_t=yes | |
11788 else | |
11789 echo "$as_me: failed program was:" >&5 | |
11790 sed 's/^/| /' conftest.$ac_ext >&5 | |
11791 | |
11792 ac_cv_type_off_t=no | |
11793 fi | |
11794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11795 fi | |
11796 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
11797 echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
11798 if test $ac_cv_type_off_t = yes; then | |
11799 : | |
11800 else | |
11801 | |
11802 cat >>confdefs.h <<_ACEOF | |
11803 #define off_t long | |
11804 _ACEOF | |
11805 | |
11806 fi | |
11807 | |
11808 echo "$as_me:$LINENO: checking for pid_t" >&5 | |
11809 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
11810 if test "${ac_cv_type_pid_t+set}" = set; then | |
11811 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11812 else | |
11813 cat >conftest.$ac_ext <<_ACEOF | |
11814 /* confdefs.h. */ | |
11815 _ACEOF | |
11816 cat confdefs.h >>conftest.$ac_ext | |
11817 cat >>conftest.$ac_ext <<_ACEOF | |
11818 /* end confdefs.h. */ | |
11819 $ac_includes_default | |
11820 int | |
11821 main () | |
11822 { | |
11823 if ((pid_t *) 0) | |
11824 return 0; | |
11825 if (sizeof (pid_t)) | |
11826 return 0; | |
11827 ; | |
11828 return 0; | |
6524 } | 11829 } |
6525 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 11830 _ACEOF |
6526 const int foo = 10; | 11831 rm -f conftest.$ac_objext |
11832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11833 (eval $ac_compile) 2>conftest.er1 | |
11834 ac_status=$? | |
11835 grep -v '^ *+' conftest.er1 >conftest.err | |
11836 rm -f conftest.er1 | |
11837 cat conftest.err >&5 | |
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11839 (exit $ac_status); } && | |
11840 { ac_try='test -z "$ac_c_werror_flag" | |
11841 || test ! -s conftest.err' | |
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11843 (eval $ac_try) 2>&5 | |
11844 ac_status=$? | |
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11846 (exit $ac_status); }; } && | |
11847 { ac_try='test -s conftest.$ac_objext' | |
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11849 (eval $ac_try) 2>&5 | |
11850 ac_status=$? | |
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11852 (exit $ac_status); }; }; then | |
11853 ac_cv_type_pid_t=yes | |
11854 else | |
11855 echo "$as_me: failed program was:" >&5 | |
11856 sed 's/^/| /' conftest.$ac_ext >&5 | |
11857 | |
11858 ac_cv_type_pid_t=no | |
11859 fi | |
11860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11861 fi | |
11862 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
11863 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
11864 if test $ac_cv_type_pid_t = yes; then | |
11865 : | |
11866 else | |
11867 | |
11868 cat >>confdefs.h <<_ACEOF | |
11869 #define pid_t int | |
11870 _ACEOF | |
11871 | |
11872 fi | |
11873 | |
11874 echo "$as_me:$LINENO: checking for size_t" >&5 | |
11875 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
11876 if test "${ac_cv_type_size_t+set}" = set; then | |
11877 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11878 else | |
11879 cat >conftest.$ac_ext <<_ACEOF | |
11880 /* confdefs.h. */ | |
11881 _ACEOF | |
11882 cat confdefs.h >>conftest.$ac_ext | |
11883 cat >>conftest.$ac_ext <<_ACEOF | |
11884 /* end confdefs.h. */ | |
11885 $ac_includes_default | |
11886 int | |
11887 main () | |
11888 { | |
11889 if ((size_t *) 0) | |
11890 return 0; | |
11891 if (sizeof (size_t)) | |
11892 return 0; | |
11893 ; | |
11894 return 0; | |
6527 } | 11895 } |
6528 | 11896 _ACEOF |
6529 ; return 0; } | 11897 rm -f conftest.$ac_objext |
6530 EOF | 11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6531 if { (eval echo configure:6532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 11899 (eval $ac_compile) 2>conftest.er1 |
6532 rm -rf conftest* | 11900 ac_status=$? |
6533 ac_cv_c_const=yes | 11901 grep -v '^ *+' conftest.er1 >conftest.err |
6534 else | 11902 rm -f conftest.er1 |
6535 echo "configure: failed program was:" >&5 | 11903 cat conftest.err >&5 |
6536 cat conftest.$ac_ext >&5 | 11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6537 rm -rf conftest* | 11905 (exit $ac_status); } && |
6538 ac_cv_c_const=no | 11906 { ac_try='test -z "$ac_c_werror_flag" |
11907 || test ! -s conftest.err' | |
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11909 (eval $ac_try) 2>&5 | |
11910 ac_status=$? | |
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11912 (exit $ac_status); }; } && | |
11913 { ac_try='test -s conftest.$ac_objext' | |
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11915 (eval $ac_try) 2>&5 | |
11916 ac_status=$? | |
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11918 (exit $ac_status); }; }; then | |
11919 ac_cv_type_size_t=yes | |
11920 else | |
11921 echo "$as_me: failed program was:" >&5 | |
11922 sed 's/^/| /' conftest.$ac_ext >&5 | |
11923 | |
11924 ac_cv_type_size_t=no | |
11925 fi | |
11926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11927 fi | |
11928 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
11929 echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
11930 if test $ac_cv_type_size_t = yes; then | |
11931 : | |
11932 else | |
11933 | |
11934 cat >>confdefs.h <<_ACEOF | |
11935 #define size_t unsigned | |
11936 _ACEOF | |
11937 | |
11938 fi | |
11939 | |
11940 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
11941 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
11942 if test "${ac_cv_type_uid_t+set}" = set; then | |
11943 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11944 else | |
11945 cat >conftest.$ac_ext <<_ACEOF | |
11946 /* confdefs.h. */ | |
11947 _ACEOF | |
11948 cat confdefs.h >>conftest.$ac_ext | |
11949 cat >>conftest.$ac_ext <<_ACEOF | |
11950 /* end confdefs.h. */ | |
11951 #include <sys/types.h> | |
11952 | |
11953 _ACEOF | |
11954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11955 $EGREP "uid_t" >/dev/null 2>&1; then | |
11956 ac_cv_type_uid_t=yes | |
11957 else | |
11958 ac_cv_type_uid_t=no | |
6539 fi | 11959 fi |
6540 rm -f conftest* | 11960 rm -f conftest* |
6541 fi | 11961 |
6542 | 11962 fi |
6543 echo "$ac_t""$ac_cv_c_const" 1>&6 | 11963 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
6544 if test $ac_cv_c_const = no; then | 11964 echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
6545 cat >> confdefs.h <<\EOF | |
6546 #define const | |
6547 EOF | |
6548 | |
6549 fi | |
6550 | |
6551 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
6552 echo "configure:6553: checking for mode_t" >&5 | |
6553 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
6554 echo $ac_n "(cached) $ac_c" 1>&6 | |
6555 else | |
6556 cat > conftest.$ac_ext <<EOF | |
6557 #line 6558 "configure" | |
6558 #include "confdefs.h" | |
6559 #include <sys/types.h> | |
6560 #if STDC_HEADERS | |
6561 #include <stdlib.h> | |
6562 #include <stddef.h> | |
6563 #endif | |
6564 EOF | |
6565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6566 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
6567 rm -rf conftest* | |
6568 ac_cv_type_mode_t=yes | |
6569 else | |
6570 rm -rf conftest* | |
6571 ac_cv_type_mode_t=no | |
6572 fi | |
6573 rm -f conftest* | |
6574 | |
6575 fi | |
6576 echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
6577 if test $ac_cv_type_mode_t = no; then | |
6578 cat >> confdefs.h <<\EOF | |
6579 #define mode_t int | |
6580 EOF | |
6581 | |
6582 fi | |
6583 | |
6584 echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
6585 echo "configure:6586: checking for off_t" >&5 | |
6586 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
6587 echo $ac_n "(cached) $ac_c" 1>&6 | |
6588 else | |
6589 cat > conftest.$ac_ext <<EOF | |
6590 #line 6591 "configure" | |
6591 #include "confdefs.h" | |
6592 #include <sys/types.h> | |
6593 #if STDC_HEADERS | |
6594 #include <stdlib.h> | |
6595 #include <stddef.h> | |
6596 #endif | |
6597 EOF | |
6598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6599 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
6600 rm -rf conftest* | |
6601 ac_cv_type_off_t=yes | |
6602 else | |
6603 rm -rf conftest* | |
6604 ac_cv_type_off_t=no | |
6605 fi | |
6606 rm -f conftest* | |
6607 | |
6608 fi | |
6609 echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
6610 if test $ac_cv_type_off_t = no; then | |
6611 cat >> confdefs.h <<\EOF | |
6612 #define off_t long | |
6613 EOF | |
6614 | |
6615 fi | |
6616 | |
6617 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
6618 echo "configure:6619: checking for pid_t" >&5 | |
6619 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
6620 echo $ac_n "(cached) $ac_c" 1>&6 | |
6621 else | |
6622 cat > conftest.$ac_ext <<EOF | |
6623 #line 6624 "configure" | |
6624 #include "confdefs.h" | |
6625 #include <sys/types.h> | |
6626 #if STDC_HEADERS | |
6627 #include <stdlib.h> | |
6628 #include <stddef.h> | |
6629 #endif | |
6630 EOF | |
6631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6632 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
6633 rm -rf conftest* | |
6634 ac_cv_type_pid_t=yes | |
6635 else | |
6636 rm -rf conftest* | |
6637 ac_cv_type_pid_t=no | |
6638 fi | |
6639 rm -f conftest* | |
6640 | |
6641 fi | |
6642 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
6643 if test $ac_cv_type_pid_t = no; then | |
6644 cat >> confdefs.h <<\EOF | |
6645 #define pid_t int | |
6646 EOF | |
6647 | |
6648 fi | |
6649 | |
6650 echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
6651 echo "configure:6652: checking for size_t" >&5 | |
6652 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
6653 echo $ac_n "(cached) $ac_c" 1>&6 | |
6654 else | |
6655 cat > conftest.$ac_ext <<EOF | |
6656 #line 6657 "configure" | |
6657 #include "confdefs.h" | |
6658 #include <sys/types.h> | |
6659 #if STDC_HEADERS | |
6660 #include <stdlib.h> | |
6661 #include <stddef.h> | |
6662 #endif | |
6663 EOF | |
6664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6665 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
6666 rm -rf conftest* | |
6667 ac_cv_type_size_t=yes | |
6668 else | |
6669 rm -rf conftest* | |
6670 ac_cv_type_size_t=no | |
6671 fi | |
6672 rm -f conftest* | |
6673 | |
6674 fi | |
6675 echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
6676 if test $ac_cv_type_size_t = no; then | |
6677 cat >> confdefs.h <<\EOF | |
6678 #define size_t unsigned | |
6679 EOF | |
6680 | |
6681 fi | |
6682 | |
6683 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
6684 echo "configure:6685: checking for uid_t in sys/types.h" >&5 | |
6685 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
6686 echo $ac_n "(cached) $ac_c" 1>&6 | |
6687 else | |
6688 cat > conftest.$ac_ext <<EOF | |
6689 #line 6690 "configure" | |
6690 #include "confdefs.h" | |
6691 #include <sys/types.h> | |
6692 EOF | |
6693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6694 egrep "uid_t" >/dev/null 2>&1; then | |
6695 rm -rf conftest* | |
6696 ac_cv_type_uid_t=yes | |
6697 else | |
6698 rm -rf conftest* | |
6699 ac_cv_type_uid_t=no | |
6700 fi | |
6701 rm -f conftest* | |
6702 | |
6703 fi | |
6704 | |
6705 echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
6706 if test $ac_cv_type_uid_t = no; then | 11965 if test $ac_cv_type_uid_t = no; then |
6707 cat >> confdefs.h <<\EOF | 11966 |
11967 cat >>confdefs.h <<\_ACEOF | |
6708 #define uid_t int | 11968 #define uid_t int |
6709 EOF | 11969 _ACEOF |
6710 | 11970 |
6711 cat >> confdefs.h <<\EOF | 11971 |
11972 cat >>confdefs.h <<\_ACEOF | |
6712 #define gid_t int | 11973 #define gid_t int |
6713 EOF | 11974 _ACEOF |
6714 | 11975 |
6715 fi | 11976 fi |
6716 | 11977 |
6717 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 11978 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
6718 echo "configure:6719: checking whether time.h and sys/time.h may both be included" >&5 | 11979 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
6719 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 11980 if test "${ac_cv_header_time+set}" = set; then |
6720 echo $ac_n "(cached) $ac_c" 1>&6 | 11981 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6721 else | 11982 else |
6722 cat > conftest.$ac_ext <<EOF | 11983 cat >conftest.$ac_ext <<_ACEOF |
6723 #line 6724 "configure" | 11984 /* confdefs.h. */ |
6724 #include "confdefs.h" | 11985 _ACEOF |
11986 cat confdefs.h >>conftest.$ac_ext | |
11987 cat >>conftest.$ac_ext <<_ACEOF | |
11988 /* end confdefs.h. */ | |
6725 #include <sys/types.h> | 11989 #include <sys/types.h> |
6726 #include <sys/time.h> | 11990 #include <sys/time.h> |
6727 #include <time.h> | 11991 #include <time.h> |
6728 int main() { | 11992 |
6729 struct tm *tp; | 11993 int |
6730 ; return 0; } | 11994 main () |
6731 EOF | 11995 { |
6732 if { (eval echo configure:6733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 11996 if ((struct tm *) 0) |
6733 rm -rf conftest* | 11997 return 0; |
11998 ; | |
11999 return 0; | |
12000 } | |
12001 _ACEOF | |
12002 rm -f conftest.$ac_objext | |
12003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12004 (eval $ac_compile) 2>conftest.er1 | |
12005 ac_status=$? | |
12006 grep -v '^ *+' conftest.er1 >conftest.err | |
12007 rm -f conftest.er1 | |
12008 cat conftest.err >&5 | |
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12010 (exit $ac_status); } && | |
12011 { ac_try='test -z "$ac_c_werror_flag" | |
12012 || test ! -s conftest.err' | |
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12014 (eval $ac_try) 2>&5 | |
12015 ac_status=$? | |
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12017 (exit $ac_status); }; } && | |
12018 { ac_try='test -s conftest.$ac_objext' | |
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12020 (eval $ac_try) 2>&5 | |
12021 ac_status=$? | |
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12023 (exit $ac_status); }; }; then | |
6734 ac_cv_header_time=yes | 12024 ac_cv_header_time=yes |
6735 else | 12025 else |
6736 echo "configure: failed program was:" >&5 | 12026 echo "$as_me: failed program was:" >&5 |
6737 cat conftest.$ac_ext >&5 | 12027 sed 's/^/| /' conftest.$ac_ext >&5 |
6738 rm -rf conftest* | 12028 |
6739 ac_cv_header_time=no | 12029 ac_cv_header_time=no |
6740 fi | 12030 fi |
6741 rm -f conftest* | 12031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6742 fi | 12032 fi |
6743 | 12033 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
6744 echo "$ac_t""$ac_cv_header_time" 1>&6 | 12034 echo "${ECHO_T}$ac_cv_header_time" >&6 |
6745 if test $ac_cv_header_time = yes; then | 12035 if test $ac_cv_header_time = yes; then |
6746 cat >> confdefs.h <<\EOF | 12036 |
12037 cat >>confdefs.h <<\_ACEOF | |
6747 #define TIME_WITH_SYS_TIME 1 | 12038 #define TIME_WITH_SYS_TIME 1 |
6748 EOF | 12039 _ACEOF |
6749 | 12040 |
6750 fi | 12041 fi |
6751 | 12042 |
6752 echo $ac_n "checking for ino_t""... $ac_c" 1>&6 | 12043 echo "$as_me:$LINENO: checking for ino_t" >&5 |
6753 echo "configure:6754: checking for ino_t" >&5 | 12044 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6 |
6754 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then | 12045 if test "${ac_cv_type_ino_t+set}" = set; then |
6755 echo $ac_n "(cached) $ac_c" 1>&6 | 12046 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6756 else | 12047 else |
6757 cat > conftest.$ac_ext <<EOF | 12048 cat >conftest.$ac_ext <<_ACEOF |
6758 #line 6759 "configure" | 12049 /* confdefs.h. */ |
6759 #include "confdefs.h" | 12050 _ACEOF |
6760 #include <sys/types.h> | 12051 cat confdefs.h >>conftest.$ac_ext |
6761 #if STDC_HEADERS | 12052 cat >>conftest.$ac_ext <<_ACEOF |
6762 #include <stdlib.h> | 12053 /* end confdefs.h. */ |
6763 #include <stddef.h> | 12054 $ac_includes_default |
6764 #endif | 12055 int |
6765 EOF | 12056 main () |
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 12057 { |
6767 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 12058 if ((ino_t *) 0) |
6768 rm -rf conftest* | 12059 return 0; |
12060 if (sizeof (ino_t)) | |
12061 return 0; | |
12062 ; | |
12063 return 0; | |
12064 } | |
12065 _ACEOF | |
12066 rm -f conftest.$ac_objext | |
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12068 (eval $ac_compile) 2>conftest.er1 | |
12069 ac_status=$? | |
12070 grep -v '^ *+' conftest.er1 >conftest.err | |
12071 rm -f conftest.er1 | |
12072 cat conftest.err >&5 | |
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12074 (exit $ac_status); } && | |
12075 { ac_try='test -z "$ac_c_werror_flag" | |
12076 || test ! -s conftest.err' | |
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12078 (eval $ac_try) 2>&5 | |
12079 ac_status=$? | |
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12081 (exit $ac_status); }; } && | |
12082 { ac_try='test -s conftest.$ac_objext' | |
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12084 (eval $ac_try) 2>&5 | |
12085 ac_status=$? | |
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12087 (exit $ac_status); }; }; then | |
6769 ac_cv_type_ino_t=yes | 12088 ac_cv_type_ino_t=yes |
6770 else | 12089 else |
6771 rm -rf conftest* | 12090 echo "$as_me: failed program was:" >&5 |
6772 ac_cv_type_ino_t=no | 12091 sed 's/^/| /' conftest.$ac_ext >&5 |
6773 fi | 12092 |
6774 rm -f conftest* | 12093 ac_cv_type_ino_t=no |
6775 | 12094 fi |
6776 fi | 12095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6777 echo "$ac_t""$ac_cv_type_ino_t" 1>&6 | 12096 fi |
6778 if test $ac_cv_type_ino_t = no; then | 12097 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
6779 cat >> confdefs.h <<\EOF | 12098 echo "${ECHO_T}$ac_cv_type_ino_t" >&6 |
12099 if test $ac_cv_type_ino_t = yes; then | |
12100 : | |
12101 else | |
12102 | |
12103 cat >>confdefs.h <<_ACEOF | |
6780 #define ino_t long | 12104 #define ino_t long |
6781 EOF | 12105 _ACEOF |
6782 | 12106 |
6783 fi | 12107 fi |
6784 | 12108 |
6785 echo $ac_n "checking for dev_t""... $ac_c" 1>&6 | 12109 echo "$as_me:$LINENO: checking for dev_t" >&5 |
6786 echo "configure:6787: checking for dev_t" >&5 | 12110 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6 |
6787 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then | 12111 if test "${ac_cv_type_dev_t+set}" = set; then |
6788 echo $ac_n "(cached) $ac_c" 1>&6 | 12112 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6789 else | 12113 else |
6790 cat > conftest.$ac_ext <<EOF | 12114 cat >conftest.$ac_ext <<_ACEOF |
6791 #line 6792 "configure" | 12115 /* confdefs.h. */ |
6792 #include "confdefs.h" | 12116 _ACEOF |
6793 #include <sys/types.h> | 12117 cat confdefs.h >>conftest.$ac_ext |
6794 #if STDC_HEADERS | 12118 cat >>conftest.$ac_ext <<_ACEOF |
6795 #include <stdlib.h> | 12119 /* end confdefs.h. */ |
6796 #include <stddef.h> | 12120 $ac_includes_default |
6797 #endif | 12121 int |
6798 EOF | 12122 main () |
6799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 12123 { |
6800 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 12124 if ((dev_t *) 0) |
6801 rm -rf conftest* | 12125 return 0; |
12126 if (sizeof (dev_t)) | |
12127 return 0; | |
12128 ; | |
12129 return 0; | |
12130 } | |
12131 _ACEOF | |
12132 rm -f conftest.$ac_objext | |
12133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12134 (eval $ac_compile) 2>conftest.er1 | |
12135 ac_status=$? | |
12136 grep -v '^ *+' conftest.er1 >conftest.err | |
12137 rm -f conftest.er1 | |
12138 cat conftest.err >&5 | |
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12140 (exit $ac_status); } && | |
12141 { ac_try='test -z "$ac_c_werror_flag" | |
12142 || test ! -s conftest.err' | |
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12144 (eval $ac_try) 2>&5 | |
12145 ac_status=$? | |
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12147 (exit $ac_status); }; } && | |
12148 { ac_try='test -s conftest.$ac_objext' | |
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12150 (eval $ac_try) 2>&5 | |
12151 ac_status=$? | |
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12153 (exit $ac_status); }; }; then | |
6802 ac_cv_type_dev_t=yes | 12154 ac_cv_type_dev_t=yes |
6803 else | 12155 else |
6804 rm -rf conftest* | 12156 echo "$as_me: failed program was:" >&5 |
6805 ac_cv_type_dev_t=no | 12157 sed 's/^/| /' conftest.$ac_ext >&5 |
6806 fi | 12158 |
6807 rm -f conftest* | 12159 ac_cv_type_dev_t=no |
6808 | 12160 fi |
6809 fi | 12161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6810 echo "$ac_t""$ac_cv_type_dev_t" 1>&6 | 12162 fi |
6811 if test $ac_cv_type_dev_t = no; then | 12163 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
6812 cat >> confdefs.h <<\EOF | 12164 echo "${ECHO_T}$ac_cv_type_dev_t" >&6 |
12165 if test $ac_cv_type_dev_t = yes; then | |
12166 : | |
12167 else | |
12168 | |
12169 cat >>confdefs.h <<_ACEOF | |
6813 #define dev_t unsigned | 12170 #define dev_t unsigned |
6814 EOF | 12171 _ACEOF |
6815 | 12172 |
6816 fi | 12173 fi |
6817 | 12174 |
6818 | 12175 |
6819 echo $ac_n "checking for rlim_t""... $ac_c" 1>&6 | 12176 echo "$as_me:$LINENO: checking for rlim_t" >&5 |
6820 echo "configure:6821: checking for rlim_t" >&5 | 12177 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6 |
6821 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then | 12178 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
6822 echo "$ac_t""(cached) $ac_cv_type_rlim_t" 1>&6 | 12179 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
6823 else | 12180 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6 |
6824 cat > conftest.$ac_ext <<EOF | 12181 else |
6825 #line 6826 "configure" | 12182 cat >conftest.$ac_ext <<_ACEOF |
6826 #include "confdefs.h" | 12183 /* confdefs.h. */ |
12184 _ACEOF | |
12185 cat confdefs.h >>conftest.$ac_ext | |
12186 cat >>conftest.$ac_ext <<_ACEOF | |
12187 /* end confdefs.h. */ | |
6827 | 12188 |
6828 #include <sys/types.h> | 12189 #include <sys/types.h> |
6829 #if STDC_HEADERS | 12190 #if STDC_HEADERS |
6830 #include <stdlib.h> | 12191 #include <stdlib.h> |
6831 #include <stddef.h> | 12192 #include <stddef.h> |
6832 #endif | 12193 #endif |
6833 #ifdef HAVE_SYS_RESOURCE_H | 12194 #ifdef HAVE_SYS_RESOURCE_H |
6834 #include <sys/resource.h> | 12195 #include <sys/resource.h> |
6835 #endif | 12196 #endif |
6836 | 12197 |
6837 EOF | 12198 _ACEOF |
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 12199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6839 egrep "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 12200 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
6840 rm -rf conftest* | |
6841 ac_cv_type_rlim_t=yes | 12201 ac_cv_type_rlim_t=yes |
6842 else | 12202 else |
6843 rm -rf conftest* | |
6844 ac_cv_type_rlim_t=no | 12203 ac_cv_type_rlim_t=no |
6845 fi | 12204 fi |
6846 rm -f conftest* | 12205 rm -f conftest* |
6847 | 12206 |
6848 echo "$ac_t""$ac_cv_type_rlim_t" 1>&6 | 12207 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
12208 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6 | |
6849 fi | 12209 fi |
6850 if test $ac_cv_type_rlim_t = no; then | 12210 if test $ac_cv_type_rlim_t = no; then |
6851 cat >> confdefs.h <<\EOF | 12211 cat >> confdefs.h <<\EOF |
6852 #define rlim_t unsigned long | 12212 #define rlim_t unsigned long |
6853 EOF | 12213 EOF |
6854 fi | 12214 fi |
6855 | 12215 |
6856 echo $ac_n "checking for stack_t""... $ac_c" 1>&6 | 12216 echo "$as_me:$LINENO: checking for stack_t" >&5 |
6857 echo "configure:6858: checking for stack_t" >&5 | 12217 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6 |
6858 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then | 12218 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
6859 echo "$ac_t""(cached) $ac_cv_type_stack_t" 1>&6 | 12219 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
6860 else | 12220 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6 |
6861 cat > conftest.$ac_ext <<EOF | 12221 else |
6862 #line 6863 "configure" | 12222 cat >conftest.$ac_ext <<_ACEOF |
6863 #include "confdefs.h" | 12223 /* confdefs.h. */ |
12224 _ACEOF | |
12225 cat confdefs.h >>conftest.$ac_ext | |
12226 cat >>conftest.$ac_ext <<_ACEOF | |
12227 /* end confdefs.h. */ | |
6864 | 12228 |
6865 #include <sys/types.h> | 12229 #include <sys/types.h> |
6866 #if STDC_HEADERS | 12230 #if STDC_HEADERS |
6867 #include <stdlib.h> | 12231 #include <stdlib.h> |
6868 #include <stddef.h> | 12232 #include <stddef.h> |
6869 #endif | 12233 #endif |
6870 #include <signal.h> | 12234 #include <signal.h> |
6871 | 12235 |
6872 EOF | 12236 _ACEOF |
6873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 12237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6874 egrep "stack_t" >/dev/null 2>&1; then | 12238 $EGREP "stack_t" >/dev/null 2>&1; then |
6875 rm -rf conftest* | |
6876 ac_cv_type_stack_t=yes | 12239 ac_cv_type_stack_t=yes |
6877 else | 12240 else |
6878 rm -rf conftest* | |
6879 ac_cv_type_stack_t=no | 12241 ac_cv_type_stack_t=no |
6880 fi | 12242 fi |
6881 rm -f conftest* | 12243 rm -f conftest* |
6882 | 12244 |
6883 echo "$ac_t""$ac_cv_type_stack_t" 1>&6 | 12245 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
12246 echo "${ECHO_T}$ac_cv_type_stack_t" >&6 | |
6884 fi | 12247 fi |
6885 if test $ac_cv_type_stack_t = no; then | 12248 if test $ac_cv_type_stack_t = no; then |
6886 cat >> confdefs.h <<\EOF | 12249 cat >> confdefs.h <<\EOF |
6887 #define stack_t struct sigaltstack | 12250 #define stack_t struct sigaltstack |
6888 EOF | 12251 EOF |
6889 fi | 12252 fi |
6890 | 12253 |
6891 echo $ac_n "checking whether stack_t has an ss_base field""... $ac_c" 1>&6 | 12254 echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
6892 echo "configure:6893: checking whether stack_t has an ss_base field" >&5 | 12255 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6 |
6893 cat > conftest.$ac_ext <<EOF | 12256 cat >conftest.$ac_ext <<_ACEOF |
6894 #line 6895 "configure" | 12257 /* confdefs.h. */ |
6895 #include "confdefs.h" | 12258 _ACEOF |
12259 cat confdefs.h >>conftest.$ac_ext | |
12260 cat >>conftest.$ac_ext <<_ACEOF | |
12261 /* end confdefs.h. */ | |
6896 | 12262 |
6897 #include <sys/types.h> | 12263 #include <sys/types.h> |
6898 #if STDC_HEADERS | 12264 #if STDC_HEADERS |
6899 #include <stdlib.h> | 12265 #include <stdlib.h> |
6900 #include <stddef.h> | 12266 #include <stddef.h> |
6901 #endif | 12267 #endif |
6902 #include <signal.h> | 12268 #include <signal.h> |
6903 #include "confdefs.h" | 12269 #include "confdefs.h" |
6904 | 12270 |
6905 int main() { | 12271 int |
6906 stack_t sigstk; sigstk.ss_base = 0; | 12272 main () |
6907 ; return 0; } | 12273 { |
6908 EOF | 12274 stack_t sigstk; sigstk.ss_base = 0; |
6909 if { (eval echo configure:6910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 12275 ; |
6910 rm -rf conftest* | 12276 return 0; |
6911 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 12277 } |
12278 _ACEOF | |
12279 rm -f conftest.$ac_objext | |
12280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12281 (eval $ac_compile) 2>conftest.er1 | |
12282 ac_status=$? | |
12283 grep -v '^ *+' conftest.er1 >conftest.err | |
12284 rm -f conftest.er1 | |
12285 cat conftest.err >&5 | |
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12287 (exit $ac_status); } && | |
12288 { ac_try='test -z "$ac_c_werror_flag" | |
12289 || test ! -s conftest.err' | |
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12291 (eval $ac_try) 2>&5 | |
12292 ac_status=$? | |
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12294 (exit $ac_status); }; } && | |
12295 { ac_try='test -s conftest.$ac_objext' | |
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12297 (eval $ac_try) 2>&5 | |
12298 ac_status=$? | |
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12300 (exit $ac_status); }; }; then | |
12301 echo "$as_me:$LINENO: result: yes" >&5 | |
12302 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
6912 #define HAVE_SS_BASE 1 | 12303 #define HAVE_SS_BASE 1 |
6913 EOF | 12304 _ACEOF |
6914 | 12305 |
6915 else | 12306 else |
6916 echo "configure: failed program was:" >&5 | 12307 echo "$as_me: failed program was:" >&5 |
6917 cat conftest.$ac_ext >&5 | 12308 sed 's/^/| /' conftest.$ac_ext >&5 |
6918 rm -rf conftest* | 12309 |
6919 echo "$ac_t""no" 1>&6 | 12310 echo "$as_me:$LINENO: result: no" >&5 |
6920 fi | 12311 echo "${ECHO_T}no" >&6 |
6921 rm -f conftest* | 12312 fi |
12313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6922 | 12314 |
6923 olibs="$LIBS" | 12315 olibs="$LIBS" |
6924 echo $ac_n "checking --with-tlib argument""... $ac_c" 1>&6 | 12316 echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
6925 echo "configure:6926: checking --with-tlib argument" >&5 | 12317 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6 |
12318 | |
6926 # Check whether --with-tlib or --without-tlib was given. | 12319 # Check whether --with-tlib or --without-tlib was given. |
6927 if test "${with_tlib+set}" = set; then | 12320 if test "${with_tlib+set}" = set; then |
6928 withval="$with_tlib" | 12321 withval="$with_tlib" |
6929 : | 12322 |
6930 fi | 12323 fi; |
6931 | |
6932 if test -n "$with_tlib"; then | 12324 if test -n "$with_tlib"; then |
6933 echo "$ac_t""$with_tlib" 1>&6 | 12325 echo "$as_me:$LINENO: result: $with_tlib" >&5 |
12326 echo "${ECHO_T}$with_tlib" >&6 | |
6934 LIBS="$LIBS -l$with_tlib" | 12327 LIBS="$LIBS -l$with_tlib" |
6935 echo $ac_n "checking for linking with $with_tlib library""... $ac_c" 1>&6 | 12328 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
6936 echo "configure:6937: checking for linking with $with_tlib library" >&5 | 12329 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6 |
6937 cat > conftest.$ac_ext <<EOF | 12330 cat >conftest.$ac_ext <<_ACEOF |
6938 #line 6939 "configure" | 12331 /* confdefs.h. */ |
6939 #include "confdefs.h" | 12332 _ACEOF |
6940 | 12333 cat confdefs.h >>conftest.$ac_ext |
6941 int main() { | 12334 cat >>conftest.$ac_ext <<_ACEOF |
6942 | 12335 /* end confdefs.h. */ |
6943 ; return 0; } | 12336 |
6944 EOF | 12337 int |
6945 if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12338 main () |
6946 rm -rf conftest* | 12339 { |
6947 echo "$ac_t""OK" 1>&6 | 12340 |
6948 else | 12341 ; |
6949 echo "configure: failed program was:" >&5 | 12342 return 0; |
6950 cat conftest.$ac_ext >&5 | 12343 } |
6951 rm -rf conftest* | 12344 _ACEOF |
6952 { echo "configure: error: FAILED" 1>&2; exit 1; } | 12345 rm -f conftest.$ac_objext conftest$ac_exeext |
6953 fi | 12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6954 rm -f conftest* | 12347 (eval $ac_link) 2>conftest.er1 |
12348 ac_status=$? | |
12349 grep -v '^ *+' conftest.er1 >conftest.err | |
12350 rm -f conftest.er1 | |
12351 cat conftest.err >&5 | |
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12353 (exit $ac_status); } && | |
12354 { ac_try='test -z "$ac_c_werror_flag" | |
12355 || test ! -s conftest.err' | |
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12357 (eval $ac_try) 2>&5 | |
12358 ac_status=$? | |
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12360 (exit $ac_status); }; } && | |
12361 { ac_try='test -s conftest$ac_exeext' | |
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12363 (eval $ac_try) 2>&5 | |
12364 ac_status=$? | |
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12366 (exit $ac_status); }; }; then | |
12367 echo "$as_me:$LINENO: result: OK" >&5 | |
12368 echo "${ECHO_T}OK" >&6 | |
12369 else | |
12370 echo "$as_me: failed program was:" >&5 | |
12371 sed 's/^/| /' conftest.$ac_ext >&5 | |
12372 | |
12373 { { echo "$as_me:$LINENO: error: FAILED" >&5 | |
12374 echo "$as_me: error: FAILED" >&2;} | |
12375 { (exit 1); exit 1; }; } | |
12376 fi | |
12377 rm -f conftest.err conftest.$ac_objext \ | |
12378 conftest$ac_exeext conftest.$ac_ext | |
6955 olibs="$LIBS" | 12379 olibs="$LIBS" |
6956 else | 12380 else |
6957 echo "$ac_t""empty: automatic terminal library selection" 1>&6 | 12381 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
12382 echo "${ECHO_T}empty: automatic terminal library selection" >&6 | |
6958 case "`uname -s 2>/dev/null`" in | 12383 case "`uname -s 2>/dev/null`" in |
6959 OSF1) tlibs="ncurses curses termlib termcap";; | 12384 OSF1) tlibs="ncurses curses termlib termcap";; |
6960 *) tlibs="ncurses termlib termcap curses";; | 12385 *) tlibs="ncurses termlib termcap curses";; |
6961 esac | 12386 esac |
6962 for libname in $tlibs; do | 12387 for libname in $tlibs; do |
6963 echo $ac_n "checking for tgetent in -l${libname}""... $ac_c" 1>&6 | 12388 |
6964 echo "configure:6965: checking for tgetent in -l${libname}" >&5 | 12389 as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
6965 ac_lib_var=`echo ${libname}'_'tgetent | sed 'y%./+-%__p_%'` | 12390 echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
6966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 12391 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6 |
6967 echo $ac_n "(cached) $ac_c" 1>&6 | 12392 if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
6968 else | 12393 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6969 ac_save_LIBS="$LIBS" | 12394 else |
12395 ac_check_lib_save_LIBS=$LIBS | |
6970 LIBS="-l${libname} $LIBS" | 12396 LIBS="-l${libname} $LIBS" |
6971 cat > conftest.$ac_ext <<EOF | 12397 cat >conftest.$ac_ext <<_ACEOF |
6972 #line 6973 "configure" | 12398 /* confdefs.h. */ |
6973 #include "confdefs.h" | 12399 _ACEOF |
12400 cat confdefs.h >>conftest.$ac_ext | |
12401 cat >>conftest.$ac_ext <<_ACEOF | |
12402 /* end confdefs.h. */ | |
12403 | |
6974 /* Override any gcc2 internal prototype to avoid an error. */ | 12404 /* Override any gcc2 internal prototype to avoid an error. */ |
12405 #ifdef __cplusplus | |
12406 extern "C" | |
12407 #endif | |
6975 /* We use char because int might match the return type of a gcc2 | 12408 /* We use char because int might match the return type of a gcc2 |
6976 builtin and then its argument prototype would still apply. */ | 12409 builtin and then its argument prototype would still apply. */ |
6977 char tgetent(); | 12410 char tgetent (); |
6978 | 12411 int |
6979 int main() { | 12412 main () |
6980 tgetent() | 12413 { |
6981 ; return 0; } | 12414 tgetent (); |
6982 EOF | 12415 ; |
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12416 return 0; |
6984 rm -rf conftest* | 12417 } |
6985 eval "ac_cv_lib_$ac_lib_var=yes" | 12418 _ACEOF |
6986 else | 12419 rm -f conftest.$ac_objext conftest$ac_exeext |
6987 echo "configure: failed program was:" >&5 | 12420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6988 cat conftest.$ac_ext >&5 | 12421 (eval $ac_link) 2>conftest.er1 |
6989 rm -rf conftest* | 12422 ac_status=$? |
6990 eval "ac_cv_lib_$ac_lib_var=no" | 12423 grep -v '^ *+' conftest.er1 >conftest.err |
6991 fi | 12424 rm -f conftest.er1 |
6992 rm -f conftest* | 12425 cat conftest.err >&5 |
6993 LIBS="$ac_save_LIBS" | 12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6994 | 12427 (exit $ac_status); } && |
6995 fi | 12428 { ac_try='test -z "$ac_c_werror_flag" |
6996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 12429 || test ! -s conftest.err' |
6997 echo "$ac_t""yes" 1>&6 | 12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6998 ac_tr_lib=HAVE_LIB`echo ${libname} | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 12431 (eval $ac_try) 2>&5 |
6999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 12432 ac_status=$? |
7000 cat >> confdefs.h <<EOF | 12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7001 #define $ac_tr_lib 1 | 12434 (exit $ac_status); }; } && |
7002 EOF | 12435 { ac_try='test -s conftest$ac_exeext' |
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12437 (eval $ac_try) 2>&5 | |
12438 ac_status=$? | |
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12440 (exit $ac_status); }; }; then | |
12441 eval "$as_ac_Lib=yes" | |
12442 else | |
12443 echo "$as_me: failed program was:" >&5 | |
12444 sed 's/^/| /' conftest.$ac_ext >&5 | |
12445 | |
12446 eval "$as_ac_Lib=no" | |
12447 fi | |
12448 rm -f conftest.err conftest.$ac_objext \ | |
12449 conftest$ac_exeext conftest.$ac_ext | |
12450 LIBS=$ac_check_lib_save_LIBS | |
12451 fi | |
12452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
12453 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
12454 if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
12455 cat >>confdefs.h <<_ACEOF | |
12456 #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 | |
12457 _ACEOF | |
7003 | 12458 |
7004 LIBS="-l${libname} $LIBS" | 12459 LIBS="-l${libname} $LIBS" |
7005 | 12460 |
7006 else | |
7007 echo "$ac_t""no" 1>&6 | |
7008 fi | 12461 fi |
7009 | 12462 |
7010 if test "x$olibs" != "x$LIBS"; then | 12463 if test "x$olibs" != "x$LIBS"; then |
7011 if test "$cross_compiling" = yes; then | 12464 if test "$cross_compiling" = yes; then |
7012 res="FAIL" | 12465 res="FAIL" |
7013 else | 12466 else |
7014 cat > conftest.$ac_ext <<EOF | 12467 cat >conftest.$ac_ext <<_ACEOF |
7015 #line 7016 "configure" | 12468 /* confdefs.h. */ |
7016 #include "confdefs.h" | 12469 _ACEOF |
12470 cat confdefs.h >>conftest.$ac_ext | |
12471 cat >>conftest.$ac_ext <<_ACEOF | |
12472 /* end confdefs.h. */ | |
7017 | 12473 |
7018 #ifdef HAVE_TERMCAP_H | 12474 #ifdef HAVE_TERMCAP_H |
7019 # include <termcap.h> | 12475 # include <termcap.h> |
7020 #endif | 12476 #endif |
7021 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } | 12477 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
7022 EOF | 12478 _ACEOF |
7023 if { (eval echo configure:7024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 12479 rm -f conftest$ac_exeext |
7024 then | 12480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12481 (eval $ac_link) 2>&5 | |
12482 ac_status=$? | |
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12486 (eval $ac_try) 2>&5 | |
12487 ac_status=$? | |
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12489 (exit $ac_status); }; }; then | |
7025 res="OK" | 12490 res="OK" |
7026 else | 12491 else |
7027 echo "configure: failed program was:" >&5 | 12492 echo "$as_me: program exited with status $ac_status" >&5 |
7028 cat conftest.$ac_ext >&5 | 12493 echo "$as_me: failed program was:" >&5 |
7029 rm -fr conftest* | 12494 sed 's/^/| /' conftest.$ac_ext >&5 |
7030 res="FAIL" | 12495 |
7031 fi | 12496 ( exit $ac_status ) |
7032 rm -fr conftest* | 12497 res="FAIL" |
7033 fi | 12498 fi |
7034 | 12499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
12500 fi | |
7035 if test "$res" = "OK"; then | 12501 if test "$res" = "OK"; then |
7036 break | 12502 break |
7037 fi | 12503 fi |
7038 echo "$ac_t""$libname library is not usable" 1>&6 | 12504 echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
12505 echo "${ECHO_T}$libname library is not usable" >&6 | |
7039 LIBS="$olibs" | 12506 LIBS="$olibs" |
7040 fi | 12507 fi |
7041 done | 12508 done |
7042 if test "x$olibs" = "x$LIBS"; then | 12509 if test "x$olibs" = "x$LIBS"; then |
7043 echo "$ac_t""no terminal library found" 1>&6 | 12510 echo "$as_me:$LINENO: result: no terminal library found" >&5 |
12511 echo "${ECHO_T}no terminal library found" >&6 | |
7044 fi | 12512 fi |
7045 fi | 12513 fi |
7046 | 12514 |
7047 if test "x$olibs" = "x$LIBS"; then | 12515 if test "x$olibs" = "x$LIBS"; then |
7048 echo $ac_n "checking for tgetent()""... $ac_c" 1>&6 | 12516 echo "$as_me:$LINENO: checking for tgetent()" >&5 |
7049 echo "configure:7050: checking for tgetent()" >&5 | 12517 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6 |
7050 cat > conftest.$ac_ext <<EOF | 12518 cat >conftest.$ac_ext <<_ACEOF |
7051 #line 7052 "configure" | 12519 /* confdefs.h. */ |
7052 #include "confdefs.h" | 12520 _ACEOF |
7053 | 12521 cat confdefs.h >>conftest.$ac_ext |
7054 int main() { | 12522 cat >>conftest.$ac_ext <<_ACEOF |
12523 /* end confdefs.h. */ | |
12524 | |
12525 int | |
12526 main () | |
12527 { | |
7055 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); | 12528 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
7056 ; return 0; } | 12529 ; |
7057 EOF | 12530 return 0; |
7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12531 } |
7059 rm -rf conftest* | 12532 _ACEOF |
7060 echo "$ac_t""yes" 1>&6 | 12533 rm -f conftest.$ac_objext conftest$ac_exeext |
7061 else | 12534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7062 echo "configure: failed program was:" >&5 | 12535 (eval $ac_link) 2>conftest.er1 |
7063 cat conftest.$ac_ext >&5 | 12536 ac_status=$? |
7064 rm -rf conftest* | 12537 grep -v '^ *+' conftest.er1 >conftest.err |
7065 { echo "configure: error: NOT FOUND! | 12538 rm -f conftest.er1 |
12539 cat conftest.err >&5 | |
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12541 (exit $ac_status); } && | |
12542 { ac_try='test -z "$ac_c_werror_flag" | |
12543 || test ! -s conftest.err' | |
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12545 (eval $ac_try) 2>&5 | |
12546 ac_status=$? | |
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12548 (exit $ac_status); }; } && | |
12549 { ac_try='test -s conftest$ac_exeext' | |
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12551 (eval $ac_try) 2>&5 | |
12552 ac_status=$? | |
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12554 (exit $ac_status); }; }; then | |
12555 echo "$as_me:$LINENO: result: yes" >&5 | |
12556 echo "${ECHO_T}yes" >&6 | |
12557 else | |
12558 echo "$as_me: failed program was:" >&5 | |
12559 sed 's/^/| /' conftest.$ac_ext >&5 | |
12560 | |
12561 { { echo "$as_me:$LINENO: error: NOT FOUND! | |
7066 You need to install a terminal library; for example ncurses. | 12562 You need to install a terminal library; for example ncurses. |
7067 Or specify the name of the library with --with-tlib." 1>&2; exit 1; } | 12563 Or specify the name of the library with --with-tlib." >&5 |
7068 fi | 12564 echo "$as_me: error: NOT FOUND! |
7069 rm -f conftest* | 12565 You need to install a terminal library; for example ncurses. |
7070 fi | 12566 Or specify the name of the library with --with-tlib." >&2;} |
7071 | 12567 { (exit 1); exit 1; }; } |
7072 echo $ac_n "checking whether we talk terminfo""... $ac_c" 1>&6 | 12568 fi |
7073 echo "configure:7074: checking whether we talk terminfo" >&5 | 12569 rm -f conftest.err conftest.$ac_objext \ |
12570 conftest$ac_exeext conftest.$ac_ext | |
12571 fi | |
12572 | |
12573 echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 | |
12574 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6 | |
7074 if test "$cross_compiling" = yes; then | 12575 if test "$cross_compiling" = yes; then |
7075 { echo "configure: error: failed to compile test program." 1>&2; exit 1; } | 12576 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
7076 else | 12577 echo "$as_me: error: failed to compile test program." >&2;} |
7077 cat > conftest.$ac_ext <<EOF | 12578 { (exit 1); exit 1; }; } |
7078 #line 7079 "configure" | 12579 else |
7079 #include "confdefs.h" | 12580 cat >conftest.$ac_ext <<_ACEOF |
12581 /* confdefs.h. */ | |
12582 _ACEOF | |
12583 cat confdefs.h >>conftest.$ac_ext | |
12584 cat >>conftest.$ac_ext <<_ACEOF | |
12585 /* end confdefs.h. */ | |
7080 | 12586 |
7081 #ifdef HAVE_TERMCAP_H | 12587 #ifdef HAVE_TERMCAP_H |
7082 # include <termcap.h> | 12588 # include <termcap.h> |
7083 #endif | 12589 #endif |
7084 main() | 12590 main() |
7085 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } | 12591 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } |
7086 EOF | 12592 _ACEOF |
7087 if { (eval echo configure:7088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 12593 rm -f conftest$ac_exeext |
7088 then | 12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7089 echo "$ac_t""no -- we are in termcap land" 1>&6 | 12595 (eval $ac_link) 2>&5 |
7090 else | 12596 ac_status=$? |
7091 echo "configure: failed program was:" >&5 | 12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7092 cat conftest.$ac_ext >&5 | 12598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7093 rm -fr conftest* | 12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7094 echo "$ac_t""yes -- terminfo spoken here" 1>&6; cat >> confdefs.h <<\EOF | 12600 (eval $ac_try) 2>&5 |
12601 ac_status=$? | |
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12603 (exit $ac_status); }; }; then | |
12604 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5 | |
12605 echo "${ECHO_T}no -- we are in termcap land" >&6 | |
12606 else | |
12607 echo "$as_me: program exited with status $ac_status" >&5 | |
12608 echo "$as_me: failed program was:" >&5 | |
12609 sed 's/^/| /' conftest.$ac_ext >&5 | |
12610 | |
12611 ( exit $ac_status ) | |
12612 echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5 | |
12613 echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF | |
7095 #define TERMINFO 1 | 12614 #define TERMINFO 1 |
7096 EOF | 12615 _ACEOF |
7097 | 12616 |
7098 fi | 12617 fi |
7099 rm -fr conftest* | 12618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7100 fi | 12619 fi |
7101 | |
7102 | 12620 |
7103 if test "x$olibs" != "x$LIBS"; then | 12621 if test "x$olibs" != "x$LIBS"; then |
7104 echo $ac_n "checking what tgetent() returns for an unknown terminal""... $ac_c" 1>&6 | 12622 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
7105 echo "configure:7106: checking what tgetent() returns for an unknown terminal" >&5 | 12623 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6 |
7106 if test "$cross_compiling" = yes; then | 12624 if test "$cross_compiling" = yes; then |
7107 { echo "configure: error: failed to compile test program." 1>&2; exit 1; } | 12625 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
7108 else | 12626 echo "$as_me: error: failed to compile test program." >&2;} |
7109 cat > conftest.$ac_ext <<EOF | 12627 { (exit 1); exit 1; }; } |
7110 #line 7111 "configure" | 12628 else |
7111 #include "confdefs.h" | 12629 cat >conftest.$ac_ext <<_ACEOF |
12630 /* confdefs.h. */ | |
12631 _ACEOF | |
12632 cat confdefs.h >>conftest.$ac_ext | |
12633 cat >>conftest.$ac_ext <<_ACEOF | |
12634 /* end confdefs.h. */ | |
7112 | 12635 |
7113 #ifdef HAVE_TERMCAP_H | 12636 #ifdef HAVE_TERMCAP_H |
7114 # include <termcap.h> | 12637 # include <termcap.h> |
7115 #endif | 12638 #endif |
7116 main() | 12639 main() |
7117 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } | 12640 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
7118 EOF | 12641 _ACEOF |
7119 if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 12642 rm -f conftest$ac_exeext |
7120 then | 12643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7121 echo "$ac_t""zero" 1>&6; cat >> confdefs.h <<\EOF | 12644 (eval $ac_link) 2>&5 |
12645 ac_status=$? | |
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12649 (eval $ac_try) 2>&5 | |
12650 ac_status=$? | |
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12652 (exit $ac_status); }; }; then | |
12653 echo "$as_me:$LINENO: result: zero" >&5 | |
12654 echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF | |
7122 #define TGETENT_ZERO_ERR 0 | 12655 #define TGETENT_ZERO_ERR 0 |
7123 EOF | 12656 _ACEOF |
7124 | 12657 |
7125 else | 12658 else |
7126 echo "configure: failed program was:" >&5 | 12659 echo "$as_me: program exited with status $ac_status" >&5 |
7127 cat conftest.$ac_ext >&5 | 12660 echo "$as_me: failed program was:" >&5 |
7128 rm -fr conftest* | 12661 sed 's/^/| /' conftest.$ac_ext >&5 |
7129 echo "$ac_t""non-zero" 1>&6 | 12662 |
7130 fi | 12663 ( exit $ac_status ) |
7131 rm -fr conftest* | 12664 echo "$as_me:$LINENO: result: non-zero" >&5 |
7132 fi | 12665 echo "${ECHO_T}non-zero" >&6 |
7133 | 12666 fi |
7134 fi | 12667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7135 | 12668 fi |
7136 echo $ac_n "checking whether termcap.h contains ospeed""... $ac_c" 1>&6 | 12669 fi |
7137 echo "configure:7138: checking whether termcap.h contains ospeed" >&5 | 12670 |
7138 cat > conftest.$ac_ext <<EOF | 12671 echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
7139 #line 7140 "configure" | 12672 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6 |
7140 #include "confdefs.h" | 12673 cat >conftest.$ac_ext <<_ACEOF |
12674 /* confdefs.h. */ | |
12675 _ACEOF | |
12676 cat confdefs.h >>conftest.$ac_ext | |
12677 cat >>conftest.$ac_ext <<_ACEOF | |
12678 /* end confdefs.h. */ | |
7141 | 12679 |
7142 #ifdef HAVE_TERMCAP_H | 12680 #ifdef HAVE_TERMCAP_H |
7143 # include <termcap.h> | 12681 # include <termcap.h> |
7144 #endif | 12682 #endif |
7145 | 12683 |
7146 int main() { | 12684 int |
12685 main () | |
12686 { | |
7147 ospeed = 20000 | 12687 ospeed = 20000 |
7148 ; return 0; } | 12688 ; |
7149 EOF | 12689 return 0; |
7150 if { (eval echo configure:7151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12690 } |
7151 rm -rf conftest* | 12691 _ACEOF |
7152 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 12692 rm -f conftest.$ac_objext conftest$ac_exeext |
12693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12694 (eval $ac_link) 2>conftest.er1 | |
12695 ac_status=$? | |
12696 grep -v '^ *+' conftest.er1 >conftest.err | |
12697 rm -f conftest.er1 | |
12698 cat conftest.err >&5 | |
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12700 (exit $ac_status); } && | |
12701 { ac_try='test -z "$ac_c_werror_flag" | |
12702 || test ! -s conftest.err' | |
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12704 (eval $ac_try) 2>&5 | |
12705 ac_status=$? | |
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12707 (exit $ac_status); }; } && | |
12708 { ac_try='test -s conftest$ac_exeext' | |
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12710 (eval $ac_try) 2>&5 | |
12711 ac_status=$? | |
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12713 (exit $ac_status); }; }; then | |
12714 echo "$as_me:$LINENO: result: yes" >&5 | |
12715 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7153 #define HAVE_OSPEED 1 | 12716 #define HAVE_OSPEED 1 |
7154 EOF | 12717 _ACEOF |
7155 | 12718 |
7156 else | 12719 else |
7157 echo "configure: failed program was:" >&5 | 12720 echo "$as_me: failed program was:" >&5 |
7158 cat conftest.$ac_ext >&5 | 12721 sed 's/^/| /' conftest.$ac_ext >&5 |
7159 rm -rf conftest* | 12722 |
7160 echo "$ac_t""no" 1>&6 | 12723 echo "$as_me:$LINENO: result: no" >&5 |
7161 echo $ac_n "checking whether ospeed can be extern""... $ac_c" 1>&6 | 12724 echo "${ECHO_T}no" >&6 |
7162 echo "configure:7163: checking whether ospeed can be extern" >&5 | 12725 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
7163 cat > conftest.$ac_ext <<EOF | 12726 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6 |
7164 #line 7165 "configure" | 12727 cat >conftest.$ac_ext <<_ACEOF |
7165 #include "confdefs.h" | 12728 /* confdefs.h. */ |
12729 _ACEOF | |
12730 cat confdefs.h >>conftest.$ac_ext | |
12731 cat >>conftest.$ac_ext <<_ACEOF | |
12732 /* end confdefs.h. */ | |
7166 | 12733 |
7167 #ifdef HAVE_TERMCAP_H | 12734 #ifdef HAVE_TERMCAP_H |
7168 # include <termcap.h> | 12735 # include <termcap.h> |
7169 #endif | 12736 #endif |
7170 extern short ospeed; | 12737 extern short ospeed; |
7171 | 12738 |
7172 int main() { | 12739 int |
12740 main () | |
12741 { | |
7173 ospeed = 20000 | 12742 ospeed = 20000 |
7174 ; return 0; } | 12743 ; |
7175 EOF | 12744 return 0; |
7176 if { (eval echo configure:7177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12745 } |
7177 rm -rf conftest* | 12746 _ACEOF |
7178 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 12747 rm -f conftest.$ac_objext conftest$ac_exeext |
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12749 (eval $ac_link) 2>conftest.er1 | |
12750 ac_status=$? | |
12751 grep -v '^ *+' conftest.er1 >conftest.err | |
12752 rm -f conftest.er1 | |
12753 cat conftest.err >&5 | |
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12755 (exit $ac_status); } && | |
12756 { ac_try='test -z "$ac_c_werror_flag" | |
12757 || test ! -s conftest.err' | |
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12759 (eval $ac_try) 2>&5 | |
12760 ac_status=$? | |
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12762 (exit $ac_status); }; } && | |
12763 { ac_try='test -s conftest$ac_exeext' | |
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12765 (eval $ac_try) 2>&5 | |
12766 ac_status=$? | |
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12768 (exit $ac_status); }; }; then | |
12769 echo "$as_me:$LINENO: result: yes" >&5 | |
12770 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7179 #define OSPEED_EXTERN 1 | 12771 #define OSPEED_EXTERN 1 |
7180 EOF | 12772 _ACEOF |
7181 | 12773 |
7182 else | 12774 else |
7183 echo "configure: failed program was:" >&5 | 12775 echo "$as_me: failed program was:" >&5 |
7184 cat conftest.$ac_ext >&5 | 12776 sed 's/^/| /' conftest.$ac_ext >&5 |
7185 rm -rf conftest* | 12777 |
7186 echo "$ac_t""no" 1>&6 | 12778 echo "$as_me:$LINENO: result: no" >&5 |
7187 fi | 12779 echo "${ECHO_T}no" >&6 |
7188 rm -f conftest* | 12780 fi |
7189 | 12781 rm -f conftest.err conftest.$ac_objext \ |
7190 fi | 12782 conftest$ac_exeext conftest.$ac_ext |
7191 rm -f conftest* | 12783 |
7192 | 12784 fi |
7193 echo $ac_n "checking whether termcap.h contains UP, BC and PC""... $ac_c" 1>&6 | 12785 rm -f conftest.err conftest.$ac_objext \ |
7194 echo "configure:7195: checking whether termcap.h contains UP, BC and PC" >&5 | 12786 conftest$ac_exeext conftest.$ac_ext |
7195 cat > conftest.$ac_ext <<EOF | 12787 |
7196 #line 7197 "configure" | 12788 echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
7197 #include "confdefs.h" | 12789 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6 |
12790 cat >conftest.$ac_ext <<_ACEOF | |
12791 /* confdefs.h. */ | |
12792 _ACEOF | |
12793 cat confdefs.h >>conftest.$ac_ext | |
12794 cat >>conftest.$ac_ext <<_ACEOF | |
12795 /* end confdefs.h. */ | |
7198 | 12796 |
7199 #ifdef HAVE_TERMCAP_H | 12797 #ifdef HAVE_TERMCAP_H |
7200 # include <termcap.h> | 12798 # include <termcap.h> |
7201 #endif | 12799 #endif |
7202 | 12800 |
7203 int main() { | 12801 int |
12802 main () | |
12803 { | |
7204 if (UP == 0 && BC == 0) PC = 1 | 12804 if (UP == 0 && BC == 0) PC = 1 |
7205 ; return 0; } | 12805 ; |
7206 EOF | 12806 return 0; |
7207 if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12807 } |
7208 rm -rf conftest* | 12808 _ACEOF |
7209 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 12809 rm -f conftest.$ac_objext conftest$ac_exeext |
12810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12811 (eval $ac_link) 2>conftest.er1 | |
12812 ac_status=$? | |
12813 grep -v '^ *+' conftest.er1 >conftest.err | |
12814 rm -f conftest.er1 | |
12815 cat conftest.err >&5 | |
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12817 (exit $ac_status); } && | |
12818 { ac_try='test -z "$ac_c_werror_flag" | |
12819 || test ! -s conftest.err' | |
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12821 (eval $ac_try) 2>&5 | |
12822 ac_status=$? | |
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12824 (exit $ac_status); }; } && | |
12825 { ac_try='test -s conftest$ac_exeext' | |
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12827 (eval $ac_try) 2>&5 | |
12828 ac_status=$? | |
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12830 (exit $ac_status); }; }; then | |
12831 echo "$as_me:$LINENO: result: yes" >&5 | |
12832 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7210 #define HAVE_UP_BC_PC 1 | 12833 #define HAVE_UP_BC_PC 1 |
7211 EOF | 12834 _ACEOF |
7212 | 12835 |
7213 else | 12836 else |
7214 echo "configure: failed program was:" >&5 | 12837 echo "$as_me: failed program was:" >&5 |
7215 cat conftest.$ac_ext >&5 | 12838 sed 's/^/| /' conftest.$ac_ext >&5 |
7216 rm -rf conftest* | 12839 |
7217 echo "$ac_t""no" 1>&6 | 12840 echo "$as_me:$LINENO: result: no" >&5 |
7218 echo $ac_n "checking whether UP, BC and PC can be extern""... $ac_c" 1>&6 | 12841 echo "${ECHO_T}no" >&6 |
7219 echo "configure:7220: checking whether UP, BC and PC can be extern" >&5 | 12842 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
7220 cat > conftest.$ac_ext <<EOF | 12843 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6 |
7221 #line 7222 "configure" | 12844 cat >conftest.$ac_ext <<_ACEOF |
7222 #include "confdefs.h" | 12845 /* confdefs.h. */ |
12846 _ACEOF | |
12847 cat confdefs.h >>conftest.$ac_ext | |
12848 cat >>conftest.$ac_ext <<_ACEOF | |
12849 /* end confdefs.h. */ | |
7223 | 12850 |
7224 #ifdef HAVE_TERMCAP_H | 12851 #ifdef HAVE_TERMCAP_H |
7225 # include <termcap.h> | 12852 # include <termcap.h> |
7226 #endif | 12853 #endif |
7227 extern char *UP, *BC, PC; | 12854 extern char *UP, *BC, PC; |
7228 | 12855 |
7229 int main() { | 12856 int |
12857 main () | |
12858 { | |
7230 if (UP == 0 && BC == 0) PC = 1 | 12859 if (UP == 0 && BC == 0) PC = 1 |
7231 ; return 0; } | 12860 ; |
7232 EOF | 12861 return 0; |
7233 if { (eval echo configure:7234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12862 } |
7234 rm -rf conftest* | 12863 _ACEOF |
7235 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 12864 rm -f conftest.$ac_objext conftest$ac_exeext |
12865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12866 (eval $ac_link) 2>conftest.er1 | |
12867 ac_status=$? | |
12868 grep -v '^ *+' conftest.er1 >conftest.err | |
12869 rm -f conftest.er1 | |
12870 cat conftest.err >&5 | |
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12872 (exit $ac_status); } && | |
12873 { ac_try='test -z "$ac_c_werror_flag" | |
12874 || test ! -s conftest.err' | |
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12876 (eval $ac_try) 2>&5 | |
12877 ac_status=$? | |
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12879 (exit $ac_status); }; } && | |
12880 { ac_try='test -s conftest$ac_exeext' | |
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12882 (eval $ac_try) 2>&5 | |
12883 ac_status=$? | |
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12885 (exit $ac_status); }; }; then | |
12886 echo "$as_me:$LINENO: result: yes" >&5 | |
12887 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7236 #define UP_BC_PC_EXTERN 1 | 12888 #define UP_BC_PC_EXTERN 1 |
7237 EOF | 12889 _ACEOF |
7238 | 12890 |
7239 else | 12891 else |
7240 echo "configure: failed program was:" >&5 | 12892 echo "$as_me: failed program was:" >&5 |
7241 cat conftest.$ac_ext >&5 | 12893 sed 's/^/| /' conftest.$ac_ext >&5 |
7242 rm -rf conftest* | 12894 |
7243 echo "$ac_t""no" 1>&6 | 12895 echo "$as_me:$LINENO: result: no" >&5 |
7244 fi | 12896 echo "${ECHO_T}no" >&6 |
7245 rm -f conftest* | 12897 fi |
7246 | 12898 rm -f conftest.err conftest.$ac_objext \ |
7247 fi | 12899 conftest$ac_exeext conftest.$ac_ext |
7248 rm -f conftest* | 12900 |
7249 | 12901 fi |
7250 echo $ac_n "checking whether tputs() uses outfuntype""... $ac_c" 1>&6 | 12902 rm -f conftest.err conftest.$ac_objext \ |
7251 echo "configure:7252: checking whether tputs() uses outfuntype" >&5 | 12903 conftest$ac_exeext conftest.$ac_ext |
7252 cat > conftest.$ac_ext <<EOF | 12904 |
7253 #line 7254 "configure" | 12905 echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
7254 #include "confdefs.h" | 12906 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6 |
12907 cat >conftest.$ac_ext <<_ACEOF | |
12908 /* confdefs.h. */ | |
12909 _ACEOF | |
12910 cat confdefs.h >>conftest.$ac_ext | |
12911 cat >>conftest.$ac_ext <<_ACEOF | |
12912 /* end confdefs.h. */ | |
7255 | 12913 |
7256 #ifdef HAVE_TERMCAP_H | 12914 #ifdef HAVE_TERMCAP_H |
7257 # include <termcap.h> | 12915 # include <termcap.h> |
7258 #endif | 12916 #endif |
7259 | 12917 |
7260 int main() { | 12918 int |
12919 main () | |
12920 { | |
7261 extern int xx(); tputs("test", 1, (outfuntype)xx) | 12921 extern int xx(); tputs("test", 1, (outfuntype)xx) |
7262 ; return 0; } | 12922 ; |
7263 EOF | 12923 return 0; |
7264 if { (eval echo configure:7265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 12924 } |
7265 rm -rf conftest* | 12925 _ACEOF |
7266 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 12926 rm -f conftest.$ac_objext |
12927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12928 (eval $ac_compile) 2>conftest.er1 | |
12929 ac_status=$? | |
12930 grep -v '^ *+' conftest.er1 >conftest.err | |
12931 rm -f conftest.er1 | |
12932 cat conftest.err >&5 | |
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12934 (exit $ac_status); } && | |
12935 { ac_try='test -z "$ac_c_werror_flag" | |
12936 || test ! -s conftest.err' | |
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12938 (eval $ac_try) 2>&5 | |
12939 ac_status=$? | |
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12941 (exit $ac_status); }; } && | |
12942 { ac_try='test -s conftest.$ac_objext' | |
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12944 (eval $ac_try) 2>&5 | |
12945 ac_status=$? | |
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12947 (exit $ac_status); }; }; then | |
12948 echo "$as_me:$LINENO: result: yes" >&5 | |
12949 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7267 #define HAVE_OUTFUNTYPE 1 | 12950 #define HAVE_OUTFUNTYPE 1 |
7268 EOF | 12951 _ACEOF |
7269 | 12952 |
7270 else | 12953 else |
7271 echo "configure: failed program was:" >&5 | 12954 echo "$as_me: failed program was:" >&5 |
7272 cat conftest.$ac_ext >&5 | 12955 sed 's/^/| /' conftest.$ac_ext >&5 |
7273 rm -rf conftest* | 12956 |
7274 echo "$ac_t""no" 1>&6 | 12957 echo "$as_me:$LINENO: result: no" >&5 |
7275 fi | 12958 echo "${ECHO_T}no" >&6 |
7276 rm -f conftest* | 12959 fi |
7277 | 12960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7278 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 | 12961 |
7279 echo "configure:7280: checking whether sys/select.h and sys/time.h may both be included" >&5 | 12962 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
7280 cat > conftest.$ac_ext <<EOF | 12963 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
7281 #line 7282 "configure" | 12964 cat >conftest.$ac_ext <<_ACEOF |
7282 #include "confdefs.h" | 12965 /* confdefs.h. */ |
12966 _ACEOF | |
12967 cat confdefs.h >>conftest.$ac_ext | |
12968 cat >>conftest.$ac_ext <<_ACEOF | |
12969 /* end confdefs.h. */ | |
7283 | 12970 |
7284 #include <sys/types.h> | 12971 #include <sys/types.h> |
7285 #include <sys/time.h> | 12972 #include <sys/time.h> |
7286 #include <sys/select.h> | 12973 #include <sys/select.h> |
7287 int main() { | 12974 int |
7288 | 12975 main () |
7289 ; return 0; } | 12976 { |
7290 EOF | 12977 |
7291 if { (eval echo configure:7292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 12978 ; |
7292 rm -rf conftest* | 12979 return 0; |
7293 echo "$ac_t""yes" 1>&6 | 12980 } |
7294 cat >> confdefs.h <<\EOF | 12981 _ACEOF |
12982 rm -f conftest.$ac_objext | |
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12984 (eval $ac_compile) 2>conftest.er1 | |
12985 ac_status=$? | |
12986 grep -v '^ *+' conftest.er1 >conftest.err | |
12987 rm -f conftest.er1 | |
12988 cat conftest.err >&5 | |
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12990 (exit $ac_status); } && | |
12991 { ac_try='test -z "$ac_c_werror_flag" | |
12992 || test ! -s conftest.err' | |
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12994 (eval $ac_try) 2>&5 | |
12995 ac_status=$? | |
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12997 (exit $ac_status); }; } && | |
12998 { ac_try='test -s conftest.$ac_objext' | |
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13000 (eval $ac_try) 2>&5 | |
13001 ac_status=$? | |
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13003 (exit $ac_status); }; }; then | |
13004 echo "$as_me:$LINENO: result: yes" >&5 | |
13005 echo "${ECHO_T}yes" >&6 | |
13006 cat >>confdefs.h <<\_ACEOF | |
7295 #define SYS_SELECT_WITH_SYS_TIME 1 | 13007 #define SYS_SELECT_WITH_SYS_TIME 1 |
7296 EOF | 13008 _ACEOF |
7297 | 13009 |
7298 else | 13010 else |
7299 echo "configure: failed program was:" >&5 | 13011 echo "$as_me: failed program was:" >&5 |
7300 cat conftest.$ac_ext >&5 | 13012 sed 's/^/| /' conftest.$ac_ext >&5 |
7301 rm -rf conftest* | 13013 |
7302 echo "$ac_t""no" 1>&6 | 13014 echo "$as_me:$LINENO: result: no" >&5 |
7303 fi | 13015 echo "${ECHO_T}no" >&6 |
7304 rm -f conftest* | 13016 fi |
7305 | 13017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7306 | 13018 |
7307 echo $ac_n "checking for /dev/ptc""... $ac_c" 1>&6 | 13019 |
7308 echo "configure:7309: checking for /dev/ptc" >&5 | 13020 echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
13021 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 | |
7309 if test -r /dev/ptc; then | 13022 if test -r /dev/ptc; then |
7310 cat >> confdefs.h <<\EOF | 13023 cat >>confdefs.h <<\_ACEOF |
7311 #define HAVE_DEV_PTC 1 | 13024 #define HAVE_DEV_PTC 1 |
7312 EOF | 13025 _ACEOF |
7313 | 13026 |
7314 echo "$ac_t""yes" 1>&6 | 13027 echo "$as_me:$LINENO: result: yes" >&5 |
7315 else | 13028 echo "${ECHO_T}yes" >&6 |
7316 echo "$ac_t""no" 1>&6 | 13029 else |
7317 fi | 13030 echo "$as_me:$LINENO: result: no" >&5 |
7318 | 13031 echo "${ECHO_T}no" >&6 |
7319 echo $ac_n "checking for SVR4 ptys""... $ac_c" 1>&6 | 13032 fi |
7320 echo "configure:7321: checking for SVR4 ptys" >&5 | 13033 |
13034 echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 | |
13035 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6 | |
7321 if test -c /dev/ptmx ; then | 13036 if test -c /dev/ptmx ; then |
7322 cat > conftest.$ac_ext <<EOF | 13037 cat >conftest.$ac_ext <<_ACEOF |
7323 #line 7324 "configure" | 13038 /* confdefs.h. */ |
7324 #include "confdefs.h" | 13039 _ACEOF |
7325 | 13040 cat confdefs.h >>conftest.$ac_ext |
7326 int main() { | 13041 cat >>conftest.$ac_ext <<_ACEOF |
13042 /* end confdefs.h. */ | |
13043 | |
13044 int | |
13045 main () | |
13046 { | |
7327 ptsname(0);grantpt(0);unlockpt(0); | 13047 ptsname(0);grantpt(0);unlockpt(0); |
7328 ; return 0; } | 13048 ; |
7329 EOF | 13049 return 0; |
7330 if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13050 } |
7331 rm -rf conftest* | 13051 _ACEOF |
7332 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 13052 rm -f conftest.$ac_objext conftest$ac_exeext |
13053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13054 (eval $ac_link) 2>conftest.er1 | |
13055 ac_status=$? | |
13056 grep -v '^ *+' conftest.er1 >conftest.err | |
13057 rm -f conftest.er1 | |
13058 cat conftest.err >&5 | |
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13060 (exit $ac_status); } && | |
13061 { ac_try='test -z "$ac_c_werror_flag" | |
13062 || test ! -s conftest.err' | |
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13064 (eval $ac_try) 2>&5 | |
13065 ac_status=$? | |
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13067 (exit $ac_status); }; } && | |
13068 { ac_try='test -s conftest$ac_exeext' | |
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13070 (eval $ac_try) 2>&5 | |
13071 ac_status=$? | |
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13073 (exit $ac_status); }; }; then | |
13074 echo "$as_me:$LINENO: result: yes" >&5 | |
13075 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7333 #define HAVE_SVR4_PTYS 1 | 13076 #define HAVE_SVR4_PTYS 1 |
7334 EOF | 13077 _ACEOF |
7335 | 13078 |
7336 else | 13079 else |
7337 echo "configure: failed program was:" >&5 | 13080 echo "$as_me: failed program was:" >&5 |
7338 cat conftest.$ac_ext >&5 | 13081 sed 's/^/| /' conftest.$ac_ext >&5 |
7339 rm -rf conftest* | 13082 |
7340 echo "$ac_t""no" 1>&6 | 13083 echo "$as_me:$LINENO: result: no" >&5 |
7341 fi | 13084 echo "${ECHO_T}no" >&6 |
7342 rm -f conftest* | 13085 fi |
7343 else | 13086 rm -f conftest.err conftest.$ac_objext \ |
7344 echo "$ac_t""no" 1>&6 | 13087 conftest$ac_exeext conftest.$ac_ext |
7345 fi | 13088 else |
7346 | 13089 echo "$as_me:$LINENO: result: no" >&5 |
7347 echo $ac_n "checking for ptyranges""... $ac_c" 1>&6 | 13090 echo "${ECHO_T}no" >&6 |
7348 echo "configure:7349: checking for ptyranges" >&5 | 13091 fi |
13092 | |
13093 echo "$as_me:$LINENO: checking for ptyranges" >&5 | |
13094 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6 | |
7349 if test -d /dev/ptym ; then | 13095 if test -d /dev/ptym ; then |
7350 pdir='/dev/ptym' | 13096 pdir='/dev/ptym' |
7351 else | 13097 else |
7352 pdir='/dev' | 13098 pdir='/dev' |
7353 fi | 13099 fi |
7354 cat > conftest.$ac_ext <<EOF | 13100 cat >conftest.$ac_ext <<_ACEOF |
7355 #line 7356 "configure" | 13101 /* confdefs.h. */ |
7356 #include "confdefs.h" | 13102 _ACEOF |
13103 cat confdefs.h >>conftest.$ac_ext | |
13104 cat >>conftest.$ac_ext <<_ACEOF | |
13105 /* end confdefs.h. */ | |
7357 #ifdef M_UNIX | 13106 #ifdef M_UNIX |
7358 yes; | 13107 yes; |
7359 #endif | 13108 #endif |
7360 | 13109 |
7361 EOF | 13110 _ACEOF |
7362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 13111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7363 egrep "yes" >/dev/null 2>&1; then | 13112 $EGREP "yes" >/dev/null 2>&1; then |
7364 rm -rf conftest* | |
7365 ptys=`echo /dev/ptyp??` | 13113 ptys=`echo /dev/ptyp??` |
7366 else | 13114 else |
7367 rm -rf conftest* | |
7368 ptys=`echo $pdir/pty??` | 13115 ptys=`echo $pdir/pty??` |
7369 fi | 13116 fi |
7370 rm -f conftest* | 13117 rm -f conftest* |
7371 | 13118 |
7372 if test "$ptys" != "$pdir/pty??" ; then | 13119 if test "$ptys" != "$pdir/pty??" ; then |
7373 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` | 13120 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
7374 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` | 13121 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
7375 cat >> confdefs.h <<EOF | 13122 cat >>confdefs.h <<_ACEOF |
7376 #define PTYRANGE0 "$p0" | 13123 #define PTYRANGE0 "$p0" |
7377 EOF | 13124 _ACEOF |
7378 | 13125 |
7379 cat >> confdefs.h <<EOF | 13126 cat >>confdefs.h <<_ACEOF |
7380 #define PTYRANGE1 "$p1" | 13127 #define PTYRANGE1 "$p1" |
7381 EOF | 13128 _ACEOF |
7382 | 13129 |
7383 echo "$ac_t""$p0 / $p1" 1>&6 | 13130 echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
7384 else | 13131 echo "${ECHO_T}$p0 / $p1" >&6 |
7385 echo "$ac_t""don't know" 1>&6 | 13132 else |
7386 fi | 13133 echo "$as_me:$LINENO: result: don't know" >&5 |
7387 | 13134 echo "${ECHO_T}don't know" >&6 |
7388 echo $ac_n "checking default tty permissions/group""... $ac_c" 1>&6 | 13135 fi |
7389 echo "configure:7390: checking default tty permissions/group" >&5 | 13136 |
13137 echo "$as_me:$LINENO: checking default tty permissions/group" >&5 | |
13138 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6 | |
7390 rm -f conftest_grp | 13139 rm -f conftest_grp |
7391 if test "$cross_compiling" = yes; then | 13140 if test "$cross_compiling" = yes; then |
7392 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } | 13141 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
7393 else | 13142 echo "$as_me: error: failed to compile test program" >&2;} |
7394 cat > conftest.$ac_ext <<EOF | 13143 { (exit 1); exit 1; }; } |
7395 #line 7396 "configure" | 13144 else |
7396 #include "confdefs.h" | 13145 cat >conftest.$ac_ext <<_ACEOF |
13146 /* confdefs.h. */ | |
13147 _ACEOF | |
13148 cat confdefs.h >>conftest.$ac_ext | |
13149 cat >>conftest.$ac_ext <<_ACEOF | |
13150 /* end confdefs.h. */ | |
7397 | 13151 |
7398 #include <sys/types.h> | 13152 #include <sys/types.h> |
7399 #include <sys/stat.h> | 13153 #include <sys/stat.h> |
7400 #include <stdio.h> | 13154 #include <stdio.h> |
7401 main() | 13155 main() |
7421 fprintf(fp, "%d\n", sb.st_gid); | 13175 fprintf(fp, "%d\n", sb.st_gid); |
7422 fclose(fp); | 13176 fclose(fp); |
7423 exit(0); | 13177 exit(0); |
7424 } | 13178 } |
7425 | 13179 |
7426 EOF | 13180 _ACEOF |
7427 if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 13181 rm -f conftest$ac_exeext |
7428 then | 13182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7429 | 13183 (eval $ac_link) 2>&5 |
13184 ac_status=$? | |
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13188 (eval $ac_try) 2>&5 | |
13189 ac_status=$? | |
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13191 (exit $ac_status); }; }; then | |
13192 | |
7430 if test -f conftest_grp; then | 13193 if test -f conftest_grp; then |
7431 ptygrp=`cat conftest_grp` | 13194 ptygrp=`cat conftest_grp` |
7432 echo "$ac_t""pty mode: 0620, group: $ptygrp" 1>&6 | 13195 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5 |
7433 cat >> confdefs.h <<\EOF | 13196 echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6 |
13197 cat >>confdefs.h <<\_ACEOF | |
7434 #define PTYMODE 0620 | 13198 #define PTYMODE 0620 |
7435 EOF | 13199 _ACEOF |
7436 | 13200 |
7437 cat >> confdefs.h <<EOF | 13201 cat >>confdefs.h <<_ACEOF |
7438 #define PTYGROUP $ptygrp | 13202 #define PTYGROUP $ptygrp |
7439 EOF | 13203 _ACEOF |
7440 | 13204 |
7441 else | 13205 else |
7442 echo "$ac_t""ptys are world accessable" 1>&6 | 13206 echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
13207 echo "${ECHO_T}ptys are world accessable" >&6 | |
7443 fi | 13208 fi |
7444 | 13209 |
7445 else | 13210 else |
7446 echo "configure: failed program was:" >&5 | 13211 echo "$as_me: program exited with status $ac_status" >&5 |
7447 cat conftest.$ac_ext >&5 | 13212 echo "$as_me: failed program was:" >&5 |
7448 rm -fr conftest* | 13213 sed 's/^/| /' conftest.$ac_ext >&5 |
7449 echo "$ac_t""can't determine - assume ptys are world accessable" 1>&6 | 13214 |
7450 fi | 13215 ( exit $ac_status ) |
7451 rm -fr conftest* | 13216 echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
7452 fi | 13217 echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6 |
7453 | 13218 fi |
13219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13220 fi | |
7454 rm -f conftest_grp | 13221 rm -f conftest_grp |
7455 | 13222 |
7456 | 13223 |
7457 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 13224 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
7458 echo "configure:7459: checking return type of signal handlers" >&5 | 13225 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
7459 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 13226 if test "${ac_cv_type_signal+set}" = set; then |
7460 echo $ac_n "(cached) $ac_c" 1>&6 | 13227 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7461 else | 13228 else |
7462 cat > conftest.$ac_ext <<EOF | 13229 cat >conftest.$ac_ext <<_ACEOF |
7463 #line 7464 "configure" | 13230 /* confdefs.h. */ |
7464 #include "confdefs.h" | 13231 _ACEOF |
13232 cat confdefs.h >>conftest.$ac_ext | |
13233 cat >>conftest.$ac_ext <<_ACEOF | |
13234 /* end confdefs.h. */ | |
7465 #include <sys/types.h> | 13235 #include <sys/types.h> |
7466 #include <signal.h> | 13236 #include <signal.h> |
7467 #ifdef signal | 13237 #ifdef signal |
7468 #undef signal | 13238 # undef signal |
7469 #endif | 13239 #endif |
7470 #ifdef __cplusplus | 13240 #ifdef __cplusplus |
7471 extern "C" void (*signal (int, void (*)(int)))(int); | 13241 extern "C" void (*signal (int, void (*)(int)))(int); |
7472 #else | 13242 #else |
7473 void (*signal ()) (); | 13243 void (*signal ()) (); |
7474 #endif | 13244 #endif |
7475 | 13245 |
7476 int main() { | 13246 int |
13247 main () | |
13248 { | |
7477 int i; | 13249 int i; |
7478 ; return 0; } | 13250 ; |
7479 EOF | 13251 return 0; |
7480 if { (eval echo configure:7481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 13252 } |
7481 rm -rf conftest* | 13253 _ACEOF |
13254 rm -f conftest.$ac_objext | |
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13256 (eval $ac_compile) 2>conftest.er1 | |
13257 ac_status=$? | |
13258 grep -v '^ *+' conftest.er1 >conftest.err | |
13259 rm -f conftest.er1 | |
13260 cat conftest.err >&5 | |
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13262 (exit $ac_status); } && | |
13263 { ac_try='test -z "$ac_c_werror_flag" | |
13264 || test ! -s conftest.err' | |
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13266 (eval $ac_try) 2>&5 | |
13267 ac_status=$? | |
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13269 (exit $ac_status); }; } && | |
13270 { ac_try='test -s conftest.$ac_objext' | |
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13272 (eval $ac_try) 2>&5 | |
13273 ac_status=$? | |
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13275 (exit $ac_status); }; }; then | |
7482 ac_cv_type_signal=void | 13276 ac_cv_type_signal=void |
7483 else | 13277 else |
7484 echo "configure: failed program was:" >&5 | 13278 echo "$as_me: failed program was:" >&5 |
7485 cat conftest.$ac_ext >&5 | 13279 sed 's/^/| /' conftest.$ac_ext >&5 |
7486 rm -rf conftest* | 13280 |
7487 ac_cv_type_signal=int | 13281 ac_cv_type_signal=int |
7488 fi | 13282 fi |
7489 rm -f conftest* | 13283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7490 fi | 13284 fi |
7491 | 13285 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
7492 echo "$ac_t""$ac_cv_type_signal" 1>&6 | 13286 echo "${ECHO_T}$ac_cv_type_signal" >&6 |
7493 cat >> confdefs.h <<EOF | 13287 |
13288 cat >>confdefs.h <<_ACEOF | |
7494 #define RETSIGTYPE $ac_cv_type_signal | 13289 #define RETSIGTYPE $ac_cv_type_signal |
7495 EOF | 13290 _ACEOF |
7496 | 13291 |
7497 | 13292 |
7498 | 13293 |
7499 if test $ac_cv_type_signal = void; then | 13294 if test $ac_cv_type_signal = void; then |
7500 cat >> confdefs.h <<\EOF | 13295 cat >>confdefs.h <<\_ACEOF |
7501 #define SIGRETURN return | 13296 #define SIGRETURN return |
7502 EOF | 13297 _ACEOF |
7503 | 13298 |
7504 else | 13299 else |
7505 cat >> confdefs.h <<\EOF | 13300 cat >>confdefs.h <<\_ACEOF |
7506 #define SIGRETURN return 0 | 13301 #define SIGRETURN return 0 |
7507 EOF | 13302 _ACEOF |
7508 | 13303 |
7509 fi | 13304 fi |
7510 | 13305 |
7511 echo $ac_n "checking for struct sigcontext""... $ac_c" 1>&6 | 13306 echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
7512 echo "configure:7513: checking for struct sigcontext" >&5 | 13307 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6 |
7513 cat > conftest.$ac_ext <<EOF | 13308 cat >conftest.$ac_ext <<_ACEOF |
7514 #line 7515 "configure" | 13309 /* confdefs.h. */ |
7515 #include "confdefs.h" | 13310 _ACEOF |
13311 cat confdefs.h >>conftest.$ac_ext | |
13312 cat >>conftest.$ac_ext <<_ACEOF | |
13313 /* end confdefs.h. */ | |
7516 | 13314 |
7517 #include <signal.h> | 13315 #include <signal.h> |
7518 test_sig() | 13316 test_sig() |
7519 { | 13317 { |
7520 struct sigcontext *scont; | 13318 struct sigcontext *scont; |
7521 scont = (struct sigcontext *)0; | 13319 scont = (struct sigcontext *)0; |
7522 return 1; | 13320 return 1; |
7523 } | 13321 } |
7524 int main() { | 13322 int |
7525 | 13323 main () |
7526 ; return 0; } | 13324 { |
7527 EOF | 13325 |
7528 if { (eval echo configure:7529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 13326 ; |
7529 rm -rf conftest* | 13327 return 0; |
7530 echo "$ac_t""yes" 1>&6 | 13328 } |
7531 cat >> confdefs.h <<\EOF | 13329 _ACEOF |
13330 rm -f conftest.$ac_objext | |
13331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13332 (eval $ac_compile) 2>conftest.er1 | |
13333 ac_status=$? | |
13334 grep -v '^ *+' conftest.er1 >conftest.err | |
13335 rm -f conftest.er1 | |
13336 cat conftest.err >&5 | |
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13338 (exit $ac_status); } && | |
13339 { ac_try='test -z "$ac_c_werror_flag" | |
13340 || test ! -s conftest.err' | |
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13342 (eval $ac_try) 2>&5 | |
13343 ac_status=$? | |
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13345 (exit $ac_status); }; } && | |
13346 { ac_try='test -s conftest.$ac_objext' | |
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13348 (eval $ac_try) 2>&5 | |
13349 ac_status=$? | |
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13351 (exit $ac_status); }; }; then | |
13352 echo "$as_me:$LINENO: result: yes" >&5 | |
13353 echo "${ECHO_T}yes" >&6 | |
13354 cat >>confdefs.h <<\_ACEOF | |
7532 #define HAVE_SIGCONTEXT 1 | 13355 #define HAVE_SIGCONTEXT 1 |
7533 EOF | 13356 _ACEOF |
7534 | 13357 |
7535 else | 13358 else |
7536 echo "configure: failed program was:" >&5 | 13359 echo "$as_me: failed program was:" >&5 |
7537 cat conftest.$ac_ext >&5 | 13360 sed 's/^/| /' conftest.$ac_ext >&5 |
7538 rm -rf conftest* | 13361 |
7539 echo "$ac_t""no" 1>&6 | 13362 echo "$as_me:$LINENO: result: no" >&5 |
7540 fi | 13363 echo "${ECHO_T}no" >&6 |
7541 rm -f conftest* | 13364 fi |
7542 | 13365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7543 echo $ac_n "checking getcwd implementation""... $ac_c" 1>&6 | 13366 |
7544 echo "configure:7545: checking getcwd implementation" >&5 | 13367 echo "$as_me:$LINENO: checking getcwd implementation" >&5 |
13368 echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6 | |
7545 if test "$cross_compiling" = yes; then | 13369 if test "$cross_compiling" = yes; then |
7546 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } | 13370 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
7547 else | 13371 echo "$as_me: error: failed to compile test program" >&2;} |
7548 cat > conftest.$ac_ext <<EOF | 13372 { (exit 1); exit 1; }; } |
7549 #line 7550 "configure" | 13373 else |
7550 #include "confdefs.h" | 13374 cat >conftest.$ac_ext <<_ACEOF |
13375 /* confdefs.h. */ | |
13376 _ACEOF | |
13377 cat confdefs.h >>conftest.$ac_ext | |
13378 cat >>conftest.$ac_ext <<_ACEOF | |
13379 /* end confdefs.h. */ | |
7551 | 13380 |
7552 char *dagger[] = { "IFS=pwd", 0 }; | 13381 char *dagger[] = { "IFS=pwd", 0 }; |
7553 main() | 13382 main() |
7554 { | 13383 { |
7555 char buffer[500]; | 13384 char buffer[500]; |
7556 extern char **environ; | 13385 extern char **environ; |
7557 environ = dagger; | 13386 environ = dagger; |
7558 return getcwd(buffer, 500) ? 0 : 1; | 13387 return getcwd(buffer, 500) ? 0 : 1; |
7559 } | 13388 } |
7560 EOF | 13389 _ACEOF |
7561 if { (eval echo configure:7562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 13390 rm -f conftest$ac_exeext |
7562 then | 13391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7563 echo "$ac_t""it is usable" 1>&6 | 13392 (eval $ac_link) 2>&5 |
7564 else | 13393 ac_status=$? |
7565 echo "configure: failed program was:" >&5 | 13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7566 cat conftest.$ac_ext >&5 | 13395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7567 rm -fr conftest* | 13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7568 echo "$ac_t""it stinks" 1>&6 | 13397 (eval $ac_try) 2>&5 |
7569 cat >> confdefs.h <<\EOF | 13398 ac_status=$? |
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13400 (exit $ac_status); }; }; then | |
13401 echo "$as_me:$LINENO: result: it is usable" >&5 | |
13402 echo "${ECHO_T}it is usable" >&6 | |
13403 else | |
13404 echo "$as_me: program exited with status $ac_status" >&5 | |
13405 echo "$as_me: failed program was:" >&5 | |
13406 sed 's/^/| /' conftest.$ac_ext >&5 | |
13407 | |
13408 ( exit $ac_status ) | |
13409 echo "$as_me:$LINENO: result: it stinks" >&5 | |
13410 echo "${ECHO_T}it stinks" >&6 | |
13411 cat >>confdefs.h <<\_ACEOF | |
7570 #define BAD_GETCWD 1 | 13412 #define BAD_GETCWD 1 |
7571 EOF | 13413 _ACEOF |
7572 | 13414 |
7573 fi | 13415 fi |
7574 rm -fr conftest* | 13416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7575 fi | 13417 fi |
13418 | |
13419 | |
13420 | |
13421 | |
13422 | |
13423 | |
13424 | |
13425 | |
13426 | |
13427 | |
13428 | |
13429 | |
13430 | |
13431 | |
13432 | |
13433 | |
13434 | |
13435 | |
13436 | |
13437 | |
13438 | |
13439 | |
13440 | |
13441 | |
13442 | |
13443 | |
13444 | |
13445 | |
13446 | |
13447 | |
13448 | |
13449 | |
13450 | |
13451 | |
13452 | |
13453 | |
13454 | |
13455 | |
13456 | |
13457 | |
13458 | |
13459 | |
13460 | |
13461 | |
13462 | |
7576 | 13463 |
7577 | 13464 |
7578 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ | 13465 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
7579 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ | 13466 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
7580 memset nanosleep opendir putenv qsort readlink select setenv \ | 13467 memset nanosleep opendir putenv qsort readlink select setenv \ |
7581 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ | 13468 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
7582 sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \ | 13469 sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \ |
7583 strnicmp strpbrk strtol tgetent towlower towupper usleep utime utimes | 13470 strnicmp strpbrk strtol tgetent towlower towupper usleep utime utimes |
7584 do | 13471 do |
7585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 13472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7586 echo "configure:7587: checking for $ac_func" >&5 | 13473 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 13474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7588 echo $ac_n "(cached) $ac_c" 1>&6 | 13475 if eval "test \"\${$as_ac_var+set}\" = set"; then |
7589 else | 13476 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7590 cat > conftest.$ac_ext <<EOF | 13477 else |
7591 #line 7592 "configure" | 13478 cat >conftest.$ac_ext <<_ACEOF |
7592 #include "confdefs.h" | 13479 /* confdefs.h. */ |
13480 _ACEOF | |
13481 cat confdefs.h >>conftest.$ac_ext | |
13482 cat >>conftest.$ac_ext <<_ACEOF | |
13483 /* end confdefs.h. */ | |
13484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13485 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13486 #define $ac_func innocuous_$ac_func | |
13487 | |
7593 /* System header to define __stub macros and hopefully few prototypes, | 13488 /* System header to define __stub macros and hopefully few prototypes, |
7594 which can conflict with char $ac_func(); below. */ | 13489 which can conflict with char $ac_func (); below. |
7595 #include <assert.h> | 13490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13491 <limits.h> exists even on freestanding compilers. */ | |
13492 | |
13493 #ifdef __STDC__ | |
13494 # include <limits.h> | |
13495 #else | |
13496 # include <assert.h> | |
13497 #endif | |
13498 | |
13499 #undef $ac_func | |
13500 | |
7596 /* Override any gcc2 internal prototype to avoid an error. */ | 13501 /* Override any gcc2 internal prototype to avoid an error. */ |
13502 #ifdef __cplusplus | |
13503 extern "C" | |
13504 { | |
13505 #endif | |
7597 /* We use char because int might match the return type of a gcc2 | 13506 /* We use char because int might match the return type of a gcc2 |
7598 builtin and then its argument prototype would still apply. */ | 13507 builtin and then its argument prototype would still apply. */ |
7599 char $ac_func(); | 13508 char $ac_func (); |
7600 | |
7601 int main() { | |
7602 | |
7603 /* The GNU C library defines this for functions which it implements | 13509 /* The GNU C library defines this for functions which it implements |
7604 to always fail with ENOSYS. Some functions are actually named | 13510 to always fail with ENOSYS. Some functions are actually named |
7605 something starting with __ and the normal name is an alias. */ | 13511 something starting with __ and the normal name is an alias. */ |
7606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 13512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
7607 choke me | 13513 choke me |
7608 #else | 13514 #else |
7609 $ac_func(); | 13515 char (*f) () = $ac_func; |
7610 #endif | 13516 #endif |
7611 | 13517 #ifdef __cplusplus |
7612 ; return 0; } | 13518 } |
7613 EOF | 13519 #endif |
7614 if { (eval echo configure:7615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13520 |
7615 rm -rf conftest* | 13521 int |
7616 eval "ac_cv_func_$ac_func=yes" | 13522 main () |
7617 else | 13523 { |
7618 echo "configure: failed program was:" >&5 | 13524 return f != $ac_func; |
7619 cat conftest.$ac_ext >&5 | 13525 ; |
7620 rm -rf conftest* | 13526 return 0; |
7621 eval "ac_cv_func_$ac_func=no" | 13527 } |
7622 fi | 13528 _ACEOF |
7623 rm -f conftest* | 13529 rm -f conftest.$ac_objext conftest$ac_exeext |
7624 fi | 13530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7625 | 13531 (eval $ac_link) 2>conftest.er1 |
7626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 13532 ac_status=$? |
7627 echo "$ac_t""yes" 1>&6 | 13533 grep -v '^ *+' conftest.er1 >conftest.err |
7628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 13534 rm -f conftest.er1 |
7629 cat >> confdefs.h <<EOF | 13535 cat conftest.err >&5 |
7630 #define $ac_tr_func 1 | 13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7631 EOF | 13537 (exit $ac_status); } && |
7632 | 13538 { ac_try='test -z "$ac_c_werror_flag" |
7633 else | 13539 || test ! -s conftest.err' |
7634 echo "$ac_t""no" 1>&6 | 13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13541 (eval $ac_try) 2>&5 | |
13542 ac_status=$? | |
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13544 (exit $ac_status); }; } && | |
13545 { ac_try='test -s conftest$ac_exeext' | |
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13547 (eval $ac_try) 2>&5 | |
13548 ac_status=$? | |
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13550 (exit $ac_status); }; }; then | |
13551 eval "$as_ac_var=yes" | |
13552 else | |
13553 echo "$as_me: failed program was:" >&5 | |
13554 sed 's/^/| /' conftest.$ac_ext >&5 | |
13555 | |
13556 eval "$as_ac_var=no" | |
13557 fi | |
13558 rm -f conftest.err conftest.$ac_objext \ | |
13559 conftest$ac_exeext conftest.$ac_ext | |
13560 fi | |
13561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13563 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13564 cat >>confdefs.h <<_ACEOF | |
13565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13566 _ACEOF | |
13567 | |
7635 fi | 13568 fi |
7636 done | 13569 done |
7637 | 13570 |
7638 | 13571 |
7639 echo $ac_n "checking for st_blksize""... $ac_c" 1>&6 | 13572 echo "$as_me:$LINENO: checking for st_blksize" >&5 |
7640 echo "configure:7641: checking for st_blksize" >&5 | 13573 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6 |
7641 cat > conftest.$ac_ext <<EOF | 13574 cat >conftest.$ac_ext <<_ACEOF |
7642 #line 7643 "configure" | 13575 /* confdefs.h. */ |
7643 #include "confdefs.h" | 13576 _ACEOF |
13577 cat confdefs.h >>conftest.$ac_ext | |
13578 cat >>conftest.$ac_ext <<_ACEOF | |
13579 /* end confdefs.h. */ | |
7644 #include <sys/types.h> | 13580 #include <sys/types.h> |
7645 #include <sys/stat.h> | 13581 #include <sys/stat.h> |
7646 int main() { | 13582 int |
13583 main () | |
13584 { | |
7647 struct stat st; | 13585 struct stat st; |
7648 int n; | 13586 int n; |
7649 | 13587 |
7650 stat("/", &st); | 13588 stat("/", &st); |
7651 n = (int)st.st_blksize; | 13589 n = (int)st.st_blksize; |
7652 ; return 0; } | 13590 ; |
7653 EOF | 13591 return 0; |
7654 if { (eval echo configure:7655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 13592 } |
7655 rm -rf conftest* | 13593 _ACEOF |
7656 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 13594 rm -f conftest.$ac_objext |
13595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13596 (eval $ac_compile) 2>conftest.er1 | |
13597 ac_status=$? | |
13598 grep -v '^ *+' conftest.er1 >conftest.err | |
13599 rm -f conftest.er1 | |
13600 cat conftest.err >&5 | |
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13602 (exit $ac_status); } && | |
13603 { ac_try='test -z "$ac_c_werror_flag" | |
13604 || test ! -s conftest.err' | |
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13606 (eval $ac_try) 2>&5 | |
13607 ac_status=$? | |
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13609 (exit $ac_status); }; } && | |
13610 { ac_try='test -s conftest.$ac_objext' | |
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13612 (eval $ac_try) 2>&5 | |
13613 ac_status=$? | |
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13615 (exit $ac_status); }; }; then | |
13616 echo "$as_me:$LINENO: result: yes" >&5 | |
13617 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7657 #define HAVE_ST_BLKSIZE 1 | 13618 #define HAVE_ST_BLKSIZE 1 |
7658 EOF | 13619 _ACEOF |
7659 | 13620 |
7660 else | 13621 else |
7661 echo "configure: failed program was:" >&5 | 13622 echo "$as_me: failed program was:" >&5 |
7662 cat conftest.$ac_ext >&5 | 13623 sed 's/^/| /' conftest.$ac_ext >&5 |
7663 rm -rf conftest* | 13624 |
7664 echo "$ac_t""no" 1>&6 | 13625 echo "$as_me:$LINENO: result: no" >&5 |
7665 fi | 13626 echo "${ECHO_T}no" >&6 |
7666 rm -f conftest* | 13627 fi |
7667 | 13628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7668 echo $ac_n "checking whether stat() ignores a trailing slash""... $ac_c" 1>&6 | 13629 |
7669 echo "configure:7670: checking whether stat() ignores a trailing slash" >&5 | 13630 echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
13631 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6 | |
7670 if test "$cross_compiling" = yes; then | 13632 if test "$cross_compiling" = yes; then |
7671 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } | 13633 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
7672 else | 13634 echo "$as_me: error: failed to compile test program" >&2;} |
7673 cat > conftest.$ac_ext <<EOF | 13635 { (exit 1); exit 1; }; } |
7674 #line 7675 "configure" | 13636 else |
7675 #include "confdefs.h" | 13637 cat >conftest.$ac_ext <<_ACEOF |
13638 /* confdefs.h. */ | |
13639 _ACEOF | |
13640 cat confdefs.h >>conftest.$ac_ext | |
13641 cat >>conftest.$ac_ext <<_ACEOF | |
13642 /* end confdefs.h. */ | |
7676 #include <sys/types.h> | 13643 #include <sys/types.h> |
7677 #include <sys/stat.h> | 13644 #include <sys/stat.h> |
7678 main() {struct stat st; exit(stat("configure/", &st) != 0); } | 13645 main() {struct stat st; exit(stat("configure/", &st) != 0); } |
7679 EOF | 13646 _ACEOF |
7680 if { (eval echo configure:7681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 13647 rm -f conftest$ac_exeext |
7681 then | 13648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7682 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 13649 (eval $ac_link) 2>&5 |
13650 ac_status=$? | |
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13654 (eval $ac_try) 2>&5 | |
13655 ac_status=$? | |
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13657 (exit $ac_status); }; }; then | |
13658 echo "$as_me:$LINENO: result: yes" >&5 | |
13659 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7683 #define STAT_IGNORES_SLASH 1 | 13660 #define STAT_IGNORES_SLASH 1 |
7684 EOF | 13661 _ACEOF |
7685 | 13662 |
7686 else | 13663 else |
7687 echo "configure: failed program was:" >&5 | 13664 echo "$as_me: program exited with status $ac_status" >&5 |
7688 cat conftest.$ac_ext >&5 | 13665 echo "$as_me: failed program was:" >&5 |
7689 rm -fr conftest* | 13666 sed 's/^/| /' conftest.$ac_ext >&5 |
7690 echo "$ac_t""no" 1>&6 | 13667 |
7691 fi | 13668 ( exit $ac_status ) |
7692 rm -fr conftest* | 13669 echo "$as_me:$LINENO: result: no" >&5 |
7693 fi | 13670 echo "${ECHO_T}no" >&6 |
7694 | 13671 fi |
7695 | 13672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7696 echo $ac_n "checking for iconv_open()""... $ac_c" 1>&6 | 13673 fi |
7697 echo "configure:7698: checking for iconv_open()" >&5 | 13674 |
13675 echo "$as_me:$LINENO: checking for iconv_open()" >&5 | |
13676 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6 | |
7698 save_LIBS="$LIBS" | 13677 save_LIBS="$LIBS" |
7699 LIBS="$LIBS -liconv" | 13678 LIBS="$LIBS -liconv" |
7700 cat > conftest.$ac_ext <<EOF | 13679 cat >conftest.$ac_ext <<_ACEOF |
7701 #line 7702 "configure" | 13680 /* confdefs.h. */ |
7702 #include "confdefs.h" | 13681 _ACEOF |
13682 cat confdefs.h >>conftest.$ac_ext | |
13683 cat >>conftest.$ac_ext <<_ACEOF | |
13684 /* end confdefs.h. */ | |
7703 | 13685 |
7704 #ifdef HAVE_ICONV_H | 13686 #ifdef HAVE_ICONV_H |
7705 # include <iconv.h> | 13687 # include <iconv.h> |
7706 #endif | 13688 #endif |
7707 | 13689 |
7708 int main() { | 13690 int |
13691 main () | |
13692 { | |
7709 iconv_open("fr", "to"); | 13693 iconv_open("fr", "to"); |
7710 ; return 0; } | 13694 ; |
7711 EOF | 13695 return 0; |
7712 if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13696 } |
7713 rm -rf conftest* | 13697 _ACEOF |
7714 echo "$ac_t""yes; with -liconv" 1>&6; cat >> confdefs.h <<\EOF | 13698 rm -f conftest.$ac_objext conftest$ac_exeext |
13699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13700 (eval $ac_link) 2>conftest.er1 | |
13701 ac_status=$? | |
13702 grep -v '^ *+' conftest.er1 >conftest.err | |
13703 rm -f conftest.er1 | |
13704 cat conftest.err >&5 | |
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13706 (exit $ac_status); } && | |
13707 { ac_try='test -z "$ac_c_werror_flag" | |
13708 || test ! -s conftest.err' | |
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13710 (eval $ac_try) 2>&5 | |
13711 ac_status=$? | |
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13713 (exit $ac_status); }; } && | |
13714 { ac_try='test -s conftest$ac_exeext' | |
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13716 (eval $ac_try) 2>&5 | |
13717 ac_status=$? | |
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13719 (exit $ac_status); }; }; then | |
13720 echo "$as_me:$LINENO: result: yes; with -liconv" >&5 | |
13721 echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF | |
7715 #define HAVE_ICONV 1 | 13722 #define HAVE_ICONV 1 |
7716 EOF | 13723 _ACEOF |
7717 | 13724 |
7718 else | 13725 else |
7719 echo "configure: failed program was:" >&5 | 13726 echo "$as_me: failed program was:" >&5 |
7720 cat conftest.$ac_ext >&5 | 13727 sed 's/^/| /' conftest.$ac_ext >&5 |
7721 rm -rf conftest* | 13728 |
7722 LIBS="$save_LIBS" | 13729 LIBS="$save_LIBS" |
7723 cat > conftest.$ac_ext <<EOF | 13730 cat >conftest.$ac_ext <<_ACEOF |
7724 #line 7725 "configure" | 13731 /* confdefs.h. */ |
7725 #include "confdefs.h" | 13732 _ACEOF |
13733 cat confdefs.h >>conftest.$ac_ext | |
13734 cat >>conftest.$ac_ext <<_ACEOF | |
13735 /* end confdefs.h. */ | |
7726 | 13736 |
7727 #ifdef HAVE_ICONV_H | 13737 #ifdef HAVE_ICONV_H |
7728 # include <iconv.h> | 13738 # include <iconv.h> |
7729 #endif | 13739 #endif |
7730 | 13740 |
7731 int main() { | 13741 int |
13742 main () | |
13743 { | |
7732 iconv_open("fr", "to"); | 13744 iconv_open("fr", "to"); |
7733 ; return 0; } | 13745 ; |
7734 EOF | 13746 return 0; |
7735 if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13747 } |
7736 rm -rf conftest* | 13748 _ACEOF |
7737 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 13749 rm -f conftest.$ac_objext conftest$ac_exeext |
13750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13751 (eval $ac_link) 2>conftest.er1 | |
13752 ac_status=$? | |
13753 grep -v '^ *+' conftest.er1 >conftest.err | |
13754 rm -f conftest.er1 | |
13755 cat conftest.err >&5 | |
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13757 (exit $ac_status); } && | |
13758 { ac_try='test -z "$ac_c_werror_flag" | |
13759 || test ! -s conftest.err' | |
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13761 (eval $ac_try) 2>&5 | |
13762 ac_status=$? | |
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13764 (exit $ac_status); }; } && | |
13765 { ac_try='test -s conftest$ac_exeext' | |
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13767 (eval $ac_try) 2>&5 | |
13768 ac_status=$? | |
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13770 (exit $ac_status); }; }; then | |
13771 echo "$as_me:$LINENO: result: yes" >&5 | |
13772 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7738 #define HAVE_ICONV 1 | 13773 #define HAVE_ICONV 1 |
7739 EOF | 13774 _ACEOF |
7740 | 13775 |
7741 else | 13776 else |
7742 echo "configure: failed program was:" >&5 | 13777 echo "$as_me: failed program was:" >&5 |
7743 cat conftest.$ac_ext >&5 | 13778 sed 's/^/| /' conftest.$ac_ext >&5 |
7744 rm -rf conftest* | 13779 |
7745 echo "$ac_t""no" 1>&6 | 13780 echo "$as_me:$LINENO: result: no" >&5 |
7746 fi | 13781 echo "${ECHO_T}no" >&6 |
7747 rm -f conftest* | 13782 fi |
7748 fi | 13783 rm -f conftest.err conftest.$ac_objext \ |
7749 rm -f conftest* | 13784 conftest$ac_exeext conftest.$ac_ext |
7750 | 13785 fi |
7751 | 13786 rm -f conftest.err conftest.$ac_objext \ |
7752 echo $ac_n "checking for nl_langinfo(CODESET)""... $ac_c" 1>&6 | 13787 conftest$ac_exeext conftest.$ac_ext |
7753 echo "configure:7754: checking for nl_langinfo(CODESET)" >&5 | 13788 |
7754 cat > conftest.$ac_ext <<EOF | 13789 |
7755 #line 7756 "configure" | 13790 echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
7756 #include "confdefs.h" | 13791 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6 |
13792 cat >conftest.$ac_ext <<_ACEOF | |
13793 /* confdefs.h. */ | |
13794 _ACEOF | |
13795 cat confdefs.h >>conftest.$ac_ext | |
13796 cat >>conftest.$ac_ext <<_ACEOF | |
13797 /* end confdefs.h. */ | |
7757 | 13798 |
7758 #ifdef HAVE_LANGINFO_H | 13799 #ifdef HAVE_LANGINFO_H |
7759 # include <langinfo.h> | 13800 # include <langinfo.h> |
7760 #endif | 13801 #endif |
7761 | 13802 |
7762 int main() { | 13803 int |
13804 main () | |
13805 { | |
7763 char *cs = nl_langinfo(CODESET); | 13806 char *cs = nl_langinfo(CODESET); |
7764 ; return 0; } | 13807 ; |
7765 EOF | 13808 return 0; |
7766 if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13809 } |
7767 rm -rf conftest* | 13810 _ACEOF |
7768 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 13811 rm -f conftest.$ac_objext conftest$ac_exeext |
13812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13813 (eval $ac_link) 2>conftest.er1 | |
13814 ac_status=$? | |
13815 grep -v '^ *+' conftest.er1 >conftest.err | |
13816 rm -f conftest.er1 | |
13817 cat conftest.err >&5 | |
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13819 (exit $ac_status); } && | |
13820 { ac_try='test -z "$ac_c_werror_flag" | |
13821 || test ! -s conftest.err' | |
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13823 (eval $ac_try) 2>&5 | |
13824 ac_status=$? | |
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13826 (exit $ac_status); }; } && | |
13827 { ac_try='test -s conftest$ac_exeext' | |
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13829 (eval $ac_try) 2>&5 | |
13830 ac_status=$? | |
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13832 (exit $ac_status); }; }; then | |
13833 echo "$as_me:$LINENO: result: yes" >&5 | |
13834 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7769 #define HAVE_NL_LANGINFO_CODESET 1 | 13835 #define HAVE_NL_LANGINFO_CODESET 1 |
7770 EOF | 13836 _ACEOF |
7771 | 13837 |
7772 else | 13838 else |
7773 echo "configure: failed program was:" >&5 | 13839 echo "$as_me: failed program was:" >&5 |
7774 cat conftest.$ac_ext >&5 | 13840 sed 's/^/| /' conftest.$ac_ext >&5 |
7775 rm -rf conftest* | 13841 |
7776 echo "$ac_t""no" 1>&6 | 13842 echo "$as_me:$LINENO: result: no" >&5 |
7777 fi | 13843 echo "${ECHO_T}no" >&6 |
7778 rm -f conftest* | 13844 fi |
7779 | 13845 rm -f conftest.err conftest.$ac_objext \ |
7780 echo $ac_n "checking --disable-acl argument""... $ac_c" 1>&6 | 13846 conftest$ac_exeext conftest.$ac_ext |
7781 echo "configure:7782: checking --disable-acl argument" >&5 | 13847 |
13848 echo "$as_me:$LINENO: checking --disable-acl argument" >&5 | |
13849 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6 | |
7782 # Check whether --enable-acl or --disable-acl was given. | 13850 # Check whether --enable-acl or --disable-acl was given. |
7783 if test "${enable_acl+set}" = set; then | 13851 if test "${enable_acl+set}" = set; then |
7784 enableval="$enable_acl" | 13852 enableval="$enable_acl" |
7785 : | 13853 |
7786 else | 13854 else |
7787 enable_acl="yes" | 13855 enable_acl="yes" |
7788 fi | 13856 fi; |
7789 | |
7790 if test "$enable_acl" = "yes"; then | 13857 if test "$enable_acl" = "yes"; then |
7791 echo "$ac_t""no" 1>&6 | 13858 echo "$as_me:$LINENO: result: no" >&5 |
7792 echo $ac_n "checking for acl_get_file in -lposix1e""... $ac_c" 1>&6 | 13859 echo "${ECHO_T}no" >&6 |
7793 echo "configure:7794: checking for acl_get_file in -lposix1e" >&5 | 13860 echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
7794 ac_lib_var=`echo posix1e'_'acl_get_file | sed 'y%./+-%__p_%'` | 13861 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6 |
7795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 13862 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
7796 echo $ac_n "(cached) $ac_c" 1>&6 | 13863 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7797 else | 13864 else |
7798 ac_save_LIBS="$LIBS" | 13865 ac_check_lib_save_LIBS=$LIBS |
7799 LIBS="-lposix1e $LIBS" | 13866 LIBS="-lposix1e $LIBS" |
7800 cat > conftest.$ac_ext <<EOF | 13867 cat >conftest.$ac_ext <<_ACEOF |
7801 #line 7802 "configure" | 13868 /* confdefs.h. */ |
7802 #include "confdefs.h" | 13869 _ACEOF |
13870 cat confdefs.h >>conftest.$ac_ext | |
13871 cat >>conftest.$ac_ext <<_ACEOF | |
13872 /* end confdefs.h. */ | |
13873 | |
7803 /* Override any gcc2 internal prototype to avoid an error. */ | 13874 /* Override any gcc2 internal prototype to avoid an error. */ |
13875 #ifdef __cplusplus | |
13876 extern "C" | |
13877 #endif | |
7804 /* We use char because int might match the return type of a gcc2 | 13878 /* We use char because int might match the return type of a gcc2 |
7805 builtin and then its argument prototype would still apply. */ | 13879 builtin and then its argument prototype would still apply. */ |
7806 char acl_get_file(); | 13880 char acl_get_file (); |
7807 | 13881 int |
7808 int main() { | 13882 main () |
7809 acl_get_file() | 13883 { |
7810 ; return 0; } | 13884 acl_get_file (); |
7811 EOF | 13885 ; |
7812 if { (eval echo configure:7813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13886 return 0; |
7813 rm -rf conftest* | 13887 } |
7814 eval "ac_cv_lib_$ac_lib_var=yes" | 13888 _ACEOF |
7815 else | 13889 rm -f conftest.$ac_objext conftest$ac_exeext |
7816 echo "configure: failed program was:" >&5 | 13890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7817 cat conftest.$ac_ext >&5 | 13891 (eval $ac_link) 2>conftest.er1 |
7818 rm -rf conftest* | 13892 ac_status=$? |
7819 eval "ac_cv_lib_$ac_lib_var=no" | 13893 grep -v '^ *+' conftest.er1 >conftest.err |
7820 fi | 13894 rm -f conftest.er1 |
7821 rm -f conftest* | 13895 cat conftest.err >&5 |
7822 LIBS="$ac_save_LIBS" | 13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7823 | 13897 (exit $ac_status); } && |
7824 fi | 13898 { ac_try='test -z "$ac_c_werror_flag" |
7825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 13899 || test ! -s conftest.err' |
7826 echo "$ac_t""yes" 1>&6 | 13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13901 (eval $ac_try) 2>&5 | |
13902 ac_status=$? | |
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13904 (exit $ac_status); }; } && | |
13905 { ac_try='test -s conftest$ac_exeext' | |
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13907 (eval $ac_try) 2>&5 | |
13908 ac_status=$? | |
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13910 (exit $ac_status); }; }; then | |
13911 ac_cv_lib_posix1e_acl_get_file=yes | |
13912 else | |
13913 echo "$as_me: failed program was:" >&5 | |
13914 sed 's/^/| /' conftest.$ac_ext >&5 | |
13915 | |
13916 ac_cv_lib_posix1e_acl_get_file=no | |
13917 fi | |
13918 rm -f conftest.err conftest.$ac_objext \ | |
13919 conftest$ac_exeext conftest.$ac_ext | |
13920 LIBS=$ac_check_lib_save_LIBS | |
13921 fi | |
13922 echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 | |
13923 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6 | |
13924 if test $ac_cv_lib_posix1e_acl_get_file = yes; then | |
7827 LIBS="$LIBS -lposix1e" | 13925 LIBS="$LIBS -lposix1e" |
7828 else | 13926 else |
7829 echo "$ac_t""no" 1>&6 | 13927 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
7830 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6 | 13928 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6 |
7831 echo "configure:7832: checking for acl_get_file in -lacl" >&5 | 13929 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
7832 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'` | 13930 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 13931 else |
7834 echo $ac_n "(cached) $ac_c" 1>&6 | 13932 ac_check_lib_save_LIBS=$LIBS |
7835 else | |
7836 ac_save_LIBS="$LIBS" | |
7837 LIBS="-lacl $LIBS" | 13933 LIBS="-lacl $LIBS" |
7838 cat > conftest.$ac_ext <<EOF | 13934 cat >conftest.$ac_ext <<_ACEOF |
7839 #line 7840 "configure" | 13935 /* confdefs.h. */ |
7840 #include "confdefs.h" | 13936 _ACEOF |
13937 cat confdefs.h >>conftest.$ac_ext | |
13938 cat >>conftest.$ac_ext <<_ACEOF | |
13939 /* end confdefs.h. */ | |
13940 | |
7841 /* Override any gcc2 internal prototype to avoid an error. */ | 13941 /* Override any gcc2 internal prototype to avoid an error. */ |
13942 #ifdef __cplusplus | |
13943 extern "C" | |
13944 #endif | |
7842 /* We use char because int might match the return type of a gcc2 | 13945 /* We use char because int might match the return type of a gcc2 |
7843 builtin and then its argument prototype would still apply. */ | 13946 builtin and then its argument prototype would still apply. */ |
7844 char acl_get_file(); | 13947 char acl_get_file (); |
7845 | 13948 int |
7846 int main() { | 13949 main () |
7847 acl_get_file() | 13950 { |
7848 ; return 0; } | 13951 acl_get_file (); |
7849 EOF | 13952 ; |
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13953 return 0; |
7851 rm -rf conftest* | 13954 } |
7852 eval "ac_cv_lib_$ac_lib_var=yes" | 13955 _ACEOF |
7853 else | 13956 rm -f conftest.$ac_objext conftest$ac_exeext |
7854 echo "configure: failed program was:" >&5 | 13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7855 cat conftest.$ac_ext >&5 | 13958 (eval $ac_link) 2>conftest.er1 |
7856 rm -rf conftest* | 13959 ac_status=$? |
7857 eval "ac_cv_lib_$ac_lib_var=no" | 13960 grep -v '^ *+' conftest.er1 >conftest.err |
7858 fi | 13961 rm -f conftest.er1 |
7859 rm -f conftest* | 13962 cat conftest.err >&5 |
7860 LIBS="$ac_save_LIBS" | 13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7861 | 13964 (exit $ac_status); } && |
7862 fi | 13965 { ac_try='test -z "$ac_c_werror_flag" |
7863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 13966 || test ! -s conftest.err' |
7864 echo "$ac_t""yes" 1>&6 | 13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13968 (eval $ac_try) 2>&5 | |
13969 ac_status=$? | |
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13971 (exit $ac_status); }; } && | |
13972 { ac_try='test -s conftest$ac_exeext' | |
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13974 (eval $ac_try) 2>&5 | |
13975 ac_status=$? | |
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13977 (exit $ac_status); }; }; then | |
13978 ac_cv_lib_acl_acl_get_file=yes | |
13979 else | |
13980 echo "$as_me: failed program was:" >&5 | |
13981 sed 's/^/| /' conftest.$ac_ext >&5 | |
13982 | |
13983 ac_cv_lib_acl_acl_get_file=no | |
13984 fi | |
13985 rm -f conftest.err conftest.$ac_objext \ | |
13986 conftest$ac_exeext conftest.$ac_ext | |
13987 LIBS=$ac_check_lib_save_LIBS | |
13988 fi | |
13989 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 | |
13990 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6 | |
13991 if test $ac_cv_lib_acl_acl_get_file = yes; then | |
7865 LIBS="$LIBS -lacl" | 13992 LIBS="$LIBS -lacl" |
7866 echo $ac_n "checking for fgetxattr in -lattr""... $ac_c" 1>&6 | 13993 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
7867 echo "configure:7868: checking for fgetxattr in -lattr" >&5 | 13994 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6 |
7868 ac_lib_var=`echo attr'_'fgetxattr | sed 'y%./+-%__p_%'` | 13995 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
7869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 13996 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7870 echo $ac_n "(cached) $ac_c" 1>&6 | 13997 else |
7871 else | 13998 ac_check_lib_save_LIBS=$LIBS |
7872 ac_save_LIBS="$LIBS" | |
7873 LIBS="-lattr $LIBS" | 13999 LIBS="-lattr $LIBS" |
7874 cat > conftest.$ac_ext <<EOF | 14000 cat >conftest.$ac_ext <<_ACEOF |
7875 #line 7876 "configure" | 14001 /* confdefs.h. */ |
7876 #include "confdefs.h" | 14002 _ACEOF |
14003 cat confdefs.h >>conftest.$ac_ext | |
14004 cat >>conftest.$ac_ext <<_ACEOF | |
14005 /* end confdefs.h. */ | |
14006 | |
7877 /* Override any gcc2 internal prototype to avoid an error. */ | 14007 /* Override any gcc2 internal prototype to avoid an error. */ |
14008 #ifdef __cplusplus | |
14009 extern "C" | |
14010 #endif | |
7878 /* We use char because int might match the return type of a gcc2 | 14011 /* We use char because int might match the return type of a gcc2 |
7879 builtin and then its argument prototype would still apply. */ | 14012 builtin and then its argument prototype would still apply. */ |
7880 char fgetxattr(); | 14013 char fgetxattr (); |
7881 | 14014 int |
7882 int main() { | 14015 main () |
7883 fgetxattr() | 14016 { |
7884 ; return 0; } | 14017 fgetxattr (); |
7885 EOF | 14018 ; |
7886 if { (eval echo configure:7887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14019 return 0; |
7887 rm -rf conftest* | 14020 } |
7888 eval "ac_cv_lib_$ac_lib_var=yes" | 14021 _ACEOF |
7889 else | 14022 rm -f conftest.$ac_objext conftest$ac_exeext |
7890 echo "configure: failed program was:" >&5 | 14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7891 cat conftest.$ac_ext >&5 | 14024 (eval $ac_link) 2>conftest.er1 |
7892 rm -rf conftest* | 14025 ac_status=$? |
7893 eval "ac_cv_lib_$ac_lib_var=no" | 14026 grep -v '^ *+' conftest.er1 >conftest.err |
7894 fi | 14027 rm -f conftest.er1 |
7895 rm -f conftest* | 14028 cat conftest.err >&5 |
7896 LIBS="$ac_save_LIBS" | 14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7897 | 14030 (exit $ac_status); } && |
7898 fi | 14031 { ac_try='test -z "$ac_c_werror_flag" |
7899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 14032 || test ! -s conftest.err' |
7900 echo "$ac_t""yes" 1>&6 | 14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14034 (eval $ac_try) 2>&5 | |
14035 ac_status=$? | |
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14037 (exit $ac_status); }; } && | |
14038 { ac_try='test -s conftest$ac_exeext' | |
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14040 (eval $ac_try) 2>&5 | |
14041 ac_status=$? | |
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14043 (exit $ac_status); }; }; then | |
14044 ac_cv_lib_attr_fgetxattr=yes | |
14045 else | |
14046 echo "$as_me: failed program was:" >&5 | |
14047 sed 's/^/| /' conftest.$ac_ext >&5 | |
14048 | |
14049 ac_cv_lib_attr_fgetxattr=no | |
14050 fi | |
14051 rm -f conftest.err conftest.$ac_objext \ | |
14052 conftest$ac_exeext conftest.$ac_ext | |
14053 LIBS=$ac_check_lib_save_LIBS | |
14054 fi | |
14055 echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 | |
14056 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6 | |
14057 if test $ac_cv_lib_attr_fgetxattr = yes; then | |
7901 LIBS="$LIBS -lattr" | 14058 LIBS="$LIBS -lattr" |
7902 else | 14059 fi |
7903 echo "$ac_t""no" 1>&6 | 14060 |
7904 fi | 14061 fi |
7905 | 14062 |
7906 else | 14063 fi |
7907 echo "$ac_t""no" 1>&6 | 14064 |
7908 fi | 14065 |
7909 | 14066 echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
7910 fi | 14067 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6 |
7911 | 14068 cat >conftest.$ac_ext <<_ACEOF |
7912 | 14069 /* confdefs.h. */ |
7913 echo $ac_n "checking for POSIX ACL support""... $ac_c" 1>&6 | 14070 _ACEOF |
7914 echo "configure:7915: checking for POSIX ACL support" >&5 | 14071 cat confdefs.h >>conftest.$ac_ext |
7915 cat > conftest.$ac_ext <<EOF | 14072 cat >>conftest.$ac_ext <<_ACEOF |
7916 #line 7917 "configure" | 14073 /* end confdefs.h. */ |
7917 #include "confdefs.h" | |
7918 | 14074 |
7919 #include <sys/types.h> | 14075 #include <sys/types.h> |
7920 #ifdef HAVE_SYS_ACL_H | 14076 #ifdef HAVE_SYS_ACL_H |
7921 # include <sys/acl.h> | 14077 # include <sys/acl.h> |
7922 #endif | 14078 #endif |
7923 acl_t acl; | 14079 acl_t acl; |
7924 int main() { | 14080 int |
14081 main () | |
14082 { | |
7925 acl = acl_get_file("foo", ACL_TYPE_ACCESS); | 14083 acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
7926 acl_set_file("foo", ACL_TYPE_ACCESS, acl); | 14084 acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
7927 acl_free(acl); | 14085 acl_free(acl); |
7928 ; return 0; } | 14086 ; |
7929 EOF | 14087 return 0; |
7930 if { (eval echo configure:7931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14088 } |
7931 rm -rf conftest* | 14089 _ACEOF |
7932 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 14090 rm -f conftest.$ac_objext conftest$ac_exeext |
14091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14092 (eval $ac_link) 2>conftest.er1 | |
14093 ac_status=$? | |
14094 grep -v '^ *+' conftest.er1 >conftest.err | |
14095 rm -f conftest.er1 | |
14096 cat conftest.err >&5 | |
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14098 (exit $ac_status); } && | |
14099 { ac_try='test -z "$ac_c_werror_flag" | |
14100 || test ! -s conftest.err' | |
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14102 (eval $ac_try) 2>&5 | |
14103 ac_status=$? | |
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14105 (exit $ac_status); }; } && | |
14106 { ac_try='test -s conftest$ac_exeext' | |
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14108 (eval $ac_try) 2>&5 | |
14109 ac_status=$? | |
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14111 (exit $ac_status); }; }; then | |
14112 echo "$as_me:$LINENO: result: yes" >&5 | |
14113 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7933 #define HAVE_POSIX_ACL 1 | 14114 #define HAVE_POSIX_ACL 1 |
7934 EOF | 14115 _ACEOF |
7935 | 14116 |
7936 else | 14117 else |
7937 echo "configure: failed program was:" >&5 | 14118 echo "$as_me: failed program was:" >&5 |
7938 cat conftest.$ac_ext >&5 | 14119 sed 's/^/| /' conftest.$ac_ext >&5 |
7939 rm -rf conftest* | 14120 |
7940 echo "$ac_t""no" 1>&6 | 14121 echo "$as_me:$LINENO: result: no" >&5 |
7941 fi | 14122 echo "${ECHO_T}no" >&6 |
7942 rm -f conftest* | 14123 fi |
7943 | 14124 rm -f conftest.err conftest.$ac_objext \ |
7944 echo $ac_n "checking for Solaris ACL support""... $ac_c" 1>&6 | 14125 conftest$ac_exeext conftest.$ac_ext |
7945 echo "configure:7946: checking for Solaris ACL support" >&5 | 14126 |
7946 cat > conftest.$ac_ext <<EOF | 14127 echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
7947 #line 7948 "configure" | 14128 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6 |
7948 #include "confdefs.h" | 14129 cat >conftest.$ac_ext <<_ACEOF |
14130 /* confdefs.h. */ | |
14131 _ACEOF | |
14132 cat confdefs.h >>conftest.$ac_ext | |
14133 cat >>conftest.$ac_ext <<_ACEOF | |
14134 /* end confdefs.h. */ | |
7949 | 14135 |
7950 #ifdef HAVE_SYS_ACL_H | 14136 #ifdef HAVE_SYS_ACL_H |
7951 # include <sys/acl.h> | 14137 # include <sys/acl.h> |
7952 #endif | 14138 #endif |
7953 int main() { | 14139 int |
14140 main () | |
14141 { | |
7954 acl("foo", GETACLCNT, 0, NULL); | 14142 acl("foo", GETACLCNT, 0, NULL); |
7955 | 14143 |
7956 ; return 0; } | 14144 ; |
7957 EOF | 14145 return 0; |
7958 if { (eval echo configure:7959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14146 } |
7959 rm -rf conftest* | 14147 _ACEOF |
7960 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 14148 rm -f conftest.$ac_objext conftest$ac_exeext |
14149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14150 (eval $ac_link) 2>conftest.er1 | |
14151 ac_status=$? | |
14152 grep -v '^ *+' conftest.er1 >conftest.err | |
14153 rm -f conftest.er1 | |
14154 cat conftest.err >&5 | |
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14156 (exit $ac_status); } && | |
14157 { ac_try='test -z "$ac_c_werror_flag" | |
14158 || test ! -s conftest.err' | |
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14160 (eval $ac_try) 2>&5 | |
14161 ac_status=$? | |
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14163 (exit $ac_status); }; } && | |
14164 { ac_try='test -s conftest$ac_exeext' | |
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14166 (eval $ac_try) 2>&5 | |
14167 ac_status=$? | |
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14169 (exit $ac_status); }; }; then | |
14170 echo "$as_me:$LINENO: result: yes" >&5 | |
14171 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
7961 #define HAVE_SOLARIS_ACL 1 | 14172 #define HAVE_SOLARIS_ACL 1 |
7962 EOF | 14173 _ACEOF |
7963 | 14174 |
7964 else | 14175 else |
7965 echo "configure: failed program was:" >&5 | 14176 echo "$as_me: failed program was:" >&5 |
7966 cat conftest.$ac_ext >&5 | 14177 sed 's/^/| /' conftest.$ac_ext >&5 |
7967 rm -rf conftest* | 14178 |
7968 echo "$ac_t""no" 1>&6 | 14179 echo "$as_me:$LINENO: result: no" >&5 |
7969 fi | 14180 echo "${ECHO_T}no" >&6 |
7970 rm -f conftest* | 14181 fi |
7971 | 14182 rm -f conftest.err conftest.$ac_objext \ |
7972 echo $ac_n "checking for AIX ACL support""... $ac_c" 1>&6 | 14183 conftest$ac_exeext conftest.$ac_ext |
7973 echo "configure:7974: checking for AIX ACL support" >&5 | 14184 |
7974 cat > conftest.$ac_ext <<EOF | 14185 echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
7975 #line 7976 "configure" | 14186 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6 |
7976 #include "confdefs.h" | 14187 cat >conftest.$ac_ext <<_ACEOF |
14188 /* confdefs.h. */ | |
14189 _ACEOF | |
14190 cat confdefs.h >>conftest.$ac_ext | |
14191 cat >>conftest.$ac_ext <<_ACEOF | |
14192 /* end confdefs.h. */ | |
7977 | 14193 |
7978 #ifdef HAVE_SYS_ACL_H | 14194 #ifdef HAVE_SYS_ACL_H |
7979 # include <sys/acl.h> | 14195 # include <sys/acl.h> |
7980 #endif | 14196 #endif |
7981 #ifdef HAVE_SYS_ACCESS_H | 14197 #ifdef HAVE_SYS_ACCESS_H |
7985 | 14201 |
7986 #include <sys/stat.h> | 14202 #include <sys/stat.h> |
7987 | 14203 |
7988 int aclsize; | 14204 int aclsize; |
7989 struct acl *aclent; | 14205 struct acl *aclent; |
7990 int main() { | 14206 int |
14207 main () | |
14208 { | |
7991 aclsize = sizeof(struct acl); | 14209 aclsize = sizeof(struct acl); |
7992 aclent = (void *)malloc(aclsize); | 14210 aclent = (void *)malloc(aclsize); |
7993 statacl("foo", STX_NORMAL, aclent, aclsize); | 14211 statacl("foo", STX_NORMAL, aclent, aclsize); |
7994 | 14212 |
7995 ; return 0; } | 14213 ; |
7996 EOF | 14214 return 0; |
7997 if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14215 } |
7998 rm -rf conftest* | 14216 _ACEOF |
7999 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 14217 rm -f conftest.$ac_objext conftest$ac_exeext |
14218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14219 (eval $ac_link) 2>conftest.er1 | |
14220 ac_status=$? | |
14221 grep -v '^ *+' conftest.er1 >conftest.err | |
14222 rm -f conftest.er1 | |
14223 cat conftest.err >&5 | |
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14225 (exit $ac_status); } && | |
14226 { ac_try='test -z "$ac_c_werror_flag" | |
14227 || test ! -s conftest.err' | |
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14229 (eval $ac_try) 2>&5 | |
14230 ac_status=$? | |
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14232 (exit $ac_status); }; } && | |
14233 { ac_try='test -s conftest$ac_exeext' | |
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14235 (eval $ac_try) 2>&5 | |
14236 ac_status=$? | |
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14238 (exit $ac_status); }; }; then | |
14239 echo "$as_me:$LINENO: result: yes" >&5 | |
14240 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
8000 #define HAVE_AIX_ACL 1 | 14241 #define HAVE_AIX_ACL 1 |
8001 EOF | 14242 _ACEOF |
8002 | 14243 |
8003 else | 14244 else |
8004 echo "configure: failed program was:" >&5 | 14245 echo "$as_me: failed program was:" >&5 |
8005 cat conftest.$ac_ext >&5 | 14246 sed 's/^/| /' conftest.$ac_ext >&5 |
8006 rm -rf conftest* | 14247 |
8007 echo "$ac_t""no" 1>&6 | 14248 echo "$as_me:$LINENO: result: no" >&5 |
8008 fi | 14249 echo "${ECHO_T}no" >&6 |
8009 rm -f conftest* | 14250 fi |
8010 else | 14251 rm -f conftest.err conftest.$ac_objext \ |
8011 echo "$ac_t""yes" 1>&6 | 14252 conftest$ac_exeext conftest.$ac_ext |
8012 fi | 14253 else |
8013 | 14254 echo "$as_me:$LINENO: result: yes" >&5 |
8014 echo $ac_n "checking --disable-gpm argument""... $ac_c" 1>&6 | 14255 echo "${ECHO_T}yes" >&6 |
8015 echo "configure:8016: checking --disable-gpm argument" >&5 | 14256 fi |
14257 | |
14258 echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 | |
14259 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6 | |
8016 # Check whether --enable-gpm or --disable-gpm was given. | 14260 # Check whether --enable-gpm or --disable-gpm was given. |
8017 if test "${enable_gpm+set}" = set; then | 14261 if test "${enable_gpm+set}" = set; then |
8018 enableval="$enable_gpm" | 14262 enableval="$enable_gpm" |
8019 : | 14263 |
8020 else | 14264 else |
8021 enable_gpm="yes" | 14265 enable_gpm="yes" |
8022 fi | 14266 fi; |
8023 | |
8024 | 14267 |
8025 if test "$enable_gpm" = "yes"; then | 14268 if test "$enable_gpm" = "yes"; then |
8026 echo "$ac_t""no" 1>&6 | 14269 echo "$as_me:$LINENO: result: no" >&5 |
8027 echo $ac_n "checking for gpm""... $ac_c" 1>&6 | 14270 echo "${ECHO_T}no" >&6 |
8028 echo "configure:8029: checking for gpm" >&5 | 14271 echo "$as_me:$LINENO: checking for gpm" >&5 |
8029 if eval "test \"`echo '$''{'vi_cv_have_gpm'+set}'`\" = set"; then | 14272 echo $ECHO_N "checking for gpm... $ECHO_C" >&6 |
8030 echo $ac_n "(cached) $ac_c" 1>&6 | 14273 if test "${vi_cv_have_gpm+set}" = set; then |
14274 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8031 else | 14275 else |
8032 olibs="$LIBS" ; LIBS="-lgpm" | 14276 olibs="$LIBS" ; LIBS="-lgpm" |
8033 cat > conftest.$ac_ext <<EOF | 14277 cat >conftest.$ac_ext <<_ACEOF |
8034 #line 8035 "configure" | 14278 /* confdefs.h. */ |
8035 #include "confdefs.h" | 14279 _ACEOF |
14280 cat confdefs.h >>conftest.$ac_ext | |
14281 cat >>conftest.$ac_ext <<_ACEOF | |
14282 /* end confdefs.h. */ | |
8036 #include <gpm.h> | 14283 #include <gpm.h> |
8037 #include <linux/keyboard.h> | 14284 #include <linux/keyboard.h> |
8038 int main() { | 14285 int |
14286 main () | |
14287 { | |
8039 Gpm_GetLibVersion(NULL); | 14288 Gpm_GetLibVersion(NULL); |
8040 ; return 0; } | 14289 ; |
8041 EOF | 14290 return 0; |
8042 if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14291 } |
8043 rm -rf conftest* | 14292 _ACEOF |
14293 rm -f conftest.$ac_objext conftest$ac_exeext | |
14294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14295 (eval $ac_link) 2>conftest.er1 | |
14296 ac_status=$? | |
14297 grep -v '^ *+' conftest.er1 >conftest.err | |
14298 rm -f conftest.er1 | |
14299 cat conftest.err >&5 | |
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14301 (exit $ac_status); } && | |
14302 { ac_try='test -z "$ac_c_werror_flag" | |
14303 || test ! -s conftest.err' | |
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14305 (eval $ac_try) 2>&5 | |
14306 ac_status=$? | |
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14308 (exit $ac_status); }; } && | |
14309 { ac_try='test -s conftest$ac_exeext' | |
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14311 (eval $ac_try) 2>&5 | |
14312 ac_status=$? | |
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14314 (exit $ac_status); }; }; then | |
8044 vi_cv_have_gpm=yes | 14315 vi_cv_have_gpm=yes |
8045 else | 14316 else |
8046 echo "configure: failed program was:" >&5 | 14317 echo "$as_me: failed program was:" >&5 |
8047 cat conftest.$ac_ext >&5 | 14318 sed 's/^/| /' conftest.$ac_ext >&5 |
8048 rm -rf conftest* | 14319 |
8049 vi_cv_have_gpm=no | 14320 vi_cv_have_gpm=no |
8050 fi | 14321 fi |
8051 rm -f conftest* | 14322 rm -f conftest.err conftest.$ac_objext \ |
14323 conftest$ac_exeext conftest.$ac_ext | |
8052 LIBS="$olibs" | 14324 LIBS="$olibs" |
8053 | 14325 |
8054 fi | 14326 fi |
8055 | 14327 echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
8056 echo "$ac_t""$vi_cv_have_gpm" 1>&6 | 14328 echo "${ECHO_T}$vi_cv_have_gpm" >&6 |
8057 if test $vi_cv_have_gpm = yes; then | 14329 if test $vi_cv_have_gpm = yes; then |
8058 LIBS="$LIBS -lgpm" | 14330 LIBS="$LIBS -lgpm" |
8059 cat >> confdefs.h <<\EOF | 14331 cat >>confdefs.h <<\_ACEOF |
8060 #define HAVE_GPM 1 | 14332 #define HAVE_GPM 1 |
8061 EOF | 14333 _ACEOF |
8062 | 14334 |
8063 fi | 14335 fi |
8064 else | 14336 else |
8065 echo "$ac_t""yes" 1>&6 | 14337 echo "$as_me:$LINENO: result: yes" >&5 |
8066 fi | 14338 echo "${ECHO_T}yes" >&6 |
8067 | 14339 fi |
8068 echo $ac_n "checking for vsnprintf()""... $ac_c" 1>&6 | 14340 |
8069 echo "configure:8070: checking for vsnprintf()" >&5 | 14341 echo "$as_me:$LINENO: checking for vsnprintf()" >&5 |
14342 echo $ECHO_N "checking for vsnprintf()... $ECHO_C" >&6 | |
8070 if test "$cross_compiling" = yes; then | 14343 if test "$cross_compiling" = yes; then |
8071 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } | 14344 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
8072 else | 14345 echo "$as_me: error: failed to compile test program" >&2;} |
8073 cat > conftest.$ac_ext <<EOF | 14346 { (exit 1); exit 1; }; } |
8074 #line 8075 "configure" | 14347 else |
8075 #include "confdefs.h" | 14348 cat >conftest.$ac_ext <<_ACEOF |
14349 /* confdefs.h. */ | |
14350 _ACEOF | |
14351 cat confdefs.h >>conftest.$ac_ext | |
14352 cat >>conftest.$ac_ext <<_ACEOF | |
14353 /* end confdefs.h. */ | |
8076 | 14354 |
8077 #include <stdio.h> | 14355 #include <stdio.h> |
8078 #include <stdarg.h> | 14356 #include <stdarg.h> |
8079 /* Check use of vsnprintf() */ | 14357 /* Check use of vsnprintf() */ |
8080 void warn(char *fmt, ...); | 14358 void warn(char *fmt, ...); |
8088 main() | 14366 main() |
8089 { | 14367 { |
8090 warn("testing %s\n", "a very long string that won't fit"); | 14368 warn("testing %s\n", "a very long string that won't fit"); |
8091 exit(0); | 14369 exit(0); |
8092 } | 14370 } |
8093 | 14371 |
8094 EOF | 14372 _ACEOF |
8095 if { (eval echo configure:8096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 14373 rm -f conftest$ac_exeext |
8096 then | 14374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8097 cat >> confdefs.h <<\EOF | 14375 (eval $ac_link) 2>&5 |
14376 ac_status=$? | |
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14380 (eval $ac_try) 2>&5 | |
14381 ac_status=$? | |
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14383 (exit $ac_status); }; }; then | |
14384 cat >>confdefs.h <<\_ACEOF | |
8098 #define HAVE_VSNPRINTF 1 | 14385 #define HAVE_VSNPRINTF 1 |
8099 EOF | 14386 _ACEOF |
8100 echo "$ac_t""yes" 1>&6 | 14387 echo "$as_me:$LINENO: result: yes" >&5 |
8101 else | 14388 echo "${ECHO_T}yes" >&6 |
8102 echo "configure: failed program was:" >&5 | 14389 else |
8103 cat conftest.$ac_ext >&5 | 14390 echo "$as_me: program exited with status $ac_status" >&5 |
8104 rm -fr conftest* | 14391 echo "$as_me: failed program was:" >&5 |
8105 echo "$ac_t""no" 1>&6 | 14392 sed 's/^/| /' conftest.$ac_ext >&5 |
8106 fi | 14393 |
8107 rm -fr conftest* | 14394 ( exit $ac_status ) |
8108 fi | 14395 echo "$as_me:$LINENO: result: no" >&5 |
8109 | 14396 echo "${ECHO_T}no" >&6 |
8110 | 14397 fi |
8111 | 14398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8112 echo $ac_n "checking for rename""... $ac_c" 1>&6 | 14399 fi |
8113 echo "configure:8114: checking for rename" >&5 | 14400 |
8114 cat > conftest.$ac_ext <<EOF | 14401 |
8115 #line 8116 "configure" | 14402 echo "$as_me:$LINENO: checking for rename" >&5 |
8116 #include "confdefs.h" | 14403 echo $ECHO_N "checking for rename... $ECHO_C" >&6 |
14404 cat >conftest.$ac_ext <<_ACEOF | |
14405 /* confdefs.h. */ | |
14406 _ACEOF | |
14407 cat confdefs.h >>conftest.$ac_ext | |
14408 cat >>conftest.$ac_ext <<_ACEOF | |
14409 /* end confdefs.h. */ | |
8117 #include <stdio.h> | 14410 #include <stdio.h> |
8118 int main() { | 14411 int |
14412 main () | |
14413 { | |
8119 rename("this", "that") | 14414 rename("this", "that") |
8120 ; return 0; } | 14415 ; |
8121 EOF | 14416 return 0; |
8122 if { (eval echo configure:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14417 } |
8123 rm -rf conftest* | 14418 _ACEOF |
8124 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 14419 rm -f conftest.$ac_objext conftest$ac_exeext |
14420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14421 (eval $ac_link) 2>conftest.er1 | |
14422 ac_status=$? | |
14423 grep -v '^ *+' conftest.er1 >conftest.err | |
14424 rm -f conftest.er1 | |
14425 cat conftest.err >&5 | |
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14427 (exit $ac_status); } && | |
14428 { ac_try='test -z "$ac_c_werror_flag" | |
14429 || test ! -s conftest.err' | |
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14431 (eval $ac_try) 2>&5 | |
14432 ac_status=$? | |
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14434 (exit $ac_status); }; } && | |
14435 { ac_try='test -s conftest$ac_exeext' | |
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14437 (eval $ac_try) 2>&5 | |
14438 ac_status=$? | |
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14440 (exit $ac_status); }; }; then | |
14441 echo "$as_me:$LINENO: result: yes" >&5 | |
14442 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
8125 #define HAVE_RENAME 1 | 14443 #define HAVE_RENAME 1 |
8126 EOF | 14444 _ACEOF |
8127 | 14445 |
8128 else | 14446 else |
8129 echo "configure: failed program was:" >&5 | 14447 echo "$as_me: failed program was:" >&5 |
8130 cat conftest.$ac_ext >&5 | 14448 sed 's/^/| /' conftest.$ac_ext >&5 |
8131 rm -rf conftest* | 14449 |
8132 echo "$ac_t""no" 1>&6 | 14450 echo "$as_me:$LINENO: result: no" >&5 |
8133 fi | 14451 echo "${ECHO_T}no" >&6 |
8134 rm -f conftest* | 14452 fi |
8135 | 14453 rm -f conftest.err conftest.$ac_objext \ |
8136 echo $ac_n "checking for sysctl""... $ac_c" 1>&6 | 14454 conftest$ac_exeext conftest.$ac_ext |
8137 echo "configure:8138: checking for sysctl" >&5 | 14455 |
8138 cat > conftest.$ac_ext <<EOF | 14456 echo "$as_me:$LINENO: checking for sysctl" >&5 |
8139 #line 8140 "configure" | 14457 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6 |
8140 #include "confdefs.h" | 14458 cat >conftest.$ac_ext <<_ACEOF |
14459 /* confdefs.h. */ | |
14460 _ACEOF | |
14461 cat confdefs.h >>conftest.$ac_ext | |
14462 cat >>conftest.$ac_ext <<_ACEOF | |
14463 /* end confdefs.h. */ | |
8141 #include <sys/types.h> | 14464 #include <sys/types.h> |
8142 #include <sys/sysctl.h> | 14465 #include <sys/sysctl.h> |
8143 int main() { | 14466 int |
14467 main () | |
14468 { | |
8144 int mib[2], r; | 14469 int mib[2], r; |
8145 size_t len; | 14470 size_t len; |
8146 | 14471 |
8147 mib[0] = CTL_HW; | 14472 mib[0] = CTL_HW; |
8148 mib[1] = HW_USERMEM; | 14473 mib[1] = HW_USERMEM; |
8149 len = sizeof(r); | 14474 len = sizeof(r); |
8150 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); | 14475 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
8151 | 14476 |
8152 ; return 0; } | 14477 ; |
8153 EOF | 14478 return 0; |
8154 if { (eval echo configure:8155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 14479 } |
8155 rm -rf conftest* | 14480 _ACEOF |
8156 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 14481 rm -f conftest.$ac_objext |
14482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14483 (eval $ac_compile) 2>conftest.er1 | |
14484 ac_status=$? | |
14485 grep -v '^ *+' conftest.er1 >conftest.err | |
14486 rm -f conftest.er1 | |
14487 cat conftest.err >&5 | |
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14489 (exit $ac_status); } && | |
14490 { ac_try='test -z "$ac_c_werror_flag" | |
14491 || test ! -s conftest.err' | |
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14493 (eval $ac_try) 2>&5 | |
14494 ac_status=$? | |
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14496 (exit $ac_status); }; } && | |
14497 { ac_try='test -s conftest.$ac_objext' | |
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14499 (eval $ac_try) 2>&5 | |
14500 ac_status=$? | |
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14502 (exit $ac_status); }; }; then | |
14503 echo "$as_me:$LINENO: result: yes" >&5 | |
14504 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
8157 #define HAVE_SYSCTL 1 | 14505 #define HAVE_SYSCTL 1 |
8158 EOF | 14506 _ACEOF |
8159 | 14507 |
8160 else | 14508 else |
8161 echo "configure: failed program was:" >&5 | 14509 echo "$as_me: failed program was:" >&5 |
8162 cat conftest.$ac_ext >&5 | 14510 sed 's/^/| /' conftest.$ac_ext >&5 |
8163 rm -rf conftest* | 14511 |
8164 echo "$ac_t""not usable" 1>&6 | 14512 echo "$as_me:$LINENO: result: not usable" >&5 |
8165 fi | 14513 echo "${ECHO_T}not usable" >&6 |
8166 rm -f conftest* | 14514 fi |
8167 | 14515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8168 echo $ac_n "checking for sysinfo""... $ac_c" 1>&6 | 14516 |
8169 echo "configure:8170: checking for sysinfo" >&5 | 14517 echo "$as_me:$LINENO: checking for sysinfo" >&5 |
8170 cat > conftest.$ac_ext <<EOF | 14518 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6 |
8171 #line 8172 "configure" | 14519 cat >conftest.$ac_ext <<_ACEOF |
8172 #include "confdefs.h" | 14520 /* confdefs.h. */ |
14521 _ACEOF | |
14522 cat confdefs.h >>conftest.$ac_ext | |
14523 cat >>conftest.$ac_ext <<_ACEOF | |
14524 /* end confdefs.h. */ | |
8173 #include <sys/types.h> | 14525 #include <sys/types.h> |
8174 #include <sys/sysinfo.h> | 14526 #include <sys/sysinfo.h> |
8175 int main() { | 14527 int |
14528 main () | |
14529 { | |
8176 struct sysinfo sinfo; | 14530 struct sysinfo sinfo; |
8177 int t; | 14531 int t; |
8178 | 14532 |
8179 (void)sysinfo(&sinfo); | 14533 (void)sysinfo(&sinfo); |
8180 t = sinfo.totalram; | 14534 t = sinfo.totalram; |
8181 | 14535 |
8182 ; return 0; } | 14536 ; |
8183 EOF | 14537 return 0; |
8184 if { (eval echo configure:8185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 14538 } |
8185 rm -rf conftest* | 14539 _ACEOF |
8186 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 14540 rm -f conftest.$ac_objext |
14541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14542 (eval $ac_compile) 2>conftest.er1 | |
14543 ac_status=$? | |
14544 grep -v '^ *+' conftest.er1 >conftest.err | |
14545 rm -f conftest.er1 | |
14546 cat conftest.err >&5 | |
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14548 (exit $ac_status); } && | |
14549 { ac_try='test -z "$ac_c_werror_flag" | |
14550 || test ! -s conftest.err' | |
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14552 (eval $ac_try) 2>&5 | |
14553 ac_status=$? | |
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14555 (exit $ac_status); }; } && | |
14556 { ac_try='test -s conftest.$ac_objext' | |
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14558 (eval $ac_try) 2>&5 | |
14559 ac_status=$? | |
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14561 (exit $ac_status); }; }; then | |
14562 echo "$as_me:$LINENO: result: yes" >&5 | |
14563 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
8187 #define HAVE_SYSINFO 1 | 14564 #define HAVE_SYSINFO 1 |
8188 EOF | 14565 _ACEOF |
8189 | 14566 |
8190 else | 14567 else |
8191 echo "configure: failed program was:" >&5 | 14568 echo "$as_me: failed program was:" >&5 |
8192 cat conftest.$ac_ext >&5 | 14569 sed 's/^/| /' conftest.$ac_ext >&5 |
8193 rm -rf conftest* | 14570 |
8194 echo "$ac_t""not usable" 1>&6 | 14571 echo "$as_me:$LINENO: result: not usable" >&5 |
8195 fi | 14572 echo "${ECHO_T}not usable" >&6 |
8196 rm -f conftest* | 14573 fi |
8197 | 14574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8198 echo $ac_n "checking for sysconf""... $ac_c" 1>&6 | 14575 |
8199 echo "configure:8200: checking for sysconf" >&5 | 14576 echo "$as_me:$LINENO: checking for sysconf" >&5 |
8200 cat > conftest.$ac_ext <<EOF | 14577 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6 |
8201 #line 8202 "configure" | 14578 cat >conftest.$ac_ext <<_ACEOF |
8202 #include "confdefs.h" | 14579 /* confdefs.h. */ |
14580 _ACEOF | |
14581 cat confdefs.h >>conftest.$ac_ext | |
14582 cat >>conftest.$ac_ext <<_ACEOF | |
14583 /* end confdefs.h. */ | |
8203 #include <unistd.h> | 14584 #include <unistd.h> |
8204 int main() { | 14585 int |
14586 main () | |
14587 { | |
8205 (void)sysconf(_SC_PAGESIZE); | 14588 (void)sysconf(_SC_PAGESIZE); |
8206 (void)sysconf(_SC_PHYS_PAGES); | 14589 (void)sysconf(_SC_PHYS_PAGES); |
8207 | 14590 |
8208 ; return 0; } | 14591 ; |
8209 EOF | 14592 return 0; |
8210 if { (eval echo configure:8211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 14593 } |
8211 rm -rf conftest* | 14594 _ACEOF |
8212 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 14595 rm -f conftest.$ac_objext |
14596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14597 (eval $ac_compile) 2>conftest.er1 | |
14598 ac_status=$? | |
14599 grep -v '^ *+' conftest.er1 >conftest.err | |
14600 rm -f conftest.er1 | |
14601 cat conftest.err >&5 | |
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14603 (exit $ac_status); } && | |
14604 { ac_try='test -z "$ac_c_werror_flag" | |
14605 || test ! -s conftest.err' | |
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14607 (eval $ac_try) 2>&5 | |
14608 ac_status=$? | |
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14610 (exit $ac_status); }; } && | |
14611 { ac_try='test -s conftest.$ac_objext' | |
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14613 (eval $ac_try) 2>&5 | |
14614 ac_status=$? | |
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14616 (exit $ac_status); }; }; then | |
14617 echo "$as_me:$LINENO: result: yes" >&5 | |
14618 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
8213 #define HAVE_SYSCONF 1 | 14619 #define HAVE_SYSCONF 1 |
8214 EOF | 14620 _ACEOF |
8215 | 14621 |
8216 else | 14622 else |
8217 echo "configure: failed program was:" >&5 | 14623 echo "$as_me: failed program was:" >&5 |
8218 cat conftest.$ac_ext >&5 | 14624 sed 's/^/| /' conftest.$ac_ext >&5 |
8219 rm -rf conftest* | 14625 |
8220 echo "$ac_t""not usable" 1>&6 | 14626 echo "$as_me:$LINENO: result: not usable" >&5 |
8221 fi | 14627 echo "${ECHO_T}not usable" >&6 |
8222 rm -f conftest* | 14628 fi |
8223 | 14629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8224 | 14630 |
8225 echo $ac_n "checking size of int""... $ac_c" 1>&6 | 14631 |
8226 echo "configure:8227: checking size of int" >&5 | 14632 echo "$as_me:$LINENO: checking size of int" >&5 |
8227 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | 14633 echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
8228 echo $ac_n "(cached) $ac_c" 1>&6 | 14634 if test "${ac_cv_sizeof_int+set}" = set; then |
14635 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8229 else | 14636 else |
8230 if test "$cross_compiling" = yes; then | 14637 if test "$cross_compiling" = yes; then |
8231 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } | 14638 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
8232 else | 14639 echo "$as_me: error: failed to compile test program" >&2;} |
8233 cat > conftest.$ac_ext <<EOF | 14640 { (exit 1); exit 1; }; } |
8234 #line 8235 "configure" | 14641 else |
8235 #include "confdefs.h" | 14642 cat >conftest.$ac_ext <<_ACEOF |
14643 /* confdefs.h. */ | |
14644 _ACEOF | |
14645 cat confdefs.h >>conftest.$ac_ext | |
14646 cat >>conftest.$ac_ext <<_ACEOF | |
14647 /* end confdefs.h. */ | |
8236 #include <stdio.h> | 14648 #include <stdio.h> |
8237 main() | 14649 main() |
8238 { | 14650 { |
8239 FILE *f=fopen("conftestval", "w"); | 14651 FILE *f=fopen("conftestval", "w"); |
8240 if (!f) exit(1); | 14652 if (!f) exit(1); |
8241 fprintf(f, "%d\n", (int)sizeof(int)); | 14653 fprintf(f, "%d\n", (int)sizeof(int)); |
8242 exit(0); | 14654 exit(0); |
8243 } | 14655 } |
8244 EOF | 14656 _ACEOF |
8245 if { (eval echo configure:8246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 14657 rm -f conftest$ac_exeext |
8246 then | 14658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14659 (eval $ac_link) 2>&5 | |
14660 ac_status=$? | |
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14664 (eval $ac_try) 2>&5 | |
14665 ac_status=$? | |
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14667 (exit $ac_status); }; }; then | |
8247 ac_cv_sizeof_int=`cat conftestval` | 14668 ac_cv_sizeof_int=`cat conftestval` |
8248 else | 14669 else |
8249 echo "configure: failed program was:" >&5 | 14670 echo "$as_me: program exited with status $ac_status" >&5 |
8250 cat conftest.$ac_ext >&5 | 14671 echo "$as_me: failed program was:" >&5 |
8251 rm -fr conftest* | 14672 sed 's/^/| /' conftest.$ac_ext >&5 |
8252 ac_cv_sizeof_int=0 | 14673 |
8253 fi | 14674 ( exit $ac_status ) |
8254 rm -fr conftest* | 14675 ac_cv_sizeof_int=0 |
8255 fi | 14676 fi |
8256 | 14677 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8257 fi | 14678 fi |
8258 | 14679 fi |
8259 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | 14680 |
8260 cat >> confdefs.h <<EOF | 14681 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
14682 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
14683 cat >>confdefs.h <<_ACEOF | |
8261 #define SIZEOF_INT $ac_cv_sizeof_int | 14684 #define SIZEOF_INT $ac_cv_sizeof_int |
8262 EOF | 14685 _ACEOF |
8263 | 14686 |
8264 | 14687 |
8265 echo $ac_n "checking whether memmove/bcopy/memcpy handle overlaps""... $ac_c" 1>&6 | 14688 echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5 |
8266 echo "configure:8267: checking whether memmove/bcopy/memcpy handle overlaps" >&5 | 14689 echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6 |
8267 bcopy_test_prog=' | 14690 bcopy_test_prog=' |
8268 main() { | 14691 main() { |
8269 char buf[10]; | 14692 char buf[10]; |
8270 strcpy(buf, "abcdefghi"); | 14693 strcpy(buf, "abcdefghi"); |
8271 mch_memmove(buf, buf + 2, 3); | 14694 mch_memmove(buf, buf + 2, 3); |
8278 exit(0); /* libc version works properly. */ | 14701 exit(0); /* libc version works properly. */ |
8279 }' | 14702 }' |
8280 | 14703 |
8281 | 14704 |
8282 if test "$cross_compiling" = yes; then | 14705 if test "$cross_compiling" = yes; then |
8283 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } | 14706 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
8284 else | 14707 echo "$as_me: error: failed to compile test program" >&2;} |
8285 cat > conftest.$ac_ext <<EOF | 14708 { (exit 1); exit 1; }; } |
8286 #line 8287 "configure" | 14709 else |
8287 #include "confdefs.h" | 14710 cat >conftest.$ac_ext <<_ACEOF |
14711 /* confdefs.h. */ | |
14712 _ACEOF | |
14713 cat confdefs.h >>conftest.$ac_ext | |
14714 cat >>conftest.$ac_ext <<_ACEOF | |
14715 /* end confdefs.h. */ | |
8288 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog | 14716 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog |
8289 EOF | 14717 _ACEOF |
8290 if { (eval echo configure:8291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 14718 rm -f conftest$ac_exeext |
8291 then | 14719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8292 cat >> confdefs.h <<\EOF | 14720 (eval $ac_link) 2>&5 |
14721 ac_status=$? | |
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14725 (eval $ac_try) 2>&5 | |
14726 ac_status=$? | |
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14728 (exit $ac_status); }; }; then | |
14729 cat >>confdefs.h <<\_ACEOF | |
8293 #define USEMEMMOVE 1 | 14730 #define USEMEMMOVE 1 |
8294 EOF | 14731 _ACEOF |
8295 echo "$ac_t""memmove does" 1>&6 | 14732 echo "$as_me:$LINENO: result: memmove does" >&5 |
8296 else | 14733 echo "${ECHO_T}memmove does" >&6 |
8297 echo "configure: failed program was:" >&5 | 14734 else |
8298 cat conftest.$ac_ext >&5 | 14735 echo "$as_me: program exited with status $ac_status" >&5 |
8299 rm -fr conftest* | 14736 echo "$as_me: failed program was:" >&5 |
8300 if test "$cross_compiling" = yes; then | 14737 sed 's/^/| /' conftest.$ac_ext >&5 |
8301 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } | 14738 |
8302 else | 14739 ( exit $ac_status ) |
8303 cat > conftest.$ac_ext <<EOF | 14740 if test "$cross_compiling" = yes; then |
8304 #line 8305 "configure" | 14741 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
8305 #include "confdefs.h" | 14742 echo "$as_me: error: failed to compile test program" >&2;} |
14743 { (exit 1); exit 1; }; } | |
14744 else | |
14745 cat >conftest.$ac_ext <<_ACEOF | |
14746 /* confdefs.h. */ | |
14747 _ACEOF | |
14748 cat confdefs.h >>conftest.$ac_ext | |
14749 cat >>conftest.$ac_ext <<_ACEOF | |
14750 /* end confdefs.h. */ | |
8306 #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog | 14751 #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
8307 EOF | 14752 _ACEOF |
8308 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 14753 rm -f conftest$ac_exeext |
8309 then | 14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8310 cat >> confdefs.h <<\EOF | 14755 (eval $ac_link) 2>&5 |
14756 ac_status=$? | |
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14760 (eval $ac_try) 2>&5 | |
14761 ac_status=$? | |
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14763 (exit $ac_status); }; }; then | |
14764 cat >>confdefs.h <<\_ACEOF | |
8311 #define USEBCOPY 1 | 14765 #define USEBCOPY 1 |
8312 EOF | 14766 _ACEOF |
8313 echo "$ac_t""bcopy does" 1>&6 | 14767 echo "$as_me:$LINENO: result: bcopy does" >&5 |
8314 else | 14768 echo "${ECHO_T}bcopy does" >&6 |
8315 echo "configure: failed program was:" >&5 | 14769 else |
8316 cat conftest.$ac_ext >&5 | 14770 echo "$as_me: program exited with status $ac_status" >&5 |
8317 rm -fr conftest* | 14771 echo "$as_me: failed program was:" >&5 |
8318 if test "$cross_compiling" = yes; then | 14772 sed 's/^/| /' conftest.$ac_ext >&5 |
8319 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } | 14773 |
8320 else | 14774 ( exit $ac_status ) |
8321 cat > conftest.$ac_ext <<EOF | 14775 if test "$cross_compiling" = yes; then |
8322 #line 8323 "configure" | 14776 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
8323 #include "confdefs.h" | 14777 echo "$as_me: error: failed to compile test program" >&2;} |
14778 { (exit 1); exit 1; }; } | |
14779 else | |
14780 cat >conftest.$ac_ext <<_ACEOF | |
14781 /* confdefs.h. */ | |
14782 _ACEOF | |
14783 cat confdefs.h >>conftest.$ac_ext | |
14784 cat >>conftest.$ac_ext <<_ACEOF | |
14785 /* end confdefs.h. */ | |
8324 #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog | 14786 #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog |
8325 EOF | 14787 _ACEOF |
8326 if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 14788 rm -f conftest$ac_exeext |
8327 then | 14789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8328 cat >> confdefs.h <<\EOF | 14790 (eval $ac_link) 2>&5 |
14791 ac_status=$? | |
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14795 (eval $ac_try) 2>&5 | |
14796 ac_status=$? | |
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14798 (exit $ac_status); }; }; then | |
14799 cat >>confdefs.h <<\_ACEOF | |
8329 #define USEMEMCPY 1 | 14800 #define USEMEMCPY 1 |
8330 EOF | 14801 _ACEOF |
8331 echo "$ac_t""memcpy does" 1>&6 | 14802 echo "$as_me:$LINENO: result: memcpy does" >&5 |
8332 else | 14803 echo "${ECHO_T}memcpy does" >&6 |
8333 echo "configure: failed program was:" >&5 | 14804 else |
8334 cat conftest.$ac_ext >&5 | 14805 echo "$as_me: program exited with status $ac_status" >&5 |
8335 rm -fr conftest* | 14806 echo "$as_me: failed program was:" >&5 |
8336 echo "$ac_t""no" 1>&6 | 14807 sed 's/^/| /' conftest.$ac_ext >&5 |
8337 fi | 14808 |
8338 rm -fr conftest* | 14809 ( exit $ac_status ) |
8339 fi | 14810 echo "$as_me:$LINENO: result: no" >&5 |
8340 | 14811 echo "${ECHO_T}no" >&6 |
8341 fi | 14812 fi |
8342 rm -fr conftest* | 14813 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8343 fi | 14814 fi |
8344 | 14815 fi |
8345 fi | 14816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8346 rm -fr conftest* | 14817 fi |
8347 fi | 14818 fi |
8348 | 14819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
14820 fi | |
8349 | 14821 |
8350 | 14822 |
8351 if test "$enable_multibyte" = "yes"; then | 14823 if test "$enable_multibyte" = "yes"; then |
8352 cflags_save=$CFLAGS | 14824 cflags_save=$CFLAGS |
8353 ldflags_save=$LDFLAGS | 14825 ldflags_save=$LDFLAGS |
8354 if test -n "$x_includes" ; then | 14826 if test -n "$x_includes" ; then |
8355 CFLAGS="$CFLAGS -I$x_includes" | 14827 CFLAGS="$CFLAGS -I$x_includes" |
8356 LDFLAGS="$X_LIBS $LDFLAGS -lX11" | 14828 LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
8357 echo $ac_n "checking whether X_LOCALE needed""... $ac_c" 1>&6 | 14829 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
8358 echo "configure:8359: checking whether X_LOCALE needed" >&5 | 14830 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6 |
8359 cat > conftest.$ac_ext <<EOF | 14831 cat >conftest.$ac_ext <<_ACEOF |
8360 #line 8361 "configure" | 14832 /* confdefs.h. */ |
8361 #include "confdefs.h" | 14833 _ACEOF |
14834 cat confdefs.h >>conftest.$ac_ext | |
14835 cat >>conftest.$ac_ext <<_ACEOF | |
14836 /* end confdefs.h. */ | |
8362 #include <X11/Xlocale.h> | 14837 #include <X11/Xlocale.h> |
8363 int main() { | 14838 int |
8364 | 14839 main () |
8365 ; return 0; } | 14840 { |
8366 EOF | 14841 |
8367 if { (eval echo configure:8368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 14842 ; |
8368 rm -rf conftest* | 14843 return 0; |
8369 cat > conftest.$ac_ext <<EOF | 14844 } |
8370 #line 8371 "configure" | 14845 _ACEOF |
8371 #include "confdefs.h" | 14846 rm -f conftest.$ac_objext |
14847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14848 (eval $ac_compile) 2>conftest.er1 | |
14849 ac_status=$? | |
14850 grep -v '^ *+' conftest.er1 >conftest.err | |
14851 rm -f conftest.er1 | |
14852 cat conftest.err >&5 | |
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14854 (exit $ac_status); } && | |
14855 { ac_try='test -z "$ac_c_werror_flag" | |
14856 || test ! -s conftest.err' | |
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14858 (eval $ac_try) 2>&5 | |
14859 ac_status=$? | |
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14861 (exit $ac_status); }; } && | |
14862 { ac_try='test -s conftest.$ac_objext' | |
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14864 (eval $ac_try) 2>&5 | |
14865 ac_status=$? | |
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14867 (exit $ac_status); }; }; then | |
14868 cat >conftest.$ac_ext <<_ACEOF | |
14869 /* confdefs.h. */ | |
14870 _ACEOF | |
14871 cat confdefs.h >>conftest.$ac_ext | |
14872 cat >>conftest.$ac_ext <<_ACEOF | |
14873 /* end confdefs.h. */ | |
14874 | |
8372 /* Override any gcc2 internal prototype to avoid an error. */ | 14875 /* Override any gcc2 internal prototype to avoid an error. */ |
14876 #ifdef __cplusplus | |
14877 extern "C" | |
14878 #endif | |
8373 /* We use char because int might match the return type of a gcc2 | 14879 /* We use char because int might match the return type of a gcc2 |
8374 builtin and then its argument prototype would still apply. */ | 14880 builtin and then its argument prototype would still apply. */ |
8375 char _Xsetlocale(); | 14881 char _Xsetlocale (); |
8376 | 14882 int |
8377 int main() { | 14883 main () |
8378 _Xsetlocale() | 14884 { |
8379 ; return 0; } | 14885 _Xsetlocale (); |
8380 EOF | 14886 ; |
8381 if { (eval echo configure:8382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14887 return 0; |
8382 rm -rf conftest* | 14888 } |
8383 echo "$ac_t""yes" 1>&6 | 14889 _ACEOF |
8384 cat >> confdefs.h <<\EOF | 14890 rm -f conftest.$ac_objext conftest$ac_exeext |
14891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14892 (eval $ac_link) 2>conftest.er1 | |
14893 ac_status=$? | |
14894 grep -v '^ *+' conftest.er1 >conftest.err | |
14895 rm -f conftest.er1 | |
14896 cat conftest.err >&5 | |
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14898 (exit $ac_status); } && | |
14899 { ac_try='test -z "$ac_c_werror_flag" | |
14900 || test ! -s conftest.err' | |
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14902 (eval $ac_try) 2>&5 | |
14903 ac_status=$? | |
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14905 (exit $ac_status); }; } && | |
14906 { ac_try='test -s conftest$ac_exeext' | |
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14908 (eval $ac_try) 2>&5 | |
14909 ac_status=$? | |
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14911 (exit $ac_status); }; }; then | |
14912 echo "$as_me:$LINENO: result: yes" >&5 | |
14913 echo "${ECHO_T}yes" >&6 | |
14914 cat >>confdefs.h <<\_ACEOF | |
8385 #define X_LOCALE 1 | 14915 #define X_LOCALE 1 |
8386 EOF | 14916 _ACEOF |
8387 | 14917 |
8388 else | 14918 else |
8389 echo "configure: failed program was:" >&5 | 14919 echo "$as_me: failed program was:" >&5 |
8390 cat conftest.$ac_ext >&5 | 14920 sed 's/^/| /' conftest.$ac_ext >&5 |
8391 rm -rf conftest* | 14921 |
8392 echo "$ac_t""no" 1>&6 | 14922 echo "$as_me:$LINENO: result: no" >&5 |
8393 fi | 14923 echo "${ECHO_T}no" >&6 |
8394 rm -f conftest* | 14924 fi |
8395 else | 14925 rm -f conftest.err conftest.$ac_objext \ |
8396 echo "configure: failed program was:" >&5 | 14926 conftest$ac_exeext conftest.$ac_ext |
8397 cat conftest.$ac_ext >&5 | 14927 else |
8398 rm -rf conftest* | 14928 echo "$as_me: failed program was:" >&5 |
8399 echo "$ac_t""no" 1>&6 | 14929 sed 's/^/| /' conftest.$ac_ext >&5 |
8400 fi | 14930 |
8401 rm -f conftest* | 14931 echo "$as_me:$LINENO: result: no" >&5 |
14932 echo "${ECHO_T}no" >&6 | |
14933 fi | |
14934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8402 fi | 14935 fi |
8403 CFLAGS=$cflags_save | 14936 CFLAGS=$cflags_save |
8404 LDFLAGS=$ldflags_save | 14937 LDFLAGS=$ldflags_save |
8405 fi | 14938 fi |
8406 | 14939 |
8407 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6 | 14940 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
8408 echo "configure:8409: checking for _xpg4_setrunelocale in -lxpg4" >&5 | 14941 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
8409 ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'` | 14942 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
8410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 14943 echo $ECHO_N "(cached) $ECHO_C" >&6 |
8411 echo $ac_n "(cached) $ac_c" 1>&6 | 14944 else |
8412 else | 14945 ac_check_lib_save_LIBS=$LIBS |
8413 ac_save_LIBS="$LIBS" | |
8414 LIBS="-lxpg4 $LIBS" | 14946 LIBS="-lxpg4 $LIBS" |
8415 cat > conftest.$ac_ext <<EOF | 14947 cat >conftest.$ac_ext <<_ACEOF |
8416 #line 8417 "configure" | 14948 /* confdefs.h. */ |
8417 #include "confdefs.h" | 14949 _ACEOF |
14950 cat confdefs.h >>conftest.$ac_ext | |
14951 cat >>conftest.$ac_ext <<_ACEOF | |
14952 /* end confdefs.h. */ | |
14953 | |
8418 /* Override any gcc2 internal prototype to avoid an error. */ | 14954 /* Override any gcc2 internal prototype to avoid an error. */ |
14955 #ifdef __cplusplus | |
14956 extern "C" | |
14957 #endif | |
8419 /* We use char because int might match the return type of a gcc2 | 14958 /* We use char because int might match the return type of a gcc2 |
8420 builtin and then its argument prototype would still apply. */ | 14959 builtin and then its argument prototype would still apply. */ |
8421 char _xpg4_setrunelocale(); | 14960 char _xpg4_setrunelocale (); |
8422 | 14961 int |
8423 int main() { | 14962 main () |
8424 _xpg4_setrunelocale() | 14963 { |
8425 ; return 0; } | 14964 _xpg4_setrunelocale (); |
8426 EOF | 14965 ; |
8427 if { (eval echo configure:8428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14966 return 0; |
8428 rm -rf conftest* | 14967 } |
8429 eval "ac_cv_lib_$ac_lib_var=yes" | 14968 _ACEOF |
8430 else | 14969 rm -f conftest.$ac_objext conftest$ac_exeext |
8431 echo "configure: failed program was:" >&5 | 14970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8432 cat conftest.$ac_ext >&5 | 14971 (eval $ac_link) 2>conftest.er1 |
8433 rm -rf conftest* | 14972 ac_status=$? |
8434 eval "ac_cv_lib_$ac_lib_var=no" | 14973 grep -v '^ *+' conftest.er1 >conftest.err |
8435 fi | 14974 rm -f conftest.er1 |
8436 rm -f conftest* | 14975 cat conftest.err >&5 |
8437 LIBS="$ac_save_LIBS" | 14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8438 | 14977 (exit $ac_status); } && |
8439 fi | 14978 { ac_try='test -z "$ac_c_werror_flag" |
8440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 14979 || test ! -s conftest.err' |
8441 echo "$ac_t""yes" 1>&6 | 14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14981 (eval $ac_try) 2>&5 | |
14982 ac_status=$? | |
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14984 (exit $ac_status); }; } && | |
14985 { ac_try='test -s conftest$ac_exeext' | |
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14987 (eval $ac_try) 2>&5 | |
14988 ac_status=$? | |
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14990 (exit $ac_status); }; }; then | |
14991 ac_cv_lib_xpg4__xpg4_setrunelocale=yes | |
14992 else | |
14993 echo "$as_me: failed program was:" >&5 | |
14994 sed 's/^/| /' conftest.$ac_ext >&5 | |
14995 | |
14996 ac_cv_lib_xpg4__xpg4_setrunelocale=no | |
14997 fi | |
14998 rm -f conftest.err conftest.$ac_objext \ | |
14999 conftest$ac_exeext conftest.$ac_ext | |
15000 LIBS=$ac_check_lib_save_LIBS | |
15001 fi | |
15002 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 | |
15003 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 | |
15004 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then | |
8442 LIBS="$LIBS -lxpg4" | 15005 LIBS="$LIBS -lxpg4" |
8443 else | 15006 fi |
8444 echo "$ac_t""no" 1>&6 | 15007 |
8445 fi | 15008 |
8446 | 15009 echo "$as_me:$LINENO: checking how to create tags" >&5 |
8447 | 15010 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6 |
8448 echo $ac_n "checking how to create tags""... $ac_c" 1>&6 | |
8449 echo "configure:8450: checking how to create tags" >&5 | |
8450 test -f tags && mv tags tags.save | 15011 test -f tags && mv tags tags.save |
8451 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then | 15012 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
8452 TAGPRG="ctags" | 15013 TAGPRG="ctags" |
8453 else | 15014 else |
8454 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" | 15015 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
8458 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" | 15019 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
8459 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" | 15020 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
8460 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" | 15021 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
8461 fi | 15022 fi |
8462 test -f tags.save && mv tags.save tags | 15023 test -f tags.save && mv tags.save tags |
8463 echo "$ac_t""$TAGPRG" 1>&6 | 15024 echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
8464 | 15025 echo "${ECHO_T}$TAGPRG" >&6 |
8465 echo $ac_n "checking how to run man with a section nr""... $ac_c" 1>&6 | 15026 |
8466 echo "configure:8467: checking how to run man with a section nr" >&5 | 15027 echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
15028 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6 | |
8467 MANDEF="man" | 15029 MANDEF="man" |
8468 (eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" | 15030 (eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" |
8469 echo "$ac_t""$MANDEF" 1>&6 | 15031 echo "$as_me:$LINENO: result: $MANDEF" >&5 |
15032 echo "${ECHO_T}$MANDEF" >&6 | |
8470 if test "$MANDEF" = "man -s"; then | 15033 if test "$MANDEF" = "man -s"; then |
8471 cat >> confdefs.h <<\EOF | 15034 cat >>confdefs.h <<\_ACEOF |
8472 #define USEMAN_S 1 | 15035 #define USEMAN_S 1 |
8473 EOF | 15036 _ACEOF |
8474 | 15037 |
8475 fi | 15038 fi |
8476 | 15039 |
8477 echo $ac_n "checking --disable-nls argument""... $ac_c" 1>&6 | 15040 echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
8478 echo "configure:8479: checking --disable-nls argument" >&5 | 15041 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6 |
8479 # Check whether --enable-nls or --disable-nls was given. | 15042 # Check whether --enable-nls or --disable-nls was given. |
8480 if test "${enable_nls+set}" = set; then | 15043 if test "${enable_nls+set}" = set; then |
8481 enableval="$enable_nls" | 15044 enableval="$enable_nls" |
8482 : | 15045 |
8483 else | 15046 else |
8484 enable_nls="yes" | 15047 enable_nls="yes" |
8485 fi | 15048 fi; |
8486 | |
8487 | 15049 |
8488 if test "$enable_nls" = "yes"; then | 15050 if test "$enable_nls" = "yes"; then |
8489 echo "$ac_t""no" 1>&6 | 15051 echo "$as_me:$LINENO: result: no" >&5 |
15052 echo "${ECHO_T}no" >&6 | |
8490 # Extract the first word of "msgfmt", so it can be a program name with args. | 15053 # Extract the first word of "msgfmt", so it can be a program name with args. |
8491 set dummy msgfmt; ac_word=$2 | 15054 set dummy msgfmt; ac_word=$2 |
8492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 15055 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8493 echo "configure:8494: checking for $ac_word" >&5 | 15056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8494 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then | 15057 if test "${ac_cv_prog_MSGFMT+set}" = set; then |
8495 echo $ac_n "(cached) $ac_c" 1>&6 | 15058 echo $ECHO_N "(cached) $ECHO_C" >&6 |
8496 else | 15059 else |
8497 if test -n "$MSGFMT"; then | 15060 if test -n "$MSGFMT"; then |
8498 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | 15061 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
8499 else | 15062 else |
8500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 15063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8501 ac_dummy="$PATH" | 15064 for as_dir in $PATH |
8502 for ac_dir in $ac_dummy; do | 15065 do |
8503 test -z "$ac_dir" && ac_dir=. | 15066 IFS=$as_save_IFS |
8504 if test -f $ac_dir/$ac_word; then | 15067 test -z "$as_dir" && as_dir=. |
8505 ac_cv_prog_MSGFMT="msgfmt" | 15068 for ac_exec_ext in '' $ac_executable_extensions; do |
8506 break | 15069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8507 fi | 15070 ac_cv_prog_MSGFMT="msgfmt" |
8508 done | 15071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8509 IFS="$ac_save_ifs" | 15072 break 2 |
8510 fi | 15073 fi |
8511 fi | 15074 done |
8512 MSGFMT="$ac_cv_prog_MSGFMT" | 15075 done |
15076 | |
15077 fi | |
15078 fi | |
15079 MSGFMT=$ac_cv_prog_MSGFMT | |
8513 if test -n "$MSGFMT"; then | 15080 if test -n "$MSGFMT"; then |
8514 echo "$ac_t""$MSGFMT" 1>&6 | 15081 echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
8515 else | 15082 echo "${ECHO_T}$MSGFMT" >&6 |
8516 echo "$ac_t""no" 1>&6 | 15083 else |
8517 fi | 15084 echo "$as_me:$LINENO: result: no" >&5 |
8518 | 15085 echo "${ECHO_T}no" >&6 |
8519 echo $ac_n "checking for NLS""... $ac_c" 1>&6 | 15086 fi |
8520 echo "configure:8521: checking for NLS" >&5 | 15087 |
15088 echo "$as_me:$LINENO: checking for NLS" >&5 | |
15089 echo $ECHO_N "checking for NLS... $ECHO_C" >&6 | |
8521 if test -f po/Makefile; then | 15090 if test -f po/Makefile; then |
8522 have_gettext="no" | 15091 have_gettext="no" |
8523 if test -n "$MSGFMT"; then | 15092 if test -n "$MSGFMT"; then |
8524 cat > conftest.$ac_ext <<EOF | 15093 cat >conftest.$ac_ext <<_ACEOF |
8525 #line 8526 "configure" | 15094 /* confdefs.h. */ |
8526 #include "confdefs.h" | 15095 _ACEOF |
15096 cat confdefs.h >>conftest.$ac_ext | |
15097 cat >>conftest.$ac_ext <<_ACEOF | |
15098 /* end confdefs.h. */ | |
8527 #include <libintl.h> | 15099 #include <libintl.h> |
8528 int main() { | 15100 int |
15101 main () | |
15102 { | |
8529 gettext("Test"); | 15103 gettext("Test"); |
8530 ; return 0; } | 15104 ; |
8531 EOF | 15105 return 0; |
8532 if { (eval echo configure:8533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15106 } |
8533 rm -rf conftest* | 15107 _ACEOF |
8534 echo "$ac_t""gettext() works" 1>&6; have_gettext="yes" | 15108 rm -f conftest.$ac_objext conftest$ac_exeext |
8535 else | 15109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8536 echo "configure: failed program was:" >&5 | 15110 (eval $ac_link) 2>conftest.er1 |
8537 cat conftest.$ac_ext >&5 | 15111 ac_status=$? |
8538 rm -rf conftest* | 15112 grep -v '^ *+' conftest.er1 >conftest.err |
8539 olibs=$LIBS | 15113 rm -f conftest.er1 |
15114 cat conftest.err >&5 | |
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15116 (exit $ac_status); } && | |
15117 { ac_try='test -z "$ac_c_werror_flag" | |
15118 || test ! -s conftest.err' | |
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15120 (eval $ac_try) 2>&5 | |
15121 ac_status=$? | |
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15123 (exit $ac_status); }; } && | |
15124 { ac_try='test -s conftest$ac_exeext' | |
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15126 (eval $ac_try) 2>&5 | |
15127 ac_status=$? | |
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15129 (exit $ac_status); }; }; then | |
15130 echo "$as_me:$LINENO: result: gettext() works" >&5 | |
15131 echo "${ECHO_T}gettext() works" >&6; have_gettext="yes" | |
15132 else | |
15133 echo "$as_me: failed program was:" >&5 | |
15134 sed 's/^/| /' conftest.$ac_ext >&5 | |
15135 | |
15136 olibs=$LIBS | |
8540 LIBS="$LIBS -lintl" | 15137 LIBS="$LIBS -lintl" |
8541 cat > conftest.$ac_ext <<EOF | 15138 cat >conftest.$ac_ext <<_ACEOF |
8542 #line 8543 "configure" | 15139 /* confdefs.h. */ |
8543 #include "confdefs.h" | 15140 _ACEOF |
15141 cat confdefs.h >>conftest.$ac_ext | |
15142 cat >>conftest.$ac_ext <<_ACEOF | |
15143 /* end confdefs.h. */ | |
8544 #include <libintl.h> | 15144 #include <libintl.h> |
8545 int main() { | 15145 int |
15146 main () | |
15147 { | |
8546 gettext("Test"); | 15148 gettext("Test"); |
8547 ; return 0; } | 15149 ; |
8548 EOF | 15150 return 0; |
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15151 } |
8550 rm -rf conftest* | 15152 _ACEOF |
8551 echo "$ac_t""gettext() works with -lintl" 1>&6; have_gettext="yes" | 15153 rm -f conftest.$ac_objext conftest$ac_exeext |
8552 else | 15154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8553 echo "configure: failed program was:" >&5 | 15155 (eval $ac_link) 2>conftest.er1 |
8554 cat conftest.$ac_ext >&5 | 15156 ac_status=$? |
8555 rm -rf conftest* | 15157 grep -v '^ *+' conftest.er1 >conftest.err |
8556 echo "$ac_t""gettext() doesn't work" 1>&6; | 15158 rm -f conftest.er1 |
15159 cat conftest.err >&5 | |
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15161 (exit $ac_status); } && | |
15162 { ac_try='test -z "$ac_c_werror_flag" | |
15163 || test ! -s conftest.err' | |
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15165 (eval $ac_try) 2>&5 | |
15166 ac_status=$? | |
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15168 (exit $ac_status); }; } && | |
15169 { ac_try='test -s conftest$ac_exeext' | |
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15171 (eval $ac_try) 2>&5 | |
15172 ac_status=$? | |
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15174 (exit $ac_status); }; }; then | |
15175 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 | |
15176 echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes" | |
15177 else | |
15178 echo "$as_me: failed program was:" >&5 | |
15179 sed 's/^/| /' conftest.$ac_ext >&5 | |
15180 | |
15181 echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 | |
15182 echo "${ECHO_T}gettext() doesn't work" >&6; | |
8557 LIBS=$olibs | 15183 LIBS=$olibs |
8558 fi | 15184 fi |
8559 rm -f conftest* | 15185 rm -f conftest.err conftest.$ac_objext \ |
8560 fi | 15186 conftest$ac_exeext conftest.$ac_ext |
8561 rm -f conftest* | 15187 fi |
15188 rm -f conftest.err conftest.$ac_objext \ | |
15189 conftest$ac_exeext conftest.$ac_ext | |
8562 else | 15190 else |
8563 echo "$ac_t""msgfmt not found - disabled" 1>&6; | 15191 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
15192 echo "${ECHO_T}msgfmt not found - disabled" >&6; | |
8564 fi | 15193 fi |
8565 if test $have_gettext = "yes"; then | 15194 if test $have_gettext = "yes"; then |
8566 cat >> confdefs.h <<\EOF | 15195 cat >>confdefs.h <<\_ACEOF |
8567 #define HAVE_GETTEXT 1 | 15196 #define HAVE_GETTEXT 1 |
8568 EOF | 15197 _ACEOF |
8569 | 15198 |
8570 MAKEMO=yes | 15199 MAKEMO=yes |
8571 | 15200 |
8572 for ac_func in bind_textdomain_codeset | 15201 |
15202 for ac_func in bind_textdomain_codeset | |
8573 do | 15203 do |
8574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 15204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8575 echo "configure:8576: checking for $ac_func" >&5 | 15205 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 15206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8577 echo $ac_n "(cached) $ac_c" 1>&6 | 15207 if eval "test \"\${$as_ac_var+set}\" = set"; then |
8578 else | 15208 echo $ECHO_N "(cached) $ECHO_C" >&6 |
8579 cat > conftest.$ac_ext <<EOF | 15209 else |
8580 #line 8581 "configure" | 15210 cat >conftest.$ac_ext <<_ACEOF |
8581 #include "confdefs.h" | 15211 /* confdefs.h. */ |
15212 _ACEOF | |
15213 cat confdefs.h >>conftest.$ac_ext | |
15214 cat >>conftest.$ac_ext <<_ACEOF | |
15215 /* end confdefs.h. */ | |
15216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15217 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15218 #define $ac_func innocuous_$ac_func | |
15219 | |
8582 /* System header to define __stub macros and hopefully few prototypes, | 15220 /* System header to define __stub macros and hopefully few prototypes, |
8583 which can conflict with char $ac_func(); below. */ | 15221 which can conflict with char $ac_func (); below. |
8584 #include <assert.h> | 15222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
15223 <limits.h> exists even on freestanding compilers. */ | |
15224 | |
15225 #ifdef __STDC__ | |
15226 # include <limits.h> | |
15227 #else | |
15228 # include <assert.h> | |
15229 #endif | |
15230 | |
15231 #undef $ac_func | |
15232 | |
8585 /* Override any gcc2 internal prototype to avoid an error. */ | 15233 /* Override any gcc2 internal prototype to avoid an error. */ |
15234 #ifdef __cplusplus | |
15235 extern "C" | |
15236 { | |
15237 #endif | |
8586 /* We use char because int might match the return type of a gcc2 | 15238 /* We use char because int might match the return type of a gcc2 |
8587 builtin and then its argument prototype would still apply. */ | 15239 builtin and then its argument prototype would still apply. */ |
8588 char $ac_func(); | 15240 char $ac_func (); |
8589 | |
8590 int main() { | |
8591 | |
8592 /* The GNU C library defines this for functions which it implements | 15241 /* The GNU C library defines this for functions which it implements |
8593 to always fail with ENOSYS. Some functions are actually named | 15242 to always fail with ENOSYS. Some functions are actually named |
8594 something starting with __ and the normal name is an alias. */ | 15243 something starting with __ and the normal name is an alias. */ |
8595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 15244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
8596 choke me | 15245 choke me |
8597 #else | 15246 #else |
8598 $ac_func(); | 15247 char (*f) () = $ac_func; |
8599 #endif | 15248 #endif |
8600 | 15249 #ifdef __cplusplus |
8601 ; return 0; } | 15250 } |
8602 EOF | 15251 #endif |
8603 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15252 |
8604 rm -rf conftest* | 15253 int |
8605 eval "ac_cv_func_$ac_func=yes" | 15254 main () |
8606 else | 15255 { |
8607 echo "configure: failed program was:" >&5 | 15256 return f != $ac_func; |
8608 cat conftest.$ac_ext >&5 | 15257 ; |
8609 rm -rf conftest* | 15258 return 0; |
8610 eval "ac_cv_func_$ac_func=no" | 15259 } |
8611 fi | 15260 _ACEOF |
8612 rm -f conftest* | 15261 rm -f conftest.$ac_objext conftest$ac_exeext |
8613 fi | 15262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8614 | 15263 (eval $ac_link) 2>conftest.er1 |
8615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 15264 ac_status=$? |
8616 echo "$ac_t""yes" 1>&6 | 15265 grep -v '^ *+' conftest.er1 >conftest.err |
8617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 15266 rm -f conftest.er1 |
8618 cat >> confdefs.h <<EOF | 15267 cat conftest.err >&5 |
8619 #define $ac_tr_func 1 | 15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8620 EOF | 15269 (exit $ac_status); } && |
8621 | 15270 { ac_try='test -z "$ac_c_werror_flag" |
8622 else | 15271 || test ! -s conftest.err' |
8623 echo "$ac_t""no" 1>&6 | 15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15273 (eval $ac_try) 2>&5 | |
15274 ac_status=$? | |
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15276 (exit $ac_status); }; } && | |
15277 { ac_try='test -s conftest$ac_exeext' | |
15278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15279 (eval $ac_try) 2>&5 | |
15280 ac_status=$? | |
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15282 (exit $ac_status); }; }; then | |
15283 eval "$as_ac_var=yes" | |
15284 else | |
15285 echo "$as_me: failed program was:" >&5 | |
15286 sed 's/^/| /' conftest.$ac_ext >&5 | |
15287 | |
15288 eval "$as_ac_var=no" | |
15289 fi | |
15290 rm -f conftest.err conftest.$ac_objext \ | |
15291 conftest$ac_exeext conftest.$ac_ext | |
15292 fi | |
15293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15295 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15296 cat >>confdefs.h <<_ACEOF | |
15297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15298 _ACEOF | |
15299 | |
8624 fi | 15300 fi |
8625 done | 15301 done |
8626 | 15302 |
8627 echo $ac_n "checking for _nl_msg_cat_cntr""... $ac_c" 1>&6 | 15303 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
8628 echo "configure:8629: checking for _nl_msg_cat_cntr" >&5 | 15304 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6 |
8629 cat > conftest.$ac_ext <<EOF | 15305 cat >conftest.$ac_ext <<_ACEOF |
8630 #line 8631 "configure" | 15306 /* confdefs.h. */ |
8631 #include "confdefs.h" | 15307 _ACEOF |
15308 cat confdefs.h >>conftest.$ac_ext | |
15309 cat >>conftest.$ac_ext <<_ACEOF | |
15310 /* end confdefs.h. */ | |
8632 #include <libintl.h> | 15311 #include <libintl.h> |
8633 extern int _nl_msg_cat_cntr; | 15312 extern int _nl_msg_cat_cntr; |
8634 int main() { | 15313 int |
15314 main () | |
15315 { | |
8635 ++_nl_msg_cat_cntr; | 15316 ++_nl_msg_cat_cntr; |
8636 ; return 0; } | 15317 ; |
8637 EOF | 15318 return 0; |
8638 if { (eval echo configure:8639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15319 } |
8639 rm -rf conftest* | 15320 _ACEOF |
8640 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 15321 rm -f conftest.$ac_objext conftest$ac_exeext |
15322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15323 (eval $ac_link) 2>conftest.er1 | |
15324 ac_status=$? | |
15325 grep -v '^ *+' conftest.er1 >conftest.err | |
15326 rm -f conftest.er1 | |
15327 cat conftest.err >&5 | |
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15329 (exit $ac_status); } && | |
15330 { ac_try='test -z "$ac_c_werror_flag" | |
15331 || test ! -s conftest.err' | |
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15333 (eval $ac_try) 2>&5 | |
15334 ac_status=$? | |
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15336 (exit $ac_status); }; } && | |
15337 { ac_try='test -s conftest$ac_exeext' | |
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15339 (eval $ac_try) 2>&5 | |
15340 ac_status=$? | |
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15342 (exit $ac_status); }; }; then | |
15343 echo "$as_me:$LINENO: result: yes" >&5 | |
15344 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF | |
8641 #define HAVE_NL_MSG_CAT_CNTR 1 | 15345 #define HAVE_NL_MSG_CAT_CNTR 1 |
8642 EOF | 15346 _ACEOF |
8643 | 15347 |
8644 else | 15348 else |
8645 echo "configure: failed program was:" >&5 | 15349 echo "$as_me: failed program was:" >&5 |
8646 cat conftest.$ac_ext >&5 | 15350 sed 's/^/| /' conftest.$ac_ext >&5 |
8647 rm -rf conftest* | 15351 |
8648 echo "$ac_t""no" 1>&6 | 15352 echo "$as_me:$LINENO: result: no" >&5 |
8649 fi | 15353 echo "${ECHO_T}no" >&6 |
8650 rm -f conftest* | 15354 fi |
15355 rm -f conftest.err conftest.$ac_objext \ | |
15356 conftest$ac_exeext conftest.$ac_ext | |
8651 fi | 15357 fi |
8652 else | 15358 else |
8653 echo "$ac_t""no "po/Makefile" - disabled" 1>&6; | 15359 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
15360 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; | |
8654 fi | 15361 fi |
8655 else | 15362 else |
8656 echo "$ac_t""yes" 1>&6 | 15363 echo "$as_me:$LINENO: result: yes" >&5 |
8657 fi | 15364 echo "${ECHO_T}yes" >&6 |
8658 | 15365 fi |
8659 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` | 15366 |
8660 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 | 15367 if test "${ac_cv_header_dlfcn_h+set}" = set; then |
8661 echo "configure:8662: checking for dlfcn.h" >&5 | 15368 echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
8662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 15369 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
8663 echo $ac_n "(cached) $ac_c" 1>&6 | 15370 if test "${ac_cv_header_dlfcn_h+set}" = set; then |
8664 else | 15371 echo $ECHO_N "(cached) $ECHO_C" >&6 |
8665 cat > conftest.$ac_ext <<EOF | 15372 fi |
8666 #line 8667 "configure" | 15373 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
8667 #include "confdefs.h" | 15374 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
15375 else | |
15376 # Is the header compilable? | |
15377 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 | |
15378 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 | |
15379 cat >conftest.$ac_ext <<_ACEOF | |
15380 /* confdefs.h. */ | |
15381 _ACEOF | |
15382 cat confdefs.h >>conftest.$ac_ext | |
15383 cat >>conftest.$ac_ext <<_ACEOF | |
15384 /* end confdefs.h. */ | |
15385 $ac_includes_default | |
8668 #include <dlfcn.h> | 15386 #include <dlfcn.h> |
8669 EOF | 15387 _ACEOF |
8670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 15388 rm -f conftest.$ac_objext |
8671 { (eval echo configure:8672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 15389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 15390 (eval $ac_compile) 2>conftest.er1 |
8673 if test -z "$ac_err"; then | 15391 ac_status=$? |
8674 rm -rf conftest* | 15392 grep -v '^ *+' conftest.er1 >conftest.err |
8675 eval "ac_cv_header_$ac_safe=yes" | 15393 rm -f conftest.er1 |
8676 else | 15394 cat conftest.err >&5 |
8677 echo "$ac_err" >&5 | 15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8678 echo "configure: failed program was:" >&5 | 15396 (exit $ac_status); } && |
8679 cat conftest.$ac_ext >&5 | 15397 { ac_try='test -z "$ac_c_werror_flag" |
8680 rm -rf conftest* | 15398 || test ! -s conftest.err' |
8681 eval "ac_cv_header_$ac_safe=no" | 15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8682 fi | 15400 (eval $ac_try) 2>&5 |
8683 rm -f conftest* | 15401 ac_status=$? |
8684 fi | 15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 15403 (exit $ac_status); }; } && |
8686 echo "$ac_t""yes" 1>&6 | 15404 { ac_try='test -s conftest.$ac_objext' |
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15406 (eval $ac_try) 2>&5 | |
15407 ac_status=$? | |
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15409 (exit $ac_status); }; }; then | |
15410 ac_header_compiler=yes | |
15411 else | |
15412 echo "$as_me: failed program was:" >&5 | |
15413 sed 's/^/| /' conftest.$ac_ext >&5 | |
15414 | |
15415 ac_header_compiler=no | |
15416 fi | |
15417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15419 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15420 | |
15421 # Is the header present? | |
15422 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 | |
15423 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 | |
15424 cat >conftest.$ac_ext <<_ACEOF | |
15425 /* confdefs.h. */ | |
15426 _ACEOF | |
15427 cat confdefs.h >>conftest.$ac_ext | |
15428 cat >>conftest.$ac_ext <<_ACEOF | |
15429 /* end confdefs.h. */ | |
15430 #include <dlfcn.h> | |
15431 _ACEOF | |
15432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15434 ac_status=$? | |
15435 grep -v '^ *+' conftest.er1 >conftest.err | |
15436 rm -f conftest.er1 | |
15437 cat conftest.err >&5 | |
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15439 (exit $ac_status); } >/dev/null; then | |
15440 if test -s conftest.err; then | |
15441 ac_cpp_err=$ac_c_preproc_warn_flag | |
15442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15443 else | |
15444 ac_cpp_err= | |
15445 fi | |
15446 else | |
15447 ac_cpp_err=yes | |
15448 fi | |
15449 if test -z "$ac_cpp_err"; then | |
15450 ac_header_preproc=yes | |
15451 else | |
15452 echo "$as_me: failed program was:" >&5 | |
15453 sed 's/^/| /' conftest.$ac_ext >&5 | |
15454 | |
15455 ac_header_preproc=no | |
15456 fi | |
15457 rm -f conftest.err conftest.$ac_ext | |
15458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15459 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15460 | |
15461 # So? What about this header? | |
15462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15463 yes:no: ) | |
15464 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15465 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15466 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 | |
15467 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} | |
15468 ac_header_preproc=yes | |
15469 ;; | |
15470 no:yes:* ) | |
15471 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 | |
15472 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} | |
15473 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 | |
15474 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} | |
15475 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 | |
15476 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} | |
15477 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15478 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15479 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 | |
15480 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} | |
15481 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 | |
15482 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} | |
15483 ( | |
15484 cat <<\_ASBOX | |
15485 ## ------------------------------------------ ## | |
15486 ## Report this to the AC_PACKAGE_NAME lists. ## | |
15487 ## ------------------------------------------ ## | |
15488 _ASBOX | |
15489 ) | | |
15490 sed "s/^/$as_me: WARNING: /" >&2 | |
15491 ;; | |
15492 esac | |
15493 echo "$as_me:$LINENO: checking for dlfcn.h" >&5 | |
15494 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 | |
15495 if test "${ac_cv_header_dlfcn_h+set}" = set; then | |
15496 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15497 else | |
15498 ac_cv_header_dlfcn_h=$ac_header_preproc | |
15499 fi | |
15500 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 | |
15501 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 | |
15502 | |
15503 fi | |
15504 if test $ac_cv_header_dlfcn_h = yes; then | |
8687 DLL=dlfcn.h | 15505 DLL=dlfcn.h |
8688 else | 15506 else |
8689 echo "$ac_t""no" 1>&6 | 15507 if test "${ac_cv_header_dl_h+set}" = set; then |
8690 ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'` | 15508 echo "$as_me:$LINENO: checking for dl.h" >&5 |
8691 echo $ac_n "checking for dl.h""... $ac_c" 1>&6 | 15509 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
8692 echo "configure:8693: checking for dl.h" >&5 | 15510 if test "${ac_cv_header_dl_h+set}" = set; then |
8693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 15511 echo $ECHO_N "(cached) $ECHO_C" >&6 |
8694 echo $ac_n "(cached) $ac_c" 1>&6 | 15512 fi |
8695 else | 15513 echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
8696 cat > conftest.$ac_ext <<EOF | 15514 echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
8697 #line 8698 "configure" | 15515 else |
8698 #include "confdefs.h" | 15516 # Is the header compilable? |
15517 echo "$as_me:$LINENO: checking dl.h usability" >&5 | |
15518 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6 | |
15519 cat >conftest.$ac_ext <<_ACEOF | |
15520 /* confdefs.h. */ | |
15521 _ACEOF | |
15522 cat confdefs.h >>conftest.$ac_ext | |
15523 cat >>conftest.$ac_ext <<_ACEOF | |
15524 /* end confdefs.h. */ | |
15525 $ac_includes_default | |
8699 #include <dl.h> | 15526 #include <dl.h> |
8700 EOF | 15527 _ACEOF |
8701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 15528 rm -f conftest.$ac_objext |
8702 { (eval echo configure:8703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 15529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 15530 (eval $ac_compile) 2>conftest.er1 |
8704 if test -z "$ac_err"; then | 15531 ac_status=$? |
8705 rm -rf conftest* | 15532 grep -v '^ *+' conftest.er1 >conftest.err |
8706 eval "ac_cv_header_$ac_safe=yes" | 15533 rm -f conftest.er1 |
8707 else | 15534 cat conftest.err >&5 |
8708 echo "$ac_err" >&5 | 15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8709 echo "configure: failed program was:" >&5 | 15536 (exit $ac_status); } && |
8710 cat conftest.$ac_ext >&5 | 15537 { ac_try='test -z "$ac_c_werror_flag" |
8711 rm -rf conftest* | 15538 || test ! -s conftest.err' |
8712 eval "ac_cv_header_$ac_safe=no" | 15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8713 fi | 15540 (eval $ac_try) 2>&5 |
8714 rm -f conftest* | 15541 ac_status=$? |
8715 fi | 15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 15543 (exit $ac_status); }; } && |
8717 echo "$ac_t""yes" 1>&6 | 15544 { ac_try='test -s conftest.$ac_objext' |
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15546 (eval $ac_try) 2>&5 | |
15547 ac_status=$? | |
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15549 (exit $ac_status); }; }; then | |
15550 ac_header_compiler=yes | |
15551 else | |
15552 echo "$as_me: failed program was:" >&5 | |
15553 sed 's/^/| /' conftest.$ac_ext >&5 | |
15554 | |
15555 ac_header_compiler=no | |
15556 fi | |
15557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15559 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15560 | |
15561 # Is the header present? | |
15562 echo "$as_me:$LINENO: checking dl.h presence" >&5 | |
15563 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6 | |
15564 cat >conftest.$ac_ext <<_ACEOF | |
15565 /* confdefs.h. */ | |
15566 _ACEOF | |
15567 cat confdefs.h >>conftest.$ac_ext | |
15568 cat >>conftest.$ac_ext <<_ACEOF | |
15569 /* end confdefs.h. */ | |
15570 #include <dl.h> | |
15571 _ACEOF | |
15572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15574 ac_status=$? | |
15575 grep -v '^ *+' conftest.er1 >conftest.err | |
15576 rm -f conftest.er1 | |
15577 cat conftest.err >&5 | |
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15579 (exit $ac_status); } >/dev/null; then | |
15580 if test -s conftest.err; then | |
15581 ac_cpp_err=$ac_c_preproc_warn_flag | |
15582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15583 else | |
15584 ac_cpp_err= | |
15585 fi | |
15586 else | |
15587 ac_cpp_err=yes | |
15588 fi | |
15589 if test -z "$ac_cpp_err"; then | |
15590 ac_header_preproc=yes | |
15591 else | |
15592 echo "$as_me: failed program was:" >&5 | |
15593 sed 's/^/| /' conftest.$ac_ext >&5 | |
15594 | |
15595 ac_header_preproc=no | |
15596 fi | |
15597 rm -f conftest.err conftest.$ac_ext | |
15598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15599 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15600 | |
15601 # So? What about this header? | |
15602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15603 yes:no: ) | |
15604 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15605 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15606 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 | |
15607 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} | |
15608 ac_header_preproc=yes | |
15609 ;; | |
15610 no:yes:* ) | |
15611 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 | |
15612 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} | |
15613 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 | |
15614 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} | |
15615 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 | |
15616 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} | |
15617 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15618 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15619 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 | |
15620 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} | |
15621 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 | |
15622 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} | |
15623 ( | |
15624 cat <<\_ASBOX | |
15625 ## ------------------------------------------ ## | |
15626 ## Report this to the AC_PACKAGE_NAME lists. ## | |
15627 ## ------------------------------------------ ## | |
15628 _ASBOX | |
15629 ) | | |
15630 sed "s/^/$as_me: WARNING: /" >&2 | |
15631 ;; | |
15632 esac | |
15633 echo "$as_me:$LINENO: checking for dl.h" >&5 | |
15634 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 | |
15635 if test "${ac_cv_header_dl_h+set}" = set; then | |
15636 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15637 else | |
15638 ac_cv_header_dl_h=$ac_header_preproc | |
15639 fi | |
15640 echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 | |
15641 echo "${ECHO_T}$ac_cv_header_dl_h" >&6 | |
15642 | |
15643 fi | |
15644 if test $ac_cv_header_dl_h = yes; then | |
8718 DLL=dl.h | 15645 DLL=dl.h |
8719 else | 15646 fi |
8720 echo "$ac_t""no" 1>&6 | 15647 |
8721 fi | 15648 |
8722 | 15649 fi |
8723 fi | 15650 |
8724 | 15651 |
8725 if test x${DLL} = xdlfcn.h; then | 15652 if test x${DLL} = xdlfcn.h; then |
8726 cat >> confdefs.h <<\EOF | 15653 |
15654 cat >>confdefs.h <<\_ACEOF | |
8727 #define HAVE_DLFCN_H 1 | 15655 #define HAVE_DLFCN_H 1 |
8728 EOF | 15656 _ACEOF |
8729 | 15657 |
8730 echo $ac_n "checking for dlopen()""... $ac_c" 1>&6 | 15658 echo "$as_me:$LINENO: checking for dlopen()" >&5 |
8731 echo "configure:8732: checking for dlopen()" >&5 | 15659 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6 |
8732 cat > conftest.$ac_ext <<EOF | 15660 cat >conftest.$ac_ext <<_ACEOF |
8733 #line 8734 "configure" | 15661 /* confdefs.h. */ |
8734 #include "confdefs.h" | 15662 _ACEOF |
8735 | 15663 cat confdefs.h >>conftest.$ac_ext |
8736 int main() { | 15664 cat >>conftest.$ac_ext <<_ACEOF |
15665 /* end confdefs.h. */ | |
15666 | |
15667 int | |
15668 main () | |
15669 { | |
8737 | 15670 |
8738 extern void* dlopen(); | 15671 extern void* dlopen(); |
8739 dlopen(); | 15672 dlopen(); |
8740 | 15673 |
8741 ; return 0; } | 15674 ; |
8742 EOF | 15675 return 0; |
8743 if { (eval echo configure:8744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15676 } |
8744 rm -rf conftest* | 15677 _ACEOF |
8745 echo "$ac_t""yes" 1>&6; | 15678 rm -f conftest.$ac_objext conftest$ac_exeext |
8746 cat >> confdefs.h <<\EOF | 15679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15680 (eval $ac_link) 2>conftest.er1 | |
15681 ac_status=$? | |
15682 grep -v '^ *+' conftest.er1 >conftest.err | |
15683 rm -f conftest.er1 | |
15684 cat conftest.err >&5 | |
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15686 (exit $ac_status); } && | |
15687 { ac_try='test -z "$ac_c_werror_flag" | |
15688 || test ! -s conftest.err' | |
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15690 (eval $ac_try) 2>&5 | |
15691 ac_status=$? | |
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15693 (exit $ac_status); }; } && | |
15694 { ac_try='test -s conftest$ac_exeext' | |
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15696 (eval $ac_try) 2>&5 | |
15697 ac_status=$? | |
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15699 (exit $ac_status); }; }; then | |
15700 echo "$as_me:$LINENO: result: yes" >&5 | |
15701 echo "${ECHO_T}yes" >&6; | |
15702 | |
15703 cat >>confdefs.h <<\_ACEOF | |
8747 #define HAVE_DLOPEN 1 | 15704 #define HAVE_DLOPEN 1 |
8748 EOF | 15705 _ACEOF |
8749 | 15706 |
8750 else | 15707 else |
8751 echo "configure: failed program was:" >&5 | 15708 echo "$as_me: failed program was:" >&5 |
8752 cat conftest.$ac_ext >&5 | 15709 sed 's/^/| /' conftest.$ac_ext >&5 |
8753 rm -rf conftest* | 15710 |
8754 echo "$ac_t""no" 1>&6; | 15711 echo "$as_me:$LINENO: result: no" >&5 |
8755 echo $ac_n "checking for dlopen() in -ldl""... $ac_c" 1>&6 | 15712 echo "${ECHO_T}no" >&6; |
8756 echo "configure:8757: checking for dlopen() in -ldl" >&5 | 15713 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
15714 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6 | |
8757 olibs=$LIBS | 15715 olibs=$LIBS |
8758 LIBS="$LIBS -ldl" | 15716 LIBS="$LIBS -ldl" |
8759 cat > conftest.$ac_ext <<EOF | 15717 cat >conftest.$ac_ext <<_ACEOF |
8760 #line 8761 "configure" | 15718 /* confdefs.h. */ |
8761 #include "confdefs.h" | 15719 _ACEOF |
8762 | 15720 cat confdefs.h >>conftest.$ac_ext |
8763 int main() { | 15721 cat >>conftest.$ac_ext <<_ACEOF |
15722 /* end confdefs.h. */ | |
15723 | |
15724 int | |
15725 main () | |
15726 { | |
8764 | 15727 |
8765 extern void* dlopen(); | 15728 extern void* dlopen(); |
8766 dlopen(); | 15729 dlopen(); |
8767 | 15730 |
8768 ; return 0; } | 15731 ; |
8769 EOF | 15732 return 0; |
8770 if { (eval echo configure:8771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15733 } |
8771 rm -rf conftest* | 15734 _ACEOF |
8772 echo "$ac_t""yes" 1>&6; | 15735 rm -f conftest.$ac_objext conftest$ac_exeext |
8773 cat >> confdefs.h <<\EOF | 15736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15737 (eval $ac_link) 2>conftest.er1 | |
15738 ac_status=$? | |
15739 grep -v '^ *+' conftest.er1 >conftest.err | |
15740 rm -f conftest.er1 | |
15741 cat conftest.err >&5 | |
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15743 (exit $ac_status); } && | |
15744 { ac_try='test -z "$ac_c_werror_flag" | |
15745 || test ! -s conftest.err' | |
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15747 (eval $ac_try) 2>&5 | |
15748 ac_status=$? | |
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15750 (exit $ac_status); }; } && | |
15751 { ac_try='test -s conftest$ac_exeext' | |
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15753 (eval $ac_try) 2>&5 | |
15754 ac_status=$? | |
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15756 (exit $ac_status); }; }; then | |
15757 echo "$as_me:$LINENO: result: yes" >&5 | |
15758 echo "${ECHO_T}yes" >&6; | |
15759 | |
15760 cat >>confdefs.h <<\_ACEOF | |
8774 #define HAVE_DLOPEN 1 | 15761 #define HAVE_DLOPEN 1 |
8775 EOF | 15762 _ACEOF |
8776 | 15763 |
8777 else | 15764 else |
8778 echo "configure: failed program was:" >&5 | 15765 echo "$as_me: failed program was:" >&5 |
8779 cat conftest.$ac_ext >&5 | 15766 sed 's/^/| /' conftest.$ac_ext >&5 |
8780 rm -rf conftest* | 15767 |
8781 echo "$ac_t""no" 1>&6; | 15768 echo "$as_me:$LINENO: result: no" >&5 |
15769 echo "${ECHO_T}no" >&6; | |
8782 LIBS=$olibs | 15770 LIBS=$olibs |
8783 fi | 15771 fi |
8784 rm -f conftest* | 15772 rm -f conftest.err conftest.$ac_objext \ |
8785 fi | 15773 conftest$ac_exeext conftest.$ac_ext |
8786 rm -f conftest* | 15774 fi |
8787 echo $ac_n "checking for dlsym()""... $ac_c" 1>&6 | 15775 rm -f conftest.err conftest.$ac_objext \ |
8788 echo "configure:8789: checking for dlsym()" >&5 | 15776 conftest$ac_exeext conftest.$ac_ext |
8789 cat > conftest.$ac_ext <<EOF | 15777 echo "$as_me:$LINENO: checking for dlsym()" >&5 |
8790 #line 8791 "configure" | 15778 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6 |
8791 #include "confdefs.h" | 15779 cat >conftest.$ac_ext <<_ACEOF |
8792 | 15780 /* confdefs.h. */ |
8793 int main() { | 15781 _ACEOF |
15782 cat confdefs.h >>conftest.$ac_ext | |
15783 cat >>conftest.$ac_ext <<_ACEOF | |
15784 /* end confdefs.h. */ | |
15785 | |
15786 int | |
15787 main () | |
15788 { | |
8794 | 15789 |
8795 extern void* dlsym(); | 15790 extern void* dlsym(); |
8796 dlsym(); | 15791 dlsym(); |
8797 | 15792 |
8798 ; return 0; } | 15793 ; |
8799 EOF | 15794 return 0; |
8800 if { (eval echo configure:8801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15795 } |
8801 rm -rf conftest* | 15796 _ACEOF |
8802 echo "$ac_t""yes" 1>&6; | 15797 rm -f conftest.$ac_objext conftest$ac_exeext |
8803 cat >> confdefs.h <<\EOF | 15798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15799 (eval $ac_link) 2>conftest.er1 | |
15800 ac_status=$? | |
15801 grep -v '^ *+' conftest.er1 >conftest.err | |
15802 rm -f conftest.er1 | |
15803 cat conftest.err >&5 | |
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15805 (exit $ac_status); } && | |
15806 { ac_try='test -z "$ac_c_werror_flag" | |
15807 || test ! -s conftest.err' | |
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15809 (eval $ac_try) 2>&5 | |
15810 ac_status=$? | |
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15812 (exit $ac_status); }; } && | |
15813 { ac_try='test -s conftest$ac_exeext' | |
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15815 (eval $ac_try) 2>&5 | |
15816 ac_status=$? | |
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15818 (exit $ac_status); }; }; then | |
15819 echo "$as_me:$LINENO: result: yes" >&5 | |
15820 echo "${ECHO_T}yes" >&6; | |
15821 | |
15822 cat >>confdefs.h <<\_ACEOF | |
8804 #define HAVE_DLSYM 1 | 15823 #define HAVE_DLSYM 1 |
8805 EOF | 15824 _ACEOF |
8806 | 15825 |
8807 else | 15826 else |
8808 echo "configure: failed program was:" >&5 | 15827 echo "$as_me: failed program was:" >&5 |
8809 cat conftest.$ac_ext >&5 | 15828 sed 's/^/| /' conftest.$ac_ext >&5 |
8810 rm -rf conftest* | 15829 |
8811 echo "$ac_t""no" 1>&6; | 15830 echo "$as_me:$LINENO: result: no" >&5 |
8812 echo $ac_n "checking for dlsym() in -ldl""... $ac_c" 1>&6 | 15831 echo "${ECHO_T}no" >&6; |
8813 echo "configure:8814: checking for dlsym() in -ldl" >&5 | 15832 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
15833 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6 | |
8814 olibs=$LIBS | 15834 olibs=$LIBS |
8815 LIBS="$LIBS -ldl" | 15835 LIBS="$LIBS -ldl" |
8816 cat > conftest.$ac_ext <<EOF | 15836 cat >conftest.$ac_ext <<_ACEOF |
8817 #line 8818 "configure" | 15837 /* confdefs.h. */ |
8818 #include "confdefs.h" | 15838 _ACEOF |
8819 | 15839 cat confdefs.h >>conftest.$ac_ext |
8820 int main() { | 15840 cat >>conftest.$ac_ext <<_ACEOF |
15841 /* end confdefs.h. */ | |
15842 | |
15843 int | |
15844 main () | |
15845 { | |
8821 | 15846 |
8822 extern void* dlsym(); | 15847 extern void* dlsym(); |
8823 dlsym(); | 15848 dlsym(); |
8824 | 15849 |
8825 ; return 0; } | 15850 ; |
8826 EOF | 15851 return 0; |
8827 if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15852 } |
8828 rm -rf conftest* | 15853 _ACEOF |
8829 echo "$ac_t""yes" 1>&6; | 15854 rm -f conftest.$ac_objext conftest$ac_exeext |
8830 cat >> confdefs.h <<\EOF | 15855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15856 (eval $ac_link) 2>conftest.er1 | |
15857 ac_status=$? | |
15858 grep -v '^ *+' conftest.er1 >conftest.err | |
15859 rm -f conftest.er1 | |
15860 cat conftest.err >&5 | |
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15862 (exit $ac_status); } && | |
15863 { ac_try='test -z "$ac_c_werror_flag" | |
15864 || test ! -s conftest.err' | |
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15866 (eval $ac_try) 2>&5 | |
15867 ac_status=$? | |
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15869 (exit $ac_status); }; } && | |
15870 { ac_try='test -s conftest$ac_exeext' | |
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15872 (eval $ac_try) 2>&5 | |
15873 ac_status=$? | |
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15875 (exit $ac_status); }; }; then | |
15876 echo "$as_me:$LINENO: result: yes" >&5 | |
15877 echo "${ECHO_T}yes" >&6; | |
15878 | |
15879 cat >>confdefs.h <<\_ACEOF | |
8831 #define HAVE_DLSYM 1 | 15880 #define HAVE_DLSYM 1 |
8832 EOF | 15881 _ACEOF |
8833 | 15882 |
8834 else | 15883 else |
8835 echo "configure: failed program was:" >&5 | 15884 echo "$as_me: failed program was:" >&5 |
8836 cat conftest.$ac_ext >&5 | 15885 sed 's/^/| /' conftest.$ac_ext >&5 |
8837 rm -rf conftest* | 15886 |
8838 echo "$ac_t""no" 1>&6; | 15887 echo "$as_me:$LINENO: result: no" >&5 |
15888 echo "${ECHO_T}no" >&6; | |
8839 LIBS=$olibs | 15889 LIBS=$olibs |
8840 fi | 15890 fi |
8841 rm -f conftest* | 15891 rm -f conftest.err conftest.$ac_objext \ |
8842 fi | 15892 conftest$ac_exeext conftest.$ac_ext |
8843 rm -f conftest* | 15893 fi |
15894 rm -f conftest.err conftest.$ac_objext \ | |
15895 conftest$ac_exeext conftest.$ac_ext | |
8844 elif test x${DLL} = xdl.h; then | 15896 elif test x${DLL} = xdl.h; then |
8845 cat >> confdefs.h <<\EOF | 15897 |
15898 cat >>confdefs.h <<\_ACEOF | |
8846 #define HAVE_DL_H 1 | 15899 #define HAVE_DL_H 1 |
8847 EOF | 15900 _ACEOF |
8848 | 15901 |
8849 echo $ac_n "checking for shl_load()""... $ac_c" 1>&6 | 15902 echo "$as_me:$LINENO: checking for shl_load()" >&5 |
8850 echo "configure:8851: checking for shl_load()" >&5 | 15903 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6 |
8851 cat > conftest.$ac_ext <<EOF | 15904 cat >conftest.$ac_ext <<_ACEOF |
8852 #line 8853 "configure" | 15905 /* confdefs.h. */ |
8853 #include "confdefs.h" | 15906 _ACEOF |
8854 | 15907 cat confdefs.h >>conftest.$ac_ext |
8855 int main() { | 15908 cat >>conftest.$ac_ext <<_ACEOF |
15909 /* end confdefs.h. */ | |
15910 | |
15911 int | |
15912 main () | |
15913 { | |
8856 | 15914 |
8857 extern void* shl_load(); | 15915 extern void* shl_load(); |
8858 shl_load(); | 15916 shl_load(); |
8859 | 15917 |
8860 ; return 0; } | 15918 ; |
8861 EOF | 15919 return 0; |
8862 if { (eval echo configure:8863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15920 } |
8863 rm -rf conftest* | 15921 _ACEOF |
8864 echo "$ac_t""yes" 1>&6; | 15922 rm -f conftest.$ac_objext conftest$ac_exeext |
8865 cat >> confdefs.h <<\EOF | 15923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15924 (eval $ac_link) 2>conftest.er1 | |
15925 ac_status=$? | |
15926 grep -v '^ *+' conftest.er1 >conftest.err | |
15927 rm -f conftest.er1 | |
15928 cat conftest.err >&5 | |
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15930 (exit $ac_status); } && | |
15931 { ac_try='test -z "$ac_c_werror_flag" | |
15932 || test ! -s conftest.err' | |
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15934 (eval $ac_try) 2>&5 | |
15935 ac_status=$? | |
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15937 (exit $ac_status); }; } && | |
15938 { ac_try='test -s conftest$ac_exeext' | |
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15940 (eval $ac_try) 2>&5 | |
15941 ac_status=$? | |
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15943 (exit $ac_status); }; }; then | |
15944 echo "$as_me:$LINENO: result: yes" >&5 | |
15945 echo "${ECHO_T}yes" >&6; | |
15946 | |
15947 cat >>confdefs.h <<\_ACEOF | |
8866 #define HAVE_SHL_LOAD 1 | 15948 #define HAVE_SHL_LOAD 1 |
8867 EOF | 15949 _ACEOF |
8868 | 15950 |
8869 else | 15951 else |
8870 echo "configure: failed program was:" >&5 | 15952 echo "$as_me: failed program was:" >&5 |
8871 cat conftest.$ac_ext >&5 | 15953 sed 's/^/| /' conftest.$ac_ext >&5 |
8872 rm -rf conftest* | 15954 |
8873 echo "$ac_t""no" 1>&6; | 15955 echo "$as_me:$LINENO: result: no" >&5 |
8874 echo $ac_n "checking for shl_load() in -ldld""... $ac_c" 1>&6 | 15956 echo "${ECHO_T}no" >&6; |
8875 echo "configure:8876: checking for shl_load() in -ldld" >&5 | 15957 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
15958 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6 | |
8876 olibs=$LIBS | 15959 olibs=$LIBS |
8877 LIBS="$LIBS -ldld" | 15960 LIBS="$LIBS -ldld" |
8878 cat > conftest.$ac_ext <<EOF | 15961 cat >conftest.$ac_ext <<_ACEOF |
8879 #line 8880 "configure" | 15962 /* confdefs.h. */ |
8880 #include "confdefs.h" | 15963 _ACEOF |
8881 | 15964 cat confdefs.h >>conftest.$ac_ext |
8882 int main() { | 15965 cat >>conftest.$ac_ext <<_ACEOF |
15966 /* end confdefs.h. */ | |
15967 | |
15968 int | |
15969 main () | |
15970 { | |
8883 | 15971 |
8884 extern void* shl_load(); | 15972 extern void* shl_load(); |
8885 shl_load(); | 15973 shl_load(); |
8886 | 15974 |
8887 ; return 0; } | 15975 ; |
8888 EOF | 15976 return 0; |
8889 if { (eval echo configure:8890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15977 } |
8890 rm -rf conftest* | 15978 _ACEOF |
8891 echo "$ac_t""yes" 1>&6; | 15979 rm -f conftest.$ac_objext conftest$ac_exeext |
8892 cat >> confdefs.h <<\EOF | 15980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15981 (eval $ac_link) 2>conftest.er1 | |
15982 ac_status=$? | |
15983 grep -v '^ *+' conftest.er1 >conftest.err | |
15984 rm -f conftest.er1 | |
15985 cat conftest.err >&5 | |
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15987 (exit $ac_status); } && | |
15988 { ac_try='test -z "$ac_c_werror_flag" | |
15989 || test ! -s conftest.err' | |
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15991 (eval $ac_try) 2>&5 | |
15992 ac_status=$? | |
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15994 (exit $ac_status); }; } && | |
15995 { ac_try='test -s conftest$ac_exeext' | |
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15997 (eval $ac_try) 2>&5 | |
15998 ac_status=$? | |
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16000 (exit $ac_status); }; }; then | |
16001 echo "$as_me:$LINENO: result: yes" >&5 | |
16002 echo "${ECHO_T}yes" >&6; | |
16003 | |
16004 cat >>confdefs.h <<\_ACEOF | |
8893 #define HAVE_SHL_LOAD 1 | 16005 #define HAVE_SHL_LOAD 1 |
8894 EOF | 16006 _ACEOF |
8895 | 16007 |
8896 else | 16008 else |
8897 echo "configure: failed program was:" >&5 | 16009 echo "$as_me: failed program was:" >&5 |
8898 cat conftest.$ac_ext >&5 | 16010 sed 's/^/| /' conftest.$ac_ext >&5 |
8899 rm -rf conftest* | 16011 |
8900 echo "$ac_t""no" 1>&6; | 16012 echo "$as_me:$LINENO: result: no" >&5 |
16013 echo "${ECHO_T}no" >&6; | |
8901 LIBS=$olibs | 16014 LIBS=$olibs |
8902 fi | 16015 fi |
8903 rm -f conftest* | 16016 rm -f conftest.err conftest.$ac_objext \ |
8904 fi | 16017 conftest$ac_exeext conftest.$ac_ext |
8905 rm -f conftest* | 16018 fi |
8906 fi | 16019 rm -f conftest.err conftest.$ac_objext \ |
8907 for ac_hdr in setjmp.h | 16020 conftest$ac_exeext conftest.$ac_ext |
16021 fi | |
16022 | |
16023 for ac_header in setjmp.h | |
8908 do | 16024 do |
8909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 16025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 16026 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8911 echo "configure:8912: checking for $ac_hdr" >&5 | 16027 echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 16028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8913 echo $ac_n "(cached) $ac_c" 1>&6 | 16029 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8914 else | 16030 echo $ECHO_N "(cached) $ECHO_C" >&6 |
8915 cat > conftest.$ac_ext <<EOF | 16031 fi |
8916 #line 8917 "configure" | 16032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8917 #include "confdefs.h" | 16033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8918 #include <$ac_hdr> | 16034 else |
8919 EOF | 16035 # Is the header compilable? |
8920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 16036 echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8921 { (eval echo configure:8922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 16037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
8922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 16038 cat >conftest.$ac_ext <<_ACEOF |
8923 if test -z "$ac_err"; then | 16039 /* confdefs.h. */ |
8924 rm -rf conftest* | 16040 _ACEOF |
8925 eval "ac_cv_header_$ac_safe=yes" | 16041 cat confdefs.h >>conftest.$ac_ext |
8926 else | 16042 cat >>conftest.$ac_ext <<_ACEOF |
8927 echo "$ac_err" >&5 | 16043 /* end confdefs.h. */ |
8928 echo "configure: failed program was:" >&5 | 16044 $ac_includes_default |
8929 cat conftest.$ac_ext >&5 | 16045 #include <$ac_header> |
8930 rm -rf conftest* | 16046 _ACEOF |
8931 eval "ac_cv_header_$ac_safe=no" | 16047 rm -f conftest.$ac_objext |
8932 fi | 16048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8933 rm -f conftest* | 16049 (eval $ac_compile) 2>conftest.er1 |
8934 fi | 16050 ac_status=$? |
8935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 16051 grep -v '^ *+' conftest.er1 >conftest.err |
8936 echo "$ac_t""yes" 1>&6 | 16052 rm -f conftest.er1 |
8937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 16053 cat conftest.err >&5 |
8938 cat >> confdefs.h <<EOF | 16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8939 #define $ac_tr_hdr 1 | 16055 (exit $ac_status); } && |
8940 EOF | 16056 { ac_try='test -z "$ac_c_werror_flag" |
8941 | 16057 || test ! -s conftest.err' |
8942 else | 16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8943 echo "$ac_t""no" 1>&6 | 16059 (eval $ac_try) 2>&5 |
8944 fi | 16060 ac_status=$? |
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16062 (exit $ac_status); }; } && | |
16063 { ac_try='test -s conftest.$ac_objext' | |
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16065 (eval $ac_try) 2>&5 | |
16066 ac_status=$? | |
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16068 (exit $ac_status); }; }; then | |
16069 ac_header_compiler=yes | |
16070 else | |
16071 echo "$as_me: failed program was:" >&5 | |
16072 sed 's/^/| /' conftest.$ac_ext >&5 | |
16073 | |
16074 ac_header_compiler=no | |
16075 fi | |
16076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16078 echo "${ECHO_T}$ac_header_compiler" >&6 | |
16079 | |
16080 # Is the header present? | |
16081 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16083 cat >conftest.$ac_ext <<_ACEOF | |
16084 /* confdefs.h. */ | |
16085 _ACEOF | |
16086 cat confdefs.h >>conftest.$ac_ext | |
16087 cat >>conftest.$ac_ext <<_ACEOF | |
16088 /* end confdefs.h. */ | |
16089 #include <$ac_header> | |
16090 _ACEOF | |
16091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16093 ac_status=$? | |
16094 grep -v '^ *+' conftest.er1 >conftest.err | |
16095 rm -f conftest.er1 | |
16096 cat conftest.err >&5 | |
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16098 (exit $ac_status); } >/dev/null; then | |
16099 if test -s conftest.err; then | |
16100 ac_cpp_err=$ac_c_preproc_warn_flag | |
16101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
16102 else | |
16103 ac_cpp_err= | |
16104 fi | |
16105 else | |
16106 ac_cpp_err=yes | |
16107 fi | |
16108 if test -z "$ac_cpp_err"; then | |
16109 ac_header_preproc=yes | |
16110 else | |
16111 echo "$as_me: failed program was:" >&5 | |
16112 sed 's/^/| /' conftest.$ac_ext >&5 | |
16113 | |
16114 ac_header_preproc=no | |
16115 fi | |
16116 rm -f conftest.err conftest.$ac_ext | |
16117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16118 echo "${ECHO_T}$ac_header_preproc" >&6 | |
16119 | |
16120 # So? What about this header? | |
16121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16122 yes:no: ) | |
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16127 ac_header_preproc=yes | |
16128 ;; | |
16129 no:yes:* ) | |
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
16142 ( | |
16143 cat <<\_ASBOX | |
16144 ## ------------------------------------------ ## | |
16145 ## Report this to the AC_PACKAGE_NAME lists. ## | |
16146 ## ------------------------------------------ ## | |
16147 _ASBOX | |
16148 ) | | |
16149 sed "s/^/$as_me: WARNING: /" >&2 | |
16150 ;; | |
16151 esac | |
16152 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16154 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16155 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16156 else | |
16157 eval "$as_ac_Header=\$ac_header_preproc" | |
16158 fi | |
16159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16161 | |
16162 fi | |
16163 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16164 cat >>confdefs.h <<_ACEOF | |
16165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16166 _ACEOF | |
16167 | |
16168 fi | |
16169 | |
8945 done | 16170 done |
8946 | 16171 |
8947 | 16172 |
8948 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then | 16173 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
8949 if echo $LIBS | grep -e '-ldl' >/dev/null; then | 16174 if echo $LIBS | grep -e '-ldl' >/dev/null; then |
8952 fi | 16177 fi |
8953 fi | 16178 fi |
8954 | 16179 |
8955 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ | 16180 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
8956 && test "x$GUITYPE" != "xCARBONGUI"; then | 16181 && test "x$GUITYPE" != "xCARBONGUI"; then |
8957 echo $ac_n "checking whether we need -framework Carbon""... $ac_c" 1>&6 | 16182 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
8958 echo "configure:8959: checking whether we need -framework Carbon" >&5 | 16183 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6 |
8959 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ | 16184 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ |
8960 || test "x$features" = "xhuge"; then | 16185 || test "x$features" = "xhuge"; then |
8961 LIBS="$LIBS -framework Carbon" | 16186 LIBS="$LIBS -framework Carbon" |
8962 echo "$ac_t""yes" 1>&6 | 16187 echo "$as_me:$LINENO: result: yes" >&5 |
16188 echo "${ECHO_T}yes" >&6 | |
8963 else | 16189 else |
8964 echo "$ac_t""no" 1>&6 | 16190 echo "$as_me:$LINENO: result: no" >&5 |
16191 echo "${ECHO_T}no" >&6 | |
8965 fi | 16192 fi |
8966 fi | 16193 fi |
8967 | 16194 |
8968 | 16195 |
8969 trap '' 1 2 15 | 16196 ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
8970 cat > confcache <<\EOF | 16197 cat >confcache <<\_ACEOF |
8971 # This file is a shell script that caches the results of configure | 16198 # This file is a shell script that caches the results of configure |
8972 # tests run on this system so they can be shared between configure | 16199 # tests run on this system so they can be shared between configure |
8973 # scripts and configure runs. It is not useful on other systems. | 16200 # scripts and configure runs, see configure's option --config-cache. |
8974 # If it contains results you don't want to keep, you may remove or edit it. | 16201 # It is not useful on other systems. If it contains results you don't |
16202 # want to keep, you may remove or edit it. | |
8975 # | 16203 # |
8976 # By default, configure uses ./config.cache as the cache file, | 16204 # config.status only pays attention to the cache file if you give it |
8977 # creating it if it does not exist already. You can give configure | 16205 # the --recheck option to rerun configure. |
8978 # the --cache-file=FILE option to use a different cache file; that is | |
8979 # what configure does when it calls configure scripts in | |
8980 # subdirectories, so they share the cache. | |
8981 # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8982 # config.status only pays attention to the cache file if you give it the | |
8983 # --recheck option to rerun configure. | |
8984 # | 16206 # |
8985 EOF | 16207 # `ac_cv_env_foo' variables (set or unset) will be overridden when |
16208 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16209 # following values. | |
16210 | |
16211 _ACEOF | |
16212 | |
8986 # The following way of writing the cache mishandles newlines in values, | 16213 # The following way of writing the cache mishandles newlines in values, |
8987 # but we know of no workaround that is simple, portable, and efficient. | 16214 # but we know of no workaround that is simple, portable, and efficient. |
8988 # So, don't put newlines in cache variables' values. | 16215 # So, don't put newlines in cache variables' values. |
8989 # Ultrix sh set writes to stderr and can't be redirected directly, | 16216 # Ultrix sh set writes to stderr and can't be redirected directly, |
8990 # and sets the high bit in the cache file unless we assign to the vars. | 16217 # and sets the high bit in the cache file unless we assign to the vars. |
8991 (set) 2>&1 | | 16218 { |
8992 case `(ac_space=' '; set | grep ac_space) 2>&1` in | 16219 (set) 2>&1 | |
8993 *ac_space=\ *) | 16220 case `(ac_space=' '; set | grep ac_space) 2>&1` in |
8994 # `set' does not quote correctly, so add quotes (double-quote substitution | 16221 *ac_space=\ *) |
8995 # turns \\\\ into \\, and sed turns \\ into \). | 16222 # `set' does not quote correctly, so add quotes (double-quote |
8996 sed -n \ | 16223 # substitution turns \\\\ into \\, and sed turns \\ into \). |
8997 -e "s/'/'\\\\''/g" \ | 16224 sed -n \ |
8998 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 16225 "s/'/'\\\\''/g; |
8999 ;; | 16226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
9000 *) | 16227 ;; |
9001 # `set' quotes correctly as required by POSIX, so do not add quotes. | 16228 *) |
9002 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 16229 # `set' quotes correctly as required by POSIX, so do not add quotes. |
9003 ;; | 16230 sed -n \ |
9004 esac >> confcache | 16231 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
9005 if cmp -s $cache_file confcache; then | 16232 ;; |
9006 : | 16233 esac; |
9007 else | 16234 } | |
16235 sed ' | |
16236 t clear | |
16237 : clear | |
16238 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16239 t end | |
16240 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16241 : end' >>confcache | |
16242 if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
9008 if test -w $cache_file; then | 16243 if test -w $cache_file; then |
9009 echo "updating cache $cache_file" | 16244 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9010 cat confcache > $cache_file | 16245 cat confcache >$cache_file |
9011 else | 16246 else |
9012 echo "not updating unwritable cache $cache_file" | 16247 echo "not updating unwritable cache $cache_file" |
9013 fi | 16248 fi |
9014 fi | 16249 fi |
9015 rm -f confcache | 16250 rm -f confcache |
9016 | 16251 |
9017 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
9018 | |
9019 test "x$prefix" = xNONE && prefix=$ac_default_prefix | 16252 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
9020 # Let make expand exec_prefix. | 16253 # Let make expand exec_prefix. |
9021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 16254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
9022 | 16255 |
9023 # Any assignment to VPATH causes Sun make to only execute | 16256 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
9024 # the first set of double-colon rules, so remove it if not needed. | 16257 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
9025 # If there is a colon in the path, we need to keep it. | 16258 # trailing colons and then remove the whole line if VPATH becomes empty |
16259 # (actually we leave an empty line to preserve line numbers). | |
9026 if test "x$srcdir" = x.; then | 16260 if test "x$srcdir" = x.; then |
9027 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | 16261 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
9028 fi | 16262 s/:*\$(srcdir):*/:/; |
9029 | 16263 s/:*\${srcdir}:*/:/; |
9030 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 16264 s/:*@srcdir@:*/:/; |
16265 s/^\([^=]*=[ ]*\):*/\1/; | |
16266 s/:*$//; | |
16267 s/^[^=]*=[ ]*$//; | |
16268 }' | |
16269 fi | |
9031 | 16270 |
9032 DEFS=-DHAVE_CONFIG_H | 16271 DEFS=-DHAVE_CONFIG_H |
9033 | 16272 |
9034 # Without the "./", some shells look in PATH for config.status. | 16273 ac_libobjs= |
16274 ac_ltlibobjs= | |
16275 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
16276 # 1. Remove the extension, and $U if already installed. | |
16277 ac_i=`echo "$ac_i" | | |
16278 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
16279 # 2. Add them. | |
16280 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
16281 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
16282 done | |
16283 LIBOBJS=$ac_libobjs | |
16284 | |
16285 LTLIBOBJS=$ac_ltlibobjs | |
16286 | |
16287 | |
16288 | |
9035 : ${CONFIG_STATUS=./config.status} | 16289 : ${CONFIG_STATUS=./config.status} |
9036 | 16290 ac_clean_files_save=$ac_clean_files |
9037 echo creating $CONFIG_STATUS | 16291 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
9038 rm -f $CONFIG_STATUS | 16292 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
9039 cat > $CONFIG_STATUS <<EOF | 16293 echo "$as_me: creating $CONFIG_STATUS" >&6;} |
9040 #! /bin/sh | 16294 cat >$CONFIG_STATUS <<_ACEOF |
9041 # Generated automatically by configure. | 16295 #! $SHELL |
16296 # Generated by $as_me. | |
9042 # Run this file to recreate the current configuration. | 16297 # Run this file to recreate the current configuration. |
9043 # This directory was configured as follows, | |
9044 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9045 # | |
9046 # $0 $ac_configure_args | |
9047 # | |
9048 # Compiler output produced by configure, useful for debugging | 16298 # Compiler output produced by configure, useful for debugging |
9049 # configure, is in auto/config.log if it exists. | 16299 # configure, is in config.log if it exists. |
9050 | 16300 |
9051 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 16301 debug=false |
9052 for ac_option | 16302 ac_cs_recheck=false |
16303 ac_cs_silent=false | |
16304 SHELL=\${CONFIG_SHELL-$SHELL} | |
16305 _ACEOF | |
16306 | |
16307 cat >>$CONFIG_STATUS <<\_ACEOF | |
16308 ## --------------------- ## | |
16309 ## M4sh Initialization. ## | |
16310 ## --------------------- ## | |
16311 | |
16312 # Be Bourne compatible | |
16313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16314 emulate sh | |
16315 NULLCMD=: | |
16316 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
16317 # is contrary to our usage. Disable this feature. | |
16318 alias -g '${1+"$@"}'='"$@"' | |
16319 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
16320 set -o posix | |
16321 fi | |
16322 DUALCASE=1; export DUALCASE # for MKS sh | |
16323 | |
16324 # Support unset when possible. | |
16325 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
16326 as_unset=unset | |
16327 else | |
16328 as_unset=false | |
16329 fi | |
16330 | |
16331 | |
16332 # Work around bugs in pre-3.0 UWIN ksh. | |
16333 $as_unset ENV MAIL MAILPATH | |
16334 PS1='$ ' | |
16335 PS2='> ' | |
16336 PS4='+ ' | |
16337 | |
16338 # NLS nuisances. | |
16339 for as_var in \ | |
16340 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
16341 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
16342 LC_TELEPHONE LC_TIME | |
9053 do | 16343 do |
9054 case "\$ac_option" in | 16344 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
16345 eval $as_var=C; export $as_var | |
16346 else | |
16347 $as_unset $as_var | |
16348 fi | |
16349 done | |
16350 | |
16351 # Required to use basename. | |
16352 if expr a : '\(a\)' >/dev/null 2>&1; then | |
16353 as_expr=expr | |
16354 else | |
16355 as_expr=false | |
16356 fi | |
16357 | |
16358 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
16359 as_basename=basename | |
16360 else | |
16361 as_basename=false | |
16362 fi | |
16363 | |
16364 | |
16365 # Name of the executable. | |
16366 as_me=`$as_basename "$0" || | |
16367 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16368 X"$0" : 'X\(//\)$' \| \ | |
16369 X"$0" : 'X\(/\)$' \| \ | |
16370 . : '\(.\)' 2>/dev/null || | |
16371 echo X/"$0" | | |
16372 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
16373 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
16374 /^X\/\(\/\).*/{ s//\1/; q; } | |
16375 s/.*/./; q'` | |
16376 | |
16377 | |
16378 # PATH needs CR, and LINENO needs CR and PATH. | |
16379 # Avoid depending upon Character Ranges. | |
16380 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16383 as_cr_digits='0123456789' | |
16384 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16385 | |
16386 # The user is always right. | |
16387 if test "${PATH_SEPARATOR+set}" != set; then | |
16388 echo "#! /bin/sh" >conf$$.sh | |
16389 echo "exit 0" >>conf$$.sh | |
16390 chmod +x conf$$.sh | |
16391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
16392 PATH_SEPARATOR=';' | |
16393 else | |
16394 PATH_SEPARATOR=: | |
16395 fi | |
16396 rm -f conf$$.sh | |
16397 fi | |
16398 | |
16399 | |
16400 as_lineno_1=$LINENO | |
16401 as_lineno_2=$LINENO | |
16402 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
16403 test "x$as_lineno_1" != "x$as_lineno_2" && | |
16404 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
16405 # Find who we are. Look in the path if we contain no path at all | |
16406 # relative or not. | |
16407 case $0 in | |
16408 *[\\/]* ) as_myself=$0 ;; | |
16409 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16410 for as_dir in $PATH | |
16411 do | |
16412 IFS=$as_save_IFS | |
16413 test -z "$as_dir" && as_dir=. | |
16414 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16415 done | |
16416 | |
16417 ;; | |
16418 esac | |
16419 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16420 # in which case we are not to be found in the path. | |
16421 if test "x$as_myself" = x; then | |
16422 as_myself=$0 | |
16423 fi | |
16424 if test ! -f "$as_myself"; then | |
16425 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
16426 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
16427 { (exit 1); exit 1; }; } | |
16428 fi | |
16429 case $CONFIG_SHELL in | |
16430 '') | |
16431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16432 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
16433 do | |
16434 IFS=$as_save_IFS | |
16435 test -z "$as_dir" && as_dir=. | |
16436 for as_base in sh bash ksh sh5; do | |
16437 case $as_dir in | |
16438 /*) | |
16439 if ("$as_dir/$as_base" -c ' | |
16440 as_lineno_1=$LINENO | |
16441 as_lineno_2=$LINENO | |
16442 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
16443 test "x$as_lineno_1" != "x$as_lineno_2" && | |
16444 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
16445 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
16446 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
16447 CONFIG_SHELL=$as_dir/$as_base | |
16448 export CONFIG_SHELL | |
16449 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
16450 fi;; | |
16451 esac | |
16452 done | |
16453 done | |
16454 ;; | |
16455 esac | |
16456 | |
16457 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
16458 # uniformly replaced by the line number. The first 'sed' inserts a | |
16459 # line-number line before each line; the second 'sed' does the real | |
16460 # work. The second script uses 'N' to pair each line-number line | |
16461 # with the numbered line, and appends trailing '-' during | |
16462 # substitution so that $LINENO is not a special case at line end. | |
16463 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
16464 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
16465 sed '=' <$as_myself | | |
16466 sed ' | |
16467 N | |
16468 s,$,-, | |
16469 : loop | |
16470 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
16471 t loop | |
16472 s,-$,, | |
16473 s,^['$as_cr_digits']*\n,, | |
16474 ' >$as_me.lineno && | |
16475 chmod +x $as_me.lineno || | |
16476 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
16477 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
16478 { (exit 1); exit 1; }; } | |
16479 | |
16480 # Don't try to exec as it changes $[0], causing all sort of problems | |
16481 # (the dirname of $[0] is not the place where we might find the | |
16482 # original and so on. Autoconf is especially sensible to this). | |
16483 . ./$as_me.lineno | |
16484 # Exit status is that of the last command. | |
16485 exit | |
16486 } | |
16487 | |
16488 | |
16489 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
16490 *c*,-n*) ECHO_N= ECHO_C=' | |
16491 ' ECHO_T=' ' ;; | |
16492 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
16493 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
16494 esac | |
16495 | |
16496 if expr a : '\(a\)' >/dev/null 2>&1; then | |
16497 as_expr=expr | |
16498 else | |
16499 as_expr=false | |
16500 fi | |
16501 | |
16502 rm -f conf$$ conf$$.exe conf$$.file | |
16503 echo >conf$$.file | |
16504 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16505 # We could just check for DJGPP; but this test a) works b) is more generic | |
16506 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
16507 if test -f conf$$.exe; then | |
16508 # Don't use ln at all; we don't have any links | |
16509 as_ln_s='cp -p' | |
16510 else | |
16511 as_ln_s='ln -s' | |
16512 fi | |
16513 elif ln conf$$.file conf$$ 2>/dev/null; then | |
16514 as_ln_s=ln | |
16515 else | |
16516 as_ln_s='cp -p' | |
16517 fi | |
16518 rm -f conf$$ conf$$.exe conf$$.file | |
16519 | |
16520 if mkdir -p . 2>/dev/null; then | |
16521 as_mkdir_p=: | |
16522 else | |
16523 test -d ./-p && rmdir ./-p | |
16524 as_mkdir_p=false | |
16525 fi | |
16526 | |
16527 as_executable_p="test -f" | |
16528 | |
16529 # Sed expression to map a string onto a valid CPP name. | |
16530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16531 | |
16532 # Sed expression to map a string onto a valid variable name. | |
16533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16534 | |
16535 | |
16536 # IFS | |
16537 # We need space, tab and new line, in precisely that order. | |
16538 as_nl=' | |
16539 ' | |
16540 IFS=" $as_nl" | |
16541 | |
16542 # CDPATH. | |
16543 $as_unset CDPATH | |
16544 | |
16545 exec 6>&1 | |
16546 | |
16547 # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
16548 # report actual input values of CONFIG_FILES etc. instead of their | |
16549 # values after options handling. Logging --version etc. is OK. | |
16550 exec 5>>auto/config.log | |
16551 { | |
16552 echo | |
16553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16554 ## Running $as_me. ## | |
16555 _ASBOX | |
16556 } >&5 | |
16557 cat >&5 <<_CSEOF | |
16558 | |
16559 This file was extended by $as_me, which was | |
16560 generated by GNU Autoconf 2.59. Invocation command line was | |
16561 | |
16562 CONFIG_FILES = $CONFIG_FILES | |
16563 CONFIG_HEADERS = $CONFIG_HEADERS | |
16564 CONFIG_LINKS = $CONFIG_LINKS | |
16565 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16566 $ $0 $@ | |
16567 | |
16568 _CSEOF | |
16569 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
16570 echo >&5 | |
16571 _ACEOF | |
16572 | |
16573 # Files that config.status was made for. | |
16574 if test -n "$ac_config_files"; then | |
16575 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
16576 fi | |
16577 | |
16578 if test -n "$ac_config_headers"; then | |
16579 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
16580 fi | |
16581 | |
16582 if test -n "$ac_config_links"; then | |
16583 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
16584 fi | |
16585 | |
16586 if test -n "$ac_config_commands"; then | |
16587 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
16588 fi | |
16589 | |
16590 cat >>$CONFIG_STATUS <<\_ACEOF | |
16591 | |
16592 ac_cs_usage="\ | |
16593 \`$as_me' instantiates files from templates according to the | |
16594 current configuration. | |
16595 | |
16596 Usage: $0 [OPTIONS] [FILE]... | |
16597 | |
16598 -h, --help print this help, then exit | |
16599 -V, --version print version number, then exit | |
16600 -q, --quiet do not print progress messages | |
16601 -d, --debug don't remove temporary files | |
16602 --recheck update $as_me by reconfiguring in the same conditions | |
16603 --file=FILE[:TEMPLATE] | |
16604 instantiate the configuration file FILE | |
16605 --header=FILE[:TEMPLATE] | |
16606 instantiate the configuration header FILE | |
16607 | |
16608 Configuration files: | |
16609 $config_files | |
16610 | |
16611 Configuration headers: | |
16612 $config_headers | |
16613 | |
16614 Report bugs to <bug-autoconf@gnu.org>." | |
16615 _ACEOF | |
16616 | |
16617 cat >>$CONFIG_STATUS <<_ACEOF | |
16618 ac_cs_version="\\ | |
16619 config.status | |
16620 configured by $0, generated by GNU Autoconf 2.59, | |
16621 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
16622 | |
16623 Copyright (C) 2003 Free Software Foundation, Inc. | |
16624 This config.status script is free software; the Free Software Foundation | |
16625 gives unlimited permission to copy, distribute and modify it." | |
16626 srcdir=$srcdir | |
16627 _ACEOF | |
16628 | |
16629 cat >>$CONFIG_STATUS <<\_ACEOF | |
16630 # If no file are specified by the user, then we need to provide default | |
16631 # value. By we need to know if files were specified by the user. | |
16632 ac_need_defaults=: | |
16633 while test $# != 0 | |
16634 do | |
16635 case $1 in | |
16636 --*=*) | |
16637 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
16638 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
16639 ac_shift=: | |
16640 ;; | |
16641 -*) | |
16642 ac_option=$1 | |
16643 ac_optarg=$2 | |
16644 ac_shift=shift | |
16645 ;; | |
16646 *) # This is not an option, so the user has probably given explicit | |
16647 # arguments. | |
16648 ac_option=$1 | |
16649 ac_need_defaults=false;; | |
16650 esac | |
16651 | |
16652 case $ac_option in | |
16653 # Handling of the options. | |
16654 _ACEOF | |
16655 cat >>$CONFIG_STATUS <<\_ACEOF | |
9055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 16656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9056 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 16657 ac_cs_recheck=: ;; |
9057 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | 16658 --version | --vers* | -V ) |
9058 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 16659 echo "$ac_cs_version"; exit 0 ;; |
9059 echo "$CONFIG_STATUS generated by autoconf version 2.13" | 16660 --he | --h) |
9060 exit 0 ;; | 16661 # Conflict between --help and --header |
9061 -help | --help | --hel | --he | --h) | 16662 { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
9062 echo "\$ac_cs_usage"; exit 0 ;; | 16663 Try \`$0 --help' for more information." >&5 |
9063 *) echo "\$ac_cs_usage"; exit 1 ;; | 16664 echo "$as_me: error: ambiguous option: $1 |
16665 Try \`$0 --help' for more information." >&2;} | |
16666 { (exit 1); exit 1; }; };; | |
16667 --help | --hel | -h ) | |
16668 echo "$ac_cs_usage"; exit 0 ;; | |
16669 --debug | --d* | -d ) | |
16670 debug=: ;; | |
16671 --file | --fil | --fi | --f ) | |
16672 $ac_shift | |
16673 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
16674 ac_need_defaults=false;; | |
16675 --header | --heade | --head | --hea ) | |
16676 $ac_shift | |
16677 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
16678 ac_need_defaults=false;; | |
16679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16680 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16681 ac_cs_silent=: ;; | |
16682 | |
16683 # This is an error. | |
16684 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
16685 Try \`$0 --help' for more information." >&5 | |
16686 echo "$as_me: error: unrecognized option: $1 | |
16687 Try \`$0 --help' for more information." >&2;} | |
16688 { (exit 1); exit 1; }; } ;; | |
16689 | |
16690 *) ac_config_targets="$ac_config_targets $1" ;; | |
16691 | |
16692 esac | |
16693 shift | |
16694 done | |
16695 | |
16696 ac_configure_extra_args= | |
16697 | |
16698 if $ac_cs_silent; then | |
16699 exec 6>/dev/null | |
16700 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16701 fi | |
16702 | |
16703 _ACEOF | |
16704 cat >>$CONFIG_STATUS <<_ACEOF | |
16705 if \$ac_cs_recheck; then | |
16706 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
16707 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
16708 fi | |
16709 | |
16710 _ACEOF | |
16711 | |
16712 | |
16713 | |
16714 | |
16715 | |
16716 cat >>$CONFIG_STATUS <<\_ACEOF | |
16717 for ac_config_target in $ac_config_targets | |
16718 do | |
16719 case "$ac_config_target" in | |
16720 # Handling of arguments. | |
16721 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; | |
16722 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; | |
16723 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
16724 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
16725 { (exit 1); exit 1; }; };; | |
9064 esac | 16726 esac |
9065 done | 16727 done |
9066 | 16728 |
9067 ac_given_srcdir=$srcdir | 16729 # If the user did not use the arguments to specify the items to instantiate, |
9068 | 16730 # then the envvar interface is used. Set only those that are not. |
9069 trap 'rm -fr `echo "auto/config.mk:config.mk.in auto/config.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 16731 # We use the long form for the default assignment because of an extremely |
9070 EOF | 16732 # bizarre bug on SunOS 4.1.3. |
9071 cat >> $CONFIG_STATUS <<EOF | 16733 if $ac_need_defaults; then |
9072 | 16734 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
9073 # Protect against being on the right side of a sed subst in config.status. | 16735 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9074 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 16736 fi |
9075 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 16737 |
9076 $ac_vpsub | 16738 # Have a temporary directory for convenience. Make it in the build tree |
16739 # simply because there is no reason to put it here, and in addition, | |
16740 # creating and moving files from /tmp can sometimes cause problems. | |
16741 # Create a temporary directory, and hook for its removal unless debugging. | |
16742 $debug || | |
16743 { | |
16744 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
16745 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
16746 } | |
16747 | |
16748 # Create a (secure) tmp directory for tmp files. | |
16749 | |
16750 { | |
16751 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
16752 test -n "$tmp" && test -d "$tmp" | |
16753 } || | |
16754 { | |
16755 tmp=./confstat$$-$RANDOM | |
16756 (umask 077 && mkdir $tmp) | |
16757 } || | |
16758 { | |
16759 echo "$me: cannot create a temporary directory in ." >&2 | |
16760 { (exit 1); exit 1; } | |
16761 } | |
16762 | |
16763 _ACEOF | |
16764 | |
16765 cat >>$CONFIG_STATUS <<_ACEOF | |
16766 | |
16767 # | |
16768 # CONFIG_FILES section. | |
16769 # | |
16770 | |
16771 # No need to generate the scripts if there are no CONFIG_FILES. | |
16772 # This happens for instance when ./config.status config.h | |
16773 if test -n "\$CONFIG_FILES"; then | |
16774 # Protect against being on the right side of a sed subst in config.status. | |
16775 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
16776 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
16777 s,@SHELL@,$SHELL,;t t | |
16778 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
16779 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
16780 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
16781 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
16782 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
16783 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
16784 s,@exec_prefix@,$exec_prefix,;t t | |
16785 s,@prefix@,$prefix,;t t | |
16786 s,@program_transform_name@,$program_transform_name,;t t | |
16787 s,@bindir@,$bindir,;t t | |
16788 s,@sbindir@,$sbindir,;t t | |
16789 s,@libexecdir@,$libexecdir,;t t | |
16790 s,@datadir@,$datadir,;t t | |
16791 s,@sysconfdir@,$sysconfdir,;t t | |
16792 s,@sharedstatedir@,$sharedstatedir,;t t | |
16793 s,@localstatedir@,$localstatedir,;t t | |
16794 s,@libdir@,$libdir,;t t | |
16795 s,@includedir@,$includedir,;t t | |
16796 s,@oldincludedir@,$oldincludedir,;t t | |
16797 s,@infodir@,$infodir,;t t | |
16798 s,@mandir@,$mandir,;t t | |
16799 s,@build_alias@,$build_alias,;t t | |
16800 s,@host_alias@,$host_alias,;t t | |
16801 s,@target_alias@,$target_alias,;t t | |
16802 s,@DEFS@,$DEFS,;t t | |
16803 s,@ECHO_C@,$ECHO_C,;t t | |
16804 s,@ECHO_N@,$ECHO_N,;t t | |
16805 s,@ECHO_T@,$ECHO_T,;t t | |
16806 s,@LIBS@,$LIBS,;t t | |
16807 s,@SET_MAKE@,$SET_MAKE,;t t | |
16808 s,@CC@,$CC,;t t | |
16809 s,@CFLAGS@,$CFLAGS,;t t | |
16810 s,@LDFLAGS@,$LDFLAGS,;t t | |
16811 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
16812 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
16813 s,@EXEEXT@,$EXEEXT,;t t | |
16814 s,@OBJEXT@,$OBJEXT,;t t | |
16815 s,@CPP@,$CPP,;t t | |
16816 s,@EGREP@,$EGREP,;t t | |
16817 s,@AWK@,$AWK,;t t | |
16818 s,@STRIP@,$STRIP,;t t | |
16819 s,@CPP_MM@,$CPP_MM,;t t | |
16820 s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t | |
16821 s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t | |
16822 s,@VIMNAME@,$VIMNAME,;t t | |
16823 s,@EXNAME@,$EXNAME,;t t | |
16824 s,@VIEWNAME@,$VIEWNAME,;t t | |
16825 s,@line_break@,$line_break,;t t | |
16826 s,@dovimdiff@,$dovimdiff,;t t | |
16827 s,@dogvimdiff@,$dogvimdiff,;t t | |
16828 s,@compiledby@,$compiledby,;t t | |
16829 s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t | |
16830 s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t | |
16831 s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t | |
16832 s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t | |
16833 s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t | |
16834 s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t | |
16835 s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t | |
16836 s,@vi_cv_perllib@,$vi_cv_perllib,;t t | |
16837 s,@shrpenv@,$shrpenv,;t t | |
16838 s,@PERL_SRC@,$PERL_SRC,;t t | |
16839 s,@PERL_OBJ@,$PERL_OBJ,;t t | |
16840 s,@PERL_PRO@,$PERL_PRO,;t t | |
16841 s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t | |
16842 s,@PERL_LIBS@,$PERL_LIBS,;t t | |
16843 s,@vi_cv_path_python@,$vi_cv_path_python,;t t | |
16844 s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t | |
16845 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t | |
16846 s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t | |
16847 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t | |
16848 s,@PYTHON_SRC@,$PYTHON_SRC,;t t | |
16849 s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t | |
16850 s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t | |
16851 s,@TCL_SRC@,$TCL_SRC,;t t | |
16852 s,@TCL_OBJ@,$TCL_OBJ,;t t | |
16853 s,@TCL_PRO@,$TCL_PRO,;t t | |
16854 s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t | |
16855 s,@TCL_LIBS@,$TCL_LIBS,;t t | |
16856 s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t | |
16857 s,@RUBY_SRC@,$RUBY_SRC,;t t | |
16858 s,@RUBY_OBJ@,$RUBY_OBJ,;t t | |
16859 s,@RUBY_PRO@,$RUBY_PRO,;t t | |
16860 s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t | |
16861 s,@RUBY_LIBS@,$RUBY_LIBS,;t t | |
16862 s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t | |
16863 s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t | |
16864 s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t | |
16865 s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t | |
16866 s,@SNIFF_SRC@,$SNIFF_SRC,;t t | |
16867 s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t | |
16868 s,@xmkmfpath@,$xmkmfpath,;t t | |
16869 s,@X_CFLAGS@,$X_CFLAGS,;t t | |
16870 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
16871 s,@X_LIBS@,$X_LIBS,;t t | |
16872 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
16873 s,@X_LIB@,$X_LIB,;t t | |
16874 s,@MOC@,$MOC,;t t | |
16875 s,@KDE_CONFIG@,$KDE_CONFIG,;t t | |
16876 s,@KDE_LIBS@,$KDE_LIBS,;t t | |
16877 s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t | |
16878 s,@KDE_PREFIX@,$KDE_PREFIX,;t t | |
16879 s,@CXX@,$CXX,;t t | |
16880 s,@CXXFLAGS@,$CXXFLAGS,;t t | |
16881 s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
16882 s,@QT_LIBS@,$QT_LIBS,;t t | |
16883 s,@QT_INCLUDES@,$QT_INCLUDES,;t t | |
16884 s,@ROOTQT@,$ROOTQT,;t t | |
16885 s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
16886 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t | |
16887 s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
16888 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
16889 s,@GTK_LIBS@,$GTK_LIBS,;t t | |
16890 s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t | |
16891 s,@GNOME_LIBS@,$GNOME_LIBS,;t t | |
16892 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t | |
16893 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t | |
16894 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t | |
16895 s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t | |
16896 s,@NARROW_PROTO@,$NARROW_PROTO,;t t | |
16897 s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t | |
16898 s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t | |
16899 s,@GUITYPE@,$GUITYPE,;t t | |
16900 s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t | |
16901 s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t | |
16902 s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t | |
16903 s,@TAGPRG@,$TAGPRG,;t t | |
16904 s,@MSGFMT@,$MSGFMT,;t t | |
16905 s,@MAKEMO@,$MAKEMO,;t t | |
16906 s,@LIBOBJS@,$LIBOBJS,;t t | |
16907 s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
16908 CEOF | |
16909 | |
16910 _ACEOF | |
16911 | |
16912 cat >>$CONFIG_STATUS <<\_ACEOF | |
16913 # Split the substitutions into bite-sized pieces for seds with | |
16914 # small command number limits, like on Digital OSF/1 and HP-UX. | |
16915 ac_max_sed_lines=48 | |
16916 ac_sed_frag=1 # Number of current file. | |
16917 ac_beg=1 # First line for current file. | |
16918 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
16919 ac_more_lines=: | |
16920 ac_sed_cmds= | |
16921 while $ac_more_lines; do | |
16922 if test $ac_beg -gt 1; then | |
16923 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
16924 else | |
16925 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
16926 fi | |
16927 if test ! -s $tmp/subs.frag; then | |
16928 ac_more_lines=false | |
16929 else | |
16930 # The purpose of the label and of the branching condition is to | |
16931 # speed up the sed processing (if there are no `@' at all, there | |
16932 # is no need to browse any of the substitutions). | |
16933 # These are the two extra sed commands mentioned above. | |
16934 (echo ':t | |
16935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
16936 if test -z "$ac_sed_cmds"; then | |
16937 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
16938 else | |
16939 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
16940 fi | |
16941 ac_sed_frag=`expr $ac_sed_frag + 1` | |
16942 ac_beg=$ac_end | |
16943 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
16944 fi | |
16945 done | |
16946 if test -z "$ac_sed_cmds"; then | |
16947 ac_sed_cmds=cat | |
16948 fi | |
16949 fi # test -n "$CONFIG_FILES" | |
16950 | |
16951 _ACEOF | |
16952 cat >>$CONFIG_STATUS <<\_ACEOF | |
16953 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
16954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
16955 case $ac_file in | |
16956 - | *:- | *:-:* ) # input from stdin | |
16957 cat >$tmp/stdin | |
16958 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
16959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
16960 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
16961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
16962 * ) ac_file_in=$ac_file.in ;; | |
16963 esac | |
16964 | |
16965 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
16966 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
16967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16968 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16969 X"$ac_file" : 'X\(//\)$' \| \ | |
16970 X"$ac_file" : 'X\(/\)' \| \ | |
16971 . : '\(.\)' 2>/dev/null || | |
16972 echo X"$ac_file" | | |
16973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16974 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16975 /^X\(\/\/\)$/{ s//\1/; q; } | |
16976 /^X\(\/\).*/{ s//\1/; q; } | |
16977 s/.*/./; q'` | |
16978 { if $as_mkdir_p; then | |
16979 mkdir -p "$ac_dir" | |
16980 else | |
16981 as_dir="$ac_dir" | |
16982 as_dirs= | |
16983 while test ! -d "$as_dir"; do | |
16984 as_dirs="$as_dir $as_dirs" | |
16985 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
16986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16987 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16988 X"$as_dir" : 'X\(//\)$' \| \ | |
16989 X"$as_dir" : 'X\(/\)' \| \ | |
16990 . : '\(.\)' 2>/dev/null || | |
16991 echo X"$as_dir" | | |
16992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16993 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16994 /^X\(\/\/\)$/{ s//\1/; q; } | |
16995 /^X\(\/\).*/{ s//\1/; q; } | |
16996 s/.*/./; q'` | |
16997 done | |
16998 test ! -n "$as_dirs" || mkdir $as_dirs | |
16999 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
17000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
17001 { (exit 1); exit 1; }; }; } | |
17002 | |
17003 ac_builddir=. | |
17004 | |
17005 if test "$ac_dir" != .; then | |
17006 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
17007 # A "../" for each directory in $ac_dir_suffix. | |
17008 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
17009 else | |
17010 ac_dir_suffix= ac_top_builddir= | |
17011 fi | |
17012 | |
17013 case $srcdir in | |
17014 .) # No --srcdir option. We are building in place. | |
17015 ac_srcdir=. | |
17016 if test -z "$ac_top_builddir"; then | |
17017 ac_top_srcdir=. | |
17018 else | |
17019 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
17020 fi ;; | |
17021 [\\/]* | ?:[\\/]* ) # Absolute path. | |
17022 ac_srcdir=$srcdir$ac_dir_suffix; | |
17023 ac_top_srcdir=$srcdir ;; | |
17024 *) # Relative path. | |
17025 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
17026 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
17027 esac | |
17028 | |
17029 # Do not use `cd foo && pwd` to compute absolute paths, because | |
17030 # the directories may not exist. | |
17031 case `pwd` in | |
17032 .) ac_abs_builddir="$ac_dir";; | |
17033 *) | |
17034 case "$ac_dir" in | |
17035 .) ac_abs_builddir=`pwd`;; | |
17036 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
17037 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
17038 esac;; | |
17039 esac | |
17040 case $ac_abs_builddir in | |
17041 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
17042 *) | |
17043 case ${ac_top_builddir}. in | |
17044 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
17045 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
17046 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
17047 esac;; | |
17048 esac | |
17049 case $ac_abs_builddir in | |
17050 .) ac_abs_srcdir=$ac_srcdir;; | |
17051 *) | |
17052 case $ac_srcdir in | |
17053 .) ac_abs_srcdir=$ac_abs_builddir;; | |
17054 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
17055 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
17056 esac;; | |
17057 esac | |
17058 case $ac_abs_builddir in | |
17059 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
17060 *) | |
17061 case $ac_top_srcdir in | |
17062 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
17063 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
17064 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
17065 esac;; | |
17066 esac | |
17067 | |
17068 | |
17069 | |
17070 if test x"$ac_file" != x-; then | |
17071 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
17072 echo "$as_me: creating $ac_file" >&6;} | |
17073 rm -f "$ac_file" | |
17074 fi | |
17075 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17076 # use $as_me), people would be surprised to read: | |
17077 # /* config.h. Generated by config.status. */ | |
17078 if test x"$ac_file" = x-; then | |
17079 configure_input= | |
17080 else | |
17081 configure_input="$ac_file. " | |
17082 fi | |
17083 configure_input=$configure_input"Generated from `echo $ac_file_in | | |
17084 sed 's,.*/,,'` by configure." | |
17085 | |
17086 # First look for the input files in the build tree, otherwise in the | |
17087 # src tree. | |
17088 ac_file_inputs=`IFS=: | |
17089 for f in $ac_file_in; do | |
17090 case $f in | |
17091 -) echo $tmp/stdin ;; | |
17092 [\\/$]*) | |
17093 # Absolute (can't be DOS-style, as IFS=:) | |
17094 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17095 echo "$as_me: error: cannot find input file: $f" >&2;} | |
17096 { (exit 1); exit 1; }; } | |
17097 echo "$f";; | |
17098 *) # Relative | |
17099 if test -f "$f"; then | |
17100 # Build tree | |
17101 echo "$f" | |
17102 elif test -f "$srcdir/$f"; then | |
17103 # Source tree | |
17104 echo "$srcdir/$f" | |
17105 else | |
17106 # /dev/null tree | |
17107 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17108 echo "$as_me: error: cannot find input file: $f" >&2;} | |
17109 { (exit 1); exit 1; }; } | |
17110 fi;; | |
17111 esac | |
17112 done` || { (exit 1); exit 1; } | |
17113 _ACEOF | |
17114 cat >>$CONFIG_STATUS <<_ACEOF | |
17115 sed "$ac_vpsub | |
9077 $extrasub | 17116 $extrasub |
9078 s%@SHELL@%$SHELL%g | 17117 _ACEOF |
9079 s%@CFLAGS@%$CFLAGS%g | 17118 cat >>$CONFIG_STATUS <<\_ACEOF |
9080 s%@CPPFLAGS@%$CPPFLAGS%g | 17119 :t |
9081 s%@CXXFLAGS@%$CXXFLAGS%g | 17120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
9082 s%@FFLAGS@%$FFLAGS%g | 17121 s,@configure_input@,$configure_input,;t t |
9083 s%@DEFS@%$DEFS%g | 17122 s,@srcdir@,$ac_srcdir,;t t |
9084 s%@LDFLAGS@%$LDFLAGS%g | 17123 s,@abs_srcdir@,$ac_abs_srcdir,;t t |
9085 s%@LIBS@%$LIBS%g | 17124 s,@top_srcdir@,$ac_top_srcdir,;t t |
9086 s%@exec_prefix@%$exec_prefix%g | 17125 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
9087 s%@prefix@%$prefix%g | 17126 s,@builddir@,$ac_builddir,;t t |
9088 s%@program_transform_name@%$program_transform_name%g | 17127 s,@abs_builddir@,$ac_abs_builddir,;t t |
9089 s%@bindir@%$bindir%g | 17128 s,@top_builddir@,$ac_top_builddir,;t t |
9090 s%@sbindir@%$sbindir%g | 17129 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
9091 s%@libexecdir@%$libexecdir%g | 17130 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
9092 s%@datadir@%$datadir%g | 17131 rm -f $tmp/stdin |
9093 s%@sysconfdir@%$sysconfdir%g | 17132 if test x"$ac_file" != x-; then |
9094 s%@sharedstatedir@%$sharedstatedir%g | 17133 mv $tmp/out $ac_file |
9095 s%@localstatedir@%$localstatedir%g | |
9096 s%@libdir@%$libdir%g | |
9097 s%@includedir@%$includedir%g | |
9098 s%@oldincludedir@%$oldincludedir%g | |
9099 s%@infodir@%$infodir%g | |
9100 s%@mandir@%$mandir%g | |
9101 s%@SET_MAKE@%$SET_MAKE%g | |
9102 s%@CC@%$CC%g | |
9103 s%@CPP@%$CPP%g | |
9104 s%@AWK@%$AWK%g | |
9105 s%@STRIP@%$STRIP%g | |
9106 s%@EXEEXT@%$EXEEXT%g | |
9107 s%@CPP_MM@%$CPP_MM%g | |
9108 s%@OS_EXTRA_SRC@%$OS_EXTRA_SRC%g | |
9109 s%@OS_EXTRA_OBJ@%$OS_EXTRA_OBJ%g | |
9110 s%@VIMNAME@%$VIMNAME%g | |
9111 s%@EXNAME@%$EXNAME%g | |
9112 s%@VIEWNAME@%$VIEWNAME%g | |
9113 s%@line_break@%$line_break%g | |
9114 s%@dovimdiff@%$dovimdiff%g | |
9115 s%@dogvimdiff@%$dogvimdiff%g | |
9116 s%@compiledby@%$compiledby%g | |
9117 s%@vi_cv_path_mzscheme@%$vi_cv_path_mzscheme%g | |
9118 s%@MZSCHEME_SRC@%$MZSCHEME_SRC%g | |
9119 s%@MZSCHEME_OBJ@%$MZSCHEME_OBJ%g | |
9120 s%@MZSCHEME_PRO@%$MZSCHEME_PRO%g | |
9121 s%@MZSCHEME_LIBS@%$MZSCHEME_LIBS%g | |
9122 s%@MZSCHEME_CFLAGS@%$MZSCHEME_CFLAGS%g | |
9123 s%@vi_cv_path_perl@%$vi_cv_path_perl%g | |
9124 s%@vi_cv_perllib@%$vi_cv_perllib%g | |
9125 s%@shrpenv@%$shrpenv%g | |
9126 s%@PERL_SRC@%$PERL_SRC%g | |
9127 s%@PERL_OBJ@%$PERL_OBJ%g | |
9128 s%@PERL_PRO@%$PERL_PRO%g | |
9129 s%@PERL_CFLAGS@%$PERL_CFLAGS%g | |
9130 s%@PERL_LIBS@%$PERL_LIBS%g | |
9131 s%@vi_cv_path_python@%$vi_cv_path_python%g | |
9132 s%@PYTHON_CONFDIR@%$PYTHON_CONFDIR%g | |
9133 s%@PYTHON_LIBS@%$PYTHON_LIBS%g | |
9134 s%@PYTHON_GETPATH_CFLAGS@%$PYTHON_GETPATH_CFLAGS%g | |
9135 s%@PYTHON_CFLAGS@%$PYTHON_CFLAGS%g | |
9136 s%@PYTHON_SRC@%$PYTHON_SRC%g | |
9137 s%@PYTHON_OBJ@%$PYTHON_OBJ%g | |
9138 s%@vi_cv_path_tcl@%$vi_cv_path_tcl%g | |
9139 s%@TCL_SRC@%$TCL_SRC%g | |
9140 s%@TCL_OBJ@%$TCL_OBJ%g | |
9141 s%@TCL_PRO@%$TCL_PRO%g | |
9142 s%@TCL_CFLAGS@%$TCL_CFLAGS%g | |
9143 s%@TCL_LIBS@%$TCL_LIBS%g | |
9144 s%@vi_cv_path_ruby@%$vi_cv_path_ruby%g | |
9145 s%@RUBY_SRC@%$RUBY_SRC%g | |
9146 s%@RUBY_OBJ@%$RUBY_OBJ%g | |
9147 s%@RUBY_PRO@%$RUBY_PRO%g | |
9148 s%@RUBY_CFLAGS@%$RUBY_CFLAGS%g | |
9149 s%@RUBY_LIBS@%$RUBY_LIBS%g | |
9150 s%@WORKSHOP_SRC@%$WORKSHOP_SRC%g | |
9151 s%@WORKSHOP_OBJ@%$WORKSHOP_OBJ%g | |
9152 s%@NETBEANS_SRC@%$NETBEANS_SRC%g | |
9153 s%@NETBEANS_OBJ@%$NETBEANS_OBJ%g | |
9154 s%@SNIFF_SRC@%$SNIFF_SRC%g | |
9155 s%@SNIFF_OBJ@%$SNIFF_OBJ%g | |
9156 s%@xmkmfpath@%$xmkmfpath%g | |
9157 s%@X_CFLAGS@%$X_CFLAGS%g | |
9158 s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
9159 s%@X_LIBS@%$X_LIBS%g | |
9160 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
9161 s%@X_LIB@%$X_LIB%g | |
9162 s%@MOC@%$MOC%g | |
9163 s%@KDE_CONFIG@%$KDE_CONFIG%g | |
9164 s%@KDE_LIBS@%$KDE_LIBS%g | |
9165 s%@KDE_INCLUDES@%$KDE_INCLUDES%g | |
9166 s%@KDE_PREFIX@%$KDE_PREFIX%g | |
9167 s%@QT_LIBS@%$QT_LIBS%g | |
9168 s%@QT_INCLUDES@%$QT_INCLUDES%g | |
9169 s%@ROOTQT@%$ROOTQT%g | |
9170 s%@GTK_CONFIG@%$GTK_CONFIG%g | |
9171 s%@GTK12_CONFIG@%$GTK12_CONFIG%g | |
9172 s%@PKG_CONFIG@%$PKG_CONFIG%g | |
9173 s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
9174 s%@GTK_LIBS@%$GTK_LIBS%g | |
9175 s%@GTK_LIBNAME@%$GTK_LIBNAME%g | |
9176 s%@GNOME_LIBS@%$GNOME_LIBS%g | |
9177 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g | |
9178 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g | |
9179 s%@GNOME_CONFIG@%$GNOME_CONFIG%g | |
9180 s%@MOTIF_LIBNAME@%$MOTIF_LIBNAME%g | |
9181 s%@NARROW_PROTO@%$NARROW_PROTO%g | |
9182 s%@GUI_INC_LOC@%$GUI_INC_LOC%g | |
9183 s%@GUI_LIB_LOC@%$GUI_LIB_LOC%g | |
9184 s%@GUITYPE@%$GUITYPE%g | |
9185 s%@GUI_X_LIBS@%$GUI_X_LIBS%g | |
9186 s%@HANGULIN_SRC@%$HANGULIN_SRC%g | |
9187 s%@HANGULIN_OBJ@%$HANGULIN_OBJ%g | |
9188 s%@TAGPRG@%$TAGPRG%g | |
9189 s%@MSGFMT@%$MSGFMT%g | |
9190 s%@MAKEMO@%$MAKEMO%g | |
9191 | |
9192 CEOF | |
9193 EOF | |
9194 | |
9195 cat >> $CONFIG_STATUS <<\EOF | |
9196 | |
9197 # Split the substitutions into bite-sized pieces for seds with | |
9198 # small command number limits, like on Digital OSF/1 and HP-UX. | |
9199 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
9200 ac_file=1 # Number of current file. | |
9201 ac_beg=1 # First line for current file. | |
9202 ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
9203 ac_more_lines=: | |
9204 ac_sed_cmds="" | |
9205 while $ac_more_lines; do | |
9206 if test $ac_beg -gt 1; then | |
9207 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
9208 else | 17134 else |
9209 sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 17135 cat $tmp/out |
17136 rm -f $tmp/out | |
9210 fi | 17137 fi |
9211 if test ! -s conftest.s$ac_file; then | 17138 |
9212 ac_more_lines=false | |
9213 rm -f conftest.s$ac_file | |
9214 else | |
9215 if test -z "$ac_sed_cmds"; then | |
9216 ac_sed_cmds="sed -f conftest.s$ac_file" | |
9217 else | |
9218 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
9219 fi | |
9220 ac_file=`expr $ac_file + 1` | |
9221 ac_beg=$ac_end | |
9222 ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
9223 fi | |
9224 done | 17139 done |
9225 if test -z "$ac_sed_cmds"; then | 17140 _ACEOF |
9226 ac_sed_cmds=cat | 17141 cat >>$CONFIG_STATUS <<\_ACEOF |
9227 fi | 17142 |
9228 EOF | 17143 # |
9229 | 17144 # CONFIG_HEADER section. |
9230 cat >> $CONFIG_STATUS <<EOF | 17145 # |
9231 | |
9232 CONFIG_FILES=\${CONFIG_FILES-"auto/config.mk:config.mk.in"} | |
9233 EOF | |
9234 cat >> $CONFIG_STATUS <<\EOF | |
9235 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
9236 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9237 case "$ac_file" in | |
9238 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9239 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9240 *) ac_file_in="${ac_file}.in" ;; | |
9241 esac | |
9242 | |
9243 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
9244 | |
9245 # Remove last slash and all that follows it. Not all systems have dirname. | |
9246 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9247 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9248 # The file is in a subdirectory. | |
9249 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9250 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
9251 # A "../" for each directory in $ac_dir_suffix. | |
9252 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
9253 else | |
9254 ac_dir_suffix= ac_dots= | |
9255 fi | |
9256 | |
9257 case "$ac_given_srcdir" in | |
9258 .) srcdir=. | |
9259 if test -z "$ac_dots"; then top_srcdir=. | |
9260 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
9261 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
9262 *) # Relative path. | |
9263 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
9264 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9265 esac | |
9266 | |
9267 | |
9268 echo creating "$ac_file" | |
9269 rm -f "$ac_file" | |
9270 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
9271 case "$ac_file" in | |
9272 *Makefile*) ac_comsub="1i\\ | |
9273 # $configure_input" ;; | |
9274 *) ac_comsub= ;; | |
9275 esac | |
9276 | |
9277 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9278 sed -e "$ac_comsub | |
9279 s%@configure_input@%$configure_input%g | |
9280 s%@srcdir@%$srcdir%g | |
9281 s%@top_srcdir@%$top_srcdir%g | |
9282 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
9283 fi; done | |
9284 rm -f conftest.s* | |
9285 | 17146 |
9286 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 17147 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
9287 # NAME is the cpp macro being defined and VALUE is the value it is being given. | 17148 # NAME is the cpp macro being defined and VALUE is the value it is being given. |
9288 # | 17149 # |
9289 # ac_d sets the value in "#define NAME VALUE" lines. | 17150 # ac_d sets the value in "#define NAME VALUE" lines. |
9290 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | 17151 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
9291 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | 17152 ac_dB='[ ].*$,\1#\2' |
9292 ac_dC='\3' | 17153 ac_dC=' ' |
9293 ac_dD='%g' | 17154 ac_dD=',;t' |
9294 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | 17155 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
9295 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | 17156 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
9296 ac_uB='\([ ]\)%\1#\2define\3' | 17157 ac_uB='$,\1#\2define\3' |
9297 ac_uC=' ' | 17158 ac_uC=' ' |
9298 ac_uD='\4%g' | 17159 ac_uD=',;t' |
9299 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 17160 |
9300 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | 17161 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
9301 ac_eB='$%\1#\2define\3' | |
9302 ac_eC=' ' | |
9303 ac_eD='%g' | |
9304 | |
9305 if test "${CONFIG_HEADERS+set}" != set; then | |
9306 EOF | |
9307 cat >> $CONFIG_STATUS <<EOF | |
9308 CONFIG_HEADERS="auto/config.h:config.h.in" | |
9309 EOF | |
9310 cat >> $CONFIG_STATUS <<\EOF | |
9311 fi | |
9312 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
9313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 17162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
9314 case "$ac_file" in | 17163 case $ac_file in |
9315 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 17164 - | *:- | *:-:* ) # input from stdin |
9316 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 17165 cat >$tmp/stdin |
9317 *) ac_file_in="${ac_file}.in" ;; | 17166 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
17167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17168 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17169 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17170 * ) ac_file_in=$ac_file.in ;; | |
9318 esac | 17171 esac |
9319 | 17172 |
9320 echo creating $ac_file | 17173 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
9321 | 17174 echo "$as_me: creating $ac_file" >&6;} |
9322 rm -f conftest.frag conftest.in conftest.out | 17175 |
9323 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 17176 # First look for the input files in the build tree, otherwise in the |
9324 cat $ac_file_inputs > conftest.in | 17177 # src tree. |
9325 | 17178 ac_file_inputs=`IFS=: |
9326 EOF | 17179 for f in $ac_file_in; do |
9327 | 17180 case $f in |
9328 # Transform confdefs.h into a sed script conftest.vals that substitutes | 17181 -) echo $tmp/stdin ;; |
9329 # the proper values into config.h.in to produce config.h. And first: | 17182 [\\/$]*) |
9330 # Protect against being on the right side of a sed subst in config.status. | 17183 # Absolute (can't be DOS-style, as IFS=:) |
9331 # Protect against being in an unquoted here document in config.status. | 17184 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
9332 rm -f conftest.vals | 17185 echo "$as_me: error: cannot find input file: $f" >&2;} |
9333 cat > conftest.hdr <<\EOF | 17186 { (exit 1); exit 1; }; } |
9334 s/[\\&%]/\\&/g | 17187 # Do quote $f, to prevent DOS paths from being IFS'd. |
9335 s%[\\$`]%\\&%g | 17188 echo "$f";; |
9336 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | 17189 *) # Relative |
9337 s%ac_d%ac_u%gp | 17190 if test -f "$f"; then |
9338 s%ac_u%ac_e%gp | 17191 # Build tree |
9339 EOF | 17192 echo "$f" |
9340 sed -n -f conftest.hdr confdefs.h > conftest.vals | 17193 elif test -f "$srcdir/$f"; then |
9341 rm -f conftest.hdr | 17194 # Source tree |
17195 echo "$srcdir/$f" | |
17196 else | |
17197 # /dev/null tree | |
17198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17199 echo "$as_me: error: cannot find input file: $f" >&2;} | |
17200 { (exit 1); exit 1; }; } | |
17201 fi;; | |
17202 esac | |
17203 done` || { (exit 1); exit 1; } | |
17204 # Remove the trailing spaces. | |
17205 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
17206 | |
17207 _ACEOF | |
17208 | |
17209 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
17210 # `conftest.undefs', that substitutes the proper values into | |
17211 # config.h.in to produce config.h. The first handles `#define' | |
17212 # templates, and the second `#undef' templates. | |
17213 # And first: Protect against being on the right side of a sed subst in | |
17214 # config.status. Protect against being in an unquoted here document | |
17215 # in config.status. | |
17216 rm -f conftest.defines conftest.undefs | |
17217 # Using a here document instead of a string reduces the quoting nightmare. | |
17218 # Putting comments in sed scripts is not portable. | |
17219 # | |
17220 # `end' is used to avoid that the second main sed command (meant for | |
17221 # 0-ary CPP macros) applies to n-ary macro definitions. | |
17222 # See the Autoconf documentation for `clear'. | |
17223 cat >confdef2sed.sed <<\_ACEOF | |
17224 s/[\\&,]/\\&/g | |
17225 s,[\\$`],\\&,g | |
17226 t clear | |
17227 : clear | |
17228 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
17229 t end | |
17230 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
17231 : end | |
17232 _ACEOF | |
17233 # If some macros were called several times there might be several times | |
17234 # the same #defines, which is useless. Nevertheless, we may not want to | |
17235 # sort them, since we want the *last* AC-DEFINE to be honored. | |
17236 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
17237 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
17238 rm -f confdef2sed.sed | |
9342 | 17239 |
9343 # This sed command replaces #undef with comments. This is necessary, for | 17240 # This sed command replaces #undef with comments. This is necessary, for |
9344 # example, in the case of _POSIX_SOURCE, which is predefined and required | 17241 # example, in the case of _POSIX_SOURCE, which is predefined and required |
9345 # on some systems where configure will not decide to define it. | 17242 # on some systems where configure will not decide to define it. |
9346 cat >> conftest.vals <<\EOF | 17243 cat >>conftest.undefs <<\_ACEOF |
9347 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | 17244 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
9348 EOF | 17245 _ACEOF |
9349 | 17246 |
9350 # Break up conftest.vals because some shells have a limit on | 17247 # Break up conftest.defines because some shells have a limit on the size |
9351 # the size of here documents, and old seds have small limits too. | 17248 # of here documents, and old seds have small limits too (100 cmds). |
9352 | 17249 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
17250 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
17251 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
17252 echo ' :' >>$CONFIG_STATUS | |
9353 rm -f conftest.tail | 17253 rm -f conftest.tail |
9354 while : | 17254 while grep . conftest.defines >/dev/null |
9355 do | 17255 do |
9356 ac_lines=`grep -c . conftest.vals` | 17256 # Write a limited-size here document to $tmp/defines.sed. |
9357 # grep -c gives empty output for an empty file on some AIX systems. | 17257 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
9358 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | 17258 # Speed up: don't consider the non `#define' lines. |
9359 # Write a limited-size here document to conftest.frag. | 17259 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
9360 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | 17260 # Work around the forget-to-reset-the-flag bug. |
9361 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | 17261 echo 't clr' >>$CONFIG_STATUS |
17262 echo ': clr' >>$CONFIG_STATUS | |
17263 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
9362 echo 'CEOF | 17264 echo 'CEOF |
9363 sed -f conftest.frag conftest.in > conftest.out | 17265 sed -f $tmp/defines.sed $tmp/in >$tmp/out |
9364 rm -f conftest.in | 17266 rm -f $tmp/in |
9365 mv conftest.out conftest.in | 17267 mv $tmp/out $tmp/in |
9366 ' >> $CONFIG_STATUS | 17268 ' >>$CONFIG_STATUS |
9367 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | 17269 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
9368 rm -f conftest.vals | 17270 rm -f conftest.defines |
9369 mv conftest.tail conftest.vals | 17271 mv conftest.tail conftest.defines |
9370 done | 17272 done |
9371 rm -f conftest.vals | 17273 rm -f conftest.defines |
9372 | 17274 echo ' fi # grep' >>$CONFIG_STATUS |
9373 cat >> $CONFIG_STATUS <<\EOF | 17275 echo >>$CONFIG_STATUS |
9374 rm -f conftest.frag conftest.h | 17276 |
9375 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | 17277 # Break up conftest.undefs because some shells have a limit on the size |
9376 cat conftest.in >> conftest.h | 17278 # of here documents, and old seds have small limits too (100 cmds). |
9377 rm -f conftest.in | 17279 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
9378 if cmp -s $ac_file conftest.h 2>/dev/null; then | 17280 rm -f conftest.tail |
9379 echo "$ac_file is unchanged" | 17281 while grep . conftest.undefs >/dev/null |
9380 rm -f conftest.h | 17282 do |
17283 # Write a limited-size here document to $tmp/undefs.sed. | |
17284 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
17285 # Speed up: don't consider the non `#undef' | |
17286 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
17287 # Work around the forget-to-reset-the-flag bug. | |
17288 echo 't clr' >>$CONFIG_STATUS | |
17289 echo ': clr' >>$CONFIG_STATUS | |
17290 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
17291 echo 'CEOF | |
17292 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
17293 rm -f $tmp/in | |
17294 mv $tmp/out $tmp/in | |
17295 ' >>$CONFIG_STATUS | |
17296 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
17297 rm -f conftest.undefs | |
17298 mv conftest.tail conftest.undefs | |
17299 done | |
17300 rm -f conftest.undefs | |
17301 | |
17302 cat >>$CONFIG_STATUS <<\_ACEOF | |
17303 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17304 # use $as_me), people would be surprised to read: | |
17305 # /* config.h. Generated by config.status. */ | |
17306 if test x"$ac_file" = x-; then | |
17307 echo "/* Generated by configure. */" >$tmp/config.h | |
9381 else | 17308 else |
9382 # Remove last slash and all that follows it. Not all systems have dirname. | 17309 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
9383 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 17310 fi |
9384 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 17311 cat $tmp/in >>$tmp/config.h |
9385 # The file is in a subdirectory. | 17312 rm -f $tmp/in |
9386 test ! -d "$ac_dir" && mkdir "$ac_dir" | 17313 if test x"$ac_file" != x-; then |
17314 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
17315 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
17316 echo "$as_me: $ac_file is unchanged" >&6;} | |
17317 else | |
17318 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
17319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17320 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17321 X"$ac_file" : 'X\(//\)$' \| \ | |
17322 X"$ac_file" : 'X\(/\)' \| \ | |
17323 . : '\(.\)' 2>/dev/null || | |
17324 echo X"$ac_file" | | |
17325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17326 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17327 /^X\(\/\/\)$/{ s//\1/; q; } | |
17328 /^X\(\/\).*/{ s//\1/; q; } | |
17329 s/.*/./; q'` | |
17330 { if $as_mkdir_p; then | |
17331 mkdir -p "$ac_dir" | |
17332 else | |
17333 as_dir="$ac_dir" | |
17334 as_dirs= | |
17335 while test ! -d "$as_dir"; do | |
17336 as_dirs="$as_dir $as_dirs" | |
17337 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
17338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17339 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17340 X"$as_dir" : 'X\(//\)$' \| \ | |
17341 X"$as_dir" : 'X\(/\)' \| \ | |
17342 . : '\(.\)' 2>/dev/null || | |
17343 echo X"$as_dir" | | |
17344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17345 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17346 /^X\(\/\/\)$/{ s//\1/; q; } | |
17347 /^X\(\/\).*/{ s//\1/; q; } | |
17348 s/.*/./; q'` | |
17349 done | |
17350 test ! -n "$as_dirs" || mkdir $as_dirs | |
17351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
17352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
17353 { (exit 1); exit 1; }; }; } | |
17354 | |
17355 rm -f $ac_file | |
17356 mv $tmp/config.h $ac_file | |
9387 fi | 17357 fi |
9388 rm -f $ac_file | 17358 else |
9389 mv conftest.h $ac_file | 17359 cat $tmp/config.h |
17360 rm -f $tmp/config.h | |
9390 fi | 17361 fi |
9391 fi; done | 17362 done |
9392 | 17363 _ACEOF |
9393 EOF | 17364 |
9394 cat >> $CONFIG_STATUS <<EOF | 17365 cat >>$CONFIG_STATUS <<\_ACEOF |
9395 | 17366 |
9396 EOF | 17367 { (exit 0); exit 0; } |
9397 cat >> $CONFIG_STATUS <<\EOF | 17368 _ACEOF |
9398 | |
9399 exit 0 | |
9400 EOF | |
9401 chmod +x $CONFIG_STATUS | 17369 chmod +x $CONFIG_STATUS |
9402 rm -fr confdefs* $ac_clean_files | 17370 ac_clean_files=$ac_clean_files_save |
9403 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 17371 |
9404 | 17372 |
9405 | 17373 # configure is writing to config.log, and then calls config.status. |
17374 # config.status does its own redirection, appending to config.log. | |
17375 # Unfortunately, on DOS this fails, as config.log is still kept open | |
17376 # by configure, so config.status won't be able to write to it; its | |
17377 # output is simply discarded. So we exec the FD to /dev/null, | |
17378 # effectively closing config.log, so it can be properly (re)opened and | |
17379 # appended to by config.status. When coming back to configure, we | |
17380 # need to make the FD available again. | |
17381 if test "$no_create" != yes; then | |
17382 ac_cs_success=: | |
17383 ac_config_status_args= | |
17384 test "$silent" = yes && | |
17385 ac_config_status_args="$ac_config_status_args --quiet" | |
17386 exec 5>/dev/null | |
17387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17388 exec 5>>auto/config.log | |
17389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17390 # would make configure fail if this is the last instruction. | |
17391 $ac_cs_success || { (exit 1); exit 1; } | |
17392 fi | |
17393 | |
17394 |