/[public]/psiconv/trunk/configure
ViewVC logotype

Contents of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 116 - (show annotations)
Sun Jun 17 18:44:28 2001 UTC (22 years, 10 months ago) by frodo
File size: 276314 byte(s)
(Frodo) Update to libtool-1.4, autoconf-2.50

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.50.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
14 case X$UNAME in
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
17 esac
18 fi
19
20 # Check that we are running under the correct shell.
21 SHELL=${CONFIG_SHELL-/bin/sh}
22
23 case X$ECHO in
24 X*--fallback-echo)
25 # Remove one level of quotation (which was required for Make).
26 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
27 ;;
28 esac
29
30 echo=${ECHO-echo}
31 if test "X$1" = X--no-reexec; then
32 # Discard the --no-reexec flag, and continue.
33 shift
34 elif test "X$1" = X--fallback-echo; then
35 # Avoid inline document here, it may be left over
36 :
37 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38 # Yippee, $echo works!
39 :
40 else
41 # Restart under the correct shell.
42 exec $SHELL "$0" --no-reexec ${1+"$@"}
43 fi
44
45 if test "X$1" = X--fallback-echo; then
46 # used as fallback echo
47 shift
48 cat <<EOF
49
50 EOF
51 exit 0
52 fi
53
54 # The HP-UX ksh and POSIX shell print the target directory to stdout
55 # if CDPATH is set.
56 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
57
58 if test -z "$ECHO"; then
59 if test "X${echo_test_string+set}" != Xset; then
60 # find a string as large as possible, as long as the shell can cope with it
61 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64 echo_test_string="`eval $cmd`" &&
65 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66 then
67 break
68 fi
69 done
70 fi
71
72 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74 test "X$echo_testing_string" = "X$echo_test_string"; then
75 :
76 else
77 # The Solaris, AIX, and Digital Unix default echo programs unquote
78 # backslashes. This makes it impossible to quote backslashes using
79 # echo "$something" | sed 's/\\/\\\\/g'
80 #
81 # So, first we look for a working echo in the user's PATH.
82
83 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84 for dir in $PATH /usr/ucb; do
85 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88 test "X$echo_testing_string" = "X$echo_test_string"; then
89 echo="$dir/echo"
90 break
91 fi
92 done
93 IFS="$save_ifs"
94
95 if test "X$echo" = Xecho; then
96 # We didn't find a better echo, so look for alternatives.
97 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99 test "X$echo_testing_string" = "X$echo_test_string"; then
100 # This shell has a builtin print -r that does the trick.
101 echo='print -r'
102 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103 test "X$CONFIG_SHELL" != X/bin/ksh; then
104 # If we have ksh, try running configure again with it.
105 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106 export ORIGINAL_CONFIG_SHELL
107 CONFIG_SHELL=/bin/ksh
108 export CONFIG_SHELL
109 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
110 else
111 # Try using printf.
112 echo='printf %s\n'
113 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115 test "X$echo_testing_string" = "X$echo_test_string"; then
116 # Cool, printf works
117 :
118 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119 test "X$echo_testing_string" = 'X\t' &&
120 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121 test "X$echo_testing_string" = "X$echo_test_string"; then
122 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
123 export CONFIG_SHELL
124 SHELL="$CONFIG_SHELL"
125 export SHELL
126 echo="$CONFIG_SHELL $0 --fallback-echo"
127 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128 test "X$echo_testing_string" = 'X\t' &&
129 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130 test "X$echo_testing_string" = "X$echo_test_string"; then
131 echo="$CONFIG_SHELL $0 --fallback-echo"
132 else
133 # maybe with a smaller string...
134 prev=:
135
136 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
138 then
139 break
140 fi
141 prev="$cmd"
142 done
143
144 if test "$prev" != 'sed 50q "$0"'; then
145 echo_test_string=`eval $prev`
146 export echo_test_string
147 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
148 else
149 # Oops. We lost completely, so just stick with echo.
150 echo=echo
151 fi
152 fi
153 fi
154 fi
155 fi
156 fi
157
158 # Copy echo and quote the copy suitably for passing to libtool from
159 # the Makefile, instead of quoting the original, which is used later.
160 ECHO=$echo
161 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
163 fi
164
165 # Be Bourne compatible
166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
167 emulate sh
168 NULLCMD=:
169 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
170 set -o posix
171 fi
172
173 # Name of the executable.
174 as_me=`echo "$0" |sed 's,.*[\\/],,'`
175
176 if expr a : '\(a\)' >/dev/null 2>&1; then
177 as_expr=expr
178 else
179 as_expr=false
180 fi
181
182 rm -f conf$$ conf$$.exe conf$$.file
183 echo >conf$$.file
184 if ln -s conf$$.file conf$$ 2>/dev/null; then
185 # We could just check for DJGPP; but this test a) works b) is more generic
186 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
187 if test -f conf$$.exe; then
188 # Don't use ln at all; we don't have any links
189 as_ln_s='cp -p'
190 else
191 as_ln_s='ln -s'
192 fi
193 elif ln conf$$.file conf$$ 2>/dev/null; then
194 as_ln_s=ln
195 else
196 as_ln_s='cp -p'
197 fi
198 rm -f conf$$ conf$$.exe conf$$.file
199
200 as_executable_p="test -f"
201
202 # Support unset when possible.
203 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
204 as_unset=unset
205 else
206 as_unset=false
207 fi
208
209 # NLS nuisances.
210 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
211 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
212 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
213 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
214 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
215 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
216 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
217 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
218
219 # IFS
220 # We need space, tab and new line, in precisely that order.
221 as_nl='
222 '
223 IFS=" $as_nl"
224
225 # CDPATH.
226 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
227
228 # Name of the host.
229 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
230 # so uname gets run too.
231 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
232
233 exec 6>&1
234
235 #
236 # Initializations.
237 #
238 ac_default_prefix=/usr/local
239 cross_compiling=no
240 subdirs=
241 MFLAGS= MAKEFLAGS=
242 SHELL=${CONFIG_SHELL-/bin/sh}
243
244 # Maximum number of lines to put in a shell here document.
245 # This variable seems obsolete. It should probably be removed, and
246 # only ac_max_sed_lines should be used.
247 : ${ac_max_here_lines=38}
248
249 # Avoid depending upon Character Ranges.
250 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
251 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
252 ac_cr_09='0123456789'
253 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
254
255 # Sed expression to map a string onto a valid sh and CPP variable names.
256 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
257 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
258
259 ac_unique_file="lib/psiconv"
260 # Factoring default headers for most tests.
261 ac_includes_default="\
262 #include <stdio.h>
263 #include <sys/types.h>
264 #include <sys/stat.h>
265 #if STDC_HEADERS
266 # include <stdlib.h>
267 # include <stddef.h>
268 #else
269 # if HAVE_STDLIB_H
270 # include <stdlib.h>
271 # endif
272 #endif
273 #if HAVE_STRING_H
274 # if !STDC_HEADERS && HAVE_MEMORY_H
275 # include <memory.h>
276 # endif
277 # include <string.h>
278 #else
279 # if HAVE_STRINGS_H
280 # include <strings.h>
281 # endif
282 #endif
283 #if HAVE_INTTYPES_H
284 # include <inttypes.h>
285 #endif
286 #if HAVE_UNISTD_H
287 # include <unistd.h>
288 #endif"
289
290 # Initialize some variables set by options.
291 ac_init_help=
292 ac_init_version=false
293 # The variables have the same names as the options, with
294 # dashes changed to underlines.
295 cache_file=/dev/null
296 exec_prefix=NONE
297 no_create=
298 no_recursion=
299 prefix=NONE
300 program_prefix=NONE
301 program_suffix=NONE
302 program_transform_name=s,x,x,
303 silent=
304 site=
305 srcdir=
306 verbose=
307 x_includes=NONE
308 x_libraries=NONE
309
310 # Installation directory options.
311 # These are left unexpanded so users can "make install exec_prefix=/foo"
312 # and all the variables that are supposed to be based on exec_prefix
313 # by default will actually change.
314 # Use braces instead of parens because sh, perl, etc. also accept them.
315 bindir='${exec_prefix}/bin'
316 sbindir='${exec_prefix}/sbin'
317 libexecdir='${exec_prefix}/libexec'
318 datadir='${prefix}/share'
319 sysconfdir='${prefix}/etc'
320 sharedstatedir='${prefix}/com'
321 localstatedir='${prefix}/var'
322 libdir='${exec_prefix}/lib'
323 includedir='${prefix}/include'
324 oldincludedir='/usr/include'
325 infodir='${prefix}/info'
326 mandir='${prefix}/man'
327
328 # Identity of this package.
329 PACKAGE_NAME=
330 PACKAGE_TARNAME=
331 PACKAGE_VERSION=
332 PACKAGE_STRING=
333 PACKAGE_BUGREPORT=
334
335 ac_prev=
336 for ac_option
337 do
338 # If the previous option needs an argument, assign it.
339 if test -n "$ac_prev"; then
340 eval "$ac_prev=\$ac_option"
341 ac_prev=
342 continue
343 fi
344
345 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
346
347 # Accept the important Cygnus configure options, so we can diagnose typos.
348
349 case $ac_option in
350
351 -bindir | --bindir | --bindi | --bind | --bin | --bi)
352 ac_prev=bindir ;;
353 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
354 bindir=$ac_optarg ;;
355
356 -build | --build | --buil | --bui | --bu)
357 ac_prev=build_alias ;;
358 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
359 build_alias=$ac_optarg ;;
360
361 -cache-file | --cache-file | --cache-fil | --cache-fi \
362 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
363 ac_prev=cache_file ;;
364 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
365 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
366 cache_file=$ac_optarg ;;
367
368 --config-cache | -C)
369 cache_file=config.cache ;;
370
371 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
372 ac_prev=datadir ;;
373 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
374 | --da=*)
375 datadir=$ac_optarg ;;
376
377 -disable-* | --disable-*)
378 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
379 # Reject names that are not valid shell variable names.
380 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
381 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
382 { (exit 1); exit 1; }; }
383 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
384 eval "enable_$ac_feature=no" ;;
385
386 -enable-* | --enable-*)
387 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
388 # Reject names that are not valid shell variable names.
389 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
390 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
391 { (exit 1); exit 1; }; }
392 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
393 case $ac_option in
394 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
395 *) ac_optarg=yes ;;
396 esac
397 eval "enable_$ac_feature='$ac_optarg'" ;;
398
399 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
400 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
401 | --exec | --exe | --ex)
402 ac_prev=exec_prefix ;;
403 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
404 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
405 | --exec=* | --exe=* | --ex=*)
406 exec_prefix=$ac_optarg ;;
407
408 -gas | --gas | --ga | --g)
409 # Obsolete; use --with-gas.
410 with_gas=yes ;;
411
412 -help | --help | --hel | --he | -h)
413 ac_init_help=long ;;
414 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
415 ac_init_help=recursive ;;
416 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
417 ac_init_help=short ;;
418
419 -host | --host | --hos | --ho)
420 ac_prev=host_alias ;;
421 -host=* | --host=* | --hos=* | --ho=*)
422 host_alias=$ac_optarg ;;
423
424 -includedir | --includedir | --includedi | --included | --include \
425 | --includ | --inclu | --incl | --inc)
426 ac_prev=includedir ;;
427 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
428 | --includ=* | --inclu=* | --incl=* | --inc=*)
429 includedir=$ac_optarg ;;
430
431 -infodir | --infodir | --infodi | --infod | --info | --inf)
432 ac_prev=infodir ;;
433 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
434 infodir=$ac_optarg ;;
435
436 -libdir | --libdir | --libdi | --libd)
437 ac_prev=libdir ;;
438 -libdir=* | --libdir=* | --libdi=* | --libd=*)
439 libdir=$ac_optarg ;;
440
441 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
442 | --libexe | --libex | --libe)
443 ac_prev=libexecdir ;;
444 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
445 | --libexe=* | --libex=* | --libe=*)
446 libexecdir=$ac_optarg ;;
447
448 -localstatedir | --localstatedir | --localstatedi | --localstated \
449 | --localstate | --localstat | --localsta | --localst \
450 | --locals | --local | --loca | --loc | --lo)
451 ac_prev=localstatedir ;;
452 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
453 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
454 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
455 localstatedir=$ac_optarg ;;
456
457 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
458 ac_prev=mandir ;;
459 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
460 mandir=$ac_optarg ;;
461
462 -nfp | --nfp | --nf)
463 # Obsolete; use --without-fp.
464 with_fp=no ;;
465
466 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467 | --no-cr | --no-c)
468 no_create=yes ;;
469
470 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
472 no_recursion=yes ;;
473
474 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
475 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
476 | --oldin | --oldi | --old | --ol | --o)
477 ac_prev=oldincludedir ;;
478 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
479 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
480 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
481 oldincludedir=$ac_optarg ;;
482
483 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
484 ac_prev=prefix ;;
485 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
486 prefix=$ac_optarg ;;
487
488 -program-prefix | --program-prefix | --program-prefi | --program-pref \
489 | --program-pre | --program-pr | --program-p)
490 ac_prev=program_prefix ;;
491 -program-prefix=* | --program-prefix=* | --program-prefi=* \
492 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
493 program_prefix=$ac_optarg ;;
494
495 -program-suffix | --program-suffix | --program-suffi | --program-suff \
496 | --program-suf | --program-su | --program-s)
497 ac_prev=program_suffix ;;
498 -program-suffix=* | --program-suffix=* | --program-suffi=* \
499 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
500 program_suffix=$ac_optarg ;;
501
502 -program-transform-name | --program-transform-name \
503 | --program-transform-nam | --program-transform-na \
504 | --program-transform-n | --program-transform- \
505 | --program-transform | --program-transfor \
506 | --program-transfo | --program-transf \
507 | --program-trans | --program-tran \
508 | --progr-tra | --program-tr | --program-t)
509 ac_prev=program_transform_name ;;
510 -program-transform-name=* | --program-transform-name=* \
511 | --program-transform-nam=* | --program-transform-na=* \
512 | --program-transform-n=* | --program-transform-=* \
513 | --program-transform=* | --program-transfor=* \
514 | --program-transfo=* | --program-transf=* \
515 | --program-trans=* | --program-tran=* \
516 | --progr-tra=* | --program-tr=* | --program-t=*)
517 program_transform_name=$ac_optarg ;;
518
519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
520 | -silent | --silent | --silen | --sile | --sil)
521 silent=yes ;;
522
523 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
524 ac_prev=sbindir ;;
525 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
526 | --sbi=* | --sb=*)
527 sbindir=$ac_optarg ;;
528
529 -sharedstatedir | --sharedstatedir | --sharedstatedi \
530 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
531 | --sharedst | --shareds | --shared | --share | --shar \
532 | --sha | --sh)
533 ac_prev=sharedstatedir ;;
534 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
535 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
536 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
537 | --sha=* | --sh=*)
538 sharedstatedir=$ac_optarg ;;
539
540 -site | --site | --sit)
541 ac_prev=site ;;
542 -site=* | --site=* | --sit=*)
543 site=$ac_optarg ;;
544
545 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
546 ac_prev=srcdir ;;
547 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
548 srcdir=$ac_optarg ;;
549
550 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
551 | --syscon | --sysco | --sysc | --sys | --sy)
552 ac_prev=sysconfdir ;;
553 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
554 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
555 sysconfdir=$ac_optarg ;;
556
557 -target | --target | --targe | --targ | --tar | --ta | --t)
558 ac_prev=target_alias ;;
559 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
560 target_alias=$ac_optarg ;;
561
562 -v | -verbose | --verbose | --verbos | --verbo | --verb)
563 verbose=yes ;;
564
565 -version | --version | --versio | --versi | --vers | -V)
566 ac_init_version=: ;;
567
568 -with-* | --with-*)
569 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid package name: $ac_package" >&2
573 { (exit 1); exit 1; }; }
574 ac_package=`echo $ac_package| sed 's/-/_/g'`
575 case $ac_option in
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577 *) ac_optarg=yes ;;
578 esac
579 eval "with_$ac_package='$ac_optarg'" ;;
580
581 -without-* | --without-*)
582 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
583 # Reject names that are not valid shell variable names.
584 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
585 { echo "$as_me: error: invalid package name: $ac_package" >&2
586 { (exit 1); exit 1; }; }
587 ac_package=`echo $ac_package | sed 's/-/_/g'`
588 eval "with_$ac_package=no" ;;
589
590 --x)
591 # Obsolete; use --with-x.
592 with_x=yes ;;
593
594 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
595 | --x-incl | --x-inc | --x-in | --x-i)
596 ac_prev=x_includes ;;
597 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
598 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
599 x_includes=$ac_optarg ;;
600
601 -x-libraries | --x-libraries | --x-librarie | --x-librari \
602 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
603 ac_prev=x_libraries ;;
604 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
605 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
606 x_libraries=$ac_optarg ;;
607
608 -*) { echo "$as_me: error: unrecognized option: $ac_option
609 Try \`$0 --help' for more information." >&2
610 { (exit 1); exit 1; }; }
611 ;;
612
613 *=*)
614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
615 # Reject names that are not valid shell variable names.
616 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
617 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
618 { (exit 1); exit 1; }; }
619 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
620 eval "$ac_envvar='$ac_optarg'"
621 export $ac_envvar ;;
622
623 *)
624 # FIXME: should be removed in autoconf 3.0.
625 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
626 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
627 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
628 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
629 ;;
630
631 esac
632 done
633
634 if test -n "$ac_prev"; then
635 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
636 { echo "$as_me: error: missing argument to $ac_option" >&2
637 { (exit 1); exit 1; }; }
638 fi
639
640 # Be sure to have absolute paths.
641 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
642 localstatedir libdir includedir oldincludedir infodir mandir \
643 exec_prefix prefix
644 do
645 eval ac_val=$`echo $ac_var`
646 case $ac_val in
647 [\\/$]* | ?:[\\/]* ) ;;
648 NONE ) ;;
649 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
653
654 # There might be people who depend on the old broken behavior: `$host'
655 # used to hold the argument of --host etc.
656 build=$build_alias
657 host=$host_alias
658 target=$target_alias
659
660 # FIXME: should be removed in autoconf 3.0.
661 if test "x$host_alias" != x; then
662 if test "x$build_alias" = x; then
663 cross_compiling=maybe
664 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
665 If a cross compiler is detected then cross compile mode will be used." >&2
666 elif test "x$build_alias" != "x$host_alias"; then
667 cross_compiling=yes
668 fi
669 fi
670
671 ac_tool_prefix=
672 test -n "$host_alias" && ac_tool_prefix=$host_alias-
673
674 test "$silent" = yes && exec 6>/dev/null
675
676 # Find the source files, if location was not specified.
677 if test -z "$srcdir"; then
678 ac_srcdir_defaulted=yes
679 # Try the directory containing this script, then its parent.
680 ac_prog=$0
681 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
682 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
683 srcdir=$ac_confdir
684 if test ! -r $srcdir/$ac_unique_file; then
685 srcdir=..
686 fi
687 else
688 ac_srcdir_defaulted=no
689 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691 if test "$ac_srcdir_defaulted" = yes; then
692 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
693 { (exit 1); exit 1; }; }
694 else
695 { echo "$as_me: error: cannot find sources in $srcdir" >&2
696 { (exit 1); exit 1; }; }
697 fi
698 fi
699 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
700 ac_env_build_alias_set=${build_alias+set}
701 ac_env_build_alias_value=$build_alias
702 ac_cv_env_build_alias_set=${build_alias+set}
703 ac_cv_env_build_alias_value=$build_alias
704 ac_env_host_alias_set=${host_alias+set}
705 ac_env_host_alias_value=$host_alias
706 ac_cv_env_host_alias_set=${host_alias+set}
707 ac_cv_env_host_alias_value=$host_alias
708 ac_env_target_alias_set=${target_alias+set}
709 ac_env_target_alias_value=$target_alias
710 ac_cv_env_target_alias_set=${target_alias+set}
711 ac_cv_env_target_alias_value=$target_alias
712 ac_env_CC_set=${CC+set}
713 ac_env_CC_value=$CC
714 ac_cv_env_CC_set=${CC+set}
715 ac_cv_env_CC_value=$CC
716 ac_env_CFLAGS_set=${CFLAGS+set}
717 ac_env_CFLAGS_value=$CFLAGS
718 ac_cv_env_CFLAGS_set=${CFLAGS+set}
719 ac_cv_env_CFLAGS_value=$CFLAGS
720 ac_env_LDFLAGS_set=${LDFLAGS+set}
721 ac_env_LDFLAGS_value=$LDFLAGS
722 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
723 ac_cv_env_LDFLAGS_value=$LDFLAGS
724 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
725 ac_env_CPPFLAGS_value=$CPPFLAGS
726 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
727 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
728 ac_env_CPP_set=${CPP+set}
729 ac_env_CPP_value=$CPP
730 ac_cv_env_CPP_set=${CPP+set}
731 ac_cv_env_CPP_value=$CPP
732
733 #
734 # Report the --help message.
735 #
736 if test "$ac_init_help" = "long"; then
737 # Omit some internal or obsolete options to make the list less imposing.
738 # This message is too long to be a string in the A/UX 3.1 sh.
739 cat <<EOF
740 \`configure' configures this package to adapt to many kinds of systems.
741
742 Usage: $0 [OPTION]... [VAR=VALUE]...
743
744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
745 VAR=VALUE. See below for descriptions of some of the useful variables.
746
747 Defaults for the options are specified in brackets.
748
749 Configuration:
750 -h, --help display this help and exit
751 --help=short display options specific to this package
752 --help=recursive display the short help of all the included packages
753 -V, --version display version information and exit
754 -q, --quiet, --silent do not print \`checking...' messages
755 --cache-file=FILE cache test results in FILE [disabled]
756 -C, --config-cache alias for \`--cache-file=config.cache'
757 -n, --no-create do not create output files
758 --srcdir=DIR find the sources in DIR [configure dir or \`..']
759
760 EOF
761
762 cat <<EOF
763 Installation directories:
764 --prefix=PREFIX install architecture-independent files in PREFIX
765 [$ac_default_prefix]
766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
767 [PREFIX]
768
769 By default, \`make install' will install all the files in
770 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772 for instance \`--prefix=\$HOME'.
773
774 For better control, use the options below.
775
776 Fine tuning of the installation directories:
777 --bindir=DIR user executables [EPREFIX/bin]
778 --sbindir=DIR system admin executables [EPREFIX/sbin]
779 --libexecdir=DIR program executables [EPREFIX/libexec]
780 --datadir=DIR read-only architecture-independent data [PREFIX/share]
781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
783 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
784 --libdir=DIR object code libraries [EPREFIX/lib]
785 --includedir=DIR C header files [PREFIX/include]
786 --oldincludedir=DIR C header files for non-gcc [/usr/include]
787 --infodir=DIR info documentation [PREFIX/info]
788 --mandir=DIR man documentation [PREFIX/man]
789 EOF
790
791 cat <<\EOF
792
793 Program names:
794 --program-prefix=PREFIX prepend PREFIX to installed program names
795 --program-suffix=SUFFIX append SUFFIX to installed program names
796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
797
798 System types:
799 --build=BUILD configure for building on BUILD [guessed]
800 --host=HOST build programs to run on HOST [BUILD]
801 EOF
802 fi
803
804 if test -n "$ac_init_help"; then
805
806 cat <<\EOF
807
808 Optional Features:
809 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
810 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
811 --enable-shared=PKGS build shared libraries default=yes
812 --enable-static=PKGS build static libraries default=yes
813 --enable-fast-install=PKGS optimize for fast installation default=yes
814 --disable-libtool-lock avoid locking (might break parallel builds)
815 --enable-compile-warnings=no/minimum/yes Turn on compiler warnings.
816 --enable-iso-c Try to warn if code is not ISO C
817 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)
818 --enable-html4-docs Enable generation of HTML 4 docs (default: off)
819 --enable-ascii-docs Enable generation of ASCII docs (default: off)
820 --enable-rtf-docs Enable generation of RTF docs (default: off)
821
822 Optional Packages:
823 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
824 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
825 --with-gnu-ld assume the C compiler uses GNU ld default=no
826 --with-pic try to use only PIC/non-PIC objects default=use both
827 --with-imagemagick enable ImageMagick (default = yes)
828
829 Some influential environment variables:
830 CC C compiler command
831 CFLAGS C compiler flags
832 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
833 nonstandard directory <lib dir>
834 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
835 headers in a nonstandard directory <include dir>
836 CPP C preprocessor
837
838 Use these variables to override the choices made by `configure' or to help
839 it to find libraries and programs with nonstandard names/locations.
840
841 EOF
842 fi
843
844 if test "$ac_init_help" = "recursive"; then
845 # If there are subdirs, report their specific --help.
846 ac_popdir=`pwd`
847 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
848 cd $ac_subdir
849 # A "../" for each directory in /$ac_subdir.
850 ac_dots=`echo $ac_subdir |
851 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
852
853 case $srcdir in
854 .) # No --srcdir option. We are building in place.
855 ac_sub_srcdir=$srcdir ;;
856 [\\/]* | ?:[\\/]* ) # Absolute path.
857 ac_sub_srcdir=$srcdir/$ac_subdir ;;
858 *) # Relative path.
859 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
860 esac
861
862 # Check for guested configure; otherwise get Cygnus style configure.
863 if test -f $ac_sub_srcdir/configure.gnu; then
864 echo
865 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
866 elif test -f $ac_sub_srcdir/configure; then
867 echo
868 $SHELL $ac_sub_srcdir/configure --help=recursive
869 elif test -f $ac_sub_srcdir/configure.ac ||
870 test -f $ac_sub_srcdir/configure.in; then
871 echo
872 $ac_configure --help
873 else
874 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
875 fi
876 cd $ac_popdir
877 done
878 fi
879
880 test -n "$ac_init_help" && exit 0
881 if $ac_init_version; then
882 cat <<\EOF
883
884 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
885 Free Software Foundation, Inc.
886 This configure script is free software; the Free Software Foundation
887 gives unlimited permission to copy, distribute and modify it.
888 EOF
889 exit 0
890 fi
891 exec 5>config.log
892 cat >&5 <<EOF
893 This file contains any messages produced by compilers while
894 running configure, to aid debugging if configure makes a mistake.
895
896 It was created by $as_me, which was
897 generated by GNU Autoconf 2.50. Invocation command line was
898
899 $ $0 $@
900
901 EOF
902 {
903 cat <<_ASUNAME
904 ## ---------- ##
905 ## Platform. ##
906 ## ---------- ##
907
908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
913
914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
915 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
916
917 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
918 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
920 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
921 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
922 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
923 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
924
925 PATH = $PATH
926
927 _ASUNAME
928 } >&5
929
930 cat >&5 <<EOF
931 ## ------------ ##
932 ## Core tests. ##
933 ## ------------ ##
934
935 EOF
936
937 # Keep a trace of the command line.
938 # Strip out --no-create and --no-recursion so they do not pile up.
939 # Also quote any args containing shell meta-characters.
940 ac_configure_args=
941 ac_sep=
942 for ac_arg
943 do
944 case $ac_arg in
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c) ;;
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
949 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
950 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
951 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
952 ac_sep=" " ;;
953 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
954 ac_sep=" " ;;
955 esac
956 # Get rid of the leading space.
957 done
958
959 # When interrupted or exit'd, cleanup temporary files, and complete
960 # config.log. We remove comments because anyway the quotes in there
961 # would cause problems or look ugly.
962 trap 'exit_status=$?
963 # Save into config.log some information that might help in debugging.
964 echo >&5
965 echo "## ----------------- ##" >&5
966 echo "## Cache variables. ##" >&5
967 echo "## ----------------- ##" >&5
968 echo >&5
969 # The following way of writing the cache mishandles newlines in values,
970 {
971 (set) 2>&1 |
972 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
973 *ac_space=\ *)
974 sed -n \
975 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
976 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
977 ;;
978 *)
979 sed -n \
980 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
981 ;;
982 esac;
983 } >&5
984 sed "/^$/d" confdefs.h >conftest.log
985 if test -s conftest.log; then
986 echo >&5
987 echo "## ------------ ##" >&5
988 echo "## confdefs.h. ##" >&5
989 echo "## ------------ ##" >&5
990 echo >&5
991 cat conftest.log >&5
992 fi
993 (echo; echo) >&5
994 test "$ac_signal" != 0 &&
995 echo "$as_me: caught signal $ac_signal" >&5
996 echo "$as_me: exit $exit_status" >&5
997 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
998 exit $exit_status
999 ' 0
1000 for ac_signal in 1 2 13 15; do
1001 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1002 done
1003 ac_signal=0
1004
1005 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1006 rm -rf conftest* confdefs.h
1007 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1008 echo >confdefs.h
1009
1010 # Let the site file select an alternate cache file if it wants to.
1011 # Prefer explicitly selected file to automatically selected ones.
1012 if test -z "$CONFIG_SITE"; then
1013 if test "x$prefix" != xNONE; then
1014 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1015 else
1016 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1017 fi
1018 fi
1019 for ac_site_file in $CONFIG_SITE; do
1020 if test -r "$ac_site_file"; then
1021 { echo "$as_me:1021: loading site script $ac_site_file" >&5
1022 echo "$as_me: loading site script $ac_site_file" >&6;}
1023 cat "$ac_site_file" >&5
1024 . "$ac_site_file"
1025 fi
1026 done
1027
1028 if test -r "$cache_file"; then
1029 # Some versions of bash will fail to source /dev/null (special
1030 # files actually), so we avoid doing that.
1031 if test -f "$cache_file"; then
1032 { echo "$as_me:1032: loading cache $cache_file" >&5
1033 echo "$as_me: loading cache $cache_file" >&6;}
1034 case $cache_file in
1035 [\\/]* | ?:[\\/]* ) . $cache_file;;
1036 *) . ./$cache_file;;
1037 esac
1038 fi
1039 else
1040 { echo "$as_me:1040: creating cache $cache_file" >&5
1041 echo "$as_me: creating cache $cache_file" >&6;}
1042 >$cache_file
1043 fi
1044
1045 # Check that the precious variables saved in the cache have kept the same
1046 # value.
1047 ac_suggest_removing_cache=false
1048 for ac_var in `(set) 2>&1 |
1049 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1050 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1051 eval ac_new_set=\$ac_env_${ac_var}_set
1052 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1053 eval ac_new_val="\$ac_env_${ac_var}_value"
1054 case $ac_old_set,$ac_new_set in
1055 set,)
1056 { echo "$as_me:1056: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1057 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1058 ac_suggest_removing_cache=: ;;
1059 ,set)
1060 { echo "$as_me:1060: WARNING: \`$ac_var' was not set in the previous run" >&5
1061 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1062 ac_suggest_removing_cache=: ;;
1063 ,);;
1064 *)
1065 if test "x$ac_old_val" != "x$ac_new_val"; then
1066 { echo "$as_me:1066: WARNING: \`$ac_var' has changed since the previous run:" >&5
1067 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1068 { echo "$as_me:1068: WARNING: former value: $ac_old_val" >&5
1069 echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
1070 { echo "$as_me:1070: WARNING: current value: $ac_new_val" >&5
1071 echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
1072 ac_suggest_removing_cache=:
1073 fi;;
1074 esac
1075 done
1076 if $ac_suggest_removing_cache; then
1077 { echo "$as_me:1077: WARNING: changes in the environment can compromise the build" >&5
1078 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1079 { echo "$as_me:1079: WARNING: consider removing $cache_file and starting over" >&5
1080 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1081 fi
1082
1083 ac_ext=c
1084 ac_cpp='$CPP $CPPFLAGS'
1085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1088
1089 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1090 *c*,-n*) ECHO_N= ECHO_C='
1091 ' ECHO_T=' ' ;;
1092 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1093 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1094 esac
1095 echo "#! $SHELL" >conftest.sh
1096 echo "exit 0" >>conftest.sh
1097 chmod +x conftest.sh
1098 if { (echo "$as_me:1098: PATH=\".;.\"; conftest.sh") >&5
1099 (PATH=".;."; conftest.sh) 2>&5
1100 ac_status=$?
1101 echo "$as_me:1101: \$? = $ac_status" >&5
1102 (exit $ac_status); }; then
1103 ac_path_separator=';'
1104 else
1105 ac_path_separator=:
1106 fi
1107 PATH_SEPARATOR="$ac_path_separator"
1108 rm -f conftest.sh
1109
1110 ac_aux_dir=
1111 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1112 if test -f $ac_dir/install-sh; then
1113 ac_aux_dir=$ac_dir
1114 ac_install_sh="$ac_aux_dir/install-sh -c"
1115 break
1116 elif test -f $ac_dir/install.sh; then
1117 ac_aux_dir=$ac_dir
1118 ac_install_sh="$ac_aux_dir/install.sh -c"
1119 break
1120 elif test -f $ac_dir/shtool; then
1121 ac_aux_dir=$ac_dir
1122 ac_install_sh="$ac_aux_dir/shtool install -c"
1123 break
1124 fi
1125 done
1126 if test -z "$ac_aux_dir"; then
1127 { { echo "$as_me:1127: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1128 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1129 { (exit 1); exit 1; }; }
1130 fi
1131 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1132 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1133 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1134
1135 # Find a good install program. We prefer a C program (faster),
1136 # so one script is as good as another. But avoid the broken or
1137 # incompatible versions:
1138 # SysV /etc/install, /usr/sbin/install
1139 # SunOS /usr/etc/install
1140 # IRIX /sbin/install
1141 # AIX /bin/install
1142 # AmigaOS /C/install, which installs bootblocks on floppy discs
1143 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1144 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1145 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1146 # ./install, which can be erroneously created by make from ./install.sh.
1147 echo "$as_me:1147: checking for a BSD compatible install" >&5
1148 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1149 if test -z "$INSTALL"; then
1150 if test "${ac_cv_path_install+set}" = set; then
1151 echo $ECHO_N "(cached) $ECHO_C" >&6
1152 else
1153 ac_save_IFS=$IFS; IFS=$ac_path_separator
1154 for ac_dir in $PATH; do
1155 IFS=$ac_save_IFS
1156 # Account for people who put trailing slashes in PATH elements.
1157 case $ac_dir/ in
1158 / | ./ | .// | /cC/* \
1159 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1160 | /usr/ucb/* ) ;;
1161 *)
1162 # OSF1 and SCO ODT 3.0 have their own names for install.
1163 # Don't use installbsd from OSF since it installs stuff as root
1164 # by default.
1165 for ac_prog in ginstall scoinst install; do
1166 if $as_executable_p "$ac_dir/$ac_prog"; then
1167 if test $ac_prog = install &&
1168 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1169 # AIX install. It has an incompatible calling convention.
1170 :
1171 elif test $ac_prog = install &&
1172 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1173 # program-specific install script used by HP pwplus--don't use.
1174 :
1175 else
1176 ac_cv_path_install="$ac_dir/$ac_prog -c"
1177 break 2
1178 fi
1179 fi
1180 done
1181 ;;
1182 esac
1183 done
1184
1185 fi
1186 if test "${ac_cv_path_install+set}" = set; then
1187 INSTALL=$ac_cv_path_install
1188 else
1189 # As a last resort, use the slow shell script. We don't cache a
1190 # path for INSTALL within a source directory, because that will
1191 # break other packages using the cache if that directory is
1192 # removed, or if the path is relative.
1193 INSTALL=$ac_install_sh
1194 fi
1195 fi
1196 echo "$as_me:1196: result: $INSTALL" >&5
1197 echo "${ECHO_T}$INSTALL" >&6
1198
1199 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1200 # It thinks the first close brace ends the variable substitution.
1201 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1202
1203 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1204
1205 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1206
1207 echo "$as_me:1207: checking whether build environment is sane" >&5
1208 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1209 # Just in case
1210 sleep 1
1211 echo timestamp > conftestfile
1212 # Do `set' in a subshell so we don't clobber the current shell's
1213 # arguments. Must try -L first in case configure is actually a
1214 # symlink; some systems play weird games with the mod time of symlinks
1215 # (eg FreeBSD returns the mod time of the symlink's containing
1216 # directory).
1217 if (
1218 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1219 if test "$*" = "X"; then
1220 # -L didn't work.
1221 set X `ls -t $srcdir/configure conftestfile`
1222 fi
1223 if test "$*" != "X $srcdir/configure conftestfile" \
1224 && test "$*" != "X conftestfile $srcdir/configure"; then
1225
1226 # If neither matched, then we have a broken ls. This can happen
1227 # if, for instance, CONFIG_SHELL is bash and it inherits a
1228 # broken ls alias from the environment. This has actually
1229 # happened. Such a system could not be considered "sane".
1230 { { echo "$as_me:1230: error: ls -t appears to fail. Make sure there is not a broken
1231 alias in your environment" >&5
1232 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1233 alias in your environment" >&2;}
1234 { (exit 1); exit 1; }; }
1235 fi
1236
1237 test "$2" = conftestfile
1238 )
1239 then
1240 # Ok.
1241 :
1242 else
1243 { { echo "$as_me:1243: error: newly created file is older than distributed files!
1244 Check your system clock" >&5
1245 echo "$as_me: error: newly created file is older than distributed files!
1246 Check your system clock" >&2;}
1247 { (exit 1); exit 1; }; }
1248 fi
1249 rm -f conftest*
1250 echo "$as_me:1250: result: yes" >&5
1251 echo "${ECHO_T}yes" >&6
1252 if test "$program_transform_name" = s,x,x,; then
1253 program_transform_name=
1254 else
1255 # Double any \ or $. echo might interpret backslashes.
1256 cat <<\EOF >conftest.sed
1257 s,\\,\\\\,g; s,\$,$$,g
1258 EOF
1259 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1260 rm -f conftest.sed
1261 fi
1262 test "$program_prefix" != NONE &&
1263 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1264 # Use a double $ so make ignores it.
1265 test "$program_suffix" != NONE &&
1266 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1267
1268 # sed with no file args requires a program.
1269 test -z "$program_transform_name" && program_transform_name="s,x,x,"
1270
1271 echo "$as_me:1271: checking whether ${MAKE-make} sets \${MAKE}" >&5
1272 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1273 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1274 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1276 else
1277 cat >conftest.make <<\EOF
1278 all:
1279 @echo 'ac_maketemp="${MAKE}"'
1280 EOF
1281 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1282 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1283 if test -n "$ac_maketemp"; then
1284 eval ac_cv_prog_make_${ac_make}_set=yes
1285 else
1286 eval ac_cv_prog_make_${ac_make}_set=no
1287 fi
1288 rm -f conftest.make
1289 fi
1290 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1291 echo "$as_me:1291: result: yes" >&5
1292 echo "${ECHO_T}yes" >&6
1293 SET_MAKE=
1294 else
1295 echo "$as_me:1295: result: no" >&5
1296 echo "${ECHO_T}no" >&6
1297 SET_MAKE="MAKE=${MAKE-make}"
1298 fi
1299
1300 PACKAGE=psiconv
1301
1302 VERSION=0.8.1
1303
1304 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1305 { { echo "$as_me:1305: error: source directory already configured; run \"make distclean\" there first" >&5
1306 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1307 { (exit 1); exit 1; }; }
1308 fi
1309
1310 cat >>confdefs.h <<EOF
1311 #define PACKAGE "$PACKAGE"
1312 EOF
1313
1314 cat >>confdefs.h <<EOF
1315 #define VERSION "$VERSION"
1316 EOF
1317
1318 missing_dir=`cd $ac_aux_dir && pwd`
1319 echo "$as_me:1319: checking for working aclocal" >&5
1320 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1321 # Run test in a subshell; some versions of sh will print an error if
1322 # an executable is not found, even if stderr is redirected.
1323 # Redirect stdin to placate older versions of autoconf. Sigh.
1324 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1325 ACLOCAL=aclocal
1326 echo "$as_me:1326: result: found" >&5
1327 echo "${ECHO_T}found" >&6
1328 else
1329 ACLOCAL="$missing_dir/missing aclocal"
1330 echo "$as_me:1330: result: missing" >&5
1331 echo "${ECHO_T}missing" >&6
1332 fi
1333
1334 echo "$as_me:1334: checking for working autoconf" >&5
1335 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1336 # Run test in a subshell; some versions of sh will print an error if
1337 # an executable is not found, even if stderr is redirected.
1338 # Redirect stdin to placate older versions of autoconf. Sigh.
1339 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1340 AUTOCONF=autoconf
1341 echo "$as_me:1341: result: found" >&5
1342 echo "${ECHO_T}found" >&6
1343 else
1344 AUTOCONF="$missing_dir/missing autoconf"
1345 echo "$as_me:1345: result: missing" >&5
1346 echo "${ECHO_T}missing" >&6
1347 fi
1348
1349 echo "$as_me:1349: checking for working automake" >&5
1350 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1351 # Run test in a subshell; some versions of sh will print an error if
1352 # an executable is not found, even if stderr is redirected.
1353 # Redirect stdin to placate older versions of autoconf. Sigh.
1354 if (automake --version) < /dev/null > /dev/null 2>&1; then
1355 AUTOMAKE=automake
1356 echo "$as_me:1356: result: found" >&5
1357 echo "${ECHO_T}found" >&6
1358 else
1359 AUTOMAKE="$missing_dir/missing automake"
1360 echo "$as_me:1360: result: missing" >&5
1361 echo "${ECHO_T}missing" >&6
1362 fi
1363
1364 echo "$as_me:1364: checking for working autoheader" >&5
1365 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1366 # Run test in a subshell; some versions of sh will print an error if
1367 # an executable is not found, even if stderr is redirected.
1368 # Redirect stdin to placate older versions of autoconf. Sigh.
1369 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1370 AUTOHEADER=autoheader
1371 echo "$as_me:1371: result: found" >&5
1372 echo "${ECHO_T}found" >&6
1373 else
1374 AUTOHEADER="$missing_dir/missing autoheader"
1375 echo "$as_me:1375: result: missing" >&5
1376 echo "${ECHO_T}missing" >&6
1377 fi
1378
1379 echo "$as_me:1379: checking for working makeinfo" >&5
1380 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1381 # Run test in a subshell; some versions of sh will print an error if
1382 # an executable is not found, even if stderr is redirected.
1383 # Redirect stdin to placate older versions of autoconf. Sigh.
1384 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1385 MAKEINFO=makeinfo
1386 echo "$as_me:1386: result: found" >&5
1387 echo "${ECHO_T}found" >&6
1388 else
1389 MAKEINFO="$missing_dir/missing makeinfo"
1390 echo "$as_me:1390: result: missing" >&5
1391 echo "${ECHO_T}missing" >&6
1392 fi
1393
1394 ac_config_headers="$ac_config_headers config.h"
1395
1396 ac_config_commands="$ac_config_commands default-1"
1397
1398 # Check whether --enable-shared or --disable-shared was given.
1399 if test "${enable_shared+set}" = set; then
1400 enableval="$enable_shared"
1401 p=${PACKAGE-default}
1402 case $enableval in
1403 yes) enable_shared=yes ;;
1404 no) enable_shared=no ;;
1405 *)
1406 enable_shared=no
1407 # Look at the argument we got. We use all the common list separators.
1408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1409 for pkg in $enableval; do
1410 if test "X$pkg" = "X$p"; then
1411 enable_shared=yes
1412 fi
1413 done
1414 IFS="$ac_save_ifs"
1415 ;;
1416 esac
1417 else
1418 enable_shared=yes
1419 fi;
1420 # Check whether --enable-static or --disable-static was given.
1421 if test "${enable_static+set}" = set; then
1422 enableval="$enable_static"
1423 p=${PACKAGE-default}
1424 case $enableval in
1425 yes) enable_static=yes ;;
1426 no) enable_static=no ;;
1427 *)
1428 enable_static=no
1429 # Look at the argument we got. We use all the common list separators.
1430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1431 for pkg in $enableval; do
1432 if test "X$pkg" = "X$p"; then
1433 enable_static=yes
1434 fi
1435 done
1436 IFS="$ac_save_ifs"
1437 ;;
1438 esac
1439 else
1440 enable_static=yes
1441 fi;
1442 # Check whether --enable-fast-install or --disable-fast-install was given.
1443 if test "${enable_fast_install+set}" = set; then
1444 enableval="$enable_fast_install"
1445 p=${PACKAGE-default}
1446 case $enableval in
1447 yes) enable_fast_install=yes ;;
1448 no) enable_fast_install=no ;;
1449 *)
1450 enable_fast_install=no
1451 # Look at the argument we got. We use all the common list separators.
1452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1453 for pkg in $enableval; do
1454 if test "X$pkg" = "X$p"; then
1455 enable_fast_install=yes
1456 fi
1457 done
1458 IFS="$ac_save_ifs"
1459 ;;
1460 esac
1461 else
1462 enable_fast_install=yes
1463 fi;
1464 # Make sure we can run config.sub.
1465 $ac_config_sub sun4 >/dev/null 2>&1 ||
1466 { { echo "$as_me:1466: error: cannot run $ac_config_sub" >&5
1467 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1468 { (exit 1); exit 1; }; }
1469
1470 echo "$as_me:1470: checking build system type" >&5
1471 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1472 if test "${ac_cv_build+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 else
1475 ac_cv_build_alias=$build_alias
1476 test -z "$ac_cv_build_alias" &&
1477 ac_cv_build_alias=`$ac_config_guess`
1478 test -z "$ac_cv_build_alias" &&
1479 { { echo "$as_me:1479: error: cannot guess build type; you must specify one" >&5
1480 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1481 { (exit 1); exit 1; }; }
1482 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1483 { { echo "$as_me:1483: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1484 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1485 { (exit 1); exit 1; }; }
1486
1487 fi
1488 echo "$as_me:1488: result: $ac_cv_build" >&5
1489 echo "${ECHO_T}$ac_cv_build" >&6
1490 build=$ac_cv_build
1491 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494
1495 echo "$as_me:1495: checking host system type" >&5
1496 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1497 if test "${ac_cv_host+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 ac_cv_host_alias=$host_alias
1501 test -z "$ac_cv_host_alias" &&
1502 ac_cv_host_alias=$ac_cv_build_alias
1503 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1504 { { echo "$as_me:1504: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1505 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1506 { (exit 1); exit 1; }; }
1507
1508 fi
1509 echo "$as_me:1509: result: $ac_cv_host" >&5
1510 echo "${ECHO_T}$ac_cv_host" >&6
1511 host=$ac_cv_host
1512 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1513 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1514 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1515
1516 ac_ext=c
1517 ac_cpp='$CPP $CPPFLAGS'
1518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521 if test -n "$ac_tool_prefix"; then
1522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1524 echo "$as_me:1524: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531 else
1532 ac_save_IFS=$IFS; IFS=$ac_path_separator
1533 ac_dummy="$PATH"
1534 for ac_dir in $ac_dummy; do
1535 IFS=$ac_save_IFS
1536 test -z "$ac_dir" && ac_dir=.
1537 $as_executable_p "$ac_dir/$ac_word" || continue
1538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1539 echo "$as_me:1539: found $ac_dir/$ac_word" >&5
1540 break
1541 done
1542
1543 fi
1544 fi
1545 CC=$ac_cv_prog_CC
1546 if test -n "$CC"; then
1547 echo "$as_me:1547: result: $CC" >&5
1548 echo "${ECHO_T}$CC" >&6
1549 else
1550 echo "$as_me:1550: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1552 fi
1553
1554 fi
1555 if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "gcc", so it can be a program name with args.
1558 set dummy gcc; ac_word=$2
1559 echo "$as_me:1559: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566 else
1567 ac_save_IFS=$IFS; IFS=$ac_path_separator
1568 ac_dummy="$PATH"
1569 for ac_dir in $ac_dummy; do
1570 IFS=$ac_save_IFS
1571 test -z "$ac_dir" && ac_dir=.
1572 $as_executable_p "$ac_dir/$ac_word" || continue
1573 ac_cv_prog_ac_ct_CC="gcc"
1574 echo "$as_me:1574: found $ac_dir/$ac_word" >&5
1575 break
1576 done
1577
1578 fi
1579 fi
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:1582: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:1585: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1592 fi
1593
1594 if test -z "$CC"; then
1595 if test -n "$ac_tool_prefix"; then
1596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597 set dummy ${ac_tool_prefix}cc; ac_word=$2
1598 echo "$as_me:1598: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 ac_save_IFS=$IFS; IFS=$ac_path_separator
1607 ac_dummy="$PATH"
1608 for ac_dir in $ac_dummy; do
1609 IFS=$ac_save_IFS
1610 test -z "$ac_dir" && ac_dir=.
1611 $as_executable_p "$ac_dir/$ac_word" || continue
1612 ac_cv_prog_CC="${ac_tool_prefix}cc"
1613 echo "$as_me:1613: found $ac_dir/$ac_word" >&5
1614 break
1615 done
1616
1617 fi
1618 fi
1619 CC=$ac_cv_prog_CC
1620 if test -n "$CC"; then
1621 echo "$as_me:1621: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1623 else
1624 echo "$as_me:1624: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1626 fi
1627
1628 fi
1629 if test -z "$ac_cv_prog_CC"; then
1630 ac_ct_CC=$CC
1631 # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:1633: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638 if test -n "$ac_ct_CC"; then
1639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640 else
1641 ac_save_IFS=$IFS; IFS=$ac_path_separator
1642 ac_dummy="$PATH"
1643 for ac_dir in $ac_dummy; do
1644 IFS=$ac_save_IFS
1645 test -z "$ac_dir" && ac_dir=.
1646 $as_executable_p "$ac_dir/$ac_word" || continue
1647 ac_cv_prog_ac_ct_CC="cc"
1648 echo "$as_me:1648: found $ac_dir/$ac_word" >&5
1649 break
1650 done
1651
1652 fi
1653 fi
1654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1655 if test -n "$ac_ct_CC"; then
1656 echo "$as_me:1656: result: $ac_ct_CC" >&5
1657 echo "${ECHO_T}$ac_ct_CC" >&6
1658 else
1659 echo "$as_me:1659: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1661 fi
1662
1663 CC=$ac_ct_CC
1664 else
1665 CC="$ac_cv_prog_CC"
1666 fi
1667
1668 fi
1669 if test -z "$CC"; then
1670 # Extract the first word of "cc", so it can be a program name with args.
1671 set dummy cc; ac_word=$2
1672 echo "$as_me:1672: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1679 else
1680 ac_prog_rejected=no
1681 ac_save_IFS=$IFS; IFS=$ac_path_separator
1682 ac_dummy="$PATH"
1683 for ac_dir in $ac_dummy; do
1684 IFS=$ac_save_IFS
1685 test -z "$ac_dir" && ac_dir=.
1686 $as_executable_p "$ac_dir/$ac_word" || continue
1687 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1688 ac_prog_rejected=yes
1689 continue
1690 fi
1691 ac_cv_prog_CC="cc"
1692 echo "$as_me:1692: found $ac_dir/$ac_word" >&5
1693 break
1694 done
1695
1696 if test $ac_prog_rejected = yes; then
1697 # We found a bogon in the path, so make sure we never use it.
1698 set dummy $ac_cv_prog_CC
1699 shift
1700 if test $# != 0; then
1701 # We chose a different compiler from the bogus one.
1702 # However, it has the same basename, so the bogon will be chosen
1703 # first if we set CC to just the basename; use the full file name.
1704 shift
1705 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1706 shift
1707 ac_cv_prog_CC="$@"
1708 fi
1709 fi
1710 fi
1711 fi
1712 CC=$ac_cv_prog_CC
1713 if test -n "$CC"; then
1714 echo "$as_me:1714: result: $CC" >&5
1715 echo "${ECHO_T}$CC" >&6
1716 else
1717 echo "$as_me:1717: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1719 fi
1720
1721 fi
1722 if test -z "$CC"; then
1723 if test -n "$ac_tool_prefix"; then
1724 for ac_prog in cl
1725 do
1726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1728 echo "$as_me:1728: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733 if test -n "$CC"; then
1734 ac_cv_prog_CC="$CC" # Let the user override the test.
1735 else
1736 ac_save_IFS=$IFS; IFS=$ac_path_separator
1737 ac_dummy="$PATH"
1738 for ac_dir in $ac_dummy; do
1739 IFS=$ac_save_IFS
1740 test -z "$ac_dir" && ac_dir=.
1741 $as_executable_p "$ac_dir/$ac_word" || continue
1742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1743 echo "$as_me:1743: found $ac_dir/$ac_word" >&5
1744 break
1745 done
1746
1747 fi
1748 fi
1749 CC=$ac_cv_prog_CC
1750 if test -n "$CC"; then
1751 echo "$as_me:1751: result: $CC" >&5
1752 echo "${ECHO_T}$CC" >&6
1753 else
1754 echo "$as_me:1754: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758 test -n "$CC" && break
1759 done
1760 fi
1761 if test -z "$CC"; then
1762 ac_ct_CC=$CC
1763 for ac_prog in cl
1764 do
1765 # Extract the first word of "$ac_prog", so it can be a program name with args.
1766 set dummy $ac_prog; ac_word=$2
1767 echo "$as_me:1767: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772 if test -n "$ac_ct_CC"; then
1773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1774 else
1775 ac_save_IFS=$IFS; IFS=$ac_path_separator
1776 ac_dummy="$PATH"
1777 for ac_dir in $ac_dummy; do
1778 IFS=$ac_save_IFS
1779 test -z "$ac_dir" && ac_dir=.
1780 $as_executable_p "$ac_dir/$ac_word" || continue
1781 ac_cv_prog_ac_ct_CC="$ac_prog"
1782 echo "$as_me:1782: found $ac_dir/$ac_word" >&5
1783 break
1784 done
1785
1786 fi
1787 fi
1788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1789 if test -n "$ac_ct_CC"; then
1790 echo "$as_me:1790: result: $ac_ct_CC" >&5
1791 echo "${ECHO_T}$ac_ct_CC" >&6
1792 else
1793 echo "$as_me:1793: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1795 fi
1796
1797 test -n "$ac_ct_CC" && break
1798 done
1799
1800 CC=$ac_ct_CC
1801 fi
1802
1803 fi
1804
1805 test -z "$CC" && { { echo "$as_me:1805: error: no acceptable cc found in \$PATH" >&5
1806 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1807 { (exit 1); exit 1; }; }
1808
1809 cat >conftest.$ac_ext <<_ACEOF
1810 #line 1810 "configure"
1811 #include "confdefs.h"
1812
1813 int
1814 main ()
1815 {
1816
1817 ;
1818 return 0;
1819 }
1820 _ACEOF
1821 ac_clean_files_save=$ac_clean_files
1822 ac_clean_files="$ac_clean_files a.out a.exe"
1823 # Try to create an executable without -o first, disregard a.out.
1824 # It will help us diagnose broken compiler, and finding out an intuition
1825 # of exeext.
1826 echo "$as_me:1826: checking for C compiler default output" >&5
1827 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1828 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1829 if { (eval echo "$as_me:1829: \"$ac_link_default\"") >&5
1830 (eval $ac_link_default) 2>&5
1831 ac_status=$?
1832 echo "$as_me:1832: \$? = $ac_status" >&5
1833 (exit $ac_status); }; then
1834 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1835 case $ac_file in
1836 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1837 a.out ) # We found the default executable, but exeext='' is most
1838 # certainly right.
1839 break;;
1840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1841 export ac_cv_exeext
1842 break;;
1843 * ) break;;
1844 esac
1845 done
1846 else
1847 echo "$as_me: failed program was:" >&5
1848 cat conftest.$ac_ext >&5
1849 { { echo "$as_me:1849: error: C compiler cannot create executables" >&5
1850 echo "$as_me: error: C compiler cannot create executables" >&2;}
1851 { (exit 77); exit 77; }; }
1852 fi
1853
1854 ac_exeext=$ac_cv_exeext
1855 echo "$as_me:1855: result: $ac_file" >&5
1856 echo "${ECHO_T}$ac_file" >&6
1857
1858 # Check the compiler produces executables we can run. If not, either
1859 # the compiler is broken, or we cross compile.
1860 echo "$as_me:1860: checking whether the C compiler works" >&5
1861 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1862 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1863 # If not cross compiling, check that we can run a simple program.
1864 if test "$cross_compiling" != yes; then
1865 if { ac_try='./$ac_file'
1866 { (eval echo "$as_me:1866: \"$ac_try\"") >&5
1867 (eval $ac_try) 2>&5
1868 ac_status=$?
1869 echo "$as_me:1869: \$? = $ac_status" >&5
1870 (exit $ac_status); }; }; then
1871 cross_compiling=no
1872 else
1873 if test "$cross_compiling" = maybe; then
1874 cross_compiling=yes
1875 else
1876 { { echo "$as_me:1876: error: cannot run C compiled programs.
1877 If you meant to cross compile, use \`--host'." >&5
1878 echo "$as_me: error: cannot run C compiled programs.
1879 If you meant to cross compile, use \`--host'." >&2;}
1880 { (exit 1); exit 1; }; }
1881 fi
1882 fi
1883 fi
1884 echo "$as_me:1884: result: yes" >&5
1885 echo "${ECHO_T}yes" >&6
1886
1887 rm -f a.out a.exe conftest$ac_cv_exeext
1888 ac_clean_files=$ac_clean_files_save
1889 # Check the compiler produces executables we can run. If not, either
1890 # the compiler is broken, or we cross compile.
1891 echo "$as_me:1891: checking whether we are cross compiling" >&5
1892 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1893 echo "$as_me:1893: result: $cross_compiling" >&5
1894 echo "${ECHO_T}$cross_compiling" >&6
1895
1896 echo "$as_me:1896: checking for executable suffix" >&5
1897 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1898 if { (eval echo "$as_me:1898: \"$ac_link\"") >&5
1899 (eval $ac_link) 2>&5
1900 ac_status=$?
1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
1903 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1904 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1905 # work properly (i.e., refer to `conftest.exe'), while it won't with
1906 # `rm'.
1907 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1908 case $ac_file in
1909 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1910 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1911 export ac_cv_exeext
1912 break;;
1913 * ) break;;
1914 esac
1915 done
1916 else
1917 { { echo "$as_me:1917: error: cannot compute EXEEXT: cannot compile and link" >&5
1918 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1919 { (exit 1); exit 1; }; }
1920 fi
1921
1922 rm -f conftest$ac_cv_exeext
1923 echo "$as_me:1923: result: $ac_cv_exeext" >&5
1924 echo "${ECHO_T}$ac_cv_exeext" >&6
1925
1926 rm -f conftest.$ac_ext
1927 EXEEXT=$ac_cv_exeext
1928 ac_exeext=$EXEEXT
1929 echo "$as_me:1929: checking for object suffix" >&5
1930 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1931 if test "${ac_cv_objext+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line 1935 "configure"
1936 #include "confdefs.h"
1937
1938 int
1939 main ()
1940 {
1941
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 rm -f conftest.o conftest.obj
1947 if { (eval echo "$as_me:1947: \"$ac_compile\"") >&5
1948 (eval $ac_compile) 2>&5
1949 ac_status=$?
1950 echo "$as_me:1950: \$? = $ac_status" >&5
1951 (exit $ac_status); }; then
1952 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1953 case $ac_file in
1954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1956 break;;
1957 esac
1958 done
1959 else
1960 echo "$as_me: failed program was:" >&5
1961 cat conftest.$ac_ext >&5
1962 { { echo "$as_me:1962: error: cannot compute OBJEXT: cannot compile" >&5
1963 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1964 { (exit 1); exit 1; }; }
1965 fi
1966
1967 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1968 fi
1969 echo "$as_me:1969: result: $ac_cv_objext" >&5
1970 echo "${ECHO_T}$ac_cv_objext" >&6
1971 OBJEXT=$ac_cv_objext
1972 ac_objext=$OBJEXT
1973 echo "$as_me:1973: checking whether we are using the GNU C compiler" >&5
1974 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1975 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 cat >conftest.$ac_ext <<_ACEOF
1979 #line 1979 "configure"
1980 #include "confdefs.h"
1981
1982 int
1983 main ()
1984 {
1985 #ifndef __GNUC__
1986 choke me
1987 #endif
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 rm -f conftest.$ac_objext
1994 if { (eval echo "$as_me:1994: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>&5
1996 ac_status=$?
1997 echo "$as_me:1997: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -s conftest.$ac_objext'
2000 { (eval echo "$as_me:2000: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:2003: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 ac_compiler_gnu=yes
2006 else
2007 echo "$as_me: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2009 ac_compiler_gnu=no
2010 fi
2011 rm -f conftest.$ac_objext conftest.$ac_ext
2012 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2013
2014 fi
2015 echo "$as_me:2015: result: $ac_cv_c_compiler_gnu" >&5
2016 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2017 GCC=`test $ac_compiler_gnu = yes && echo yes`
2018 ac_test_CFLAGS=${CFLAGS+set}
2019 ac_save_CFLAGS=$CFLAGS
2020 CFLAGS="-g"
2021 echo "$as_me:2021: checking whether $CC accepts -g" >&5
2022 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2023 if test "${ac_cv_prog_cc_g+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 cat >conftest.$ac_ext <<_ACEOF
2027 #line 2027 "configure"
2028 #include "confdefs.h"
2029
2030 int
2031 main ()
2032 {
2033
2034 ;
2035 return 0;
2036 }
2037 _ACEOF
2038 rm -f conftest.$ac_objext
2039 if { (eval echo "$as_me:2039: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>&5
2041 ac_status=$?
2042 echo "$as_me:2042: \$? = $ac_status" >&5
2043 (exit $ac_status); } &&
2044 { ac_try='test -s conftest.$ac_objext'
2045 { (eval echo "$as_me:2045: \"$ac_try\"") >&5
2046 (eval $ac_try) 2>&5
2047 ac_status=$?
2048 echo "$as_me:2048: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
2050 ac_cv_prog_cc_g=yes
2051 else
2052 echo "$as_me: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 ac_cv_prog_cc_g=no
2055 fi
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 echo "$as_me:2058: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2064 CFLAGS="-g -O2"
2065 else
2066 CFLAGS="-g"
2067 fi
2068 else
2069 if test "$GCC" = yes; then
2070 CFLAGS="-O2"
2071 else
2072 CFLAGS=
2073 fi
2074 fi
2075 # Some people use a C++ compiler to compile C. Since we use `exit',
2076 # in C++ we need to declare it. In case someone uses the same compiler
2077 # for both compiling C and C++ we need to have the C++ compiler decide
2078 # the declaration of exit, since it's the most demanding environment.
2079 cat >conftest.$ac_ext <<_ACEOF
2080 #ifndef __cplusplus
2081 choke me
2082 #endif
2083 _ACEOF
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:2085: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>&5
2087 ac_status=$?
2088 echo "$as_me:2088: \$? = $ac_status" >&5
2089 (exit $ac_status); } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:2091: \"$ac_try\"") >&5
2092 (eval $ac_try) 2>&5
2093 ac_status=$?
2094 echo "$as_me:2094: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2096 for ac_declaration in \
2097 ''\
2098 '#include <stdlib.h>' \
2099 'extern "C" void std::exit (int) throw (); using std::exit;' \
2100 'extern "C" void std::exit (int); using std::exit;' \
2101 'extern "C" void exit (int) throw ();' \
2102 'extern "C" void exit (int);' \
2103 'void exit (int);'
2104 do
2105 cat >conftest.$ac_ext <<_ACEOF
2106 #line 2106 "configure"
2107 #include "confdefs.h"
2108 #include <stdlib.h>
2109 $ac_declaration
2110 int
2111 main ()
2112 {
2113 exit (42);
2114 ;
2115 return 0;
2116 }
2117 _ACEOF
2118 rm -f conftest.$ac_objext
2119 if { (eval echo "$as_me:2119: \"$ac_compile\"") >&5
2120 (eval $ac_compile) 2>&5
2121 ac_status=$?
2122 echo "$as_me:2122: \$? = $ac_status" >&5
2123 (exit $ac_status); } &&
2124 { ac_try='test -s conftest.$ac_objext'
2125 { (eval echo "$as_me:2125: \"$ac_try\"") >&5
2126 (eval $ac_try) 2>&5
2127 ac_status=$?
2128 echo "$as_me:2128: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 :
2131 else
2132 echo "$as_me: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2134 continue
2135 fi
2136 rm -f conftest.$ac_objext conftest.$ac_ext
2137 cat >conftest.$ac_ext <<_ACEOF
2138 #line 2138 "configure"
2139 #include "confdefs.h"
2140 $ac_declaration
2141 int
2142 main ()
2143 {
2144 exit (42);
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:2150: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>&5
2152 ac_status=$?
2153 echo "$as_me:2153: \$? = $ac_status" >&5
2154 (exit $ac_status); } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:2156: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:2159: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 break
2162 else
2163 echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 fi
2166 rm -f conftest.$ac_objext conftest.$ac_ext
2167 done
2168 echo '#ifdef __cplusplus' >>confdefs.h
2169 echo $ac_declaration >>confdefs.h
2170 echo '#endif' >>confdefs.h
2171
2172 else
2173 echo "$as_me: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2175 fi
2176 rm -f conftest.$ac_objext conftest.$ac_ext
2177 ac_ext=c
2178 ac_cpp='$CPP $CPPFLAGS'
2179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2182
2183 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2184 if test "${with_gnu_ld+set}" = set; then
2185 withval="$with_gnu_ld"
2186 test "$withval" = no || with_gnu_ld=yes
2187 else
2188 with_gnu_ld=no
2189 fi;
2190 ac_prog=ld
2191 if test "$GCC" = yes; then
2192 # Check if gcc -print-prog-name=ld gives a path.
2193 echo "$as_me:2193: checking for ld used by GCC" >&5
2194 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2195 case $host in
2196 *-*-mingw*)
2197 # gcc leaves a trailing carriage return which upsets mingw
2198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2199 *)
2200 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2201 esac
2202 case $ac_prog in
2203 # Accept absolute paths.
2204 [\\/]* | [A-Za-z]:[\\/]*)
2205 re_direlt='/[^/][^/]*/\.\./'
2206 # Canonicalize the path of ld
2207 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2208 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2209 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2210 done
2211 test -z "$LD" && LD="$ac_prog"
2212 ;;
2213 "")
2214 # If it fails, then pretend we aren't using GCC.
2215 ac_prog=ld
2216 ;;
2217 *)
2218 # If it is relative, then search for the first ld in PATH.
2219 with_gnu_ld=unknown
2220 ;;
2221 esac
2222 elif test "$with_gnu_ld" = yes; then
2223 echo "$as_me:2223: checking for GNU ld" >&5
2224 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2225 else
2226 echo "$as_me:2226: checking for non-GNU ld" >&5
2227 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2228 fi
2229 if test "${lt_cv_path_LD+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232 if test -z "$LD"; then
2233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2234 for ac_dir in $PATH; do
2235 test -z "$ac_dir" && ac_dir=.
2236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2237 lt_cv_path_LD="$ac_dir/$ac_prog"
2238 # Check to see if the program is GNU ld. I'd rather use --version,
2239 # but apparently some GNU ld's only accept -v.
2240 # Break only if it was the GNU/non-GNU ld that we prefer.
2241 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2242 test "$with_gnu_ld" != no && break
2243 else
2244 test "$with_gnu_ld" != yes && break
2245 fi
2246 fi
2247 done
2248 IFS="$ac_save_ifs"
2249 else
2250 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2251 fi
2252 fi
2253
2254 LD="$lt_cv_path_LD"
2255 if test -n "$LD"; then
2256 echo "$as_me:2256: result: $LD" >&5
2257 echo "${ECHO_T}$LD" >&6
2258 else
2259 echo "$as_me:2259: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2261 fi
2262 test -z "$LD" && { { echo "$as_me:2262: error: no acceptable ld found in \$PATH" >&5
2263 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2264 { (exit 1); exit 1; }; }
2265 echo "$as_me:2265: checking if the linker ($LD) is GNU ld" >&5
2266 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2267 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2271 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2272 lt_cv_prog_gnu_ld=yes
2273 else
2274 lt_cv_prog_gnu_ld=no
2275 fi
2276 fi
2277 echo "$as_me:2277: result: $lt_cv_prog_gnu_ld" >&5
2278 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2279 with_gnu_ld=$lt_cv_prog_gnu_ld
2280
2281 echo "$as_me:2281: checking for $LD option to reload object files" >&5
2282 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2283 if test "${lt_cv_ld_reload_flag+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 lt_cv_ld_reload_flag='-r'
2287 fi
2288 echo "$as_me:2288: result: $lt_cv_ld_reload_flag" >&5
2289 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2290 reload_flag=$lt_cv_ld_reload_flag
2291 test -n "$reload_flag" && reload_flag=" $reload_flag"
2292
2293 echo "$as_me:2293: checking for BSD-compatible nm" >&5
2294 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2295 if test "${lt_cv_path_NM+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 if test -n "$NM"; then
2299 # Let the user override the test.
2300 lt_cv_path_NM="$NM"
2301 else
2302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2303 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2304 test -z "$ac_dir" && ac_dir=.
2305 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2306 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2307 # Check to see if the nm accepts a BSD-compat flag.
2308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2309 # nm: unknown option "B" ignored
2310 # Tru64's nm complains that /dev/null is an invalid object file
2311 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2312 lt_cv_path_NM="$tmp_nm -B"
2313 break
2314 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2315 lt_cv_path_NM="$tmp_nm -p"
2316 break
2317 else
2318 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2319 continue # so that we can try to find one that supports BSD flags
2320 fi
2321 fi
2322 done
2323 IFS="$ac_save_ifs"
2324 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2325 fi
2326 fi
2327
2328 NM="$lt_cv_path_NM"
2329 echo "$as_me:2329: result: $NM" >&5
2330 echo "${ECHO_T}$NM" >&6
2331
2332 echo "$as_me:2332: checking whether ln -s works" >&5
2333 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2334 LN_S=$as_ln_s
2335 if test "$LN_S" = "ln -s"; then
2336 echo "$as_me:2336: result: yes" >&5
2337 echo "${ECHO_T}yes" >&6
2338 else
2339 echo "$as_me:2339: result: no, using $LN_S" >&5
2340 echo "${ECHO_T}no, using $LN_S" >&6
2341 fi
2342
2343 echo "$as_me:2343: checking how to recognise dependant libraries" >&5
2344 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2345 if test "${lt_cv_deplibs_check_method+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 lt_cv_file_magic_cmd='$MAGIC_CMD'
2349 lt_cv_file_magic_test_file=
2350 lt_cv_deplibs_check_method='unknown'
2351 # Need to set the preceding variable on all platforms that support
2352 # interlibrary dependencies.
2353 # 'none' -- dependencies not supported.
2354 # `unknown' -- same as none, but documents that we really don't know.
2355 # 'pass_all' -- all dependencies passed with no checks.
2356 # 'test_compile' -- check by making test program.
2357 # ['file_magic [regex]'] -- check by looking for files in library path
2358 # which responds to the $file_magic_cmd with a given egrep regex.
2359 # If you have `file' or equivalent on your system and you're not sure
2360 # whether `pass_all' will *always* work, you probably want this one.
2361
2362 case $host_os in
2363 aix4* | aix5*)
2364 lt_cv_deplibs_check_method=pass_all
2365 ;;
2366
2367 beos*)
2368 lt_cv_deplibs_check_method=pass_all
2369 ;;
2370
2371 bsdi4*)
2372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2373 lt_cv_file_magic_cmd='/usr/bin/file -L'
2374 lt_cv_file_magic_test_file=/shlib/libc.so
2375 ;;
2376
2377 cygwin* | mingw* | pw32*)
2378 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2379 lt_cv_file_magic_cmd='$OBJDUMP -f'
2380 ;;
2381
2382 darwin* | rhapsody*)
2383 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2384 lt_cv_file_magic_cmd='/usr/bin/file -L'
2385 case "$host_os" in
2386 rhapsody* | darwin1.012)
2387 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2388 ;;
2389 *) # Darwin 1.3 on
2390 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2391 ;;
2392 esac
2393 ;;
2394
2395 freebsd*)
2396 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2397 case $host_cpu in
2398 i*86 )
2399 # Not sure whether the presence of OpenBSD here was a mistake.
2400 # Let's accept both of them until this is cleared up.
2401 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2402 lt_cv_file_magic_cmd=/usr/bin/file
2403 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2404 ;;
2405 esac
2406 else
2407 lt_cv_deplibs_check_method=pass_all
2408 fi
2409 ;;
2410
2411 gnu*)
2412 lt_cv_deplibs_check_method=pass_all
2413 ;;
2414
2415 hpux10.20*|hpux11*)
2416 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2417 lt_cv_file_magic_cmd=/usr/bin/file
2418 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2419 ;;
2420
2421 irix5* | irix6*)
2422 case $host_os in
2423 irix5*)
2424 # this will be overridden with pass_all, but let us keep it just in case
2425 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2426 ;;
2427 *)
2428 case $LD in
2429 *-32|*"-32 ") libmagic=32-bit;;
2430 *-n32|*"-n32 ") libmagic=N32;;
2431 *-64|*"-64 ") libmagic=64-bit;;
2432 *) libmagic=never-match;;
2433 esac
2434 # this will be overridden with pass_all, but let us keep it just in case
2435 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2436 ;;
2437 esac
2438 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2439 lt_cv_deplibs_check_method=pass_all
2440 ;;
2441
2442 # This must be Linux ELF.
2443 linux-gnu*)
2444 case $host_cpu in
2445 alpha* | i*86 | powerpc* | sparc* | ia64* )
2446 lt_cv_deplibs_check_method=pass_all ;;
2447 *)
2448 # glibc up to 2.1.1 does not perform some relocations on ARM
2449 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2450 esac
2451 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2452 ;;
2453
2454 netbsd*)
2455 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2456 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2457 else
2458 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2459 fi
2460 ;;
2461
2462 newos6*)
2463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2464 lt_cv_file_magic_cmd=/usr/bin/file
2465 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2466 ;;
2467
2468 osf3* | osf4* | osf5*)
2469 # this will be overridden with pass_all, but let us keep it just in case
2470 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2471 lt_cv_file_magic_test_file=/shlib/libc.so
2472 lt_cv_deplibs_check_method=pass_all
2473 ;;
2474
2475 sco3.2v5*)
2476 lt_cv_deplibs_check_method=pass_all
2477 ;;
2478
2479 solaris*)
2480 lt_cv_deplibs_check_method=pass_all
2481 lt_cv_file_magic_test_file=/lib/libc.so
2482 ;;
2483
2484 sysv5uw[78]* | sysv4*uw2*)
2485 lt_cv_deplibs_check_method=pass_all
2486 ;;
2487
2488 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2489 case $host_vendor in
2490 motorola)
2491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2492 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2493 ;;
2494 ncr)
2495 lt_cv_deplibs_check_method=pass_all
2496 ;;
2497 sequent)
2498 lt_cv_file_magic_cmd='/bin/file'
2499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2500 ;;
2501 sni)
2502 lt_cv_file_magic_cmd='/bin/file'
2503 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2504 lt_cv_file_magic_test_file=/lib/libc.so
2505 ;;
2506 esac
2507 ;;
2508 esac
2509
2510 fi
2511 echo "$as_me:2511: result: $lt_cv_deplibs_check_method" >&5
2512 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2513 file_magic_cmd=$lt_cv_file_magic_cmd
2514 deplibs_check_method=$lt_cv_deplibs_check_method
2515
2516 # Check for command to grab the raw symbol name followed by C symbol from nm.
2517 echo "$as_me:2517: checking command to parse $NM output" >&5
2518 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2519 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522
2523 # These are sane defaults that work on at least a few old systems.
2524 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2525
2526 # Character class describing NM global symbol codes.
2527 symcode='[BCDEGRST]'
2528
2529 # Regexp to match symbols that can be accessed directly from C.
2530 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2531
2532 # Transform the above into a raw symbol and a C symbol.
2533 symxfrm='\1 \2\3 \3'
2534
2535 # Transform an extracted symbol line into a proper C declaration
2536 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2537
2538 # Define system-specific variables.
2539 case $host_os in
2540 aix*)
2541 symcode='[BCDT]'
2542 ;;
2543 cygwin* | mingw* | pw32*)
2544 symcode='[ABCDGISTW]'
2545 ;;
2546 hpux*) # Its linker distinguishes data from code symbols
2547 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2548 ;;
2549 irix*)
2550 symcode='[BCDEGRST]'
2551 ;;
2552 solaris* | sysv5*)
2553 symcode='[BDT]'
2554 ;;
2555 sysv4)
2556 symcode='[DFNSTU]'
2557 ;;
2558 esac
2559
2560 # Handle CRLF in mingw tool chain
2561 opt_cr=
2562 case $host_os in
2563 mingw*)
2564 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2565 ;;
2566 esac
2567
2568 # If we're using GNU nm, then use its standard symbol codes.
2569 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2570 symcode='[ABCDGISTW]'
2571 fi
2572
2573 # Try without a prefix undercore, then with it.
2574 for ac_symprfx in "" "_"; do
2575
2576 # Write the raw and C identifiers.
2577 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2578
2579 # Check to see that the pipe works correctly.
2580 pipe_works=no
2581 rm -f conftest*
2582 cat > conftest.$ac_ext <<EOF
2583 #ifdef __cplusplus
2584 extern "C" {
2585 #endif
2586 char nm_test_var;
2587 void nm_test_func(){}
2588 #ifdef __cplusplus
2589 }
2590 #endif
2591 int main(){nm_test_var='a';nm_test_func();return(0);}
2592 EOF
2593
2594 if { (eval echo "$as_me:2594: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>&5
2596 ac_status=$?
2597 echo "$as_me:2597: \$? = $ac_status" >&5
2598 (exit $ac_status); }; then
2599 # Now try to grab the symbols.
2600 nlist=conftest.nm
2601 if { (eval echo "$as_me:2601: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2602 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2603 ac_status=$?
2604 echo "$as_me:2604: \$? = $ac_status" >&5
2605 (exit $ac_status); } && test -s "$nlist"; then
2606 # Try sorting and uniquifying the output.
2607 if sort "$nlist" | uniq > "$nlist"T; then
2608 mv -f "$nlist"T "$nlist"
2609 else
2610 rm -f "$nlist"T
2611 fi
2612
2613 # Make sure that we snagged all the symbols we need.
2614 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2615 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2616 cat <<EOF > conftest.$ac_ext
2617 #ifdef __cplusplus
2618 extern "C" {
2619 #endif
2620
2621 EOF
2622 # Now generate the symbol file.
2623 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2624
2625 cat <<EOF >> conftest.$ac_ext
2626 #if defined (__STDC__) && __STDC__
2627 # define lt_ptr_t void *
2628 #else
2629 # define lt_ptr_t char *
2630 # define const
2631 #endif
2632
2633 /* The mapping between symbol names and symbols. */
2634 const struct {
2635 const char *name;
2636 lt_ptr_t address;
2637 }
2638 lt_preloaded_symbols[] =
2639 {
2640 EOF
2641 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
2642 cat <<\EOF >> conftest.$ac_ext
2643 {0, (lt_ptr_t) 0}
2644 };
2645
2646 #ifdef __cplusplus
2647 }
2648 #endif
2649 EOF
2650 # Now try linking the two files.
2651 mv conftest.$ac_objext conftstm.$ac_objext
2652 save_LIBS="$LIBS"
2653 save_CFLAGS="$CFLAGS"
2654 LIBS="conftstm.$ac_objext"
2655 CFLAGS="$CFLAGS$no_builtin_flag"
2656 if { (eval echo "$as_me:2656: \"$ac_link\"") >&5
2657 (eval $ac_link) 2>&5
2658 ac_status=$?
2659 echo "$as_me:2659: \$? = $ac_status" >&5
2660 (exit $ac_status); } && test -s conftest; then
2661 pipe_works=yes
2662 fi
2663 LIBS="$save_LIBS"
2664 CFLAGS="$save_CFLAGS"
2665 else
2666 echo "cannot find nm_test_func in $nlist" >&5
2667 fi
2668 else
2669 echo "cannot find nm_test_var in $nlist" >&5
2670 fi
2671 else
2672 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2673 fi
2674 else
2675 echo "$progname: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2677 fi
2678 rm -f conftest* conftst*
2679
2680 # Do not use the global_symbol_pipe unless it works.
2681 if test "$pipe_works" = yes; then
2682 break
2683 else
2684 lt_cv_sys_global_symbol_pipe=
2685 fi
2686 done
2687
2688 fi
2689
2690 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2691 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2692 global_symbol_to_cdecl=
2693 else
2694 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2695 fi
2696 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2697 echo "$as_me:2697: result: failed" >&5
2698 echo "${ECHO_T}failed" >&6
2699 else
2700 echo "$as_me:2700: result: ok" >&5
2701 echo "${ECHO_T}ok" >&6
2702 fi
2703
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709 echo "$as_me:2709: checking how to run the C preprocessor" >&5
2710 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2711 # On Suns, sometimes $CPP names a directory.
2712 if test -n "$CPP" && test -d "$CPP"; then
2713 CPP=
2714 fi
2715 if test -z "$CPP"; then
2716 if test "${ac_cv_prog_CPP+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 # Double quotes because CPP needs to be expanded
2720 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2721 do
2722 # break 2 since there is a loop in there.
2723 ac_preproc_ok=false
2724 for ac_c_preproc_warn_flag in '' yes
2725 do
2726 # Use a header file that comes with gcc, so configuring glibc
2727 # with a fresh cross-compiler works.
2728 # On the NeXT, cc -E runs the code through the compiler's parser,
2729 # not just through cpp. "Syntax error" is here to catch this case.
2730 cat >conftest.$ac_ext <<_ACEOF
2731 #line 2731 "configure"
2732 #include "confdefs.h"
2733 #include <assert.h>
2734 Syntax error
2735 _ACEOF
2736 if { (eval echo "$as_me:2736: \"$ac_cpp conftest.$ac_ext\"") >&5
2737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2738 ac_status=$?
2739 egrep -v '^ *\+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:2742: \$? = $ac_status" >&5
2743 (exit $ac_status); } >/dev/null; then
2744 if test -s conftest.err; then
2745 ac_cpp_err=$ac_c_preproc_warn_flag
2746 else
2747 ac_cpp_err=
2748 fi
2749 else
2750 ac_cpp_err=yes
2751 fi
2752 if test -z "$ac_cpp_err"; then
2753 :
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2757 # Broken: fails on valid input.
2758 continue
2759 fi
2760 rm -f conftest.err conftest.$ac_ext
2761
2762 # OK, works on sane cases. Now check whether non-existent headers
2763 # can be detected and how.
2764 cat >conftest.$ac_ext <<_ACEOF
2765 #line 2765 "configure"
2766 #include "confdefs.h"
2767 #include <ac_nonexistent.h>
2768 _ACEOF
2769 if { (eval echo "$as_me:2769: \"$ac_cpp conftest.$ac_ext\"") >&5
2770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2771 ac_status=$?
2772 egrep -v '^ *\+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:2775: \$? = $ac_status" >&5
2776 (exit $ac_status); } >/dev/null; then
2777 if test -s conftest.err; then
2778 ac_cpp_err=$ac_c_preproc_warn_flag
2779 else
2780 ac_cpp_err=
2781 fi
2782 else
2783 ac_cpp_err=yes
2784 fi
2785 if test -z "$ac_cpp_err"; then
2786 # Broken: success on invalid input.
2787 continue
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2791 # Passes both tests.
2792 ac_preproc_ok=:
2793 break
2794 fi
2795 rm -f conftest.err conftest.$ac_ext
2796
2797 done
2798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2799 rm -f conftest.err conftest.$ac_ext
2800 if $ac_preproc_ok; then
2801 break 2
2802 fi
2803
2804 done
2805 ac_cv_prog_CPP=$CPP
2806
2807 fi
2808 CPP=$ac_cv_prog_CPP
2809 else
2810 ac_cv_prog_CPP=$CPP
2811 fi
2812 echo "$as_me:2812: result: $CPP" >&5
2813 echo "${ECHO_T}$CPP" >&6
2814 ac_preproc_ok=false
2815 for ac_c_preproc_warn_flag in '' yes
2816 do
2817 # Use a header file that comes with gcc, so configuring glibc
2818 # with a fresh cross-compiler works.
2819 # On the NeXT, cc -E runs the code through the compiler's parser,
2820 # not just through cpp. "Syntax error" is here to catch this case.
2821 cat >conftest.$ac_ext <<_ACEOF
2822 #line 2822 "configure"
2823 #include "confdefs.h"
2824 #include <assert.h>
2825 Syntax error
2826 _ACEOF
2827 if { (eval echo "$as_me:2827: \"$ac_cpp conftest.$ac_ext\"") >&5
2828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2829 ac_status=$?
2830 egrep -v '^ *\+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:2833: \$? = $ac_status" >&5
2834 (exit $ac_status); } >/dev/null; then
2835 if test -s conftest.err; then
2836 ac_cpp_err=$ac_c_preproc_warn_flag
2837 else
2838 ac_cpp_err=
2839 fi
2840 else
2841 ac_cpp_err=yes
2842 fi
2843 if test -z "$ac_cpp_err"; then
2844 :
2845 else
2846 echo "$as_me: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2848 # Broken: fails on valid input.
2849 continue
2850 fi
2851 rm -f conftest.err conftest.$ac_ext
2852
2853 # OK, works on sane cases. Now check whether non-existent headers
2854 # can be detected and how.
2855 cat >conftest.$ac_ext <<_ACEOF
2856 #line 2856 "configure"
2857 #include "confdefs.h"
2858 #include <ac_nonexistent.h>
2859 _ACEOF
2860 if { (eval echo "$as_me:2860: \"$ac_cpp conftest.$ac_ext\"") >&5
2861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2862 ac_status=$?
2863 egrep -v '^ *\+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:2866: \$? = $ac_status" >&5
2867 (exit $ac_status); } >/dev/null; then
2868 if test -s conftest.err; then
2869 ac_cpp_err=$ac_c_preproc_warn_flag
2870 else
2871 ac_cpp_err=
2872 fi
2873 else
2874 ac_cpp_err=yes
2875 fi
2876 if test -z "$ac_cpp_err"; then
2877 # Broken: success on invalid input.
2878 continue
2879 else
2880 echo "$as_me: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2882 # Passes both tests.
2883 ac_preproc_ok=:
2884 break
2885 fi
2886 rm -f conftest.err conftest.$ac_ext
2887
2888 done
2889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2890 rm -f conftest.err conftest.$ac_ext
2891 if $ac_preproc_ok; then
2892 :
2893 else
2894 { { echo "$as_me:2894: error: C preprocessor \"$CPP\" fails sanity check" >&5
2895 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2896 { (exit 1); exit 1; }; }
2897 fi
2898
2899 ac_ext=c
2900 ac_cpp='$CPP $CPPFLAGS'
2901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904
2905 for ac_header in dlfcn.h
2906 do
2907 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2908 echo "$as_me:2908: checking for $ac_header" >&5
2909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2910 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 cat >conftest.$ac_ext <<_ACEOF
2914 #line 2914 "configure"
2915 #include "confdefs.h"
2916 #include <$ac_header>
2917 _ACEOF
2918 if { (eval echo "$as_me:2918: \"$ac_cpp conftest.$ac_ext\"") >&5
2919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2920 ac_status=$?
2921 egrep -v '^ *\+' conftest.er1 >conftest.err
2922 rm -f conftest.er1
2923 cat conftest.err >&5
2924 echo "$as_me:2924: \$? = $ac_status" >&5
2925 (exit $ac_status); } >/dev/null; then
2926 if test -s conftest.err; then
2927 ac_cpp_err=$ac_c_preproc_warn_flag
2928 else
2929 ac_cpp_err=
2930 fi
2931 else
2932 ac_cpp_err=yes
2933 fi
2934 if test -z "$ac_cpp_err"; then
2935 eval "$ac_ac_Header=yes"
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2939 eval "$ac_ac_Header=no"
2940 fi
2941 rm -f conftest.err conftest.$ac_ext
2942 fi
2943 echo "$as_me:2943: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2944 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2945 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2946 cat >>confdefs.h <<EOF
2947 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2948 EOF
2949
2950 fi
2951 done
2952
2953 # Only perform the check for file, if the check method requires it
2954 case $deplibs_check_method in
2955 file_magic*)
2956 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2957 echo "$as_me:2957: checking for ${ac_tool_prefix}file" >&5
2958 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2959 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962 case $MAGIC_CMD in
2963 /*)
2964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2965 ;;
2966 ?:/*)
2967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2968 ;;
2969 *)
2970 ac_save_MAGIC_CMD="$MAGIC_CMD"
2971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2972 ac_dummy="/usr/bin:$PATH"
2973 for ac_dir in $ac_dummy; do
2974 test -z "$ac_dir" && ac_dir=.
2975 if test -f $ac_dir/${ac_tool_prefix}file; then
2976 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2977 if test -n "$file_magic_test_file"; then
2978 case $deplibs_check_method in
2979 "file_magic "*)
2980 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2983 egrep "$file_magic_regex" > /dev/null; then
2984 :
2985 else
2986 cat <<EOF 1>&2
2987
2988 *** Warning: the command libtool uses to detect shared libraries,
2989 *** $file_magic_cmd, produces output that libtool cannot recognize.
2990 *** The result is that libtool may fail to recognize shared libraries
2991 *** as such. This will affect the creation of libtool libraries that
2992 *** depend on shared libraries, but programs linked with such libtool
2993 *** libraries will work regardless of this problem. Nevertheless, you
2994 *** may want to report the problem to your system manager and/or to
2995 *** bug-libtool@gnu.org
2996
2997 EOF
2998 fi ;;
2999 esac
3000 fi
3001 break
3002 fi
3003 done
3004 IFS="$ac_save_ifs"
3005 MAGIC_CMD="$ac_save_MAGIC_CMD"
3006 ;;
3007 esac
3008 fi
3009
3010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3011 if test -n "$MAGIC_CMD"; then
3012 echo "$as_me:3012: result: $MAGIC_CMD" >&5
3013 echo "${ECHO_T}$MAGIC_CMD" >&6
3014 else
3015 echo "$as_me:3015: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3017 fi
3018
3019 if test -z "$lt_cv_path_MAGIC_CMD"; then
3020 if test -n "$ac_tool_prefix"; then
3021 echo "$as_me:3021: checking for file" >&5
3022 echo $ECHO_N "checking for file... $ECHO_C" >&6
3023 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 case $MAGIC_CMD in
3027 /*)
3028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3029 ;;
3030 ?:/*)
3031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3032 ;;
3033 *)
3034 ac_save_MAGIC_CMD="$MAGIC_CMD"
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 ac_dummy="/usr/bin:$PATH"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/file; then
3040 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3041 if test -n "$file_magic_test_file"; then
3042 case $deplibs_check_method in
3043 "file_magic "*)
3044 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3046 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3047 egrep "$file_magic_regex" > /dev/null; then
3048 :
3049 else
3050 cat <<EOF 1>&2
3051
3052 *** Warning: the command libtool uses to detect shared libraries,
3053 *** $file_magic_cmd, produces output that libtool cannot recognize.
3054 *** The result is that libtool may fail to recognize shared libraries
3055 *** as such. This will affect the creation of libtool libraries that
3056 *** depend on shared libraries, but programs linked with such libtool
3057 *** libraries will work regardless of this problem. Nevertheless, you
3058 *** may want to report the problem to your system manager and/or to
3059 *** bug-libtool@gnu.org
3060
3061 EOF
3062 fi ;;
3063 esac
3064 fi
3065 break
3066 fi
3067 done
3068 IFS="$ac_save_ifs"
3069 MAGIC_CMD="$ac_save_MAGIC_CMD"
3070 ;;
3071 esac
3072 fi
3073
3074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3075 if test -n "$MAGIC_CMD"; then
3076 echo "$as_me:3076: result: $MAGIC_CMD" >&5
3077 echo "${ECHO_T}$MAGIC_CMD" >&6
3078 else
3079 echo "$as_me:3079: result: no" >&5
3080 echo "${ECHO_T}no" >&6
3081 fi
3082
3083 else
3084 MAGIC_CMD=:
3085 fi
3086 fi
3087
3088 fi
3089 ;;
3090 esac
3091
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3095 echo "$as_me:3095: checking for $ac_word" >&5
3096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3097 if test "${ac_cv_prog_RANLIB+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100 if test -n "$RANLIB"; then
3101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3102 else
3103 ac_save_IFS=$IFS; IFS=$ac_path_separator
3104 ac_dummy="$PATH"
3105 for ac_dir in $ac_dummy; do
3106 IFS=$ac_save_IFS
3107 test -z "$ac_dir" && ac_dir=.
3108 $as_executable_p "$ac_dir/$ac_word" || continue
3109 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3110 echo "$as_me:3110: found $ac_dir/$ac_word" >&5
3111 break
3112 done
3113
3114 fi
3115 fi
3116 RANLIB=$ac_cv_prog_RANLIB
3117 if test -n "$RANLIB"; then
3118 echo "$as_me:3118: result: $RANLIB" >&5
3119 echo "${ECHO_T}$RANLIB" >&6
3120 else
3121 echo "$as_me:3121: result: no" >&5
3122 echo "${ECHO_T}no" >&6
3123 fi
3124
3125 fi
3126 if test -z "$ac_cv_prog_RANLIB"; then
3127 ac_ct_RANLIB=$RANLIB
3128 # Extract the first word of "ranlib", so it can be a program name with args.
3129 set dummy ranlib; ac_word=$2
3130 echo "$as_me:3130: checking for $ac_word" >&5
3131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 if test -n "$ac_ct_RANLIB"; then
3136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3137 else
3138 ac_save_IFS=$IFS; IFS=$ac_path_separator
3139 ac_dummy="$PATH"
3140 for ac_dir in $ac_dummy; do
3141 IFS=$ac_save_IFS
3142 test -z "$ac_dir" && ac_dir=.
3143 $as_executable_p "$ac_dir/$ac_word" || continue
3144 ac_cv_prog_ac_ct_RANLIB="ranlib"
3145 echo "$as_me:3145: found $ac_dir/$ac_word" >&5
3146 break
3147 done
3148
3149 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3150 fi
3151 fi
3152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3153 if test -n "$ac_ct_RANLIB"; then
3154 echo "$as_me:3154: result: $ac_ct_RANLIB" >&5
3155 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3156 else
3157 echo "$as_me:3157: result: no" >&5
3158 echo "${ECHO_T}no" >&6
3159 fi
3160
3161 RANLIB=$ac_ct_RANLIB
3162 else
3163 RANLIB="$ac_cv_prog_RANLIB"
3164 fi
3165
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}strip; ac_word=$2
3169 echo "$as_me:3169: checking for $ac_word" >&5
3170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171 if test "${ac_cv_prog_STRIP+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174 if test -n "$STRIP"; then
3175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3176 else
3177 ac_save_IFS=$IFS; IFS=$ac_path_separator
3178 ac_dummy="$PATH"
3179 for ac_dir in $ac_dummy; do
3180 IFS=$ac_save_IFS
3181 test -z "$ac_dir" && ac_dir=.
3182 $as_executable_p "$ac_dir/$ac_word" || continue
3183 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3184 echo "$as_me:3184: found $ac_dir/$ac_word" >&5
3185 break
3186 done
3187
3188 fi
3189 fi
3190 STRIP=$ac_cv_prog_STRIP
3191 if test -n "$STRIP"; then
3192 echo "$as_me:3192: result: $STRIP" >&5
3193 echo "${ECHO_T}$STRIP" >&6
3194 else
3195 echo "$as_me:3195: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi
3198
3199 fi
3200 if test -z "$ac_cv_prog_STRIP"; then
3201 ac_ct_STRIP=$STRIP
3202 # Extract the first word of "strip", so it can be a program name with args.
3203 set dummy strip; ac_word=$2
3204 echo "$as_me:3204: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 if test -n "$ac_ct_STRIP"; then
3210 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3211 else
3212 ac_save_IFS=$IFS; IFS=$ac_path_separator
3213 ac_dummy="$PATH"
3214 for ac_dir in $ac_dummy; do
3215 IFS=$ac_save_IFS
3216 test -z "$ac_dir" && ac_dir=.
3217 $as_executable_p "$ac_dir/$ac_word" || continue
3218 ac_cv_prog_ac_ct_STRIP="strip"
3219 echo "$as_me:3219: found $ac_dir/$ac_word" >&5
3220 break
3221 done
3222
3223 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3224 fi
3225 fi
3226 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3227 if test -n "$ac_ct_STRIP"; then
3228 echo "$as_me:3228: result: $ac_ct_STRIP" >&5
3229 echo "${ECHO_T}$ac_ct_STRIP" >&6
3230 else
3231 echo "$as_me:3231: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3233 fi
3234
3235 STRIP=$ac_ct_STRIP
3236 else
3237 STRIP="$ac_cv_prog_STRIP"
3238 fi
3239
3240 enable_dlopen=no
3241 enable_win32_dll=no
3242
3243 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3244 if test "${enable_libtool_lock+set}" = set; then
3245 enableval="$enable_libtool_lock"
3246
3247 fi;
3248 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3249
3250 # Some flags need to be propagated to the compiler or linker for good
3251 # libtool support.
3252 case $host in
3253 *-*-irix6*)
3254 # Find out which ABI we are using.
3255 echo '#line 3255 "configure"' > conftest.$ac_ext
3256 if { (eval echo "$as_me:3256: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>&5
3258 ac_status=$?
3259 echo "$as_me:3259: \$? = $ac_status" >&5
3260 (exit $ac_status); }; then
3261 case `/usr/bin/file conftest.$ac_objext` in
3262 *32-bit*)
3263 LD="${LD-ld} -32"
3264 ;;
3265 *N32*)
3266 LD="${LD-ld} -n32"
3267 ;;
3268 *64-bit*)
3269 LD="${LD-ld} -64"
3270 ;;
3271 esac
3272 fi
3273 rm -rf conftest*
3274 ;;
3275
3276 *-*-sco3.2v5*)
3277 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3278 SAVE_CFLAGS="$CFLAGS"
3279 CFLAGS="$CFLAGS -belf"
3280 echo "$as_me:3280: checking whether the C compiler needs -belf" >&5
3281 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3282 if test "${lt_cv_cc_needs_belf+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285
3286 ac_ext=c
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291
3292 cat >conftest.$ac_ext <<_ACEOF
3293 #line 3293 "configure"
3294 #include "confdefs.h"
3295
3296 int
3297 main ()
3298 {
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext conftest$ac_exeext
3305 if { (eval echo "$as_me:3305: \"$ac_link\"") >&5
3306 (eval $ac_link) 2>&5
3307 ac_status=$?
3308 echo "$as_me:3308: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try='test -s conftest$ac_exeext'
3311 { (eval echo "$as_me:3311: \"$ac_try\"") >&5
3312 (eval $ac_try) 2>&5
3313 ac_status=$?
3314 echo "$as_me:3314: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 lt_cv_cc_needs_belf=yes
3317 else
3318 echo "$as_me: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3320 lt_cv_cc_needs_belf=no
3321 fi
3322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3323 ac_ext=c
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328
3329 fi
3330 echo "$as_me:3330: result: $lt_cv_cc_needs_belf" >&5
3331 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3332 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3333 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3334 CFLAGS="$SAVE_CFLAGS"
3335 fi
3336 ;;
3337
3338 esac
3339
3340 # Sed substitution that helps us do robust quoting. It backslashifies
3341 # metacharacters that are still active within double-quoted strings.
3342 Xsed='sed -e s/^X//'
3343 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3344
3345 # Same as above, but do not quote variable references.
3346 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3347
3348 # Sed substitution to delay expansion of an escaped shell variable in a
3349 # double_quote_subst'ed string.
3350 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3351
3352 # Constants:
3353 rm="rm -f"
3354
3355 # Global variables:
3356 default_ofile=libtool
3357 can_build_shared=yes
3358
3359 # All known linkers require a `.a' archive for static linking (except M$VC,
3360 # which needs '.lib').
3361 libext=a
3362 ltmain="$ac_aux_dir/ltmain.sh"
3363 ofile="$default_ofile"
3364 with_gnu_ld="$lt_cv_prog_gnu_ld"
3365 need_locks="$enable_libtool_lock"
3366
3367 old_CC="$CC"
3368 old_CFLAGS="$CFLAGS"
3369
3370 # Set sane defaults for various variables
3371 test -z "$AR" && AR=ar
3372 test -z "$AR_FLAGS" && AR_FLAGS=cru
3373 test -z "$AS" && AS=as
3374 test -z "$CC" && CC=cc
3375 test -z "$DLLTOOL" && DLLTOOL=dlltool
3376 test -z "$LD" && LD=ld
3377 test -z "$LN_S" && LN_S="ln -s"
3378 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3379 test -z "$NM" && NM=nm
3380 test -z "$OBJDUMP" && OBJDUMP=objdump
3381 test -z "$RANLIB" && RANLIB=:
3382 test -z "$STRIP" && STRIP=:
3383 test -z "$ac_objext" && ac_objext=o
3384
3385 if test x"$host" != x"$build"; then
3386 ac_tool_prefix=${host_alias}-
3387 else
3388 ac_tool_prefix=
3389 fi
3390
3391 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3392 case $host_os in
3393 linux-gnu*) ;;
3394 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3395 esac
3396
3397 case $host_os in
3398 aix3*)
3399 # AIX sometimes has problems with the GCC collect2 program. For some
3400 # reason, if we set the COLLECT_NAMES environment variable, the problems
3401 # vanish in a puff of smoke.
3402 if test "X${COLLECT_NAMES+set}" != Xset; then
3403 COLLECT_NAMES=
3404 export COLLECT_NAMES
3405 fi
3406 ;;
3407 esac
3408
3409 # Determine commands to create old-style static archives.
3410 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3411 old_postinstall_cmds='chmod 644 $oldlib'
3412 old_postuninstall_cmds=
3413
3414 if test -n "$RANLIB"; then
3415 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3416 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3417 fi
3418
3419 # Allow CC to be a program name with arguments.
3420 set dummy $CC
3421 compiler="$2"
3422
3423 echo "$as_me:3423: checking for objdir" >&5
3424 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3425 rm -f .libs 2>/dev/null
3426 mkdir .libs 2>/dev/null
3427 if test -d .libs; then
3428 objdir=.libs
3429 else
3430 # MS-DOS does not allow filenames that begin with a dot.
3431 objdir=_libs
3432 fi
3433 rmdir .libs 2>/dev/null
3434 echo "$as_me:3434: result: $objdir" >&5
3435 echo "${ECHO_T}$objdir" >&6
3436
3437 # Check whether --with-pic or --without-pic was given.
3438 if test "${with_pic+set}" = set; then
3439 withval="$with_pic"
3440 pic_mode="$withval"
3441 else
3442 pic_mode=default
3443 fi;
3444 test -z "$pic_mode" && pic_mode=default
3445
3446 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3447 # in isolation, and that seeing it set (from the cache) indicates that
3448 # the associated values are set (in the cache) correctly too.
3449 echo "$as_me:3449: checking for $compiler option to produce PIC" >&5
3450 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3451 if test "${lt_cv_prog_cc_pic+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 lt_cv_prog_cc_pic=
3455 lt_cv_prog_cc_shlib=
3456 lt_cv_prog_cc_wl=
3457 lt_cv_prog_cc_static=
3458 lt_cv_prog_cc_no_builtin=
3459 lt_cv_prog_cc_can_build_shared=$can_build_shared
3460
3461 if test "$GCC" = yes; then
3462 lt_cv_prog_cc_wl='-Wl,'
3463 lt_cv_prog_cc_static='-static'
3464
3465 case $host_os in
3466 aix*)
3467 # Below there is a dirty hack to force normal static linking with -ldl
3468 # The problem is because libdl dynamically linked with both libc and
3469 # libC (AIX C++ library), which obviously doesn't included in libraries
3470 # list by gcc. This cause undefined symbols with -static flags.
3471 # This hack allows C programs to be linked with "-static -ldl", but
3472 # we not sure about C++ programs.
3473 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3474 ;;
3475 amigaos*)
3476 # FIXME: we need at least 68020 code to build shared libraries, but
3477 # adding the `-m68020' flag to GCC prevents building anything better,
3478 # like `-m68040'.
3479 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3480 ;;
3481 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3482 # PIC is the default for these OSes.
3483 ;;
3484 darwin* | rhapsody*)
3485 # PIC is the default on this platform
3486 # Common symbols not allowed in MH_DYLIB files
3487 lt_cv_prog_cc_pic='-fno-common'
3488 ;;
3489 cygwin* | mingw* | pw32* | os2*)
3490 # This hack is so that the source file can tell whether it is being
3491 # built for inclusion in a dll (and should export symbols for example).
3492 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3493 ;;
3494 sysv4*MP*)
3495 if test -d /usr/nec; then
3496 lt_cv_prog_cc_pic=-Kconform_pic
3497 fi
3498 ;;
3499 *)
3500 lt_cv_prog_cc_pic='-fPIC'
3501 ;;
3502 esac
3503 else
3504 # PORTME Check for PIC flags for the system compiler.
3505 case $host_os in
3506 aix3* | aix4* | aix5*)
3507 # All AIX code is PIC.
3508 if test "$host_cpu" = ia64; then
3509 # AIX 5 now supports IA64 processor
3510 lt_cv_prog_cc_static='-Bstatic'
3511 lt_cv_prog_cc_wl='-Wl,'
3512 else
3513 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3514 fi
3515 ;;
3516
3517 hpux9* | hpux10* | hpux11*)
3518 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3519 lt_cv_prog_cc_wl='-Wl,'
3520 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3521 lt_cv_prog_cc_pic='+Z'
3522 ;;
3523
3524 irix5* | irix6*)
3525 lt_cv_prog_cc_wl='-Wl,'
3526 lt_cv_prog_cc_static='-non_shared'
3527 # PIC (with -KPIC) is the default.
3528 ;;
3529
3530 cygwin* | mingw* | pw32* | os2*)
3531 # This hack is so that the source file can tell whether it is being
3532 # built for inclusion in a dll (and should export symbols for example).
3533 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3534 ;;
3535
3536 newsos6)
3537 lt_cv_prog_cc_pic='-KPIC'
3538 lt_cv_prog_cc_static='-Bstatic'
3539 ;;
3540
3541 osf3* | osf4* | osf5*)
3542 # All OSF/1 code is PIC.
3543 lt_cv_prog_cc_wl='-Wl,'
3544 lt_cv_prog_cc_static='-non_shared'
3545 ;;
3546
3547 sco3.2v5*)
3548 lt_cv_prog_cc_pic='-Kpic'
3549 lt_cv_prog_cc_static='-dn'
3550 lt_cv_prog_cc_shlib='-belf'
3551 ;;
3552
3553 solaris*)
3554 lt_cv_prog_cc_pic='-KPIC'
3555 lt_cv_prog_cc_static='-Bstatic'
3556 lt_cv_prog_cc_wl='-Wl,'
3557 ;;
3558
3559 sunos4*)
3560 lt_cv_prog_cc_pic='-PIC'
3561 lt_cv_prog_cc_static='-Bstatic'
3562 lt_cv_prog_cc_wl='-Qoption ld '
3563 ;;
3564
3565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3566 lt_cv_prog_cc_pic='-KPIC'
3567 lt_cv_prog_cc_static='-Bstatic'
3568 if test "x$host_vendor" = xsni; then
3569 lt_cv_prog_cc_wl='-LD'
3570 else
3571 lt_cv_prog_cc_wl='-Wl,'
3572 fi
3573 ;;
3574
3575 uts4*)
3576 lt_cv_prog_cc_pic='-pic'
3577 lt_cv_prog_cc_static='-Bstatic'
3578 ;;
3579
3580 sysv4*MP*)
3581 if test -d /usr/nec ;then
3582 lt_cv_prog_cc_pic='-Kconform_pic'
3583 lt_cv_prog_cc_static='-Bstatic'
3584 fi
3585 ;;
3586
3587 *)
3588 lt_cv_prog_cc_can_build_shared=no
3589 ;;
3590 esac
3591 fi
3592
3593 fi
3594
3595 if test -z "$lt_cv_prog_cc_pic"; then
3596 echo "$as_me:3596: result: none" >&5
3597 echo "${ECHO_T}none" >&6
3598 else
3599 echo "$as_me:3599: result: $lt_cv_prog_cc_pic" >&5
3600 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3601
3602 # Check to make sure the pic_flag actually works.
3603 echo "$as_me:3603: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3604 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3605 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 save_CFLAGS="$CFLAGS"
3609 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3610 cat >conftest.$ac_ext <<_ACEOF
3611 #line 3611 "configure"
3612 #include "confdefs.h"
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (eval echo "$as_me:3623: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>&5
3625 ac_status=$?
3626 echo "$as_me:3626: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:3629: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:3632: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 case $host_os in
3635 hpux9* | hpux10* | hpux11*)
3636 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3637 # they create non-PIC objects. So, if there were any warnings, we
3638 # assume that PIC is not supported.
3639 if test -s conftest.err; then
3640 lt_cv_prog_cc_pic_works=no
3641 else
3642 lt_cv_prog_cc_pic_works=yes
3643 fi
3644 ;;
3645 *)
3646 lt_cv_prog_cc_pic_works=yes
3647 ;;
3648 esac
3649
3650 else
3651 echo "$as_me: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3653 lt_cv_prog_cc_pic_works=no
3654
3655 fi
3656 rm -f conftest.$ac_objext conftest.$ac_ext
3657 CFLAGS="$save_CFLAGS"
3658
3659 fi
3660
3661 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3662 lt_cv_prog_cc_pic=
3663 lt_cv_prog_cc_can_build_shared=no
3664 else
3665 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3666 fi
3667
3668 echo "$as_me:3668: result: $lt_cv_prog_cc_pic_works" >&5
3669 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3670 fi
3671
3672 # Check for any special shared library compilation flags.
3673 if test -n "$lt_cv_prog_cc_shlib"; then
3674 { echo "$as_me:3674: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3675 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3676 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
3677 else
3678 { echo "$as_me:3678: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3679 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3680 lt_cv_prog_cc_can_build_shared=no
3681 fi
3682 fi
3683
3684 echo "$as_me:3684: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3685 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3686 if test "${lt_cv_prog_cc_static_works+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689 lt_cv_prog_cc_static_works=no
3690 save_LDFLAGS="$LDFLAGS"
3691 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3692 cat >conftest.$ac_ext <<_ACEOF
3693 #line 3693 "configure"
3694 #include "confdefs.h"
3695
3696 int
3697 main ()
3698 {
3699
3700 ;
3701 return 0;
3702 }
3703 _ACEOF
3704 rm -f conftest.$ac_objext conftest$ac_exeext
3705 if { (eval echo "$as_me:3705: \"$ac_link\"") >&5
3706 (eval $ac_link) 2>&5
3707 ac_status=$?
3708 echo "$as_me:3708: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -s conftest$ac_exeext'
3711 { (eval echo "$as_me:3711: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:3714: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 lt_cv_prog_cc_static_works=yes
3717 else
3718 echo "$as_me: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3720 fi
3721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3722 LDFLAGS="$save_LDFLAGS"
3723
3724 fi
3725
3726 # Belt *and* braces to stop my trousers falling down:
3727 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3728 echo "$as_me:3728: result: $lt_cv_prog_cc_static_works" >&5
3729 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
3730
3731 pic_flag="$lt_cv_prog_cc_pic"
3732 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3733 wl="$lt_cv_prog_cc_wl"
3734 link_static_flag="$lt_cv_prog_cc_static"
3735 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3736 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3737
3738 # Check to see if options -o and -c are simultaneously supported by compiler
3739 echo "$as_me:3739: checking if $compiler supports -c -o file.$ac_objext" >&5
3740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
3741 if test "${lt_cv_compiler_c_o+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744
3745 $rm -r conftest 2>/dev/null
3746 mkdir conftest
3747 cd conftest
3748 echo "int some_variable = 0;" > conftest.$ac_ext
3749 mkdir out
3750 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3751 # that will create temporary files in the current directory regardless of
3752 # the output directory. Thus, making CWD read-only will cause this test
3753 # to fail, enabling locking or at least warning the user not to do parallel
3754 # builds.
3755 chmod -w .
3756 save_CFLAGS="$CFLAGS"
3757 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3758 compiler_c_o=no
3759 if { (eval echo configure:3759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3760 # The compiler can only warn and ignore the option if not recognized
3761 # So say no if there are warnings
3762 if test -s out/conftest.err; then
3763 lt_cv_compiler_c_o=no
3764 else
3765 lt_cv_compiler_c_o=yes
3766 fi
3767 else
3768 # Append any errors to the config.log.
3769 cat out/conftest.err 1>&5
3770 lt_cv_compiler_c_o=no
3771 fi
3772 CFLAGS="$save_CFLAGS"
3773 chmod u+w .
3774 $rm conftest* out/*
3775 rmdir out
3776 cd ..
3777 rmdir conftest
3778 $rm -r conftest 2>/dev/null
3779
3780 fi
3781
3782 compiler_c_o=$lt_cv_compiler_c_o
3783 echo "$as_me:3783: result: $compiler_c_o" >&5
3784 echo "${ECHO_T}$compiler_c_o" >&6
3785
3786 if test x"$compiler_c_o" = x"yes"; then
3787 # Check to see if we can write to a .lo
3788 echo "$as_me:3788: checking if $compiler supports -c -o file.lo" >&5
3789 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
3790 if test "${lt_cv_compiler_o_lo+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793
3794 lt_cv_compiler_o_lo=no
3795 save_CFLAGS="$CFLAGS"
3796 CFLAGS="$CFLAGS -c -o conftest.lo"
3797 cat >conftest.$ac_ext <<_ACEOF
3798 #line 3798 "configure"
3799 #include "confdefs.h"
3800
3801 int
3802 main ()
3803 {
3804 int some_variable = 0;
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 rm -f conftest.$ac_objext
3810 if { (eval echo "$as_me:3810: \"$ac_compile\"") >&5
3811 (eval $ac_compile) 2>&5
3812 ac_status=$?
3813 echo "$as_me:3813: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -s conftest.$ac_objext'
3816 { (eval echo "$as_me:3816: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:3819: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 # The compiler can only warn and ignore the option if not recognized
3822 # So say no if there are warnings
3823 if test -s conftest.err; then
3824 lt_cv_compiler_o_lo=no
3825 else
3826 lt_cv_compiler_o_lo=yes
3827 fi
3828
3829 else
3830 echo "$as_me: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3832 fi
3833 rm -f conftest.$ac_objext conftest.$ac_ext
3834 CFLAGS="$save_CFLAGS"
3835
3836 fi
3837
3838 compiler_o_lo=$lt_cv_compiler_o_lo
3839 echo "$as_me:3839: result: $compiler_c_lo" >&5
3840 echo "${ECHO_T}$compiler_c_lo" >&6
3841 else
3842 compiler_o_lo=no
3843 fi
3844
3845 # Check to see if we can do hard links to lock some files if needed
3846 hard_links="nottested"
3847 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3848 # do not overwrite the value of need_locks provided by the user
3849 echo "$as_me:3849: checking if we can lock with hard links" >&5
3850 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
3851 hard_links=yes
3852 $rm conftest*
3853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3854 touch conftest.a
3855 ln conftest.a conftest.b 2>&5 || hard_links=no
3856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3857 echo "$as_me:3857: result: $hard_links" >&5
3858 echo "${ECHO_T}$hard_links" >&6
3859 if test "$hard_links" = no; then
3860 { echo "$as_me:3860: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
3861 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3862 need_locks=warn
3863 fi
3864 else
3865 need_locks=no
3866 fi
3867
3868 if test "$GCC" = yes; then
3869 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3870 echo "$as_me:3870: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3871 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
3872 echo "int some_variable = 0;" > conftest.$ac_ext
3873 save_CFLAGS="$CFLAGS"
3874 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3875 compiler_rtti_exceptions=no
3876 cat >conftest.$ac_ext <<_ACEOF
3877 #line 3877 "configure"
3878 #include "confdefs.h"
3879
3880 int
3881 main ()
3882 {
3883 int some_variable = 0;
3884 ;
3885 return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (eval echo "$as_me:3889: \"$ac_compile\"") >&5
3890 (eval $ac_compile) 2>&5
3891 ac_status=$?
3892 echo "$as_me:3892: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:3895: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:3898: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 # The compiler can only warn and ignore the option if not recognized
3901 # So say no if there are warnings
3902 if test -s conftest.err; then
3903 compiler_rtti_exceptions=no
3904 else
3905 compiler_rtti_exceptions=yes
3906 fi
3907
3908 else
3909 echo "$as_me: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3911 fi
3912 rm -f conftest.$ac_objext conftest.$ac_ext
3913 CFLAGS="$save_CFLAGS"
3914 echo "$as_me:3914: result: $compiler_rtti_exceptions" >&5
3915 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3916
3917 if test "$compiler_rtti_exceptions" = "yes"; then
3918 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3919 else
3920 no_builtin_flag=' -fno-builtin'
3921 fi
3922 fi
3923
3924 # See if the linker supports building shared libraries.
3925 echo "$as_me:3925: checking whether the linker ($LD) supports shared libraries" >&5
3926 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
3927
3928 allow_undefined_flag=
3929 no_undefined_flag=
3930 need_lib_prefix=unknown
3931 need_version=unknown
3932 # when you set need_version to no, make sure it does not cause -set_version
3933 # flags to be left without arguments
3934 archive_cmds=
3935 archive_expsym_cmds=
3936 old_archive_from_new_cmds=
3937 old_archive_from_expsyms_cmds=
3938 export_dynamic_flag_spec=
3939 whole_archive_flag_spec=
3940 thread_safe_flag_spec=
3941 hardcode_into_libs=no
3942 hardcode_libdir_flag_spec=
3943 hardcode_libdir_separator=
3944 hardcode_direct=no
3945 hardcode_minus_L=no
3946 hardcode_shlibpath_var=unsupported
3947 runpath_var=
3948 link_all_deplibs=unknown
3949 always_export_symbols=no
3950 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3951 # include_expsyms should be a list of space-separated symbols to be *always*
3952 # included in the symbol list
3953 include_expsyms=
3954 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3955 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3956 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3957 # as well as any symbol that contains `d'.
3958 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3959 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3960 # platforms (ab)use it in PIC code, but their linkers get confused if
3961 # the symbol is explicitly referenced. Since portable code cannot
3962 # rely on this symbol name, it's probably fine to never include it in
3963 # preloaded symbol tables.
3964 extract_expsyms_cmds=
3965
3966 case $host_os in
3967 cygwin* | mingw* | pw32* )
3968 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3969 # When not using gcc, we currently assume that we are using
3970 # Microsoft Visual C++.
3971 if test "$GCC" != yes; then
3972 with_gnu_ld=no
3973 fi
3974 ;;
3975
3976 esac
3977
3978 ld_shlibs=yes
3979 if test "$with_gnu_ld" = yes; then
3980 # If archive_cmds runs LD, not CC, wlarc should be empty
3981 wlarc='${wl}'
3982
3983 # See if GNU ld supports shared libraries.
3984 case $host_os in
3985 aix3* | aix4* | aix5*)
3986 # On AIX, the GNU linker is very broken
3987 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3988 ld_shlibs=no
3989 cat <<EOF 1>&2
3990
3991 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3992 *** to be unable to reliably create shared libraries on AIX.
3993 *** Therefore, libtool is disabling shared libraries support. If you
3994 *** really care for shared libraries, you may want to modify your PATH
3995 *** so that a non-GNU linker is found, and then restart.
3996
3997 EOF
3998 ;;
3999
4000 amigaos*)
4001 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4002 hardcode_libdir_flag_spec='-L$libdir'
4003 hardcode_minus_L=yes
4004
4005 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4006 # that the semantics of dynamic libraries on AmigaOS, at least up
4007 # to version 4, is to share data among multiple programs linked
4008 # with the same dynamic library. Since this doesn't match the
4009 # behavior of shared libraries on other platforms, we can use
4010 # them.
4011 ld_shlibs=no
4012 ;;
4013
4014 beos*)
4015 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4016 allow_undefined_flag=unsupported
4017 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4018 # support --undefined. This deserves some investigation. FIXME
4019 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4020 else
4021 ld_shlibs=no
4022 fi
4023 ;;
4024
4025 cygwin* | mingw* | pw32*)
4026 # hardcode_libdir_flag_spec is actually meaningless, as there is
4027 # no search path for DLLs.
4028 hardcode_libdir_flag_spec='-L$libdir'
4029 allow_undefined_flag=unsupported
4030 always_export_symbols=yes
4031
4032 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4033 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4034 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4035 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4036 else $CC -o impgen impgen.c ; fi)~
4037 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4038
4039 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4040
4041 # cygwin and mingw dlls have different entry points and sets of symbols
4042 # to exclude.
4043 # FIXME: what about values for MSVC?
4044 dll_entry=__cygwin_dll_entry@12
4045 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4046 case $host_os in
4047 mingw*)
4048 # mingw values
4049 dll_entry=_DllMainCRTStartup@12
4050 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4051 ;;
4052 esac
4053
4054 # mingw and cygwin differ, and it's simplest to just exclude the union
4055 # of the two symbol sets.
4056 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4057
4058 # recent cygwin and mingw systems supply a stub DllMain which the user
4059 # can override, but on older systems we have to supply one (in ltdll.c)
4060 if test "x$lt_cv_need_dllmain" = "xyes"; then
4061 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4062 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4063 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4064 else
4065 ltdll_obj=
4066 ltdll_cmds=
4067 fi
4068
4069 # Extract the symbol export list from an `--export-all' def file,
4070 # then regenerate the def file from the symbol export list, so that
4071 # the compiled dll only exports the symbol export list.
4072 # Be careful not to strip the DATA tag left be newer dlltools.
4073 export_symbols_cmds="$ltdll_cmds"'
4074 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4075 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4076
4077 # If the export-symbols file already is a .def file (1st line
4078 # is EXPORTS), use it as is.
4079 # If DATA tags from a recent dlltool are present, honour them!
4080 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4081 cp $export_symbols $output_objdir/$soname-def;
4082 else
4083 echo EXPORTS > $output_objdir/$soname-def;
4084 _lt_hint=1;
4085 cat $export_symbols | while read symbol; do
4086 set dummy \$symbol;
4087 case \$# in
4088 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4089 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4090 esac;
4091 _lt_hint=`expr 1 + \$_lt_hint`;
4092 done;
4093 fi~
4094 '"$ltdll_cmds"'
4095 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4096 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4097 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4098 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4099 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4100 ;;
4101
4102 netbsd*)
4103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4104 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4105 wlarc=
4106 else
4107 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4108 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4109 fi
4110 ;;
4111
4112 solaris* | sysv5*)
4113 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4114 ld_shlibs=no
4115 cat <<EOF 1>&2
4116
4117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4118 *** create shared libraries on Solaris systems. Therefore, libtool
4119 *** is disabling shared libraries support. We urge you to upgrade GNU
4120 *** binutils to release 2.9.1 or newer. Another option is to modify
4121 *** your PATH or compiler configuration so that the native linker is
4122 *** used, and then restart.
4123
4124 EOF
4125 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4128 else
4129 ld_shlibs=no
4130 fi
4131 ;;
4132
4133 sunos4*)
4134 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4135 wlarc=
4136 hardcode_direct=yes
4137 hardcode_shlibpath_var=no
4138 ;;
4139
4140 *)
4141 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4144 else
4145 ld_shlibs=no
4146 fi
4147 ;;
4148 esac
4149
4150 if test "$ld_shlibs" = yes; then
4151 runpath_var=LD_RUN_PATH
4152 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4153 export_dynamic_flag_spec='${wl}--export-dynamic'
4154 case $host_os in
4155 cygwin* | mingw* | pw32*)
4156 # dlltool doesn't understand --whole-archive et. al.
4157 whole_archive_flag_spec=
4158 ;;
4159 *)
4160 # ancient GNU ld didn't support --whole-archive et. al.
4161 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4162 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4163 else
4164 whole_archive_flag_spec=
4165 fi
4166 ;;
4167 esac
4168 fi
4169 else
4170 # PORTME fill in a description of your system's linker (not GNU ld)
4171 case $host_os in
4172 aix3*)
4173 allow_undefined_flag=unsupported
4174 always_export_symbols=yes
4175 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4176 # Note: this linker hardcodes the directories in LIBPATH if there
4177 # are no directories specified by -L.
4178 hardcode_minus_L=yes
4179 if test "$GCC" = yes && test -z "$link_static_flag"; then
4180 # Neither direct hardcoding nor static linking is supported with a
4181 # broken collect2.
4182 hardcode_direct=unsupported
4183 fi
4184 ;;
4185
4186 aix4* | aix5*)
4187 # When large executables or shared objects are built, AIX ld can
4188 # have problems creating the table of contents. If linking a library
4189 # or program results in "error TOC overflow" add -mminimal-toc to
4190 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4191 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4192
4193 archive_cmds=''
4194 hardcode_libdir_separator=':'
4195 if test "$GCC" = yes; then
4196 collect2name=`${CC} -print-prog-name=collect2`
4197 if test -f "$collect2name" && \
4198 strings "$collect2name" | grep resolve_lib_name >/dev/null
4199 then
4200 # We have reworked collect2
4201 hardcode_direct=yes
4202 else
4203 # We have old collect2
4204 hardcode_direct=unsupported
4205 # It fails to find uninstalled libraries when the uninstalled
4206 # path is not listed in the libpath. Setting hardcode_minus_L
4207 # to unsupported forces relinking
4208 hardcode_minus_L=yes
4209 hardcode_libdir_flag_spec='-L$libdir'
4210 hardcode_libdir_separator=
4211 fi
4212 shared_flag='-shared'
4213 else
4214 if test "$host_cpu" = ia64; then
4215 shared_flag='-G'
4216 else
4217 shared_flag='${wl}-bM:SRE'
4218 fi
4219 hardcode_direct=yes
4220 fi
4221
4222 if test "$host_cpu" = ia64; then
4223 # On IA64, the linker does run time linking by default, so we don't
4224 # have to do anything special.
4225 aix_use_runtimelinking=no
4226 exp_sym_flag='-Bexport'
4227 no_entry_flag=""
4228 else
4229 # Test if we are trying to use run time linking, or normal AIX style linking.
4230 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
4231 aix_use_runtimelinking=no
4232 for ld_flag in $LDFLAGS; do
4233 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
4234 aix_use_runtimelinking=yes
4235 break
4236 fi
4237 done
4238 exp_sym_flag='-bexport'
4239 no_entry_flag='-bnoentry'
4240 fi
4241 # It seems that -bexpall can do strange things, so it is better to
4242 # generate a list of symbols to export.
4243 always_export_symbols=yes
4244 if test "$aix_use_runtimelinking" = yes; then
4245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4246 allow_undefined_flag=' -Wl,-G'
4247 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4248 else
4249 if test "$host_cpu" = ia64; then
4250 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4251 allow_undefined_flag="-znodefs"
4252 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4253 else
4254 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4255 # Warning - without using the other run time loading flags, -berok will
4256 # link without error, but may produce a broken library.
4257 allow_undefined_flag='${wl}-berok"
4258 # This is a bit strange, but is similar to how AIX traditionally builds
4259 # it's shared libraries.
4260 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4261 fi
4262 fi
4263 ;;
4264
4265 amigaos*)
4266 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4267 hardcode_libdir_flag_spec='-L$libdir'
4268 hardcode_minus_L=yes
4269 # see comment about different semantics on the GNU ld section
4270 ld_shlibs=no
4271 ;;
4272
4273 cygwin* | mingw* | pw32*)
4274 # When not using gcc, we currently assume that we are using
4275 # Microsoft Visual C++.
4276 # hardcode_libdir_flag_spec is actually meaningless, as there is
4277 # no search path for DLLs.
4278 hardcode_libdir_flag_spec=' '
4279 allow_undefined_flag=unsupported
4280 # Tell ltmain to make .lib files, not .a files.
4281 libext=lib
4282 # FIXME: Setting linknames here is a bad hack.
4283 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4284 # The linker will automatically build a .lib file if we build a DLL.
4285 old_archive_from_new_cmds='true'
4286 # FIXME: Should let the user specify the lib program.
4287 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4288 fix_srcfile_path='`cygpath -w "$srcfile"`'
4289 ;;
4290
4291 darwin* | rhapsody*)
4292 allow_undefined_flag='-undefined suppress'
4293 # FIXME: Relying on posixy $() will cause problems for
4294 # cross-compilation, but unfortunately the echo tests do not
4295 # yet detect zsh echo's removal of \ escapes.
4296 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
4297 # We need to add '_' to the symbols in $export_symbols first
4298 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4299 hardcode_direct=yes
4300 hardcode_shlibpath_var=no
4301 whole_archive_flag_spec='-all_load $convenience'
4302 ;;
4303
4304 freebsd1*)
4305 ld_shlibs=no
4306 ;;
4307
4308 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4309 # support. Future versions do this automatically, but an explicit c++rt0.o
4310 # does not break anything, and helps significantly (at the cost of a little
4311 # extra space).
4312 freebsd2.2*)
4313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4314 hardcode_libdir_flag_spec='-R$libdir'
4315 hardcode_direct=yes
4316 hardcode_shlibpath_var=no
4317 ;;
4318
4319 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4320 freebsd2*)
4321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4322 hardcode_direct=yes
4323 hardcode_minus_L=yes
4324 hardcode_shlibpath_var=no
4325 ;;
4326
4327 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4328 freebsd*)
4329 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4330 hardcode_libdir_flag_spec='-R$libdir'
4331 hardcode_direct=yes
4332 hardcode_shlibpath_var=no
4333 ;;
4334
4335 hpux9* | hpux10* | hpux11*)
4336 case $host_os in
4337 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4338 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4339 esac
4340 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4341 hardcode_libdir_separator=:
4342 hardcode_direct=yes
4343 hardcode_minus_L=yes # Not in the search PATH, but as the default
4344 # location of the library.
4345 export_dynamic_flag_spec='${wl}-E'
4346 ;;
4347
4348 irix5* | irix6*)
4349 if test "$GCC" = yes; then
4350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4351 else
4352 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4353 fi
4354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4355 hardcode_libdir_separator=:
4356 link_all_deplibs=yes
4357 ;;
4358
4359 netbsd*)
4360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4362 else
4363 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4364 fi
4365 hardcode_libdir_flag_spec='-R$libdir'
4366 hardcode_direct=yes
4367 hardcode_shlibpath_var=no
4368 ;;
4369
4370 newsos6)
4371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
4372 hardcode_direct=yes
4373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4374 hardcode_libdir_separator=:
4375 hardcode_shlibpath_var=no
4376 ;;
4377
4378 openbsd*)
4379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4380 hardcode_libdir_flag_spec='-R$libdir'
4381 hardcode_direct=yes
4382 hardcode_shlibpath_var=no
4383 ;;
4384
4385 os2*)
4386 hardcode_libdir_flag_spec='-L$libdir'
4387 hardcode_minus_L=yes
4388 allow_undefined_flag=unsupported
4389 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4390 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4391 ;;
4392
4393 osf3*)
4394 if test "$GCC" = yes; then
4395 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4396 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4397 else
4398 allow_undefined_flag=' -expect_unresolved \*'
4399 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4400 fi
4401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4402 hardcode_libdir_separator=:
4403 ;;
4404
4405 osf4* | osf5*) # as osf3* with the addition of -msym flag
4406 if test "$GCC" = yes; then
4407 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4408 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4410 else
4411 allow_undefined_flag=' -expect_unresolved \*'
4412 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4413 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4414 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4415
4416 #Both c and cxx compiler support -rpath directly
4417 hardcode_libdir_flag_spec='-rpath $libdir'
4418 fi
4419 hardcode_libdir_separator=:
4420 ;;
4421
4422 sco3.2v5*)
4423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4424 hardcode_shlibpath_var=no
4425 runpath_var=LD_RUN_PATH
4426 hardcode_runpath_var=yes
4427 ;;
4428
4429 solaris*)
4430 no_undefined_flag=' -z defs'
4431 # $CC -shared without GNU ld will not create a library from C++
4432 # object files and a static libstdc++, better avoid it by now
4433 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4434 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4436 hardcode_libdir_flag_spec='-R$libdir'
4437 hardcode_shlibpath_var=no
4438 case $host_os in
4439 solaris2.[0-5] | solaris2.[0-5].*) ;;
4440 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4441 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4442 esac
4443 link_all_deplibs=yes
4444 ;;
4445
4446 sunos4*)
4447 if test "x$host_vendor" = xsequent; then
4448 # Use $CC to link under sequent, because it throws in some extra .o
4449 # files that make .init and .fini sections work.
4450 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4451 else
4452 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4453 fi
4454 hardcode_libdir_flag_spec='-L$libdir'
4455 hardcode_direct=yes
4456 hardcode_minus_L=yes
4457 hardcode_shlibpath_var=no
4458 ;;
4459
4460 sysv4)
4461 if test "x$host_vendor" = xsno; then
4462 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
4463 hardcode_direct=yes # is this really true???
4464 else
4465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4466 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4467 fi
4468 runpath_var='LD_RUN_PATH'
4469 hardcode_shlibpath_var=no
4470 ;;
4471
4472 sysv4.3*)
4473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4474 hardcode_shlibpath_var=no
4475 export_dynamic_flag_spec='-Bexport'
4476 ;;
4477
4478 sysv5*)
4479 no_undefined_flag=' -z text'
4480 # $CC -shared without GNU ld will not create a library from C++
4481 # object files and a static libstdc++, better avoid it by now
4482 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4483 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4484 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4485 hardcode_libdir_flag_spec=
4486 hardcode_shlibpath_var=no
4487 runpath_var='LD_RUN_PATH'
4488 ;;
4489
4490 uts4*)
4491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4492 hardcode_libdir_flag_spec='-L$libdir'
4493 hardcode_shlibpath_var=no
4494 ;;
4495
4496 dgux*)
4497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4498 hardcode_libdir_flag_spec='-L$libdir'
4499 hardcode_shlibpath_var=no
4500 ;;
4501
4502 sysv4*MP*)
4503 if test -d /usr/nec; then
4504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4505 hardcode_shlibpath_var=no
4506 runpath_var=LD_RUN_PATH
4507 hardcode_runpath_var=yes
4508 ld_shlibs=yes
4509 fi
4510 ;;
4511
4512 sysv4.2uw2*)
4513 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4514 hardcode_direct=yes
4515 hardcode_minus_L=no
4516 hardcode_shlibpath_var=no
4517 hardcode_runpath_var=yes
4518 runpath_var=LD_RUN_PATH
4519 ;;
4520
4521 sysv5uw7* | unixware7*)
4522 no_undefined_flag='${wl}-z ${wl}text'
4523 if test "$GCC" = yes; then
4524 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4525 else
4526 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4527 fi
4528 runpath_var='LD_RUN_PATH'
4529 hardcode_shlibpath_var=no
4530 ;;
4531
4532 *)
4533 ld_shlibs=no
4534 ;;
4535 esac
4536 fi
4537 echo "$as_me:4537: result: $ld_shlibs" >&5
4538 echo "${ECHO_T}$ld_shlibs" >&6
4539 test "$ld_shlibs" = no && can_build_shared=no
4540
4541 # Check hardcoding attributes.
4542 echo "$as_me:4542: checking how to hardcode library paths into programs" >&5
4543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4544 hardcode_action=
4545 if test -n "$hardcode_libdir_flag_spec" || \
4546 test -n "$runpath_var"; then
4547
4548 # We can hardcode non-existant directories.
4549 if test "$hardcode_direct" != no &&
4550 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4551 # have to relink, otherwise we might link with an installed library
4552 # when we should be linking with a yet-to-be-installed one
4553 ## test "$hardcode_shlibpath_var" != no &&
4554 test "$hardcode_minus_L" != no; then
4555 # Linking always hardcodes the temporary library directory.
4556 hardcode_action=relink
4557 else
4558 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4559 hardcode_action=immediate
4560 fi
4561 else
4562 # We cannot hardcode anything, or else we can only hardcode existing
4563 # directories.
4564 hardcode_action=unsupported
4565 fi
4566 echo "$as_me:4566: result: $hardcode_action" >&5
4567 echo "${ECHO_T}$hardcode_action" >&6
4568
4569 striplib=
4570 old_striplib=
4571 echo "$as_me:4571: checking whether stripping libraries is possible" >&5
4572 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4573 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4574 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4575 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4576 echo "$as_me:4576: result: yes" >&5
4577 echo "${ECHO_T}yes" >&6
4578 else
4579 echo "$as_me:4579: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4581 fi
4582
4583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4584 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4585
4586 # PORTME Fill in your ld.so characteristics
4587 echo "$as_me:4587: checking dynamic linker characteristics" >&5
4588 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4589 library_names_spec=
4590 libname_spec='lib$name'
4591 soname_spec=
4592 postinstall_cmds=
4593 postuninstall_cmds=
4594 finish_cmds=
4595 finish_eval=
4596 shlibpath_var=
4597 shlibpath_overrides_runpath=unknown
4598 version_type=none
4599 dynamic_linker="$host_os ld.so"
4600 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4602
4603 case $host_os in
4604 aix3*)
4605 version_type=linux
4606 library_names_spec='${libname}${release}.so$versuffix $libname.a'
4607 shlibpath_var=LIBPATH
4608
4609 # AIX has no versioning support, so we append a major version to the name.
4610 soname_spec='${libname}${release}.so$major'
4611 ;;
4612
4613 aix4* | aix5*)
4614 version_type=linux
4615 if test "$host_cpu" = ia64; then
4616 # AIX 5 supports IA64
4617 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4618 shlibpath_var=LD_LIBRARY_PATH
4619 else
4620 # With GCC up to 2.95.x, collect2 would create an import file
4621 # for dependence libraries. The import file would start with
4622 # the line `#! .'. This would cause the generated library to
4623 # depend on `.', always an invalid library. This was fixed in
4624 # development snapshots of GCC prior to 3.0.
4625 case $host_os in
4626 aix4 | aix4.[01] | aix4.[01].*)
4627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4628 echo ' yes '
4629 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4630 :
4631 else
4632 can_build_shared=no
4633 fi
4634 ;;
4635 esac
4636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4637 # soname into executable. Probably we can add versioning support to
4638 # collect2, so additional links can be useful in future.
4639 if test "$aix_use_runtimelinking" = yes; then
4640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
4641 # lib<name>.a to let people know that these are not typical AIX shared libraries.
4642 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4643 else
4644 # We preserve .a as extension for shared libraries through AIX4.2
4645 # and later when we are not doing run time linking.
4646 library_names_spec='${libname}${release}.a $libname.a'
4647 soname_spec='${libname}${release}.so$major'
4648 fi
4649 shlibpath_var=LIBPATH
4650 deplibs_check_method=pass_all
4651 fi
4652 ;;
4653
4654 amigaos*)
4655 library_names_spec='$libname.ixlibrary $libname.a'
4656 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4657 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4658 ;;
4659
4660 beos*)
4661 library_names_spec='${libname}.so'
4662 dynamic_linker="$host_os ld.so"
4663 shlibpath_var=LIBRARY_PATH
4664 ;;
4665
4666 bsdi4*)
4667 version_type=linux
4668 need_version=no
4669 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4670 soname_spec='${libname}${release}.so$major'
4671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4672 shlibpath_var=LD_LIBRARY_PATH
4673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4675 export_dynamic_flag_spec=-rdynamic
4676 # the default ld.so.conf also contains /usr/contrib/lib and
4677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4678 # libtool to hard-code these into programs
4679 ;;
4680
4681 cygwin* | mingw* | pw32*)
4682 version_type=windows
4683 need_version=no
4684 need_lib_prefix=no
4685 case $GCC,$host_os in
4686 yes,cygwin*)
4687 library_names_spec='$libname.dll.a'
4688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4689 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4690 dldir=$destdir/`dirname \$dlpath`~
4691 test -d \$dldir || mkdir -p \$dldir~
4692 $install_prog .libs/$dlname \$dldir/$dlname'
4693 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4694 dlpath=$dir/\$dldll~
4695 $rm \$dlpath'
4696 ;;
4697 yes,mingw*)
4698 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4700 ;;
4701 yes,pw32*)
4702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4703 ;;
4704 *)
4705 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4706 ;;
4707 esac
4708 dynamic_linker='Win32 ld.exe'
4709 # FIXME: first we should search . and the directory the executable is in
4710 shlibpath_var=PATH
4711 ;;
4712
4713 darwin* | rhapsody*)
4714 dynamic_linker="$host_os dyld"
4715 version_type=darwin
4716 need_lib_prefix=no
4717 need_version=no
4718 # FIXME: Relying on posixy $() will cause problems for
4719 # cross-compilation, but unfortunately the echo tests do not
4720 # yet detect zsh echo's removal of \ escapes.
4721 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4722 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4723 shlibpath_overrides_runpath=yes
4724 shlibpath_var=DYLD_LIBRARY_PATH
4725 ;;
4726
4727 freebsd1*)
4728 dynamic_linker=no
4729 ;;
4730
4731 freebsd*)
4732 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4733 version_type=freebsd-$objformat
4734 case $version_type in
4735 freebsd-elf*)
4736 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4737 need_version=no
4738 need_lib_prefix=no
4739 ;;
4740 freebsd-*)
4741 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4742 need_version=yes
4743 ;;
4744 esac
4745 shlibpath_var=LD_LIBRARY_PATH
4746 case $host_os in
4747 freebsd2*)
4748 shlibpath_overrides_runpath=yes
4749 ;;
4750 *)
4751 shlibpath_overrides_runpath=no
4752 hardcode_into_libs=yes
4753 ;;
4754 esac
4755 ;;
4756
4757 gnu*)
4758 version_type=linux
4759 need_lib_prefix=no
4760 need_version=no
4761 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4762 soname_spec='${libname}${release}.so$major'
4763 shlibpath_var=LD_LIBRARY_PATH
4764 hardcode_into_libs=yes
4765 ;;
4766
4767 hpux9* | hpux10* | hpux11*)
4768 # Give a soname corresponding to the major version so that dld.sl refuses to
4769 # link against other versions.
4770 dynamic_linker="$host_os dld.sl"
4771 version_type=sunos
4772 need_lib_prefix=no
4773 need_version=no
4774 shlibpath_var=SHLIB_PATH
4775 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4776 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4777 soname_spec='${libname}${release}.sl$major'
4778 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4779 postinstall_cmds='chmod 555 $lib'
4780 ;;
4781
4782 irix5* | irix6*)
4783 version_type=irix
4784 need_lib_prefix=no
4785 need_version=no
4786 soname_spec='${libname}${release}.so$major'
4787 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4788 case $host_os in
4789 irix5*)
4790 libsuff= shlibsuff=
4791 ;;
4792 *)
4793 case $LD in # libtool.m4 will add one of these switches to LD
4794 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4795 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4796 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4797 *) libsuff= shlibsuff= libmagic=never-match;;
4798 esac
4799 ;;
4800 esac
4801 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4802 shlibpath_overrides_runpath=no
4803 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4804 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4805 ;;
4806
4807 # No shared lib support for Linux oldld, aout, or coff.
4808 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4809 dynamic_linker=no
4810 ;;
4811
4812 # This must be Linux ELF.
4813 linux-gnu*)
4814 version_type=linux
4815 need_lib_prefix=no
4816 need_version=no
4817 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4818 soname_spec='${libname}${release}.so$major'
4819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4820 shlibpath_var=LD_LIBRARY_PATH
4821 shlibpath_overrides_runpath=no
4822 # This implies no fast_install, which is unacceptable.
4823 # Some rework will be needed to allow for fast_install
4824 # before this can be enabled.
4825 hardcode_into_libs=yes
4826
4827 # We used to test for /lib/ld.so.1 and disable shared libraries on
4828 # powerpc, because MkLinux only supported shared libraries with the
4829 # GNU dynamic linker. Since this was broken with cross compilers,
4830 # most powerpc-linux boxes support dynamic linking these days and
4831 # people can always --disable-shared, the test was removed, and we
4832 # assume the GNU/Linux dynamic linker is in use.
4833 dynamic_linker='GNU/Linux ld.so'
4834 ;;
4835
4836 netbsd*)
4837 version_type=sunos
4838 need_lib_prefix=no
4839 need_version=no
4840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4841 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4843 dynamic_linker='NetBSD (a.out) ld.so'
4844 else
4845 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4846 soname_spec='${libname}${release}.so$major'
4847 dynamic_linker='NetBSD ld.elf_so'
4848 fi
4849 shlibpath_var=LD_LIBRARY_PATH
4850 shlibpath_overrides_runpath=yes
4851 hardcode_into_libs=yes
4852 ;;
4853
4854 newsos6)
4855 version_type=linux
4856 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4857 shlibpath_var=LD_LIBRARY_PATH
4858 shlibpath_overrides_runpath=yes
4859 ;;
4860
4861 openbsd*)
4862 version_type=sunos
4863 if test "$with_gnu_ld" = yes; then
4864 need_lib_prefix=no
4865 need_version=no
4866 fi
4867 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4869 shlibpath_var=LD_LIBRARY_PATH
4870 ;;
4871
4872 os2*)
4873 libname_spec='$name'
4874 need_lib_prefix=no
4875 library_names_spec='$libname.dll $libname.a'
4876 dynamic_linker='OS/2 ld.exe'
4877 shlibpath_var=LIBPATH
4878 ;;
4879
4880 osf3* | osf4* | osf5*)
4881 version_type=osf
4882 need_version=no
4883 soname_spec='${libname}${release}.so'
4884 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4885 shlibpath_var=LD_LIBRARY_PATH
4886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4888 ;;
4889
4890 sco3.2v5*)
4891 version_type=osf
4892 soname_spec='${libname}${release}.so$major'
4893 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4894 shlibpath_var=LD_LIBRARY_PATH
4895 ;;
4896
4897 solaris*)
4898 version_type=linux
4899 need_lib_prefix=no
4900 need_version=no
4901 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4902 soname_spec='${libname}${release}.so$major'
4903 shlibpath_var=LD_LIBRARY_PATH
4904 shlibpath_overrides_runpath=yes
4905 hardcode_into_libs=yes
4906 # ldd complains unless libraries are executable
4907 postinstall_cmds='chmod +x $lib'
4908 ;;
4909
4910 sunos4*)
4911 version_type=sunos
4912 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4913 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4914 shlibpath_var=LD_LIBRARY_PATH
4915 shlibpath_overrides_runpath=yes
4916 if test "$with_gnu_ld" = yes; then
4917 need_lib_prefix=no
4918 fi
4919 need_version=yes
4920 ;;
4921
4922 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4923 version_type=linux
4924 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4925 soname_spec='${libname}${release}.so$major'
4926 shlibpath_var=LD_LIBRARY_PATH
4927 case $host_vendor in
4928 sni)
4929 shlibpath_overrides_runpath=no
4930 ;;
4931 motorola)
4932 need_lib_prefix=no
4933 need_version=no
4934 shlibpath_overrides_runpath=no
4935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4936 ;;
4937 esac
4938 ;;
4939
4940 uts4*)
4941 version_type=linux
4942 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4943 soname_spec='${libname}${release}.so$major'
4944 shlibpath_var=LD_LIBRARY_PATH
4945 ;;
4946
4947 dgux*)
4948 version_type=linux
4949 need_lib_prefix=no
4950 need_version=no
4951 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4952 soname_spec='${libname}${release}.so$major'
4953 shlibpath_var=LD_LIBRARY_PATH
4954 ;;
4955
4956 sysv4*MP*)
4957 if test -d /usr/nec ;then
4958 version_type=linux
4959 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4960 soname_spec='$libname.so.$major'
4961 shlibpath_var=LD_LIBRARY_PATH
4962 fi
4963 ;;
4964
4965 *)
4966 dynamic_linker=no
4967 ;;
4968 esac
4969 echo "$as_me:4969: result: $dynamic_linker" >&5
4970 echo "${ECHO_T}$dynamic_linker" >&6
4971 test "$dynamic_linker" = no && can_build_shared=no
4972
4973 # Report the final consequences.
4974 echo "$as_me:4974: checking if libtool supports shared libraries" >&5
4975 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4976 echo "$as_me:4976: result: $can_build_shared" >&5
4977 echo "${ECHO_T}$can_build_shared" >&6
4978
4979 if test "$hardcode_action" = relink; then
4980 # Fast installation is not supported
4981 enable_fast_install=no
4982 elif test "$shlibpath_overrides_runpath" = yes ||
4983 test "$enable_shared" = no; then
4984 # Fast installation is not necessary
4985 enable_fast_install=needless
4986 fi
4987
4988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4989 if test "$GCC" = yes; then
4990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4991 fi
4992
4993 if test "x$enable_dlopen" != xyes; then
4994 enable_dlopen=unknown
4995 enable_dlopen_self=unknown
4996 enable_dlopen_self_static=unknown
4997 else
4998 lt_cv_dlopen=no
4999 lt_cv_dlopen_libs=
5000
5001 case $host_os in
5002 beos*)
5003 lt_cv_dlopen="load_add_on"
5004 lt_cv_dlopen_libs=
5005 lt_cv_dlopen_self=yes
5006 ;;
5007
5008 cygwin* | mingw* | pw32*)
5009 lt_cv_dlopen="LoadLibrary"
5010 lt_cv_dlopen_libs=
5011 ;;
5012
5013 *)
5014 echo "$as_me:5014: checking for dlopen in -ldl" >&5
5015 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5016 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 ac_check_lib_save_LIBS=$LIBS
5020 LIBS="-ldl $LIBS"
5021 cat >conftest.$ac_ext <<_ACEOF
5022 #line 5022 "configure"
5023 #include "confdefs.h"
5024
5025 /* Override any gcc2 internal prototype to avoid an error. */
5026 #ifdef __cplusplus
5027 extern "C"
5028 #endif
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5031 char dlopen ();
5032 int
5033 main ()
5034 {
5035 dlopen ();
5036 ;
5037 return 0;
5038 }
5039 _ACEOF
5040 rm -f conftest.$ac_objext conftest$ac_exeext
5041 if { (eval echo "$as_me:5041: \"$ac_link\"") >&5
5042 (eval $ac_link) 2>&5
5043 ac_status=$?
5044 echo "$as_me:5044: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -s conftest$ac_exeext'
5047 { (eval echo "$as_me:5047: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:5050: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_lib_dl_dlopen=yes
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5056 ac_cv_lib_dl_dlopen=no
5057 fi
5058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5059 LIBS=$ac_check_lib_save_LIBS
5060 fi
5061 echo "$as_me:5061: result: $ac_cv_lib_dl_dlopen" >&5
5062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5063 if test $ac_cv_lib_dl_dlopen = yes; then
5064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5065 else
5066 echo "$as_me:5066: checking for dlopen" >&5
5067 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5068 if test "${ac_cv_func_dlopen+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 cat >conftest.$ac_ext <<_ACEOF
5072 #line 5072 "configure"
5073 #include "confdefs.h"
5074 /* System header to define __stub macros and hopefully few prototypes,
5075 which can conflict with char dlopen (); below. */
5076 #include <assert.h>
5077 /* Override any gcc2 internal prototype to avoid an error. */
5078 #ifdef __cplusplus
5079 extern "C"
5080 #endif
5081 /* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5083 char dlopen ();
5084 char (*f) ();
5085
5086 int
5087 main ()
5088 {
5089 /* The GNU C library defines this for functions which it implements
5090 to always fail with ENOSYS. Some functions are actually named
5091 something starting with __ and the normal name is an alias. */
5092 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5093 choke me
5094 #else
5095 f = dlopen;
5096 #endif
5097
5098 ;
5099 return 0;
5100 }
5101 _ACEOF
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (eval echo "$as_me:5103: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>&5
5105 ac_status=$?
5106 echo "$as_me:5106: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:5109: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:5112: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_func_dlopen=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5118 ac_cv_func_dlopen=no
5119 fi
5120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5121 fi
5122 echo "$as_me:5122: result: $ac_cv_func_dlopen" >&5
5123 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5124 if test $ac_cv_func_dlopen = yes; then
5125 lt_cv_dlopen="dlopen"
5126 else
5127 echo "$as_me:5127: checking for shl_load" >&5
5128 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5129 if test "${ac_cv_func_shl_load+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 cat >conftest.$ac_ext <<_ACEOF
5133 #line 5133 "configure"
5134 #include "confdefs.h"
5135 /* System header to define __stub macros and hopefully few prototypes,
5136 which can conflict with char shl_load (); below. */
5137 #include <assert.h>
5138 /* Override any gcc2 internal prototype to avoid an error. */
5139 #ifdef __cplusplus
5140 extern "C"
5141 #endif
5142 /* We use char because int might match the return type of a gcc2
5143 builtin and then its argument prototype would still apply. */
5144 char shl_load ();
5145 char (*f) ();
5146
5147 int
5148 main ()
5149 {
5150 /* The GNU C library defines this for functions which it implements
5151 to always fail with ENOSYS. Some functions are actually named
5152 something starting with __ and the normal name is an alias. */
5153 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5154 choke me
5155 #else
5156 f = shl_load;
5157 #endif
5158
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 rm -f conftest.$ac_objext conftest$ac_exeext
5164 if { (eval echo "$as_me:5164: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>&5
5166 ac_status=$?
5167 echo "$as_me:5167: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try='test -s conftest$ac_exeext'
5170 { (eval echo "$as_me:5170: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:5173: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 ac_cv_func_shl_load=yes
5176 else
5177 echo "$as_me: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5179 ac_cv_func_shl_load=no
5180 fi
5181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5182 fi
5183 echo "$as_me:5183: result: $ac_cv_func_shl_load" >&5
5184 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5185 if test $ac_cv_func_shl_load = yes; then
5186 lt_cv_dlopen="shl_load"
5187 else
5188 echo "$as_me:5188: checking for dlopen in -lsvld" >&5
5189 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5190 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193 ac_check_lib_save_LIBS=$LIBS
5194 LIBS="-lsvld $LIBS"
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line 5196 "configure"
5197 #include "confdefs.h"
5198
5199 /* Override any gcc2 internal prototype to avoid an error. */
5200 #ifdef __cplusplus
5201 extern "C"
5202 #endif
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5205 char dlopen ();
5206 int
5207 main ()
5208 {
5209 dlopen ();
5210 ;
5211 return 0;
5212 }
5213 _ACEOF
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:5215: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>&5
5217 ac_status=$?
5218 echo "$as_me:5218: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:5221: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:5224: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_lib_svld_dlopen=yes
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 ac_cv_lib_svld_dlopen=no
5231 fi
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233 LIBS=$ac_check_lib_save_LIBS
5234 fi
5235 echo "$as_me:5235: result: $ac_cv_lib_svld_dlopen" >&5
5236 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5237 if test $ac_cv_lib_svld_dlopen = yes; then
5238 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5239 else
5240 echo "$as_me:5240: checking for shl_load in -ldld" >&5
5241 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5242 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 ac_check_lib_save_LIBS=$LIBS
5246 LIBS="-ldld $LIBS"
5247 cat >conftest.$ac_ext <<_ACEOF
5248 #line 5248 "configure"
5249 #include "confdefs.h"
5250
5251 /* Override any gcc2 internal prototype to avoid an error. */
5252 #ifdef __cplusplus
5253 extern "C"
5254 #endif
5255 /* We use char because int might match the return type of a gcc2
5256 builtin and then its argument prototype would still apply. */
5257 char shl_load ();
5258 int
5259 main ()
5260 {
5261 shl_load ();
5262 ;
5263 return 0;
5264 }
5265 _ACEOF
5266 rm -f conftest.$ac_objext conftest$ac_exeext
5267 if { (eval echo "$as_me:5267: \"$ac_link\"") >&5
5268 (eval $ac_link) 2>&5
5269 ac_status=$?
5270 echo "$as_me:5270: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -s conftest$ac_exeext'
5273 { (eval echo "$as_me:5273: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:5276: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 ac_cv_lib_dld_shl_load=yes
5279 else
5280 echo "$as_me: failed program was:" >&5
5281 cat conftest.$ac_ext >&5
5282 ac_cv_lib_dld_shl_load=no
5283 fi
5284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5285 LIBS=$ac_check_lib_save_LIBS
5286 fi
5287 echo "$as_me:5287: result: $ac_cv_lib_dld_shl_load" >&5
5288 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5289 if test $ac_cv_lib_dld_shl_load = yes; then
5290 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5291 fi
5292
5293 fi
5294
5295 fi
5296
5297 fi
5298
5299 fi
5300
5301 ;;
5302 esac
5303
5304 if test "x$lt_cv_dlopen" != xno; then
5305 enable_dlopen=yes
5306 else
5307 enable_dlopen=no
5308 fi
5309
5310 case $lt_cv_dlopen in
5311 dlopen)
5312 save_CPPFLAGS="$CPPFLAGS"
5313 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5314
5315 save_LDFLAGS="$LDFLAGS"
5316 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5317
5318 save_LIBS="$LIBS"
5319 LIBS="$lt_cv_dlopen_libs $LIBS"
5320
5321 echo "$as_me:5321: checking whether a program can dlopen itself" >&5
5322 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5323 if test "${lt_cv_dlopen_self+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 if test "$cross_compiling" = yes; then :
5327 lt_cv_dlopen_self=cross
5328 else
5329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5330 lt_status=$lt_dlunknown
5331 cat > conftest.$ac_ext <<EOF
5332 #line 5332 "configure"
5333 #include "confdefs.h"
5334
5335 #if HAVE_DLFCN_H
5336 #include <dlfcn.h>
5337 #endif
5338
5339 #include <stdio.h>
5340
5341 #ifdef RTLD_GLOBAL
5342 # define LT_DLGLOBAL RTLD_GLOBAL
5343 #else
5344 # ifdef DL_GLOBAL
5345 # define LT_DLGLOBAL DL_GLOBAL
5346 # else
5347 # define LT_DLGLOBAL 0
5348 # endif
5349 #endif
5350
5351 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5352 find out it does not work in some platform. */
5353 #ifndef LT_DLLAZY_OR_NOW
5354 # ifdef RTLD_LAZY
5355 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5356 # else
5357 # ifdef DL_LAZY
5358 # define LT_DLLAZY_OR_NOW DL_LAZY
5359 # else
5360 # ifdef RTLD_NOW
5361 # define LT_DLLAZY_OR_NOW RTLD_NOW
5362 # else
5363 # ifdef DL_NOW
5364 # define LT_DLLAZY_OR_NOW DL_NOW
5365 # else
5366 # define LT_DLLAZY_OR_NOW 0
5367 # endif
5368 # endif
5369 # endif
5370 # endif
5371 #endif
5372
5373 #ifdef __cplusplus
5374 extern "C" void exit (int);
5375 #endif
5376
5377 void fnord() { int i=42;}
5378 int main ()
5379 {
5380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5381 int status = $lt_dlunknown;
5382
5383 if (self)
5384 {
5385 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5386 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5387 /* dlclose (self); */
5388 }
5389
5390 exit (status);
5391 }
5392 EOF
5393 if { (eval echo "$as_me:5393: \"$ac_link\"") >&5
5394 (eval $ac_link) 2>&5
5395 ac_status=$?
5396 echo "$as_me:5396: \$? = $ac_status" >&5
5397 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5398 (./conftest; exit; ) 2>/dev/null
5399 lt_status=$?
5400 case x$lt_status in
5401 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5402 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5403 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5404 esac
5405 else :
5406 # compilation failed
5407 lt_cv_dlopen_self=no
5408 fi
5409 fi
5410 rm -fr conftest*
5411
5412 fi
5413 echo "$as_me:5413: result: $lt_cv_dlopen_self" >&5
5414 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5415
5416 if test "x$lt_cv_dlopen_self" = xyes; then
5417 LDFLAGS="$LDFLAGS $link_static_flag"
5418 echo "$as_me:5418: checking whether a statically linked program can dlopen itself" >&5
5419 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5420 if test "${lt_cv_dlopen_self_static+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 if test "$cross_compiling" = yes; then :
5424 lt_cv_dlopen_self_static=cross
5425 else
5426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5427 lt_status=$lt_dlunknown
5428 cat > conftest.$ac_ext <<EOF
5429 #line 5429 "configure"
5430 #include "confdefs.h"
5431
5432 #if HAVE_DLFCN_H
5433 #include <dlfcn.h>
5434 #endif
5435
5436 #include <stdio.h>
5437
5438 #ifdef RTLD_GLOBAL
5439 # define LT_DLGLOBAL RTLD_GLOBAL
5440 #else
5441 # ifdef DL_GLOBAL
5442 # define LT_DLGLOBAL DL_GLOBAL
5443 # else
5444 # define LT_DLGLOBAL 0
5445 # endif
5446 #endif
5447
5448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5449 find out it does not work in some platform. */
5450 #ifndef LT_DLLAZY_OR_NOW
5451 # ifdef RTLD_LAZY
5452 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5453 # else
5454 # ifdef DL_LAZY
5455 # define LT_DLLAZY_OR_NOW DL_LAZY
5456 # else
5457 # ifdef RTLD_NOW
5458 # define LT_DLLAZY_OR_NOW RTLD_NOW
5459 # else
5460 # ifdef DL_NOW
5461 # define LT_DLLAZY_OR_NOW DL_NOW
5462 # else
5463 # define LT_DLLAZY_OR_NOW 0
5464 # endif
5465 # endif
5466 # endif
5467 # endif
5468 #endif
5469
5470 #ifdef __cplusplus
5471 extern "C" void exit (int);
5472 #endif
5473
5474 void fnord() { int i=42;}
5475 int main ()
5476 {
5477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5478 int status = $lt_dlunknown;
5479
5480 if (self)
5481 {
5482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5483 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5484 /* dlclose (self); */
5485 }
5486
5487 exit (status);
5488 }
5489 EOF
5490 if { (eval echo "$as_me:5490: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5492 ac_status=$?
5493 echo "$as_me:5493: \$? = $ac_status" >&5
5494 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5495 (./conftest; exit; ) 2>/dev/null
5496 lt_status=$?
5497 case x$lt_status in
5498 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5499 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5500 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5501 esac
5502 else :
5503 # compilation failed
5504 lt_cv_dlopen_self_static=no
5505 fi
5506 fi
5507 rm -fr conftest*
5508
5509 fi
5510 echo "$as_me:5510: result: $lt_cv_dlopen_self_static" >&5
5511 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5512 fi
5513
5514 CPPFLAGS="$save_CPPFLAGS"
5515 LDFLAGS="$save_LDFLAGS"
5516 LIBS="$save_LIBS"
5517 ;;
5518 esac
5519
5520 case $lt_cv_dlopen_self in
5521 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5522 *) enable_dlopen_self=unknown ;;
5523 esac
5524
5525 case $lt_cv_dlopen_self_static in
5526 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5527 *) enable_dlopen_self_static=unknown ;;
5528 esac
5529 fi
5530
5531 if test "$enable_shared" = yes && test "$GCC" = yes; then
5532 case $archive_cmds in
5533 *'~'*)
5534 # FIXME: we may have to deal with multi-command sequences.
5535 ;;
5536 '$CC '*)
5537 # Test whether the compiler implicitly links with -lc since on some
5538 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5539 # to ld, don't add -lc before -lgcc.
5540 echo "$as_me:5540: checking whether -lc should be explicitly linked in" >&5
5541 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5542 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545 $rm conftest*
5546 echo 'static int dummy;' > conftest.$ac_ext
5547
5548 if { (eval echo "$as_me:5548: \"$ac_compile\"") >&5
5549 (eval $ac_compile) 2>&5
5550 ac_status=$?
5551 echo "$as_me:5551: \$? = $ac_status" >&5
5552 (exit $ac_status); }; then
5553 soname=conftest
5554 lib=conftest
5555 libobjs=conftest.$ac_objext
5556 deplibs=
5557 wl=$lt_cv_prog_cc_wl
5558 compiler_flags=-v
5559 linker_flags=-v
5560 verstring=
5561 output_objdir=.
5562 libname=conftest
5563 save_allow_undefined_flag=$allow_undefined_flag
5564 allow_undefined_flag=
5565 if { (eval echo "$as_me:5565: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5566 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5567 ac_status=$?
5568 echo "$as_me:5568: \$? = $ac_status" >&5
5569 (exit $ac_status); }
5570 then
5571 lt_cv_archive_cmds_need_lc=no
5572 else
5573 lt_cv_archive_cmds_need_lc=yes
5574 fi
5575 allow_undefined_flag=$save_allow_undefined_flag
5576 else
5577 cat conftest.err 1>&5
5578 fi
5579 fi
5580
5581 echo "$as_me:5581: result: $lt_cv_archive_cmds_need_lc" >&5
5582 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5583 ;;
5584 esac
5585 fi
5586 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5587
5588 # The second clause should only fire when bootstrapping the
5589 # libtool distribution, otherwise you forgot to ship ltmain.sh
5590 # with your package, and you will get complaints that there are
5591 # no rules to generate ltmain.sh.
5592 if test -f "$ltmain"; then
5593 :
5594 else
5595 # If there is no Makefile yet, we rely on a make rule to execute
5596 # `config.status --recheck' to rerun these tests and create the
5597 # libtool script then.
5598 test -f Makefile && make "$ltmain"
5599 fi
5600
5601 if test -f "$ltmain"; then
5602 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5603 $rm -f "${ofile}T"
5604
5605 echo creating $ofile
5606
5607 # Now quote all the things that may contain metacharacters while being
5608 # careful not to overquote the AC_SUBSTed values. We take copies of the
5609 # variables and quote the copies for generation of the libtool script.
5610 for var in echo old_CC old_CFLAGS \
5611 AR AR_FLAGS CC LD LN_S NM SHELL \
5612 reload_flag reload_cmds wl \
5613 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5614 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5615 library_names_spec soname_spec \
5616 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5617 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5618 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5619 old_striplib striplib file_magic_cmd export_symbols_cmds \
5620 deplibs_check_method allow_undefined_flag no_undefined_flag \
5621 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5622 hardcode_libdir_flag_spec hardcode_libdir_separator \
5623 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5624 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5625
5626 case $var in
5627 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5628 old_postinstall_cmds | old_postuninstall_cmds | \
5629 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5630 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5631 postinstall_cmds | postuninstall_cmds | \
5632 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5633 # Double-quote double-evaled strings.
5634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5635 ;;
5636 *)
5637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5638 ;;
5639 esac
5640 done
5641
5642 cat <<__EOF__ > "${ofile}T"
5643 #! $SHELL
5644
5645 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5646 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5647 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5648 #
5649 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5650 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5651 #
5652 # This program is free software; you can redistribute it and/or modify
5653 # it under the terms of the GNU General Public License as published by
5654 # the Free Software Foundation; either version 2 of the License, or
5655 # (at your option) any later version.
5656 #
5657 # This program is distributed in the hope that it will be useful, but
5658 # WITHOUT ANY WARRANTY; without even the implied warranty of
5659 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5660 # General Public License for more details.
5661 #
5662 # You should have received a copy of the GNU General Public License
5663 # along with this program; if not, write to the Free Software
5664 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5665 #
5666 # As a special exception to the GNU General Public License, if you
5667 # distribute this file as part of a program that contains a
5668 # configuration script generated by Autoconf, you may include it under
5669 # the same distribution terms that you use for the rest of that program.
5670
5671 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5672 Xsed="sed -e s/^X//"
5673
5674 # The HP-UX ksh and POSIX shell print the target directory to stdout
5675 # if CDPATH is set.
5676 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5677
5678 # ### BEGIN LIBTOOL CONFIG
5679
5680 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5681
5682 # Shell to use when invoking shell scripts.
5683 SHELL=$lt_SHELL
5684
5685 # Whether or not to build shared libraries.
5686 build_libtool_libs=$enable_shared
5687
5688 # Whether or not to add -lc for building shared libraries.
5689 build_libtool_need_lc=$need_lc
5690
5691 # Whether or not to build static libraries.
5692 build_old_libs=$enable_static
5693
5694 # Whether or not to optimize for fast installation.
5695 fast_install=$enable_fast_install
5696
5697 # The host system.
5698 host_alias=$host_alias
5699 host=$host
5700
5701 # An echo program that does not interpret backslashes.
5702 echo=$lt_echo
5703
5704 # The archiver.
5705 AR=$lt_AR
5706 AR_FLAGS=$lt_AR_FLAGS
5707
5708 # The default C compiler.
5709 CC=$lt_CC
5710
5711 # Is the compiler the GNU C compiler?
5712 with_gcc=$GCC
5713
5714 # The linker used to build libraries.
5715 LD=$lt_LD
5716
5717 # Whether we need hard or soft links.
5718 LN_S=$lt_LN_S
5719
5720 # A BSD-compatible nm program.
5721 NM=$lt_NM
5722
5723 # A symbol stripping program
5724 STRIP=$STRIP
5725
5726 # Used to examine libraries when file_magic_cmd begins "file"
5727 MAGIC_CMD=$MAGIC_CMD
5728
5729 # Used on cygwin: DLL creation program.
5730 DLLTOOL="$DLLTOOL"
5731
5732 # Used on cygwin: object dumper.
5733 OBJDUMP="$OBJDUMP"
5734
5735 # Used on cygwin: assembler.
5736 AS="$AS"
5737
5738 # The name of the directory that contains temporary libtool files.
5739 objdir=$objdir
5740
5741 # How to create reloadable object files.
5742 reload_flag=$lt_reload_flag
5743 reload_cmds=$lt_reload_cmds
5744
5745 # How to pass a linker flag through the compiler.
5746 wl=$lt_wl
5747
5748 # Object file suffix (normally "o").
5749 objext="$ac_objext"
5750
5751 # Old archive suffix (normally "a").
5752 libext="$libext"
5753
5754 # Executable file suffix (normally "").
5755 exeext="$exeext"
5756
5757 # Additional compiler flags for building library objects.
5758 pic_flag=$lt_pic_flag
5759 pic_mode=$pic_mode
5760
5761 # Does compiler simultaneously support -c and -o options?
5762 compiler_c_o=$lt_compiler_c_o
5763
5764 # Can we write directly to a .lo ?
5765 compiler_o_lo=$lt_compiler_o_lo
5766
5767 # Must we lock files when doing compilation ?
5768 need_locks=$lt_need_locks
5769
5770 # Do we need the lib prefix for modules?
5771 need_lib_prefix=$need_lib_prefix
5772
5773 # Do we need a version for libraries?
5774 need_version=$need_version
5775
5776 # Whether dlopen is supported.
5777 dlopen_support=$enable_dlopen
5778
5779 # Whether dlopen of programs is supported.
5780 dlopen_self=$enable_dlopen_self
5781
5782 # Whether dlopen of statically linked programs is supported.
5783 dlopen_self_static=$enable_dlopen_self_static
5784
5785 # Compiler flag to prevent dynamic linking.
5786 link_static_flag=$lt_link_static_flag
5787
5788 # Compiler flag to turn off builtin functions.
5789 no_builtin_flag=$lt_no_builtin_flag
5790
5791 # Compiler flag to allow reflexive dlopens.
5792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5793
5794 # Compiler flag to generate shared objects directly from archives.
5795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5796
5797 # Compiler flag to generate thread-safe objects.
5798 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5799
5800 # Library versioning type.
5801 version_type=$version_type
5802
5803 # Format of library name prefix.
5804 libname_spec=$lt_libname_spec
5805
5806 # List of archive names. First name is the real one, the rest are links.
5807 # The last name is the one that the linker finds with -lNAME.
5808 library_names_spec=$lt_library_names_spec
5809
5810 # The coded name of the library, if different from the real name.
5811 soname_spec=$lt_soname_spec
5812
5813 # Commands used to build and install an old-style archive.
5814 RANLIB=$lt_RANLIB
5815 old_archive_cmds=$lt_old_archive_cmds
5816 old_postinstall_cmds=$lt_old_postinstall_cmds
5817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5818
5819 # Create an old-style archive from a shared archive.
5820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5821
5822 # Create a temporary old-style archive to link instead of a shared archive.
5823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5824
5825 # Commands used to build and install a shared archive.
5826 archive_cmds=$lt_archive_cmds
5827 archive_expsym_cmds=$lt_archive_expsym_cmds
5828 postinstall_cmds=$lt_postinstall_cmds
5829 postuninstall_cmds=$lt_postuninstall_cmds
5830
5831 # Commands to strip libraries.
5832 old_striplib=$lt_old_striplib
5833 striplib=$lt_striplib
5834
5835 # Method to check whether dependent libraries are shared objects.
5836 deplibs_check_method=$lt_deplibs_check_method
5837
5838 # Command to use when deplibs_check_method == file_magic.
5839 file_magic_cmd=$lt_file_magic_cmd
5840
5841 # Flag that allows shared libraries with undefined symbols to be built.
5842 allow_undefined_flag=$lt_allow_undefined_flag
5843
5844 # Flag that forces no undefined symbols.
5845 no_undefined_flag=$lt_no_undefined_flag
5846
5847 # Commands used to finish a libtool library installation in a directory.
5848 finish_cmds=$lt_finish_cmds
5849
5850 # Same as above, but a single script fragment to be evaled but not shown.
5851 finish_eval=$lt_finish_eval
5852
5853 # Take the output of nm and produce a listing of raw symbols and C names.
5854 global_symbol_pipe=$lt_global_symbol_pipe
5855
5856 # Transform the output of nm in a proper C declaration
5857 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5858
5859 # This is the shared library runtime path variable.
5860 runpath_var=$runpath_var
5861
5862 # This is the shared library path variable.
5863 shlibpath_var=$shlibpath_var
5864
5865 # Is shlibpath searched before the hard-coded library search path?
5866 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5867
5868 # How to hardcode a shared library path into an executable.
5869 hardcode_action=$hardcode_action
5870
5871 # Whether we should hardcode library paths into libraries.
5872 hardcode_into_libs=$hardcode_into_libs
5873
5874 # Flag to hardcode \$libdir into a binary during linking.
5875 # This must work even if \$libdir does not exist.
5876 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5877
5878 # Whether we need a single -rpath flag with a separated argument.
5879 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5880
5881 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5882 # resulting binary.
5883 hardcode_direct=$hardcode_direct
5884
5885 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5886 # resulting binary.
5887 hardcode_minus_L=$hardcode_minus_L
5888
5889 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5890 # the resulting binary.
5891 hardcode_shlibpath_var=$hardcode_shlibpath_var
5892
5893 # Variables whose values should be saved in libtool wrapper scripts and
5894 # restored at relink time.
5895 variables_saved_for_relink="$variables_saved_for_relink"
5896
5897 # Whether libtool must link a program against all its dependency libraries.
5898 link_all_deplibs=$link_all_deplibs
5899
5900 # Compile-time system search path for libraries
5901 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5902
5903 # Run-time system search path for libraries
5904 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5905
5906 # Fix the shell variable \$srcfile for the compiler.
5907 fix_srcfile_path="$fix_srcfile_path"
5908
5909 # Set to yes if exported symbols are required.
5910 always_export_symbols=$always_export_symbols
5911
5912 # The commands to list exported symbols.
5913 export_symbols_cmds=$lt_export_symbols_cmds
5914
5915 # The commands to extract the exported symbol list from a shared archive.
5916 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5917
5918 # Symbols that should not be listed in the preloaded symbols.
5919 exclude_expsyms=$lt_exclude_expsyms
5920
5921 # Symbols that must always be exported.
5922 include_expsyms=$lt_include_expsyms
5923
5924 # ### END LIBTOOL CONFIG
5925
5926 __EOF__
5927
5928 case $host_os in
5929 aix3*)
5930 cat <<\EOF >> "${ofile}T"
5931
5932 # AIX sometimes has problems with the GCC collect2 program. For some
5933 # reason, if we set the COLLECT_NAMES environment variable, the problems
5934 # vanish in a puff of smoke.
5935 if test "X${COLLECT_NAMES+set}" != Xset; then
5936 COLLECT_NAMES=
5937 export COLLECT_NAMES
5938 fi
5939 EOF
5940 ;;
5941 esac
5942
5943 case $host_os in
5944 cygwin* | mingw* | pw32* | os2*)
5945 cat <<'EOF' >> "${ofile}T"
5946 # This is a source program that is used to create dlls on Windows
5947 # Don't remove nor modify the starting and closing comments
5948 # /* ltdll.c starts here */
5949 # #define WIN32_LEAN_AND_MEAN
5950 # #include <windows.h>
5951 # #undef WIN32_LEAN_AND_MEAN
5952 # #include <stdio.h>
5953 #
5954 # #ifndef __CYGWIN__
5955 # # ifdef __CYGWIN32__
5956 # # define __CYGWIN__ __CYGWIN32__
5957 # # endif
5958 # #endif
5959 #
5960 # #ifdef __cplusplus
5961 # extern "C" {
5962 # #endif
5963 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5964 # #ifdef __cplusplus
5965 # }
5966 # #endif
5967 #
5968 # #ifdef __CYGWIN__
5969 # #include <cygwin/cygwin_dll.h>
5970 # DECLARE_CYGWIN_DLL( DllMain );
5971 # #endif
5972 # HINSTANCE __hDllInstance_base;
5973 #
5974 # BOOL APIENTRY
5975 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5976 # {
5977 # __hDllInstance_base = hInst;
5978 # return TRUE;
5979 # }
5980 # /* ltdll.c ends here */
5981 # This is a source program that is used to create import libraries
5982 # on Windows for dlls which lack them. Don't remove nor modify the
5983 # starting and closing comments
5984 # /* impgen.c starts here */
5985 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5986 #
5987 # This file is part of GNU libtool.
5988 #
5989 # This program is free software; you can redistribute it and/or modify
5990 # it under the terms of the GNU General Public License as published by
5991 # the Free Software Foundation; either version 2 of the License, or
5992 # (at your option) any later version.
5993 #
5994 # This program is distributed in the hope that it will be useful,
5995 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5996 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5997 # GNU General Public License for more details.
5998 #
5999 # You should have received a copy of the GNU General Public License
6000 # along with this program; if not, write to the Free Software
6001 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6002 # */
6003 #
6004 # #include <stdio.h> /* for printf() */
6005 # #include <unistd.h> /* for open(), lseek(), read() */
6006 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6007 # #include <string.h> /* for strdup() */
6008 #
6009 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6010 # #ifndef O_BINARY
6011 # #define O_BINARY 0
6012 # #endif
6013 #
6014 # static unsigned int
6015 # pe_get16 (fd, offset)
6016 # int fd;
6017 # int offset;
6018 # {
6019 # unsigned char b[2];
6020 # lseek (fd, offset, SEEK_SET);
6021 # read (fd, b, 2);
6022 # return b[0] + (b[1]<<8);
6023 # }
6024 #
6025 # static unsigned int
6026 # pe_get32 (fd, offset)
6027 # int fd;
6028 # int offset;
6029 # {
6030 # unsigned char b[4];
6031 # lseek (fd, offset, SEEK_SET);
6032 # read (fd, b, 4);
6033 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6034 # }
6035 #
6036 # static unsigned int
6037 # pe_as32 (ptr)
6038 # void *ptr;
6039 # {
6040 # unsigned char *b = ptr;
6041 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6042 # }
6043 #
6044 # int
6045 # main (argc, argv)
6046 # int argc;
6047 # char *argv[];
6048 # {
6049 # int dll;
6050 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6051 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6052 # unsigned long name_rvas, nexp;
6053 # unsigned char *expdata, *erva;
6054 # char *filename, *dll_name;
6055 #
6056 # filename = argv[1];
6057 #
6058 # dll = open(filename, O_RDONLY|O_BINARY);
6059 # if (dll < 1)
6060 # return 1;
6061 #
6062 # dll_name = filename;
6063 #
6064 # for (i=0; filename[i]; i++)
6065 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6066 # dll_name = filename + i +1;
6067 #
6068 # pe_header_offset = pe_get32 (dll, 0x3c);
6069 # opthdr_ofs = pe_header_offset + 4 + 20;
6070 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6071 #
6072 # if (num_entries < 1) /* no exports */
6073 # return 1;
6074 #
6075 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6076 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6077 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6078 # secptr = (pe_header_offset + 4 + 20 +
6079 # pe_get16 (dll, pe_header_offset + 4 + 16));
6080 #
6081 # expptr = 0;
6082 # for (i = 0; i < nsections; i++)
6083 # {
6084 # char sname[8];
6085 # unsigned long secptr1 = secptr + 40 * i;
6086 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6087 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6088 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6089 # lseek(dll, secptr1, SEEK_SET);
6090 # read(dll, sname, 8);
6091 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6092 # {
6093 # expptr = fptr + (export_rva - vaddr);
6094 # if (export_rva + export_size > vaddr + vsize)
6095 # export_size = vsize - (export_rva - vaddr);
6096 # break;
6097 # }
6098 # }
6099 #
6100 # expdata = (unsigned char*)malloc(export_size);
6101 # lseek (dll, expptr, SEEK_SET);
6102 # read (dll, expdata, export_size);
6103 # erva = expdata - export_rva;
6104 #
6105 # nexp = pe_as32 (expdata+24);
6106 # name_rvas = pe_as32 (expdata+32);
6107 #
6108 # printf ("EXPORTS\n");
6109 # for (i = 0; i<nexp; i++)
6110 # {
6111 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6112 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6113 # }
6114 #
6115 # return 0;
6116 # }
6117 # /* impgen.c ends here */
6118
6119 EOF
6120 ;;
6121 esac
6122
6123 # We use sed instead of cat because bash on DJGPP gets confused if
6124 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6125 # text mode, it properly converts lines to CR/LF. This bash problem
6126 # is reportedly fixed, but why not run on old versions too?
6127 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6128
6129 mv -f "${ofile}T" "$ofile" || \
6130 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6131 chmod +x "$ofile"
6132 fi
6133
6134 # This can be used to rebuild libtool when needed
6135 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6136
6137 # Always use our own libtool.
6138 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6139
6140 # Prevent multiple expansion
6141
6142 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
6143 if test "${enable_compile_warnings+set}" = set; then
6144 enableval="$enable_compile_warnings"
6145
6146 else
6147 enable_compile_warnings=minimum
6148 fi;
6149
6150 echo "$as_me:6150: checking what warning flags to pass to the C compiler" >&5
6151 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
6152 warnCFLAGS=
6153 if test "x$GCC" != xyes; then
6154 enable_compile_warnings=no
6155 fi
6156 if test "x$enable_compile_warnings" != "xno"; then
6157 if test "x$GCC" = "xyes"; then
6158 case " $CFLAGS " in
6159 *\ \ -Wall\ \ *) ;;
6160 *) warnCFLAGS="-Wall -Wunused" ;;
6161 esac
6162
6163 ## -W is not all that useful. And it cannot be controlled
6164 ## with individual -Wno-xxx flags, unlike -Wall
6165 if test "x$enable_compile_warnings" = "xyes"; then
6166 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
6167 fi
6168 fi
6169 fi
6170 echo "$as_me:6170: result: $warnCFLAGS" >&5
6171 echo "${ECHO_T}$warnCFLAGS" >&6
6172
6173 # Check whether --enable-iso-c or --disable-iso-c was given.
6174 if test "${enable_iso_c+set}" = set; then
6175 enableval="$enable_iso_c"
6176
6177 else
6178 enable_iso_c=no
6179 fi;
6180
6181 echo "$as_me:6181: checking what language compliance flags to pass to the C compiler" >&5
6182 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
6183 complCFLAGS=
6184 if test "x$enable_iso_c" != "xno"; then
6185 if test "x$GCC" = "xyes"; then
6186 case " $CFLAGS " in
6187 *\ \ -ansi\ \ *) ;;
6188 *) complCFLAGS="$complCFLAGS -ansi" ;;
6189 esac
6190
6191 case " $CFLAGS " in
6192 *\ \ -pedantic\ \ *) ;;
6193 *) complCFLAGS="$complCFLAGS -pedantic" ;;
6194 esac
6195 fi
6196 fi
6197 echo "$as_me:6197: result: $complCFLAGS" >&5
6198 echo "${ECHO_T}$complCFLAGS" >&6
6199 if test "x$cflags_set" != "xyes"; then
6200 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
6201 cflags_set=yes
6202
6203 fi
6204
6205 # Check whether --with-imagemagick or --without-imagemagick was given.
6206 if test "${with_imagemagick+set}" = set; then
6207 withval="$with_imagemagick"
6208 IMAGEMAGICK=$withval
6209 else
6210 IMAGEMAGICK='yes'
6211 fi;
6212 if test x"$IMAGEMAGICK" != xno ; then
6213 # Extract the first word of "Magick-config", so it can be a program name with args.
6214 set dummy Magick-config; ac_word=$2
6215 echo "$as_me:6215: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 if test -n "$IMAGEMAGICK"; then
6221 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
6222 else
6223 ac_save_IFS=$IFS; IFS=$ac_path_separator
6224 ac_dummy="$PATH"
6225 for ac_dir in $ac_dummy; do
6226 IFS=$ac_save_IFS
6227 test -z "$ac_dir" && ac_dir=.
6228 $as_executable_p "$ac_dir/$ac_word" || continue
6229 ac_cv_prog_IMAGEMAGICK="yes"
6230 echo "$as_me:6230: found $ac_dir/$ac_word" >&5
6231 break
6232 done
6233
6234 test -z "$ac_cv_prog_IMAGEMAGICK" && ac_cv_prog_IMAGEMAGICK="no"
6235 fi
6236 fi
6237 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
6238 if test -n "$IMAGEMAGICK"; then
6239 echo "$as_me:6239: result: $IMAGEMAGICK" >&5
6240 echo "${ECHO_T}$IMAGEMAGICK" >&6
6241 else
6242 echo "$as_me:6242: result: no" >&5
6243 echo "${ECHO_T}no" >&6
6244 fi
6245
6246 if test x"$IMAGEMAGICK" != xno ; then
6247 CFLAGS_OLD="$CFLAGS"
6248 CPPFLAGS_OLD="$CPPFLAGS"
6249 LDFLAGS_OLD="$LDFLAGS"
6250 LIBS_OLD="$LIBS"
6251 CFLAGS="$CFLAGS `Magick-config --cflags`"
6252 CPPFLAGS="$CPPFLAGS `Magick-config --cppflags`"
6253 LDFLAGS="$LDFLAGS `Magick-config --ldflags`"
6254 LIBS="$LIBS `Magick-config --libs`"
6255
6256 echo "$as_me:6256: checking whether GetMagickInfo works" >&5
6257 echo $ECHO_N "checking whether GetMagickInfo works... $ECHO_C" >&6
6258 if test "$cross_compiling" = yes; then
6259 IMAGEMAGICK=yes
6260 else
6261 cat >conftest.$ac_ext <<_ACEOF
6262 #line 6262 "configure"
6263 #include "confdefs.h"
6264 #include <magick/magick.h>
6265 #include <magick/config.h>
6266 #include <stdio.h>
6267 extern void OpenModules(void);
6268 int main(void) { GetMagickInfo(NULL);
6269 #if defined(HasLTDL)
6270 OpenModules();
6271 #endif
6272 return (NULL == GetMagickInfo(NULL)); }
6273 _ACEOF
6274 rm -f conftest$ac_exeext
6275 if { (eval echo "$as_me:6275: \"$ac_link\"") >&5
6276 (eval $ac_link) 2>&5
6277 ac_status=$?
6278 echo "$as_me:6278: \$? = $ac_status" >&5
6279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6280 { (eval echo "$as_me:6280: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:6283: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 IMAGEMAGICK=yes
6286 else
6287 echo "$as_me: program exited with status $ac_status" >&5
6288 echo "$as_me: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6290 IMAGEMAGICK=no
6291 fi
6292 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
6293 fi
6294 echo "$as_me:6294: result: $IMAGEMAGICK" >&5
6295 echo "${ECHO_T}$IMAGEMAGICK" >&6
6296 LDFLAGS="$LDFLAGS_OLD"
6297 LIBS="$LIBS_OLD"
6298 if test x"$IMAGEMAGICK" = xno ; then
6299 CFLAGS="$CFLAGS_OLD"
6300 CPPFLAGS="$CPPFLAGS_OLD"
6301 fi
6302 fi
6303 fi
6304 if test x"$IMAGEMAGICK" = xyes ; then
6305 LIB_MAGICK="`Magick-config --libs` `Magick-config --ldflags`"
6306
6307 cat >>confdefs.h <<\EOF
6308 #define IMAGEMAGICK 1
6309 EOF
6310
6311 else
6312 LIB_MAGICK=
6313 fi
6314
6315 echo "$as_me:6315: checking for ANSI C header files" >&5
6316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6317 if test "${ac_cv_header_stdc+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320 cat >conftest.$ac_ext <<_ACEOF
6321 #line 6321 "configure"
6322 #include "confdefs.h"
6323 #include <stdlib.h>
6324 #include <stdarg.h>
6325 #include <string.h>
6326 #include <float.h>
6327
6328 _ACEOF
6329 if { (eval echo "$as_me:6329: \"$ac_cpp conftest.$ac_ext\"") >&5
6330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6331 ac_status=$?
6332 egrep -v '^ *\+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:6335: \$? = $ac_status" >&5
6336 (exit $ac_status); } >/dev/null; then
6337 if test -s conftest.err; then
6338 ac_cpp_err=$ac_c_preproc_warn_flag
6339 else
6340 ac_cpp_err=
6341 fi
6342 else
6343 ac_cpp_err=yes
6344 fi
6345 if test -z "$ac_cpp_err"; then
6346 ac_cv_header_stdc=yes
6347 else
6348 echo "$as_me: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6350 ac_cv_header_stdc=no
6351 fi
6352 rm -f conftest.err conftest.$ac_ext
6353
6354 if test $ac_cv_header_stdc = yes; then
6355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6356 cat >conftest.$ac_ext <<_ACEOF
6357 #line 6357 "configure"
6358 #include "confdefs.h"
6359 #include <string.h>
6360
6361 _ACEOF
6362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6363 egrep "memchr" >/dev/null 2>&1; then
6364 :
6365 else
6366 ac_cv_header_stdc=no
6367 fi
6368 rm -f conftest*
6369
6370 fi
6371
6372 if test $ac_cv_header_stdc = yes; then
6373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6374 cat >conftest.$ac_ext <<_ACEOF
6375 #line 6375 "configure"
6376 #include "confdefs.h"
6377 #include <stdlib.h>
6378
6379 _ACEOF
6380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6381 egrep "free" >/dev/null 2>&1; then
6382 :
6383 else
6384 ac_cv_header_stdc=no
6385 fi
6386 rm -f conftest*
6387
6388 fi
6389
6390 if test $ac_cv_header_stdc = yes; then
6391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6392 if test "$cross_compiling" = yes; then
6393 :
6394 else
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line 6396 "configure"
6397 #include "confdefs.h"
6398 #include <ctype.h>
6399 #if ((' ' & 0x0FF) == 0x020)
6400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6402 #else
6403 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6404 || ('j' <= (c) && (c) <= 'r') \
6405 || ('s' <= (c) && (c) <= 'z'))
6406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6407 #endif
6408
6409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6410 int
6411 main ()
6412 {
6413 int i;
6414 for (i = 0; i < 256; i++)
6415 if (XOR (islower (i), ISLOWER (i))
6416 || toupper (i) != TOUPPER (i))
6417 exit(2);
6418 exit (0);
6419 }
6420 _ACEOF
6421 rm -f conftest$ac_exeext
6422 if { (eval echo "$as_me:6422: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>&5
6424 ac_status=$?
6425 echo "$as_me:6425: \$? = $ac_status" >&5
6426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6427 { (eval echo "$as_me:6427: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:6430: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 :
6433 else
6434 echo "$as_me: program exited with status $ac_status" >&5
6435 echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6437 ac_cv_header_stdc=no
6438 fi
6439 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
6440 fi
6441 fi
6442 fi
6443 echo "$as_me:6443: result: $ac_cv_header_stdc" >&5
6444 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6445 if test $ac_cv_header_stdc = yes; then
6446
6447 cat >>confdefs.h <<\EOF
6448 #define STDC_HEADERS 1
6449 EOF
6450
6451 fi
6452
6453 for ac_header in unistd.h
6454 do
6455 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6456 echo "$as_me:6456: checking for $ac_header" >&5
6457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 cat >conftest.$ac_ext <<_ACEOF
6462 #line 6462 "configure"
6463 #include "confdefs.h"
6464 #include <$ac_header>
6465 _ACEOF
6466 if { (eval echo "$as_me:6466: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468 ac_status=$?
6469 egrep -v '^ *\+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:6472: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 else
6477 ac_cpp_err=
6478 fi
6479 else
6480 ac_cpp_err=yes
6481 fi
6482 if test -z "$ac_cpp_err"; then
6483 eval "$ac_ac_Header=yes"
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6487 eval "$ac_ac_Header=no"
6488 fi
6489 rm -f conftest.err conftest.$ac_ext
6490 fi
6491 echo "$as_me:6491: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6492 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6493 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6494 cat >>confdefs.h <<EOF
6495 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6496 EOF
6497
6498 fi
6499 done
6500
6501 echo "$as_me:6501: checking for $CC option to accept ANSI C" >&5
6502 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6503 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506 ac_cv_prog_cc_stdc=no
6507 ac_save_CC=$CC
6508 cat >conftest.$ac_ext <<_ACEOF
6509 #line 6509 "configure"
6510 #include "confdefs.h"
6511 #include <stdarg.h>
6512 #include <stdio.h>
6513 #include <sys/types.h>
6514 #include <sys/stat.h>
6515 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6516 struct buf { int x; };
6517 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6518 static char *e (p, i)
6519 char **p;
6520 int i;
6521 {
6522 return p[i];
6523 }
6524 static char *f (char * (*g) (char **, int), char **p, ...)
6525 {
6526 char *s;
6527 va_list v;
6528 va_start (v,p);
6529 s = g (p, va_arg (v,int));
6530 va_end (v);
6531 return s;
6532 }
6533 int test (int i, double x);
6534 struct s1 {int (*f) (int a);};
6535 struct s2 {int (*f) (double a);};
6536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6537 int argc;
6538 char **argv;
6539 int
6540 main ()
6541 {
6542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 # Don't try gcc -ansi; that turns off useful extensions and
6548 # breaks some systems' header files.
6549 # AIX -qlanglvl=ansi
6550 # Ultrix and OSF/1 -std1
6551 # HP-UX 10.20 and later -Ae
6552 # HP-UX older versions -Aa -D_HPUX_SOURCE
6553 # SVR4 -Xc -D__EXTENSIONS__
6554 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6555 do
6556 CC="$ac_save_CC $ac_arg"
6557 rm -f conftest.$ac_objext
6558 if { (eval echo "$as_me:6558: \"$ac_compile\"") >&5
6559 (eval $ac_compile) 2>&5
6560 ac_status=$?
6561 echo "$as_me:6561: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (eval echo "$as_me:6564: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:6567: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_cv_prog_cc_stdc=$ac_arg
6570 break
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6574 fi
6575 rm -f conftest.$ac_objext
6576 done
6577 rm -f conftest.$ac_ext conftest.$ac_objext
6578 CC=$ac_save_CC
6579
6580 fi
6581
6582 case "x$ac_cv_prog_cc_stdc" in
6583 x|xno)
6584 echo "$as_me:6584: result: none needed" >&5
6585 echo "${ECHO_T}none needed" >&6 ;;
6586 *)
6587 echo "$as_me:6587: result: $ac_cv_prog_cc_stdc" >&5
6588 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6589 CC="$CC $ac_cv_prog_cc_stdc" ;;
6590 esac
6591
6592 echo "$as_me:6592: checking for an ANSI C-conforming const" >&5
6593 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6594 if test "${ac_cv_c_const+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597 cat >conftest.$ac_ext <<_ACEOF
6598 #line 6598 "configure"
6599 #include "confdefs.h"
6600
6601 int
6602 main ()
6603 {
6604 /* FIXME: Include the comments suggested by Paul. */
6605 #ifndef __cplusplus
6606 /* Ultrix mips cc rejects this. */
6607 typedef int charset[2];
6608 const charset x;
6609 /* SunOS 4.1.1 cc rejects this. */
6610 char const *const *ccp;
6611 char **p;
6612 /* NEC SVR4.0.2 mips cc rejects this. */
6613 struct point {int x, y;};
6614 static struct point const zero = {0,0};
6615 /* AIX XL C 1.02.0.0 rejects this.
6616 It does not let you subtract one const X* pointer from another in
6617 an arm of an if-expression whose if-part is not a constant
6618 expression */
6619 const char *g = "string";
6620 ccp = &g + (g ? g-g : 0);
6621 /* HPUX 7.0 cc rejects these. */
6622 ++ccp;
6623 p = (char**) ccp;
6624 ccp = (char const *const *) p;
6625 { /* SCO 3.2v4 cc rejects this. */
6626 char *t;
6627 char const *s = 0 ? (char *) 0 : (char const *) 0;
6628
6629 *t++ = 0;
6630 }
6631 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6632 int x[] = {25, 17};
6633 const int *foo = &x[0];
6634 ++foo;
6635 }
6636 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6637 typedef const int *iptr;
6638 iptr p = 0;
6639 ++p;
6640 }
6641 { /* AIX XL C 1.02.0.0 rejects this saying
6642 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6643 struct s { int j; const int *ap[3]; };
6644 struct s *b; b->j = 5;
6645 }
6646 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6647 const int foo = 10;
6648 }
6649 #endif
6650
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 rm -f conftest.$ac_objext
6656 if { (eval echo "$as_me:6656: \"$ac_compile\"") >&5
6657 (eval $ac_compile) 2>&5
6658 ac_status=$?
6659 echo "$as_me:6659: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -s conftest.$ac_objext'
6662 { (eval echo "$as_me:6662: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:6665: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 ac_cv_c_const=yes
6668 else
6669 echo "$as_me: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 ac_cv_c_const=no
6672 fi
6673 rm -f conftest.$ac_objext conftest.$ac_ext
6674 fi
6675 echo "$as_me:6675: result: $ac_cv_c_const" >&5
6676 echo "${ECHO_T}$ac_cv_c_const" >&6
6677 if test $ac_cv_c_const = no; then
6678
6679 cat >>confdefs.h <<\EOF
6680 #define const
6681 EOF
6682
6683 fi
6684
6685 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
6686 do
6687 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6688 echo "$as_me:6688: checking for $ac_header" >&5
6689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6690 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 cat >conftest.$ac_ext <<_ACEOF
6694 #line 6694 "configure"
6695 #include "confdefs.h"
6696 #include <$ac_header>
6697 _ACEOF
6698 if { (eval echo "$as_me:6698: \"$ac_cpp conftest.$ac_ext\"") >&5
6699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6700 ac_status=$?
6701 egrep -v '^ *\+' conftest.er1 >conftest.err
6702 rm -f conftest.er1
6703 cat conftest.err >&5
6704 echo "$as_me:6704: \$? = $ac_status" >&5
6705 (exit $ac_status); } >/dev/null; then
6706 if test -s conftest.err; then
6707 ac_cpp_err=$ac_c_preproc_warn_flag
6708 else
6709 ac_cpp_err=
6710 fi
6711 else
6712 ac_cpp_err=yes
6713 fi
6714 if test -z "$ac_cpp_err"; then
6715 eval "$ac_ac_Header=yes"
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6719 eval "$ac_ac_Header=no"
6720 fi
6721 rm -f conftest.err conftest.$ac_ext
6722 fi
6723 echo "$as_me:6723: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6724 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6725 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6726 cat >>confdefs.h <<EOF
6727 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6728 EOF
6729
6730 fi
6731 done
6732
6733 echo "$as_me:6733: checking for size_t" >&5
6734 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6735 if test "${ac_cv_type_size_t+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 cat >conftest.$ac_ext <<_ACEOF
6739 #line 6739 "configure"
6740 #include "confdefs.h"
6741 $ac_includes_default
6742 int
6743 main ()
6744 {
6745 if ((size_t *) 0)
6746 return 0;
6747 if (sizeof (size_t))
6748 return 0;
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest.$ac_objext
6754 if { (eval echo "$as_me:6754: \"$ac_compile\"") >&5
6755 (eval $ac_compile) 2>&5
6756 ac_status=$?
6757 echo "$as_me:6757: \$? = $ac_status" >&5
6758 (exit $ac_status); } &&
6759 { ac_try='test -s conftest.$ac_objext'
6760 { (eval echo "$as_me:6760: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:6763: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_type_size_t=yes
6766 else
6767 echo "$as_me: failed program was:" >&5
6768 cat conftest.$ac_ext >&5
6769 ac_cv_type_size_t=no
6770 fi
6771 rm -f conftest.$ac_objext conftest.$ac_ext
6772 fi
6773 echo "$as_me:6773: result: $ac_cv_type_size_t" >&5
6774 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6775 if test $ac_cv_type_size_t = yes; then
6776 :
6777 else
6778
6779 cat >>confdefs.h <<EOF
6780 #define size_t unsigned
6781 EOF
6782
6783 fi
6784
6785 echo "$as_me:6785: checking for char" >&5
6786 echo $ECHO_N "checking for char... $ECHO_C" >&6
6787 if test "${ac_cv_type_char+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 cat >conftest.$ac_ext <<_ACEOF
6791 #line 6791 "configure"
6792 #include "confdefs.h"
6793 $ac_includes_default
6794 int
6795 main ()
6796 {
6797 if ((char *) 0)
6798 return 0;
6799 if (sizeof (char))
6800 return 0;
6801 ;
6802 return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext
6806 if { (eval echo "$as_me:6806: \"$ac_compile\"") >&5
6807 (eval $ac_compile) 2>&5
6808 ac_status=$?
6809 echo "$as_me:6809: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -s conftest.$ac_objext'
6812 { (eval echo "$as_me:6812: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:6815: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6817 ac_cv_type_char=yes
6818 else
6819 echo "$as_me: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6821 ac_cv_type_char=no
6822 fi
6823 rm -f conftest.$ac_objext conftest.$ac_ext
6824 fi
6825 echo "$as_me:6825: result: $ac_cv_type_char" >&5
6826 echo "${ECHO_T}$ac_cv_type_char" >&6
6827
6828 echo "$as_me:6828: checking size of char" >&5
6829 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6830 if test "${ac_cv_sizeof_char+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 if test "$ac_cv_type_char" = yes; then
6834 if test "$cross_compiling" = yes; then
6835 # Depending upon the size, compute the lo and hi bounds.
6836 cat >conftest.$ac_ext <<_ACEOF
6837 #line 6837 "configure"
6838 #include "confdefs.h"
6839 $ac_includes_default
6840 int
6841 main ()
6842 {
6843 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 rm -f conftest.$ac_objext
6849 if { (eval echo "$as_me:6849: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 echo "$as_me:6852: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -s conftest.$ac_objext'
6855 { (eval echo "$as_me:6855: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:6858: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 ac_lo=0 ac_mid=0
6861 while :; do
6862 cat >conftest.$ac_ext <<_ACEOF
6863 #line 6863 "configure"
6864 #include "confdefs.h"
6865 $ac_includes_default
6866 int
6867 main ()
6868 {
6869 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (eval echo "$as_me:6875: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>&5
6877 ac_status=$?
6878 echo "$as_me:6878: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:6881: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:6884: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 ac_hi=$ac_mid; break
6887 else
6888 echo "$as_me: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6890 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
6891 fi
6892 rm -f conftest.$ac_objext conftest.$ac_ext
6893 done
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6897 ac_hi=-1 ac_mid=-1
6898 while :; do
6899 cat >conftest.$ac_ext <<_ACEOF
6900 #line 6900 "configure"
6901 #include "confdefs.h"
6902 $ac_includes_default
6903 int
6904 main ()
6905 {
6906 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
6907 ;
6908 return 0;
6909 }
6910 _ACEOF
6911 rm -f conftest.$ac_objext
6912 if { (eval echo "$as_me:6912: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>&5
6914 ac_status=$?
6915 echo "$as_me:6915: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try='test -s conftest.$ac_objext'
6918 { (eval echo "$as_me:6918: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:6921: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 ac_lo=$ac_mid; break
6924 else
6925 echo "$as_me: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6927 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
6928 fi
6929 rm -f conftest.$ac_objext conftest.$ac_ext
6930 done
6931 fi
6932 rm -f conftest.$ac_objext conftest.$ac_ext
6933 # Binary search between lo and hi bounds.
6934 while test "x$ac_lo" != "x$ac_hi"; do
6935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6936 cat >conftest.$ac_ext <<_ACEOF
6937 #line 6937 "configure"
6938 #include "confdefs.h"
6939 $ac_includes_default
6940 int
6941 main ()
6942 {
6943 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
6944 ;
6945 return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (eval echo "$as_me:6949: \"$ac_compile\"") >&5
6950 (eval $ac_compile) 2>&5
6951 ac_status=$?
6952 echo "$as_me:6952: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:6955: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:6958: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_hi=$ac_mid
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6964 ac_lo=`expr $ac_mid + 1`
6965 fi
6966 rm -f conftest.$ac_objext conftest.$ac_ext
6967 done
6968 ac_cv_sizeof_char=$ac_lo
6969 else
6970 if test "$cross_compiling" = yes; then
6971 { { echo "$as_me:6971: error: cannot run test program while cross compiling" >&5
6972 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6973 { (exit 1); exit 1; }; }
6974 else
6975 cat >conftest.$ac_ext <<_ACEOF
6976 #line 6976 "configure"
6977 #include "confdefs.h"
6978 $ac_includes_default
6979 int
6980 main ()
6981 {
6982 FILE *f = fopen ("conftest.val", "w");
6983 if (!f)
6984 exit (1);
6985 fprintf (f, "%d", (sizeof (char)));
6986 fclose (f);
6987 ;
6988 return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest$ac_exeext
6992 if { (eval echo "$as_me:6992: \"$ac_link\"") >&5
6993 (eval $ac_link) 2>&5
6994 ac_status=$?
6995 echo "$as_me:6995: \$? = $ac_status" >&5
6996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6997 { (eval echo "$as_me:6997: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:7000: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_cv_sizeof_char=`cat conftest.val`
7003 else
7004 echo "$as_me: program exited with status $ac_status" >&5
7005 echo "$as_me: failed program was:" >&5
7006 cat conftest.$ac_ext >&5
7007 fi
7008 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7009 fi
7010 fi
7011 rm -f conftest.val
7012 else
7013 ac_cv_sizeof_char=0
7014 fi
7015 fi
7016 echo "$as_me:7016: result: $ac_cv_sizeof_char" >&5
7017 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
7018 cat >>confdefs.h <<EOF
7019 #define SIZEOF_CHAR $ac_cv_sizeof_char
7020 EOF
7021
7022 echo "$as_me:7022: checking for short" >&5
7023 echo $ECHO_N "checking for short... $ECHO_C" >&6
7024 if test "${ac_cv_type_short+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 cat >conftest.$ac_ext <<_ACEOF
7028 #line 7028 "configure"
7029 #include "confdefs.h"
7030 $ac_includes_default
7031 int
7032 main ()
7033 {
7034 if ((short *) 0)
7035 return 0;
7036 if (sizeof (short))
7037 return 0;
7038 ;
7039 return 0;
7040 }
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:7043: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>&5
7045 ac_status=$?
7046 echo "$as_me:7046: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -s conftest.$ac_objext'
7049 { (eval echo "$as_me:7049: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:7052: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
7054 ac_cv_type_short=yes
7055 else
7056 echo "$as_me: failed program was:" >&5
7057 cat conftest.$ac_ext >&5
7058 ac_cv_type_short=no
7059 fi
7060 rm -f conftest.$ac_objext conftest.$ac_ext
7061 fi
7062 echo "$as_me:7062: result: $ac_cv_type_short" >&5
7063 echo "${ECHO_T}$ac_cv_type_short" >&6
7064
7065 echo "$as_me:7065: checking size of short" >&5
7066 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7067 if test "${ac_cv_sizeof_short+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 if test "$ac_cv_type_short" = yes; then
7071 if test "$cross_compiling" = yes; then
7072 # Depending upon the size, compute the lo and hi bounds.
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line 7074 "configure"
7075 #include "confdefs.h"
7076 $ac_includes_default
7077 int
7078 main ()
7079 {
7080 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
7081 ;
7082 return 0;
7083 }
7084 _ACEOF
7085 rm -f conftest.$ac_objext
7086 if { (eval echo "$as_me:7086: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>&5
7088 ac_status=$?
7089 echo "$as_me:7089: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:7092: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:7095: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 ac_lo=0 ac_mid=0
7098 while :; do
7099 cat >conftest.$ac_ext <<_ACEOF
7100 #line 7100 "configure"
7101 #include "confdefs.h"
7102 $ac_includes_default
7103 int
7104 main ()
7105 {
7106 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7107 ;
7108 return 0;
7109 }
7110 _ACEOF
7111 rm -f conftest.$ac_objext
7112 if { (eval echo "$as_me:7112: \"$ac_compile\"") >&5
7113 (eval $ac_compile) 2>&5
7114 ac_status=$?
7115 echo "$as_me:7115: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
7117 { ac_try='test -s conftest.$ac_objext'
7118 { (eval echo "$as_me:7118: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:7121: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_hi=$ac_mid; break
7124 else
7125 echo "$as_me: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7127 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7128 fi
7129 rm -f conftest.$ac_objext conftest.$ac_ext
7130 done
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 ac_hi=-1 ac_mid=-1
7135 while :; do
7136 cat >conftest.$ac_ext <<_ACEOF
7137 #line 7137 "configure"
7138 #include "confdefs.h"
7139 $ac_includes_default
7140 int
7141 main ()
7142 {
7143 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
7144 ;
7145 return 0;
7146 }
7147 _ACEOF
7148 rm -f conftest.$ac_objext
7149 if { (eval echo "$as_me:7149: \"$ac_compile\"") >&5
7150 (eval $ac_compile) 2>&5
7151 ac_status=$?
7152 echo "$as_me:7152: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:7155: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:7158: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_lo=$ac_mid; break
7161 else
7162 echo "$as_me: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7164 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7165 fi
7166 rm -f conftest.$ac_objext conftest.$ac_ext
7167 done
7168 fi
7169 rm -f conftest.$ac_objext conftest.$ac_ext
7170 # Binary search between lo and hi bounds.
7171 while test "x$ac_lo" != "x$ac_hi"; do
7172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7173 cat >conftest.$ac_ext <<_ACEOF
7174 #line 7174 "configure"
7175 #include "confdefs.h"
7176 $ac_includes_default
7177 int
7178 main ()
7179 {
7180 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest.$ac_objext
7186 if { (eval echo "$as_me:7186: \"$ac_compile\"") >&5
7187 (eval $ac_compile) 2>&5
7188 ac_status=$?
7189 echo "$as_me:7189: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -s conftest.$ac_objext'
7192 { (eval echo "$as_me:7192: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 ac_hi=$ac_mid
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 cat conftest.$ac_ext >&5
7201 ac_lo=`expr $ac_mid + 1`
7202 fi
7203 rm -f conftest.$ac_objext conftest.$ac_ext
7204 done
7205 ac_cv_sizeof_short=$ac_lo
7206 else
7207 if test "$cross_compiling" = yes; then
7208 { { echo "$as_me:7208: error: cannot run test program while cross compiling" >&5
7209 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7210 { (exit 1); exit 1; }; }
7211 else
7212 cat >conftest.$ac_ext <<_ACEOF
7213 #line 7213 "configure"
7214 #include "confdefs.h"
7215 $ac_includes_default
7216 int
7217 main ()
7218 {
7219 FILE *f = fopen ("conftest.val", "w");
7220 if (!f)
7221 exit (1);
7222 fprintf (f, "%d", (sizeof (short)));
7223 fclose (f);
7224 ;
7225 return 0;
7226 }
7227 _ACEOF
7228 rm -f conftest$ac_exeext
7229 if { (eval echo "$as_me:7229: \"$ac_link\"") >&5
7230 (eval $ac_link) 2>&5
7231 ac_status=$?
7232 echo "$as_me:7232: \$? = $ac_status" >&5
7233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7234 { (eval echo "$as_me:7234: \"$ac_try\"") >&5
7235 (eval $ac_try) 2>&5
7236 ac_status=$?
7237 echo "$as_me:7237: \$? = $ac_status" >&5
7238 (exit $ac_status); }; }; then
7239 ac_cv_sizeof_short=`cat conftest.val`
7240 else
7241 echo "$as_me: program exited with status $ac_status" >&5
7242 echo "$as_me: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7244 fi
7245 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7246 fi
7247 fi
7248 rm -f conftest.val
7249 else
7250 ac_cv_sizeof_short=0
7251 fi
7252 fi
7253 echo "$as_me:7253: result: $ac_cv_sizeof_short" >&5
7254 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7255 cat >>confdefs.h <<EOF
7256 #define SIZEOF_SHORT $ac_cv_sizeof_short
7257 EOF
7258
7259 echo "$as_me:7259: checking for int" >&5
7260 echo $ECHO_N "checking for int... $ECHO_C" >&6
7261 if test "${ac_cv_type_int+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264 cat >conftest.$ac_ext <<_ACEOF
7265 #line 7265 "configure"
7266 #include "confdefs.h"
7267 $ac_includes_default
7268 int
7269 main ()
7270 {
7271 if ((int *) 0)
7272 return 0;
7273 if (sizeof (int))
7274 return 0;
7275 ;
7276 return 0;
7277 }
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (eval echo "$as_me:7280: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>&5
7282 ac_status=$?
7283 echo "$as_me:7283: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:7286: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:7289: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_type_int=yes
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 ac_cv_type_int=no
7296 fi
7297 rm -f conftest.$ac_objext conftest.$ac_ext
7298 fi
7299 echo "$as_me:7299: result: $ac_cv_type_int" >&5
7300 echo "${ECHO_T}$ac_cv_type_int" >&6
7301
7302 echo "$as_me:7302: checking size of int" >&5
7303 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7304 if test "${ac_cv_sizeof_int+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307 if test "$ac_cv_type_int" = yes; then
7308 if test "$cross_compiling" = yes; then
7309 # Depending upon the size, compute the lo and hi bounds.
7310 cat >conftest.$ac_ext <<_ACEOF
7311 #line 7311 "configure"
7312 #include "confdefs.h"
7313 $ac_includes_default
7314 int
7315 main ()
7316 {
7317 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
7318 ;
7319 return 0;
7320 }
7321 _ACEOF
7322 rm -f conftest.$ac_objext
7323 if { (eval echo "$as_me:7323: \"$ac_compile\"") >&5
7324 (eval $ac_compile) 2>&5
7325 ac_status=$?
7326 echo "$as_me:7326: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -s conftest.$ac_objext'
7329 { (eval echo "$as_me:7329: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:7332: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 ac_lo=0 ac_mid=0
7335 while :; do
7336 cat >conftest.$ac_ext <<_ACEOF
7337 #line 7337 "configure"
7338 #include "confdefs.h"
7339 $ac_includes_default
7340 int
7341 main ()
7342 {
7343 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (eval echo "$as_me:7349: \"$ac_compile\"") >&5
7350 (eval $ac_compile) 2>&5
7351 ac_status=$?
7352 echo "$as_me:7352: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:7355: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:7358: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_hi=$ac_mid; break
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7364 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7365 fi
7366 rm -f conftest.$ac_objext conftest.$ac_ext
7367 done
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7371 ac_hi=-1 ac_mid=-1
7372 while :; do
7373 cat >conftest.$ac_ext <<_ACEOF
7374 #line 7374 "configure"
7375 #include "confdefs.h"
7376 $ac_includes_default
7377 int
7378 main ()
7379 {
7380 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
7381 ;
7382 return 0;
7383 }
7384 _ACEOF
7385 rm -f conftest.$ac_objext
7386 if { (eval echo "$as_me:7386: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>&5
7388 ac_status=$?
7389 echo "$as_me:7389: \$? = $ac_status" >&5
7390 (exit $ac_status); } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:7392: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:7395: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_lo=$ac_mid; break
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 cat conftest.$ac_ext >&5
7401 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7402 fi
7403 rm -f conftest.$ac_objext conftest.$ac_ext
7404 done
7405 fi
7406 rm -f conftest.$ac_objext conftest.$ac_ext
7407 # Binary search between lo and hi bounds.
7408 while test "x$ac_lo" != "x$ac_hi"; do
7409 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7410 cat >conftest.$ac_ext <<_ACEOF
7411 #line 7411 "configure"
7412 #include "confdefs.h"
7413 $ac_includes_default
7414 int
7415 main ()
7416 {
7417 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 rm -f conftest.$ac_objext
7423 if { (eval echo "$as_me:7423: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>&5
7425 ac_status=$?
7426 echo "$as_me:7426: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -s conftest.$ac_objext'
7429 { (eval echo "$as_me:7429: \"$ac_try\"") >&5
7430 (eval $ac_try) 2>&5
7431 ac_status=$?
7432 echo "$as_me:7432: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7434 ac_hi=$ac_mid
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7438 ac_lo=`expr $ac_mid + 1`
7439 fi
7440 rm -f conftest.$ac_objext conftest.$ac_ext
7441 done
7442 ac_cv_sizeof_int=$ac_lo
7443 else
7444 if test "$cross_compiling" = yes; then
7445 { { echo "$as_me:7445: error: cannot run test program while cross compiling" >&5
7446 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7447 { (exit 1); exit 1; }; }
7448 else
7449 cat >conftest.$ac_ext <<_ACEOF
7450 #line 7450 "configure"
7451 #include "confdefs.h"
7452 $ac_includes_default
7453 int
7454 main ()
7455 {
7456 FILE *f = fopen ("conftest.val", "w");
7457 if (!f)
7458 exit (1);
7459 fprintf (f, "%d", (sizeof (int)));
7460 fclose (f);
7461 ;
7462 return 0;
7463 }
7464 _ACEOF
7465 rm -f conftest$ac_exeext
7466 if { (eval echo "$as_me:7466: \"$ac_link\"") >&5
7467 (eval $ac_link) 2>&5
7468 ac_status=$?
7469 echo "$as_me:7469: \$? = $ac_status" >&5
7470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7471 { (eval echo "$as_me:7471: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:7474: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_cv_sizeof_int=`cat conftest.val`
7477 else
7478 echo "$as_me: program exited with status $ac_status" >&5
7479 echo "$as_me: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7481 fi
7482 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7483 fi
7484 fi
7485 rm -f conftest.val
7486 else
7487 ac_cv_sizeof_int=0
7488 fi
7489 fi
7490 echo "$as_me:7490: result: $ac_cv_sizeof_int" >&5
7491 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7492 cat >>confdefs.h <<EOF
7493 #define SIZEOF_INT $ac_cv_sizeof_int
7494 EOF
7495
7496 echo "$as_me:7496: checking for long" >&5
7497 echo $ECHO_N "checking for long... $ECHO_C" >&6
7498 if test "${ac_cv_type_long+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 cat >conftest.$ac_ext <<_ACEOF
7502 #line 7502 "configure"
7503 #include "confdefs.h"
7504 $ac_includes_default
7505 int
7506 main ()
7507 {
7508 if ((long *) 0)
7509 return 0;
7510 if (sizeof (long))
7511 return 0;
7512 ;
7513 return 0;
7514 }
7515 _ACEOF
7516 rm -f conftest.$ac_objext
7517 if { (eval echo "$as_me:7517: \"$ac_compile\"") >&5
7518 (eval $ac_compile) 2>&5
7519 ac_status=$?
7520 echo "$as_me:7520: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -s conftest.$ac_objext'
7523 { (eval echo "$as_me:7523: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:7526: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_cv_type_long=yes
7529 else
7530 echo "$as_me: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7532 ac_cv_type_long=no
7533 fi
7534 rm -f conftest.$ac_objext conftest.$ac_ext
7535 fi
7536 echo "$as_me:7536: result: $ac_cv_type_long" >&5
7537 echo "${ECHO_T}$ac_cv_type_long" >&6
7538
7539 echo "$as_me:7539: checking size of long" >&5
7540 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7541 if test "${ac_cv_sizeof_long+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544 if test "$ac_cv_type_long" = yes; then
7545 if test "$cross_compiling" = yes; then
7546 # Depending upon the size, compute the lo and hi bounds.
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line 7548 "configure"
7549 #include "confdefs.h"
7550 $ac_includes_default
7551 int
7552 main ()
7553 {
7554 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
7555 ;
7556 return 0;
7557 }
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (eval echo "$as_me:7560: \"$ac_compile\"") >&5
7561 (eval $ac_compile) 2>&5
7562 ac_status=$?
7563 echo "$as_me:7563: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -s conftest.$ac_objext'
7566 { (eval echo "$as_me:7566: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:7569: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 ac_lo=0 ac_mid=0
7572 while :; do
7573 cat >conftest.$ac_ext <<_ACEOF
7574 #line 7574 "configure"
7575 #include "confdefs.h"
7576 $ac_includes_default
7577 int
7578 main ()
7579 {
7580 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7581 ;
7582 return 0;
7583 }
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (eval echo "$as_me:7586: \"$ac_compile\"") >&5
7587 (eval $ac_compile) 2>&5
7588 ac_status=$?
7589 echo "$as_me:7589: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:7592: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:7595: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_hi=$ac_mid; break
7598 else
7599 echo "$as_me: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7601 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7602 fi
7603 rm -f conftest.$ac_objext conftest.$ac_ext
7604 done
7605 else
7606 echo "$as_me: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7608 ac_hi=-1 ac_mid=-1
7609 while :; do
7610 cat >conftest.$ac_ext <<_ACEOF
7611 #line 7611 "configure"
7612 #include "confdefs.h"
7613 $ac_includes_default
7614 int
7615 main ()
7616 {
7617 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
7618 ;
7619 return 0;
7620 }
7621 _ACEOF
7622 rm -f conftest.$ac_objext
7623 if { (eval echo "$as_me:7623: \"$ac_compile\"") >&5
7624 (eval $ac_compile) 2>&5
7625 ac_status=$?
7626 echo "$as_me:7626: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -s conftest.$ac_objext'
7629 { (eval echo "$as_me:7629: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:7632: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 ac_lo=$ac_mid; break
7635 else
7636 echo "$as_me: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7638 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7639 fi
7640 rm -f conftest.$ac_objext conftest.$ac_ext
7641 done
7642 fi
7643 rm -f conftest.$ac_objext conftest.$ac_ext
7644 # Binary search between lo and hi bounds.
7645 while test "x$ac_lo" != "x$ac_hi"; do
7646 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7647 cat >conftest.$ac_ext <<_ACEOF
7648 #line 7648 "configure"
7649 #include "confdefs.h"
7650 $ac_includes_default
7651 int
7652 main ()
7653 {
7654 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7655 ;
7656 return 0;
7657 }
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (eval echo "$as_me:7660: \"$ac_compile\"") >&5
7661 (eval $ac_compile) 2>&5
7662 ac_status=$?
7663 echo "$as_me:7663: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:7666: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_hi=$ac_mid
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7675 ac_lo=`expr $ac_mid + 1`
7676 fi
7677 rm -f conftest.$ac_objext conftest.$ac_ext
7678 done
7679 ac_cv_sizeof_long=$ac_lo
7680 else
7681 if test "$cross_compiling" = yes; then
7682 { { echo "$as_me:7682: error: cannot run test program while cross compiling" >&5
7683 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7684 { (exit 1); exit 1; }; }
7685 else
7686 cat >conftest.$ac_ext <<_ACEOF
7687 #line 7687 "configure"
7688 #include "confdefs.h"
7689 $ac_includes_default
7690 int
7691 main ()
7692 {
7693 FILE *f = fopen ("conftest.val", "w");
7694 if (!f)
7695 exit (1);
7696 fprintf (f, "%d", (sizeof (long)));
7697 fclose (f);
7698 ;
7699 return 0;
7700 }
7701 _ACEOF
7702 rm -f conftest$ac_exeext
7703 if { (eval echo "$as_me:7703: \"$ac_link\"") >&5
7704 (eval $ac_link) 2>&5
7705 ac_status=$?
7706 echo "$as_me:7706: \$? = $ac_status" >&5
7707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7708 { (eval echo "$as_me:7708: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:7711: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 ac_cv_sizeof_long=`cat conftest.val`
7714 else
7715 echo "$as_me: program exited with status $ac_status" >&5
7716 echo "$as_me: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 fi
7719 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7720 fi
7721 fi
7722 rm -f conftest.val
7723 else
7724 ac_cv_sizeof_long=0
7725 fi
7726 fi
7727 echo "$as_me:7727: result: $ac_cv_sizeof_long" >&5
7728 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7729 cat >>confdefs.h <<EOF
7730 #define SIZEOF_LONG $ac_cv_sizeof_long
7731 EOF
7732
7733 echo "$as_me:7733: checking for an 8 bit integer type" >&5
7734 echo $ECHO_N "checking for an 8 bit integer type... $ECHO_C" >&6
7735 if test $ac_cv_sizeof_char -ge 1 ; then
7736 INT_8_BIT=char
7737 echo "$as_me:7737: result: char" >&5
7738 echo "${ECHO_T}char" >&6
7739 elif test $ac_cv_sizeof_short -ge 1 ; then
7740 INT_8_BIT=short
7741 echo "$as_me:7741: result: short" >&5
7742 echo "${ECHO_T}short" >&6
7743 elif test $ac_cv_sizeof_int -ge 1 ; then
7744 INT_8_BIT=int
7745 echo "$as_me:7745: result: int" >&5
7746 echo "${ECHO_T}int" >&6
7747 elif test $ac_cv_sizeof_long -ge 1 ; then
7748 INT_8_BIT=long
7749 echo "$as_me:7749: result: long" >&5
7750 echo "${ECHO_T}long" >&6
7751 else
7752 { { echo "$as_me:7752: error: No integer type of at least 8 bits found" >&5
7753 echo "$as_me: error: No integer type of at least 8 bits found" >&2;}
7754 { (exit 1); exit 1; }; }
7755 fi
7756
7757 echo "$as_me:7757: checking for a 16 bit integer type" >&5
7758 echo $ECHO_N "checking for a 16 bit integer type... $ECHO_C" >&6
7759 if test $ac_cv_sizeof_char -ge 2 ; then
7760 INT_16_BIT=char
7761 echo "$as_me:7761: result: char" >&5
7762 echo "${ECHO_T}char" >&6
7763 elif test $ac_cv_sizeof_short -ge 2 ; then
7764 INT_16_BIT=short
7765 echo "$as_me:7765: result: short" >&5
7766 echo "${ECHO_T}short" >&6
7767 elif test $ac_cv_sizeof_int -ge 2 ; then
7768 INT_16_BIT=int
7769 echo "$as_me:7769: result: int" >&5
7770 echo "${ECHO_T}int" >&6
7771 elif test $ac_cv_sizeof_long -ge 2 ; then
7772 INT_16_BIT=long
7773 echo "$as_me:7773: result: long" >&5
7774 echo "${ECHO_T}long" >&6
7775 else
7776 { { echo "$as_me:7776: error: No integer type of at least 16 bits found" >&5
7777 echo "$as_me: error: No integer type of at least 16 bits found" >&2;}
7778 { (exit 1); exit 1; }; }
7779 fi
7780
7781 echo "$as_me:7781: checking for a 32 bit integer type" >&5
7782 echo $ECHO_N "checking for a 32 bit integer type... $ECHO_C" >&6
7783 if test $ac_cv_sizeof_char -ge 4 ; then
7784 INT_32_BIT=char
7785 echo "$as_me:7785: result: char" >&5
7786 echo "${ECHO_T}char" >&6
7787 elif test $ac_cv_sizeof_short -ge 4 ; then
7788 INT_32_BIT=short
7789 echo "$as_me:7789: result: short" >&5
7790 echo "${ECHO_T}short" >&6
7791 elif test $ac_cv_sizeof_int -ge 4 ; then
7792 INT_32_BIT=int
7793 echo "$as_me:7793: result: int" >&5
7794 echo "${ECHO_T}int" >&6
7795 elif test $ac_cv_sizeof_long -ge 4 ; then
7796 INT_32_BIT=long
7797 echo "$as_me:7797: result: long" >&5
7798 echo "${ECHO_T}long" >&6
7799 else
7800 { { echo "$as_me:7800: error: No integer type of at least 32 bits found" >&5
7801 echo "$as_me: error: No integer type of at least 32 bits found" >&2;}
7802 { (exit 1); exit 1; }; }
7803 fi
7804
7805 for ac_func in vprintf
7806 do
7807 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7808 echo "$as_me:7808: checking for $ac_func" >&5
7809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7810 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813 cat >conftest.$ac_ext <<_ACEOF
7814 #line 7814 "configure"
7815 #include "confdefs.h"
7816 /* System header to define __stub macros and hopefully few prototypes,
7817 which can conflict with char $ac_func (); below. */
7818 #include <assert.h>
7819 /* Override any gcc2 internal prototype to avoid an error. */
7820 #ifdef __cplusplus
7821 extern "C"
7822 #endif
7823 /* We use char because int might match the return type of a gcc2
7824 builtin and then its argument prototype would still apply. */
7825 char $ac_func ();
7826 char (*f) ();
7827
7828 int
7829 main ()
7830 {
7831 /* The GNU C library defines this for functions which it implements
7832 to always fail with ENOSYS. Some functions are actually named
7833 something starting with __ and the normal name is an alias. */
7834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7835 choke me
7836 #else
7837 f = $ac_func;
7838 #endif
7839
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 rm -f conftest.$ac_objext conftest$ac_exeext
7845 if { (eval echo "$as_me:7845: \"$ac_link\"") >&5
7846 (eval $ac_link) 2>&5
7847 ac_status=$?
7848 echo "$as_me:7848: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -s conftest$ac_exeext'
7851 { (eval echo "$as_me:7851: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5
7853 ac_status=$?
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 eval "$ac_ac_var=yes"
7857 else
7858 echo "$as_me: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7860 eval "$ac_ac_var=no"
7861 fi
7862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7863 fi
7864 echo "$as_me:7864: result: `eval echo '${'$ac_ac_var'}'`" >&5
7865 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7866 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7867 cat >>confdefs.h <<EOF
7868 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7869 EOF
7870
7871 echo "$as_me:7871: checking for _doprnt" >&5
7872 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7873 if test "${ac_cv_func__doprnt+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876 cat >conftest.$ac_ext <<_ACEOF
7877 #line 7877 "configure"
7878 #include "confdefs.h"
7879 /* System header to define __stub macros and hopefully few prototypes,
7880 which can conflict with char _doprnt (); below. */
7881 #include <assert.h>
7882 /* Override any gcc2 internal prototype to avoid an error. */
7883 #ifdef __cplusplus
7884 extern "C"
7885 #endif
7886 /* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7888 char _doprnt ();
7889 char (*f) ();
7890
7891 int
7892 main ()
7893 {
7894 /* The GNU C library defines this for functions which it implements
7895 to always fail with ENOSYS. Some functions are actually named
7896 something starting with __ and the normal name is an alias. */
7897 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7898 choke me
7899 #else
7900 f = _doprnt;
7901 #endif
7902
7903 ;
7904 return 0;
7905 }
7906 _ACEOF
7907 rm -f conftest.$ac_objext conftest$ac_exeext
7908 if { (eval echo "$as_me:7908: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>&5
7910 ac_status=$?
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try='test -s conftest$ac_exeext'
7914 { (eval echo "$as_me:7914: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:7917: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7919 ac_cv_func__doprnt=yes
7920 else
7921 echo "$as_me: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7923 ac_cv_func__doprnt=no
7924 fi
7925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7926 fi
7927 echo "$as_me:7927: result: $ac_cv_func__doprnt" >&5
7928 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7929 if test $ac_cv_func__doprnt = yes; then
7930
7931 cat >>confdefs.h <<\EOF
7932 #define HAVE_DOPRNT 1
7933 EOF
7934
7935 fi
7936
7937 fi
7938 done
7939
7940 for ac_func in strdup
7941 do
7942 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7943 echo "$as_me:7943: checking for $ac_func" >&5
7944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7945 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948 cat >conftest.$ac_ext <<_ACEOF
7949 #line 7949 "configure"
7950 #include "confdefs.h"
7951 /* System header to define __stub macros and hopefully few prototypes,
7952 which can conflict with char $ac_func (); below. */
7953 #include <assert.h>
7954 /* Override any gcc2 internal prototype to avoid an error. */
7955 #ifdef __cplusplus
7956 extern "C"
7957 #endif
7958 /* We use char because int might match the return type of a gcc2
7959 builtin and then its argument prototype would still apply. */
7960 char $ac_func ();
7961 char (*f) ();
7962
7963 int
7964 main ()
7965 {
7966 /* The GNU C library defines this for functions which it implements
7967 to always fail with ENOSYS. Some functions are actually named
7968 something starting with __ and the normal name is an alias. */
7969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7970 choke me
7971 #else
7972 f = $ac_func;
7973 #endif
7974
7975 ;
7976 return 0;
7977 }
7978 _ACEOF
7979 rm -f conftest.$ac_objext conftest$ac_exeext
7980 if { (eval echo "$as_me:7980: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>&5
7982 ac_status=$?
7983 echo "$as_me:7983: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -s conftest$ac_exeext'
7986 { (eval echo "$as_me:7986: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:7989: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 eval "$ac_ac_var=yes"
7992 else
7993 echo "$as_me: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7995 eval "$ac_ac_var=no"
7996 fi
7997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7998 fi
7999 echo "$as_me:7999: result: `eval echo '${'$ac_ac_var'}'`" >&5
8000 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8001 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8002 cat >>confdefs.h <<EOF
8003 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8004 EOF
8005
8006 else
8007 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8008 fi
8009 done
8010
8011 for ac_func in getopt_long
8012 do
8013 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8014 echo "$as_me:8014: checking for $ac_func" >&5
8015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8016 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 cat >conftest.$ac_ext <<_ACEOF
8020 #line 8020 "configure"
8021 #include "confdefs.h"
8022 /* System header to define __stub macros and hopefully few prototypes,
8023 which can conflict with char $ac_func (); below. */
8024 #include <assert.h>
8025 /* Override any gcc2 internal prototype to avoid an error. */
8026 #ifdef __cplusplus
8027 extern "C"
8028 #endif
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8031 char $ac_func ();
8032 char (*f) ();
8033
8034 int
8035 main ()
8036 {
8037 /* The GNU C library defines this for functions which it implements
8038 to always fail with ENOSYS. Some functions are actually named
8039 something starting with __ and the normal name is an alias. */
8040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8041 choke me
8042 #else
8043 f = $ac_func;
8044 #endif
8045
8046 ;
8047 return 0;
8048 }
8049 _ACEOF
8050 rm -f conftest.$ac_objext conftest$ac_exeext
8051 if { (eval echo "$as_me:8051: \"$ac_link\"") >&5
8052 (eval $ac_link) 2>&5
8053 ac_status=$?
8054 echo "$as_me:8054: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -s conftest$ac_exeext'
8057 { (eval echo "$as_me:8057: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:8060: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 eval "$ac_ac_var=yes"
8063 else
8064 echo "$as_me: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8066 eval "$ac_ac_var=no"
8067 fi
8068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8069 fi
8070 echo "$as_me:8070: result: `eval echo '${'$ac_ac_var'}'`" >&5
8071 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8072 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8073 cat >>confdefs.h <<EOF
8074 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8075 EOF
8076
8077 else
8078 LIBOBJS="$LIBOBJS getopt.lo getopt1.lo"
8079 fi
8080 done
8081
8082 # Check whether --enable-html-docs or --disable-html-docs was given.
8083 if test "${enable_html_docs+set}" = set; then
8084 enableval="$enable_html_docs"
8085 case "${enableval}" in
8086 yes) htmldocs=true ;;
8087 no) htmldocs=false ;;
8088 *) { { echo "$as_me:8088: error: bad value ${enableval} for --enable-html-docs" >&5
8089 echo "$as_me: error: bad value ${enableval} for --enable-html-docs" >&2;}
8090 { (exit 1); exit 1; }; } ;;
8091 esac
8092 else
8093 htmldocs=true
8094 fi;
8095
8096 if test x$htmldocs = xtrue; then
8097 HTMLDOCS_TRUE=
8098 HTMLDOCS_FALSE='#'
8099 else
8100 HTMLDOCS_TRUE='#'
8101 HTMLDOCS_FALSE=
8102 fi
8103
8104 # Check whether --enable-html4-docs or --disable-html4-docs was given.
8105 if test "${enable_html4_docs+set}" = set; then
8106 enableval="$enable_html4_docs"
8107 case "${enableval}" in
8108 yes) html4docs=true ;;
8109 no) html4docs=false ;;
8110 *) { { echo "$as_me:8110: error: bad value ${enableval} for --enable-html4-docs" >&5
8111 echo "$as_me: error: bad value ${enableval} for --enable-html4-docs" >&2;}
8112 { (exit 1); exit 1; }; } ;;
8113 esac
8114 else
8115 html4docs=false
8116 fi;
8117
8118 if test x$html4docs = xtrue; then
8119 HTML4DOCS_TRUE=
8120 HTML4DOCS_FALSE='#'
8121 else
8122 HTML4DOCS_TRUE='#'
8123 HTML4DOCS_FALSE=
8124 fi
8125
8126 # Check whether --enable-ascii-docs or --disable-ascii-docs was given.
8127 if test "${enable_ascii_docs+set}" = set; then
8128 enableval="$enable_ascii_docs"
8129 case "${enableval}" in
8130 yes) asciidocs=true ;;
8131 no) asciidocs=false ;;
8132 *) { { echo "$as_me:8132: error: bad value ${enableval} for --enable-ascii-docs" >&5
8133 echo "$as_me: error: bad value ${enableval} for --enable-ascii-docs" >&2;}
8134 { (exit 1); exit 1; }; } ;;
8135 esac
8136 else
8137 asciidocs=false
8138 fi;
8139
8140 if test x$asciidocs = xtrue; then
8141 ASCIIDOCS_TRUE=
8142 ASCIIDOCS_FALSE='#'
8143 else
8144 ASCIIDOCS_TRUE='#'
8145 ASCIIDOCS_FALSE=
8146 fi
8147
8148 # Check whether --enable-rtf-docs or --disable-rtf-docs was given.
8149 if test "${enable_rtf_docs+set}" = set; then
8150 enableval="$enable_rtf_docs"
8151 case "${enableval}" in
8152 yes) rtfdocs=true ;;
8153 no) rtfdocs=false ;;
8154 *) { { echo "$as_me:8154: error: bad value ${enableval} for --enable-rtf-docs" >&5
8155 echo "$as_me: error: bad value ${enableval} for --enable-rtf-docs" >&2;}
8156 { (exit 1); exit 1; }; } ;;
8157 esac
8158 else
8159 rtfdocs=false
8160 fi;
8161
8162 if test x$rtfdocs = xtrue; then
8163 RTFDOCS_TRUE=
8164 RTFDOCS_FALSE='#'
8165 else
8166 RTFDOCS_TRUE='#'
8167 RTFDOCS_FALSE=
8168 fi
8169
8170 ac_config_files="$ac_config_files Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile extra/Makefile"
8171
8172 cat >confcache <<\_ACEOF
8173 # This file is a shell script that caches the results of configure
8174 # tests run on this system so they can be shared between configure
8175 # scripts and configure runs, see configure's option --config-cache.
8176 # It is not useful on other systems. If it contains results you don't
8177 # want to keep, you may remove or edit it.
8178 #
8179 # config.status only pays attention to the cache file if you give it
8180 # the --recheck option to rerun configure.
8181 #
8182 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8184 # following values.
8185
8186 _ACEOF
8187
8188 # The following way of writing the cache mishandles newlines in values,
8189 # but we know of no workaround that is simple, portable, and efficient.
8190 # So, don't put newlines in cache variables' values.
8191 # Ultrix sh set writes to stderr and can't be redirected directly,
8192 # and sets the high bit in the cache file unless we assign to the vars.
8193 {
8194 (set) 2>&1 |
8195 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8196 *ac_space=\ *)
8197 # `set' does not quote correctly, so add quotes (double-quote
8198 # substitution turns \\\\ into \\, and sed turns \\ into \).
8199 sed -n \
8200 "s/'/'\\\\''/g;
8201 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8202 ;;
8203 *)
8204 # `set' quotes correctly as required by POSIX, so do not add quotes.
8205 sed -n \
8206 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8207 ;;
8208 esac;
8209 } |
8210 sed '
8211 t clear
8212 : clear
8213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8214 t end
8215 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8216 : end' >>confcache
8217 if cmp -s $cache_file confcache; then :; else
8218 if test -w $cache_file; then
8219 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8220 cat confcache >$cache_file
8221 else
8222 echo "not updating unwritable cache $cache_file"
8223 fi
8224 fi
8225 rm -f confcache
8226
8227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8228 # Let make expand exec_prefix.
8229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8230
8231 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8232 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8233 # trailing colons and then remove the whole line if VPATH becomes empty
8234 # (actually we leave an empty line to preserve line numbers).
8235 if test "x$srcdir" = x.; then
8236 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8237 s/:*\$(srcdir):*/:/;
8238 s/:*\${srcdir}:*/:/;
8239 s/:*@srcdir@:*/:/;
8240 s/^\([^=]*=[ ]*\):*/\1/;
8241 s/:*$//;
8242 s/^[^=]*=[ ]*$//;
8243 }'
8244 fi
8245
8246 DEFS=-DHAVE_CONFIG_H
8247
8248 : ${CONFIG_STATUS=./config.status}
8249 ac_clean_files_save=$ac_clean_files
8250 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8251 { echo "$as_me:8251: creating $CONFIG_STATUS" >&5
8252 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8253 cat >$CONFIG_STATUS <<_ACEOF
8254 #! $SHELL
8255 # Generated automatically by configure.
8256 # Run this file to recreate the current configuration.
8257 # Compiler output produced by configure, useful for debugging
8258 # configure, is in config.log if it exists.
8259
8260 debug=false
8261 SHELL=\${CONFIG_SHELL-$SHELL}
8262 ac_cs_invocation="\$0 \$@"
8263
8264 _ACEOF
8265
8266 cat >>$CONFIG_STATUS <<\_ACEOF
8267 # Be Bourne compatible
8268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8269 emulate sh
8270 NULLCMD=:
8271 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8272 set -o posix
8273 fi
8274
8275 # Name of the executable.
8276 as_me=`echo "$0" |sed 's,.*[\\/],,'`
8277
8278 if expr a : '\(a\)' >/dev/null 2>&1; then
8279 as_expr=expr
8280 else
8281 as_expr=false
8282 fi
8283
8284 rm -f conf$$ conf$$.exe conf$$.file
8285 echo >conf$$.file
8286 if ln -s conf$$.file conf$$ 2>/dev/null; then
8287 # We could just check for DJGPP; but this test a) works b) is more generic
8288 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8289 if test -f conf$$.exe; then
8290 # Don't use ln at all; we don't have any links
8291 as_ln_s='cp -p'
8292 else
8293 as_ln_s='ln -s'
8294 fi
8295 elif ln conf$$.file conf$$ 2>/dev/null; then
8296 as_ln_s=ln
8297 else
8298 as_ln_s='cp -p'
8299 fi
8300 rm -f conf$$ conf$$.exe conf$$.file
8301
8302 as_executable_p="test -f"
8303
8304 # Support unset when possible.
8305 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8306 as_unset=unset
8307 else
8308 as_unset=false
8309 fi
8310
8311 # NLS nuisances.
8312 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8313 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8314 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8315 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8316 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8317 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8318 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8319 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8320
8321 # IFS
8322 # We need space, tab and new line, in precisely that order.
8323 as_nl='
8324 '
8325 IFS=" $as_nl"
8326
8327 # CDPATH.
8328 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8329
8330 exec 6>&1
8331
8332 _ACEOF
8333
8334 # Files that config.status was made for.
8335 if test -n "$ac_config_files"; then
8336 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8337 fi
8338
8339 if test -n "$ac_config_headers"; then
8340 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8341 fi
8342
8343 if test -n "$ac_config_links"; then
8344 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8345 fi
8346
8347 if test -n "$ac_config_commands"; then
8348 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8349 fi
8350
8351 cat >>$CONFIG_STATUS <<\EOF
8352
8353 ac_cs_usage="\
8354 \`$as_me' instantiates files from templates according to the
8355 current configuration.
8356
8357 Usage: $0 [OPTIONS] [FILE]...
8358
8359 -h, --help print this help, then exit
8360 -V, --version print version number, then exit
8361 -d, --debug don't remove temporary files
8362 --recheck update $as_me by reconfiguring in the same conditions
8363 --file=FILE[:TEMPLATE]
8364 instantiate the configuration file FILE
8365 --header=FILE[:TEMPLATE]
8366 instantiate the configuration header FILE
8367
8368 Configuration files:
8369 $config_files
8370
8371 Configuration headers:
8372 $config_headers
8373
8374 Configuration commands:
8375 $config_commands
8376
8377 Report bugs to <bug-autoconf@gnu.org>."
8378 EOF
8379
8380 cat >>$CONFIG_STATUS <<EOF
8381 ac_cs_version="\\
8382 config.status
8383 configured by $0, generated by GNU Autoconf 2.50,
8384 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8385
8386 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8387 Free Software Foundation, Inc.
8388 This config.status script is free software; the Free Software Foundation
8389 gives unlimited permission to copy, distribute and modify it."
8390 srcdir=$srcdir
8391 INSTALL="$INSTALL"
8392 EOF
8393
8394 cat >>$CONFIG_STATUS <<\EOF
8395 # If no file are specified by the user, then we need to provide default
8396 # value. By we need to know if files were specified by the user.
8397 ac_need_defaults=:
8398 while test $# != 0
8399 do
8400 case $1 in
8401 --*=*)
8402 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8403 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8404 shift
8405 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8406 shift
8407 ;;
8408 -*);;
8409 *) # This is not an option, so the user has probably given explicit
8410 # arguments.
8411 ac_need_defaults=false;;
8412 esac
8413
8414 case $1 in
8415 # Handling of the options.
8416 EOF
8417 cat >>$CONFIG_STATUS <<EOF
8418 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8419 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8420 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8421 EOF
8422 cat >>$CONFIG_STATUS <<\EOF
8423 --version | --vers* | -V )
8424 echo "$ac_cs_version"; exit 0 ;;
8425 --he | --h)
8426 # Conflict between --help and --header
8427 { { echo "$as_me:8427: error: ambiguous option: $1
8428 Try \`$0 --help' for more information." >&5
8429 echo "$as_me: error: ambiguous option: $1
8430 Try \`$0 --help' for more information." >&2;}
8431 { (exit 1); exit 1; }; };;
8432 --help | --hel | -h )
8433 echo "$ac_cs_usage"; exit 0 ;;
8434 --debug | --d* | -d )
8435 debug=: ;;
8436 --file | --fil | --fi | --f )
8437 shift
8438 CONFIG_FILES="$CONFIG_FILES $1"
8439 ac_need_defaults=false;;
8440 --header | --heade | --head | --hea )
8441 shift
8442 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8443 ac_need_defaults=false;;
8444
8445 # Handling of arguments.
8446 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8447 'compat/Makefile' ) CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
8448 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8449 'lib/psiconv/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/psiconv/Makefile" ;;
8450 'program/Makefile' ) CONFIG_FILES="$CONFIG_FILES program/Makefile" ;;
8451 'program/psiconv/Makefile' ) CONFIG_FILES="$CONFIG_FILES program/psiconv/Makefile" ;;
8452 'lib/psiconv/general.h' ) CONFIG_FILES="$CONFIG_FILES lib/psiconv/general.h" ;;
8453 'formats/Makefile' ) CONFIG_FILES="$CONFIG_FILES formats/Makefile" ;;
8454 'docs/Makefile' ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
8455 'extra/Makefile' ) CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
8456 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8457 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8458
8459 # This is an error.
8460 -*) { { echo "$as_me:8460: error: unrecognized option: $1
8461 Try \`$0 --help' for more information." >&5
8462 echo "$as_me: error: unrecognized option: $1
8463 Try \`$0 --help' for more information." >&2;}
8464 { (exit 1); exit 1; }; } ;;
8465 *) { { echo "$as_me:8465: error: invalid argument: $1" >&5
8466 echo "$as_me: error: invalid argument: $1" >&2;}
8467 { (exit 1); exit 1; }; };;
8468 esac
8469 shift
8470 done
8471
8472 exec 5>>config.log
8473 cat >&5 << _ACEOF
8474
8475 ## ----------------------- ##
8476 ## Running config.status. ##
8477 ## ----------------------- ##
8478
8479 This file was extended by $as_me 2.50, executed with
8480 > $ac_cs_invocation
8481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8482
8483 _ACEOF
8484 EOF
8485
8486 cat >>$CONFIG_STATUS <<\EOF
8487 # If the user did not use the arguments to specify the items to instantiate,
8488 # then the envvar interface is used. Set only those that are not.
8489 # We use the long form for the default assignment because of an extremely
8490 # bizarre bug on SunOS 4.1.3.
8491 if $ac_need_defaults; then
8492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8493 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8494 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8495 fi
8496
8497 # Create a temporary directory, and hook for its removal unless debugging.
8498 $debug ||
8499 {
8500 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8501 trap '{ (exit $?); exit $?; }' 1 2 13 15
8502 }
8503
8504 # Create a (secure) tmp directory for tmp files.
8505 : ${TMPDIR=/tmp}
8506 {
8507 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8508 test -n "$tmp" && test -d "$tmp"
8509 } ||
8510 {
8511 tmp=$TMPDIR/cs$$-$RANDOM
8512 (umask 077 && mkdir $tmp)
8513 } ||
8514 {
8515 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8516 { (exit 1); exit 1; }
8517 }
8518
8519 EOF
8520
8521 cat >>$CONFIG_STATUS <<EOF
8522 #
8523 # INIT-COMMANDS section.
8524 #
8525
8526 EOF
8527
8528 cat >>$CONFIG_STATUS <<EOF
8529
8530 #
8531 # CONFIG_FILES section.
8532 #
8533
8534 # No need to generate the scripts if there are no CONFIG_FILES.
8535 # This happens for instance when ./config.status config.h
8536 if test -n "\$CONFIG_FILES"; then
8537 # Protect against being on the right side of a sed subst in config.status.
8538 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8539 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8540 s,@SHELL@,$SHELL,;t t
8541 s,@exec_prefix@,$exec_prefix,;t t
8542 s,@prefix@,$prefix,;t t
8543 s,@program_transform_name@,$program_transform_name,;t t
8544 s,@bindir@,$bindir,;t t
8545 s,@sbindir@,$sbindir,;t t
8546 s,@libexecdir@,$libexecdir,;t t
8547 s,@datadir@,$datadir,;t t
8548 s,@sysconfdir@,$sysconfdir,;t t
8549 s,@sharedstatedir@,$sharedstatedir,;t t
8550 s,@localstatedir@,$localstatedir,;t t
8551 s,@libdir@,$libdir,;t t
8552 s,@includedir@,$includedir,;t t
8553 s,@oldincludedir@,$oldincludedir,;t t
8554 s,@infodir@,$infodir,;t t
8555 s,@mandir@,$mandir,;t t
8556 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8557 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8558 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8559 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8560 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8561 s,@ECHO_C@,$ECHO_C,;t t
8562 s,@ECHO_N@,$ECHO_N,;t t
8563 s,@ECHO_T@,$ECHO_T,;t t
8564 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8565 s,@DEFS@,$DEFS,;t t
8566 s,@LIBS@,$LIBS,;t t
8567 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8568 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8569 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8570 s,@PACKAGE@,$PACKAGE,;t t
8571 s,@VERSION@,$VERSION,;t t
8572 s,@ACLOCAL@,$ACLOCAL,;t t
8573 s,@AUTOCONF@,$AUTOCONF,;t t
8574 s,@AUTOMAKE@,$AUTOMAKE,;t t
8575 s,@AUTOHEADER@,$AUTOHEADER,;t t
8576 s,@MAKEINFO@,$MAKEINFO,;t t
8577 s,@SET_MAKE@,$SET_MAKE,;t t
8578 s,@build@,$build,;t t
8579 s,@build_cpu@,$build_cpu,;t t
8580 s,@build_vendor@,$build_vendor,;t t
8581 s,@build_os@,$build_os,;t t
8582 s,@host@,$host,;t t
8583 s,@host_cpu@,$host_cpu,;t t
8584 s,@host_vendor@,$host_vendor,;t t
8585 s,@host_os@,$host_os,;t t
8586 s,@CC@,$CC,;t t
8587 s,@CFLAGS@,$CFLAGS,;t t
8588 s,@LDFLAGS@,$LDFLAGS,;t t
8589 s,@CPPFLAGS@,$CPPFLAGS,;t t
8590 s,@ac_ct_CC@,$ac_ct_CC,;t t
8591 s,@EXEEXT@,$EXEEXT,;t t
8592 s,@OBJEXT@,$OBJEXT,;t t
8593 s,@LN_S@,$LN_S,;t t
8594 s,@ECHO@,$ECHO,;t t
8595 s,@RANLIB@,$RANLIB,;t t
8596 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8597 s,@STRIP@,$STRIP,;t t
8598 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8599 s,@CPP@,$CPP,;t t
8600 s,@LIBTOOL@,$LIBTOOL,;t t
8601 s,@cflags_set@,$cflags_set,;t t
8602 s,@IMAGEMAGICK@,$IMAGEMAGICK,;t t
8603 s,@LIB_MAGICK@,$LIB_MAGICK,;t t
8604 s,@INT_8_BIT@,$INT_8_BIT,;t t
8605 s,@INT_16_BIT@,$INT_16_BIT,;t t
8606 s,@INT_32_BIT@,$INT_32_BIT,;t t
8607 s,@LIBOBJS@,$LIBOBJS,;t t
8608 s,@HTMLDOCS_TRUE@,$HTMLDOCS_TRUE,;t t
8609 s,@HTMLDOCS_FALSE@,$HTMLDOCS_FALSE,;t t
8610 s,@HTML4DOCS_TRUE@,$HTML4DOCS_TRUE,;t t
8611 s,@HTML4DOCS_FALSE@,$HTML4DOCS_FALSE,;t t
8612 s,@ASCIIDOCS_TRUE@,$ASCIIDOCS_TRUE,;t t
8613 s,@ASCIIDOCS_FALSE@,$ASCIIDOCS_FALSE,;t t
8614 s,@RTFDOCS_TRUE@,$RTFDOCS_TRUE,;t t
8615 s,@RTFDOCS_FALSE@,$RTFDOCS_FALSE,;t t
8616 CEOF
8617
8618 EOF
8619
8620 cat >>$CONFIG_STATUS <<\EOF
8621 # Split the substitutions into bite-sized pieces for seds with
8622 # small command number limits, like on Digital OSF/1 and HP-UX.
8623 ac_max_sed_lines=48
8624 ac_sed_frag=1 # Number of current file.
8625 ac_beg=1 # First line for current file.
8626 ac_end=$ac_max_sed_lines # Line after last line for current file.
8627 ac_more_lines=:
8628 ac_sed_cmds=
8629 while $ac_more_lines; do
8630 if test $ac_beg -gt 1; then
8631 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8632 else
8633 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8634 fi
8635 if test ! -s $tmp/subs.frag; then
8636 ac_more_lines=false
8637 else
8638 # The purpose of the label and of the branching condition is to
8639 # speed up the sed processing (if there are no `@' at all, there
8640 # is no need to browse any of the substitutions).
8641 # These are the two extra sed commands mentioned above.
8642 (echo ':t
8643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8644 if test -z "$ac_sed_cmds"; then
8645 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8646 else
8647 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8648 fi
8649 ac_sed_frag=`expr $ac_sed_frag + 1`
8650 ac_beg=$ac_end
8651 ac_end=`expr $ac_end + $ac_max_sed_lines`
8652 fi
8653 done
8654 if test -z "$ac_sed_cmds"; then
8655 ac_sed_cmds=cat
8656 fi
8657 fi # test -n "$CONFIG_FILES"
8658
8659 EOF
8660 cat >>$CONFIG_STATUS <<\EOF
8661 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8663 case $ac_file in
8664 - | *:- | *:-:* ) # input from stdin
8665 cat >$tmp/stdin
8666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8670 * ) ac_file_in=$ac_file.in ;;
8671 esac
8672
8673 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8674 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8675 X"$ac_file" : 'X\(//\)[^/]' \| \
8676 X"$ac_file" : 'X\(//\)$' \| \
8677 X"$ac_file" : 'X\(/\)' \| \
8678 . : '\(.\)' 2>/dev/null ||
8679 echo X"$ac_file" |
8680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8682 /^X\(\/\/\)$/{ s//\1/; q; }
8683 /^X\(\/\).*/{ s//\1/; q; }
8684 s/.*/./; q'`
8685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8686 { case "$ac_dir" in
8687 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8688 *) as_incr_dir=.;;
8689 esac
8690 as_dummy="$ac_dir"
8691 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8692 case $as_mkdir_dir in
8693 # Skip DOS drivespec
8694 ?:) as_incr_dir=$as_mkdir_dir ;;
8695 *)
8696 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8697 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8698 ;;
8699 esac
8700 done; }
8701
8702 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
8703 # A "../" for each directory in $ac_dir_suffix.
8704 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8705 else
8706 ac_dir_suffix= ac_dots=
8707 fi
8708
8709 case $srcdir in
8710 .) ac_srcdir=.
8711 if test -z "$ac_dots"; then
8712 ac_top_srcdir=.
8713 else
8714 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8715 fi ;;
8716 [\\/]* | ?:[\\/]* )
8717 ac_srcdir=$srcdir$ac_dir_suffix;
8718 ac_top_srcdir=$srcdir ;;
8719 *) # Relative path.
8720 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8721 ac_top_srcdir=$ac_dots$srcdir ;;
8722 esac
8723
8724 case $INSTALL in
8725 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8726 *) ac_INSTALL=$ac_dots$INSTALL ;;
8727 esac
8728
8729 if test x"$ac_file" != x-; then
8730 { echo "$as_me:8730: creating $ac_file" >&5
8731 echo "$as_me: creating $ac_file" >&6;}
8732 rm -f "$ac_file"
8733 fi
8734 # Let's still pretend it is `configure' which instantiates (i.e., don't
8735 # use $as_me), people would be surprised to read:
8736 # /* config.h. Generated automatically by config.status. */
8737 configure_input="Generated automatically from `echo $ac_file_in |
8738 sed 's,.*/,,'` by configure."
8739
8740 # First look for the input files in the build tree, otherwise in the
8741 # src tree.
8742 ac_file_inputs=`IFS=:
8743 for f in $ac_file_in; do
8744 case $f in
8745 -) echo $tmp/stdin ;;
8746 [\\/$]*)
8747 # Absolute (can't be DOS-style, as IFS=:)
8748 test -f "$f" || { { echo "$as_me:8748: error: cannot find input file: $f" >&5
8749 echo "$as_me: error: cannot find input file: $f" >&2;}
8750 { (exit 1); exit 1; }; }
8751 echo $f;;
8752 *) # Relative
8753 if test -f "$f"; then
8754 # Build tree
8755 echo $f
8756 elif test -f "$srcdir/$f"; then
8757 # Source tree
8758 echo $srcdir/$f
8759 else
8760 # /dev/null tree
8761 { { echo "$as_me:8761: error: cannot find input file: $f" >&5
8762 echo "$as_me: error: cannot find input file: $f" >&2;}
8763 { (exit 1); exit 1; }; }
8764 fi;;
8765 esac
8766 done` || { (exit 1); exit 1; }
8767 EOF
8768 cat >>$CONFIG_STATUS <<EOF
8769 sed "$ac_vpsub
8770 $extrasub
8771 EOF
8772 cat >>$CONFIG_STATUS <<\EOF
8773 :t
8774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8775 s,@configure_input@,$configure_input,;t t
8776 s,@srcdir@,$ac_srcdir,;t t
8777 s,@top_srcdir@,$ac_top_srcdir,;t t
8778 s,@INSTALL@,$ac_INSTALL,;t t
8779 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8780 rm -f $tmp/stdin
8781 if test x"$ac_file" != x-; then
8782 mv $tmp/out $ac_file
8783 else
8784 cat $tmp/out
8785 rm -f $tmp/out
8786 fi
8787
8788 done
8789 EOF
8790 cat >>$CONFIG_STATUS <<\EOF
8791
8792 #
8793 # CONFIG_HEADER section.
8794 #
8795
8796 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8797 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8798 #
8799 # ac_d sets the value in "#define NAME VALUE" lines.
8800 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8801 ac_dB='[ ].*$,\1#\2'
8802 ac_dC=' '
8803 ac_dD=',;t'
8804 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8805 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8806 ac_uB='$,\1#\2define\3'
8807 ac_uC=' '
8808 ac_uD=',;t'
8809
8810 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8811 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8812 case $ac_file in
8813 - | *:- | *:-:* ) # input from stdin
8814 cat >$tmp/stdin
8815 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8817 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8818 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8819 * ) ac_file_in=$ac_file.in ;;
8820 esac
8821
8822 test x"$ac_file" != x- && { echo "$as_me:8822: creating $ac_file" >&5
8823 echo "$as_me: creating $ac_file" >&6;}
8824
8825 # First look for the input files in the build tree, otherwise in the
8826 # src tree.
8827 ac_file_inputs=`IFS=:
8828 for f in $ac_file_in; do
8829 case $f in
8830 -) echo $tmp/stdin ;;
8831 [\\/$]*)
8832 # Absolute (can't be DOS-style, as IFS=:)
8833 test -f "$f" || { { echo "$as_me:8833: error: cannot find input file: $f" >&5
8834 echo "$as_me: error: cannot find input file: $f" >&2;}
8835 { (exit 1); exit 1; }; }
8836 echo $f;;
8837 *) # Relative
8838 if test -f "$f"; then
8839 # Build tree
8840 echo $f
8841 elif test -f "$srcdir/$f"; then
8842 # Source tree
8843 echo $srcdir/$f
8844 else
8845 # /dev/null tree
8846 { { echo "$as_me:8846: error: cannot find input file: $f" >&5
8847 echo "$as_me: error: cannot find input file: $f" >&2;}
8848 { (exit 1); exit 1; }; }
8849 fi;;
8850 esac
8851 done` || { (exit 1); exit 1; }
8852 # Remove the trailing spaces.
8853 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8854
8855 EOF
8856
8857 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8858 # `conftest.undefs', that substitutes the proper values into
8859 # config.h.in to produce config.h. The first handles `#define'
8860 # templates, and the second `#undef' templates.
8861 # And first: Protect against being on the right side of a sed subst in
8862 # config.status. Protect against being in an unquoted here document
8863 # in config.status.
8864 rm -f conftest.defines conftest.undefs
8865 # Using a here document instead of a string reduces the quoting nightmare.
8866 # Putting comments in sed scripts is not portable.
8867 #
8868 # `end' is used to avoid that the second main sed command (meant for
8869 # 0-ary CPP macros) applies to n-ary macro definitions.
8870 # See the Autoconf documentation for `clear'.
8871 cat >confdef2sed.sed <<\EOF
8872 s/[\\&,]/\\&/g
8873 s,[\\$`],\\&,g
8874 t clear
8875 : clear
8876 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8877 t end
8878 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8879 : end
8880 EOF
8881 # If some macros were called several times there might be several times
8882 # the same #defines, which is useless. Nevertheless, we may not want to
8883 # sort them, since we want the *last* AC-DEFINE to be honored.
8884 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8885 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8886 rm -f confdef2sed.sed
8887
8888 # This sed command replaces #undef with comments. This is necessary, for
8889 # example, in the case of _POSIX_SOURCE, which is predefined and required
8890 # on some systems where configure will not decide to define it.
8891 cat >>conftest.undefs <<\EOF
8892 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8893 EOF
8894
8895 # Break up conftest.defines because some shells have a limit on the size
8896 # of here documents, and old seds have small limits too (100 cmds).
8897 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8898 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8899 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8900 echo ' :' >>$CONFIG_STATUS
8901 rm -f conftest.tail
8902 while grep . conftest.defines >/dev/null
8903 do
8904 # Write a limited-size here document to $tmp/defines.sed.
8905 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8906 # Speed up: don't consider the non `#define' lines.
8907 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8908 # Work around the forget-to-reset-the-flag bug.
8909 echo 't clr' >>$CONFIG_STATUS
8910 echo ': clr' >>$CONFIG_STATUS
8911 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8912 echo 'CEOF
8913 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8914 rm -f $tmp/in
8915 mv $tmp/out $tmp/in
8916 ' >>$CONFIG_STATUS
8917 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8918 rm -f conftest.defines
8919 mv conftest.tail conftest.defines
8920 done
8921 rm -f conftest.defines
8922 echo ' fi # egrep' >>$CONFIG_STATUS
8923 echo >>$CONFIG_STATUS
8924
8925 # Break up conftest.undefs because some shells have a limit on the size
8926 # of here documents, and old seds have small limits too (100 cmds).
8927 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8928 rm -f conftest.tail
8929 while grep . conftest.undefs >/dev/null
8930 do
8931 # Write a limited-size here document to $tmp/undefs.sed.
8932 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8933 # Speed up: don't consider the non `#undef'
8934 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8935 # Work around the forget-to-reset-the-flag bug.
8936 echo 't clr' >>$CONFIG_STATUS
8937 echo ': clr' >>$CONFIG_STATUS
8938 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8939 echo 'CEOF
8940 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8941 rm -f $tmp/in
8942 mv $tmp/out $tmp/in
8943 ' >>$CONFIG_STATUS
8944 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8945 rm -f conftest.undefs
8946 mv conftest.tail conftest.undefs
8947 done
8948 rm -f conftest.undefs
8949
8950 cat >>$CONFIG_STATUS <<\EOF
8951 # Let's still pretend it is `configure' which instantiates (i.e., don't
8952 # use $as_me), people would be surprised to read:
8953 # /* config.h. Generated automatically by config.status. */
8954 if test x"$ac_file" = x-; then
8955 echo "/* Generated automatically by configure. */" >$tmp/config.h
8956 else
8957 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
8958 fi
8959 cat $tmp/in >>$tmp/config.h
8960 rm -f $tmp/in
8961 if test x"$ac_file" != x-; then
8962 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8963 { echo "$as_me:8963: $ac_file is unchanged" >&5
8964 echo "$as_me: $ac_file is unchanged" >&6;}
8965 else
8966 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8967 X"$ac_file" : 'X\(//\)[^/]' \| \
8968 X"$ac_file" : 'X\(//\)$' \| \
8969 X"$ac_file" : 'X\(/\)' \| \
8970 . : '\(.\)' 2>/dev/null ||
8971 echo X"$ac_file" |
8972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8974 /^X\(\/\/\)$/{ s//\1/; q; }
8975 /^X\(\/\).*/{ s//\1/; q; }
8976 s/.*/./; q'`
8977 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8978 { case "$ac_dir" in
8979 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8980 *) as_incr_dir=.;;
8981 esac
8982 as_dummy="$ac_dir"
8983 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8984 case $as_mkdir_dir in
8985 # Skip DOS drivespec
8986 ?:) as_incr_dir=$as_mkdir_dir ;;
8987 *)
8988 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8989 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8990 ;;
8991 esac
8992 done; }
8993
8994 fi
8995 rm -f $ac_file
8996 mv $tmp/config.h $ac_file
8997 fi
8998 else
8999 cat $tmp/config.h
9000 rm -f $tmp/config.h
9001 fi
9002 done
9003 EOF
9004 cat >>$CONFIG_STATUS <<\EOF
9005
9006 #
9007 # CONFIG_COMMANDS section.
9008 #
9009 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9010 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9011 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9012
9013 case $ac_dest in
9014 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9015 esac
9016 done
9017 EOF
9018
9019 cat >>$CONFIG_STATUS <<\EOF
9020
9021 { (exit 0); exit 0; }
9022 EOF
9023 chmod +x $CONFIG_STATUS
9024 ac_clean_files=$ac_clean_files_save
9025
9026 # configure is writing to config.log, and then calls config.status.
9027 # config.status does its own redirection, appending to config.log.
9028 # Unfortunately, on DOS this fails, as config.log is still kept open
9029 # by configure, so config.status won't be able to write to it; its
9030 # output is simply discarded. So we exec the FD to /dev/null,
9031 # effectively closing config.log, so it can be properly (re)opened and
9032 # appended to by config.status. When coming back to configure, we
9033 # need to make the FD available again.
9034 if test "$no_create" != yes; then
9035 ac_cs_success=:
9036 exec 5>/dev/null
9037 $SHELL $CONFIG_STATUS || ac_cs_success=false
9038 exec 5>>config.log
9039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9040 # would make configure fail if this is the last instruction.
9041 $ac_cs_success || { (exit 1); exit 1; }
9042 fi
9043

Properties

Name Value
svn:executable *

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26