comparison configure @ 0:cb178e5ad177 trunk

[svn] Import audacious source.
author nenolod
date Mon, 24 Oct 2005 03:06:47 -0700
parents
children 6efb9e514224
comparison
equal deleted inserted replaced
-1:000000000000 0:cb178e5ad177
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for audacious 0.1.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME='audacious'
423 PACKAGE_TARNAME='audacious'
424 PACKAGE_VERSION='0.1'
425 PACKAGE_STRING='audacious 0.1'
426 PACKAGE_BUGREPORT=''
427
428 # Factoring default headers for most tests.
429 ac_includes_default="\
430 #include <stdio.h>
431 #if HAVE_SYS_TYPES_H
432 # include <sys/types.h>
433 #endif
434 #if HAVE_SYS_STAT_H
435 # include <sys/stat.h>
436 #endif
437 #if STDC_HEADERS
438 # include <stdlib.h>
439 # include <stddef.h>
440 #else
441 # if HAVE_STDLIB_H
442 # include <stdlib.h>
443 # endif
444 #endif
445 #if HAVE_STRING_H
446 # if !STDC_HEADERS && HAVE_MEMORY_H
447 # include <memory.h>
448 # endif
449 # include <string.h>
450 #endif
451 #if HAVE_STRINGS_H
452 # include <strings.h>
453 #endif
454 #if HAVE_INTTYPES_H
455 # include <inttypes.h>
456 #else
457 # if HAVE_STDINT_H
458 # include <stdint.h>
459 # endif
460 #endif
461 #if HAVE_UNISTD_H
462 # include <unistd.h>
463 #endif"
464
465 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar LIBBEEP_MAJOR_VERSION LIBBEEP_MINOR_VERSION LIBBEEP_MICRO_VERSION MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB CCAS CCASFLAGS LN_S ECHO AR ac_ct_AR CXXCPP LIBTOOL BEEP_PATH BMP_RCPATH EFFECT_PLUGINS GENERAL_PLUGINS INPUT_PLUGINS OUTPUT_PLUGINS VISUALIZATION_PLUGINS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PKG_CONFIG GTK_CFLAGS GTK_LIBS PC_REQUIRES LIBGLADE_CFLAGS LIBGLADE_LIBS USE_SIMD_TRUE USE_SIMD_FALSE GCONF_CFLAGS GCONF_LIBS HAVE_GCONF_TRUE HAVE_GCONF_FALSE GNOMEVFS_CFLAGS GNOMEVFS_LIBS HAVE_GNOME_VFS_TRUE HAVE_GNOME_VFS_FALSE ESD_CFLAGS ESD_LIBS HAVE_ESD_TRUE HAVE_ESD_FALSE ENABLE_MPG123_TRUE ENABLE_MPG123_FALSE ID3LIBS OGG_VORBIS_CFLAGS OGG_VORBIS_LIBS HAVE_OGGVORBIS_TRUE HAVE_OGGVORBIS_FALSE HAVE_OSS_TRUE HAVE_OSS_FALSE ALSA_CFLAGS ALSA_LIBS HAVE_ALSA_TRUE HAVE_ALSA_FALSE HAVE_CDROM_TRUE HAVE_CDROM_FALSE HAVE_LINUX_JOYSTICK_TRUE HAVE_LINUX_JOYSTICK_FALSE ARCH_DEFINES ARCH_X86_TRUE ARCH_X86_FALSE USE_X86ASM_TRUE USE_X86ASM_FALSE HAVE_SOLARIS_TRUE HAVE_SOLARIS_FALSE HAVE_SUN_TRUE HAVE_SUN_FALSE plugindir INPUT_PLUGIN_DIR OUTPUT_PLUGIN_DIR EFFECT_PLUGIN_DIR GENERAL_PLUGIN_DIR VISUALIZATION_PLUGIN_DIR pluginsubs localedir BEEP_DEFINES PLUGIN_LDFLAGS beepdir LIBOBJS LTLIBOBJS'
466 ac_subst_files=''
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_libraries=NONE
487
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518 # Accept the important Cygnus configure options, so we can diagnose typos.
519
520 case $ac_option in
521
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
523 ac_prev=bindir ;;
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525 bindir=$ac_optarg ;;
526
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
531
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
538
539 --config-cache | -C)
540 cache_file=config.cache ;;
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
546 datadir=$ac_optarg ;;
547
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
556
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564 case $ac_option in
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566 *) ac_optarg=yes ;;
567 esac
568 eval "enable_$ac_feature='$ac_optarg'" ;;
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
583 -help | --help | --hel | --he | -h)
584 ac_init_help=long ;;
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
589
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
594
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
601
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
603 ac_prev=infodir ;;
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
606
607 -libdir | --libdir | --libdi | --libd)
608 ac_prev=libdir ;;
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
610 libdir=$ac_optarg ;;
611
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
618
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
627
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629 ac_prev=mandir ;;
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 mandir=$ac_optarg ;;
632
633 -nfp | --nfp | --nf)
634 # Obsolete; use --without-fp.
635 with_fp=no ;;
636
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
639 no_create=yes ;;
640
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643 no_recursion=yes ;;
644
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
653
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655 ac_prev=prefix ;;
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657 prefix=$ac_optarg ;;
658
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
665
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
672
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
689
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
692 silent=yes ;;
693
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695 ac_prev=sbindir ;;
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697 | --sbi=* | --sb=*)
698 sbindir=$ac_optarg ;;
699
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
703 | --sha | --sh)
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708 | --sha=* | --sh=*)
709 sharedstatedir=$ac_optarg ;;
710
711 -site | --site | --sit)
712 ac_prev=site ;;
713 -site=* | --site=* | --sit=*)
714 site=$ac_optarg ;;
715
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717 ac_prev=srcdir ;;
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719 srcdir=$ac_optarg ;;
720
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
727
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
732
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
734 verbose=yes ;;
735
736 -version | --version | --versio | --versi | --vers | -V)
737 ac_init_version=: ;;
738
739 -with-* | --with-*)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
746 case $ac_option in
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748 *) ac_optarg=yes ;;
749 esac
750 eval "with_$ac_package='$ac_optarg'" ;;
751
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
760
761 --x)
762 # Obsolete; use --with-x.
763 with_x=yes ;;
764
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
771
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
778
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
782 ;;
783
784 *=*)
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
792 export $ac_envvar ;;
793
794 *)
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 ;;
801
802 esac
803 done
804
805 if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
814 eval ac_val=$`echo $ac_var`
815 case $ac_val in
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
819 esac
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
825 do
826 eval ac_val=$`echo $ac_var`
827 case $ac_val in
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
831 esac
832 done
833
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
848 cross_compiling=yes
849 fi
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
873 s/.*/./; q'`
874 srcdir=$ac_confdir
875 if test ! -r $srcdir/$ac_unique_file; then
876 srcdir=..
877 fi
878 else
879 ac_srcdir_defaulted=no
880 fi
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
885 else
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
888 fi
889 fi
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CCAS_set=${CCAS+set}
927 ac_env_CCAS_value=$CCAS
928 ac_cv_env_CCAS_set=${CCAS+set}
929 ac_cv_env_CCAS_value=$CCAS
930 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
931 ac_env_CCASFLAGS_value=$CCASFLAGS
932 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
933 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938
939 #
940 # Report the --help message.
941 #
942 if test "$ac_init_help" = "long"; then
943 # Omit some internal or obsolete options to make the list less imposing.
944 # This message is too long to be a string in the A/UX 3.1 sh.
945 cat <<_ACEOF
946 \`configure' configures audacious 0.1 to adapt to many kinds of systems.
947
948 Usage: $0 [OPTION]... [VAR=VALUE]...
949
950 To assign environment variables (e.g., CC, CFLAGS...), specify them as
951 VAR=VALUE. See below for descriptions of some of the useful variables.
952
953 Defaults for the options are specified in brackets.
954
955 Configuration:
956 -h, --help display this help and exit
957 --help=short display options specific to this package
958 --help=recursive display the short help of all the included packages
959 -V, --version display version information and exit
960 -q, --quiet, --silent do not print \`checking...' messages
961 --cache-file=FILE cache test results in FILE [disabled]
962 -C, --config-cache alias for \`--cache-file=config.cache'
963 -n, --no-create do not create output files
964 --srcdir=DIR find the sources in DIR [configure dir or \`..']
965
966 _ACEOF
967
968 cat <<_ACEOF
969 Installation directories:
970 --prefix=PREFIX install architecture-independent files in PREFIX
971 [$ac_default_prefix]
972 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
973 [PREFIX]
974
975 By default, \`make install' will install all the files in
976 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
977 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
978 for instance \`--prefix=\$HOME'.
979
980 For better control, use the options below.
981
982 Fine tuning of the installation directories:
983 --bindir=DIR user executables [EPREFIX/bin]
984 --sbindir=DIR system admin executables [EPREFIX/sbin]
985 --libexecdir=DIR program executables [EPREFIX/libexec]
986 --datadir=DIR read-only architecture-independent data [PREFIX/share]
987 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
988 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
989 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
990 --libdir=DIR object code libraries [EPREFIX/lib]
991 --includedir=DIR C header files [PREFIX/include]
992 --oldincludedir=DIR C header files for non-gcc [/usr/include]
993 --infodir=DIR info documentation [PREFIX/info]
994 --mandir=DIR man documentation [PREFIX/man]
995 _ACEOF
996
997 cat <<\_ACEOF
998
999 Program names:
1000 --program-prefix=PREFIX prepend PREFIX to installed program names
1001 --program-suffix=SUFFIX append SUFFIX to installed program names
1002 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1003
1004 X features:
1005 --x-includes=DIR X include files are in DIR
1006 --x-libraries=DIR X library files are in DIR
1007
1008 System types:
1009 --build=BUILD configure for building on BUILD [guessed]
1010 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1011 --target=TARGET configure for building compilers for TARGET [HOST]
1012 _ACEOF
1013 fi
1014
1015 if test -n "$ac_init_help"; then
1016 case $ac_init_help in
1017 short | recursive ) echo "Configuration of audacious 0.1:";;
1018 esac
1019 cat <<\_ACEOF
1020
1021 Optional Features:
1022 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1023 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1024 --disable-nls do not use Native Language Support
1025 --disable-dependency-tracking speeds up one-time build
1026 --enable-dependency-tracking do not reject slow dependency extractors
1027 --disable-rpath do not hardcode runtime library paths
1028 --enable-static[=PKGS]
1029 build static libraries [default=no]
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-one-plugin-dir Use a single plugin dir default=no
1036 --disable-user-plugin-dir disable per-user plugin dir
1037 --enable-simd build with x86 SIMD(3DNow!/MMX) instructions support (default=no)
1038 --enable-gconf enable GConf support (default=disabled)
1039 --enable-gnome-vfs enable GnomeVFS support (default=disabled)
1040 --disable-esd disable esound output plugin default=enabled
1041 --disable-mp3 disable mp3 plugin. default=enabled
1042 --disable-vorbis disable Ogg Vorbis input plugin (default=enabled)
1043 --disable-oss disable the OSS output plugin
1044 --disable-alsa disable ALSA input plugin (default=enabled)
1045
1046 Optional Packages:
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gnu-ld assume the C compiler uses GNU ld default=no
1050 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1051 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1052 --with-included-gettext use the GNU gettext library included here
1053 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1054 --without-libintl-prefix don't search for libintl in includedir and libdir
1055 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 --with-pic try to use only PIC/non-PIC objects [default=use
1057 both]
1058 --with-tags[=TAGS]
1059 include additional configurations [automatic]
1060 --rc-path=path Resource and configuration path for bmp relative to $HOME.
1061 --with-dev-dsp=path Path to OSS DSP data pipe, default is /dev/dsp.
1062 --with-dev-mixer=path Path to OSS sound mixer, default is /dev/mixer.
1063 --with-cdda-device=path Path to default cdaudio device.
1064 --with-cdda-dir=path Path to default cdaudio directory.
1065 --with-xmms-eq Use old XMMS equalization code.
1066 --with-x use the X Window System
1067
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1075 CPP C preprocessor
1076 CCAS assembler compiler command (defaults to CC)
1077 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1078 CXXCPP C++ preprocessor
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 _ACEOF
1084 fi
1085
1086 if test "$ac_init_help" = "recursive"; then
1087 # If there are subdirs, report their specific --help.
1088 ac_popdir=`pwd`
1089 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090 test -d $ac_dir || continue
1091 ac_builddir=.
1092
1093 if test "$ac_dir" != .; then
1094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095 # A "../" for each directory in $ac_dir_suffix.
1096 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097 else
1098 ac_dir_suffix= ac_top_builddir=
1099 fi
1100
1101 case $srcdir in
1102 .) # No --srcdir option. We are building in place.
1103 ac_srcdir=.
1104 if test -z "$ac_top_builddir"; then
1105 ac_top_srcdir=.
1106 else
1107 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108 fi ;;
1109 [\\/]* | ?:[\\/]* ) # Absolute path.
1110 ac_srcdir=$srcdir$ac_dir_suffix;
1111 ac_top_srcdir=$srcdir ;;
1112 *) # Relative path.
1113 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115 esac
1116
1117 # Do not use `cd foo && pwd` to compute absolute paths, because
1118 # the directories may not exist.
1119 case `pwd` in
1120 .) ac_abs_builddir="$ac_dir";;
1121 *)
1122 case "$ac_dir" in
1123 .) ac_abs_builddir=`pwd`;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126 esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *)
1131 case ${ac_top_builddir}. in
1132 .) ac_abs_top_builddir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135 esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_srcdir=$ac_srcdir;;
1139 *)
1140 case $ac_srcdir in
1141 .) ac_abs_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144 esac;;
1145 esac
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *)
1149 case $ac_top_srcdir in
1150 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 esac;;
1154 esac
1155
1156 cd $ac_dir
1157 # Check for guested configure; otherwise get Cygnus style configure.
1158 if test -f $ac_srcdir/configure.gnu; then
1159 echo
1160 $SHELL $ac_srcdir/configure.gnu --help=recursive
1161 elif test -f $ac_srcdir/configure; then
1162 echo
1163 $SHELL $ac_srcdir/configure --help=recursive
1164 elif test -f $ac_srcdir/configure.ac ||
1165 test -f $ac_srcdir/configure.in; then
1166 echo
1167 $ac_configure --help
1168 else
1169 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170 fi
1171 cd $ac_popdir
1172 done
1173 fi
1174
1175 test -n "$ac_init_help" && exit 0
1176 if $ac_init_version; then
1177 cat <<\_ACEOF
1178 audacious configure 0.1
1179 generated by GNU Autoconf 2.59
1180
1181 Copyright (C) 2003 Free Software Foundation, Inc.
1182 This configure script is free software; the Free Software Foundation
1183 gives unlimited permission to copy, distribute and modify it.
1184 _ACEOF
1185 exit 0
1186 fi
1187 exec 5>config.log
1188 cat >&5 <<_ACEOF
1189 This file contains any messages produced by compilers while
1190 running configure, to aid debugging if configure makes a mistake.
1191
1192 It was created by audacious $as_me 0.1, which was
1193 generated by GNU Autoconf 2.59. Invocation command line was
1194
1195 $ $0 $@
1196
1197 _ACEOF
1198 {
1199 cat <<_ASUNAME
1200 ## --------- ##
1201 ## Platform. ##
1202 ## --------- ##
1203
1204 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209
1210 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1212
1213 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1214 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1215 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1217 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1218 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1219 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1220
1221 _ASUNAME
1222
1223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 for as_dir in $PATH
1225 do
1226 IFS=$as_save_IFS
1227 test -z "$as_dir" && as_dir=.
1228 echo "PATH: $as_dir"
1229 done
1230
1231 } >&5
1232
1233 cat >&5 <<_ACEOF
1234
1235
1236 ## ----------- ##
1237 ## Core tests. ##
1238 ## ----------- ##
1239
1240 _ACEOF
1241
1242
1243 # Keep a trace of the command line.
1244 # Strip out --no-create and --no-recursion so they do not pile up.
1245 # Strip out --silent because we don't want to record it for future runs.
1246 # Also quote any args containing shell meta-characters.
1247 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_configure_args=
1249 ac_configure_args0=
1250 ac_configure_args1=
1251 ac_sep=
1252 ac_must_keep_next=false
1253 for ac_pass in 1 2
1254 do
1255 for ac_arg
1256 do
1257 case $ac_arg in
1258 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260 | -silent | --silent | --silen | --sile | --sil)
1261 continue ;;
1262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 esac
1265 case $ac_pass in
1266 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267 2)
1268 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269 if test $ac_must_keep_next = true; then
1270 ac_must_keep_next=false # Got value, back to normal.
1271 else
1272 case $ac_arg in
1273 *=* | --config-cache | -C | -disable-* | --disable-* \
1274 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276 | -with-* | --with-* | -without-* | --without-* | --x)
1277 case "$ac_configure_args0 " in
1278 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279 esac
1280 ;;
1281 -* ) ac_must_keep_next=true ;;
1282 esac
1283 fi
1284 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285 # Get rid of the leading space.
1286 ac_sep=" "
1287 ;;
1288 esac
1289 done
1290 done
1291 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293
1294 # When interrupted or exit'd, cleanup temporary files, and complete
1295 # config.log. We remove comments because anyway the quotes in there
1296 # would cause problems or look ugly.
1297 # WARNING: Be sure not to use single quotes in there, as some shells,
1298 # such as our DU 5.0 friend, will then `close' the trap.
1299 trap 'exit_status=$?
1300 # Save into config.log some information that might help in debugging.
1301 {
1302 echo
1303
1304 cat <<\_ASBOX
1305 ## ---------------- ##
1306 ## Cache variables. ##
1307 ## ---------------- ##
1308 _ASBOX
1309 echo
1310 # The following way of writing the cache mishandles newlines in values,
1311 {
1312 (set) 2>&1 |
1313 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314 *ac_space=\ *)
1315 sed -n \
1316 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318 ;;
1319 *)
1320 sed -n \
1321 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322 ;;
1323 esac;
1324 }
1325 echo
1326
1327 cat <<\_ASBOX
1328 ## ----------------- ##
1329 ## Output variables. ##
1330 ## ----------------- ##
1331 _ASBOX
1332 echo
1333 for ac_var in $ac_subst_vars
1334 do
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1337 done | sort
1338 echo
1339
1340 if test -n "$ac_subst_files"; then
1341 cat <<\_ASBOX
1342 ## ------------- ##
1343 ## Output files. ##
1344 ## ------------- ##
1345 _ASBOX
1346 echo
1347 for ac_var in $ac_subst_files
1348 do
1349 eval ac_val=$`echo $ac_var`
1350 echo "$ac_var='"'"'$ac_val'"'"'"
1351 done | sort
1352 echo
1353 fi
1354
1355 if test -s confdefs.h; then
1356 cat <<\_ASBOX
1357 ## ----------- ##
1358 ## confdefs.h. ##
1359 ## ----------- ##
1360 _ASBOX
1361 echo
1362 sed "/^$/d" confdefs.h | sort
1363 echo
1364 fi
1365 test "$ac_signal" != 0 &&
1366 echo "$as_me: caught signal $ac_signal"
1367 echo "$as_me: exit $exit_status"
1368 } >&5
1369 rm -f core *.core &&
1370 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371 exit $exit_status
1372 ' 0
1373 for ac_signal in 1 2 13 15; do
1374 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375 done
1376 ac_signal=0
1377
1378 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1379 rm -rf conftest* confdefs.h
1380 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 echo >confdefs.h
1382
1383 # Predefined preprocessor variables.
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_NAME "$PACKAGE_NAME"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_STRING "$PACKAGE_STRING"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407 _ACEOF
1408
1409
1410 # Let the site file select an alternate cache file if it wants to.
1411 # Prefer explicitly selected file to automatically selected ones.
1412 if test -z "$CONFIG_SITE"; then
1413 if test "x$prefix" != xNONE; then
1414 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415 else
1416 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417 fi
1418 fi
1419 for ac_site_file in $CONFIG_SITE; do
1420 if test -r "$ac_site_file"; then
1421 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422 echo "$as_me: loading site script $ac_site_file" >&6;}
1423 sed 's/^/| /' "$ac_site_file" >&5
1424 . "$ac_site_file"
1425 fi
1426 done
1427
1428 if test -r "$cache_file"; then
1429 # Some versions of bash will fail to source /dev/null (special
1430 # files actually), so we avoid doing that.
1431 if test -f "$cache_file"; then
1432 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433 echo "$as_me: loading cache $cache_file" >&6;}
1434 case $cache_file in
1435 [\\/]* | ?:[\\/]* ) . $cache_file;;
1436 *) . ./$cache_file;;
1437 esac
1438 fi
1439 else
1440 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441 echo "$as_me: creating cache $cache_file" >&6;}
1442 >$cache_file
1443 fi
1444
1445 # Check that the precious variables saved in the cache have kept the same
1446 # value.
1447 ac_cache_corrupted=false
1448 for ac_var in `(set) 2>&1 |
1449 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451 eval ac_new_set=\$ac_env_${ac_var}_set
1452 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453 eval ac_new_val="\$ac_env_${ac_var}_value"
1454 case $ac_old_set,$ac_new_set in
1455 set,)
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1459 ,set)
1460 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462 ac_cache_corrupted=: ;;
1463 ,);;
1464 *)
1465 if test "x$ac_old_val" != "x$ac_new_val"; then
1466 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1467 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1468 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1469 echo "$as_me: former value: $ac_old_val" >&2;}
1470 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1471 echo "$as_me: current value: $ac_new_val" >&2;}
1472 ac_cache_corrupted=:
1473 fi;;
1474 esac
1475 # Pass precious variables to config.status.
1476 if test "$ac_new_set" = set; then
1477 case $ac_new_val in
1478 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480 *) ac_arg=$ac_var=$ac_new_val ;;
1481 esac
1482 case " $ac_configure_args " in
1483 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1484 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485 esac
1486 fi
1487 done
1488 if $ac_cache_corrupted; then
1489 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493 { (exit 1); exit 1; }; }
1494 fi
1495
1496 ac_ext=c
1497 ac_cpp='$CPP $CPPFLAGS'
1498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530 ac_aux_dir=
1531 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1532 if test -f $ac_dir/install-sh; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/install-sh -c"
1535 break
1536 elif test -f $ac_dir/install.sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install.sh -c"
1539 break
1540 elif test -f $ac_dir/shtool; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/shtool install -c"
1543 break
1544 fi
1545 done
1546 if test -z "$ac_aux_dir"; then
1547 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1548 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1549 { (exit 1); exit 1; }; }
1550 fi
1551 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1552 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1553 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554
1555 # Make sure we can run config.sub.
1556 $ac_config_sub sun4 >/dev/null 2>&1 ||
1557 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1558 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1559 { (exit 1); exit 1; }; }
1560
1561 echo "$as_me:$LINENO: checking build system type" >&5
1562 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1563 if test "${ac_cv_build+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566 ac_cv_build_alias=$build_alias
1567 test -z "$ac_cv_build_alias" &&
1568 ac_cv_build_alias=`$ac_config_guess`
1569 test -z "$ac_cv_build_alias" &&
1570 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1571 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1572 { (exit 1); exit 1; }; }
1573 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1575 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578 fi
1579 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1580 echo "${ECHO_T}$ac_cv_build" >&6
1581 build=$ac_cv_build
1582 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
1586
1587 echo "$as_me:$LINENO: checking host system type" >&5
1588 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1589 if test "${ac_cv_host+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592 ac_cv_host_alias=$host_alias
1593 test -z "$ac_cv_host_alias" &&
1594 ac_cv_host_alias=$ac_cv_build_alias
1595 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1596 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1597 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1598 { (exit 1); exit 1; }; }
1599
1600 fi
1601 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1602 echo "${ECHO_T}$ac_cv_host" >&6
1603 host=$ac_cv_host
1604 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1605 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1606 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607
1608
1609 echo "$as_me:$LINENO: checking target system type" >&5
1610 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1611 if test "${ac_cv_target+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614 ac_cv_target_alias=$target_alias
1615 test "x$ac_cv_target_alias" = "x" &&
1616 ac_cv_target_alias=$ac_cv_host_alias
1617 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622 fi
1623 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1624 echo "${ECHO_T}$ac_cv_target" >&6
1625 target=$ac_cv_target
1626 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
1630
1631 # The aliases save the names the user supplied, while $host etc.
1632 # will get canonicalized.
1633 test -n "$target_alias" &&
1634 test "$program_prefix$program_suffix$program_transform_name" = \
1635 NONENONEs,x,x, &&
1636 program_prefix=${target_alias}-
1637
1638 am__api_version="1.9"
1639 # Find a good install program. We prefer a C program (faster),
1640 # so one script is as good as another. But avoid the broken or
1641 # incompatible versions:
1642 # SysV /etc/install, /usr/sbin/install
1643 # SunOS /usr/etc/install
1644 # IRIX /sbin/install
1645 # AIX /bin/install
1646 # AmigaOS /C/install, which installs bootblocks on floppy discs
1647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1650 # OS/2's system install, which has a completely different semantic
1651 # ./install, which can be erroneously created by make from ./install.sh.
1652 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1653 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1654 if test -z "$INSTALL"; then
1655 if test "${ac_cv_path_install+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 # Account for people who put trailing slashes in PATH elements.
1664 case $as_dir/ in
1665 ./ | .// | /cC/* | \
1666 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1667 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1668 /usr/ucb/* ) ;;
1669 *)
1670 # OSF1 and SCO ODT 3.0 have their own names for install.
1671 # Don't use installbsd from OSF since it installs stuff as root
1672 # by default.
1673 for ac_prog in ginstall scoinst install; do
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1676 if test $ac_prog = install &&
1677 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678 # AIX install. It has an incompatible calling convention.
1679 :
1680 elif test $ac_prog = install &&
1681 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1682 # program-specific install script used by HP pwplus--don't use.
1683 :
1684 else
1685 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1686 break 3
1687 fi
1688 fi
1689 done
1690 done
1691 ;;
1692 esac
1693 done
1694
1695
1696 fi
1697 if test "${ac_cv_path_install+set}" = set; then
1698 INSTALL=$ac_cv_path_install
1699 else
1700 # As a last resort, use the slow shell script. We don't cache a
1701 # path for INSTALL within a source directory, because that will
1702 # break other packages using the cache if that directory is
1703 # removed, or if the path is relative.
1704 INSTALL=$ac_install_sh
1705 fi
1706 fi
1707 echo "$as_me:$LINENO: result: $INSTALL" >&5
1708 echo "${ECHO_T}$INSTALL" >&6
1709
1710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1711 # It thinks the first close brace ends the variable substitution.
1712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1713
1714 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1715
1716 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1717
1718 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1719 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1720 # Just in case
1721 sleep 1
1722 echo timestamp > conftest.file
1723 # Do `set' in a subshell so we don't clobber the current shell's
1724 # arguments. Must try -L first in case configure is actually a
1725 # symlink; some systems play weird games with the mod time of symlinks
1726 # (eg FreeBSD returns the mod time of the symlink's containing
1727 # directory).
1728 if (
1729 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1730 if test "$*" = "X"; then
1731 # -L didn't work.
1732 set X `ls -t $srcdir/configure conftest.file`
1733 fi
1734 rm -f conftest.file
1735 if test "$*" != "X $srcdir/configure conftest.file" \
1736 && test "$*" != "X conftest.file $srcdir/configure"; then
1737
1738 # If neither matched, then we have a broken ls. This can happen
1739 # if, for instance, CONFIG_SHELL is bash and it inherits a
1740 # broken ls alias from the environment. This has actually
1741 # happened. Such a system could not be considered "sane".
1742 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1743 alias in your environment" >&5
1744 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1745 alias in your environment" >&2;}
1746 { (exit 1); exit 1; }; }
1747 fi
1748
1749 test "$2" = conftest.file
1750 )
1751 then
1752 # Ok.
1753 :
1754 else
1755 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1756 Check your system clock" >&5
1757 echo "$as_me: error: newly created file is older than distributed files!
1758 Check your system clock" >&2;}
1759 { (exit 1); exit 1; }; }
1760 fi
1761 echo "$as_me:$LINENO: result: yes" >&5
1762 echo "${ECHO_T}yes" >&6
1763 test "$program_prefix" != NONE &&
1764 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1765 # Use a double $ so make ignores it.
1766 test "$program_suffix" != NONE &&
1767 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1768 # Double any \ or $. echo might interpret backslashes.
1769 # By default was `s,x,x', remove it if useless.
1770 cat <<\_ACEOF >conftest.sed
1771 s/[\\$]/&&/g;s/;s,x,x,$//
1772 _ACEOF
1773 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1774 rm conftest.sed
1775
1776 # expand $ac_aux_dir to an absolute path
1777 am_aux_dir=`cd $ac_aux_dir && pwd`
1778
1779 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1780 # Use eval to expand $SHELL
1781 if eval "$MISSING --run true"; then
1782 am_missing_run="$MISSING --run "
1783 else
1784 am_missing_run=
1785 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1786 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1787 fi
1788
1789 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1790 # We used to keeping the `.' as first argument, in order to
1791 # allow $(mkdir_p) to be used without argument. As in
1792 # $(mkdir_p) $(somedir)
1793 # where $(somedir) is conditionally defined. However this is wrong
1794 # for two reasons:
1795 # 1. if the package is installed by a user who cannot write `.'
1796 # make install will fail,
1797 # 2. the above comment should most certainly read
1798 # $(mkdir_p) $(DESTDIR)$(somedir)
1799 # so it does not work when $(somedir) is undefined and
1800 # $(DESTDIR) is not.
1801 # To support the latter case, we have to write
1802 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1803 # so the `.' trick is pointless.
1804 mkdir_p='mkdir -p --'
1805 else
1806 # On NextStep and OpenStep, the `mkdir' command does not
1807 # recognize any option. It will interpret all options as
1808 # directories to create, and then abort because `.' already
1809 # exists.
1810 for d in ./-p ./--version;
1811 do
1812 test -d $d && rmdir $d
1813 done
1814 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1815 if test -f "$ac_aux_dir/mkinstalldirs"; then
1816 mkdir_p='$(mkinstalldirs)'
1817 else
1818 mkdir_p='$(install_sh) -d'
1819 fi
1820 fi
1821
1822 for ac_prog in gawk mawk nawk awk
1823 do
1824 # Extract the first word of "$ac_prog", so it can be a program name with args.
1825 set dummy $ac_prog; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_AWK+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831 if test -n "$AWK"; then
1832 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_AWK="$ac_prog"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1844 fi
1845 done
1846 done
1847
1848 fi
1849 fi
1850 AWK=$ac_cv_prog_AWK
1851 if test -n "$AWK"; then
1852 echo "$as_me:$LINENO: result: $AWK" >&5
1853 echo "${ECHO_T}$AWK" >&6
1854 else
1855 echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1857 fi
1858
1859 test -n "$AWK" && break
1860 done
1861
1862 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1863 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1864 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1865 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868 cat >conftest.make <<\_ACEOF
1869 all:
1870 @echo 'ac_maketemp="$(MAKE)"'
1871 _ACEOF
1872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1873 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1874 if test -n "$ac_maketemp"; then
1875 eval ac_cv_prog_make_${ac_make}_set=yes
1876 else
1877 eval ac_cv_prog_make_${ac_make}_set=no
1878 fi
1879 rm -f conftest.make
1880 fi
1881 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1882 echo "$as_me:$LINENO: result: yes" >&5
1883 echo "${ECHO_T}yes" >&6
1884 SET_MAKE=
1885 else
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1888 SET_MAKE="MAKE=${MAKE-make}"
1889 fi
1890
1891 rm -rf .tst 2>/dev/null
1892 mkdir .tst 2>/dev/null
1893 if test -d .tst; then
1894 am__leading_dot=.
1895 else
1896 am__leading_dot=_
1897 fi
1898 rmdir .tst 2>/dev/null
1899
1900 # test to see if srcdir already configured
1901 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1902 test -f $srcdir/config.status; then
1903 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1904 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1905 { (exit 1); exit 1; }; }
1906 fi
1907
1908 # test whether we have cygpath
1909 if test -z "$CYGPATH_W"; then
1910 if (cygpath --version) >/dev/null 2>/dev/null; then
1911 CYGPATH_W='cygpath -w'
1912 else
1913 CYGPATH_W=echo
1914 fi
1915 fi
1916
1917
1918 # Define the identity of the package.
1919 PACKAGE='audacious'
1920 VERSION='0.1'
1921
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE "$PACKAGE"
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define VERSION "$VERSION"
1930 _ACEOF
1931
1932 # Some tools Automake needs.
1933
1934 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1935
1936
1937 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1938
1939
1940 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1941
1942
1943 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1944
1945
1946 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1947
1948 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1949
1950 # Installed binaries are usually stripped using `strip' when the user
1951 # run `make install-strip'. However `strip' might not be the right
1952 # tool to use in cross-compilation environments, therefore Automake
1953 # will honor the `STRIP' environment variable to overrule this program.
1954 if test "$cross_compiling" != no; then
1955 if test -n "$ac_tool_prefix"; then
1956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}strip; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_STRIP+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963 if test -n "$STRIP"; then
1964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1976 fi
1977 done
1978 done
1979
1980 fi
1981 fi
1982 STRIP=$ac_cv_prog_STRIP
1983 if test -n "$STRIP"; then
1984 echo "$as_me:$LINENO: result: $STRIP" >&5
1985 echo "${ECHO_T}$STRIP" >&6
1986 else
1987 echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1989 fi
1990
1991 fi
1992 if test -z "$ac_cv_prog_STRIP"; then
1993 ac_ct_STRIP=$STRIP
1994 # Extract the first word of "strip", so it can be a program name with args.
1995 set dummy strip; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$ac_ct_STRIP"; then
2002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_ac_ct_STRIP="strip"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2014 fi
2015 done
2016 done
2017
2018 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2019 fi
2020 fi
2021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2022 if test -n "$ac_ct_STRIP"; then
2023 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2024 echo "${ECHO_T}$ac_ct_STRIP" >&6
2025 else
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030 STRIP=$ac_ct_STRIP
2031 else
2032 STRIP="$ac_cv_prog_STRIP"
2033 fi
2034
2035 fi
2036 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2037
2038 # We need awk for the "check" target. The system "awk" is bad on
2039 # some platforms.
2040 # Always define AMTAR for backward compatibility.
2041
2042 AMTAR=${AMTAR-"${am_missing_run}tar"}
2043
2044 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2045
2046
2047
2048
2049
2050
2051 ac_config_headers="$ac_config_headers config.h"
2052
2053
2054 LIBBEEP_MAJOR_VERSION=2
2055 LIBBEEP_MINOR_VERSION=0
2056 LIBBEEP_MICRO_VERSION=0
2057 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION
2058
2059
2060
2061
2062
2063
2064
2065 MKINSTALLDIRS=
2066 if test -n "$ac_aux_dir"; then
2067 case "$ac_aux_dir" in
2068 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2069 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2070 esac
2071 fi
2072 if test -z "$MKINSTALLDIRS"; then
2073 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2074 fi
2075
2076
2077
2078 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2079 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2080 # Check whether --enable-nls or --disable-nls was given.
2081 if test "${enable_nls+set}" = set; then
2082 enableval="$enable_nls"
2083 USE_NLS=$enableval
2084 else
2085 USE_NLS=yes
2086 fi;
2087 echo "$as_me:$LINENO: result: $USE_NLS" >&5
2088 echo "${ECHO_T}$USE_NLS" >&6
2089
2090
2091
2092
2093
2094
2095 # Prepare PATH_SEPARATOR.
2096 # The user is always right.
2097 if test "${PATH_SEPARATOR+set}" != set; then
2098 echo "#! /bin/sh" >conf$$.sh
2099 echo "exit 0" >>conf$$.sh
2100 chmod +x conf$$.sh
2101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2102 PATH_SEPARATOR=';'
2103 else
2104 PATH_SEPARATOR=:
2105 fi
2106 rm -f conf$$.sh
2107 fi
2108
2109 # Find out how to test for executable files. Don't use a zero-byte file,
2110 # as systems may use methods other than mode bits to determine executability.
2111 cat >conf$$.file <<_ASEOF
2112 #! /bin/sh
2113 exit 0
2114 _ASEOF
2115 chmod +x conf$$.file
2116 if test -x conf$$.file >/dev/null 2>&1; then
2117 ac_executable_p="test -x"
2118 else
2119 ac_executable_p="test -f"
2120 fi
2121 rm -f conf$$.file
2122
2123 # Extract the first word of "msgfmt", so it can be a program name with args.
2124 set dummy msgfmt; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_path_MSGFMT+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 case "$MSGFMT" in
2131 [\\/]* | ?:[\\/]*)
2132 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2133 ;;
2134 *)
2135 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2136 for ac_dir in $PATH; do
2137 IFS="$ac_save_IFS"
2138 test -z "$ac_dir" && ac_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2141 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2142 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2143 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2144 break 2
2145 fi
2146 fi
2147 done
2148 done
2149 IFS="$ac_save_IFS"
2150 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2151 ;;
2152 esac
2153 fi
2154 MSGFMT="$ac_cv_path_MSGFMT"
2155 if test "$MSGFMT" != ":"; then
2156 echo "$as_me:$LINENO: result: $MSGFMT" >&5
2157 echo "${ECHO_T}$MSGFMT" >&6
2158 else
2159 echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6
2161 fi
2162
2163 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2164 set dummy gmsgfmt; ac_word=$2
2165 echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 case $GMSGFMT in
2171 [\\/]* | ?:[\\/]*)
2172 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2173 ;;
2174 *)
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2182 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 break 2
2185 fi
2186 done
2187 done
2188
2189 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2190 ;;
2191 esac
2192 fi
2193 GMSGFMT=$ac_cv_path_GMSGFMT
2194
2195 if test -n "$GMSGFMT"; then
2196 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2197 echo "${ECHO_T}$GMSGFMT" >&6
2198 else
2199 echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2201 fi
2202
2203
2204
2205 # Prepare PATH_SEPARATOR.
2206 # The user is always right.
2207 if test "${PATH_SEPARATOR+set}" != set; then
2208 echo "#! /bin/sh" >conf$$.sh
2209 echo "exit 0" >>conf$$.sh
2210 chmod +x conf$$.sh
2211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2212 PATH_SEPARATOR=';'
2213 else
2214 PATH_SEPARATOR=:
2215 fi
2216 rm -f conf$$.sh
2217 fi
2218
2219 # Find out how to test for executable files. Don't use a zero-byte file,
2220 # as systems may use methods other than mode bits to determine executability.
2221 cat >conf$$.file <<_ASEOF
2222 #! /bin/sh
2223 exit 0
2224 _ASEOF
2225 chmod +x conf$$.file
2226 if test -x conf$$.file >/dev/null 2>&1; then
2227 ac_executable_p="test -x"
2228 else
2229 ac_executable_p="test -f"
2230 fi
2231 rm -f conf$$.file
2232
2233 # Extract the first word of "xgettext", so it can be a program name with args.
2234 set dummy xgettext; ac_word=$2
2235 echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2237 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 case "$XGETTEXT" in
2241 [\\/]* | ?:[\\/]*)
2242 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2243 ;;
2244 *)
2245 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2246 for ac_dir in $PATH; do
2247 IFS="$ac_save_IFS"
2248 test -z "$ac_dir" && ac_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2251 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2252 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2253 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2254 break 2
2255 fi
2256 fi
2257 done
2258 done
2259 IFS="$ac_save_IFS"
2260 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2261 ;;
2262 esac
2263 fi
2264 XGETTEXT="$ac_cv_path_XGETTEXT"
2265 if test "$XGETTEXT" != ":"; then
2266 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2267 echo "${ECHO_T}$XGETTEXT" >&6
2268 else
2269 echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6
2271 fi
2272
2273 rm -f messages.po
2274
2275
2276 # Prepare PATH_SEPARATOR.
2277 # The user is always right.
2278 if test "${PATH_SEPARATOR+set}" != set; then
2279 echo "#! /bin/sh" >conf$$.sh
2280 echo "exit 0" >>conf$$.sh
2281 chmod +x conf$$.sh
2282 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2283 PATH_SEPARATOR=';'
2284 else
2285 PATH_SEPARATOR=:
2286 fi
2287 rm -f conf$$.sh
2288 fi
2289
2290 # Find out how to test for executable files. Don't use a zero-byte file,
2291 # as systems may use methods other than mode bits to determine executability.
2292 cat >conf$$.file <<_ASEOF
2293 #! /bin/sh
2294 exit 0
2295 _ASEOF
2296 chmod +x conf$$.file
2297 if test -x conf$$.file >/dev/null 2>&1; then
2298 ac_executable_p="test -x"
2299 else
2300 ac_executable_p="test -f"
2301 fi
2302 rm -f conf$$.file
2303
2304 # Extract the first word of "msgmerge", so it can be a program name with args.
2305 set dummy msgmerge; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 case "$MSGMERGE" in
2312 [\\/]* | ?:[\\/]*)
2313 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2314 ;;
2315 *)
2316 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2317 for ac_dir in $PATH; do
2318 IFS="$ac_save_IFS"
2319 test -z "$ac_dir" && ac_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2322 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2323 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2324 break 2
2325 fi
2326 fi
2327 done
2328 done
2329 IFS="$ac_save_IFS"
2330 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2331 ;;
2332 esac
2333 fi
2334 MSGMERGE="$ac_cv_path_MSGMERGE"
2335 if test "$MSGMERGE" != ":"; then
2336 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2337 echo "${ECHO_T}$MSGMERGE" >&6
2338 else
2339 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2341 fi
2342
2343
2344 if test "$GMSGFMT" != ":"; then
2345 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2346 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2347 : ;
2348 else
2349 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2350 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2351 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2352 GMSGFMT=":"
2353 fi
2354 fi
2355
2356 if test "$XGETTEXT" != ":"; then
2357 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2358 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2359 : ;
2360 else
2361 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2362 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2363 XGETTEXT=":"
2364 fi
2365 rm -f messages.po
2366 fi
2367
2368 ac_config_commands="$ac_config_commands default-1"
2369
2370
2371 DEPDIR="${am__leading_dot}deps"
2372
2373 ac_config_commands="$ac_config_commands depfiles"
2374
2375
2376 am_make=${MAKE-make}
2377 cat > confinc << 'END'
2378 am__doit:
2379 @echo done
2380 .PHONY: am__doit
2381 END
2382 # If we don't find an include directive, just comment out the code.
2383 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2384 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2385 am__include="#"
2386 am__quote=
2387 _am_result=none
2388 # First try GNU make style include.
2389 echo "include confinc" > confmf
2390 # We grep out `Entering directory' and `Leaving directory'
2391 # messages which can occur if `w' ends up in MAKEFLAGS.
2392 # In particular we don't look at `^make:' because GNU make might
2393 # be invoked under some other name (usually "gmake"), in which
2394 # case it prints its new name instead of `make'.
2395 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2396 am__include=include
2397 am__quote=
2398 _am_result=GNU
2399 fi
2400 # Now try BSD make style include.
2401 if test "$am__include" = "#"; then
2402 echo '.include "confinc"' > confmf
2403 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2404 am__include=.include
2405 am__quote="\""
2406 _am_result=BSD
2407 fi
2408 fi
2409
2410
2411 echo "$as_me:$LINENO: result: $_am_result" >&5
2412 echo "${ECHO_T}$_am_result" >&6
2413 rm -f confinc confmf
2414
2415 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2416 if test "${enable_dependency_tracking+set}" = set; then
2417 enableval="$enable_dependency_tracking"
2418
2419 fi;
2420 if test "x$enable_dependency_tracking" != xno; then
2421 am_depcomp="$ac_aux_dir/depcomp"
2422 AMDEPBACKSLASH='\'
2423 fi
2424
2425
2426 if test "x$enable_dependency_tracking" != xno; then
2427 AMDEP_TRUE=
2428 AMDEP_FALSE='#'
2429 else
2430 AMDEP_TRUE='#'
2431 AMDEP_FALSE=
2432 fi
2433
2434
2435
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463 done
2464 done
2465
2466 fi
2467 fi
2468 CC=$ac_cv_prog_CC
2469 if test -n "$CC"; then
2470 echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477 fi
2478 if test -z "$ac_cv_prog_CC"; then
2479 ac_ct_CC=$CC
2480 # Extract the first word of "gcc", so it can be a program name with args.
2481 set dummy gcc; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_CC="gcc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501 done
2502 done
2503
2504 fi
2505 fi
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6
2510 else
2511 echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2513 fi
2514
2515 CC=$ac_ct_CC
2516 else
2517 CC="$ac_cv_prog_CC"
2518 fi
2519
2520 if test -z "$CC"; then
2521 if test -n "$ac_tool_prefix"; then
2522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2523 set dummy ${ac_tool_prefix}cc; ac_word=$2
2524 echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_CC="${ac_tool_prefix}cc"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545
2546 fi
2547 fi
2548 CC=$ac_cv_prog_CC
2549 if test -n "$CC"; then
2550 echo "$as_me:$LINENO: result: $CC" >&5
2551 echo "${ECHO_T}$CC" >&6
2552 else
2553 echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6
2555 fi
2556
2557 fi
2558 if test -z "$ac_cv_prog_CC"; then
2559 ac_ct_CC=$CC
2560 # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2577 ac_cv_prog_ac_ct_CC="cc"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581 done
2582 done
2583
2584 fi
2585 fi
2586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2587 if test -n "$ac_ct_CC"; then
2588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2589 echo "${ECHO_T}$ac_ct_CC" >&6
2590 else
2591 echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6
2593 fi
2594
2595 CC=$ac_ct_CC
2596 else
2597 CC="$ac_cv_prog_CC"
2598 fi
2599
2600 fi
2601 if test -z "$CC"; then
2602 # Extract the first word of "cc", so it can be a program name with args.
2603 set dummy cc; ac_word=$2
2604 echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2606 if test "${ac_cv_prog_CC+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2611 else
2612 ac_prog_rejected=no
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2621 ac_prog_rejected=yes
2622 continue
2623 fi
2624 ac_cv_prog_CC="cc"
2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628 done
2629 done
2630
2631 if test $ac_prog_rejected = yes; then
2632 # We found a bogon in the path, so make sure we never use it.
2633 set dummy $ac_cv_prog_CC
2634 shift
2635 if test $# != 0; then
2636 # We chose a different compiler from the bogus one.
2637 # However, it has the same basename, so the bogon will be chosen
2638 # first if we set CC to just the basename; use the full file name.
2639 shift
2640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2641 fi
2642 fi
2643 fi
2644 fi
2645 CC=$ac_cv_prog_CC
2646 if test -n "$CC"; then
2647 echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6
2649 else
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2652 fi
2653
2654 fi
2655 if test -z "$CC"; then
2656 if test -n "$ac_tool_prefix"; then
2657 for ac_prog in cl
2658 do
2659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2661 echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682
2683 fi
2684 fi
2685 CC=$ac_cv_prog_CC
2686 if test -n "$CC"; then
2687 echo "$as_me:$LINENO: result: $CC" >&5
2688 echo "${ECHO_T}$CC" >&6
2689 else
2690 echo "$as_me:$LINENO: result: no" >&5
2691 echo "${ECHO_T}no" >&6
2692 fi
2693
2694 test -n "$CC" && break
2695 done
2696 fi
2697 if test -z "$CC"; then
2698 ac_ct_CC=$CC
2699 for ac_prog in cl
2700 do
2701 # Extract the first word of "$ac_prog", so it can be a program name with args.
2702 set dummy $ac_prog; ac_word=$2
2703 echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 if test -n "$ac_ct_CC"; then
2709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 ac_cv_prog_ac_ct_CC="$ac_prog"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724
2725 fi
2726 fi
2727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728 if test -n "$ac_ct_CC"; then
2729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730 echo "${ECHO_T}$ac_ct_CC" >&6
2731 else
2732 echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6
2734 fi
2735
2736 test -n "$ac_ct_CC" && break
2737 done
2738
2739 CC=$ac_ct_CC
2740 fi
2741
2742 fi
2743
2744
2745 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2746 See \`config.log' for more details." >&5
2747 echo "$as_me: error: no acceptable C compiler found in \$PATH
2748 See \`config.log' for more details." >&2;}
2749 { (exit 1); exit 1; }; }
2750
2751 # Provide some information about the compiler.
2752 echo "$as_me:$LINENO:" \
2753 "checking for C compiler version" >&5
2754 ac_compiler=`set X $ac_compile; echo $2`
2755 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2756 (eval $ac_compiler --version </dev/null >&5) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
2760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2761 (eval $ac_compiler -v </dev/null >&5) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2766 (eval $ac_compiler -V </dev/null >&5) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }
2770
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777
2778 int
2779 main ()
2780 {
2781
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 ac_clean_files_save=$ac_clean_files
2787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2788 # Try to create an executable without -o first, disregard a.out.
2789 # It will help us diagnose broken compilers, and finding out an intuition
2790 # of exeext.
2791 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2792 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2794 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2795 (eval $ac_link_default) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; then
2799 # Find the output, starting from the most likely. This scheme is
2800 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2801 # resort.
2802
2803 # Be careful to initialize this variable, since it used to be cached.
2804 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2805 ac_cv_exeext=
2806 # b.out is created by i960 compilers.
2807 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2808 do
2809 test -f "$ac_file" || continue
2810 case $ac_file in
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2812 ;;
2813 conftest.$ac_ext )
2814 # This is the source file.
2815 ;;
2816 [ab].out )
2817 # We found the default executable, but exeext='' is most
2818 # certainly right.
2819 break;;
2820 *.* )
2821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822 # FIXME: I believe we export ac_cv_exeext for Libtool,
2823 # but it would be cool to find out if it's true. Does anybody
2824 # maintain Libtool? --akim.
2825 export ac_cv_exeext
2826 break;;
2827 * )
2828 break;;
2829 esac
2830 done
2831 else
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2834
2835 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2836 See \`config.log' for more details." >&5
2837 echo "$as_me: error: C compiler cannot create executables
2838 See \`config.log' for more details." >&2;}
2839 { (exit 77); exit 77; }; }
2840 fi
2841
2842 ac_exeext=$ac_cv_exeext
2843 echo "$as_me:$LINENO: result: $ac_file" >&5
2844 echo "${ECHO_T}$ac_file" >&6
2845
2846 # Check the compiler produces executables we can run. If not, either
2847 # the compiler is broken, or we cross compile.
2848 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2849 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2850 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2851 # If not cross compiling, check that we can run a simple program.
2852 if test "$cross_compiling" != yes; then
2853 if { ac_try='./$ac_file'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 cross_compiling=no
2860 else
2861 if test "$cross_compiling" = maybe; then
2862 cross_compiling=yes
2863 else
2864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2871 fi
2872 fi
2873 fi
2874 echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6
2876
2877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 # Check the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2883 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2884 echo "${ECHO_T}$cross_compiling" >&6
2885
2886 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2889 (eval $ac_link) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 # `rm'.
2897 for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2899 case $ac_file in
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 export ac_cv_exeext
2903 break;;
2904 * ) break;;
2905 esac
2906 done
2907 else
2908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2911 See \`config.log' for more details." >&2;}
2912 { (exit 1); exit 1; }; }
2913 fi
2914
2915 rm -f conftest$ac_cv_exeext
2916 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2917 echo "${ECHO_T}$ac_cv_exeext" >&6
2918
2919 rm -f conftest.$ac_ext
2920 EXEEXT=$ac_cv_exeext
2921 ac_exeext=$EXEEXT
2922 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2924 if test "${ac_cv_objext+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h. */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2933
2934 int
2935 main ()
2936 {
2937
2938 ;
2939 return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.o conftest.obj
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; then
2948 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2949 case $ac_file in
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 break;;
2953 esac
2954 done
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2964 fi
2965
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 fi
2968 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969 echo "${ECHO_T}$ac_cv_objext" >&6
2970 OBJEXT=$ac_cv_objext
2971 ac_objext=$OBJEXT
2972 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983
2984 int
2985 main ()
2986 {
2987 #ifndef __GNUC__
2988 choke me
2989 #endif
2990
2991 ;
2992 return 0;
2993 }
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -z "$ac_c_werror_flag"
3005 || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_compiler_gnu=yes
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 ac_compiler_gnu=no
3023 fi
3024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3026
3027 fi
3028 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3030 GCC=`test $ac_compiler_gnu = yes && echo yes`
3031 ac_test_CFLAGS=${CFLAGS+set}
3032 ac_save_CFLAGS=$CFLAGS
3033 CFLAGS="-g"
3034 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3035 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3036 if test "${ac_cv_prog_cc_g+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h. */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3045
3046 int
3047 main ()
3048 {
3049
3050 ;
3051 return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>conftest.er1
3057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
3063 { ac_try='test -z "$ac_c_werror_flag"
3064 || test ! -s conftest.err'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 (eval $ac_try) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_prog_cc_g=yes
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 ac_cv_prog_cc_g=no
3082 fi
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084 fi
3085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3086 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3087 if test "$ac_test_CFLAGS" = set; then
3088 CFLAGS=$ac_save_CFLAGS
3089 elif test $ac_cv_prog_cc_g = yes; then
3090 if test "$GCC" = yes; then
3091 CFLAGS="-g -O2"
3092 else
3093 CFLAGS="-g"
3094 fi
3095 else
3096 if test "$GCC" = yes; then
3097 CFLAGS="-O2"
3098 else
3099 CFLAGS=
3100 fi
3101 fi
3102 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3103 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3104 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 ac_cv_prog_cc_stdc=no
3108 ac_save_CC=$CC
3109 cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3115 #include <stdarg.h>
3116 #include <stdio.h>
3117 #include <sys/types.h>
3118 #include <sys/stat.h>
3119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3120 struct buf { int x; };
3121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3122 static char *e (p, i)
3123 char **p;
3124 int i;
3125 {
3126 return p[i];
3127 }
3128 static char *f (char * (*g) (char **, int), char **p, ...)
3129 {
3130 char *s;
3131 va_list v;
3132 va_start (v,p);
3133 s = g (p, va_arg (v,int));
3134 va_end (v);
3135 return s;
3136 }
3137
3138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3139 function prototypes and stuff, but not '\xHH' hex character constants.
3140 These don't provoke an error unfortunately, instead are silently treated
3141 as 'x'. The following induces an error, until -std1 is added to get
3142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3143 array size at least. It's necessary to write '\x00'==0 to get something
3144 that's true only with -std1. */
3145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3146
3147 int test (int i, double x);
3148 struct s1 {int (*f) (int a);};
3149 struct s2 {int (*f) (double a);};
3150 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3151 int argc;
3152 char **argv;
3153 int
3154 main ()
3155 {
3156 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3157 ;
3158 return 0;
3159 }
3160 _ACEOF
3161 # Don't try gcc -ansi; that turns off useful extensions and
3162 # breaks some systems' header files.
3163 # AIX -qlanglvl=ansi
3164 # Ultrix and OSF/1 -std1
3165 # HP-UX 10.20 and later -Ae
3166 # HP-UX older versions -Aa -D_HPUX_SOURCE
3167 # SVR4 -Xc -D__EXTENSIONS__
3168 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3169 do
3170 CC="$ac_save_CC $ac_arg"
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } &&
3180 { ac_try='test -z "$ac_c_werror_flag"
3181 || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_prog_cc_stdc=$ac_arg
3194 break
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 fi
3200 rm -f conftest.err conftest.$ac_objext
3201 done
3202 rm -f conftest.$ac_ext conftest.$ac_objext
3203 CC=$ac_save_CC
3204
3205 fi
3206
3207 case "x$ac_cv_prog_cc_stdc" in
3208 x|xno)
3209 echo "$as_me:$LINENO: result: none needed" >&5
3210 echo "${ECHO_T}none needed" >&6 ;;
3211 *)
3212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3213 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3214 CC="$CC $ac_cv_prog_cc_stdc" ;;
3215 esac
3216
3217 # Some people use a C++ compiler to compile C. Since we use `exit',
3218 # in C++ we need to declare it. In case someone uses the same compiler
3219 # for both compiling C and C++ we need to have the C++ compiler decide
3220 # the declaration of exit, since it's the most demanding environment.
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #ifndef __cplusplus
3223 choke me
3224 #endif
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228 (eval $ac_compile) 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag"
3236 || test ! -s conftest.err'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 (eval $ac_try) 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 for ac_declaration in \
3249 '' \
3250 'extern "C" void std::exit (int) throw (); using std::exit;' \
3251 'extern "C" void std::exit (int); using std::exit;' \
3252 'extern "C" void exit (int) throw ();' \
3253 'extern "C" void exit (int);' \
3254 'void exit (int);'
3255 do
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262 $ac_declaration
3263 #include <stdlib.h>
3264 int
3265 main ()
3266 {
3267 exit (42);
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 :
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 continue
3300 fi
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h. */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3308 $ac_declaration
3309 int
3310 main ()
3311 {
3312 exit (42);
3313 ;
3314 return 0;
3315 }
3316 _ACEOF
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_c_werror_flag"
3327 || test ! -s conftest.err'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 break
3340 else
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 fi
3345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3346 done
3347 rm -f conftest*
3348 if test -n "$ac_declaration"; then
3349 echo '#ifdef __cplusplus' >>confdefs.h
3350 echo $ac_declaration >>confdefs.h
3351 echo '#endif' >>confdefs.h
3352 fi
3353
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358 fi
3359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365
3366 depcc="$CC" am_compiler_list=
3367
3368 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3369 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3370 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3374 # We make a subdir and do the tests there. Otherwise we can end up
3375 # making bogus files that we don't know about and never remove. For
3376 # instance it was reported that on HP-UX the gcc test will end up
3377 # making a dummy file named `D' -- because `-MD' means `put the output
3378 # in D'.
3379 mkdir conftest.dir
3380 # Copy depcomp to subdir because otherwise we won't find it if we're
3381 # using a relative directory.
3382 cp "$am_depcomp" conftest.dir
3383 cd conftest.dir
3384 # We will build objects and dependencies in a subdirectory because
3385 # it helps to detect inapplicable dependency modes. For instance
3386 # both Tru64's cc and ICC support -MD to output dependencies as a
3387 # side effect of compilation, but ICC will put the dependencies in
3388 # the current directory while Tru64 will put them in the object
3389 # directory.
3390 mkdir sub
3391
3392 am_cv_CC_dependencies_compiler_type=none
3393 if test "$am_compiler_list" = ""; then
3394 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3395 fi
3396 for depmode in $am_compiler_list; do
3397 # Setup a source with many dependencies, because some compilers
3398 # like to wrap large dependency lists on column 80 (with \), and
3399 # we should not choose a depcomp mode which is confused by this.
3400 #
3401 # We need to recreate these files for each test, as the compiler may
3402 # overwrite some of them when testing with obscure command lines.
3403 # This happens at least with the AIX C compiler.
3404 : > sub/conftest.c
3405 for i in 1 2 3 4 5 6; do
3406 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3407 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3408 # Solaris 8's {/usr,}/bin/sh.
3409 touch sub/conftst$i.h
3410 done
3411 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3412
3413 case $depmode in
3414 nosideeffect)
3415 # after this tag, mechanisms are not by side-effect, so they'll
3416 # only be used when explicitly requested
3417 if test "x$enable_dependency_tracking" = xyes; then
3418 continue
3419 else
3420 break
3421 fi
3422 ;;
3423 none) break ;;
3424 esac
3425 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3426 # mode. It turns out that the SunPro C++ compiler does not properly
3427 # handle `-M -o', and we need to detect this.
3428 if depmode=$depmode \
3429 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3431 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3432 >/dev/null 2>conftest.err &&
3433 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3434 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3436 # icc doesn't choke on unknown options, it will just issue warnings
3437 # or remarks (even with -Werror). So we grep stderr for any message
3438 # that says an option was ignored or not supported.
3439 # When given -MP, icc 7.0 and 7.1 complain thusly:
3440 # icc: Command line warning: ignoring option '-M'; no argument required
3441 # The diagnosis changed in icc 8.0:
3442 # icc: Command line remark: option '-MP' not supported
3443 if (grep 'ignoring option' conftest.err ||
3444 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3445 am_cv_CC_dependencies_compiler_type=$depmode
3446 break
3447 fi
3448 fi
3449 done
3450
3451 cd ..
3452 rm -rf conftest.dir
3453 else
3454 am_cv_CC_dependencies_compiler_type=none
3455 fi
3456
3457 fi
3458 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3459 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3460 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3461
3462
3463
3464 if
3465 test "x$enable_dependency_tracking" != xno \
3466 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3467 am__fastdepCC_TRUE=
3468 am__fastdepCC_FALSE='#'
3469 else
3470 am__fastdepCC_TRUE='#'
3471 am__fastdepCC_FALSE=
3472 fi
3473
3474
3475 if test -n "$ac_tool_prefix"; then
3476 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3477 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3478 echo "$as_me:$LINENO: checking for $ac_word" >&5
3479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3480 if test "${ac_cv_prog_RANLIB+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483 if test -n "$RANLIB"; then
3484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3488 do
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497 done
3498 done
3499
3500 fi
3501 fi
3502 RANLIB=$ac_cv_prog_RANLIB
3503 if test -n "$RANLIB"; then
3504 echo "$as_me:$LINENO: result: $RANLIB" >&5
3505 echo "${ECHO_T}$RANLIB" >&6
3506 else
3507 echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6
3509 fi
3510
3511 fi
3512 if test -z "$ac_cv_prog_RANLIB"; then
3513 ac_ct_RANLIB=$RANLIB
3514 # Extract the first word of "ranlib", so it can be a program name with args.
3515 set dummy ranlib; ac_word=$2
3516 echo "$as_me:$LINENO: checking for $ac_word" >&5
3517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 if test -n "$ac_ct_RANLIB"; then
3522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3526 do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_ac_ct_RANLIB="ranlib"
3532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3534 fi
3535 done
3536 done
3537
3538 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3539 fi
3540 fi
3541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3542 if test -n "$ac_ct_RANLIB"; then
3543 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3544 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3545 else
3546 echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3548 fi
3549
3550 RANLIB=$ac_ct_RANLIB
3551 else
3552 RANLIB="$ac_cv_prog_RANLIB"
3553 fi
3554
3555
3556 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3557 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3558 if test "${ac_cv_search_strerror+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 ac_func_search_save_LIBS=$LIBS
3562 ac_cv_search_strerror=no
3563 cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h. */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569
3570 /* Override any gcc2 internal prototype to avoid an error. */
3571 #ifdef __cplusplus
3572 extern "C"
3573 #endif
3574 /* We use char because int might match the return type of a gcc2
3575 builtin and then its argument prototype would still apply. */
3576 char strerror ();
3577 int
3578 main ()
3579 {
3580 strerror ();
3581 ;
3582 return 0;
3583 }
3584 _ACEOF
3585 rm -f conftest.$ac_objext conftest$ac_exeext
3586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3587 (eval $ac_link) 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
3594 { ac_try='test -z "$ac_c_werror_flag"
3595 || test ! -s conftest.err'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 (eval $ac_try) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try='test -s conftest$ac_exeext'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3607 ac_cv_search_strerror="none required"
3608 else
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612 fi
3613 rm -f conftest.err conftest.$ac_objext \
3614 conftest$ac_exeext conftest.$ac_ext
3615 if test "$ac_cv_search_strerror" = no; then
3616 for ac_lib in cposix; do
3617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 #ifdef __cplusplus
3627 extern "C"
3628 #endif
3629 /* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3631 char strerror ();
3632 int
3633 main ()
3634 {
3635 strerror ();
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 rm -f conftest.$ac_objext conftest$ac_exeext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642 (eval $ac_link) 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest$ac_exeext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_cv_search_strerror="-l$ac_lib"
3663 break
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 fi
3669 rm -f conftest.err conftest.$ac_objext \
3670 conftest$ac_exeext conftest.$ac_ext
3671 done
3672 fi
3673 LIBS=$ac_func_search_save_LIBS
3674 fi
3675 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3676 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3677 if test "$ac_cv_search_strerror" != no; then
3678 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3679
3680 fi
3681
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3688 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3689 # On Suns, sometimes $CPP names a directory.
3690 if test -n "$CPP" && test -d "$CPP"; then
3691 CPP=
3692 fi
3693 if test -z "$CPP"; then
3694 if test "${ac_cv_prog_CPP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 # Double quotes because CPP needs to be expanded
3698 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3699 do
3700 ac_preproc_ok=false
3701 for ac_c_preproc_warn_flag in '' yes
3702 do
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
3705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #ifdef __STDC__
3716 # include <limits.h>
3717 #else
3718 # include <assert.h>
3719 #endif
3720 Syntax error
3721 _ACEOF
3722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev/null; then
3730 if test -s conftest.err; then
3731 ac_cpp_err=$ac_c_preproc_warn_flag
3732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3733 else
3734 ac_cpp_err=
3735 fi
3736 else
3737 ac_cpp_err=yes
3738 fi
3739 if test -z "$ac_cpp_err"; then
3740 :
3741 else
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 # Broken: fails on valid input.
3746 continue
3747 fi
3748 rm -f conftest.err conftest.$ac_ext
3749
3750 # OK, works on sane cases. Now check whether non-existent headers
3751 # can be detected and how.
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3759 _ACEOF
3760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } >/dev/null; then
3768 if test -s conftest.err; then
3769 ac_cpp_err=$ac_c_preproc_warn_flag
3770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3771 else
3772 ac_cpp_err=
3773 fi
3774 else
3775 ac_cpp_err=yes
3776 fi
3777 if test -z "$ac_cpp_err"; then
3778 # Broken: success on invalid input.
3779 continue
3780 else
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 # Passes both tests.
3785 ac_preproc_ok=:
3786 break
3787 fi
3788 rm -f conftest.err conftest.$ac_ext
3789
3790 done
3791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792 rm -f conftest.err conftest.$ac_ext
3793 if $ac_preproc_ok; then
3794 break
3795 fi
3796
3797 done
3798 ac_cv_prog_CPP=$CPP
3799
3800 fi
3801 CPP=$ac_cv_prog_CPP
3802 else
3803 ac_cv_prog_CPP=$CPP
3804 fi
3805 echo "$as_me:$LINENO: result: $CPP" >&5
3806 echo "${ECHO_T}$CPP" >&6
3807 ac_preproc_ok=false
3808 for ac_c_preproc_warn_flag in '' yes
3809 do
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822 #ifdef __STDC__
3823 # include <limits.h>
3824 #else
3825 # include <assert.h>
3826 #endif
3827 Syntax error
3828 _ACEOF
3829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } >/dev/null; then
3837 if test -s conftest.err; then
3838 ac_cpp_err=$ac_c_preproc_warn_flag
3839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3840 else
3841 ac_cpp_err=
3842 fi
3843 else
3844 ac_cpp_err=yes
3845 fi
3846 if test -z "$ac_cpp_err"; then
3847 :
3848 else
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 # Broken: fails on valid input.
3853 continue
3854 fi
3855 rm -f conftest.err conftest.$ac_ext
3856
3857 # OK, works on sane cases. Now check whether non-existent headers
3858 # can be detected and how.
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <ac_nonexistent.h>
3866 _ACEOF
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev/null; then
3875 if test -s conftest.err; then
3876 ac_cpp_err=$ac_c_preproc_warn_flag
3877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3878 else
3879 ac_cpp_err=
3880 fi
3881 else
3882 ac_cpp_err=yes
3883 fi
3884 if test -z "$ac_cpp_err"; then
3885 # Broken: success on invalid input.
3886 continue
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 # Passes both tests.
3892 ac_preproc_ok=:
3893 break
3894 fi
3895 rm -f conftest.err conftest.$ac_ext
3896
3897 done
3898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3899 rm -f conftest.err conftest.$ac_ext
3900 if $ac_preproc_ok; then
3901 :
3902 else
3903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3904 See \`config.log' for more details." >&5
3905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3906 See \`config.log' for more details." >&2;}
3907 { (exit 1); exit 1; }; }
3908 fi
3909
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915
3916
3917 echo "$as_me:$LINENO: checking for egrep" >&5
3918 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3919 if test "${ac_cv_prog_egrep+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3923 then ac_cv_prog_egrep='grep -E'
3924 else ac_cv_prog_egrep='egrep'
3925 fi
3926 fi
3927 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3928 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3929 EGREP=$ac_cv_prog_egrep
3930
3931
3932 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3933 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3934 if test "${ac_cv_header_stdc+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 #include <stdlib.h>
3944 #include <stdarg.h>
3945 #include <string.h>
3946 #include <float.h>
3947
3948 int
3949 main ()
3950 {
3951
3952 ;
3953 return 0;
3954 }
3955 _ACEOF
3956 rm -f conftest.$ac_objext
3957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958 (eval $ac_compile) 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } &&
3965 { ac_try='test -z "$ac_c_werror_flag"
3966 || test ! -s conftest.err'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_header_stdc=yes
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 ac_cv_header_stdc=no
3984 fi
3985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3986
3987 if test $ac_cv_header_stdc = yes; then
3988 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 #include <string.h>
3996
3997 _ACEOF
3998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3999 $EGREP "memchr" >/dev/null 2>&1; then
4000 :
4001 else
4002 ac_cv_header_stdc=no
4003 fi
4004 rm -f conftest*
4005
4006 fi
4007
4008 if test $ac_cv_header_stdc = yes; then
4009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4010 cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h. */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4016 #include <stdlib.h>
4017
4018 _ACEOF
4019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4020 $EGREP "free" >/dev/null 2>&1; then
4021 :
4022 else
4023 ac_cv_header_stdc=no
4024 fi
4025 rm -f conftest*
4026
4027 fi
4028
4029 if test $ac_cv_header_stdc = yes; then
4030 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4031 if test "$cross_compiling" = yes; then
4032 :
4033 else
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 #include <ctype.h>
4041 #if ((' ' & 0x0FF) == 0x020)
4042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4044 #else
4045 # define ISLOWER(c) \
4046 (('a' <= (c) && (c) <= 'i') \
4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
4049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4050 #endif
4051
4052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4053 int
4054 main ()
4055 {
4056 int i;
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
4059 || toupper (i) != TOUPPER (i))
4060 exit(2);
4061 exit (0);
4062 }
4063 _ACEOF
4064 rm -f conftest$ac_exeext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4066 (eval $ac_link) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4075 :
4076 else
4077 echo "$as_me: program exited with status $ac_status" >&5
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081 ( exit $ac_status )
4082 ac_cv_header_stdc=no
4083 fi
4084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4085 fi
4086 fi
4087 fi
4088 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4089 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4090 if test $ac_cv_header_stdc = yes; then
4091
4092 cat >>confdefs.h <<\_ACEOF
4093 #define STDC_HEADERS 1
4094 _ACEOF
4095
4096 fi
4097
4098 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4099 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4100 if test "${ac_cv_c_const+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109
4110 int
4111 main ()
4112 {
4113 /* FIXME: Include the comments suggested by Paul. */
4114 #ifndef __cplusplus
4115 /* Ultrix mips cc rejects this. */
4116 typedef int charset[2];
4117 const charset x;
4118 /* SunOS 4.1.1 cc rejects this. */
4119 char const *const *ccp;
4120 char **p;
4121 /* NEC SVR4.0.2 mips cc rejects this. */
4122 struct point {int x, y;};
4123 static struct point const zero = {0,0};
4124 /* AIX XL C 1.02.0.0 rejects this.
4125 It does not let you subtract one const X* pointer from another in
4126 an arm of an if-expression whose if-part is not a constant
4127 expression */
4128 const char *g = "string";
4129 ccp = &g + (g ? g-g : 0);
4130 /* HPUX 7.0 cc rejects these. */
4131 ++ccp;
4132 p = (char**) ccp;
4133 ccp = (char const *const *) p;
4134 { /* SCO 3.2v4 cc rejects this. */
4135 char *t;
4136 char const *s = 0 ? (char *) 0 : (char const *) 0;
4137
4138 *t++ = 0;
4139 }
4140 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4141 int x[] = {25, 17};
4142 const int *foo = &x[0];
4143 ++foo;
4144 }
4145 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4146 typedef const int *iptr;
4147 iptr p = 0;
4148 ++p;
4149 }
4150 { /* AIX XL C 1.02.0.0 rejects this saying
4151 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4152 struct s { int j; const int *ap[3]; };
4153 struct s *b; b->j = 5;
4154 }
4155 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4156 const int foo = 10;
4157 }
4158 #endif
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 rm -f conftest.$ac_objext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166 (eval $ac_compile) 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag"
4174 || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest.$ac_objext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_cv_c_const=yes
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 ac_cv_c_const=no
4192 fi
4193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4194 fi
4195 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4196 echo "${ECHO_T}$ac_cv_c_const" >&6
4197 if test $ac_cv_c_const = no; then
4198
4199 cat >>confdefs.h <<\_ACEOF
4200 #define const
4201 _ACEOF
4202
4203 fi
4204
4205 echo "$as_me:$LINENO: checking for inline" >&5
4206 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4207 if test "${ac_cv_c_inline+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 ac_cv_c_inline=no
4211 for ac_kw in inline __inline__ __inline; do
4212 cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h. */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 #ifndef __cplusplus
4219 typedef int foo_t;
4220 static $ac_kw foo_t static_foo () {return 0; }
4221 $ac_kw foo_t foo () {return 0; }
4222 #endif
4223
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag"
4235 || test ! -s conftest.err'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; } &&
4241 { ac_try='test -s conftest.$ac_objext'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 ac_cv_c_inline=$ac_kw; break
4248 else
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 fi
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4254 done
4255
4256 fi
4257 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4258 echo "${ECHO_T}$ac_cv_c_inline" >&6
4259
4260
4261 case $ac_cv_c_inline in
4262 inline | yes) ;;
4263 *)
4264 case $ac_cv_c_inline in
4265 no) ac_val=;;
4266 *) ac_val=$ac_cv_c_inline;;
4267 esac
4268 cat >>confdefs.h <<_ACEOF
4269 #ifndef __cplusplus
4270 #define inline $ac_val
4271 #endif
4272 _ACEOF
4273 ;;
4274 esac
4275
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287 inttypes.h stdint.h unistd.h
4288 do
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4302
4303 #include <$ac_header>
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag"
4315 || test ! -s conftest.err'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 (eval $ac_try) 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try='test -s conftest.$ac_objext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 (eval $ac_try) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 eval "$as_ac_Header=yes"
4328 else
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 eval "$as_ac_Header=no"
4333 fi
4334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4339 cat >>confdefs.h <<_ACEOF
4340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4341 _ACEOF
4342
4343 fi
4344
4345 done
4346
4347
4348 echo "$as_me:$LINENO: checking for off_t" >&5
4349 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4350 if test "${ac_cv_type_off_t+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 $ac_includes_default
4360 int
4361 main ()
4362 {
4363 if ((off_t *) 0)
4364 return 0;
4365 if (sizeof (off_t))
4366 return 0;
4367 ;
4368 return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_cv_type_off_t=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_cv_type_off_t=no
4399 fi
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 fi
4402 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4403 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4404 if test $ac_cv_type_off_t = yes; then
4405 :
4406 else
4407
4408 cat >>confdefs.h <<_ACEOF
4409 #define off_t long
4410 _ACEOF
4411
4412 fi
4413
4414 echo "$as_me:$LINENO: checking for size_t" >&5
4415 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4416 if test "${ac_cv_type_size_t+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 $ac_includes_default
4426 int
4427 main ()
4428 {
4429 if ((size_t *) 0)
4430 return 0;
4431 if (sizeof (size_t))
4432 return 0;
4433 ;
4434 return 0;
4435 }
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_cv_type_size_t=yes
4460 else
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4463
4464 ac_cv_type_size_t=no
4465 fi
4466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4467 fi
4468 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4469 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4470 if test $ac_cv_type_size_t = yes; then
4471 :
4472 else
4473
4474 cat >>confdefs.h <<_ACEOF
4475 #define size_t unsigned
4476 _ACEOF
4477
4478 fi
4479
4480 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4481 # for constant arguments. Useless!
4482 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4483 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4484 if test "${ac_cv_working_alloca_h+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 #include <alloca.h>
4494 int
4495 main ()
4496 {
4497 char *p = (char *) alloca (2 * sizeof (int));
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 rm -f conftest.$ac_objext conftest$ac_exeext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4504 (eval $ac_link) 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -z "$ac_c_werror_flag"
4512 || test ! -s conftest.err'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; } &&
4518 { ac_try='test -s conftest$ac_exeext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_cv_working_alloca_h=yes
4525 else
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 ac_cv_working_alloca_h=no
4530 fi
4531 rm -f conftest.err conftest.$ac_objext \
4532 conftest$ac_exeext conftest.$ac_ext
4533 fi
4534 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4535 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4536 if test $ac_cv_working_alloca_h = yes; then
4537
4538 cat >>confdefs.h <<\_ACEOF
4539 #define HAVE_ALLOCA_H 1
4540 _ACEOF
4541
4542 fi
4543
4544 echo "$as_me:$LINENO: checking for alloca" >&5
4545 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4546 if test "${ac_cv_func_alloca_works+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h. */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 #ifdef __GNUC__
4556 # define alloca __builtin_alloca
4557 #else
4558 # ifdef _MSC_VER
4559 # include <malloc.h>
4560 # define alloca _alloca
4561 # else
4562 # if HAVE_ALLOCA_H
4563 # include <alloca.h>
4564 # else
4565 # ifdef _AIX
4566 #pragma alloca
4567 # else
4568 # ifndef alloca /* predefined by HP cc +Olibcalls */
4569 char *alloca ();
4570 # endif
4571 # endif
4572 # endif
4573 # endif
4574 #endif
4575
4576 int
4577 main ()
4578 {
4579 char *p = (char *) alloca (1);
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 rm -f conftest.$ac_objext conftest$ac_exeext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4586 (eval $ac_link) 2>conftest.er1
4587 ac_status=$?
4588 grep -v '^ *+' conftest.er1 >conftest.err
4589 rm -f conftest.er1
4590 cat conftest.err >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
4593 { ac_try='test -z "$ac_c_werror_flag"
4594 || test ! -s conftest.err'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; } &&
4600 { ac_try='test -s conftest$ac_exeext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_func_alloca_works=yes
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611 ac_cv_func_alloca_works=no
4612 fi
4613 rm -f conftest.err conftest.$ac_objext \
4614 conftest$ac_exeext conftest.$ac_ext
4615 fi
4616 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4617 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4618
4619 if test $ac_cv_func_alloca_works = yes; then
4620
4621 cat >>confdefs.h <<\_ACEOF
4622 #define HAVE_ALLOCA 1
4623 _ACEOF
4624
4625 else
4626 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4627 # that cause trouble. Some versions do not even contain alloca or
4628 # contain a buggy version. If you still want to use their alloca,
4629 # use ar to extract alloca.o from them instead of compiling alloca.c.
4630
4631 ALLOCA=alloca.$ac_objext
4632
4633 cat >>confdefs.h <<\_ACEOF
4634 #define C_ALLOCA 1
4635 _ACEOF
4636
4637
4638 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4639 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4640 if test "${ac_cv_os_cray+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 #if defined(CRAY) && ! defined(CRAY2)
4650 webecray
4651 #else
4652 wenotbecray
4653 #endif
4654
4655 _ACEOF
4656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4657 $EGREP "webecray" >/dev/null 2>&1; then
4658 ac_cv_os_cray=yes
4659 else
4660 ac_cv_os_cray=no
4661 fi
4662 rm -f conftest*
4663
4664 fi
4665 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4666 echo "${ECHO_T}$ac_cv_os_cray" >&6
4667 if test $ac_cv_os_cray = yes; then
4668 for ac_func in _getb67 GETB67 getb67; do
4669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4670 echo "$as_me:$LINENO: checking for $ac_func" >&5
4671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4672 if eval "test \"\${$as_ac_var+set}\" = set"; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675 cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4683 #define $ac_func innocuous_$ac_func
4684
4685 /* System header to define __stub macros and hopefully few prototypes,
4686 which can conflict with char $ac_func (); below.
4687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4688 <limits.h> exists even on freestanding compilers. */
4689
4690 #ifdef __STDC__
4691 # include <limits.h>
4692 #else
4693 # include <assert.h>
4694 #endif
4695
4696 #undef $ac_func
4697
4698 /* Override any gcc2 internal prototype to avoid an error. */
4699 #ifdef __cplusplus
4700 extern "C"
4701 {
4702 #endif
4703 /* We use char because int might match the return type of a gcc2
4704 builtin and then its argument prototype would still apply. */
4705 char $ac_func ();
4706 /* The GNU C library defines this for functions which it implements
4707 to always fail with ENOSYS. Some functions are actually named
4708 something starting with __ and the normal name is an alias. */
4709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4710 choke me
4711 #else
4712 char (*f) () = $ac_func;
4713 #endif
4714 #ifdef __cplusplus
4715 }
4716 #endif
4717
4718 int
4719 main ()
4720 {
4721 return f != $ac_func;
4722 ;
4723 return 0;
4724 }
4725 _ACEOF
4726 rm -f conftest.$ac_objext conftest$ac_exeext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728 (eval $ac_link) 2>conftest.er1
4729 ac_status=$?
4730 grep -v '^ *+' conftest.er1 >conftest.err
4731 rm -f conftest.er1
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try='test -z "$ac_c_werror_flag"
4736 || test ! -s conftest.err'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try='test -s conftest$ac_exeext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 eval "$as_ac_var=yes"
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 eval "$as_ac_var=no"
4754 fi
4755 rm -f conftest.err conftest.$ac_objext \
4756 conftest$ac_exeext conftest.$ac_ext
4757 fi
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4760 if test `eval echo '${'$as_ac_var'}'` = yes; then
4761
4762 cat >>confdefs.h <<_ACEOF
4763 #define CRAY_STACKSEG_END $ac_func
4764 _ACEOF
4765
4766 break
4767 fi
4768
4769 done
4770 fi
4771
4772 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4773 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4774 if test "${ac_cv_c_stack_direction+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 if test "$cross_compiling" = yes; then
4778 ac_cv_c_stack_direction=0
4779 else
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 int
4787 find_stack_direction ()
4788 {
4789 static char *addr = 0;
4790 auto char dummy;
4791 if (addr == 0)
4792 {
4793 addr = &dummy;
4794 return find_stack_direction ();
4795 }
4796 else
4797 return (&dummy > addr) ? 1 : -1;
4798 }
4799
4800 int
4801 main ()
4802 {
4803 exit (find_stack_direction () < 0);
4804 }
4805 _ACEOF
4806 rm -f conftest$ac_exeext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4808 (eval $ac_link) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 (eval $ac_try) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 ac_cv_c_stack_direction=1
4818 else
4819 echo "$as_me: program exited with status $ac_status" >&5
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 ( exit $ac_status )
4824 ac_cv_c_stack_direction=-1
4825 fi
4826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4827 fi
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4830 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4831
4832 cat >>confdefs.h <<_ACEOF
4833 #define STACK_DIRECTION $ac_cv_c_stack_direction
4834 _ACEOF
4835
4836
4837 fi
4838
4839
4840
4841 for ac_header in stdlib.h unistd.h
4842 do
4843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4845 echo "$as_me:$LINENO: checking for $ac_header" >&5
4846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 fi
4850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4852 else
4853 # Is the header compilable?
4854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 $ac_includes_default
4863 #include <$ac_header>
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag"
4875 || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_header_compiler=yes
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892 ac_header_compiler=no
4893 fi
4894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4896 echo "${ECHO_T}$ac_header_compiler" >&6
4897
4898 # Is the header present?
4899 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4901 cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h. */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 #include <$ac_header>
4908 _ACEOF
4909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } >/dev/null; then
4917 if test -s conftest.err; then
4918 ac_cpp_err=$ac_c_preproc_warn_flag
4919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4920 else
4921 ac_cpp_err=
4922 fi
4923 else
4924 ac_cpp_err=yes
4925 fi
4926 if test -z "$ac_cpp_err"; then
4927 ac_header_preproc=yes
4928 else
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ac_header_preproc=no
4933 fi
4934 rm -f conftest.err conftest.$ac_ext
4935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4936 echo "${ECHO_T}$ac_header_preproc" >&6
4937
4938 # So? What about this header?
4939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4940 yes:no: )
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4945 ac_header_preproc=yes
4946 ;;
4947 no:yes:* )
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4960 (
4961 cat <<\_ASBOX
4962 ## ------------------------------------ ##
4963 ## Report this to the audacious lists. ##
4964 ## ------------------------------------ ##
4965 _ASBOX
4966 ) |
4967 sed "s/^/$as_me: WARNING: /" >&2
4968 ;;
4969 esac
4970 echo "$as_me:$LINENO: checking for $ac_header" >&5
4971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 eval "$as_ac_Header=\$ac_header_preproc"
4976 fi
4977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4979
4980 fi
4981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4982 cat >>confdefs.h <<_ACEOF
4983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4984 _ACEOF
4985
4986 fi
4987
4988 done
4989
4990
4991 for ac_func in getpagesize
4992 do
4993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4994 echo "$as_me:$LINENO: checking for $ac_func" >&5
4995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4996 if eval "test \"\${$as_ac_var+set}\" = set"; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h. */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5007 #define $ac_func innocuous_$ac_func
5008
5009 /* System header to define __stub macros and hopefully few prototypes,
5010 which can conflict with char $ac_func (); below.
5011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5012 <limits.h> exists even on freestanding compilers. */
5013
5014 #ifdef __STDC__
5015 # include <limits.h>
5016 #else
5017 # include <assert.h>
5018 #endif
5019
5020 #undef $ac_func
5021
5022 /* Override any gcc2 internal prototype to avoid an error. */
5023 #ifdef __cplusplus
5024 extern "C"
5025 {
5026 #endif
5027 /* We use char because int might match the return type of a gcc2
5028 builtin and then its argument prototype would still apply. */
5029 char $ac_func ();
5030 /* The GNU C library defines this for functions which it implements
5031 to always fail with ENOSYS. Some functions are actually named
5032 something starting with __ and the normal name is an alias. */
5033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5034 choke me
5035 #else
5036 char (*f) () = $ac_func;
5037 #endif
5038 #ifdef __cplusplus
5039 }
5040 #endif
5041
5042 int
5043 main ()
5044 {
5045 return f != $ac_func;
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052 (eval $ac_link) 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -z "$ac_c_werror_flag"
5060 || test ! -s conftest.err'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 (eval $ac_try) 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; } &&
5066 { ac_try='test -s conftest$ac_exeext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 eval "$as_ac_var=yes"
5073 else
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 eval "$as_ac_var=no"
5078 fi
5079 rm -f conftest.err conftest.$ac_objext \
5080 conftest$ac_exeext conftest.$ac_ext
5081 fi
5082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5084 if test `eval echo '${'$as_ac_var'}'` = yes; then
5085 cat >>confdefs.h <<_ACEOF
5086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5087 _ACEOF
5088
5089 fi
5090 done
5091
5092 echo "$as_me:$LINENO: checking for working mmap" >&5
5093 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5094 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097 if test "$cross_compiling" = yes; then
5098 ac_cv_func_mmap_fixed_mapped=no
5099 else
5100 cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h. */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 $ac_includes_default
5107 /* malloc might have been renamed as rpl_malloc. */
5108 #undef malloc
5109
5110 /* Thanks to Mike Haertel and Jim Avera for this test.
5111 Here is a matrix of mmap possibilities:
5112 mmap private not fixed
5113 mmap private fixed at somewhere currently unmapped
5114 mmap private fixed at somewhere already mapped
5115 mmap shared not fixed
5116 mmap shared fixed at somewhere currently unmapped
5117 mmap shared fixed at somewhere already mapped
5118 For private mappings, we should verify that changes cannot be read()
5119 back from the file, nor mmap's back from the file at a different
5120 address. (There have been systems where private was not correctly
5121 implemented like the infamous i386 svr4.0, and systems where the
5122 VM page cache was not coherent with the file system buffer cache
5123 like early versions of FreeBSD and possibly contemporary NetBSD.)
5124 For shared mappings, we should conversely verify that changes get
5125 propagated back to all the places they're supposed to be.
5126
5127 Grep wants private fixed already mapped.
5128 The main things grep needs to know about mmap are:
5129 * does it exist and is it safe to write into the mmap'd area
5130 * how to use it (BSD variants) */
5131
5132 #include <fcntl.h>
5133 #include <sys/mman.h>
5134
5135 #if !STDC_HEADERS && !HAVE_STDLIB_H
5136 char *malloc ();
5137 #endif
5138
5139 /* This mess was copied from the GNU getpagesize.h. */
5140 #if !HAVE_GETPAGESIZE
5141 /* Assume that all systems that can run configure have sys/param.h. */
5142 # if !HAVE_SYS_PARAM_H
5143 # define HAVE_SYS_PARAM_H 1
5144 # endif
5145
5146 # ifdef _SC_PAGESIZE
5147 # define getpagesize() sysconf(_SC_PAGESIZE)
5148 # else /* no _SC_PAGESIZE */
5149 # if HAVE_SYS_PARAM_H
5150 # include <sys/param.h>
5151 # ifdef EXEC_PAGESIZE
5152 # define getpagesize() EXEC_PAGESIZE
5153 # else /* no EXEC_PAGESIZE */
5154 # ifdef NBPG
5155 # define getpagesize() NBPG * CLSIZE
5156 # ifndef CLSIZE
5157 # define CLSIZE 1
5158 # endif /* no CLSIZE */
5159 # else /* no NBPG */
5160 # ifdef NBPC
5161 # define getpagesize() NBPC
5162 # else /* no NBPC */
5163 # ifdef PAGESIZE
5164 # define getpagesize() PAGESIZE
5165 # endif /* PAGESIZE */
5166 # endif /* no NBPC */
5167 # endif /* no NBPG */
5168 # endif /* no EXEC_PAGESIZE */
5169 # else /* no HAVE_SYS_PARAM_H */
5170 # define getpagesize() 8192 /* punt totally */
5171 # endif /* no HAVE_SYS_PARAM_H */
5172 # endif /* no _SC_PAGESIZE */
5173
5174 #endif /* no HAVE_GETPAGESIZE */
5175
5176 int
5177 main ()
5178 {
5179 char *data, *data2, *data3;
5180 int i, pagesize;
5181 int fd;
5182
5183 pagesize = getpagesize ();
5184
5185 /* First, make a file with some known garbage in it. */
5186 data = (char *) malloc (pagesize);
5187 if (!data)
5188 exit (1);
5189 for (i = 0; i < pagesize; ++i)
5190 *(data + i) = rand ();
5191 umask (0);
5192 fd = creat ("conftest.mmap", 0600);
5193 if (fd < 0)
5194 exit (1);
5195 if (write (fd, data, pagesize) != pagesize)
5196 exit (1);
5197 close (fd);
5198
5199 /* Next, try to mmap the file at a fixed address which already has
5200 something else allocated at it. If we can, also make sure that
5201 we see the same garbage. */
5202 fd = open ("conftest.mmap", O_RDWR);
5203 if (fd < 0)
5204 exit (1);
5205 data2 = (char *) malloc (2 * pagesize);
5206 if (!data2)
5207 exit (1);
5208 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5209 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5210 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5211 exit (1);
5212 for (i = 0; i < pagesize; ++i)
5213 if (*(data + i) != *(data2 + i))
5214 exit (1);
5215
5216 /* Finally, make sure that changes to the mapped area do not
5217 percolate back to the file as seen by read(). (This is a bug on
5218 some variants of i386 svr4.0.) */
5219 for (i = 0; i < pagesize; ++i)
5220 *(data2 + i) = *(data2 + i) + 1;
5221 data3 = (char *) malloc (pagesize);
5222 if (!data3)
5223 exit (1);
5224 if (read (fd, data3, pagesize) != pagesize)
5225 exit (1);
5226 for (i = 0; i < pagesize; ++i)
5227 if (*(data + i) != *(data3 + i))
5228 exit (1);
5229 close (fd);
5230 exit (0);
5231 }
5232 _ACEOF
5233 rm -f conftest$ac_exeext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235 (eval $ac_link) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_func_mmap_fixed_mapped=yes
5245 else
5246 echo "$as_me: program exited with status $ac_status" >&5
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ( exit $ac_status )
5251 ac_cv_func_mmap_fixed_mapped=no
5252 fi
5253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5254 fi
5255 fi
5256 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5257 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5258 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5259
5260 cat >>confdefs.h <<\_ACEOF
5261 #define HAVE_MMAP 1
5262 _ACEOF
5263
5264 fi
5265 rm -f conftest.mmap
5266
5267
5268 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5269 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5270 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h. */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279
5280 #include <features.h>
5281 #ifdef __GNU_LIBRARY__
5282 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5283 Lucky GNU user
5284 #endif
5285 #endif
5286
5287 _ACEOF
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5290 ac_cv_gnu_library_2_1=yes
5291 else
5292 ac_cv_gnu_library_2_1=no
5293 fi
5294 rm -f conftest*
5295
5296
5297
5298 fi
5299 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5300 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5301
5302 GLIBC21="$ac_cv_gnu_library_2_1"
5303
5304
5305
5306
5307 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5308 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5309 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312
5313 if test "$cross_compiling" = yes; then
5314
5315 # Guess based on the CPU.
5316 case "$host_cpu" in
5317 alpha* | i3456786 | m68k | s390*)
5318 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5319 *)
5320 gt_cv_int_divbyzero_sigfpe="guessing no";;
5321 esac
5322
5323 else
5324 cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h. */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5330
5331 #include <stdlib.h>
5332 #include <signal.h>
5333
5334 static void
5335 #ifdef __cplusplus
5336 sigfpe_handler (int sig)
5337 #else
5338 sigfpe_handler (sig) int sig;
5339 #endif
5340 {
5341 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5342 exit (sig != SIGFPE);
5343 }
5344
5345 int x = 1;
5346 int y = 0;
5347 int z;
5348 int nan;
5349
5350 int main ()
5351 {
5352 signal (SIGFPE, sigfpe_handler);
5353 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5354 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5355 signal (SIGTRAP, sigfpe_handler);
5356 #endif
5357 /* Linux/SPARC yields signal SIGILL. */
5358 #if defined (__sparc__) && defined (__linux__)
5359 signal (SIGILL, sigfpe_handler);
5360 #endif
5361
5362 z = x / y;
5363 nan = y / y;
5364 exit (1);
5365 }
5366
5367 _ACEOF
5368 rm -f conftest$ac_exeext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 gt_cv_int_divbyzero_sigfpe=yes
5380 else
5381 echo "$as_me: program exited with status $ac_status" >&5
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 ( exit $ac_status )
5386 gt_cv_int_divbyzero_sigfpe=no
5387 fi
5388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5389 fi
5390
5391 fi
5392 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5393 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5394 case "$gt_cv_int_divbyzero_sigfpe" in
5395 *yes) value=1;;
5396 *) value=0;;
5397 esac
5398
5399 cat >>confdefs.h <<_ACEOF
5400 #define INTDIV0_RAISES_SIGFPE $value
5401 _ACEOF
5402
5403
5404
5405 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5406 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5407 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #include <sys/types.h>
5417 #include <inttypes.h>
5418 int
5419 main ()
5420 {
5421 uintmax_t i = (uintmax_t) -1;
5422 ;
5423 return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5428 (eval $ac_compile) 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -z "$ac_c_werror_flag"
5436 || test ! -s conftest.err'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; } &&
5442 { ac_try='test -s conftest.$ac_objext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 jm_ac_cv_header_inttypes_h=yes
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 jm_ac_cv_header_inttypes_h=no
5454 fi
5455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5456 fi
5457 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5458 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
5459 if test $jm_ac_cv_header_inttypes_h = yes; then
5460
5461 cat >>confdefs.h <<_ACEOF
5462 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5463 _ACEOF
5464
5465 fi
5466
5467
5468 echo "$as_me:$LINENO: checking for stdint.h" >&5
5469 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5470 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h. */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 #include <sys/types.h>
5480 #include <stdint.h>
5481 int
5482 main ()
5483 {
5484 uintmax_t i = (uintmax_t) -1;
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5491 (eval $ac_compile) 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } &&
5498 { ac_try='test -z "$ac_c_werror_flag"
5499 || test ! -s conftest.err'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; } &&
5505 { ac_try='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 jm_ac_cv_header_stdint_h=yes
5512 else
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 jm_ac_cv_header_stdint_h=no
5517 fi
5518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5521 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5522 if test $jm_ac_cv_header_stdint_h = yes; then
5523
5524 cat >>confdefs.h <<_ACEOF
5525 #define HAVE_STDINT_H_WITH_UINTMAX 1
5526 _ACEOF
5527
5528 fi
5529
5530
5531 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5532 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5533 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 unsigned long long ull = 1; int i = 63;
5543 int
5544 main ()
5545 {
5546 unsigned long long ullmax = (unsigned long long) -1;
5547 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5548 ;
5549 return 0;
5550 }
5551 _ACEOF
5552 rm -f conftest.$ac_objext conftest$ac_exeext
5553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5554 (eval $ac_link) 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -z "$ac_c_werror_flag"
5562 || test ! -s conftest.err'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 (eval $ac_try) 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; } &&
5568 { ac_try='test -s conftest$ac_exeext'
5569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 (eval $ac_try) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then
5574 ac_cv_type_unsigned_long_long=yes
5575 else
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579 ac_cv_type_unsigned_long_long=no
5580 fi
5581 rm -f conftest.err conftest.$ac_objext \
5582 conftest$ac_exeext conftest.$ac_ext
5583 fi
5584 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5585 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5586 if test $ac_cv_type_unsigned_long_long = yes; then
5587
5588 cat >>confdefs.h <<\_ACEOF
5589 #define HAVE_UNSIGNED_LONG_LONG 1
5590 _ACEOF
5591
5592 fi
5593
5594
5595
5596
5597 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5598
5599 test $ac_cv_type_unsigned_long_long = yes \
5600 && ac_type='unsigned long long' \
5601 || ac_type='unsigned long'
5602
5603 cat >>confdefs.h <<_ACEOF
5604 #define uintmax_t $ac_type
5605 _ACEOF
5606
5607 else
5608
5609 cat >>confdefs.h <<\_ACEOF
5610 #define HAVE_UINTMAX_T 1
5611 _ACEOF
5612
5613 fi
5614
5615
5616 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5617 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5618 if test "${gt_cv_header_inttypes_h+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 #include <inttypes.h>
5630 int
5631 main ()
5632 {
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -z "$ac_c_werror_flag"
5648 || test ! -s conftest.err'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; } &&
5654 { ac_try='test -s conftest.$ac_objext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5660 gt_cv_header_inttypes_h=yes
5661 else
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665 gt_cv_header_inttypes_h=no
5666 fi
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668
5669 fi
5670 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5671 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
5672 if test $gt_cv_header_inttypes_h = yes; then
5673
5674 cat >>confdefs.h <<_ACEOF
5675 #define HAVE_INTTYPES_H 1
5676 _ACEOF
5677
5678 fi
5679
5680
5681
5682 if test $gt_cv_header_inttypes_h = yes; then
5683 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5684 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
5685 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688
5689 cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h. */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 #include <inttypes.h>
5696 #ifdef PRId32
5697 char *p = PRId32;
5698 #endif
5699
5700 int
5701 main ()
5702 {
5703
5704 ;
5705 return 0;
5706 }
5707 _ACEOF
5708 rm -f conftest.$ac_objext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>conftest.er1
5711 ac_status=$?
5712 grep -v '^ *+' conftest.er1 >conftest.err
5713 rm -f conftest.er1
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -z "$ac_c_werror_flag"
5718 || test ! -s conftest.err'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 gt_cv_inttypes_pri_broken=no
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 gt_cv_inttypes_pri_broken=yes
5736 fi
5737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5738
5739 fi
5740 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5741 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
5742 fi
5743 if test "$gt_cv_inttypes_pri_broken" = yes; then
5744
5745 cat >>confdefs.h <<_ACEOF
5746 #define PRI_MACROS_BROKEN 1
5747 _ACEOF
5748
5749 fi
5750
5751
5752 if test "X$prefix" = "XNONE"; then
5753 acl_final_prefix="$ac_default_prefix"
5754 else
5755 acl_final_prefix="$prefix"
5756 fi
5757 if test "X$exec_prefix" = "XNONE"; then
5758 acl_final_exec_prefix='${prefix}'
5759 else
5760 acl_final_exec_prefix="$exec_prefix"
5761 fi
5762 acl_save_prefix="$prefix"
5763 prefix="$acl_final_prefix"
5764 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5765 prefix="$acl_save_prefix"
5766
5767
5768 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5769 if test "${with_gnu_ld+set}" = set; then
5770 withval="$with_gnu_ld"
5771 test "$withval" = no || with_gnu_ld=yes
5772 else
5773 with_gnu_ld=no
5774 fi;
5775 # Prepare PATH_SEPARATOR.
5776 # The user is always right.
5777 if test "${PATH_SEPARATOR+set}" != set; then
5778 echo "#! /bin/sh" >conf$$.sh
5779 echo "exit 0" >>conf$$.sh
5780 chmod +x conf$$.sh
5781 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5782 PATH_SEPARATOR=';'
5783 else
5784 PATH_SEPARATOR=:
5785 fi
5786 rm -f conf$$.sh
5787 fi
5788 ac_prog=ld
5789 if test "$GCC" = yes; then
5790 # Check if gcc -print-prog-name=ld gives a path.
5791 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5792 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5793 case $host in
5794 *-*-mingw*)
5795 # gcc leaves a trailing carriage return which upsets mingw
5796 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5797 *)
5798 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5799 esac
5800 case $ac_prog in
5801 # Accept absolute paths.
5802 [\\/]* | [A-Za-z]:[\\/]*)
5803 re_direlt='/[^/][^/]*/\.\./'
5804 # Canonicalize the path of ld
5805 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5806 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5807 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5808 done
5809 test -z "$LD" && LD="$ac_prog"
5810 ;;
5811 "")
5812 # If it fails, then pretend we aren't using GCC.
5813 ac_prog=ld
5814 ;;
5815 *)
5816 # If it is relative, then search for the first ld in PATH.
5817 with_gnu_ld=unknown
5818 ;;
5819 esac
5820 elif test "$with_gnu_ld" = yes; then
5821 echo "$as_me:$LINENO: checking for GNU ld" >&5
5822 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5823 else
5824 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5825 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5826 fi
5827 if test "${acl_cv_path_LD+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 if test -z "$LD"; then
5831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5832 for ac_dir in $PATH; do
5833 test -z "$ac_dir" && ac_dir=.
5834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5835 acl_cv_path_LD="$ac_dir/$ac_prog"
5836 # Check to see if the program is GNU ld. I'd rather use --version,
5837 # but apparently some GNU ld's only accept -v.
5838 # Break only if it was the GNU/non-GNU ld that we prefer.
5839 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5840 test "$with_gnu_ld" != no && break
5841 else
5842 test "$with_gnu_ld" != yes && break
5843 fi
5844 fi
5845 done
5846 IFS="$ac_save_ifs"
5847 else
5848 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5849 fi
5850 fi
5851
5852 LD="$acl_cv_path_LD"
5853 if test -n "$LD"; then
5854 echo "$as_me:$LINENO: result: $LD" >&5
5855 echo "${ECHO_T}$LD" >&6
5856 else
5857 echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5859 fi
5860 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5861 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5862 { (exit 1); exit 1; }; }
5863 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5864 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5865 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5869 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5870 acl_cv_prog_gnu_ld=yes
5871 else
5872 acl_cv_prog_gnu_ld=no
5873 fi
5874 fi
5875 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5876 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5877 with_gnu_ld=$acl_cv_prog_gnu_ld
5878
5879
5880
5881 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5882 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5883 if test "${acl_cv_rpath+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886
5887 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5888 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5889 . ./conftest.sh
5890 rm -f ./conftest.sh
5891 acl_cv_rpath=done
5892
5893 fi
5894 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5895 echo "${ECHO_T}$acl_cv_rpath" >&6
5896 wl="$acl_cv_wl"
5897 libext="$acl_cv_libext"
5898 shlibext="$acl_cv_shlibext"
5899 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5900 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5901 hardcode_direct="$acl_cv_hardcode_direct"
5902 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5903 # Check whether --enable-rpath or --disable-rpath was given.
5904 if test "${enable_rpath+set}" = set; then
5905 enableval="$enable_rpath"
5906 :
5907 else
5908 enable_rpath=yes
5909 fi;
5910
5911
5912
5913
5914
5915
5916
5917 use_additional=yes
5918
5919 acl_save_prefix="$prefix"
5920 prefix="$acl_final_prefix"
5921 acl_save_exec_prefix="$exec_prefix"
5922 exec_prefix="$acl_final_exec_prefix"
5923
5924 eval additional_includedir=\"$includedir\"
5925 eval additional_libdir=\"$libdir\"
5926
5927 exec_prefix="$acl_save_exec_prefix"
5928 prefix="$acl_save_prefix"
5929
5930
5931 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5932 if test "${with_libiconv_prefix+set}" = set; then
5933 withval="$with_libiconv_prefix"
5934
5935 if test "X$withval" = "Xno"; then
5936 use_additional=no
5937 else
5938 if test "X$withval" = "X"; then
5939
5940 acl_save_prefix="$prefix"
5941 prefix="$acl_final_prefix"
5942 acl_save_exec_prefix="$exec_prefix"
5943 exec_prefix="$acl_final_exec_prefix"
5944
5945 eval additional_includedir=\"$includedir\"
5946 eval additional_libdir=\"$libdir\"
5947
5948 exec_prefix="$acl_save_exec_prefix"
5949 prefix="$acl_save_prefix"
5950
5951 else
5952 additional_includedir="$withval/include"
5953 additional_libdir="$withval/lib"
5954 fi
5955 fi
5956
5957 fi;
5958 LIBICONV=
5959 LTLIBICONV=
5960 INCICONV=
5961 rpathdirs=
5962 ltrpathdirs=
5963 names_already_handled=
5964 names_next_round='iconv '
5965 while test -n "$names_next_round"; do
5966 names_this_round="$names_next_round"
5967 names_next_round=
5968 for name in $names_this_round; do
5969 already_handled=
5970 for n in $names_already_handled; do
5971 if test "$n" = "$name"; then
5972 already_handled=yes
5973 break
5974 fi
5975 done
5976 if test -z "$already_handled"; then
5977 names_already_handled="$names_already_handled $name"
5978 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5979 eval value=\"\$HAVE_LIB$uppername\"
5980 if test -n "$value"; then
5981 if test "$value" = yes; then
5982 eval value=\"\$LIB$uppername\"
5983 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5984 eval value=\"\$LTLIB$uppername\"
5985 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5986 else
5987 :
5988 fi
5989 else
5990 found_dir=
5991 found_la=
5992 found_so=
5993 found_a=
5994 if test $use_additional = yes; then
5995 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5996 found_dir="$additional_libdir"
5997 found_so="$additional_libdir/lib$name.$shlibext"
5998 if test -f "$additional_libdir/lib$name.la"; then
5999 found_la="$additional_libdir/lib$name.la"
6000 fi
6001 else
6002 if test -f "$additional_libdir/lib$name.$libext"; then
6003 found_dir="$additional_libdir"
6004 found_a="$additional_libdir/lib$name.$libext"
6005 if test -f "$additional_libdir/lib$name.la"; then
6006 found_la="$additional_libdir/lib$name.la"
6007 fi
6008 fi
6009 fi
6010 fi
6011 if test "X$found_dir" = "X"; then
6012 for x in $LDFLAGS $LTLIBICONV; do
6013
6014 acl_save_prefix="$prefix"
6015 prefix="$acl_final_prefix"
6016 acl_save_exec_prefix="$exec_prefix"
6017 exec_prefix="$acl_final_exec_prefix"
6018 eval x=\"$x\"
6019 exec_prefix="$acl_save_exec_prefix"
6020 prefix="$acl_save_prefix"
6021
6022 case "$x" in
6023 -L*)
6024 dir=`echo "X$x" | sed -e 's/^X-L//'`
6025 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6026 found_dir="$dir"
6027 found_so="$dir/lib$name.$shlibext"
6028 if test -f "$dir/lib$name.la"; then
6029 found_la="$dir/lib$name.la"
6030 fi
6031 else
6032 if test -f "$dir/lib$name.$libext"; then
6033 found_dir="$dir"
6034 found_a="$dir/lib$name.$libext"
6035 if test -f "$dir/lib$name.la"; then
6036 found_la="$dir/lib$name.la"
6037 fi
6038 fi
6039 fi
6040 ;;
6041 esac
6042 if test "X$found_dir" != "X"; then
6043 break
6044 fi
6045 done
6046 fi
6047 if test "X$found_dir" != "X"; then
6048 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6049 if test "X$found_so" != "X"; then
6050 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6051 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6052 else
6053 haveit=
6054 for x in $ltrpathdirs; do
6055 if test "X$x" = "X$found_dir"; then
6056 haveit=yes
6057 break
6058 fi
6059 done
6060 if test -z "$haveit"; then
6061 ltrpathdirs="$ltrpathdirs $found_dir"
6062 fi
6063 if test "$hardcode_direct" = yes; then
6064 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6065 else
6066 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6067 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6068 haveit=
6069 for x in $rpathdirs; do
6070 if test "X$x" = "X$found_dir"; then
6071 haveit=yes
6072 break
6073 fi
6074 done
6075 if test -z "$haveit"; then
6076 rpathdirs="$rpathdirs $found_dir"
6077 fi
6078 else
6079 haveit=
6080 for x in $LDFLAGS $LIBICONV; do
6081
6082 acl_save_prefix="$prefix"
6083 prefix="$acl_final_prefix"
6084 acl_save_exec_prefix="$exec_prefix"
6085 exec_prefix="$acl_final_exec_prefix"
6086 eval x=\"$x\"
6087 exec_prefix="$acl_save_exec_prefix"
6088 prefix="$acl_save_prefix"
6089
6090 if test "X$x" = "X-L$found_dir"; then
6091 haveit=yes
6092 break
6093 fi
6094 done
6095 if test -z "$haveit"; then
6096 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6097 fi
6098 if test "$hardcode_minus_L" != no; then
6099 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6100 else
6101 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6102 fi
6103 fi
6104 fi
6105 fi
6106 else
6107 if test "X$found_a" != "X"; then
6108 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6109 else
6110 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6111 fi
6112 fi
6113 additional_includedir=
6114 case "$found_dir" in
6115 */lib | */lib/)
6116 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6117 additional_includedir="$basedir/include"
6118 ;;
6119 esac
6120 if test "X$additional_includedir" != "X"; then
6121 if test "X$additional_includedir" != "X/usr/include"; then
6122 haveit=
6123 if test "X$additional_includedir" = "X/usr/local/include"; then
6124 if test -n "$GCC"; then
6125 case $host_os in
6126 linux*) haveit=yes;;
6127 esac
6128 fi
6129 fi
6130 if test -z "$haveit"; then
6131 for x in $CPPFLAGS $INCICONV; do
6132
6133 acl_save_prefix="$prefix"
6134 prefix="$acl_final_prefix"
6135 acl_save_exec_prefix="$exec_prefix"
6136 exec_prefix="$acl_final_exec_prefix"
6137 eval x=\"$x\"
6138 exec_prefix="$acl_save_exec_prefix"
6139 prefix="$acl_save_prefix"
6140
6141 if test "X$x" = "X-I$additional_includedir"; then
6142 haveit=yes
6143 break
6144 fi
6145 done
6146 if test -z "$haveit"; then
6147 if test -d "$additional_includedir"; then
6148 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6149 fi
6150 fi
6151 fi
6152 fi
6153 fi
6154 if test -n "$found_la"; then
6155 save_libdir="$libdir"
6156 case "$found_la" in
6157 */* | *\\*) . "$found_la" ;;
6158 *) . "./$found_la" ;;
6159 esac
6160 libdir="$save_libdir"
6161 for dep in $dependency_libs; do
6162 case "$dep" in
6163 -L*)
6164 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6165 if test "X$additional_libdir" != "X/usr/lib"; then
6166 haveit=
6167 if test "X$additional_libdir" = "X/usr/local/lib"; then
6168 if test -n "$GCC"; then
6169 case $host_os in
6170 linux*) haveit=yes;;
6171 esac
6172 fi
6173 fi
6174 if test -z "$haveit"; then
6175 haveit=
6176 for x in $LDFLAGS $LIBICONV; do
6177
6178 acl_save_prefix="$prefix"
6179 prefix="$acl_final_prefix"
6180 acl_save_exec_prefix="$exec_prefix"
6181 exec_prefix="$acl_final_exec_prefix"
6182 eval x=\"$x\"
6183 exec_prefix="$acl_save_exec_prefix"
6184 prefix="$acl_save_prefix"
6185
6186 if test "X$x" = "X-L$additional_libdir"; then
6187 haveit=yes
6188 break
6189 fi
6190 done
6191 if test -z "$haveit"; then
6192 if test -d "$additional_libdir"; then
6193 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6194 fi
6195 fi
6196 haveit=
6197 for x in $LDFLAGS $LTLIBICONV; do
6198
6199 acl_save_prefix="$prefix"
6200 prefix="$acl_final_prefix"
6201 acl_save_exec_prefix="$exec_prefix"
6202 exec_prefix="$acl_final_exec_prefix"
6203 eval x=\"$x\"
6204 exec_prefix="$acl_save_exec_prefix"
6205 prefix="$acl_save_prefix"
6206
6207 if test "X$x" = "X-L$additional_libdir"; then
6208 haveit=yes
6209 break
6210 fi
6211 done
6212 if test -z "$haveit"; then
6213 if test -d "$additional_libdir"; then
6214 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6215 fi
6216 fi
6217 fi
6218 fi
6219 ;;
6220 -R*)
6221 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6222 if test "$enable_rpath" != no; then
6223 haveit=
6224 for x in $rpathdirs; do
6225 if test "X$x" = "X$dir"; then
6226 haveit=yes
6227 break
6228 fi
6229 done
6230 if test -z "$haveit"; then
6231 rpathdirs="$rpathdirs $dir"
6232 fi
6233 haveit=
6234 for x in $ltrpathdirs; do
6235 if test "X$x" = "X$dir"; then
6236 haveit=yes
6237 break
6238 fi
6239 done
6240 if test -z "$haveit"; then
6241 ltrpathdirs="$ltrpathdirs $dir"
6242 fi
6243 fi
6244 ;;
6245 -l*)
6246 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6247 ;;
6248 *.la)
6249 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6250 ;;
6251 *)
6252 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6253 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6254 ;;
6255 esac
6256 done
6257 fi
6258 else
6259 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6260 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6261 fi
6262 fi
6263 fi
6264 done
6265 done
6266 if test "X$rpathdirs" != "X"; then
6267 if test -n "$hardcode_libdir_separator"; then
6268 alldirs=
6269 for found_dir in $rpathdirs; do
6270 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6271 done
6272 acl_save_libdir="$libdir"
6273 libdir="$alldirs"
6274 eval flag=\"$hardcode_libdir_flag_spec\"
6275 libdir="$acl_save_libdir"
6276 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6277 else
6278 for found_dir in $rpathdirs; do
6279 acl_save_libdir="$libdir"
6280 libdir="$found_dir"
6281 eval flag=\"$hardcode_libdir_flag_spec\"
6282 libdir="$acl_save_libdir"
6283 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6284 done
6285 fi
6286 fi
6287 if test "X$ltrpathdirs" != "X"; then
6288 for found_dir in $ltrpathdirs; do
6289 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6290 done
6291 fi
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6307 stdlib.h string.h unistd.h sys/param.h
6308 do
6309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6311 echo "$as_me:$LINENO: checking for $ac_header" >&5
6312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 fi
6316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6318 else
6319 # Is the header compilable?
6320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6322 cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h. */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328 $ac_includes_default
6329 #include <$ac_header>
6330 _ACEOF
6331 rm -f conftest.$ac_objext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333 (eval $ac_compile) 2>conftest.er1
6334 ac_status=$?
6335 grep -v '^ *+' conftest.er1 >conftest.err
6336 rm -f conftest.er1
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -z "$ac_c_werror_flag"
6341 || test ! -s conftest.err'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest.$ac_objext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_header_compiler=yes
6354 else
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ac_header_compiler=no
6359 fi
6360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6362 echo "${ECHO_T}$ac_header_compiler" >&6
6363
6364 # Is the header present?
6365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h. */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <$ac_header>
6374 _ACEOF
6375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6377 ac_status=$?
6378 grep -v '^ *+' conftest.er1 >conftest.err
6379 rm -f conftest.er1
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } >/dev/null; then
6383 if test -s conftest.err; then
6384 ac_cpp_err=$ac_c_preproc_warn_flag
6385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6386 else
6387 ac_cpp_err=
6388 fi
6389 else
6390 ac_cpp_err=yes
6391 fi
6392 if test -z "$ac_cpp_err"; then
6393 ac_header_preproc=yes
6394 else
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398 ac_header_preproc=no
6399 fi
6400 rm -f conftest.err conftest.$ac_ext
6401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6402 echo "${ECHO_T}$ac_header_preproc" >&6
6403
6404 # So? What about this header?
6405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6406 yes:no: )
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6411 ac_header_preproc=yes
6412 ;;
6413 no:yes:* )
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6426 (
6427 cat <<\_ASBOX
6428 ## ------------------------------------ ##
6429 ## Report this to the audacious lists. ##
6430 ## ------------------------------------ ##
6431 _ASBOX
6432 ) |
6433 sed "s/^/$as_me: WARNING: /" >&2
6434 ;;
6435 esac
6436 echo "$as_me:$LINENO: checking for $ac_header" >&5
6437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441 eval "$as_ac_Header=\$ac_header_preproc"
6442 fi
6443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6445
6446 fi
6447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6448 cat >>confdefs.h <<_ACEOF
6449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6450 _ACEOF
6451
6452 fi
6453
6454 done
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
6479 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
6480 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
6481 __fsetlocking
6482 do
6483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6484 echo "$as_me:$LINENO: checking for $ac_func" >&5
6485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6486 if eval "test \"\${$as_ac_var+set}\" = set"; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489 cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h. */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6497 #define $ac_func innocuous_$ac_func
6498
6499 /* System header to define __stub macros and hopefully few prototypes,
6500 which can conflict with char $ac_func (); below.
6501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6502 <limits.h> exists even on freestanding compilers. */
6503
6504 #ifdef __STDC__
6505 # include <limits.h>
6506 #else
6507 # include <assert.h>
6508 #endif
6509
6510 #undef $ac_func
6511
6512 /* Override any gcc2 internal prototype to avoid an error. */
6513 #ifdef __cplusplus
6514 extern "C"
6515 {
6516 #endif
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6519 char $ac_func ();
6520 /* The GNU C library defines this for functions which it implements
6521 to always fail with ENOSYS. Some functions are actually named
6522 something starting with __ and the normal name is an alias. */
6523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6524 choke me
6525 #else
6526 char (*f) () = $ac_func;
6527 #endif
6528 #ifdef __cplusplus
6529 }
6530 #endif
6531
6532 int
6533 main ()
6534 {
6535 return f != $ac_func;
6536 ;
6537 return 0;
6538 }
6539 _ACEOF
6540 rm -f conftest.$ac_objext conftest$ac_exeext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542 (eval $ac_link) 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 eval "$as_ac_var=yes"
6563 else
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6566
6567 eval "$as_ac_var=no"
6568 fi
6569 rm -f conftest.err conftest.$ac_objext \
6570 conftest$ac_exeext conftest.$ac_ext
6571 fi
6572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6574 if test `eval echo '${'$as_ac_var'}'` = yes; then
6575 cat >>confdefs.h <<_ACEOF
6576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6577 _ACEOF
6578
6579 fi
6580 done
6581
6582
6583
6584
6585
6586
6587
6588 am_save_CPPFLAGS="$CPPFLAGS"
6589
6590 for element in $INCICONV; do
6591 haveit=
6592 for x in $CPPFLAGS; do
6593
6594 acl_save_prefix="$prefix"
6595 prefix="$acl_final_prefix"
6596 acl_save_exec_prefix="$exec_prefix"
6597 exec_prefix="$acl_final_exec_prefix"
6598 eval x=\"$x\"
6599 exec_prefix="$acl_save_exec_prefix"
6600 prefix="$acl_save_prefix"
6601
6602 if test "X$x" = "X$element"; then
6603 haveit=yes
6604 break
6605 fi
6606 done
6607 if test -z "$haveit"; then
6608 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6609 fi
6610 done
6611
6612
6613 echo "$as_me:$LINENO: checking for iconv" >&5
6614 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6615 if test "${am_cv_func_iconv+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618
6619 am_cv_func_iconv="no, consider installing GNU libiconv"
6620 am_cv_lib_iconv=no
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <stdlib.h>
6628 #include <iconv.h>
6629 int
6630 main ()
6631 {
6632 iconv_t cd = iconv_open("","");
6633 iconv(cd,NULL,NULL,NULL,NULL);
6634 iconv_close(cd);
6635 ;
6636 return 0;
6637 }
6638 _ACEOF
6639 rm -f conftest.$ac_objext conftest$ac_exeext
6640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6641 (eval $ac_link) 2>conftest.er1
6642 ac_status=$?
6643 grep -v '^ *+' conftest.er1 >conftest.err
6644 rm -f conftest.er1
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -z "$ac_c_werror_flag"
6649 || test ! -s conftest.err'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; } &&
6655 { ac_try='test -s conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 am_cv_func_iconv=yes
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 fi
6667 rm -f conftest.err conftest.$ac_objext \
6668 conftest$ac_exeext conftest.$ac_ext
6669 if test "$am_cv_func_iconv" != yes; then
6670 am_save_LIBS="$LIBS"
6671 LIBS="$LIBS $LIBICONV"
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 #include <stdlib.h>
6679 #include <iconv.h>
6680 int
6681 main ()
6682 {
6683 iconv_t cd = iconv_open("","");
6684 iconv(cd,NULL,NULL,NULL,NULL);
6685 iconv_close(cd);
6686 ;
6687 return 0;
6688 }
6689 _ACEOF
6690 rm -f conftest.$ac_objext conftest$ac_exeext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6692 (eval $ac_link) 2>conftest.er1
6693 ac_status=$?
6694 grep -v '^ *+' conftest.er1 >conftest.err
6695 rm -f conftest.er1
6696 cat conftest.err >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try='test -z "$ac_c_werror_flag"
6700 || test ! -s conftest.err'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 (eval $ac_try) 2>&5
6703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; } &&
6706 { ac_try='test -s conftest$ac_exeext'
6707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 (eval $ac_try) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; }; then
6712 am_cv_lib_iconv=yes
6713 am_cv_func_iconv=yes
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 fi
6719 rm -f conftest.err conftest.$ac_objext \
6720 conftest$ac_exeext conftest.$ac_ext
6721 LIBS="$am_save_LIBS"
6722 fi
6723
6724 fi
6725 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6726 echo "${ECHO_T}$am_cv_func_iconv" >&6
6727 if test "$am_cv_func_iconv" = yes; then
6728
6729 cat >>confdefs.h <<\_ACEOF
6730 #define HAVE_ICONV 1
6731 _ACEOF
6732
6733 fi
6734 if test "$am_cv_lib_iconv" = yes; then
6735 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6736 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6737 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6738 echo "${ECHO_T}$LIBICONV" >&6
6739 else
6740 CPPFLAGS="$am_save_CPPFLAGS"
6741 LIBICONV=
6742 LTLIBICONV=
6743 fi
6744
6745
6746
6747 if test "$am_cv_func_iconv" = yes; then
6748 echo "$as_me:$LINENO: checking for iconv declaration" >&5
6749 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6750 if test "${am_cv_proto_iconv+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760
6761 #include <stdlib.h>
6762 #include <iconv.h>
6763 extern
6764 #ifdef __cplusplus
6765 "C"
6766 #endif
6767 #if defined(__STDC__) || defined(__cplusplus)
6768 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6769 #else
6770 size_t iconv();
6771 #endif
6772
6773 int
6774 main ()
6775 {
6776
6777 ;
6778 return 0;
6779 }
6780 _ACEOF
6781 rm -f conftest.$ac_objext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6783 (eval $ac_compile) 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 { ac_try='test -z "$ac_c_werror_flag"
6791 || test ! -s conftest.err'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; } &&
6797 { ac_try='test -s conftest.$ac_objext'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; }; then
6803 am_cv_proto_iconv_arg1=""
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6807
6808 am_cv_proto_iconv_arg1="const"
6809 fi
6810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6811 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6812 fi
6813
6814 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6815 echo "$as_me:$LINENO: result: ${ac_t:-
6816 }$am_cv_proto_iconv" >&5
6817 echo "${ECHO_T}${ac_t:-
6818 }$am_cv_proto_iconv" >&6
6819
6820 cat >>confdefs.h <<_ACEOF
6821 #define ICONV_CONST $am_cv_proto_iconv_arg1
6822 _ACEOF
6823
6824 fi
6825
6826
6827 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6828 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6829 if test "${am_cv_langinfo_codeset+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832 cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 #include <langinfo.h>
6839 int
6840 main ()
6841 {
6842 char* cs = nl_langinfo(CODESET);
6843 ;
6844 return 0;
6845 }
6846 _ACEOF
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6849 (eval $ac_link) 2>conftest.er1
6850 ac_status=$?
6851 grep -v '^ *+' conftest.er1 >conftest.err
6852 rm -f conftest.er1
6853 cat conftest.err >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } &&
6856 { ac_try='test -z "$ac_c_werror_flag"
6857 || test ! -s conftest.err'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 (eval $ac_try) 2>&5
6860 ac_status=$?
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; } &&
6863 { ac_try='test -s conftest$ac_exeext'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6869 am_cv_langinfo_codeset=yes
6870 else
6871 echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6873
6874 am_cv_langinfo_codeset=no
6875 fi
6876 rm -f conftest.err conftest.$ac_objext \
6877 conftest$ac_exeext conftest.$ac_ext
6878
6879 fi
6880 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6881 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6882 if test $am_cv_langinfo_codeset = yes; then
6883
6884 cat >>confdefs.h <<\_ACEOF
6885 #define HAVE_LANGINFO_CODESET 1
6886 _ACEOF
6887
6888 fi
6889
6890 if test $ac_cv_header_locale_h = yes; then
6891
6892 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6893 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6894 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 #include <locale.h>
6904 int
6905 main ()
6906 {
6907 return LC_MESSAGES
6908 ;
6909 return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext conftest$ac_exeext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6914 (eval $ac_link) 2>conftest.er1
6915 ac_status=$?
6916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -z "$ac_c_werror_flag"
6922 || test ! -s conftest.err'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 (eval $ac_try) 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; } &&
6928 { ac_try='test -s conftest$ac_exeext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 (eval $ac_try) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 am_cv_val_LC_MESSAGES=yes
6935 else
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939 am_cv_val_LC_MESSAGES=no
6940 fi
6941 rm -f conftest.err conftest.$ac_objext \
6942 conftest$ac_exeext conftest.$ac_ext
6943 fi
6944 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6945 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6946 if test $am_cv_val_LC_MESSAGES = yes; then
6947
6948 cat >>confdefs.h <<\_ACEOF
6949 #define HAVE_LC_MESSAGES 1
6950 _ACEOF
6951
6952 fi
6953
6954 fi
6955
6956 for ac_prog in bison
6957 do
6958 # Extract the first word of "$ac_prog", so it can be a program name with args.
6959 set dummy $ac_prog; ac_word=$2
6960 echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6962 if test "${ac_cv_prog_INTLBISON+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965 if test -n "$INTLBISON"; then
6966 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_INTLBISON="$ac_prog"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979 done
6980 done
6981
6982 fi
6983 fi
6984 INTLBISON=$ac_cv_prog_INTLBISON
6985 if test -n "$INTLBISON"; then
6986 echo "$as_me:$LINENO: result: $INTLBISON" >&5
6987 echo "${ECHO_T}$INTLBISON" >&6
6988 else
6989 echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6
6991 fi
6992
6993 test -n "$INTLBISON" && break
6994 done
6995
6996 if test -z "$INTLBISON"; then
6997 ac_verc_fail=yes
6998 else
6999 echo "$as_me:$LINENO: checking version of bison" >&5
7000 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
7001 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7002 case $ac_prog_version in
7003 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7004 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7005 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7006 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7007 esac
7008 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
7009 echo "${ECHO_T}$ac_prog_version" >&6
7010 fi
7011 if test $ac_verc_fail = yes; then
7012 INTLBISON=:
7013 fi
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7031 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7032 # Check whether --enable-nls or --disable-nls was given.
7033 if test "${enable_nls+set}" = set; then
7034 enableval="$enable_nls"
7035 USE_NLS=$enableval
7036 else
7037 USE_NLS=yes
7038 fi;
7039 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7040 echo "${ECHO_T}$USE_NLS" >&6
7041
7042
7043
7044
7045 BUILD_INCLUDED_LIBINTL=no
7046 USE_INCLUDED_LIBINTL=no
7047
7048 LIBINTL=
7049 LTLIBINTL=
7050 POSUB=
7051
7052 if test "$USE_NLS" = "yes"; then
7053 gt_use_preinstalled_gnugettext=no
7054
7055 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7056 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7057
7058 # Check whether --with-included-gettext or --without-included-gettext was given.
7059 if test "${with_included_gettext+set}" = set; then
7060 withval="$with_included_gettext"
7061 nls_cv_force_use_gnu_gettext=$withval
7062 else
7063 nls_cv_force_use_gnu_gettext=no
7064 fi;
7065 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7066 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7067
7068 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7069 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7070
7071
7072
7073
7074
7075
7076 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7077 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7078 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 cat >conftest.$ac_ext <<_ACEOF
7082 /* confdefs.h. */
7083 _ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 #include <libintl.h>
7088 extern int _nl_msg_cat_cntr;
7089 extern int *_nl_domain_bindings;
7090 int
7091 main ()
7092 {
7093 bindtextdomain ("", "");
7094 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
7095 ;
7096 return 0;
7097 }
7098 _ACEOF
7099 rm -f conftest.$ac_objext conftest$ac_exeext
7100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7101 (eval $ac_link) 2>conftest.er1
7102 ac_status=$?
7103 grep -v '^ *+' conftest.er1 >conftest.err
7104 rm -f conftest.er1
7105 cat conftest.err >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try='test -z "$ac_c_werror_flag"
7109 || test ! -s conftest.err'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; } &&
7115 { ac_try='test -s conftest$ac_exeext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 gt_cv_func_gnugettext1_libc=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7125
7126 gt_cv_func_gnugettext1_libc=no
7127 fi
7128 rm -f conftest.err conftest.$ac_objext \
7129 conftest$ac_exeext conftest.$ac_ext
7130 fi
7131 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7132 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7133
7134 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7135
7136
7137
7138 use_additional=yes
7139
7140 acl_save_prefix="$prefix"
7141 prefix="$acl_final_prefix"
7142 acl_save_exec_prefix="$exec_prefix"
7143 exec_prefix="$acl_final_exec_prefix"
7144
7145 eval additional_includedir=\"$includedir\"
7146 eval additional_libdir=\"$libdir\"
7147
7148 exec_prefix="$acl_save_exec_prefix"
7149 prefix="$acl_save_prefix"
7150
7151
7152 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
7153 if test "${with_libintl_prefix+set}" = set; then
7154 withval="$with_libintl_prefix"
7155
7156 if test "X$withval" = "Xno"; then
7157 use_additional=no
7158 else
7159 if test "X$withval" = "X"; then
7160
7161 acl_save_prefix="$prefix"
7162 prefix="$acl_final_prefix"
7163 acl_save_exec_prefix="$exec_prefix"
7164 exec_prefix="$acl_final_exec_prefix"
7165
7166 eval additional_includedir=\"$includedir\"
7167 eval additional_libdir=\"$libdir\"
7168
7169 exec_prefix="$acl_save_exec_prefix"
7170 prefix="$acl_save_prefix"
7171
7172 else
7173 additional_includedir="$withval/include"
7174 additional_libdir="$withval/lib"
7175 fi
7176 fi
7177
7178 fi;
7179 LIBINTL=
7180 LTLIBINTL=
7181 INCINTL=
7182 rpathdirs=
7183 ltrpathdirs=
7184 names_already_handled=
7185 names_next_round='intl '
7186 while test -n "$names_next_round"; do
7187 names_this_round="$names_next_round"
7188 names_next_round=
7189 for name in $names_this_round; do
7190 already_handled=
7191 for n in $names_already_handled; do
7192 if test "$n" = "$name"; then
7193 already_handled=yes
7194 break
7195 fi
7196 done
7197 if test -z "$already_handled"; then
7198 names_already_handled="$names_already_handled $name"
7199 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7200 eval value=\"\$HAVE_LIB$uppername\"
7201 if test -n "$value"; then
7202 if test "$value" = yes; then
7203 eval value=\"\$LIB$uppername\"
7204 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7205 eval value=\"\$LTLIB$uppername\"
7206 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7207 else
7208 :
7209 fi
7210 else
7211 found_dir=
7212 found_la=
7213 found_so=
7214 found_a=
7215 if test $use_additional = yes; then
7216 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7217 found_dir="$additional_libdir"
7218 found_so="$additional_libdir/lib$name.$shlibext"
7219 if test -f "$additional_libdir/lib$name.la"; then
7220 found_la="$additional_libdir/lib$name.la"
7221 fi
7222 else
7223 if test -f "$additional_libdir/lib$name.$libext"; then
7224 found_dir="$additional_libdir"
7225 found_a="$additional_libdir/lib$name.$libext"
7226 if test -f "$additional_libdir/lib$name.la"; then
7227 found_la="$additional_libdir/lib$name.la"
7228 fi
7229 fi
7230 fi
7231 fi
7232 if test "X$found_dir" = "X"; then
7233 for x in $LDFLAGS $LTLIBINTL; do
7234
7235 acl_save_prefix="$prefix"
7236 prefix="$acl_final_prefix"
7237 acl_save_exec_prefix="$exec_prefix"
7238 exec_prefix="$acl_final_exec_prefix"
7239 eval x=\"$x\"
7240 exec_prefix="$acl_save_exec_prefix"
7241 prefix="$acl_save_prefix"
7242
7243 case "$x" in
7244 -L*)
7245 dir=`echo "X$x" | sed -e 's/^X-L//'`
7246 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7247 found_dir="$dir"
7248 found_so="$dir/lib$name.$shlibext"
7249 if test -f "$dir/lib$name.la"; then
7250 found_la="$dir/lib$name.la"
7251 fi
7252 else
7253 if test -f "$dir/lib$name.$libext"; then
7254 found_dir="$dir"
7255 found_a="$dir/lib$name.$libext"
7256 if test -f "$dir/lib$name.la"; then
7257 found_la="$dir/lib$name.la"
7258 fi
7259 fi
7260 fi
7261 ;;
7262 esac
7263 if test "X$found_dir" != "X"; then
7264 break
7265 fi
7266 done
7267 fi
7268 if test "X$found_dir" != "X"; then
7269 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7270 if test "X$found_so" != "X"; then
7271 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7272 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7273 else
7274 haveit=
7275 for x in $ltrpathdirs; do
7276 if test "X$x" = "X$found_dir"; then
7277 haveit=yes
7278 break
7279 fi
7280 done
7281 if test -z "$haveit"; then
7282 ltrpathdirs="$ltrpathdirs $found_dir"
7283 fi
7284 if test "$hardcode_direct" = yes; then
7285 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7286 else
7287 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7288 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7289 haveit=
7290 for x in $rpathdirs; do
7291 if test "X$x" = "X$found_dir"; then
7292 haveit=yes
7293 break
7294 fi
7295 done
7296 if test -z "$haveit"; then
7297 rpathdirs="$rpathdirs $found_dir"
7298 fi
7299 else
7300 haveit=
7301 for x in $LDFLAGS $LIBINTL; do
7302
7303 acl_save_prefix="$prefix"
7304 prefix="$acl_final_prefix"
7305 acl_save_exec_prefix="$exec_prefix"
7306 exec_prefix="$acl_final_exec_prefix"
7307 eval x=\"$x\"
7308 exec_prefix="$acl_save_exec_prefix"
7309 prefix="$acl_save_prefix"
7310
7311 if test "X$x" = "X-L$found_dir"; then
7312 haveit=yes
7313 break
7314 fi
7315 done
7316 if test -z "$haveit"; then
7317 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7318 fi
7319 if test "$hardcode_minus_L" != no; then
7320 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7321 else
7322 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7323 fi
7324 fi
7325 fi
7326 fi
7327 else
7328 if test "X$found_a" != "X"; then
7329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7330 else
7331 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7332 fi
7333 fi
7334 additional_includedir=
7335 case "$found_dir" in
7336 */lib | */lib/)
7337 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7338 additional_includedir="$basedir/include"
7339 ;;
7340 esac
7341 if test "X$additional_includedir" != "X"; then
7342 if test "X$additional_includedir" != "X/usr/include"; then
7343 haveit=
7344 if test "X$additional_includedir" = "X/usr/local/include"; then
7345 if test -n "$GCC"; then
7346 case $host_os in
7347 linux*) haveit=yes;;
7348 esac
7349 fi
7350 fi
7351 if test -z "$haveit"; then
7352 for x in $CPPFLAGS $INCINTL; do
7353
7354 acl_save_prefix="$prefix"
7355 prefix="$acl_final_prefix"
7356 acl_save_exec_prefix="$exec_prefix"
7357 exec_prefix="$acl_final_exec_prefix"
7358 eval x=\"$x\"
7359 exec_prefix="$acl_save_exec_prefix"
7360 prefix="$acl_save_prefix"
7361
7362 if test "X$x" = "X-I$additional_includedir"; then
7363 haveit=yes
7364 break
7365 fi
7366 done
7367 if test -z "$haveit"; then
7368 if test -d "$additional_includedir"; then
7369 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7370 fi
7371 fi
7372 fi
7373 fi
7374 fi
7375 if test -n "$found_la"; then
7376 save_libdir="$libdir"
7377 case "$found_la" in
7378 */* | *\\*) . "$found_la" ;;
7379 *) . "./$found_la" ;;
7380 esac
7381 libdir="$save_libdir"
7382 for dep in $dependency_libs; do
7383 case "$dep" in
7384 -L*)
7385 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7386 if test "X$additional_libdir" != "X/usr/lib"; then
7387 haveit=
7388 if test "X$additional_libdir" = "X/usr/local/lib"; then
7389 if test -n "$GCC"; then
7390 case $host_os in
7391 linux*) haveit=yes;;
7392 esac
7393 fi
7394 fi
7395 if test -z "$haveit"; then
7396 haveit=
7397 for x in $LDFLAGS $LIBINTL; do
7398
7399 acl_save_prefix="$prefix"
7400 prefix="$acl_final_prefix"
7401 acl_save_exec_prefix="$exec_prefix"
7402 exec_prefix="$acl_final_exec_prefix"
7403 eval x=\"$x\"
7404 exec_prefix="$acl_save_exec_prefix"
7405 prefix="$acl_save_prefix"
7406
7407 if test "X$x" = "X-L$additional_libdir"; then
7408 haveit=yes
7409 break
7410 fi
7411 done
7412 if test -z "$haveit"; then
7413 if test -d "$additional_libdir"; then
7414 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7415 fi
7416 fi
7417 haveit=
7418 for x in $LDFLAGS $LTLIBINTL; do
7419
7420 acl_save_prefix="$prefix"
7421 prefix="$acl_final_prefix"
7422 acl_save_exec_prefix="$exec_prefix"
7423 exec_prefix="$acl_final_exec_prefix"
7424 eval x=\"$x\"
7425 exec_prefix="$acl_save_exec_prefix"
7426 prefix="$acl_save_prefix"
7427
7428 if test "X$x" = "X-L$additional_libdir"; then
7429 haveit=yes
7430 break
7431 fi
7432 done
7433 if test -z "$haveit"; then
7434 if test -d "$additional_libdir"; then
7435 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7436 fi
7437 fi
7438 fi
7439 fi
7440 ;;
7441 -R*)
7442 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7443 if test "$enable_rpath" != no; then
7444 haveit=
7445 for x in $rpathdirs; do
7446 if test "X$x" = "X$dir"; then
7447 haveit=yes
7448 break
7449 fi
7450 done
7451 if test -z "$haveit"; then
7452 rpathdirs="$rpathdirs $dir"
7453 fi
7454 haveit=
7455 for x in $ltrpathdirs; do
7456 if test "X$x" = "X$dir"; then
7457 haveit=yes
7458 break
7459 fi
7460 done
7461 if test -z "$haveit"; then
7462 ltrpathdirs="$ltrpathdirs $dir"
7463 fi
7464 fi
7465 ;;
7466 -l*)
7467 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7468 ;;
7469 *.la)
7470 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7471 ;;
7472 *)
7473 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7474 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7475 ;;
7476 esac
7477 done
7478 fi
7479 else
7480 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7481 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7482 fi
7483 fi
7484 fi
7485 done
7486 done
7487 if test "X$rpathdirs" != "X"; then
7488 if test -n "$hardcode_libdir_separator"; then
7489 alldirs=
7490 for found_dir in $rpathdirs; do
7491 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7492 done
7493 acl_save_libdir="$libdir"
7494 libdir="$alldirs"
7495 eval flag=\"$hardcode_libdir_flag_spec\"
7496 libdir="$acl_save_libdir"
7497 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7498 else
7499 for found_dir in $rpathdirs; do
7500 acl_save_libdir="$libdir"
7501 libdir="$found_dir"
7502 eval flag=\"$hardcode_libdir_flag_spec\"
7503 libdir="$acl_save_libdir"
7504 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7505 done
7506 fi
7507 fi
7508 if test "X$ltrpathdirs" != "X"; then
7509 for found_dir in $ltrpathdirs; do
7510 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7511 done
7512 fi
7513
7514 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7515 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7516 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 gt_save_CPPFLAGS="$CPPFLAGS"
7520 CPPFLAGS="$CPPFLAGS $INCINTL"
7521 gt_save_LIBS="$LIBS"
7522 LIBS="$LIBS $LIBINTL"
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 #include <libintl.h>
7530 extern int _nl_msg_cat_cntr;
7531 extern
7532 #ifdef __cplusplus
7533 "C"
7534 #endif
7535 const char *_nl_expand_alias ();
7536 int
7537 main ()
7538 {
7539 bindtextdomain ("", "");
7540 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7541 ;
7542 return 0;
7543 }
7544 _ACEOF
7545 rm -f conftest.$ac_objext conftest$ac_exeext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7547 (eval $ac_link) 2>conftest.er1
7548 ac_status=$?
7549 grep -v '^ *+' conftest.er1 >conftest.err
7550 rm -f conftest.er1
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -z "$ac_c_werror_flag"
7555 || test ! -s conftest.err'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 (eval $ac_try) 2>&5
7558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; } &&
7561 { ac_try='test -s conftest$ac_exeext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 (eval $ac_try) 2>&5
7564 ac_status=$?
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 gt_cv_func_gnugettext1_libintl=yes
7568 else
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 gt_cv_func_gnugettext1_libintl=no
7573 fi
7574 rm -f conftest.err conftest.$ac_objext \
7575 conftest$ac_exeext conftest.$ac_ext
7576 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7577 LIBS="$LIBS $LIBICONV"
7578 cat >conftest.$ac_ext <<_ACEOF
7579 /* confdefs.h. */
7580 _ACEOF
7581 cat confdefs.h >>conftest.$ac_ext
7582 cat >>conftest.$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7584 #include <libintl.h>
7585 extern int _nl_msg_cat_cntr;
7586 extern
7587 #ifdef __cplusplus
7588 "C"
7589 #endif
7590 const char *_nl_expand_alias ();
7591 int
7592 main ()
7593 {
7594 bindtextdomain ("", "");
7595 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest.$ac_objext conftest$ac_exeext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7602 (eval $ac_link) 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -z "$ac_c_werror_flag"
7610 || test ! -s conftest.err'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; } &&
7616 { ac_try='test -s conftest$ac_exeext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 LIBINTL="$LIBINTL $LIBICONV"
7623 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7624 gt_cv_func_gnugettext1_libintl=yes
7625
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 fi
7631 rm -f conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7633 fi
7634 CPPFLAGS="$gt_save_CPPFLAGS"
7635 LIBS="$gt_save_LIBS"
7636 fi
7637 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7638 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7639 fi
7640
7641 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7642 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7643 && test "$PACKAGE" != gettext-runtime \
7644 && test "$PACKAGE" != gettext-tools; }; then
7645 gt_use_preinstalled_gnugettext=yes
7646 else
7647 LIBINTL=
7648 LTLIBINTL=
7649 INCINTL=
7650 fi
7651
7652
7653 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
7654 nls_cv_use_gnu_gettext=yes
7655 fi
7656 fi
7657
7658 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7659 BUILD_INCLUDED_LIBINTL=yes
7660 USE_INCLUDED_LIBINTL=yes
7661 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
7662 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
7663 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7664 fi
7665
7666 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7667 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7668 CATOBJEXT=.gmo
7669 fi
7670
7671
7672 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7673 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7674
7675 cat >>confdefs.h <<\_ACEOF
7676 #define ENABLE_NLS 1
7677 _ACEOF
7678
7679 else
7680 USE_NLS=no
7681 fi
7682 fi
7683
7684 echo "$as_me:$LINENO: checking whether to use NLS" >&5
7685 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
7686 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7687 echo "${ECHO_T}$USE_NLS" >&6
7688 if test "$USE_NLS" = "yes"; then
7689 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7690 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
7691 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7692 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7693 gt_source="external libintl"
7694 else
7695 gt_source="libc"
7696 fi
7697 else
7698 gt_source="included intl directory"
7699 fi
7700 echo "$as_me:$LINENO: result: $gt_source" >&5
7701 echo "${ECHO_T}$gt_source" >&6
7702 fi
7703
7704 if test "$USE_NLS" = "yes"; then
7705
7706 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7707 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7708 echo "$as_me:$LINENO: checking how to link with libintl" >&5
7709 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
7710 echo "$as_me:$LINENO: result: $LIBINTL" >&5
7711 echo "${ECHO_T}$LIBINTL" >&6
7712
7713 for element in $INCINTL; do
7714 haveit=
7715 for x in $CPPFLAGS; do
7716
7717 acl_save_prefix="$prefix"
7718 prefix="$acl_final_prefix"
7719 acl_save_exec_prefix="$exec_prefix"
7720 exec_prefix="$acl_final_exec_prefix"
7721 eval x=\"$x\"
7722 exec_prefix="$acl_save_exec_prefix"
7723 prefix="$acl_save_prefix"
7724
7725 if test "X$x" = "X$element"; then
7726 haveit=yes
7727 break
7728 fi
7729 done
7730 if test -z "$haveit"; then
7731 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7732 fi
7733 done
7734
7735 fi
7736
7737
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_GETTEXT 1
7740 _ACEOF
7741
7742
7743 cat >>confdefs.h <<\_ACEOF
7744 #define HAVE_DCGETTEXT 1
7745 _ACEOF
7746
7747 fi
7748
7749 POSUB=po
7750 fi
7751
7752
7753 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
7754 BUILD_INCLUDED_LIBINTL=yes
7755 fi
7756
7757
7758
7759
7760
7761 nls_cv_header_intl=
7762 nls_cv_header_libgt=
7763
7764 DATADIRNAME=share
7765
7766
7767 INSTOBJEXT=.mo
7768
7769
7770 GENCAT=gencat
7771
7772
7773 if test "$USE_INCLUDED_LIBINTL" = yes; then
7774 INTLOBJS="\$(GETTOBJS)"
7775 fi
7776
7777
7778 INTL_LIBTOOL_SUFFIX_PREFIX=
7779
7780
7781
7782 INTLLIBS="$LIBINTL"
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793 ac_ext=c
7794 ac_cpp='$CPP $CPPFLAGS'
7795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798
7799 echo "$as_me:$LINENO: checking for library containing strerror" >&5
7800 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
7801 if test "${ac_cv_search_strerror+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804 ac_func_search_save_LIBS=$LIBS
7805 ac_cv_search_strerror=no
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812
7813 /* Override any gcc2 internal prototype to avoid an error. */
7814 #ifdef __cplusplus
7815 extern "C"
7816 #endif
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7819 char strerror ();
7820 int
7821 main ()
7822 {
7823 strerror ();
7824 ;
7825 return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_cv_search_strerror="none required"
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855 fi
7856 rm -f conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 if test "$ac_cv_search_strerror" = no; then
7859 for ac_lib in cposix; do
7860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867
7868 /* Override any gcc2 internal prototype to avoid an error. */
7869 #ifdef __cplusplus
7870 extern "C"
7871 #endif
7872 /* We use char because int might match the return type of a gcc2
7873 builtin and then its argument prototype would still apply. */
7874 char strerror ();
7875 int
7876 main ()
7877 {
7878 strerror ();
7879 ;
7880 return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -z "$ac_c_werror_flag"
7893 || test ! -s conftest.err'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_search_strerror="-l$ac_lib"
7906 break
7907 else
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 fi
7912 rm -f conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 done
7915 fi
7916 LIBS=$ac_func_search_save_LIBS
7917 fi
7918 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
7919 echo "${ECHO_T}$ac_cv_search_strerror" >&6
7920 if test "$ac_cv_search_strerror" != no; then
7921 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
7922
7923 fi
7924
7925 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7926 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7927 if test "${ac_cv_c_bigendian+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930 # See if sys/param.h defines the BYTE_ORDER macro.
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <sys/types.h>
7938 #include <sys/param.h>
7939
7940 int
7941 main ()
7942 {
7943 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7944 bogus endian macros
7945 #endif
7946
7947 ;
7948 return 0;
7949 }
7950 _ACEOF
7951 rm -f conftest.$ac_objext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953 (eval $ac_compile) 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag"
7961 || test ! -s conftest.err'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try='test -s conftest.$ac_objext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 # It does; now see whether it defined to BIG_ENDIAN or not.
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 #include <sys/types.h>
7981 #include <sys/param.h>
7982
7983 int
7984 main ()
7985 {
7986 #if BYTE_ORDER != BIG_ENDIAN
7987 not big endian
7988 #endif
7989
7990 ;
7991 return 0;
7992 }
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996 (eval $ac_compile) 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try='test -z "$ac_c_werror_flag"
8004 || test ! -s conftest.err'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest.$ac_objext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_cv_c_bigendian=yes
8017 else
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021 ac_cv_c_bigendian=no
8022 fi
8023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 # It does not; compile a test program.
8029 if test "$cross_compiling" = yes; then
8030 # try to guess the endianness by grepping values into an object file
8031 ac_cv_c_bigendian=unknown
8032 cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h. */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8038 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8039 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8040 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8041 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8042 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8043 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8044 int
8045 main ()
8046 {
8047 _ascii (); _ebcdic ();
8048 ;
8049 return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054 (eval $ac_compile) 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag"
8062 || test ! -s conftest.err'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest.$ac_objext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8075 ac_cv_c_bigendian=yes
8076 fi
8077 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8078 if test "$ac_cv_c_bigendian" = unknown; then
8079 ac_cv_c_bigendian=no
8080 else
8081 # finding both strings is unlikely to happen, but who knows?
8082 ac_cv_c_bigendian=unknown
8083 fi
8084 fi
8085 else
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8088
8089 fi
8090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8091 else
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 int
8099 main ()
8100 {
8101 /* Are we little or big endian? From Harbison&Steele. */
8102 union
8103 {
8104 long l;
8105 char c[sizeof (long)];
8106 } u;
8107 u.l = 1;
8108 exit (u.c[sizeof (long) - 1] == 1);
8109 }
8110 _ACEOF
8111 rm -f conftest$ac_exeext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8113 (eval $ac_link) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 ac_cv_c_bigendian=no
8123 else
8124 echo "$as_me: program exited with status $ac_status" >&5
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 ( exit $ac_status )
8129 ac_cv_c_bigendian=yes
8130 fi
8131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8132 fi
8133 fi
8134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8135 fi
8136 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8137 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8138 case $ac_cv_c_bigendian in
8139 yes)
8140
8141 cat >>confdefs.h <<\_ACEOF
8142 #define WORDS_BIGENDIAN 1
8143 _ACEOF
8144 ;;
8145 no)
8146 ;;
8147 *)
8148 { { echo "$as_me:$LINENO: error: unknown endianness
8149 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8150 echo "$as_me: error: unknown endianness
8151 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8152 { (exit 1); exit 1; }; } ;;
8153 esac
8154
8155
8156
8157
8158 # By default we simply use the C compiler to build assembly code.
8159
8160 test "${CCAS+set}" = set || CCAS=$CC
8161 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8162
8163
8164
8165
8166
8167
8168 # Find a good install program. We prefer a C program (faster),
8169 # so one script is as good as another. But avoid the broken or
8170 # incompatible versions:
8171 # SysV /etc/install, /usr/sbin/install
8172 # SunOS /usr/etc/install
8173 # IRIX /sbin/install
8174 # AIX /bin/install
8175 # AmigaOS /C/install, which installs bootblocks on floppy discs
8176 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8177 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8178 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8179 # OS/2's system install, which has a completely different semantic
8180 # ./install, which can be erroneously created by make from ./install.sh.
8181 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8182 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8183 if test -z "$INSTALL"; then
8184 if test "${ac_cv_path_install+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 # Account for people who put trailing slashes in PATH elements.
8193 case $as_dir/ in
8194 ./ | .// | /cC/* | \
8195 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8196 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8197 /usr/ucb/* ) ;;
8198 *)
8199 # OSF1 and SCO ODT 3.0 have their own names for install.
8200 # Don't use installbsd from OSF since it installs stuff as root
8201 # by default.
8202 for ac_prog in ginstall scoinst install; do
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8205 if test $ac_prog = install &&
8206 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8207 # AIX install. It has an incompatible calling convention.
8208 :
8209 elif test $ac_prog = install &&
8210 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8211 # program-specific install script used by HP pwplus--don't use.
8212 :
8213 else
8214 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8215 break 3
8216 fi
8217 fi
8218 done
8219 done
8220 ;;
8221 esac
8222 done
8223
8224
8225 fi
8226 if test "${ac_cv_path_install+set}" = set; then
8227 INSTALL=$ac_cv_path_install
8228 else
8229 # As a last resort, use the slow shell script. We don't cache a
8230 # path for INSTALL within a source directory, because that will
8231 # break other packages using the cache if that directory is
8232 # removed, or if the path is relative.
8233 INSTALL=$ac_install_sh
8234 fi
8235 fi
8236 echo "$as_me:$LINENO: result: $INSTALL" >&5
8237 echo "${ECHO_T}$INSTALL" >&6
8238
8239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8240 # It thinks the first close brace ends the variable substitution.
8241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8242
8243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8244
8245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8246
8247 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8248 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8249 LN_S=$as_ln_s
8250 if test "$LN_S" = "ln -s"; then
8251 echo "$as_me:$LINENO: result: yes" >&5
8252 echo "${ECHO_T}yes" >&6
8253 else
8254 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8255 echo "${ECHO_T}no, using $LN_S" >&6
8256 fi
8257
8258 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8259 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8260 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8261 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264 cat >conftest.make <<\_ACEOF
8265 all:
8266 @echo 'ac_maketemp="$(MAKE)"'
8267 _ACEOF
8268 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8269 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8270 if test -n "$ac_maketemp"; then
8271 eval ac_cv_prog_make_${ac_make}_set=yes
8272 else
8273 eval ac_cv_prog_make_${ac_make}_set=no
8274 fi
8275 rm -f conftest.make
8276 fi
8277 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279 echo "${ECHO_T}yes" >&6
8280 SET_MAKE=
8281 else
8282 echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6
8284 SET_MAKE="MAKE=${MAKE-make}"
8285 fi
8286
8287
8288
8289
8290
8291
8292
8293
8294 # Check whether --enable-static or --disable-static was given.
8295 if test "${enable_static+set}" = set; then
8296 enableval="$enable_static"
8297 p=${PACKAGE-default}
8298 case $enableval in
8299 yes) enable_static=yes ;;
8300 no) enable_static=no ;;
8301 *)
8302 enable_static=no
8303 # Look at the argument we got. We use all the common list separators.
8304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8305 for pkg in $enableval; do
8306 IFS="$lt_save_ifs"
8307 if test "X$pkg" = "X$p"; then
8308 enable_static=yes
8309 fi
8310 done
8311 IFS="$lt_save_ifs"
8312 ;;
8313 esac
8314 else
8315 enable_static=no
8316 fi;
8317
8318
8319 # Check whether --enable-shared or --disable-shared was given.
8320 if test "${enable_shared+set}" = set; then
8321 enableval="$enable_shared"
8322 p=${PACKAGE-default}
8323 case $enableval in
8324 yes) enable_shared=yes ;;
8325 no) enable_shared=no ;;
8326 *)
8327 enable_shared=no
8328 # Look at the argument we got. We use all the common list separators.
8329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8330 for pkg in $enableval; do
8331 IFS="$lt_save_ifs"
8332 if test "X$pkg" = "X$p"; then
8333 enable_shared=yes
8334 fi
8335 done
8336 IFS="$lt_save_ifs"
8337 ;;
8338 esac
8339 else
8340 enable_shared=yes
8341 fi;
8342
8343 # Check whether --enable-fast-install or --disable-fast-install was given.
8344 if test "${enable_fast_install+set}" = set; then
8345 enableval="$enable_fast_install"
8346 p=${PACKAGE-default}
8347 case $enableval in
8348 yes) enable_fast_install=yes ;;
8349 no) enable_fast_install=no ;;
8350 *)
8351 enable_fast_install=no
8352 # Look at the argument we got. We use all the common list separators.
8353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8354 for pkg in $enableval; do
8355 IFS="$lt_save_ifs"
8356 if test "X$pkg" = "X$p"; then
8357 enable_fast_install=yes
8358 fi
8359 done
8360 IFS="$lt_save_ifs"
8361 ;;
8362 esac
8363 else
8364 enable_fast_install=yes
8365 fi;
8366
8367 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
8368 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
8369 if test "${lt_cv_path_SED+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372 # Loop through the user's path and test for sed and gsed.
8373 # Then use that list of sed's as ones to test for truncation.
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for lt_ac_prog in sed gsed; do
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8382 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8383 fi
8384 done
8385 done
8386 done
8387 lt_ac_max=0
8388 lt_ac_count=0
8389 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8390 # along with /bin/sed that truncates output.
8391 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8392 test ! -f $lt_ac_sed && break
8393 cat /dev/null > conftest.in
8394 lt_ac_count=0
8395 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8396 # Check for GNU sed and select it if it is found.
8397 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8398 lt_cv_path_SED=$lt_ac_sed
8399 break
8400 fi
8401 while true; do
8402 cat conftest.in conftest.in >conftest.tmp
8403 mv conftest.tmp conftest.in
8404 cp conftest.in conftest.nl
8405 echo >>conftest.nl
8406 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8407 cmp -s conftest.out conftest.nl || break
8408 # 10000 chars as input seems more than enough
8409 test $lt_ac_count -gt 10 && break
8410 lt_ac_count=`expr $lt_ac_count + 1`
8411 if test $lt_ac_count -gt $lt_ac_max; then
8412 lt_ac_max=$lt_ac_count
8413 lt_cv_path_SED=$lt_ac_sed
8414 fi
8415 done
8416 done
8417
8418 fi
8419
8420 SED=$lt_cv_path_SED
8421 echo "$as_me:$LINENO: result: $SED" >&5
8422 echo "${ECHO_T}$SED" >&6
8423
8424
8425 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8426 if test "${with_gnu_ld+set}" = set; then
8427 withval="$with_gnu_ld"
8428 test "$withval" = no || with_gnu_ld=yes
8429 else
8430 with_gnu_ld=no
8431 fi;
8432 ac_prog=ld
8433 if test "$GCC" = yes; then
8434 # Check if gcc -print-prog-name=ld gives a path.
8435 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8436 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8437 case $host in
8438 *-*-mingw*)
8439 # gcc leaves a trailing carriage return which upsets mingw
8440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8441 *)
8442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8443 esac
8444 case $ac_prog in
8445 # Accept absolute paths.
8446 [\\/]* | ?:[\\/]*)
8447 re_direlt='/[^/][^/]*/\.\./'
8448 # Canonicalize the pathname of ld
8449 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8451 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8452 done
8453 test -z "$LD" && LD="$ac_prog"
8454 ;;
8455 "")
8456 # If it fails, then pretend we aren't using GCC.
8457 ac_prog=ld
8458 ;;
8459 *)
8460 # If it is relative, then search for the first ld in PATH.
8461 with_gnu_ld=unknown
8462 ;;
8463 esac
8464 elif test "$with_gnu_ld" = yes; then
8465 echo "$as_me:$LINENO: checking for GNU ld" >&5
8466 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8467 else
8468 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8469 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8470 fi
8471 if test "${lt_cv_path_LD+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474 if test -z "$LD"; then
8475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8476 for ac_dir in $PATH; do
8477 IFS="$lt_save_ifs"
8478 test -z "$ac_dir" && ac_dir=.
8479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8480 lt_cv_path_LD="$ac_dir/$ac_prog"
8481 # Check to see if the program is GNU ld. I'd rather use --version,
8482 # but apparently some GNU ld's only accept -v.
8483 # Break only if it was the GNU/non-GNU ld that we prefer.
8484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8485 *GNU* | *'with BFD'*)
8486 test "$with_gnu_ld" != no && break
8487 ;;
8488 *)
8489 test "$with_gnu_ld" != yes && break
8490 ;;
8491 esac
8492 fi
8493 done
8494 IFS="$lt_save_ifs"
8495 else
8496 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8497 fi
8498 fi
8499
8500 LD="$lt_cv_path_LD"
8501 if test -n "$LD"; then
8502 echo "$as_me:$LINENO: result: $LD" >&5
8503 echo "${ECHO_T}$LD" >&6
8504 else
8505 echo "$as_me:$LINENO: result: no" >&5
8506 echo "${ECHO_T}no" >&6
8507 fi
8508 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8509 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8510 { (exit 1); exit 1; }; }
8511 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8512 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8513 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8517 case `$LD -v 2>&1 </dev/null` in
8518 *GNU* | *'with BFD'*)
8519 lt_cv_prog_gnu_ld=yes
8520 ;;
8521 *)
8522 lt_cv_prog_gnu_ld=no
8523 ;;
8524 esac
8525 fi
8526 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8527 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8528 with_gnu_ld=$lt_cv_prog_gnu_ld
8529
8530
8531 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8532 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
8533 if test "${lt_cv_ld_reload_flag+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 else
8536 lt_cv_ld_reload_flag='-r'
8537 fi
8538 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8539 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
8540 reload_flag=$lt_cv_ld_reload_flag
8541 case $reload_flag in
8542 "" | " "*) ;;
8543 *) reload_flag=" $reload_flag" ;;
8544 esac
8545 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8546 case $host_os in
8547 darwin*)
8548 if test "$GCC" = yes; then
8549 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
8550 else
8551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8552 fi
8553 ;;
8554 esac
8555
8556 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8557 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
8558 if test "${lt_cv_path_NM+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561 if test -n "$NM"; then
8562 # Let the user override the test.
8563 lt_cv_path_NM="$NM"
8564 else
8565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8566 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8567 IFS="$lt_save_ifs"
8568 test -z "$ac_dir" && ac_dir=.
8569 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
8570 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8571 # Check to see if the nm accepts a BSD-compat flag.
8572 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8573 # nm: unknown option "B" ignored
8574 # Tru64's nm complains that /dev/null is an invalid object file
8575 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8576 */dev/null* | *'Invalid file or object type'*)
8577 lt_cv_path_NM="$tmp_nm -B"
8578 break
8579 ;;
8580 *)
8581 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8582 */dev/null*)
8583 lt_cv_path_NM="$tmp_nm -p"
8584 break
8585 ;;
8586 *)
8587 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8588 continue # so that we can try to find one that supports BSD flags
8589 ;;
8590 esac
8591 esac
8592 fi
8593 done
8594 IFS="$lt_save_ifs"
8595 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8596 fi
8597 fi
8598 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8599 echo "${ECHO_T}$lt_cv_path_NM" >&6
8600 NM="$lt_cv_path_NM"
8601
8602 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
8603 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
8604 if test "${lt_cv_deplibs_check_method+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607 lt_cv_file_magic_cmd='$MAGIC_CMD'
8608 lt_cv_file_magic_test_file=
8609 lt_cv_deplibs_check_method='unknown'
8610 # Need to set the preceding variable on all platforms that support
8611 # interlibrary dependencies.
8612 # 'none' -- dependencies not supported.
8613 # `unknown' -- same as none, but documents that we really don't know.
8614 # 'pass_all' -- all dependencies passed with no checks.
8615 # 'test_compile' -- check by making test program.
8616 # 'file_magic [[regex]]' -- check by looking for files in library path
8617 # which responds to the $file_magic_cmd with a given extended regex.
8618 # If you have `file' or equivalent on your system and you're not sure
8619 # whether `pass_all' will *always* work, you probably want this one.
8620
8621 case $host_os in
8622 aix4* | aix5*)
8623 lt_cv_deplibs_check_method=pass_all
8624 ;;
8625
8626 beos*)
8627 lt_cv_deplibs_check_method=pass_all
8628 ;;
8629
8630 bsdi[45]*)
8631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8632 lt_cv_file_magic_cmd='/usr/bin/file -L'
8633 lt_cv_file_magic_test_file=/shlib/libc.so
8634 ;;
8635
8636 cygwin*)
8637 # func_win32_libid is a shell function defined in ltmain.sh
8638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8639 lt_cv_file_magic_cmd='func_win32_libid'
8640 ;;
8641
8642 mingw* | pw32*)
8643 # Base MSYS/MinGW do not provide the 'file' command needed by
8644 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
8645 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8646 lt_cv_file_magic_cmd='$OBJDUMP -f'
8647 ;;
8648
8649 darwin* | rhapsody*)
8650 lt_cv_deplibs_check_method=pass_all
8651 ;;
8652
8653 freebsd* | kfreebsd*-gnu)
8654 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8655 case $host_cpu in
8656 i*86 )
8657 # Not sure whether the presence of OpenBSD here was a mistake.
8658 # Let's accept both of them until this is cleared up.
8659 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
8660 lt_cv_file_magic_cmd=/usr/bin/file
8661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8662 ;;
8663 esac
8664 else
8665 lt_cv_deplibs_check_method=pass_all
8666 fi
8667 ;;
8668
8669 gnu*)
8670 lt_cv_deplibs_check_method=pass_all
8671 ;;
8672
8673 hpux10.20* | hpux11*)
8674 lt_cv_file_magic_cmd=/usr/bin/file
8675 case "$host_cpu" in
8676 ia64*)
8677 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8678 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8679 ;;
8680 hppa*64*)
8681 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8682 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8683 ;;
8684 *)
8685 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8686 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8687 ;;
8688 esac
8689 ;;
8690
8691 irix5* | irix6* | nonstopux*)
8692 case $LD in
8693 *-32|*"-32 ") libmagic=32-bit;;
8694 *-n32|*"-n32 ") libmagic=N32;;
8695 *-64|*"-64 ") libmagic=64-bit;;
8696 *) libmagic=never-match;;
8697 esac
8698 lt_cv_deplibs_check_method=pass_all
8699 ;;
8700
8701 # This must be Linux ELF.
8702 linux*)
8703 lt_cv_deplibs_check_method=pass_all
8704 ;;
8705
8706 netbsd*)
8707 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8709 else
8710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8711 fi
8712 ;;
8713
8714 newos6*)
8715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8716 lt_cv_file_magic_cmd=/usr/bin/file
8717 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8718 ;;
8719
8720 nto-qnx*)
8721 lt_cv_deplibs_check_method=unknown
8722 ;;
8723
8724 openbsd*)
8725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8727 else
8728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8729 fi
8730 ;;
8731
8732 osf3* | osf4* | osf5*)
8733 lt_cv_deplibs_check_method=pass_all
8734 ;;
8735
8736 sco3.2v5*)
8737 lt_cv_deplibs_check_method=pass_all
8738 ;;
8739
8740 solaris*)
8741 lt_cv_deplibs_check_method=pass_all
8742 ;;
8743
8744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8745 case $host_vendor in
8746 motorola)
8747 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]'
8748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8749 ;;
8750 ncr)
8751 lt_cv_deplibs_check_method=pass_all
8752 ;;
8753 sequent)
8754 lt_cv_file_magic_cmd='/bin/file'
8755 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8756 ;;
8757 sni)
8758 lt_cv_file_magic_cmd='/bin/file'
8759 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8760 lt_cv_file_magic_test_file=/lib/libc.so
8761 ;;
8762 siemens)
8763 lt_cv_deplibs_check_method=pass_all
8764 ;;
8765 esac
8766 ;;
8767
8768 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8769 lt_cv_deplibs_check_method=pass_all
8770 ;;
8771 esac
8772
8773 fi
8774 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8775 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
8776 file_magic_cmd=$lt_cv_file_magic_cmd
8777 deplibs_check_method=$lt_cv_deplibs_check_method
8778 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8779
8780
8781
8782
8783 # If no C compiler was specified, use CC.
8784 LTCC=${LTCC-"$CC"}
8785
8786 # Allow CC to be a program name with arguments.
8787 compiler=$CC
8788
8789 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8790 if test "${enable_libtool_lock+set}" = set; then
8791 enableval="$enable_libtool_lock"
8792
8793 fi;
8794 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8795
8796 # Some flags need to be propagated to the compiler or linker for good
8797 # libtool support.
8798 case $host in
8799 ia64-*-hpux*)
8800 # Find out which ABI we are using.
8801 echo 'int i;' > conftest.$ac_ext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8803 (eval $ac_compile) 2>&5
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; then
8807 case `/usr/bin/file conftest.$ac_objext` in
8808 *ELF-32*)
8809 HPUX_IA64_MODE="32"
8810 ;;
8811 *ELF-64*)
8812 HPUX_IA64_MODE="64"
8813 ;;
8814 esac
8815 fi
8816 rm -rf conftest*
8817 ;;
8818 *-*-irix6*)
8819 # Find out which ABI we are using.
8820 echo '#line 8820 "configure"' > conftest.$ac_ext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8822 (eval $ac_compile) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; then
8826 if test "$lt_cv_prog_gnu_ld" = yes; then
8827 case `/usr/bin/file conftest.$ac_objext` in
8828 *32-bit*)
8829 LD="${LD-ld} -melf32bsmip"
8830 ;;
8831 *N32*)
8832 LD="${LD-ld} -melf32bmipn32"
8833 ;;
8834 *64-bit*)
8835 LD="${LD-ld} -melf64bmip"
8836 ;;
8837 esac
8838 else
8839 case `/usr/bin/file conftest.$ac_objext` in
8840 *32-bit*)
8841 LD="${LD-ld} -32"
8842 ;;
8843 *N32*)
8844 LD="${LD-ld} -n32"
8845 ;;
8846 *64-bit*)
8847 LD="${LD-ld} -64"
8848 ;;
8849 esac
8850 fi
8851 fi
8852 rm -rf conftest*
8853 ;;
8854
8855 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8856 # Find out which ABI we are using.
8857 echo 'int i;' > conftest.$ac_ext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8859 (eval $ac_compile) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; then
8863 case "`/usr/bin/file conftest.o`" in
8864 *32-bit*)
8865 case $host in
8866 x86_64-*linux*)
8867 LD="${LD-ld} -m elf_i386"
8868 ;;
8869 ppc64-*linux*|powerpc64-*linux*)
8870 LD="${LD-ld} -m elf32ppclinux"
8871 ;;
8872 s390x-*linux*)
8873 LD="${LD-ld} -m elf_s390"
8874 ;;
8875 sparc64-*linux*)
8876 LD="${LD-ld} -m elf32_sparc"
8877 ;;
8878 esac
8879 ;;
8880 *64-bit*)
8881 case $host in
8882 x86_64-*linux*)
8883 LD="${LD-ld} -m elf_x86_64"
8884 ;;
8885 ppc*-*linux*|powerpc*-*linux*)
8886 LD="${LD-ld} -m elf64ppc"
8887 ;;
8888 s390*-*linux*)
8889 LD="${LD-ld} -m elf64_s390"
8890 ;;
8891 sparc*-*linux*)
8892 LD="${LD-ld} -m elf64_sparc"
8893 ;;
8894 esac
8895 ;;
8896 esac
8897 fi
8898 rm -rf conftest*
8899 ;;
8900
8901 *-*-sco3.2v5*)
8902 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8903 SAVE_CFLAGS="$CFLAGS"
8904 CFLAGS="$CFLAGS -belf"
8905 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8906 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
8907 if test "${lt_cv_cc_needs_belf+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910 ac_ext=c
8911 ac_cpp='$CPP $CPPFLAGS'
8912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8915
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922
8923 int
8924 main ()
8925 {
8926
8927 ;
8928 return 0;
8929 }
8930 _ACEOF
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag"
8941 || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest$ac_exeext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 lt_cv_cc_needs_belf=yes
8954 else
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 lt_cv_cc_needs_belf=no
8959 fi
8960 rm -f conftest.err conftest.$ac_objext \
8961 conftest$ac_exeext conftest.$ac_ext
8962 ac_ext=c
8963 ac_cpp='$CPP $CPPFLAGS'
8964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8967
8968 fi
8969 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8970 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
8971 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8972 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8973 CFLAGS="$SAVE_CFLAGS"
8974 fi
8975 ;;
8976
8977 esac
8978
8979 need_locks="$enable_libtool_lock"
8980
8981
8982
8983 for ac_header in dlfcn.h
8984 do
8985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8987 echo "$as_me:$LINENO: checking for $ac_header" >&5
8988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 fi
8992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8994 else
8995 # Is the header compilable?
8996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8998 cat >conftest.$ac_ext <<_ACEOF
8999 /* confdefs.h. */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004 $ac_includes_default
9005 #include <$ac_header>
9006 _ACEOF
9007 rm -f conftest.$ac_objext
9008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9009 (eval $ac_compile) 2>conftest.er1
9010 ac_status=$?
9011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } &&
9016 { ac_try='test -z "$ac_c_werror_flag"
9017 || test ! -s conftest.err'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 (eval $ac_try) 2>&5
9020 ac_status=$?
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; } &&
9023 { ac_try='test -s conftest.$ac_objext'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; }; then
9029 ac_header_compiler=yes
9030 else
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034 ac_header_compiler=no
9035 fi
9036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9038 echo "${ECHO_T}$ac_header_compiler" >&6
9039
9040 # Is the header present?
9041 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9043 cat >conftest.$ac_ext <<_ACEOF
9044 /* confdefs.h. */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9049 #include <$ac_header>
9050 _ACEOF
9051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } >/dev/null; then
9059 if test -s conftest.err; then
9060 ac_cpp_err=$ac_c_preproc_warn_flag
9061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9062 else
9063 ac_cpp_err=
9064 fi
9065 else
9066 ac_cpp_err=yes
9067 fi
9068 if test -z "$ac_cpp_err"; then
9069 ac_header_preproc=yes
9070 else
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9073
9074 ac_header_preproc=no
9075 fi
9076 rm -f conftest.err conftest.$ac_ext
9077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9078 echo "${ECHO_T}$ac_header_preproc" >&6
9079
9080 # So? What about this header?
9081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9082 yes:no: )
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9087 ac_header_preproc=yes
9088 ;;
9089 no:yes:* )
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9102 (
9103 cat <<\_ASBOX
9104 ## ------------------------------------ ##
9105 ## Report this to the audacious lists. ##
9106 ## ------------------------------------ ##
9107 _ASBOX
9108 ) |
9109 sed "s/^/$as_me: WARNING: /" >&2
9110 ;;
9111 esac
9112 echo "$as_me:$LINENO: checking for $ac_header" >&5
9113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117 eval "$as_ac_Header=\$ac_header_preproc"
9118 fi
9119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9121
9122 fi
9123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9124 cat >>confdefs.h <<_ACEOF
9125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9126 _ACEOF
9127
9128 fi
9129
9130 done
9131
9132
9133
9134
9135 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9136 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9137 (test "X$CXX" != "Xg++"))) ; then
9138 ac_ext=cc
9139 ac_cpp='$CXXCPP $CPPFLAGS'
9140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9143 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9144 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
9145 if test -z "$CXXCPP"; then
9146 if test "${ac_cv_prog_CXXCPP+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149 # Double quotes because CXXCPP needs to be expanded
9150 for CXXCPP in "$CXX -E" "/lib/cpp"
9151 do
9152 ac_preproc_ok=false
9153 for ac_cxx_preproc_warn_flag in '' yes
9154 do
9155 # Use a header file that comes with gcc, so configuring glibc
9156 # with a fresh cross-compiler works.
9157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9158 # <limits.h> exists even on freestanding compilers.
9159 # On the NeXT, cc -E runs the code through the compiler's parser,
9160 # not just through cpp. "Syntax error" is here to catch this case.
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #ifdef __STDC__
9168 # include <limits.h>
9169 #else
9170 # include <assert.h>
9171 #endif
9172 Syntax error
9173 _ACEOF
9174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } >/dev/null; then
9182 if test -s conftest.err; then
9183 ac_cpp_err=$ac_cxx_preproc_warn_flag
9184 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9185 else
9186 ac_cpp_err=
9187 fi
9188 else
9189 ac_cpp_err=yes
9190 fi
9191 if test -z "$ac_cpp_err"; then
9192 :
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 # Broken: fails on valid input.
9198 continue
9199 fi
9200 rm -f conftest.err conftest.$ac_ext
9201
9202 # OK, works on sane cases. Now check whether non-existent headers
9203 # can be detected and how.
9204 cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h. */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210 #include <ac_nonexistent.h>
9211 _ACEOF
9212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } >/dev/null; then
9220 if test -s conftest.err; then
9221 ac_cpp_err=$ac_cxx_preproc_warn_flag
9222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9223 else
9224 ac_cpp_err=
9225 fi
9226 else
9227 ac_cpp_err=yes
9228 fi
9229 if test -z "$ac_cpp_err"; then
9230 # Broken: success on invalid input.
9231 continue
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236 # Passes both tests.
9237 ac_preproc_ok=:
9238 break
9239 fi
9240 rm -f conftest.err conftest.$ac_ext
9241
9242 done
9243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9244 rm -f conftest.err conftest.$ac_ext
9245 if $ac_preproc_ok; then
9246 break
9247 fi
9248
9249 done
9250 ac_cv_prog_CXXCPP=$CXXCPP
9251
9252 fi
9253 CXXCPP=$ac_cv_prog_CXXCPP
9254 else
9255 ac_cv_prog_CXXCPP=$CXXCPP
9256 fi
9257 echo "$as_me:$LINENO: result: $CXXCPP" >&5
9258 echo "${ECHO_T}$CXXCPP" >&6
9259 ac_preproc_ok=false
9260 for ac_cxx_preproc_warn_flag in '' yes
9261 do
9262 # Use a header file that comes with gcc, so configuring glibc
9263 # with a fresh cross-compiler works.
9264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9265 # <limits.h> exists even on freestanding compilers.
9266 # On the NeXT, cc -E runs the code through the compiler's parser,
9267 # not just through cpp. "Syntax error" is here to catch this case.
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h. */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 #ifdef __STDC__
9275 # include <limits.h>
9276 #else
9277 # include <assert.h>
9278 #endif
9279 Syntax error
9280 _ACEOF
9281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9283 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } >/dev/null; then
9289 if test -s conftest.err; then
9290 ac_cpp_err=$ac_cxx_preproc_warn_flag
9291 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9292 else
9293 ac_cpp_err=
9294 fi
9295 else
9296 ac_cpp_err=yes
9297 fi
9298 if test -z "$ac_cpp_err"; then
9299 :
9300 else
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 # Broken: fails on valid input.
9305 continue
9306 fi
9307 rm -f conftest.err conftest.$ac_ext
9308
9309 # OK, works on sane cases. Now check whether non-existent headers
9310 # can be detected and how.
9311 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h. */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9317 #include <ac_nonexistent.h>
9318 _ACEOF
9319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } >/dev/null; then
9327 if test -s conftest.err; then
9328 ac_cpp_err=$ac_cxx_preproc_warn_flag
9329 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9330 else
9331 ac_cpp_err=
9332 fi
9333 else
9334 ac_cpp_err=yes
9335 fi
9336 if test -z "$ac_cpp_err"; then
9337 # Broken: success on invalid input.
9338 continue
9339 else
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9342
9343 # Passes both tests.
9344 ac_preproc_ok=:
9345 break
9346 fi
9347 rm -f conftest.err conftest.$ac_ext
9348
9349 done
9350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9351 rm -f conftest.err conftest.$ac_ext
9352 if $ac_preproc_ok; then
9353 :
9354 else
9355 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9356 See \`config.log' for more details." >&5
9357 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9358 See \`config.log' for more details." >&2;}
9359 { (exit 1); exit 1; }; }
9360 fi
9361
9362 ac_ext=cc
9363 ac_cpp='$CXXCPP $CPPFLAGS'
9364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9367
9368 fi
9369
9370
9371
9372
9373
9374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9375
9376 # find the maximum length of command line arguments
9377 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
9379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382 i=0
9383 teststring="ABCD"
9384
9385 case $build_os in
9386 msdosdjgpp*)
9387 # On DJGPP, this test can blow up pretty badly due to problems in libc
9388 # (any single argument exceeding 2000 bytes causes a buffer overrun
9389 # during glob expansion). Even if it were fixed, the result of this
9390 # check would be larger than it should be.
9391 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9392 ;;
9393
9394 gnu*)
9395 # Under GNU Hurd, this test is not required because there is
9396 # no limit to the length of command line arguments.
9397 # Libtool will interpret -1 as no limit whatsoever
9398 lt_cv_sys_max_cmd_len=-1;
9399 ;;
9400
9401 cygwin* | mingw*)
9402 # On Win9x/ME, this test blows up -- it succeeds, but takes
9403 # about 5 minutes as the teststring grows exponentially.
9404 # Worse, since 9x/ME are not pre-emptively multitasking,
9405 # you end up with a "frozen" computer, even though with patience
9406 # the test eventually succeeds (with a max line length of 256k).
9407 # Instead, let's just punt: use the minimum linelength reported by
9408 # all of the supported platforms: 8192 (on NT/2K/XP).
9409 lt_cv_sys_max_cmd_len=8192;
9410 ;;
9411
9412 amigaos*)
9413 # On AmigaOS with pdksh, this test takes hours, literally.
9414 # So we just punt and use a minimum line length of 8192.
9415 lt_cv_sys_max_cmd_len=8192;
9416 ;;
9417
9418 netbsd* | freebsd* | openbsd* | darwin* )
9419 # This has been around since 386BSD, at least. Likely further.
9420 if test -x /sbin/sysctl; then
9421 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9422 elif test -x /usr/sbin/sysctl; then
9423 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9424 else
9425 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
9426 fi
9427 # And add a safety zone
9428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9429 ;;
9430
9431 *)
9432 # If test is not a shell built-in, we'll probably end up computing a
9433 # maximum length that is only half of the actual maximum length, but
9434 # we can't tell.
9435 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9436 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9437 = "XX$teststring") >/dev/null 2>&1 &&
9438 new_result=`expr "X$teststring" : ".*" 2>&1` &&
9439 lt_cv_sys_max_cmd_len=$new_result &&
9440 test $i != 17 # 1/2 MB should be enough
9441 do
9442 i=`expr $i + 1`
9443 teststring=$teststring$teststring
9444 done
9445 teststring=
9446 # Add a significant safety factor because C++ compilers can tack on massive
9447 # amounts of additional arguments before passing them to the linker.
9448 # It appears as though 1/2 is a usable value.
9449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9450 ;;
9451 esac
9452
9453 fi
9454
9455 if test -n $lt_cv_sys_max_cmd_len ; then
9456 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9457 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9458 else
9459 echo "$as_me:$LINENO: result: none" >&5
9460 echo "${ECHO_T}none" >&6
9461 fi
9462
9463
9464
9465
9466 # Check for command to grab the raw symbol name followed by C symbol from nm.
9467 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472
9473 # These are sane defaults that work on at least a few old systems.
9474 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9475
9476 # Character class describing NM global symbol codes.
9477 symcode='[BCDEGRST]'
9478
9479 # Regexp to match symbols that can be accessed directly from C.
9480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9481
9482 # Transform the above into a raw symbol and a C symbol.
9483 symxfrm='\1 \2\3 \3'
9484
9485 # Transform an extracted symbol line into a proper C declaration
9486 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9487
9488 # Transform an extracted symbol line into symbol name and symbol address
9489 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9490
9491 # Define system-specific variables.
9492 case $host_os in
9493 aix*)
9494 symcode='[BCDT]'
9495 ;;
9496 cygwin* | mingw* | pw32*)
9497 symcode='[ABCDGISTW]'
9498 ;;
9499 hpux*) # Its linker distinguishes data from code symbols
9500 if test "$host_cpu" = ia64; then
9501 symcode='[ABCDEGRST]'
9502 fi
9503 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9504 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9505 ;;
9506 linux*)
9507 if test "$host_cpu" = ia64; then
9508 symcode='[ABCDGIRSTW]'
9509 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9510 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9511 fi
9512 ;;
9513 irix* | nonstopux*)
9514 symcode='[BCDEGRST]'
9515 ;;
9516 osf*)
9517 symcode='[BCDEGQRST]'
9518 ;;
9519 solaris* | sysv5*)
9520 symcode='[BDRT]'
9521 ;;
9522 sysv4)
9523 symcode='[DFNSTU]'
9524 ;;
9525 esac
9526
9527 # Handle CRLF in mingw tool chain
9528 opt_cr=
9529 case $build_os in
9530 mingw*)
9531 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9532 ;;
9533 esac
9534
9535 # If we're using GNU nm, then use its standard symbol codes.
9536 case `$NM -V 2>&1` in
9537 *GNU* | *'with BFD'*)
9538 symcode='[ABCDGIRSTW]' ;;
9539 esac
9540
9541 # Try without a prefix undercore, then with it.
9542 for ac_symprfx in "" "_"; do
9543
9544 # Write the raw and C identifiers.
9545 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9546
9547 # Check to see that the pipe works correctly.
9548 pipe_works=no
9549
9550 rm -f conftest*
9551 cat > conftest.$ac_ext <<EOF
9552 #ifdef __cplusplus
9553 extern "C" {
9554 #endif
9555 char nm_test_var;
9556 void nm_test_func(){}
9557 #ifdef __cplusplus
9558 }
9559 #endif
9560 int main(){nm_test_var='a';nm_test_func();return(0);}
9561 EOF
9562
9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564 (eval $ac_compile) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; then
9568 # Now try to grab the symbols.
9569 nlist=conftest.nm
9570 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9571 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && test -s "$nlist"; then
9575 # Try sorting and uniquifying the output.
9576 if sort "$nlist" | uniq > "$nlist"T; then
9577 mv -f "$nlist"T "$nlist"
9578 else
9579 rm -f "$nlist"T
9580 fi
9581
9582 # Make sure that we snagged all the symbols we need.
9583 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9584 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9585 cat <<EOF > conftest.$ac_ext
9586 #ifdef __cplusplus
9587 extern "C" {
9588 #endif
9589
9590 EOF
9591 # Now generate the symbol file.
9592 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9593
9594 cat <<EOF >> conftest.$ac_ext
9595 #if defined (__STDC__) && __STDC__
9596 # define lt_ptr_t void *
9597 #else
9598 # define lt_ptr_t char *
9599 # define const
9600 #endif
9601
9602 /* The mapping between symbol names and symbols. */
9603 const struct {
9604 const char *name;
9605 lt_ptr_t address;
9606 }
9607 lt_preloaded_symbols[] =
9608 {
9609 EOF
9610 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9611 cat <<\EOF >> conftest.$ac_ext
9612 {0, (lt_ptr_t) 0}
9613 };
9614
9615 #ifdef __cplusplus
9616 }
9617 #endif
9618 EOF
9619 # Now try linking the two files.
9620 mv conftest.$ac_objext conftstm.$ac_objext
9621 lt_save_LIBS="$LIBS"
9622 lt_save_CFLAGS="$CFLAGS"
9623 LIBS="conftstm.$ac_objext"
9624 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626 (eval $ac_link) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9630 pipe_works=yes
9631 fi
9632 LIBS="$lt_save_LIBS"
9633 CFLAGS="$lt_save_CFLAGS"
9634 else
9635 echo "cannot find nm_test_func in $nlist" >&5
9636 fi
9637 else
9638 echo "cannot find nm_test_var in $nlist" >&5
9639 fi
9640 else
9641 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9642 fi
9643 else
9644 echo "$progname: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 fi
9647 rm -f conftest* conftst*
9648
9649 # Do not use the global_symbol_pipe unless it works.
9650 if test "$pipe_works" = yes; then
9651 break
9652 else
9653 lt_cv_sys_global_symbol_pipe=
9654 fi
9655 done
9656
9657 fi
9658
9659 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9660 lt_cv_sys_global_symbol_to_cdecl=
9661 fi
9662 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9663 echo "$as_me:$LINENO: result: failed" >&5
9664 echo "${ECHO_T}failed" >&6
9665 else
9666 echo "$as_me:$LINENO: result: ok" >&5
9667 echo "${ECHO_T}ok" >&6
9668 fi
9669
9670 echo "$as_me:$LINENO: checking for objdir" >&5
9671 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9672 if test "${lt_cv_objdir+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675 rm -f .libs 2>/dev/null
9676 mkdir .libs 2>/dev/null
9677 if test -d .libs; then
9678 lt_cv_objdir=.libs
9679 else
9680 # MS-DOS does not allow filenames that begin with a dot.
9681 lt_cv_objdir=_libs
9682 fi
9683 rmdir .libs 2>/dev/null
9684 fi
9685 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9686 echo "${ECHO_T}$lt_cv_objdir" >&6
9687 objdir=$lt_cv_objdir
9688
9689
9690
9691
9692
9693 case $host_os in
9694 aix3*)
9695 # AIX sometimes has problems with the GCC collect2 program. For some
9696 # reason, if we set the COLLECT_NAMES environment variable, the problems
9697 # vanish in a puff of smoke.
9698 if test "X${COLLECT_NAMES+set}" != Xset; then
9699 COLLECT_NAMES=
9700 export COLLECT_NAMES
9701 fi
9702 ;;
9703 esac
9704
9705 # Sed substitution that helps us do robust quoting. It backslashifies
9706 # metacharacters that are still active within double-quoted strings.
9707 Xsed='sed -e s/^X//'
9708 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9709
9710 # Same as above, but do not quote variable references.
9711 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9712
9713 # Sed substitution to delay expansion of an escaped shell variable in a
9714 # double_quote_subst'ed string.
9715 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9716
9717 # Sed substitution to avoid accidental globbing in evaled expressions
9718 no_glob_subst='s/\*/\\\*/g'
9719
9720 # Constants:
9721 rm="rm -f"
9722
9723 # Global variables:
9724 default_ofile=libtool
9725 can_build_shared=yes
9726
9727 # All known linkers require a `.a' archive for static linking (except M$VC,
9728 # which needs '.lib').
9729 libext=a
9730 ltmain="$ac_aux_dir/ltmain.sh"
9731 ofile="$default_ofile"
9732 with_gnu_ld="$lt_cv_prog_gnu_ld"
9733
9734 if test -n "$ac_tool_prefix"; then
9735 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9736 set dummy ${ac_tool_prefix}ar; ac_word=$2
9737 echo "$as_me:$LINENO: checking for $ac_word" >&5
9738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9739 if test "${ac_cv_prog_AR+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 if test -n "$AR"; then
9743 ac_cv_prog_AR="$AR" # Let the user override the test.
9744 else
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9747 do
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_AR="${ac_tool_prefix}ar"
9753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9755 fi
9756 done
9757 done
9758
9759 fi
9760 fi
9761 AR=$ac_cv_prog_AR
9762 if test -n "$AR"; then
9763 echo "$as_me:$LINENO: result: $AR" >&5
9764 echo "${ECHO_T}$AR" >&6
9765 else
9766 echo "$as_me:$LINENO: result: no" >&5
9767 echo "${ECHO_T}no" >&6
9768 fi
9769
9770 fi
9771 if test -z "$ac_cv_prog_AR"; then
9772 ac_ct_AR=$AR
9773 # Extract the first word of "ar", so it can be a program name with args.
9774 set dummy ar; ac_word=$2
9775 echo "$as_me:$LINENO: checking for $ac_word" >&5
9776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9777 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 if test -n "$ac_ct_AR"; then
9781 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9782 else
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in $PATH
9785 do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9790 ac_cv_prog_ac_ct_AR="ar"
9791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9793 fi
9794 done
9795 done
9796
9797 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9798 fi
9799 fi
9800 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9801 if test -n "$ac_ct_AR"; then
9802 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9803 echo "${ECHO_T}$ac_ct_AR" >&6
9804 else
9805 echo "$as_me:$LINENO: result: no" >&5
9806 echo "${ECHO_T}no" >&6
9807 fi
9808
9809 AR=$ac_ct_AR
9810 else
9811 AR="$ac_cv_prog_AR"
9812 fi
9813
9814 if test -n "$ac_tool_prefix"; then
9815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9817 echo "$as_me:$LINENO: checking for $ac_word" >&5
9818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9819 if test "${ac_cv_prog_RANLIB+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822 if test -n "$RANLIB"; then
9823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9824 else
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $PATH
9827 do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9835 fi
9836 done
9837 done
9838
9839 fi
9840 fi
9841 RANLIB=$ac_cv_prog_RANLIB
9842 if test -n "$RANLIB"; then
9843 echo "$as_me:$LINENO: result: $RANLIB" >&5
9844 echo "${ECHO_T}$RANLIB" >&6
9845 else
9846 echo "$as_me:$LINENO: result: no" >&5
9847 echo "${ECHO_T}no" >&6
9848 fi
9849
9850 fi
9851 if test -z "$ac_cv_prog_RANLIB"; then
9852 ac_ct_RANLIB=$RANLIB
9853 # Extract the first word of "ranlib", so it can be a program name with args.
9854 set dummy ranlib; ac_word=$2
9855 echo "$as_me:$LINENO: checking for $ac_word" >&5
9856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9857 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860 if test -n "$ac_ct_RANLIB"; then
9861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9862 else
9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864 for as_dir in $PATH
9865 do
9866 IFS=$as_save_IFS
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
9869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9870 ac_cv_prog_ac_ct_RANLIB="ranlib"
9871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 break 2
9873 fi
9874 done
9875 done
9876
9877 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9878 fi
9879 fi
9880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9881 if test -n "$ac_ct_RANLIB"; then
9882 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9883 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9884 else
9885 echo "$as_me:$LINENO: result: no" >&5
9886 echo "${ECHO_T}no" >&6
9887 fi
9888
9889 RANLIB=$ac_ct_RANLIB
9890 else
9891 RANLIB="$ac_cv_prog_RANLIB"
9892 fi
9893
9894 if test -n "$ac_tool_prefix"; then
9895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9896 set dummy ${ac_tool_prefix}strip; ac_word=$2
9897 echo "$as_me:$LINENO: checking for $ac_word" >&5
9898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9899 if test "${ac_cv_prog_STRIP+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902 if test -n "$STRIP"; then
9903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9904 else
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906 for as_dir in $PATH
9907 do
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9914 break 2
9915 fi
9916 done
9917 done
9918
9919 fi
9920 fi
9921 STRIP=$ac_cv_prog_STRIP
9922 if test -n "$STRIP"; then
9923 echo "$as_me:$LINENO: result: $STRIP" >&5
9924 echo "${ECHO_T}$STRIP" >&6
9925 else
9926 echo "$as_me:$LINENO: result: no" >&5
9927 echo "${ECHO_T}no" >&6
9928 fi
9929
9930 fi
9931 if test -z "$ac_cv_prog_STRIP"; then
9932 ac_ct_STRIP=$STRIP
9933 # Extract the first word of "strip", so it can be a program name with args.
9934 set dummy strip; ac_word=$2
9935 echo "$as_me:$LINENO: checking for $ac_word" >&5
9936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9937 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940 if test -n "$ac_ct_STRIP"; then
9941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9942 else
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 for as_dir in $PATH
9945 do
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9950 ac_cv_prog_ac_ct_STRIP="strip"
9951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9953 fi
9954 done
9955 done
9956
9957 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9958 fi
9959 fi
9960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9961 if test -n "$ac_ct_STRIP"; then
9962 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9963 echo "${ECHO_T}$ac_ct_STRIP" >&6
9964 else
9965 echo "$as_me:$LINENO: result: no" >&5
9966 echo "${ECHO_T}no" >&6
9967 fi
9968
9969 STRIP=$ac_ct_STRIP
9970 else
9971 STRIP="$ac_cv_prog_STRIP"
9972 fi
9973
9974
9975 old_CC="$CC"
9976 old_CFLAGS="$CFLAGS"
9977
9978 # Set sane defaults for various variables
9979 test -z "$AR" && AR=ar
9980 test -z "$AR_FLAGS" && AR_FLAGS=cru
9981 test -z "$AS" && AS=as
9982 test -z "$CC" && CC=cc
9983 test -z "$LTCC" && LTCC=$CC
9984 test -z "$DLLTOOL" && DLLTOOL=dlltool
9985 test -z "$LD" && LD=ld
9986 test -z "$LN_S" && LN_S="ln -s"
9987 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9988 test -z "$NM" && NM=nm
9989 test -z "$SED" && SED=sed
9990 test -z "$OBJDUMP" && OBJDUMP=objdump
9991 test -z "$RANLIB" && RANLIB=:
9992 test -z "$STRIP" && STRIP=:
9993 test -z "$ac_objext" && ac_objext=o
9994
9995 # Determine commands to create old-style static archives.
9996 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9997 old_postinstall_cmds='chmod 644 $oldlib'
9998 old_postuninstall_cmds=
9999
10000 if test -n "$RANLIB"; then
10001 case $host_os in
10002 openbsd*)
10003 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
10004 ;;
10005 *)
10006 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
10007 ;;
10008 esac
10009 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10010 fi
10011
10012 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10013
10014 # Only perform the check for file, if the check method requires it
10015 case $deplibs_check_method in
10016 file_magic*)
10017 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10018 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10019 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
10020 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 case $MAGIC_CMD in
10024 [\\/*] | ?:[\\/]*)
10025 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10026 ;;
10027 *)
10028 lt_save_MAGIC_CMD="$MAGIC_CMD"
10029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10030 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10031 for ac_dir in $ac_dummy; do
10032 IFS="$lt_save_ifs"
10033 test -z "$ac_dir" && ac_dir=.
10034 if test -f $ac_dir/${ac_tool_prefix}file; then
10035 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10036 if test -n "$file_magic_test_file"; then
10037 case $deplibs_check_method in
10038 "file_magic "*)
10039 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10042 $EGREP "$file_magic_regex" > /dev/null; then
10043 :
10044 else
10045 cat <<EOF 1>&2
10046
10047 *** Warning: the command libtool uses to detect shared libraries,
10048 *** $file_magic_cmd, produces output that libtool cannot recognize.
10049 *** The result is that libtool may fail to recognize shared libraries
10050 *** as such. This will affect the creation of libtool libraries that
10051 *** depend on shared libraries, but programs linked with such libtool
10052 *** libraries will work regardless of this problem. Nevertheless, you
10053 *** may want to report the problem to your system manager and/or to
10054 *** bug-libtool@gnu.org
10055
10056 EOF
10057 fi ;;
10058 esac
10059 fi
10060 break
10061 fi
10062 done
10063 IFS="$lt_save_ifs"
10064 MAGIC_CMD="$lt_save_MAGIC_CMD"
10065 ;;
10066 esac
10067 fi
10068
10069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10070 if test -n "$MAGIC_CMD"; then
10071 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10072 echo "${ECHO_T}$MAGIC_CMD" >&6
10073 else
10074 echo "$as_me:$LINENO: result: no" >&5
10075 echo "${ECHO_T}no" >&6
10076 fi
10077
10078 if test -z "$lt_cv_path_MAGIC_CMD"; then
10079 if test -n "$ac_tool_prefix"; then
10080 echo "$as_me:$LINENO: checking for file" >&5
10081 echo $ECHO_N "checking for file... $ECHO_C" >&6
10082 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085 case $MAGIC_CMD in
10086 [\\/*] | ?:[\\/]*)
10087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10088 ;;
10089 *)
10090 lt_save_MAGIC_CMD="$MAGIC_CMD"
10091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10093 for ac_dir in $ac_dummy; do
10094 IFS="$lt_save_ifs"
10095 test -z "$ac_dir" && ac_dir=.
10096 if test -f $ac_dir/file; then
10097 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10098 if test -n "$file_magic_test_file"; then
10099 case $deplibs_check_method in
10100 "file_magic "*)
10101 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10104 $EGREP "$file_magic_regex" > /dev/null; then
10105 :
10106 else
10107 cat <<EOF 1>&2
10108
10109 *** Warning: the command libtool uses to detect shared libraries,
10110 *** $file_magic_cmd, produces output that libtool cannot recognize.
10111 *** The result is that libtool may fail to recognize shared libraries
10112 *** as such. This will affect the creation of libtool libraries that
10113 *** depend on shared libraries, but programs linked with such libtool
10114 *** libraries will work regardless of this problem. Nevertheless, you
10115 *** may want to report the problem to your system manager and/or to
10116 *** bug-libtool@gnu.org
10117
10118 EOF
10119 fi ;;
10120 esac
10121 fi
10122 break
10123 fi
10124 done
10125 IFS="$lt_save_ifs"
10126 MAGIC_CMD="$lt_save_MAGIC_CMD"
10127 ;;
10128 esac
10129 fi
10130
10131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10132 if test -n "$MAGIC_CMD"; then
10133 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10134 echo "${ECHO_T}$MAGIC_CMD" >&6
10135 else
10136 echo "$as_me:$LINENO: result: no" >&5
10137 echo "${ECHO_T}no" >&6
10138 fi
10139
10140 else
10141 MAGIC_CMD=:
10142 fi
10143 fi
10144
10145 fi
10146 ;;
10147 esac
10148
10149 enable_dlopen=no
10150 enable_win32_dll=no
10151
10152 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10153 if test "${enable_libtool_lock+set}" = set; then
10154 enableval="$enable_libtool_lock"
10155
10156 fi;
10157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10158
10159
10160 # Check whether --with-pic or --without-pic was given.
10161 if test "${with_pic+set}" = set; then
10162 withval="$with_pic"
10163 pic_mode="$withval"
10164 else
10165 pic_mode=default
10166 fi;
10167 test -z "$pic_mode" && pic_mode=default
10168
10169 # Use C for the default configuration in the libtool script
10170 tagname=
10171 lt_save_CC="$CC"
10172 ac_ext=c
10173 ac_cpp='$CPP $CPPFLAGS'
10174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177
10178
10179 # Source file extension for C test sources.
10180 ac_ext=c
10181
10182 # Object file extension for compiled C test sources.
10183 objext=o
10184 objext=$objext
10185
10186 # Code to be used in simple compile tests
10187 lt_simple_compile_test_code="int some_variable = 0;\n"
10188
10189 # Code to be used in simple link tests
10190 lt_simple_link_test_code='int main(){return(0);}\n'
10191
10192
10193 # If no C compiler was specified, use CC.
10194 LTCC=${LTCC-"$CC"}
10195
10196 # Allow CC to be a program name with arguments.
10197 compiler=$CC
10198
10199
10200 #
10201 # Check for any special shared library compilation flags.
10202 #
10203 lt_prog_cc_shlib=
10204 if test "$GCC" = no; then
10205 case $host_os in
10206 sco3.2v5*)
10207 lt_prog_cc_shlib='-belf'
10208 ;;
10209 esac
10210 fi
10211 if test -n "$lt_prog_cc_shlib"; then
10212 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
10213 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
10214 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
10215 else
10216 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
10217 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
10218 lt_cv_prog_cc_can_build_shared=no
10219 fi
10220 fi
10221
10222
10223 #
10224 # Check to make sure the static flag actually works.
10225 #
10226 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
10227 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
10228 if test "${lt_prog_compiler_static_works+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 lt_prog_compiler_static_works=no
10232 save_LDFLAGS="$LDFLAGS"
10233 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
10234 printf "$lt_simple_link_test_code" > conftest.$ac_ext
10235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10236 # The compiler can only warn and ignore the option if not recognized
10237 # So say no if there are warnings
10238 if test -s conftest.err; then
10239 # Append any errors to the config.log.
10240 cat conftest.err 1>&5
10241 else
10242 lt_prog_compiler_static_works=yes
10243 fi
10244 fi
10245 $rm conftest*
10246 LDFLAGS="$save_LDFLAGS"
10247
10248 fi
10249 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10250 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10251
10252 if test x"$lt_prog_compiler_static_works" = xyes; then
10253 :
10254 else
10255 lt_prog_compiler_static=
10256 fi
10257
10258
10259
10260
10261 lt_prog_compiler_no_builtin_flag=
10262
10263 if test "$GCC" = yes; then
10264 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10265
10266
10267 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10268 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
10269 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272 lt_cv_prog_compiler_rtti_exceptions=no
10273 ac_outfile=conftest.$ac_objext
10274 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10275 lt_compiler_flag="-fno-rtti -fno-exceptions"
10276 # Insert the option either (1) after the last *FLAGS variable, or
10277 # (2) before a word containing "conftest.", or (3) at the end.
10278 # Note that $ac_compile itself does not contain backslashes and begins
10279 # with a dollar sign (not a hyphen), so the echo should work correctly.
10280 # The option is referenced via a variable to avoid confusing sed.
10281 lt_compile=`echo "$ac_compile" | $SED \
10282 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10284 -e 's:$: $lt_compiler_flag:'`
10285 (eval echo "\"\$as_me:10285: $lt_compile\"" >&5)
10286 (eval "$lt_compile" 2>conftest.err)
10287 ac_status=$?
10288 cat conftest.err >&5
10289 echo "$as_me:10289: \$? = $ac_status" >&5
10290 if (exit $ac_status) && test -s "$ac_outfile"; then
10291 # The compiler can only warn and ignore the option if not recognized
10292 # So say no if there are warnings
10293 if test ! -s conftest.err; then
10294 lt_cv_prog_compiler_rtti_exceptions=yes
10295 fi
10296 fi
10297 $rm conftest*
10298
10299 fi
10300 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10301 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
10302
10303 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10304 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10305 else
10306 :
10307 fi
10308
10309 fi
10310
10311 lt_prog_compiler_wl=
10312 lt_prog_compiler_pic=
10313 lt_prog_compiler_static=
10314
10315 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10316 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10317
10318 if test "$GCC" = yes; then
10319 lt_prog_compiler_wl='-Wl,'
10320 lt_prog_compiler_static='-static'
10321
10322 case $host_os in
10323 aix*)
10324 # All AIX code is PIC.
10325 if test "$host_cpu" = ia64; then
10326 # AIX 5 now supports IA64 processor
10327 lt_prog_compiler_static='-Bstatic'
10328 fi
10329 ;;
10330
10331 amigaos*)
10332 # FIXME: we need at least 68020 code to build shared libraries, but
10333 # adding the `-m68020' flag to GCC prevents building anything better,
10334 # like `-m68040'.
10335 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10336 ;;
10337
10338 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10339 # PIC is the default for these OSes.
10340 ;;
10341
10342 mingw* | pw32* | os2*)
10343 # This hack is so that the source file can tell whether it is being
10344 # built for inclusion in a dll (and should export symbols for example).
10345 lt_prog_compiler_pic='-DDLL_EXPORT'
10346 ;;
10347
10348 darwin* | rhapsody*)
10349 # PIC is the default on this platform
10350 # Common symbols not allowed in MH_DYLIB files
10351 lt_prog_compiler_pic='-fno-common'
10352 ;;
10353
10354 msdosdjgpp*)
10355 # Just because we use GCC doesn't mean we suddenly get shared libraries
10356 # on systems that don't support them.
10357 lt_prog_compiler_can_build_shared=no
10358 enable_shared=no
10359 ;;
10360
10361 sysv4*MP*)
10362 if test -d /usr/nec; then
10363 lt_prog_compiler_pic=-Kconform_pic
10364 fi
10365 ;;
10366
10367 hpux*)
10368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10369 # not for PA HP-UX.
10370 case "$host_cpu" in
10371 hppa*64*|ia64*)
10372 # +Z the default
10373 ;;
10374 *)
10375 lt_prog_compiler_pic='-fPIC'
10376 ;;
10377 esac
10378 ;;
10379
10380 *)
10381 lt_prog_compiler_pic='-fPIC'
10382 ;;
10383 esac
10384 else
10385 # PORTME Check for flag to pass linker flags through the system compiler.
10386 case $host_os in
10387 aix*)
10388 lt_prog_compiler_wl='-Wl,'
10389 if test "$host_cpu" = ia64; then
10390 # AIX 5 now supports IA64 processor
10391 lt_prog_compiler_static='-Bstatic'
10392 else
10393 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10394 fi
10395 ;;
10396 darwin*)
10397 # PIC is the default on this platform
10398 # Common symbols not allowed in MH_DYLIB files
10399 case "$cc_basename" in
10400 xlc*)
10401 lt_prog_compiler_pic='-qnocommon'
10402 lt_prog_compiler_wl='-Wl,'
10403 ;;
10404 esac
10405 ;;
10406
10407 mingw* | pw32* | os2*)
10408 # This hack is so that the source file can tell whether it is being
10409 # built for inclusion in a dll (and should export symbols for example).
10410 lt_prog_compiler_pic='-DDLL_EXPORT'
10411 ;;
10412
10413 hpux9* | hpux10* | hpux11*)
10414 lt_prog_compiler_wl='-Wl,'
10415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10416 # not for PA HP-UX.
10417 case "$host_cpu" in
10418 hppa*64*|ia64*)
10419 # +Z the default
10420 ;;
10421 *)
10422 lt_prog_compiler_pic='+Z'
10423 ;;
10424 esac
10425 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10426 lt_prog_compiler_static='${wl}-a ${wl}archive'
10427 ;;
10428
10429 irix5* | irix6* | nonstopux*)
10430 lt_prog_compiler_wl='-Wl,'
10431 # PIC (with -KPIC) is the default.
10432 lt_prog_compiler_static='-non_shared'
10433 ;;
10434
10435 newsos6)
10436 lt_prog_compiler_pic='-KPIC'
10437 lt_prog_compiler_static='-Bstatic'
10438 ;;
10439
10440 linux*)
10441 case $CC in
10442 icc* | ecc*)
10443 lt_prog_compiler_wl='-Wl,'
10444 lt_prog_compiler_pic='-KPIC'
10445 lt_prog_compiler_static='-static'
10446 ;;
10447 ccc*)
10448 lt_prog_compiler_wl='-Wl,'
10449 # All Alpha code is PIC.
10450 lt_prog_compiler_static='-non_shared'
10451 ;;
10452 esac
10453 ;;
10454
10455 osf3* | osf4* | osf5*)
10456 lt_prog_compiler_wl='-Wl,'
10457 # All OSF/1 code is PIC.
10458 lt_prog_compiler_static='-non_shared'
10459 ;;
10460
10461 sco3.2v5*)
10462 lt_prog_compiler_pic='-Kpic'
10463 lt_prog_compiler_static='-dn'
10464 ;;
10465
10466 solaris*)
10467 lt_prog_compiler_wl='-Wl,'
10468 lt_prog_compiler_pic='-KPIC'
10469 lt_prog_compiler_static='-Bstatic'
10470 ;;
10471
10472 sunos4*)
10473 lt_prog_compiler_wl='-Qoption ld '
10474 lt_prog_compiler_pic='-PIC'
10475 lt_prog_compiler_static='-Bstatic'
10476 ;;
10477
10478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10479 lt_prog_compiler_wl='-Wl,'
10480 lt_prog_compiler_pic='-KPIC'
10481 lt_prog_compiler_static='-Bstatic'
10482 ;;
10483
10484 sysv4*MP*)
10485 if test -d /usr/nec ;then
10486 lt_prog_compiler_pic='-Kconform_pic'
10487 lt_prog_compiler_static='-Bstatic'
10488 fi
10489 ;;
10490
10491 uts4*)
10492 lt_prog_compiler_pic='-pic'
10493 lt_prog_compiler_static='-Bstatic'
10494 ;;
10495
10496 *)
10497 lt_prog_compiler_can_build_shared=no
10498 ;;
10499 esac
10500 fi
10501
10502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10503 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10504
10505 #
10506 # Check to make sure the PIC flag actually works.
10507 #
10508 if test -n "$lt_prog_compiler_pic"; then
10509
10510 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10511 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10512 if test "${lt_prog_compiler_pic_works+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 else
10515 lt_prog_compiler_pic_works=no
10516 ac_outfile=conftest.$ac_objext
10517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10518 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10519 # Insert the option either (1) after the last *FLAGS variable, or
10520 # (2) before a word containing "conftest.", or (3) at the end.
10521 # Note that $ac_compile itself does not contain backslashes and begins
10522 # with a dollar sign (not a hyphen), so the echo should work correctly.
10523 # The option is referenced via a variable to avoid confusing sed.
10524 lt_compile=`echo "$ac_compile" | $SED \
10525 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10527 -e 's:$: $lt_compiler_flag:'`
10528 (eval echo "\"\$as_me:10528: $lt_compile\"" >&5)
10529 (eval "$lt_compile" 2>conftest.err)
10530 ac_status=$?
10531 cat conftest.err >&5
10532 echo "$as_me:10532: \$? = $ac_status" >&5
10533 if (exit $ac_status) && test -s "$ac_outfile"; then
10534 # The compiler can only warn and ignore the option if not recognized
10535 # So say no if there are warnings
10536 if test ! -s conftest.err; then
10537 lt_prog_compiler_pic_works=yes
10538 fi
10539 fi
10540 $rm conftest*
10541
10542 fi
10543 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10544 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10545
10546 if test x"$lt_prog_compiler_pic_works" = xyes; then
10547 case $lt_prog_compiler_pic in
10548 "" | " "*) ;;
10549 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10550 esac
10551 else
10552 lt_prog_compiler_pic=
10553 lt_prog_compiler_can_build_shared=no
10554 fi
10555
10556 fi
10557 case "$host_os" in
10558 # For platforms which do not support PIC, -DPIC is meaningless:
10559 *djgpp*)
10560 lt_prog_compiler_pic=
10561 ;;
10562 *)
10563 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10564 ;;
10565 esac
10566
10567 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10568 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10569 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572 lt_cv_prog_compiler_c_o=no
10573 $rm -r conftest 2>/dev/null
10574 mkdir conftest
10575 cd conftest
10576 mkdir out
10577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10578
10579 lt_compiler_flag="-o out/conftest2.$ac_objext"
10580 # Insert the option either (1) after the last *FLAGS variable, or
10581 # (2) before a word containing "conftest.", or (3) at the end.
10582 # Note that $ac_compile itself does not contain backslashes and begins
10583 # with a dollar sign (not a hyphen), so the echo should work correctly.
10584 lt_compile=`echo "$ac_compile" | $SED \
10585 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10587 -e 's:$: $lt_compiler_flag:'`
10588 (eval echo "\"\$as_me:10588: $lt_compile\"" >&5)
10589 (eval "$lt_compile" 2>out/conftest.err)
10590 ac_status=$?
10591 cat out/conftest.err >&5
10592 echo "$as_me:10592: \$? = $ac_status" >&5
10593 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10594 then
10595 # The compiler can only warn and ignore the option if not recognized
10596 # So say no if there are warnings
10597 if test ! -s out/conftest.err; then
10598 lt_cv_prog_compiler_c_o=yes
10599 fi
10600 fi
10601 chmod u+w .
10602 $rm conftest*
10603 # SGI C++ compiler will create directory out/ii_files/ for
10604 # template instantiation
10605 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10606 $rm out/* && rmdir out
10607 cd ..
10608 rmdir conftest
10609 $rm conftest*
10610
10611 fi
10612 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10613 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10614
10615
10616 hard_links="nottested"
10617 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10618 # do not overwrite the value of need_locks provided by the user
10619 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10620 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10621 hard_links=yes
10622 $rm conftest*
10623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10624 touch conftest.a
10625 ln conftest.a conftest.b 2>&5 || hard_links=no
10626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10627 echo "$as_me:$LINENO: result: $hard_links" >&5
10628 echo "${ECHO_T}$hard_links" >&6
10629 if test "$hard_links" = no; then
10630 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10631 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10632 need_locks=warn
10633 fi
10634 else
10635 need_locks=no
10636 fi
10637
10638 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10639 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10640
10641 runpath_var=
10642 allow_undefined_flag=
10643 enable_shared_with_static_runtimes=no
10644 archive_cmds=
10645 archive_expsym_cmds=
10646 old_archive_From_new_cmds=
10647 old_archive_from_expsyms_cmds=
10648 export_dynamic_flag_spec=
10649 whole_archive_flag_spec=
10650 thread_safe_flag_spec=
10651 hardcode_libdir_flag_spec=
10652 hardcode_libdir_flag_spec_ld=
10653 hardcode_libdir_separator=
10654 hardcode_direct=no
10655 hardcode_minus_L=no
10656 hardcode_shlibpath_var=unsupported
10657 link_all_deplibs=unknown
10658 hardcode_automatic=no
10659 module_cmds=
10660 module_expsym_cmds=
10661 always_export_symbols=no
10662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10663 # include_expsyms should be a list of space-separated symbols to be *always*
10664 # included in the symbol list
10665 include_expsyms=
10666 # exclude_expsyms can be an extended regexp of symbols to exclude
10667 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10669 # as well as any symbol that contains `d'.
10670 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10672 # platforms (ab)use it in PIC code, but their linkers get confused if
10673 # the symbol is explicitly referenced. Since portable code cannot
10674 # rely on this symbol name, it's probably fine to never include it in
10675 # preloaded symbol tables.
10676 extract_expsyms_cmds=
10677
10678 case $host_os in
10679 cygwin* | mingw* | pw32*)
10680 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10681 # When not using gcc, we currently assume that we are using
10682 # Microsoft Visual C++.
10683 if test "$GCC" != yes; then
10684 with_gnu_ld=no
10685 fi
10686 ;;
10687 openbsd*)
10688 with_gnu_ld=no
10689 ;;
10690 esac
10691
10692 ld_shlibs=yes
10693 if test "$with_gnu_ld" = yes; then
10694 # If archive_cmds runs LD, not CC, wlarc should be empty
10695 wlarc='${wl}'
10696
10697 # See if GNU ld supports shared libraries.
10698 case $host_os in
10699 aix3* | aix4* | aix5*)
10700 # On AIX/PPC, the GNU linker is very broken
10701 if test "$host_cpu" != ia64; then
10702 ld_shlibs=no
10703 cat <<EOF 1>&2
10704
10705 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10706 *** to be unable to reliably create shared libraries on AIX.
10707 *** Therefore, libtool is disabling shared libraries support. If you
10708 *** really care for shared libraries, you may want to modify your PATH
10709 *** so that a non-GNU linker is found, and then restart.
10710
10711 EOF
10712 fi
10713 ;;
10714
10715 amigaos*)
10716 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)'
10717 hardcode_libdir_flag_spec='-L$libdir'
10718 hardcode_minus_L=yes
10719
10720 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10721 # that the semantics of dynamic libraries on AmigaOS, at least up
10722 # to version 4, is to share data among multiple programs linked
10723 # with the same dynamic library. Since this doesn't match the
10724 # behavior of shared libraries on other platforms, we can't use
10725 # them.
10726 ld_shlibs=no
10727 ;;
10728
10729 beos*)
10730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10731 allow_undefined_flag=unsupported
10732 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10733 # support --undefined. This deserves some investigation. FIXME
10734 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10735 else
10736 ld_shlibs=no
10737 fi
10738 ;;
10739
10740 cygwin* | mingw* | pw32*)
10741 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10742 # as there is no search path for DLLs.
10743 hardcode_libdir_flag_spec='-L$libdir'
10744 allow_undefined_flag=unsupported
10745 always_export_symbols=no
10746 enable_shared_with_static_runtimes=yes
10747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10748
10749 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10751 # If the export-symbols file already is a .def file (1st line
10752 # is EXPORTS), use it as is; otherwise, prepend...
10753 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10754 cp $export_symbols $output_objdir/$soname.def;
10755 else
10756 echo EXPORTS > $output_objdir/$soname.def;
10757 cat $export_symbols >> $output_objdir/$soname.def;
10758 fi~
10759 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10760 else
10761 ld_shlibs=no
10762 fi
10763 ;;
10764
10765 netbsd*)
10766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10768 wlarc=
10769 else
10770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10772 fi
10773 ;;
10774
10775 solaris* | sysv5*)
10776 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10777 ld_shlibs=no
10778 cat <<EOF 1>&2
10779
10780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10781 *** create shared libraries on Solaris systems. Therefore, libtool
10782 *** is disabling shared libraries support. We urge you to upgrade GNU
10783 *** binutils to release 2.9.1 or newer. Another option is to modify
10784 *** your PATH or compiler configuration so that the native linker is
10785 *** used, and then restart.
10786
10787 EOF
10788 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10791 else
10792 ld_shlibs=no
10793 fi
10794 ;;
10795
10796 sunos4*)
10797 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10798 wlarc=
10799 hardcode_direct=yes
10800 hardcode_shlibpath_var=no
10801 ;;
10802
10803 linux*)
10804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10805 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10806 archive_cmds="$tmp_archive_cmds"
10807 supports_anon_versioning=no
10808 case `$LD -v 2>/dev/null` in
10809 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10810 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10811 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10812 *\ 2.11.*) ;; # other 2.11 versions
10813 *) supports_anon_versioning=yes ;;
10814 esac
10815 if test $supports_anon_versioning = yes; then
10816 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10818 $echo "local: *; };" >> $output_objdir/$libname.ver~
10819 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10820 else
10821 archive_expsym_cmds="$tmp_archive_cmds"
10822 fi
10823 else
10824 ld_shlibs=no
10825 fi
10826 ;;
10827
10828 *)
10829 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10832 else
10833 ld_shlibs=no
10834 fi
10835 ;;
10836 esac
10837
10838 if test "$ld_shlibs" = yes; then
10839 runpath_var=LD_RUN_PATH
10840 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10841 export_dynamic_flag_spec='${wl}--export-dynamic'
10842 # ancient GNU ld didn't support --whole-archive et. al.
10843 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10844 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10845 else
10846 whole_archive_flag_spec=
10847 fi
10848 fi
10849 else
10850 # PORTME fill in a description of your system's linker (not GNU ld)
10851 case $host_os in
10852 aix3*)
10853 allow_undefined_flag=unsupported
10854 always_export_symbols=yes
10855 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'
10856 # Note: this linker hardcodes the directories in LIBPATH if there
10857 # are no directories specified by -L.
10858 hardcode_minus_L=yes
10859 if test "$GCC" = yes && test -z "$link_static_flag"; then
10860 # Neither direct hardcoding nor static linking is supported with a
10861 # broken collect2.
10862 hardcode_direct=unsupported
10863 fi
10864 ;;
10865
10866 aix4* | aix5*)
10867 if test "$host_cpu" = ia64; then
10868 # On IA64, the linker does run time linking by default, so we don't
10869 # have to do anything special.
10870 aix_use_runtimelinking=no
10871 exp_sym_flag='-Bexport'
10872 no_entry_flag=""
10873 else
10874 # If we're using GNU nm, then we don't want the "-C" option.
10875 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10876 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10877 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10878 else
10879 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10880 fi
10881 aix_use_runtimelinking=no
10882
10883 # Test if we are trying to use run time linking or normal
10884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10885 # need to do runtime linking.
10886 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10887 for ld_flag in $LDFLAGS; do
10888 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10889 aix_use_runtimelinking=yes
10890 break
10891 fi
10892 done
10893 esac
10894
10895 exp_sym_flag='-bexport'
10896 no_entry_flag='-bnoentry'
10897 fi
10898
10899 # When large executables or shared objects are built, AIX ld can
10900 # have problems creating the table of contents. If linking a library
10901 # or program results in "error TOC overflow" add -mminimal-toc to
10902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10904
10905 archive_cmds=''
10906 hardcode_direct=yes
10907 hardcode_libdir_separator=':'
10908 link_all_deplibs=yes
10909
10910 if test "$GCC" = yes; then
10911 case $host_os in aix4.012|aix4.012.*)
10912 # We only want to do this on AIX 4.2 and lower, the check
10913 # below for broken collect2 doesn't work under 4.3+
10914 collect2name=`${CC} -print-prog-name=collect2`
10915 if test -f "$collect2name" && \
10916 strings "$collect2name" | grep resolve_lib_name >/dev/null
10917 then
10918 # We have reworked collect2
10919 hardcode_direct=yes
10920 else
10921 # We have old collect2
10922 hardcode_direct=unsupported
10923 # It fails to find uninstalled libraries when the uninstalled
10924 # path is not listed in the libpath. Setting hardcode_minus_L
10925 # to unsupported forces relinking
10926 hardcode_minus_L=yes
10927 hardcode_libdir_flag_spec='-L$libdir'
10928 hardcode_libdir_separator=
10929 fi
10930 esac
10931 shared_flag='-shared'
10932 else
10933 # not using gcc
10934 if test "$host_cpu" = ia64; then
10935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10936 # chokes on -Wl,-G. The following line is correct:
10937 shared_flag='-G'
10938 else
10939 if test "$aix_use_runtimelinking" = yes; then
10940 shared_flag='${wl}-G'
10941 else
10942 shared_flag='${wl}-bM:SRE'
10943 fi
10944 fi
10945 fi
10946
10947 # It seems that -bexpall does not export symbols beginning with
10948 # underscore (_), so it is better to generate a list of symbols to export.
10949 always_export_symbols=yes
10950 if test "$aix_use_runtimelinking" = yes; then
10951 # Warning - without using the other runtime loading flags (-brtl),
10952 # -berok will link without error, but may produce a broken library.
10953 allow_undefined_flag='-berok'
10954 # Determine the default libpath from the value encoded in an empty executable.
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961
10962 int
10963 main ()
10964 {
10965
10966 ;
10967 return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>conftest.er1
10973 ac_status=$?
10974 grep -v '^ *+' conftest.er1 >conftest.err
10975 rm -f conftest.er1
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -z "$ac_c_werror_flag"
10980 || test ! -s conftest.err'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest$ac_exeext'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992
10993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10994 }'`
10995 # Check for a 64-bit object if we didn't find anything.
10996 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10997 }'`; fi
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11001
11002 fi
11003 rm -f conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11006
11007 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11008 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11009 else
11010 if test "$host_cpu" = ia64; then
11011 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11012 allow_undefined_flag="-z nodefs"
11013 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11014 else
11015 # Determine the default libpath from the value encoded in an empty executable.
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h. */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022
11023 int
11024 main ()
11025 {
11026
11027 ;
11028 return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11033 (eval $ac_link) 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -z "$ac_c_werror_flag"
11041 || test ! -s conftest.err'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest$ac_exeext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053
11054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11055 }'`
11056 # Check for a 64-bit object if we didn't find anything.
11057 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11058 }'`; fi
11059 else
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063 fi
11064 rm -f conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11067
11068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11069 # Warning - without using the other run time loading flags,
11070 # -berok will link without error, but may produce a broken library.
11071 no_undefined_flag=' ${wl}-bernotok'
11072 allow_undefined_flag=' ${wl}-berok'
11073 # -bexpall does not export symbols beginning with underscore (_)
11074 always_export_symbols=yes
11075 # Exported symbols can be pulled into shared objects from archives
11076 whole_archive_flag_spec=' '
11077 archive_cmds_need_lc=yes
11078 # This is similar to how AIX traditionally builds it's shared libraries.
11079 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11080 fi
11081 fi
11082 ;;
11083
11084 amigaos*)
11085 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)'
11086 hardcode_libdir_flag_spec='-L$libdir'
11087 hardcode_minus_L=yes
11088 # see comment about different semantics on the GNU ld section
11089 ld_shlibs=no
11090 ;;
11091
11092 bsdi[45]*)
11093 export_dynamic_flag_spec=-rdynamic
11094 ;;
11095
11096 cygwin* | mingw* | pw32*)
11097 # When not using gcc, we currently assume that we are using
11098 # Microsoft Visual C++.
11099 # hardcode_libdir_flag_spec is actually meaningless, as there is
11100 # no search path for DLLs.
11101 hardcode_libdir_flag_spec=' '
11102 allow_undefined_flag=unsupported
11103 # Tell ltmain to make .lib files, not .a files.
11104 libext=lib
11105 # Tell ltmain to make .dll files, not .so files.
11106 shrext_cmds=".dll"
11107 # FIXME: Setting linknames here is a bad hack.
11108 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11109 # The linker will automatically build a .lib file if we build a DLL.
11110 old_archive_From_new_cmds='true'
11111 # FIXME: Should let the user specify the lib program.
11112 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
11113 fix_srcfile_path='`cygpath -w "$srcfile"`'
11114 enable_shared_with_static_runtimes=yes
11115 ;;
11116
11117 darwin* | rhapsody*)
11118 case "$host_os" in
11119 rhapsody* | darwin1.[012])
11120 allow_undefined_flag='${wl}-undefined ${wl}suppress'
11121 ;;
11122 *) # Darwin 1.3 on
11123 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11124 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11125 else
11126 case ${MACOSX_DEPLOYMENT_TARGET} in
11127 10.[012])
11128 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11129 ;;
11130 10.*)
11131 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11132 ;;
11133 esac
11134 fi
11135 ;;
11136 esac
11137 archive_cmds_need_lc=no
11138 hardcode_direct=no
11139 hardcode_automatic=yes
11140 hardcode_shlibpath_var=unsupported
11141 whole_archive_flag_spec=''
11142 link_all_deplibs=yes
11143 if test "$GCC" = yes ; then
11144 output_verbose_link_cmd='echo'
11145 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11146 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11148 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11149 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11150 else
11151 case "$cc_basename" in
11152 xlc*)
11153 output_verbose_link_cmd='echo'
11154 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11155 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11157 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11158 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11159 ;;
11160 *)
11161 ld_shlibs=no
11162 ;;
11163 esac
11164 fi
11165 ;;
11166
11167 dgux*)
11168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11169 hardcode_libdir_flag_spec='-L$libdir'
11170 hardcode_shlibpath_var=no
11171 ;;
11172
11173 freebsd1*)
11174 ld_shlibs=no
11175 ;;
11176
11177 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11178 # support. Future versions do this automatically, but an explicit c++rt0.o
11179 # does not break anything, and helps significantly (at the cost of a little
11180 # extra space).
11181 freebsd2.2*)
11182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11183 hardcode_libdir_flag_spec='-R$libdir'
11184 hardcode_direct=yes
11185 hardcode_shlibpath_var=no
11186 ;;
11187
11188 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11189 freebsd2*)
11190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11191 hardcode_direct=yes
11192 hardcode_minus_L=yes
11193 hardcode_shlibpath_var=no
11194 ;;
11195
11196 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11197 freebsd* | kfreebsd*-gnu)
11198 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11199 hardcode_libdir_flag_spec='-R$libdir'
11200 hardcode_direct=yes
11201 hardcode_shlibpath_var=no
11202 ;;
11203
11204 hpux9*)
11205 if test "$GCC" = yes; then
11206 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11207 else
11208 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'
11209 fi
11210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11211 hardcode_libdir_separator=:
11212 hardcode_direct=yes
11213
11214 # hardcode_minus_L: Not really in the search PATH,
11215 # but as the default location of the library.
11216 hardcode_minus_L=yes
11217 export_dynamic_flag_spec='${wl}-E'
11218 ;;
11219
11220 hpux10* | hpux11*)
11221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11222 case "$host_cpu" in
11223 hppa*64*|ia64*)
11224 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11225 ;;
11226 *)
11227 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11228 ;;
11229 esac
11230 else
11231 case "$host_cpu" in
11232 hppa*64*|ia64*)
11233 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11234 ;;
11235 *)
11236 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11237 ;;
11238 esac
11239 fi
11240 if test "$with_gnu_ld" = no; then
11241 case "$host_cpu" in
11242 hppa*64*)
11243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11244 hardcode_libdir_flag_spec_ld='+b $libdir'
11245 hardcode_libdir_separator=:
11246 hardcode_direct=no
11247 hardcode_shlibpath_var=no
11248 ;;
11249 ia64*)
11250 hardcode_libdir_flag_spec='-L$libdir'
11251 hardcode_direct=no
11252 hardcode_shlibpath_var=no
11253
11254 # hardcode_minus_L: Not really in the search PATH,
11255 # but as the default location of the library.
11256 hardcode_minus_L=yes
11257 ;;
11258 *)
11259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11260 hardcode_libdir_separator=:
11261 hardcode_direct=yes
11262 export_dynamic_flag_spec='${wl}-E'
11263
11264 # hardcode_minus_L: Not really in the search PATH,
11265 # but as the default location of the library.
11266 hardcode_minus_L=yes
11267 ;;
11268 esac
11269 fi
11270 ;;
11271
11272 irix5* | irix6* | nonstopux*)
11273 if test "$GCC" = yes; then
11274 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'
11275 else
11276 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'
11277 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11278 fi
11279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11280 hardcode_libdir_separator=:
11281 link_all_deplibs=yes
11282 ;;
11283
11284 netbsd*)
11285 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11286 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11287 else
11288 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11289 fi
11290 hardcode_libdir_flag_spec='-R$libdir'
11291 hardcode_direct=yes
11292 hardcode_shlibpath_var=no
11293 ;;
11294
11295 newsos6)
11296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11297 hardcode_direct=yes
11298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11299 hardcode_libdir_separator=:
11300 hardcode_shlibpath_var=no
11301 ;;
11302
11303 openbsd*)
11304 hardcode_direct=yes
11305 hardcode_shlibpath_var=no
11306 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11308 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11310 export_dynamic_flag_spec='${wl}-E'
11311 else
11312 case $host_os in
11313 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11315 hardcode_libdir_flag_spec='-R$libdir'
11316 ;;
11317 *)
11318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11319 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11320 ;;
11321 esac
11322 fi
11323 ;;
11324
11325 os2*)
11326 hardcode_libdir_flag_spec='-L$libdir'
11327 hardcode_minus_L=yes
11328 allow_undefined_flag=unsupported
11329 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'
11330 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11331 ;;
11332
11333 osf3*)
11334 if test "$GCC" = yes; then
11335 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11336 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'
11337 else
11338 allow_undefined_flag=' -expect_unresolved \*'
11339 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'
11340 fi
11341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11342 hardcode_libdir_separator=:
11343 ;;
11344
11345 osf4* | osf5*) # as osf3* with the addition of -msym flag
11346 if test "$GCC" = yes; then
11347 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11348 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'
11349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11350 else
11351 allow_undefined_flag=' -expect_unresolved \*'
11352 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'
11353 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11354 $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'
11355
11356 # Both c and cxx compiler support -rpath directly
11357 hardcode_libdir_flag_spec='-rpath $libdir'
11358 fi
11359 hardcode_libdir_separator=:
11360 ;;
11361
11362 sco3.2v5*)
11363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11364 hardcode_shlibpath_var=no
11365 export_dynamic_flag_spec='${wl}-Bexport'
11366 runpath_var=LD_RUN_PATH
11367 hardcode_runpath_var=yes
11368 ;;
11369
11370 solaris*)
11371 no_undefined_flag=' -z text'
11372 if test "$GCC" = yes; then
11373 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11374 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11375 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11376 else
11377 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11378 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11380 fi
11381 hardcode_libdir_flag_spec='-R$libdir'
11382 hardcode_shlibpath_var=no
11383 case $host_os in
11384 solaris2.[0-5] | solaris2.[0-5].*) ;;
11385 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
11386 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
11387 esac
11388 link_all_deplibs=yes
11389 ;;
11390
11391 sunos4*)
11392 if test "x$host_vendor" = xsequent; then
11393 # Use $CC to link under sequent, because it throws in some extra .o
11394 # files that make .init and .fini sections work.
11395 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11396 else
11397 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11398 fi
11399 hardcode_libdir_flag_spec='-L$libdir'
11400 hardcode_direct=yes
11401 hardcode_minus_L=yes
11402 hardcode_shlibpath_var=no
11403 ;;
11404
11405 sysv4)
11406 case $host_vendor in
11407 sni)
11408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11409 hardcode_direct=yes # is this really true???
11410 ;;
11411 siemens)
11412 ## LD is ld it makes a PLAMLIB
11413 ## CC just makes a GrossModule.
11414 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11415 reload_cmds='$CC -r -o $output$reload_objs'
11416 hardcode_direct=no
11417 ;;
11418 motorola)
11419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11420 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11421 ;;
11422 esac
11423 runpath_var='LD_RUN_PATH'
11424 hardcode_shlibpath_var=no
11425 ;;
11426
11427 sysv4.3*)
11428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11429 hardcode_shlibpath_var=no
11430 export_dynamic_flag_spec='-Bexport'
11431 ;;
11432
11433 sysv4*MP*)
11434 if test -d /usr/nec; then
11435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11436 hardcode_shlibpath_var=no
11437 runpath_var=LD_RUN_PATH
11438 hardcode_runpath_var=yes
11439 ld_shlibs=yes
11440 fi
11441 ;;
11442
11443 sysv4.2uw2*)
11444 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11445 hardcode_direct=yes
11446 hardcode_minus_L=no
11447 hardcode_shlibpath_var=no
11448 hardcode_runpath_var=yes
11449 runpath_var=LD_RUN_PATH
11450 ;;
11451
11452 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11453 no_undefined_flag='${wl}-z ${wl}text'
11454 if test "$GCC" = yes; then
11455 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11456 else
11457 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11458 fi
11459 runpath_var='LD_RUN_PATH'
11460 hardcode_shlibpath_var=no
11461 ;;
11462
11463 sysv5*)
11464 no_undefined_flag=' -z text'
11465 # $CC -shared without GNU ld will not create a library from C++
11466 # object files and a static libstdc++, better avoid it by now
11467 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11468 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11469 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11470 hardcode_libdir_flag_spec=
11471 hardcode_shlibpath_var=no
11472 runpath_var='LD_RUN_PATH'
11473 ;;
11474
11475 uts4*)
11476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11477 hardcode_libdir_flag_spec='-L$libdir'
11478 hardcode_shlibpath_var=no
11479 ;;
11480
11481 *)
11482 ld_shlibs=no
11483 ;;
11484 esac
11485 fi
11486
11487 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11488 echo "${ECHO_T}$ld_shlibs" >&6
11489 test "$ld_shlibs" = no && can_build_shared=no
11490
11491 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11492 if test "$GCC" = yes; then
11493 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11494 fi
11495
11496 #
11497 # Do we need to explicitly link libc?
11498 #
11499 case "x$archive_cmds_need_lc" in
11500 x|xyes)
11501 # Assume -lc should be added
11502 archive_cmds_need_lc=yes
11503
11504 if test "$enable_shared" = yes && test "$GCC" = yes; then
11505 case $archive_cmds in
11506 *'~'*)
11507 # FIXME: we may have to deal with multi-command sequences.
11508 ;;
11509 '$CC '*)
11510 # Test whether the compiler implicitly links with -lc since on some
11511 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11512 # to ld, don't add -lc before -lgcc.
11513 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11514 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11515 $rm conftest*
11516 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11517
11518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11519 (eval $ac_compile) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } 2>conftest.err; then
11523 soname=conftest
11524 lib=conftest
11525 libobjs=conftest.$ac_objext
11526 deplibs=
11527 wl=$lt_prog_compiler_wl
11528 compiler_flags=-v
11529 linker_flags=-v
11530 verstring=
11531 output_objdir=.
11532 libname=conftest
11533 lt_save_allow_undefined_flag=$allow_undefined_flag
11534 allow_undefined_flag=
11535 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11536 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }
11540 then
11541 archive_cmds_need_lc=no
11542 else
11543 archive_cmds_need_lc=yes
11544 fi
11545 allow_undefined_flag=$lt_save_allow_undefined_flag
11546 else
11547 cat conftest.err 1>&5
11548 fi
11549 $rm conftest*
11550 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11551 echo "${ECHO_T}$archive_cmds_need_lc" >&6
11552 ;;
11553 esac
11554 fi
11555 ;;
11556 esac
11557
11558 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11559 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11560 library_names_spec=
11561 libname_spec='lib$name'
11562 soname_spec=
11563 shrext_cmds=".so"
11564 postinstall_cmds=
11565 postuninstall_cmds=
11566 finish_cmds=
11567 finish_eval=
11568 shlibpath_var=
11569 shlibpath_overrides_runpath=unknown
11570 version_type=none
11571 dynamic_linker="$host_os ld.so"
11572 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11573 if test "$GCC" = yes; then
11574 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11575 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11576 # if the path contains ";" then we assume it to be the separator
11577 # otherwise default to the standard path separator (i.e. ":") - it is
11578 # assumed that no part of a normal pathname contains ";" but that should
11579 # okay in the real world where ";" in dirpaths is itself problematic.
11580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11581 else
11582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11583 fi
11584 else
11585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11586 fi
11587 need_lib_prefix=unknown
11588 hardcode_into_libs=no
11589
11590 # when you set need_version to no, make sure it does not cause -set_version
11591 # flags to be left without arguments
11592 need_version=unknown
11593
11594 case $host_os in
11595 aix3*)
11596 version_type=linux
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11598 shlibpath_var=LIBPATH
11599
11600 # AIX 3 has no versioning support, so we append a major version to the name.
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 ;;
11603
11604 aix4* | aix5*)
11605 version_type=linux
11606 need_lib_prefix=no
11607 need_version=no
11608 hardcode_into_libs=yes
11609 if test "$host_cpu" = ia64; then
11610 # AIX 5 supports IA64
11611 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 else
11614 # With GCC up to 2.95.x, collect2 would create an import file
11615 # for dependence libraries. The import file would start with
11616 # the line `#! .'. This would cause the generated library to
11617 # depend on `.', always an invalid library. This was fixed in
11618 # development snapshots of GCC prior to 3.0.
11619 case $host_os in
11620 aix4 | aix4.[01] | aix4.[01].*)
11621 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11622 echo ' yes '
11623 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11624 :
11625 else
11626 can_build_shared=no
11627 fi
11628 ;;
11629 esac
11630 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11631 # soname into executable. Probably we can add versioning support to
11632 # collect2, so additional links can be useful in future.
11633 if test "$aix_use_runtimelinking" = yes; then
11634 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11635 # instead of lib<name>.a to let people know that these are not
11636 # typical AIX shared libraries.
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638 else
11639 # We preserve .a as extension for shared libraries through AIX4.2
11640 # and later when we are not doing run time linking.
11641 library_names_spec='${libname}${release}.a $libname.a'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 fi
11644 shlibpath_var=LIBPATH
11645 fi
11646 ;;
11647
11648 amigaos*)
11649 library_names_spec='$libname.ixlibrary $libname.a'
11650 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11651 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'
11652 ;;
11653
11654 beos*)
11655 library_names_spec='${libname}${shared_ext}'
11656 dynamic_linker="$host_os ld.so"
11657 shlibpath_var=LIBRARY_PATH
11658 ;;
11659
11660 bsdi[45]*)
11661 version_type=linux
11662 need_version=no
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664 soname_spec='${libname}${release}${shared_ext}$major'
11665 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11668 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11669 # the default ld.so.conf also contains /usr/contrib/lib and
11670 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11671 # libtool to hard-code these into programs
11672 ;;
11673
11674 cygwin* | mingw* | pw32*)
11675 version_type=windows
11676 shrext_cmds=".dll"
11677 need_version=no
11678 need_lib_prefix=no
11679
11680 case $GCC,$host_os in
11681 yes,cygwin* | yes,mingw* | yes,pw32*)
11682 library_names_spec='$libname.dll.a'
11683 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11684 postinstall_cmds='base_file=`basename \${file}`~
11685 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11686 dldir=$destdir/`dirname \$dlpath`~
11687 test -d \$dldir || mkdir -p \$dldir~
11688 $install_prog $dir/$dlname \$dldir/$dlname'
11689 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11690 dlpath=$dir/\$dldll~
11691 $rm \$dlpath'
11692 shlibpath_overrides_runpath=yes
11693
11694 case $host_os in
11695 cygwin*)
11696 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11697 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11698 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11699 ;;
11700 mingw*)
11701 # MinGW DLLs use traditional 'lib' prefix
11702 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11703 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11704 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11705 # It is most probably a Windows format PATH printed by
11706 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11707 # path with ; separators, and with drive letters. We can handle the
11708 # drive letters (cygwin fileutils understands them), so leave them,
11709 # especially as we might pass files found there to a mingw objdump,
11710 # which wouldn't understand a cygwinified path. Ahh.
11711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11712 else
11713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11714 fi
11715 ;;
11716 pw32*)
11717 # pw32 DLLs use 'pw' prefix rather than 'lib'
11718 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11719 ;;
11720 esac
11721 ;;
11722
11723 *)
11724 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11725 ;;
11726 esac
11727 dynamic_linker='Win32 ld.exe'
11728 # FIXME: first we should search . and the directory the executable is in
11729 shlibpath_var=PATH
11730 ;;
11731
11732 darwin* | rhapsody*)
11733 dynamic_linker="$host_os dyld"
11734 version_type=darwin
11735 need_lib_prefix=no
11736 need_version=no
11737 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11738 soname_spec='${libname}${release}${major}$shared_ext'
11739 shlibpath_overrides_runpath=yes
11740 shlibpath_var=DYLD_LIBRARY_PATH
11741 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11742 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11743 if test "$GCC" = yes; then
11744 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11745 else
11746 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11747 fi
11748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11749 ;;
11750
11751 dgux*)
11752 version_type=linux
11753 need_lib_prefix=no
11754 need_version=no
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 ;;
11759
11760 freebsd1*)
11761 dynamic_linker=no
11762 ;;
11763
11764 kfreebsd*-gnu)
11765 version_type=linux
11766 need_lib_prefix=no
11767 need_version=no
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 shlibpath_overrides_runpath=no
11772 hardcode_into_libs=yes
11773 dynamic_linker='GNU ld.so'
11774 ;;
11775
11776 freebsd*)
11777 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11778 version_type=freebsd-$objformat
11779 case $version_type in
11780 freebsd-elf*)
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11782 need_version=no
11783 need_lib_prefix=no
11784 ;;
11785 freebsd-*)
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11787 need_version=yes
11788 ;;
11789 esac
11790 shlibpath_var=LD_LIBRARY_PATH
11791 case $host_os in
11792 freebsd2*)
11793 shlibpath_overrides_runpath=yes
11794 ;;
11795 freebsd3.01* | freebsdelf3.01*)
11796 shlibpath_overrides_runpath=yes
11797 hardcode_into_libs=yes
11798 ;;
11799 *) # from 3.2 on
11800 shlibpath_overrides_runpath=no
11801 hardcode_into_libs=yes
11802 ;;
11803 esac
11804 ;;
11805
11806 gnu*)
11807 version_type=linux
11808 need_lib_prefix=no
11809 need_version=no
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11811 soname_spec='${libname}${release}${shared_ext}$major'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 hardcode_into_libs=yes
11814 ;;
11815
11816 hpux9* | hpux10* | hpux11*)
11817 # Give a soname corresponding to the major version so that dld.sl refuses to
11818 # link against other versions.
11819 version_type=sunos
11820 need_lib_prefix=no
11821 need_version=no
11822 case "$host_cpu" in
11823 ia64*)
11824 shrext_cmds='.so'
11825 hardcode_into_libs=yes
11826 dynamic_linker="$host_os dld.so"
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830 soname_spec='${libname}${release}${shared_ext}$major'
11831 if test "X$HPUX_IA64_MODE" = X32; then
11832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11833 else
11834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11835 fi
11836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11837 ;;
11838 hppa*64*)
11839 shrext_cmds='.sl'
11840 hardcode_into_libs=yes
11841 dynamic_linker="$host_os dld.sl"
11842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845 soname_spec='${libname}${release}${shared_ext}$major'
11846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11848 ;;
11849 *)
11850 shrext_cmds='.sl'
11851 dynamic_linker="$host_os dld.sl"
11852 shlibpath_var=SHLIB_PATH
11853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11855 soname_spec='${libname}${release}${shared_ext}$major'
11856 ;;
11857 esac
11858 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11859 postinstall_cmds='chmod 555 $lib'
11860 ;;
11861
11862 irix5* | irix6* | nonstopux*)
11863 case $host_os in
11864 nonstopux*) version_type=nonstopux ;;
11865 *)
11866 if test "$lt_cv_prog_gnu_ld" = yes; then
11867 version_type=linux
11868 else
11869 version_type=irix
11870 fi ;;
11871 esac
11872 need_lib_prefix=no
11873 need_version=no
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11876 case $host_os in
11877 irix5* | nonstopux*)
11878 libsuff= shlibsuff=
11879 ;;
11880 *)
11881 case $LD in # libtool.m4 will add one of these switches to LD
11882 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11883 libsuff= shlibsuff= libmagic=32-bit;;
11884 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11885 libsuff=32 shlibsuff=N32 libmagic=N32;;
11886 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11887 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11888 *) libsuff= shlibsuff= libmagic=never-match;;
11889 esac
11890 ;;
11891 esac
11892 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11893 shlibpath_overrides_runpath=no
11894 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11895 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11896 hardcode_into_libs=yes
11897 ;;
11898
11899 # No shared lib support for Linux oldld, aout, or coff.
11900 linux*oldld* | linux*aout* | linux*coff*)
11901 dynamic_linker=no
11902 ;;
11903
11904 # This must be Linux ELF.
11905 linux*)
11906 version_type=linux
11907 need_lib_prefix=no
11908 need_version=no
11909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11910 soname_spec='${libname}${release}${shared_ext}$major'
11911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11912 shlibpath_var=LD_LIBRARY_PATH
11913 shlibpath_overrides_runpath=no
11914 # This implies no fast_install, which is unacceptable.
11915 # Some rework will be needed to allow for fast_install
11916 # before this can be enabled.
11917 hardcode_into_libs=yes
11918
11919 # Append ld.so.conf contents to the search path
11920 if test -f /etc/ld.so.conf; then
11921 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11923 fi
11924
11925 # We used to test for /lib/ld.so.1 and disable shared libraries on
11926 # powerpc, because MkLinux only supported shared libraries with the
11927 # GNU dynamic linker. Since this was broken with cross compilers,
11928 # most powerpc-linux boxes support dynamic linking these days and
11929 # people can always --disable-shared, the test was removed, and we
11930 # assume the GNU/Linux dynamic linker is in use.
11931 dynamic_linker='GNU/Linux ld.so'
11932 ;;
11933
11934 knetbsd*-gnu)
11935 version_type=linux
11936 need_lib_prefix=no
11937 need_version=no
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=no
11942 hardcode_into_libs=yes
11943 dynamic_linker='GNU ld.so'
11944 ;;
11945
11946 netbsd*)
11947 version_type=sunos
11948 need_lib_prefix=no
11949 need_version=no
11950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11953 dynamic_linker='NetBSD (a.out) ld.so'
11954 else
11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11956 soname_spec='${libname}${release}${shared_ext}$major'
11957 dynamic_linker='NetBSD ld.elf_so'
11958 fi
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=yes
11961 hardcode_into_libs=yes
11962 ;;
11963
11964 newsos6)
11965 version_type=linux
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967 shlibpath_var=LD_LIBRARY_PATH
11968 shlibpath_overrides_runpath=yes
11969 ;;
11970
11971 nto-qnx*)
11972 version_type=linux
11973 need_lib_prefix=no
11974 need_version=no
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11976 soname_spec='${libname}${release}${shared_ext}$major'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 shlibpath_overrides_runpath=yes
11979 ;;
11980
11981 openbsd*)
11982 version_type=sunos
11983 need_lib_prefix=no
11984 need_version=no
11985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11987 shlibpath_var=LD_LIBRARY_PATH
11988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11989 case $host_os in
11990 openbsd2.[89] | openbsd2.[89].*)
11991 shlibpath_overrides_runpath=no
11992 ;;
11993 *)
11994 shlibpath_overrides_runpath=yes
11995 ;;
11996 esac
11997 else
11998 shlibpath_overrides_runpath=yes
11999 fi
12000 ;;
12001
12002 os2*)
12003 libname_spec='$name'
12004 shrext_cmds=".dll"
12005 need_lib_prefix=no
12006 library_names_spec='$libname${shared_ext} $libname.a'
12007 dynamic_linker='OS/2 ld.exe'
12008 shlibpath_var=LIBPATH
12009 ;;
12010
12011 osf3* | osf4* | osf5*)
12012 version_type=osf
12013 need_lib_prefix=no
12014 need_version=no
12015 soname_spec='${libname}${release}${shared_ext}$major'
12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12017 shlibpath_var=LD_LIBRARY_PATH
12018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12020 ;;
12021
12022 sco3.2v5*)
12023 version_type=osf
12024 soname_spec='${libname}${release}${shared_ext}$major'
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 ;;
12028
12029 solaris*)
12030 version_type=linux
12031 need_lib_prefix=no
12032 need_version=no
12033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034 soname_spec='${libname}${release}${shared_ext}$major'
12035 shlibpath_var=LD_LIBRARY_PATH
12036 shlibpath_overrides_runpath=yes
12037 hardcode_into_libs=yes
12038 # ldd complains unless libraries are executable
12039 postinstall_cmds='chmod +x $lib'
12040 ;;
12041
12042 sunos4*)
12043 version_type=sunos
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12045 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12046 shlibpath_var=LD_LIBRARY_PATH
12047 shlibpath_overrides_runpath=yes
12048 if test "$with_gnu_ld" = yes; then
12049 need_lib_prefix=no
12050 fi
12051 need_version=yes
12052 ;;
12053
12054 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12055 version_type=linux
12056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057 soname_spec='${libname}${release}${shared_ext}$major'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 case $host_vendor in
12060 sni)
12061 shlibpath_overrides_runpath=no
12062 need_lib_prefix=no
12063 export_dynamic_flag_spec='${wl}-Blargedynsym'
12064 runpath_var=LD_RUN_PATH
12065 ;;
12066 siemens)
12067 need_lib_prefix=no
12068 ;;
12069 motorola)
12070 need_lib_prefix=no
12071 need_version=no
12072 shlibpath_overrides_runpath=no
12073 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12074 ;;
12075 esac
12076 ;;
12077
12078 sysv4*MP*)
12079 if test -d /usr/nec ;then
12080 version_type=linux
12081 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12082 soname_spec='$libname${shared_ext}.$major'
12083 shlibpath_var=LD_LIBRARY_PATH
12084 fi
12085 ;;
12086
12087 uts4*)
12088 version_type=linux
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12090 soname_spec='${libname}${release}${shared_ext}$major'
12091 shlibpath_var=LD_LIBRARY_PATH
12092 ;;
12093
12094 *)
12095 dynamic_linker=no
12096 ;;
12097 esac
12098 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12099 echo "${ECHO_T}$dynamic_linker" >&6
12100 test "$dynamic_linker" = no && can_build_shared=no
12101
12102 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12104 hardcode_action=
12105 if test -n "$hardcode_libdir_flag_spec" || \
12106 test -n "$runpath_var" || \
12107 test "X$hardcode_automatic" = "Xyes" ; then
12108
12109 # We can hardcode non-existant directories.
12110 if test "$hardcode_direct" != no &&
12111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12112 # have to relink, otherwise we might link with an installed library
12113 # when we should be linking with a yet-to-be-installed one
12114 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12115 test "$hardcode_minus_L" != no; then
12116 # Linking always hardcodes the temporary library directory.
12117 hardcode_action=relink
12118 else
12119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12120 hardcode_action=immediate
12121 fi
12122 else
12123 # We cannot hardcode anything, or else we can only hardcode existing
12124 # directories.
12125 hardcode_action=unsupported
12126 fi
12127 echo "$as_me:$LINENO: result: $hardcode_action" >&5
12128 echo "${ECHO_T}$hardcode_action" >&6
12129
12130 if test "$hardcode_action" = relink; then
12131 # Fast installation is not supported
12132 enable_fast_install=no
12133 elif test "$shlibpath_overrides_runpath" = yes ||
12134 test "$enable_shared" = no; then
12135 # Fast installation is not necessary
12136 enable_fast_install=needless
12137 fi
12138
12139 striplib=
12140 old_striplib=
12141 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12142 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12143 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12145 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12146 echo "$as_me:$LINENO: result: yes" >&5
12147 echo "${ECHO_T}yes" >&6
12148 else
12149 # FIXME - insert some real tests, host_os isn't really good enough
12150 case $host_os in
12151 darwin*)
12152 if test -n "$STRIP" ; then
12153 striplib="$STRIP -x"
12154 echo "$as_me:$LINENO: result: yes" >&5
12155 echo "${ECHO_T}yes" >&6
12156 else
12157 echo "$as_me:$LINENO: result: no" >&5
12158 echo "${ECHO_T}no" >&6
12159 fi
12160 ;;
12161 *)
12162 echo "$as_me:$LINENO: result: no" >&5
12163 echo "${ECHO_T}no" >&6
12164 ;;
12165 esac
12166 fi
12167
12168 if test "x$enable_dlopen" != xyes; then
12169 enable_dlopen=unknown
12170 enable_dlopen_self=unknown
12171 enable_dlopen_self_static=unknown
12172 else
12173 lt_cv_dlopen=no
12174 lt_cv_dlopen_libs=
12175
12176 case $host_os in
12177 beos*)
12178 lt_cv_dlopen="load_add_on"
12179 lt_cv_dlopen_libs=
12180 lt_cv_dlopen_self=yes
12181 ;;
12182
12183 mingw* | pw32*)
12184 lt_cv_dlopen="LoadLibrary"
12185 lt_cv_dlopen_libs=
12186 ;;
12187
12188 cygwin*)
12189 lt_cv_dlopen="dlopen"
12190 lt_cv_dlopen_libs=
12191 ;;
12192
12193 darwin*)
12194 # if libdl is installed we need to link against it
12195 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200 ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-ldl $LIBS"
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208
12209 /* Override any gcc2 internal prototype to avoid an error. */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 /* We use char because int might match the return type of a gcc2
12214 builtin and then its argument prototype would still apply. */
12215 char dlopen ();
12216 int
12217 main ()
12218 {
12219 dlopen ();
12220 ;
12221 return 0;
12222 }
12223 _ACEOF
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try='test -z "$ac_c_werror_flag"
12234 || test ! -s conftest.err'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; } &&
12240 { ac_try='test -s conftest$ac_exeext'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 ac_cv_lib_dl_dlopen=yes
12247 else
12248 echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12250
12251 ac_cv_lib_dl_dlopen=no
12252 fi
12253 rm -f conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12256 fi
12257 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12258 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12259 if test $ac_cv_lib_dl_dlopen = yes; then
12260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12261 else
12262
12263 lt_cv_dlopen="dyld"
12264 lt_cv_dlopen_libs=
12265 lt_cv_dlopen_self=yes
12266
12267 fi
12268
12269 ;;
12270
12271 *)
12272 echo "$as_me:$LINENO: checking for shl_load" >&5
12273 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12274 if test "${ac_cv_func_shl_load+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 else
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h. */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12283 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12285 #define shl_load innocuous_shl_load
12286
12287 /* System header to define __stub macros and hopefully few prototypes,
12288 which can conflict with char shl_load (); below.
12289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12290 <limits.h> exists even on freestanding compilers. */
12291
12292 #ifdef __STDC__
12293 # include <limits.h>
12294 #else
12295 # include <assert.h>
12296 #endif
12297
12298 #undef shl_load
12299
12300 /* Override any gcc2 internal prototype to avoid an error. */
12301 #ifdef __cplusplus
12302 extern "C"
12303 {
12304 #endif
12305 /* We use char because int might match the return type of a gcc2
12306 builtin and then its argument prototype would still apply. */
12307 char shl_load ();
12308 /* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12312 choke me
12313 #else
12314 char (*f) () = shl_load;
12315 #endif
12316 #ifdef __cplusplus
12317 }
12318 #endif
12319
12320 int
12321 main ()
12322 {
12323 return f != shl_load;
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_cv_func_shl_load=yes
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 ac_cv_func_shl_load=no
12356 fi
12357 rm -f conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 fi
12360 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12361 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12362 if test $ac_cv_func_shl_load = yes; then
12363 lt_cv_dlopen="shl_load"
12364 else
12365 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12366 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12367 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370 ac_check_lib_save_LIBS=$LIBS
12371 LIBS="-ldld $LIBS"
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h. */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378
12379 /* Override any gcc2 internal prototype to avoid an error. */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 /* We use char because int might match the return type of a gcc2
12384 builtin and then its argument prototype would still apply. */
12385 char shl_load ();
12386 int
12387 main ()
12388 {
12389 shl_load ();
12390 ;
12391 return 0;
12392 }
12393 _ACEOF
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396 (eval $ac_link) 2>conftest.er1
12397 ac_status=$?
12398 grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
12403 { ac_try='test -z "$ac_c_werror_flag"
12404 || test ! -s conftest.err'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try='test -s conftest$ac_exeext'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 ac_cv_lib_dld_shl_load=yes
12417 else
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421 ac_cv_lib_dld_shl_load=no
12422 fi
12423 rm -f conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12426 fi
12427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12428 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12429 if test $ac_cv_lib_dld_shl_load = yes; then
12430 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12431 else
12432 echo "$as_me:$LINENO: checking for dlopen" >&5
12433 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12434 if test "${ac_cv_func_dlopen+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 else
12437 cat >conftest.$ac_ext <<_ACEOF
12438 /* confdefs.h. */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h. */
12443 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12445 #define dlopen innocuous_dlopen
12446
12447 /* System header to define __stub macros and hopefully few prototypes,
12448 which can conflict with char dlopen (); below.
12449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12450 <limits.h> exists even on freestanding compilers. */
12451
12452 #ifdef __STDC__
12453 # include <limits.h>
12454 #else
12455 # include <assert.h>
12456 #endif
12457
12458 #undef dlopen
12459
12460 /* Override any gcc2 internal prototype to avoid an error. */
12461 #ifdef __cplusplus
12462 extern "C"
12463 {
12464 #endif
12465 /* We use char because int might match the return type of a gcc2
12466 builtin and then its argument prototype would still apply. */
12467 char dlopen ();
12468 /* The GNU C library defines this for functions which it implements
12469 to always fail with ENOSYS. Some functions are actually named
12470 something starting with __ and the normal name is an alias. */
12471 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12472 choke me
12473 #else
12474 char (*f) () = dlopen;
12475 #endif
12476 #ifdef __cplusplus
12477 }
12478 #endif
12479
12480 int
12481 main ()
12482 {
12483 return f != dlopen;
12484 ;
12485 return 0;
12486 }
12487 _ACEOF
12488 rm -f conftest.$ac_objext conftest$ac_exeext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12490 (eval $ac_link) 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag"
12498 || test ! -s conftest.err'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try='test -s conftest$ac_exeext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_func_dlopen=yes
12511 else
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12514
12515 ac_cv_func_dlopen=no
12516 fi
12517 rm -f conftest.err conftest.$ac_objext \
12518 conftest$ac_exeext conftest.$ac_ext
12519 fi
12520 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12521 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12522 if test $ac_cv_func_dlopen = yes; then
12523 lt_cv_dlopen="dlopen"
12524 else
12525 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12526 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12527 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530 ac_check_lib_save_LIBS=$LIBS
12531 LIBS="-ldl $LIBS"
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538
12539 /* Override any gcc2 internal prototype to avoid an error. */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 /* We use char because int might match the return type of a gcc2
12544 builtin and then its argument prototype would still apply. */
12545 char dlopen ();
12546 int
12547 main ()
12548 {
12549 dlopen ();
12550 ;
12551 return 0;
12552 }
12553 _ACEOF
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag"
12564 || test ! -s conftest.err'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try='test -s conftest$ac_exeext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_cv_lib_dl_dlopen=yes
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 ac_cv_lib_dl_dlopen=no
12582 fi
12583 rm -f conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext conftest.$ac_ext
12585 LIBS=$ac_check_lib_save_LIBS
12586 fi
12587 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12588 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12589 if test $ac_cv_lib_dl_dlopen = yes; then
12590 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12591 else
12592 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12593 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12594 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-lsvld $LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605
12606 /* Override any gcc2 internal prototype to avoid an error. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 /* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12612 char dlopen ();
12613 int
12614 main ()
12615 {
12616 dlopen ();
12617 ;
12618 return 0;
12619 }
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_lib_svld_dlopen=yes
12644 else
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648 ac_cv_lib_svld_dlopen=no
12649 fi
12650 rm -f conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652 LIBS=$ac_check_lib_save_LIBS
12653 fi
12654 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12655 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12656 if test $ac_cv_lib_svld_dlopen = yes; then
12657 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12658 else
12659 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12660 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12661 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 else
12664 ac_check_lib_save_LIBS=$LIBS
12665 LIBS="-ldld $LIBS"
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h. */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672
12673 /* Override any gcc2 internal prototype to avoid an error. */
12674 #ifdef __cplusplus
12675 extern "C"
12676 #endif
12677 /* We use char because int might match the return type of a gcc2
12678 builtin and then its argument prototype would still apply. */
12679 char dld_link ();
12680 int
12681 main ()
12682 {
12683 dld_link ();
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690 (eval $ac_link) 2>conftest.er1
12691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_c_werror_flag"
12698 || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_lib_dld_dld_link=yes
12711 else
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714
12715 ac_cv_lib_dld_dld_link=no
12716 fi
12717 rm -f conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_check_lib_save_LIBS
12720 fi
12721 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12722 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12723 if test $ac_cv_lib_dld_dld_link = yes; then
12724 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12725 fi
12726
12727
12728 fi
12729
12730
12731 fi
12732
12733
12734 fi
12735
12736
12737 fi
12738
12739
12740 fi
12741
12742 ;;
12743 esac
12744
12745 if test "x$lt_cv_dlopen" != xno; then
12746 enable_dlopen=yes
12747 else
12748 enable_dlopen=no
12749 fi
12750
12751 case $lt_cv_dlopen in
12752 dlopen)
12753 save_CPPFLAGS="$CPPFLAGS"
12754 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12755
12756 save_LDFLAGS="$LDFLAGS"
12757 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12758
12759 save_LIBS="$LIBS"
12760 LIBS="$lt_cv_dlopen_libs $LIBS"
12761
12762 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12763 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12764 if test "${lt_cv_dlopen_self+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767 if test "$cross_compiling" = yes; then :
12768 lt_cv_dlopen_self=cross
12769 else
12770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12771 lt_status=$lt_dlunknown
12772 cat > conftest.$ac_ext <<EOF
12773 #line 12773 "configure"
12774 #include "confdefs.h"
12775
12776 #if HAVE_DLFCN_H
12777 #include <dlfcn.h>
12778 #endif
12779
12780 #include <stdio.h>
12781
12782 #ifdef RTLD_GLOBAL
12783 # define LT_DLGLOBAL RTLD_GLOBAL
12784 #else
12785 # ifdef DL_GLOBAL
12786 # define LT_DLGLOBAL DL_GLOBAL
12787 # else
12788 # define LT_DLGLOBAL 0
12789 # endif
12790 #endif
12791
12792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12793 find out it does not work in some platform. */
12794 #ifndef LT_DLLAZY_OR_NOW
12795 # ifdef RTLD_LAZY
12796 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12797 # else
12798 # ifdef DL_LAZY
12799 # define LT_DLLAZY_OR_NOW DL_LAZY
12800 # else
12801 # ifdef RTLD_NOW
12802 # define LT_DLLAZY_OR_NOW RTLD_NOW
12803 # else
12804 # ifdef DL_NOW
12805 # define LT_DLLAZY_OR_NOW DL_NOW
12806 # else
12807 # define LT_DLLAZY_OR_NOW 0
12808 # endif
12809 # endif
12810 # endif
12811 # endif
12812 #endif
12813
12814 #ifdef __cplusplus
12815 extern "C" void exit (int);
12816 #endif
12817
12818 void fnord() { int i=42;}
12819 int main ()
12820 {
12821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12822 int status = $lt_dlunknown;
12823
12824 if (self)
12825 {
12826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12827 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12828 /* dlclose (self); */
12829 }
12830
12831 exit (status);
12832 }
12833 EOF
12834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835 (eval $ac_link) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12839 (./conftest; exit; ) 2>/dev/null
12840 lt_status=$?
12841 case x$lt_status in
12842 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12843 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12844 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12845 esac
12846 else :
12847 # compilation failed
12848 lt_cv_dlopen_self=no
12849 fi
12850 fi
12851 rm -fr conftest*
12852
12853
12854 fi
12855 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12856 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12857
12858 if test "x$lt_cv_dlopen_self" = xyes; then
12859 LDFLAGS="$LDFLAGS $link_static_flag"
12860 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12861 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12862 if test "${lt_cv_dlopen_self_static+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865 if test "$cross_compiling" = yes; then :
12866 lt_cv_dlopen_self_static=cross
12867 else
12868 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12869 lt_status=$lt_dlunknown
12870 cat > conftest.$ac_ext <<EOF
12871 #line 12871 "configure"
12872 #include "confdefs.h"
12873
12874 #if HAVE_DLFCN_H
12875 #include <dlfcn.h>
12876 #endif
12877
12878 #include <stdio.h>
12879
12880 #ifdef RTLD_GLOBAL
12881 # define LT_DLGLOBAL RTLD_GLOBAL
12882 #else
12883 # ifdef DL_GLOBAL
12884 # define LT_DLGLOBAL DL_GLOBAL
12885 # else
12886 # define LT_DLGLOBAL 0
12887 # endif
12888 #endif
12889
12890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12891 find out it does not work in some platform. */
12892 #ifndef LT_DLLAZY_OR_NOW
12893 # ifdef RTLD_LAZY
12894 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12895 # else
12896 # ifdef DL_LAZY
12897 # define LT_DLLAZY_OR_NOW DL_LAZY
12898 # else
12899 # ifdef RTLD_NOW
12900 # define LT_DLLAZY_OR_NOW RTLD_NOW
12901 # else
12902 # ifdef DL_NOW
12903 # define LT_DLLAZY_OR_NOW DL_NOW
12904 # else
12905 # define LT_DLLAZY_OR_NOW 0
12906 # endif
12907 # endif
12908 # endif
12909 # endif
12910 #endif
12911
12912 #ifdef __cplusplus
12913 extern "C" void exit (int);
12914 #endif
12915
12916 void fnord() { int i=42;}
12917 int main ()
12918 {
12919 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12920 int status = $lt_dlunknown;
12921
12922 if (self)
12923 {
12924 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12925 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12926 /* dlclose (self); */
12927 }
12928
12929 exit (status);
12930 }
12931 EOF
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12937 (./conftest; exit; ) 2>/dev/null
12938 lt_status=$?
12939 case x$lt_status in
12940 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12941 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12942 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12943 esac
12944 else :
12945 # compilation failed
12946 lt_cv_dlopen_self_static=no
12947 fi
12948 fi
12949 rm -fr conftest*
12950
12951
12952 fi
12953 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12954 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12955 fi
12956
12957 CPPFLAGS="$save_CPPFLAGS"
12958 LDFLAGS="$save_LDFLAGS"
12959 LIBS="$save_LIBS"
12960 ;;
12961 esac
12962
12963 case $lt_cv_dlopen_self in
12964 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12965 *) enable_dlopen_self=unknown ;;
12966 esac
12967
12968 case $lt_cv_dlopen_self_static in
12969 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12970 *) enable_dlopen_self_static=unknown ;;
12971 esac
12972 fi
12973
12974
12975 # Report which librarie types wil actually be built
12976 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12977 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12978 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12979 echo "${ECHO_T}$can_build_shared" >&6
12980
12981 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12982 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12983 test "$can_build_shared" = "no" && enable_shared=no
12984
12985 # On AIX, shared libraries and static libraries use the same namespace, and
12986 # are all built from PIC.
12987 case "$host_os" in
12988 aix3*)
12989 test "$enable_shared" = yes && enable_static=no
12990 if test -n "$RANLIB"; then
12991 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12992 postinstall_cmds='$RANLIB $lib'
12993 fi
12994 ;;
12995
12996 aix4* | aix5*)
12997 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12998 test "$enable_shared" = yes && enable_static=no
12999 fi
13000 ;;
13001 esac
13002 echo "$as_me:$LINENO: result: $enable_shared" >&5
13003 echo "${ECHO_T}$enable_shared" >&6
13004
13005 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13006 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13007 # Make sure either enable_shared or enable_static is yes.
13008 test "$enable_shared" = yes || enable_static=yes
13009 echo "$as_me:$LINENO: result: $enable_static" >&5
13010 echo "${ECHO_T}$enable_static" >&6
13011
13012 # The else clause should only fire when bootstrapping the
13013 # libtool distribution, otherwise you forgot to ship ltmain.sh
13014 # with your package, and you will get complaints that there are
13015 # no rules to generate ltmain.sh.
13016 if test -f "$ltmain"; then
13017 # See if we are running on zsh, and set the options which allow our commands through
13018 # without removal of \ escapes.
13019 if test -n "${ZSH_VERSION+set}" ; then
13020 setopt NO_GLOB_SUBST
13021 fi
13022 # Now quote all the things that may contain metacharacters while being
13023 # careful not to overquote the AC_SUBSTed values. We take copies of the
13024 # variables and quote the copies for generation of the libtool script.
13025 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13026 SED SHELL STRIP \
13027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13029 deplibs_check_method reload_flag reload_cmds need_locks \
13030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13031 lt_cv_sys_global_symbol_to_c_name_address \
13032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13033 old_postinstall_cmds old_postuninstall_cmds \
13034 compiler \
13035 CC \
13036 LD \
13037 lt_prog_compiler_wl \
13038 lt_prog_compiler_pic \
13039 lt_prog_compiler_static \
13040 lt_prog_compiler_no_builtin_flag \
13041 export_dynamic_flag_spec \
13042 thread_safe_flag_spec \
13043 whole_archive_flag_spec \
13044 enable_shared_with_static_runtimes \
13045 old_archive_cmds \
13046 old_archive_from_new_cmds \
13047 predep_objects \
13048 postdep_objects \
13049 predeps \
13050 postdeps \
13051 compiler_lib_search_path \
13052 archive_cmds \
13053 archive_expsym_cmds \
13054 postinstall_cmds \
13055 postuninstall_cmds \
13056 old_archive_from_expsyms_cmds \
13057 allow_undefined_flag \
13058 no_undefined_flag \
13059 export_symbols_cmds \
13060 hardcode_libdir_flag_spec \
13061 hardcode_libdir_flag_spec_ld \
13062 hardcode_libdir_separator \
13063 hardcode_automatic \
13064 module_cmds \
13065 module_expsym_cmds \
13066 lt_cv_prog_compiler_c_o \
13067 exclude_expsyms \
13068 include_expsyms; do
13069
13070 case $var in
13071 old_archive_cmds | \
13072 old_archive_from_new_cmds | \
13073 archive_cmds | \
13074 archive_expsym_cmds | \
13075 module_cmds | \
13076 module_expsym_cmds | \
13077 old_archive_from_expsyms_cmds | \
13078 export_symbols_cmds | \
13079 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13080 postinstall_cmds | postuninstall_cmds | \
13081 old_postinstall_cmds | old_postuninstall_cmds | \
13082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13083 # Double-quote double-evaled strings.
13084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13085 ;;
13086 *)
13087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13088 ;;
13089 esac
13090 done
13091
13092 case $lt_echo in
13093 *'\$0 --fallback-echo"')
13094 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13095 ;;
13096 esac
13097
13098 cfgfile="${ofile}T"
13099 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13100 $rm -f "$cfgfile"
13101 { echo "$as_me:$LINENO: creating $ofile" >&5
13102 echo "$as_me: creating $ofile" >&6;}
13103
13104 cat <<__EOF__ >> "$cfgfile"
13105 #! $SHELL
13106
13107 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13108 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13109 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13110 #
13111 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13112 # Free Software Foundation, Inc.
13113 #
13114 # This file is part of GNU Libtool:
13115 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13116 #
13117 # This program is free software; you can redistribute it and/or modify
13118 # it under the terms of the GNU General Public License as published by
13119 # the Free Software Foundation; either version 2 of the License, or
13120 # (at your option) any later version.
13121 #
13122 # This program is distributed in the hope that it will be useful, but
13123 # WITHOUT ANY WARRANTY; without even the implied warranty of
13124 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13125 # General Public License for more details.
13126 #
13127 # You should have received a copy of the GNU General Public License
13128 # along with this program; if not, write to the Free Software
13129 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
13130 #
13131 # As a special exception to the GNU General Public License, if you
13132 # distribute this file as part of a program that contains a
13133 # configuration script generated by Autoconf, you may include it under
13134 # the same distribution terms that you use for the rest of that program.
13135
13136 # A sed program that does not truncate output.
13137 SED=$lt_SED
13138
13139 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13140 Xsed="$SED -e s/^X//"
13141
13142 # The HP-UX ksh and POSIX shell print the target directory to stdout
13143 # if CDPATH is set.
13144 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13145
13146 # The names of the tagged configurations supported by this script.
13147 available_tags=
13148
13149 # ### BEGIN LIBTOOL CONFIG
13150
13151 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13152
13153 # Shell to use when invoking shell scripts.
13154 SHELL=$lt_SHELL
13155
13156 # Whether or not to build shared libraries.
13157 build_libtool_libs=$enable_shared
13158
13159 # Whether or not to build static libraries.
13160 build_old_libs=$enable_static
13161
13162 # Whether or not to add -lc for building shared libraries.
13163 build_libtool_need_lc=$archive_cmds_need_lc
13164
13165 # Whether or not to disallow shared libs when runtime libs are static
13166 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13167
13168 # Whether or not to optimize for fast installation.
13169 fast_install=$enable_fast_install
13170
13171 # The host system.
13172 host_alias=$host_alias
13173 host=$host
13174
13175 # An echo program that does not interpret backslashes.
13176 echo=$lt_echo
13177
13178 # The archiver.
13179 AR=$lt_AR
13180 AR_FLAGS=$lt_AR_FLAGS
13181
13182 # A C compiler.
13183 LTCC=$lt_LTCC
13184
13185 # A language-specific compiler.
13186 CC=$lt_compiler
13187
13188 # Is the compiler the GNU C compiler?
13189 with_gcc=$GCC
13190
13191 # An ERE matcher.
13192 EGREP=$lt_EGREP
13193
13194 # The linker used to build libraries.
13195 LD=$lt_LD
13196
13197 # Whether we need hard or soft links.
13198 LN_S=$lt_LN_S
13199
13200 # A BSD-compatible nm program.
13201 NM=$lt_NM
13202
13203 # A symbol stripping program
13204 STRIP=$lt_STRIP
13205
13206 # Used to examine libraries when file_magic_cmd begins "file"
13207 MAGIC_CMD=$MAGIC_CMD
13208
13209 # Used on cygwin: DLL creation program.
13210 DLLTOOL="$DLLTOOL"
13211
13212 # Used on cygwin: object dumper.
13213 OBJDUMP="$OBJDUMP"
13214
13215 # Used on cygwin: assembler.
13216 AS="$AS"
13217
13218 # The name of the directory that contains temporary libtool files.
13219 objdir=$objdir
13220
13221 # How to create reloadable object files.
13222 reload_flag=$lt_reload_flag
13223 reload_cmds=$lt_reload_cmds
13224
13225 # How to pass a linker flag through the compiler.
13226 wl=$lt_lt_prog_compiler_wl
13227
13228 # Object file suffix (normally "o").
13229 objext="$ac_objext"
13230
13231 # Old archive suffix (normally "a").
13232 libext="$libext"
13233
13234 # Shared library suffix (normally ".so").
13235 shrext_cmds='$shrext_cmds'
13236
13237 # Executable file suffix (normally "").
13238 exeext="$exeext"
13239
13240 # Additional compiler flags for building library objects.
13241 pic_flag=$lt_lt_prog_compiler_pic
13242 pic_mode=$pic_mode
13243
13244 # What is the maximum length of a command?
13245 max_cmd_len=$lt_cv_sys_max_cmd_len
13246
13247 # Does compiler simultaneously support -c and -o options?
13248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13249
13250 # Must we lock files when doing compilation ?
13251 need_locks=$lt_need_locks
13252
13253 # Do we need the lib prefix for modules?
13254 need_lib_prefix=$need_lib_prefix
13255
13256 # Do we need a version for libraries?
13257 need_version=$need_version
13258
13259 # Whether dlopen is supported.
13260 dlopen_support=$enable_dlopen
13261
13262 # Whether dlopen of programs is supported.
13263 dlopen_self=$enable_dlopen_self
13264
13265 # Whether dlopen of statically linked programs is supported.
13266 dlopen_self_static=$enable_dlopen_self_static
13267
13268 # Compiler flag to prevent dynamic linking.
13269 link_static_flag=$lt_lt_prog_compiler_static
13270
13271 # Compiler flag to turn off builtin functions.
13272 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13273
13274 # Compiler flag to allow reflexive dlopens.
13275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13276
13277 # Compiler flag to generate shared objects directly from archives.
13278 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13279
13280 # Compiler flag to generate thread-safe objects.
13281 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13282
13283 # Library versioning type.
13284 version_type=$version_type
13285
13286 # Format of library name prefix.
13287 libname_spec=$lt_libname_spec
13288
13289 # List of archive names. First name is the real one, the rest are links.
13290 # The last name is the one that the linker finds with -lNAME.
13291 library_names_spec=$lt_library_names_spec
13292
13293 # The coded name of the library, if different from the real name.
13294 soname_spec=$lt_soname_spec
13295
13296 # Commands used to build and install an old-style archive.
13297 RANLIB=$lt_RANLIB
13298 old_archive_cmds=$lt_old_archive_cmds
13299 old_postinstall_cmds=$lt_old_postinstall_cmds
13300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13301
13302 # Create an old-style archive from a shared archive.
13303 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13304
13305 # Create a temporary old-style archive to link instead of a shared archive.
13306 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13307
13308 # Commands used to build and install a shared archive.
13309 archive_cmds=$lt_archive_cmds
13310 archive_expsym_cmds=$lt_archive_expsym_cmds
13311 postinstall_cmds=$lt_postinstall_cmds
13312 postuninstall_cmds=$lt_postuninstall_cmds
13313
13314 # Commands used to build a loadable module (assumed same as above if empty)
13315 module_cmds=$lt_module_cmds
13316 module_expsym_cmds=$lt_module_expsym_cmds
13317
13318 # Commands to strip libraries.
13319 old_striplib=$lt_old_striplib
13320 striplib=$lt_striplib
13321
13322 # Dependencies to place before the objects being linked to create a
13323 # shared library.
13324 predep_objects=$lt_predep_objects
13325
13326 # Dependencies to place after the objects being linked to create a
13327 # shared library.
13328 postdep_objects=$lt_postdep_objects
13329
13330 # Dependencies to place before the objects being linked to create a
13331 # shared library.
13332 predeps=$lt_predeps
13333
13334 # Dependencies to place after the objects being linked to create a
13335 # shared library.
13336 postdeps=$lt_postdeps
13337
13338 # The library search path used internally by the compiler when linking
13339 # a shared library.
13340 compiler_lib_search_path=$lt_compiler_lib_search_path
13341
13342 # Method to check whether dependent libraries are shared objects.
13343 deplibs_check_method=$lt_deplibs_check_method
13344
13345 # Command to use when deplibs_check_method == file_magic.
13346 file_magic_cmd=$lt_file_magic_cmd
13347
13348 # Flag that allows shared libraries with undefined symbols to be built.
13349 allow_undefined_flag=$lt_allow_undefined_flag
13350
13351 # Flag that forces no undefined symbols.
13352 no_undefined_flag=$lt_no_undefined_flag
13353
13354 # Commands used to finish a libtool library installation in a directory.
13355 finish_cmds=$lt_finish_cmds
13356
13357 # Same as above, but a single script fragment to be evaled but not shown.
13358 finish_eval=$lt_finish_eval
13359
13360 # Take the output of nm and produce a listing of raw symbols and C names.
13361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13362
13363 # Transform the output of nm in a proper C declaration
13364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13365
13366 # Transform the output of nm in a C name address pair
13367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13368
13369 # This is the shared library runtime path variable.
13370 runpath_var=$runpath_var
13371
13372 # This is the shared library path variable.
13373 shlibpath_var=$shlibpath_var
13374
13375 # Is shlibpath searched before the hard-coded library search path?
13376 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13377
13378 # How to hardcode a shared library path into an executable.
13379 hardcode_action=$hardcode_action
13380
13381 # Whether we should hardcode library paths into libraries.
13382 hardcode_into_libs=$hardcode_into_libs
13383
13384 # Flag to hardcode \$libdir into a binary during linking.
13385 # This must work even if \$libdir does not exist.
13386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13387
13388 # If ld is used when linking, flag to hardcode \$libdir into
13389 # a binary during linking. This must work even if \$libdir does
13390 # not exist.
13391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13392
13393 # Whether we need a single -rpath flag with a separated argument.
13394 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13395
13396 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13397 # resulting binary.
13398 hardcode_direct=$hardcode_direct
13399
13400 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13401 # resulting binary.
13402 hardcode_minus_L=$hardcode_minus_L
13403
13404 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13405 # the resulting binary.
13406 hardcode_shlibpath_var=$hardcode_shlibpath_var
13407
13408 # Set to yes if building a shared library automatically hardcodes DIR into the library
13409 # and all subsequent libraries and executables linked against it.
13410 hardcode_automatic=$hardcode_automatic
13411
13412 # Variables whose values should be saved in libtool wrapper scripts and
13413 # restored at relink time.
13414 variables_saved_for_relink="$variables_saved_for_relink"
13415
13416 # Whether libtool must link a program against all its dependency libraries.
13417 link_all_deplibs=$link_all_deplibs
13418
13419 # Compile-time system search path for libraries
13420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13421
13422 # Run-time system search path for libraries
13423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13424
13425 # Fix the shell variable \$srcfile for the compiler.
13426 fix_srcfile_path="$fix_srcfile_path"
13427
13428 # Set to yes if exported symbols are required.
13429 always_export_symbols=$always_export_symbols
13430
13431 # The commands to list exported symbols.
13432 export_symbols_cmds=$lt_export_symbols_cmds
13433
13434 # The commands to extract the exported symbol list from a shared archive.
13435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13436
13437 # Symbols that should not be listed in the preloaded symbols.
13438 exclude_expsyms=$lt_exclude_expsyms
13439
13440 # Symbols that must always be exported.
13441 include_expsyms=$lt_include_expsyms
13442
13443 # ### END LIBTOOL CONFIG
13444
13445 __EOF__
13446
13447
13448 case $host_os in
13449 aix3*)
13450 cat <<\EOF >> "$cfgfile"
13451
13452 # AIX sometimes has problems with the GCC collect2 program. For some
13453 # reason, if we set the COLLECT_NAMES environment variable, the problems
13454 # vanish in a puff of smoke.
13455 if test "X${COLLECT_NAMES+set}" != Xset; then
13456 COLLECT_NAMES=
13457 export COLLECT_NAMES
13458 fi
13459 EOF
13460 ;;
13461 esac
13462
13463 # We use sed instead of cat because bash on DJGPP gets confused if
13464 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13465 # text mode, it properly converts lines to CR/LF. This bash problem
13466 # is reportedly fixed, but why not run on old versions too?
13467 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13468
13469 mv -f "$cfgfile" "$ofile" || \
13470 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13471 chmod +x "$ofile"
13472
13473 else
13474 # If there is no Makefile yet, we rely on a make rule to execute
13475 # `config.status --recheck' to rerun these tests and create the
13476 # libtool script then.
13477 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13478 if test -f "$ltmain_in"; then
13479 test -f Makefile && make "$ltmain"
13480 fi
13481 fi
13482
13483
13484 ac_ext=c
13485 ac_cpp='$CPP $CPPFLAGS'
13486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13489
13490 CC="$lt_save_CC"
13491
13492
13493 # Check whether --with-tags or --without-tags was given.
13494 if test "${with_tags+set}" = set; then
13495 withval="$with_tags"
13496 tagnames="$withval"
13497 fi;
13498
13499 if test -f "$ltmain" && test -n "$tagnames"; then
13500 if test ! -f "${ofile}"; then
13501 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13502 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13503 fi
13504
13505 if test -z "$LTCC"; then
13506 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13507 if test -z "$LTCC"; then
13508 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13509 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13510 else
13511 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13512 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13513 fi
13514 fi
13515
13516 # Extract list of available tagged configurations in $ofile.
13517 # Note that this assumes the entire list is on one line.
13518 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13519
13520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13521 for tagname in $tagnames; do
13522 IFS="$lt_save_ifs"
13523 # Check whether tagname contains only valid characters
13524 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13525 "") ;;
13526 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13527 echo "$as_me: error: invalid tag name: $tagname" >&2;}
13528 { (exit 1); exit 1; }; }
13529 ;;
13530 esac
13531
13532 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13533 then
13534 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13535 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13536 { (exit 1); exit 1; }; }
13537 fi
13538
13539 # Update the list of available tags.
13540 if test -n "$tagname"; then
13541 echo appending configuration tag \"$tagname\" to $ofile
13542
13543 case $tagname in
13544 CXX)
13545 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13546 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13547 (test "X$CXX" != "Xg++"))) ; then
13548 ac_ext=cc
13549 ac_cpp='$CXXCPP $CPPFLAGS'
13550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13553
13554
13555
13556
13557 archive_cmds_need_lc_CXX=no
13558 allow_undefined_flag_CXX=
13559 always_export_symbols_CXX=no
13560 archive_expsym_cmds_CXX=
13561 export_dynamic_flag_spec_CXX=
13562 hardcode_direct_CXX=no
13563 hardcode_libdir_flag_spec_CXX=
13564 hardcode_libdir_flag_spec_ld_CXX=
13565 hardcode_libdir_separator_CXX=
13566 hardcode_minus_L_CXX=no
13567 hardcode_automatic_CXX=no
13568 module_cmds_CXX=
13569 module_expsym_cmds_CXX=
13570 link_all_deplibs_CXX=unknown
13571 old_archive_cmds_CXX=$old_archive_cmds
13572 no_undefined_flag_CXX=
13573 whole_archive_flag_spec_CXX=
13574 enable_shared_with_static_runtimes_CXX=no
13575
13576 # Dependencies to place before and after the object being linked:
13577 predep_objects_CXX=
13578 postdep_objects_CXX=
13579 predeps_CXX=
13580 postdeps_CXX=
13581 compiler_lib_search_path_CXX=
13582
13583 # Source file extension for C++ test sources.
13584 ac_ext=cc
13585
13586 # Object file extension for compiled C++ test sources.
13587 objext=o
13588 objext_CXX=$objext
13589
13590 # Code to be used in simple compile tests
13591 lt_simple_compile_test_code="int some_variable = 0;\n"
13592
13593 # Code to be used in simple link tests
13594 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
13595
13596 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13597
13598 # If no C compiler was specified, use CC.
13599 LTCC=${LTCC-"$CC"}
13600
13601 # Allow CC to be a program name with arguments.
13602 compiler=$CC
13603
13604
13605 # Allow CC to be a program name with arguments.
13606 lt_save_CC=$CC
13607 lt_save_LD=$LD
13608 lt_save_GCC=$GCC
13609 GCC=$GXX
13610 lt_save_with_gnu_ld=$with_gnu_ld
13611 lt_save_path_LD=$lt_cv_path_LD
13612 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13613 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13614 else
13615 unset lt_cv_prog_gnu_ld
13616 fi
13617 if test -n "${lt_cv_path_LDCXX+set}"; then
13618 lt_cv_path_LD=$lt_cv_path_LDCXX
13619 else
13620 unset lt_cv_path_LD
13621 fi
13622 test -z "${LDCXX+set}" || LD=$LDCXX
13623 CC=${CXX-"c++"}
13624 compiler=$CC
13625 compiler_CXX=$CC
13626 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13627
13628 # We don't want -fno-exception wen compiling C++ code, so set the
13629 # no_builtin_flag separately
13630 if test "$GXX" = yes; then
13631 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13632 else
13633 lt_prog_compiler_no_builtin_flag_CXX=
13634 fi
13635
13636 if test "$GXX" = yes; then
13637 # Set up default GNU C++ configuration
13638
13639
13640 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13641 if test "${with_gnu_ld+set}" = set; then
13642 withval="$with_gnu_ld"
13643 test "$withval" = no || with_gnu_ld=yes
13644 else
13645 with_gnu_ld=no
13646 fi;
13647 ac_prog=ld
13648 if test "$GCC" = yes; then
13649 # Check if gcc -print-prog-name=ld gives a path.
13650 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13651 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13652 case $host in
13653 *-*-mingw*)
13654 # gcc leaves a trailing carriage return which upsets mingw
13655 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13656 *)
13657 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13658 esac
13659 case $ac_prog in
13660 # Accept absolute paths.
13661 [\\/]* | ?:[\\/]*)
13662 re_direlt='/[^/][^/]*/\.\./'
13663 # Canonicalize the pathname of ld
13664 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13665 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13666 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13667 done
13668 test -z "$LD" && LD="$ac_prog"
13669 ;;
13670 "")
13671 # If it fails, then pretend we aren't using GCC.
13672 ac_prog=ld
13673 ;;
13674 *)
13675 # If it is relative, then search for the first ld in PATH.
13676 with_gnu_ld=unknown
13677 ;;
13678 esac
13679 elif test "$with_gnu_ld" = yes; then
13680 echo "$as_me:$LINENO: checking for GNU ld" >&5
13681 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13682 else
13683 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13684 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13685 fi
13686 if test "${lt_cv_path_LD+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689 if test -z "$LD"; then
13690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13691 for ac_dir in $PATH; do
13692 IFS="$lt_save_ifs"
13693 test -z "$ac_dir" && ac_dir=.
13694 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13695 lt_cv_path_LD="$ac_dir/$ac_prog"
13696 # Check to see if the program is GNU ld. I'd rather use --version,
13697 # but apparently some GNU ld's only accept -v.
13698 # Break only if it was the GNU/non-GNU ld that we prefer.
13699 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13700 *GNU* | *'with BFD'*)
13701 test "$with_gnu_ld" != no && break
13702 ;;
13703 *)
13704 test "$with_gnu_ld" != yes && break
13705 ;;
13706 esac
13707 fi
13708 done
13709 IFS="$lt_save_ifs"
13710 else
13711 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13712 fi
13713 fi
13714
13715 LD="$lt_cv_path_LD"
13716 if test -n "$LD"; then
13717 echo "$as_me:$LINENO: result: $LD" >&5
13718 echo "${ECHO_T}$LD" >&6
13719 else
13720 echo "$as_me:$LINENO: result: no" >&5
13721 echo "${ECHO_T}no" >&6
13722 fi
13723 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13724 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13725 { (exit 1); exit 1; }; }
13726 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13727 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13728 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13732 case `$LD -v 2>&1 </dev/null` in
13733 *GNU* | *'with BFD'*)
13734 lt_cv_prog_gnu_ld=yes
13735 ;;
13736 *)
13737 lt_cv_prog_gnu_ld=no
13738 ;;
13739 esac
13740 fi
13741 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13742 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13743 with_gnu_ld=$lt_cv_prog_gnu_ld
13744
13745
13746
13747 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13748 # archiving commands below assume that GNU ld is being used.
13749 if test "$with_gnu_ld" = yes; then
13750 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13751 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13752
13753 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13754 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13755
13756 # If archive_cmds runs LD, not CC, wlarc should be empty
13757 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13758 # investigate it a little bit more. (MM)
13759 wlarc='${wl}'
13760
13761 # ancient GNU ld didn't support --whole-archive et. al.
13762 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13763 grep 'no-whole-archive' > /dev/null; then
13764 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13765 else
13766 whole_archive_flag_spec_CXX=
13767 fi
13768 else
13769 with_gnu_ld=no
13770 wlarc=
13771
13772 # A generic and very simple default shared library creation
13773 # command for GNU C++ for the case where it uses the native
13774 # linker, instead of GNU ld. If possible, this setting should
13775 # overridden to take advantage of the native linker features on
13776 # the platform it is being used on.
13777 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13778 fi
13779
13780 # Commands to make compiler produce verbose output that lists
13781 # what "hidden" libraries, object files and flags are used when
13782 # linking a shared library.
13783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13784
13785 else
13786 GXX=no
13787 with_gnu_ld=no
13788 wlarc=
13789 fi
13790
13791 # PORTME: fill in a description of your system's C++ link characteristics
13792 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13793 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13794 ld_shlibs_CXX=yes
13795 case $host_os in
13796 aix3*)
13797 # FIXME: insert proper C++ library support
13798 ld_shlibs_CXX=no
13799 ;;
13800 aix4* | aix5*)
13801 if test "$host_cpu" = ia64; then
13802 # On IA64, the linker does run time linking by default, so we don't
13803 # have to do anything special.
13804 aix_use_runtimelinking=no
13805 exp_sym_flag='-Bexport'
13806 no_entry_flag=""
13807 else
13808 aix_use_runtimelinking=no
13809
13810 # Test if we are trying to use run time linking or normal
13811 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13812 # need to do runtime linking.
13813 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13814 for ld_flag in $LDFLAGS; do
13815 case $ld_flag in
13816 *-brtl*)
13817 aix_use_runtimelinking=yes
13818 break
13819 ;;
13820 esac
13821 done
13822 esac
13823
13824 exp_sym_flag='-bexport'
13825 no_entry_flag='-bnoentry'
13826 fi
13827
13828 # When large executables or shared objects are built, AIX ld can
13829 # have problems creating the table of contents. If linking a library
13830 # or program results in "error TOC overflow" add -mminimal-toc to
13831 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13832 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13833
13834 archive_cmds_CXX=''
13835 hardcode_direct_CXX=yes
13836 hardcode_libdir_separator_CXX=':'
13837 link_all_deplibs_CXX=yes
13838
13839 if test "$GXX" = yes; then
13840 case $host_os in aix4.012|aix4.012.*)
13841 # We only want to do this on AIX 4.2 and lower, the check
13842 # below for broken collect2 doesn't work under 4.3+
13843 collect2name=`${CC} -print-prog-name=collect2`
13844 if test -f "$collect2name" && \
13845 strings "$collect2name" | grep resolve_lib_name >/dev/null
13846 then
13847 # We have reworked collect2
13848 hardcode_direct_CXX=yes
13849 else
13850 # We have old collect2
13851 hardcode_direct_CXX=unsupported
13852 # It fails to find uninstalled libraries when the uninstalled
13853 # path is not listed in the libpath. Setting hardcode_minus_L
13854 # to unsupported forces relinking
13855 hardcode_minus_L_CXX=yes
13856 hardcode_libdir_flag_spec_CXX='-L$libdir'
13857 hardcode_libdir_separator_CXX=
13858 fi
13859 esac
13860 shared_flag='-shared'
13861 else
13862 # not using gcc
13863 if test "$host_cpu" = ia64; then
13864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13865 # chokes on -Wl,-G. The following line is correct:
13866 shared_flag='-G'
13867 else
13868 if test "$aix_use_runtimelinking" = yes; then
13869 shared_flag='${wl}-G'
13870 else
13871 shared_flag='${wl}-bM:SRE'
13872 fi
13873 fi
13874 fi
13875
13876 # It seems that -bexpall does not export symbols beginning with
13877 # underscore (_), so it is better to generate a list of symbols to export.
13878 always_export_symbols_CXX=yes
13879 if test "$aix_use_runtimelinking" = yes; then
13880 # Warning - without using the other runtime loading flags (-brtl),
13881 # -berok will link without error, but may produce a broken library.
13882 allow_undefined_flag_CXX='-berok'
13883 # Determine the default libpath from the value encoded in an empty executable.
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890
13891 int
13892 main ()
13893 {
13894
13895 ;
13896 return 0;
13897 }
13898 _ACEOF
13899 rm -f conftest.$ac_objext conftest$ac_exeext
13900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13901 (eval $ac_link) 2>conftest.er1
13902 ac_status=$?
13903 grep -v '^ *+' conftest.er1 >conftest.err
13904 rm -f conftest.er1
13905 cat conftest.err >&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } &&
13908 { ac_try='test -z "$ac_cxx_werror_flag"
13909 || test ! -s conftest.err'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; } &&
13915 { ac_try='test -s conftest$ac_exeext'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; }; then
13921
13922 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13923 }'`
13924 # Check for a 64-bit object if we didn't find anything.
13925 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13926 }'`; fi
13927 else
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13930
13931 fi
13932 rm -f conftest.err conftest.$ac_objext \
13933 conftest$ac_exeext conftest.$ac_ext
13934 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13935
13936 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13937
13938 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13939 else
13940 if test "$host_cpu" = ia64; then
13941 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13942 allow_undefined_flag_CXX="-z nodefs"
13943 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13944 else
13945 # Determine the default libpath from the value encoded in an empty executable.
13946 cat >conftest.$ac_ext <<_ACEOF
13947 /* confdefs.h. */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13952
13953 int
13954 main ()
13955 {
13956
13957 ;
13958 return 0;
13959 }
13960 _ACEOF
13961 rm -f conftest.$ac_objext conftest$ac_exeext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13963 (eval $ac_link) 2>conftest.er1
13964 ac_status=$?
13965 grep -v '^ *+' conftest.er1 >conftest.err
13966 rm -f conftest.er1
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
13970 { ac_try='test -z "$ac_cxx_werror_flag"
13971 || test ! -s conftest.err'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try='test -s conftest$ac_exeext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983
13984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13985 }'`
13986 # Check for a 64-bit object if we didn't find anything.
13987 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13988 }'`; fi
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 fi
13994 rm -f conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13997
13998 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13999 # Warning - without using the other run time loading flags,
14000 # -berok will link without error, but may produce a broken library.
14001 no_undefined_flag_CXX=' ${wl}-bernotok'
14002 allow_undefined_flag_CXX=' ${wl}-berok'
14003 # -bexpall does not export symbols beginning with underscore (_)
14004 always_export_symbols_CXX=yes
14005 # Exported symbols can be pulled into shared objects from archives
14006 whole_archive_flag_spec_CXX=' '
14007 archive_cmds_need_lc_CXX=yes
14008 # This is similar to how AIX traditionally builds it's shared libraries.
14009 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14010 fi
14011 fi
14012 ;;
14013 chorus*)
14014 case $cc_basename in
14015 *)
14016 # FIXME: insert proper C++ library support
14017 ld_shlibs_CXX=no
14018 ;;
14019 esac
14020 ;;
14021
14022
14023 cygwin* | mingw* | pw32*)
14024 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14025 # as there is no search path for DLLs.
14026 hardcode_libdir_flag_spec_CXX='-L$libdir'
14027 allow_undefined_flag_CXX=unsupported
14028 always_export_symbols_CXX=no
14029 enable_shared_with_static_runtimes_CXX=yes
14030
14031 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14032 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14033 # If the export-symbols file already is a .def file (1st line
14034 # is EXPORTS), use it as is; otherwise, prepend...
14035 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14036 cp $export_symbols $output_objdir/$soname.def;
14037 else
14038 echo EXPORTS > $output_objdir/$soname.def;
14039 cat $export_symbols >> $output_objdir/$soname.def;
14040 fi~
14041 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14042 else
14043 ld_shlibs_CXX=no
14044 fi
14045 ;;
14046 darwin* | rhapsody*)
14047 case "$host_os" in
14048 rhapsody* | darwin1.[012])
14049 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
14050 ;;
14051 *) # Darwin 1.3 on
14052 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14053 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14054 else
14055 case ${MACOSX_DEPLOYMENT_TARGET} in
14056 10.[012])
14057 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14058 ;;
14059 10.*)
14060 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
14061 ;;
14062 esac
14063 fi
14064 ;;
14065 esac
14066 archive_cmds_need_lc_CXX=no
14067 hardcode_direct_CXX=no
14068 hardcode_automatic_CXX=yes
14069 hardcode_shlibpath_var_CXX=unsupported
14070 whole_archive_flag_spec_CXX=''
14071 link_all_deplibs_CXX=yes
14072
14073 if test "$GXX" = yes ; then
14074 lt_int_apple_cc_single_mod=no
14075 output_verbose_link_cmd='echo'
14076 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
14077 lt_int_apple_cc_single_mod=yes
14078 fi
14079 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14080 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14081 else
14082 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14083 fi
14084 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14085 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14086 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14087 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14088 else
14089 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14090 fi
14091 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14092 else
14093 case "$cc_basename" in
14094 xlc*)
14095 output_verbose_link_cmd='echo'
14096 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14097 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14098 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14099 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14100 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14101 ;;
14102 *)
14103 ld_shlibs_CXX=no
14104 ;;
14105 esac
14106 fi
14107 ;;
14108
14109 dgux*)
14110 case $cc_basename in
14111 ec++)
14112 # FIXME: insert proper C++ library support
14113 ld_shlibs_CXX=no
14114 ;;
14115 ghcx)
14116 # Green Hills C++ Compiler
14117 # FIXME: insert proper C++ library support
14118 ld_shlibs_CXX=no
14119 ;;
14120 *)
14121 # FIXME: insert proper C++ library support
14122 ld_shlibs_CXX=no
14123 ;;
14124 esac
14125 ;;
14126 freebsd12*)
14127 # C++ shared libraries reported to be fairly broken before switch to ELF
14128 ld_shlibs_CXX=no
14129 ;;
14130 freebsd-elf*)
14131 archive_cmds_need_lc_CXX=no
14132 ;;
14133 freebsd* | kfreebsd*-gnu)
14134 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14135 # conventions
14136 ld_shlibs_CXX=yes
14137 ;;
14138 gnu*)
14139 ;;
14140 hpux9*)
14141 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14142 hardcode_libdir_separator_CXX=:
14143 export_dynamic_flag_spec_CXX='${wl}-E'
14144 hardcode_direct_CXX=yes
14145 hardcode_minus_L_CXX=yes # Not in the search PATH,
14146 # but as the default
14147 # location of the library.
14148
14149 case $cc_basename in
14150 CC)
14151 # FIXME: insert proper C++ library support
14152 ld_shlibs_CXX=no
14153 ;;
14154 aCC)
14155 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14156 # Commands to make compiler produce verbose output that lists
14157 # what "hidden" libraries, object files and flags are used when
14158 # linking a shared library.
14159 #
14160 # There doesn't appear to be a way to prevent this compiler from
14161 # explicitly linking system object files so we need to strip them
14162 # from the output so that they don't get included in the library
14163 # dependencies.
14164 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14165 ;;
14166 *)
14167 if test "$GXX" = yes; then
14168 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14169 else
14170 # FIXME: insert proper C++ library support
14171 ld_shlibs_CXX=no
14172 fi
14173 ;;
14174 esac
14175 ;;
14176 hpux10*|hpux11*)
14177 if test $with_gnu_ld = no; then
14178 case "$host_cpu" in
14179 hppa*64*)
14180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14181 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
14182 hardcode_libdir_separator_CXX=:
14183 ;;
14184 ia64*)
14185 hardcode_libdir_flag_spec_CXX='-L$libdir'
14186 ;;
14187 *)
14188 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14189 hardcode_libdir_separator_CXX=:
14190 export_dynamic_flag_spec_CXX='${wl}-E'
14191 ;;
14192 esac
14193 fi
14194 case "$host_cpu" in
14195 hppa*64*)
14196 hardcode_direct_CXX=no
14197 hardcode_shlibpath_var_CXX=no
14198 ;;
14199 ia64*)
14200 hardcode_direct_CXX=no
14201 hardcode_shlibpath_var_CXX=no
14202 hardcode_minus_L_CXX=yes # Not in the search PATH,
14203 # but as the default
14204 # location of the library.
14205 ;;
14206 *)
14207 hardcode_direct_CXX=yes
14208 hardcode_minus_L_CXX=yes # Not in the search PATH,
14209 # but as the default
14210 # location of the library.
14211 ;;
14212 esac
14213
14214 case $cc_basename in
14215 CC)
14216 # FIXME: insert proper C++ library support
14217 ld_shlibs_CXX=no
14218 ;;
14219 aCC)
14220 case "$host_cpu" in
14221 hppa*64*|ia64*)
14222 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14223 ;;
14224 *)
14225 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14226 ;;
14227 esac
14228 # Commands to make compiler produce verbose output that lists
14229 # what "hidden" libraries, object files and flags are used when
14230 # linking a shared library.
14231 #
14232 # There doesn't appear to be a way to prevent this compiler from
14233 # explicitly linking system object files so we need to strip them
14234 # from the output so that they don't get included in the library
14235 # dependencies.
14236 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14237 ;;
14238 *)
14239 if test "$GXX" = yes; then
14240 if test $with_gnu_ld = no; then
14241 case "$host_cpu" in
14242 ia64*|hppa*64*)
14243 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14244 ;;
14245 *)
14246 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14247 ;;
14248 esac
14249 fi
14250 else
14251 # FIXME: insert proper C++ library support
14252 ld_shlibs_CXX=no
14253 fi
14254 ;;
14255 esac
14256 ;;
14257 irix5* | irix6*)
14258 case $cc_basename in
14259 CC)
14260 # SGI C++
14261 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14262
14263 # Archives containing C++ object files must be created using
14264 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14265 # necessary to make sure instantiated templates are included
14266 # in the archive.
14267 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14268 ;;
14269 *)
14270 if test "$GXX" = yes; then
14271 if test "$with_gnu_ld" = no; then
14272 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14273 else
14274 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
14275 fi
14276 fi
14277 link_all_deplibs_CXX=yes
14278 ;;
14279 esac
14280 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14281 hardcode_libdir_separator_CXX=:
14282 ;;
14283 linux*)
14284 case $cc_basename in
14285 KCC)
14286 # Kuck and Associates, Inc. (KAI) C++ Compiler
14287
14288 # KCC will only create a shared library if the output file
14289 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14290 # to its proper name (with version) after linking.
14291 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14292 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14293 # Commands to make compiler produce verbose output that lists
14294 # what "hidden" libraries, object files and flags are used when
14295 # linking a shared library.
14296 #
14297 # There doesn't appear to be a way to prevent this compiler from
14298 # explicitly linking system object files so we need to strip them
14299 # from the output so that they don't get included in the library
14300 # dependencies.
14301 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14302
14303 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14305
14306 # Archives containing C++ object files must be created using
14307 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14308 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14309 ;;
14310 icpc)
14311 # Intel C++
14312 with_gnu_ld=yes
14313 # version 8.0 and above of icpc choke on multiply defined symbols
14314 # if we add $predep_objects and $postdep_objects, however 7.1 and
14315 # earlier do not add the objects themselves.
14316 case `$CC -V 2>&1` in
14317 *"Version 7."*)
14318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14319 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14320 ;;
14321 *) # Version 8.0 or newer
14322 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14323 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14324 ;;
14325 esac
14326 archive_cmds_need_lc_CXX=no
14327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14329 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14330 ;;
14331 cxx)
14332 # Compaq C++
14333 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14334 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14335
14336 runpath_var=LD_RUN_PATH
14337 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14338 hardcode_libdir_separator_CXX=:
14339
14340 # Commands to make compiler produce verbose output that lists
14341 # what "hidden" libraries, object files and flags are used when
14342 # linking a shared library.
14343 #
14344 # There doesn't appear to be a way to prevent this compiler from
14345 # explicitly linking system object files so we need to strip them
14346 # from the output so that they don't get included in the library
14347 # dependencies.
14348 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14349 ;;
14350 esac
14351 ;;
14352 lynxos*)
14353 # FIXME: insert proper C++ library support
14354 ld_shlibs_CXX=no
14355 ;;
14356 m88k*)
14357 # FIXME: insert proper C++ library support
14358 ld_shlibs_CXX=no
14359 ;;
14360 mvs*)
14361 case $cc_basename in
14362 cxx)
14363 # FIXME: insert proper C++ library support
14364 ld_shlibs_CXX=no
14365 ;;
14366 *)
14367 # FIXME: insert proper C++ library support
14368 ld_shlibs_CXX=no
14369 ;;
14370 esac
14371 ;;
14372 netbsd*)
14373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14374 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14375 wlarc=
14376 hardcode_libdir_flag_spec_CXX='-R$libdir'
14377 hardcode_direct_CXX=yes
14378 hardcode_shlibpath_var_CXX=no
14379 fi
14380 # Workaround some broken pre-1.5 toolchains
14381 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14382 ;;
14383 openbsd2*)
14384 # C++ shared libraries are fairly broken
14385 ld_shlibs_CXX=no
14386 ;;
14387 openbsd*)
14388 hardcode_direct_CXX=yes
14389 hardcode_shlibpath_var_CXX=no
14390 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14391 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14393 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14394 export_dynamic_flag_spec_CXX='${wl}-E'
14395 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14396 fi
14397 output_verbose_link_cmd='echo'
14398 ;;
14399 osf3*)
14400 case $cc_basename in
14401 KCC)
14402 # Kuck and Associates, Inc. (KAI) C++ Compiler
14403
14404 # KCC will only create a shared library if the output file
14405 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14406 # to its proper name (with version) after linking.
14407 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14408
14409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14410 hardcode_libdir_separator_CXX=:
14411
14412 # Archives containing C++ object files must be created using
14413 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14414 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14415
14416 ;;
14417 RCC)
14418 # Rational C++ 2.4.1
14419 # FIXME: insert proper C++ library support
14420 ld_shlibs_CXX=no
14421 ;;
14422 cxx)
14423 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14424 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14425
14426 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14427 hardcode_libdir_separator_CXX=:
14428
14429 # Commands to make compiler produce verbose output that lists
14430 # what "hidden" libraries, object files and flags are used when
14431 # linking a shared library.
14432 #
14433 # There doesn't appear to be a way to prevent this compiler from
14434 # explicitly linking system object files so we need to strip them
14435 # from the output so that they don't get included in the library
14436 # dependencies.
14437 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14438 ;;
14439 *)
14440 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14441 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14442 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14443
14444 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14445 hardcode_libdir_separator_CXX=:
14446
14447 # Commands to make compiler produce verbose output that lists
14448 # what "hidden" libraries, object files and flags are used when
14449 # linking a shared library.
14450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14451
14452 else
14453 # FIXME: insert proper C++ library support
14454 ld_shlibs_CXX=no
14455 fi
14456 ;;
14457 esac
14458 ;;
14459 osf4* | osf5*)
14460 case $cc_basename in
14461 KCC)
14462 # Kuck and Associates, Inc. (KAI) C++ Compiler
14463
14464 # KCC will only create a shared library if the output file
14465 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14466 # to its proper name (with version) after linking.
14467 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14468
14469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14470 hardcode_libdir_separator_CXX=:
14471
14472 # Archives containing C++ object files must be created using
14473 # the KAI C++ compiler.
14474 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14475 ;;
14476 RCC)
14477 # Rational C++ 2.4.1
14478 # FIXME: insert proper C++ library support
14479 ld_shlibs_CXX=no
14480 ;;
14481 cxx)
14482 allow_undefined_flag_CXX=' -expect_unresolved \*'
14483 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14484 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14485 echo "-hidden">> $lib.exp~
14486 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
14487 $rm $lib.exp'
14488
14489 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14490 hardcode_libdir_separator_CXX=:
14491
14492 # Commands to make compiler produce verbose output that lists
14493 # what "hidden" libraries, object files and flags are used when
14494 # linking a shared library.
14495 #
14496 # There doesn't appear to be a way to prevent this compiler from
14497 # explicitly linking system object files so we need to strip them
14498 # from the output so that they don't get included in the library
14499 # dependencies.
14500 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14501 ;;
14502 *)
14503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14504 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14505 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14506
14507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14508 hardcode_libdir_separator_CXX=:
14509
14510 # Commands to make compiler produce verbose output that lists
14511 # what "hidden" libraries, object files and flags are used when
14512 # linking a shared library.
14513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14514
14515 else
14516 # FIXME: insert proper C++ library support
14517 ld_shlibs_CXX=no
14518 fi
14519 ;;
14520 esac
14521 ;;
14522 psos*)
14523 # FIXME: insert proper C++ library support
14524 ld_shlibs_CXX=no
14525 ;;
14526 sco*)
14527 archive_cmds_need_lc_CXX=no
14528 case $cc_basename in
14529 CC)
14530 # FIXME: insert proper C++ library support
14531 ld_shlibs_CXX=no
14532 ;;
14533 *)
14534 # FIXME: insert proper C++ library support
14535 ld_shlibs_CXX=no
14536 ;;
14537 esac
14538 ;;
14539 sunos4*)
14540 case $cc_basename in
14541 CC)
14542 # Sun C++ 4.x
14543 # FIXME: insert proper C++ library support
14544 ld_shlibs_CXX=no
14545 ;;
14546 lcc)
14547 # Lucid
14548 # FIXME: insert proper C++ library support
14549 ld_shlibs_CXX=no
14550 ;;
14551 *)
14552 # FIXME: insert proper C++ library support
14553 ld_shlibs_CXX=no
14554 ;;
14555 esac
14556 ;;
14557 solaris*)
14558 case $cc_basename in
14559 CC)
14560 # Sun C++ 4.2, 5.x and Centerline C++
14561 no_undefined_flag_CXX=' -zdefs'
14562 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14563 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14564 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14565
14566 hardcode_libdir_flag_spec_CXX='-R$libdir'
14567 hardcode_shlibpath_var_CXX=no
14568 case $host_os in
14569 solaris2.0-5 | solaris2.0-5.*) ;;
14570 *)
14571 # The C++ compiler is used as linker so we must use $wl
14572 # flag to pass the commands to the underlying system
14573 # linker.
14574 # Supported since Solaris 2.6 (maybe 2.5.1?)
14575 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14576 ;;
14577 esac
14578 link_all_deplibs_CXX=yes
14579
14580 # Commands to make compiler produce verbose output that lists
14581 # what "hidden" libraries, object files and flags are used when
14582 # linking a shared library.
14583 #
14584 # There doesn't appear to be a way to prevent this compiler from
14585 # explicitly linking system object files so we need to strip them
14586 # from the output so that they don't get included in the library
14587 # dependencies.
14588 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14589
14590 # Archives containing C++ object files must be created using
14591 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14592 # necessary to make sure instantiated templates are included
14593 # in the archive.
14594 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14595 ;;
14596 gcx)
14597 # Green Hills C++ Compiler
14598 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14599
14600 # The C++ compiler must be used to create the archive.
14601 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14602 ;;
14603 *)
14604 # GNU C++ compiler with Solaris linker
14605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14606 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14607 if $CC --version | grep -v '^2\.7' > /dev/null; then
14608 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14609 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14610 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14611
14612 # Commands to make compiler produce verbose output that lists
14613 # what "hidden" libraries, object files and flags are used when
14614 # linking a shared library.
14615 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14616 else
14617 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14618 # platform.
14619 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14620 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14621 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14622
14623 # Commands to make compiler produce verbose output that lists
14624 # what "hidden" libraries, object files and flags are used when
14625 # linking a shared library.
14626 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14627 fi
14628
14629 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14630 fi
14631 ;;
14632 esac
14633 ;;
14634 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14635 archive_cmds_need_lc_CXX=no
14636 ;;
14637 tandem*)
14638 case $cc_basename in
14639 NCC)
14640 # NonStop-UX NCC 3.20
14641 # FIXME: insert proper C++ library support
14642 ld_shlibs_CXX=no
14643 ;;
14644 *)
14645 # FIXME: insert proper C++ library support
14646 ld_shlibs_CXX=no
14647 ;;
14648 esac
14649 ;;
14650 vxworks*)
14651 # FIXME: insert proper C++ library support
14652 ld_shlibs_CXX=no
14653 ;;
14654 *)
14655 # FIXME: insert proper C++ library support
14656 ld_shlibs_CXX=no
14657 ;;
14658 esac
14659 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14660 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14661 test "$ld_shlibs_CXX" = no && can_build_shared=no
14662
14663 GCC_CXX="$GXX"
14664 LD_CXX="$LD"
14665
14666
14667 cat > conftest.$ac_ext <<EOF
14668 class Foo
14669 {
14670 public:
14671 Foo (void) { a = 0; }
14672 private:
14673 int a;
14674 };
14675 EOF
14676
14677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; then
14682 # Parse the compiler output and extract the necessary
14683 # objects, libraries and library flags.
14684
14685 # Sentinel used to keep track of whether or not we are before
14686 # the conftest object file.
14687 pre_test_object_deps_done=no
14688
14689 # The `*' in the case matches for architectures that use `case' in
14690 # $output_verbose_cmd can trigger glob expansion during the loop
14691 # eval without this substitution.
14692 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14693
14694 for p in `eval $output_verbose_link_cmd`; do
14695 case $p in
14696
14697 -L* | -R* | -l*)
14698 # Some compilers place space between "-{L,R}" and the path.
14699 # Remove the space.
14700 if test $p = "-L" \
14701 || test $p = "-R"; then
14702 prev=$p
14703 continue
14704 else
14705 prev=
14706 fi
14707
14708 if test "$pre_test_object_deps_done" = no; then
14709 case $p in
14710 -L* | -R*)
14711 # Internal compiler library paths should come after those
14712 # provided the user. The postdeps already come after the
14713 # user supplied libs so there is no need to process them.
14714 if test -z "$compiler_lib_search_path_CXX"; then
14715 compiler_lib_search_path_CXX="${prev}${p}"
14716 else
14717 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14718 fi
14719 ;;
14720 # The "-l" case would never come before the object being
14721 # linked, so don't bother handling this case.
14722 esac
14723 else
14724 if test -z "$postdeps_CXX"; then
14725 postdeps_CXX="${prev}${p}"
14726 else
14727 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14728 fi
14729 fi
14730 ;;
14731
14732 *.$objext)
14733 # This assumes that the test object file only shows up
14734 # once in the compiler output.
14735 if test "$p" = "conftest.$objext"; then
14736 pre_test_object_deps_done=yes
14737 continue
14738 fi
14739
14740 if test "$pre_test_object_deps_done" = no; then
14741 if test -z "$predep_objects_CXX"; then
14742 predep_objects_CXX="$p"
14743 else
14744 predep_objects_CXX="$predep_objects_CXX $p"
14745 fi
14746 else
14747 if test -z "$postdep_objects_CXX"; then
14748 postdep_objects_CXX="$p"
14749 else
14750 postdep_objects_CXX="$postdep_objects_CXX $p"
14751 fi
14752 fi
14753 ;;
14754
14755 *) ;; # Ignore the rest.
14756
14757 esac
14758 done
14759
14760 # Clean up.
14761 rm -f a.out a.exe
14762 else
14763 echo "libtool.m4: error: problem compiling CXX test program"
14764 fi
14765
14766 $rm -f confest.$objext
14767
14768 case " $postdeps_CXX " in
14769 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14770 esac
14771
14772 lt_prog_compiler_wl_CXX=
14773 lt_prog_compiler_pic_CXX=
14774 lt_prog_compiler_static_CXX=
14775
14776 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14777 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14778
14779 # C++ specific cases for pic, static, wl, etc.
14780 if test "$GXX" = yes; then
14781 lt_prog_compiler_wl_CXX='-Wl,'
14782 lt_prog_compiler_static_CXX='-static'
14783
14784 case $host_os in
14785 aix*)
14786 # All AIX code is PIC.
14787 if test "$host_cpu" = ia64; then
14788 # AIX 5 now supports IA64 processor
14789 lt_prog_compiler_static_CXX='-Bstatic'
14790 fi
14791 ;;
14792 amigaos*)
14793 # FIXME: we need at least 68020 code to build shared libraries, but
14794 # adding the `-m68020' flag to GCC prevents building anything better,
14795 # like `-m68040'.
14796 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14797 ;;
14798 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14799 # PIC is the default for these OSes.
14800 ;;
14801 mingw* | os2* | pw32*)
14802 # This hack is so that the source file can tell whether it is being
14803 # built for inclusion in a dll (and should export symbols for example).
14804 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14805 ;;
14806 darwin* | rhapsody*)
14807 # PIC is the default on this platform
14808 # Common symbols not allowed in MH_DYLIB files
14809 lt_prog_compiler_pic_CXX='-fno-common'
14810 ;;
14811 *djgpp*)
14812 # DJGPP does not support shared libraries at all
14813 lt_prog_compiler_pic_CXX=
14814 ;;
14815 sysv4*MP*)
14816 if test -d /usr/nec; then
14817 lt_prog_compiler_pic_CXX=-Kconform_pic
14818 fi
14819 ;;
14820 hpux*)
14821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14822 # not for PA HP-UX.
14823 case "$host_cpu" in
14824 hppa*64*|ia64*)
14825 ;;
14826 *)
14827 lt_prog_compiler_pic_CXX='-fPIC'
14828 ;;
14829 esac
14830 ;;
14831 *)
14832 lt_prog_compiler_pic_CXX='-fPIC'
14833 ;;
14834 esac
14835 else
14836 case $host_os in
14837 aix4* | aix5*)
14838 # All AIX code is PIC.
14839 if test "$host_cpu" = ia64; then
14840 # AIX 5 now supports IA64 processor
14841 lt_prog_compiler_static_CXX='-Bstatic'
14842 else
14843 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14844 fi
14845 ;;
14846 chorus*)
14847 case $cc_basename in
14848 cxch68)
14849 # Green Hills C++ Compiler
14850 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14851 ;;
14852 esac
14853 ;;
14854 darwin*)
14855 # PIC is the default on this platform
14856 # Common symbols not allowed in MH_DYLIB files
14857 case "$cc_basename" in
14858 xlc*)
14859 lt_prog_compiler_pic_CXX='-qnocommon'
14860 lt_prog_compiler_wl_CXX='-Wl,'
14861 ;;
14862 esac
14863 ;;
14864 dgux*)
14865 case $cc_basename in
14866 ec++)
14867 lt_prog_compiler_pic_CXX='-KPIC'
14868 ;;
14869 ghcx)
14870 # Green Hills C++ Compiler
14871 lt_prog_compiler_pic_CXX='-pic'
14872 ;;
14873 *)
14874 ;;
14875 esac
14876 ;;
14877 freebsd* | kfreebsd*-gnu)
14878 # FreeBSD uses GNU C++
14879 ;;
14880 hpux9* | hpux10* | hpux11*)
14881 case $cc_basename in
14882 CC)
14883 lt_prog_compiler_wl_CXX='-Wl,'
14884 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14885 if test "$host_cpu" != ia64; then
14886 lt_prog_compiler_pic_CXX='+Z'
14887 fi
14888 ;;
14889 aCC)
14890 lt_prog_compiler_wl_CXX='-Wl,'
14891 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14892 case "$host_cpu" in
14893 hppa*64*|ia64*)
14894 # +Z the default
14895 ;;
14896 *)
14897 lt_prog_compiler_pic_CXX='+Z'
14898 ;;
14899 esac
14900 ;;
14901 *)
14902 ;;
14903 esac
14904 ;;
14905 irix5* | irix6* | nonstopux*)
14906 case $cc_basename in
14907 CC)
14908 lt_prog_compiler_wl_CXX='-Wl,'
14909 lt_prog_compiler_static_CXX='-non_shared'
14910 # CC pic flag -KPIC is the default.
14911 ;;
14912 *)
14913 ;;
14914 esac
14915 ;;
14916 linux*)
14917 case $cc_basename in
14918 KCC)
14919 # KAI C++ Compiler
14920 lt_prog_compiler_wl_CXX='--backend -Wl,'
14921 lt_prog_compiler_pic_CXX='-fPIC'
14922 ;;
14923 icpc)
14924 # Intel C++
14925 lt_prog_compiler_wl_CXX='-Wl,'
14926 lt_prog_compiler_pic_CXX='-KPIC'
14927 lt_prog_compiler_static_CXX='-static'
14928 ;;
14929 cxx)
14930 # Compaq C++
14931 # Make sure the PIC flag is empty. It appears that all Alpha
14932 # Linux and Compaq Tru64 Unix objects are PIC.
14933 lt_prog_compiler_pic_CXX=
14934 lt_prog_compiler_static_CXX='-non_shared'
14935 ;;
14936 *)
14937 ;;
14938 esac
14939 ;;
14940 lynxos*)
14941 ;;
14942 m88k*)
14943 ;;
14944 mvs*)
14945 case $cc_basename in
14946 cxx)
14947 lt_prog_compiler_pic_CXX='-W c,exportall'
14948 ;;
14949 *)
14950 ;;
14951 esac
14952 ;;
14953 netbsd*)
14954 ;;
14955 osf3* | osf4* | osf5*)
14956 case $cc_basename in
14957 KCC)
14958 lt_prog_compiler_wl_CXX='--backend -Wl,'
14959 ;;
14960 RCC)
14961 # Rational C++ 2.4.1
14962 lt_prog_compiler_pic_CXX='-pic'
14963 ;;
14964 cxx)
14965 # Digital/Compaq C++
14966 lt_prog_compiler_wl_CXX='-Wl,'
14967 # Make sure the PIC flag is empty. It appears that all Alpha
14968 # Linux and Compaq Tru64 Unix objects are PIC.
14969 lt_prog_compiler_pic_CXX=
14970 lt_prog_compiler_static_CXX='-non_shared'
14971 ;;
14972 *)
14973 ;;
14974 esac
14975 ;;
14976 psos*)
14977 ;;
14978 sco*)
14979 case $cc_basename in
14980 CC)
14981 lt_prog_compiler_pic_CXX='-fPIC'
14982 ;;
14983 *)
14984 ;;
14985 esac
14986 ;;
14987 solaris*)
14988 case $cc_basename in
14989 CC)
14990 # Sun C++ 4.2, 5.x and Centerline C++
14991 lt_prog_compiler_pic_CXX='-KPIC'
14992 lt_prog_compiler_static_CXX='-Bstatic'
14993 lt_prog_compiler_wl_CXX='-Qoption ld '
14994 ;;
14995 gcx)
14996 # Green Hills C++ Compiler
14997 lt_prog_compiler_pic_CXX='-PIC'
14998 ;;
14999 *)
15000 ;;
15001 esac
15002 ;;
15003 sunos4*)
15004 case $cc_basename in
15005 CC)
15006 # Sun C++ 4.x
15007 lt_prog_compiler_pic_CXX='-pic'
15008 lt_prog_compiler_static_CXX='-Bstatic'
15009 ;;
15010 lcc)
15011 # Lucid
15012 lt_prog_compiler_pic_CXX='-pic'
15013 ;;
15014 *)
15015 ;;
15016 esac
15017 ;;
15018 tandem*)
15019 case $cc_basename in
15020 NCC)
15021 # NonStop-UX NCC 3.20
15022 lt_prog_compiler_pic_CXX='-KPIC'
15023 ;;
15024 *)
15025 ;;
15026 esac
15027 ;;
15028 unixware*)
15029 ;;
15030 vxworks*)
15031 ;;
15032 *)
15033 lt_prog_compiler_can_build_shared_CXX=no
15034 ;;
15035 esac
15036 fi
15037
15038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15039 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
15040
15041 #
15042 # Check to make sure the PIC flag actually works.
15043 #
15044 if test -n "$lt_prog_compiler_pic_CXX"; then
15045
15046 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
15048 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 else
15051 lt_prog_compiler_pic_works_CXX=no
15052 ac_outfile=conftest.$ac_objext
15053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15054 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15055 # Insert the option either (1) after the last *FLAGS variable, or
15056 # (2) before a word containing "conftest.", or (3) at the end.
15057 # Note that $ac_compile itself does not contain backslashes and begins
15058 # with a dollar sign (not a hyphen), so the echo should work correctly.
15059 # The option is referenced via a variable to avoid confusing sed.
15060 lt_compile=`echo "$ac_compile" | $SED \
15061 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15063 -e 's:$: $lt_compiler_flag:'`
15064 (eval echo "\"\$as_me:15064: $lt_compile\"" >&5)
15065 (eval "$lt_compile" 2>conftest.err)
15066 ac_status=$?
15067 cat conftest.err >&5
15068 echo "$as_me:15068: \$? = $ac_status" >&5
15069 if (exit $ac_status) && test -s "$ac_outfile"; then
15070 # The compiler can only warn and ignore the option if not recognized
15071 # So say no if there are warnings
15072 if test ! -s conftest.err; then
15073 lt_prog_compiler_pic_works_CXX=yes
15074 fi
15075 fi
15076 $rm conftest*
15077
15078 fi
15079 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15080 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
15081
15082 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15083 case $lt_prog_compiler_pic_CXX in
15084 "" | " "*) ;;
15085 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15086 esac
15087 else
15088 lt_prog_compiler_pic_CXX=
15089 lt_prog_compiler_can_build_shared_CXX=no
15090 fi
15091
15092 fi
15093 case "$host_os" in
15094 # For platforms which do not support PIC, -DPIC is meaningless:
15095 *djgpp*)
15096 lt_prog_compiler_pic_CXX=
15097 ;;
15098 *)
15099 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15100 ;;
15101 esac
15102
15103 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15105 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108 lt_cv_prog_compiler_c_o_CXX=no
15109 $rm -r conftest 2>/dev/null
15110 mkdir conftest
15111 cd conftest
15112 mkdir out
15113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15114
15115 lt_compiler_flag="-o out/conftest2.$ac_objext"
15116 # Insert the option either (1) after the last *FLAGS variable, or
15117 # (2) before a word containing "conftest.", or (3) at the end.
15118 # Note that $ac_compile itself does not contain backslashes and begins
15119 # with a dollar sign (not a hyphen), so the echo should work correctly.
15120 lt_compile=`echo "$ac_compile" | $SED \
15121 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15123 -e 's:$: $lt_compiler_flag:'`
15124 (eval echo "\"\$as_me:15124: $lt_compile\"" >&5)
15125 (eval "$lt_compile" 2>out/conftest.err)
15126 ac_status=$?
15127 cat out/conftest.err >&5
15128 echo "$as_me:15128: \$? = $ac_status" >&5
15129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15130 then
15131 # The compiler can only warn and ignore the option if not recognized
15132 # So say no if there are warnings
15133 if test ! -s out/conftest.err; then
15134 lt_cv_prog_compiler_c_o_CXX=yes
15135 fi
15136 fi
15137 chmod u+w .
15138 $rm conftest*
15139 # SGI C++ compiler will create directory out/ii_files/ for
15140 # template instantiation
15141 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15142 $rm out/* && rmdir out
15143 cd ..
15144 rmdir conftest
15145 $rm conftest*
15146
15147 fi
15148 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15150
15151
15152 hard_links="nottested"
15153 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15154 # do not overwrite the value of need_locks provided by the user
15155 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15157 hard_links=yes
15158 $rm conftest*
15159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15160 touch conftest.a
15161 ln conftest.a conftest.b 2>&5 || hard_links=no
15162 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15163 echo "$as_me:$LINENO: result: $hard_links" >&5
15164 echo "${ECHO_T}$hard_links" >&6
15165 if test "$hard_links" = no; then
15166 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15168 need_locks=warn
15169 fi
15170 else
15171 need_locks=no
15172 fi
15173
15174 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15176
15177 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15178 case $host_os in
15179 aix4* | aix5*)
15180 # If we're using GNU nm, then we don't want the "-C" option.
15181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15183 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15184 else
15185 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15186 fi
15187 ;;
15188 pw32*)
15189 export_symbols_cmds_CXX="$ltdll_cmds"
15190 ;;
15191 cygwin* | mingw*)
15192 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15193 ;;
15194 *)
15195 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15196 ;;
15197 esac
15198
15199 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15200 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15201 test "$ld_shlibs_CXX" = no && can_build_shared=no
15202
15203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15204 if test "$GCC" = yes; then
15205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15206 fi
15207
15208 #
15209 # Do we need to explicitly link libc?
15210 #
15211 case "x$archive_cmds_need_lc_CXX" in
15212 x|xyes)
15213 # Assume -lc should be added
15214 archive_cmds_need_lc_CXX=yes
15215
15216 if test "$enable_shared" = yes && test "$GCC" = yes; then
15217 case $archive_cmds_CXX in
15218 *'~'*)
15219 # FIXME: we may have to deal with multi-command sequences.
15220 ;;
15221 '$CC '*)
15222 # Test whether the compiler implicitly links with -lc since on some
15223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15224 # to ld, don't add -lc before -lgcc.
15225 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15226 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15227 $rm conftest*
15228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15229
15230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15231 (eval $ac_compile) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } 2>conftest.err; then
15235 soname=conftest
15236 lib=conftest
15237 libobjs=conftest.$ac_objext
15238 deplibs=
15239 wl=$lt_prog_compiler_wl_CXX
15240 compiler_flags=-v
15241 linker_flags=-v
15242 verstring=
15243 output_objdir=.
15244 libname=conftest
15245 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15246 allow_undefined_flag_CXX=
15247 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15248 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }
15252 then
15253 archive_cmds_need_lc_CXX=no
15254 else
15255 archive_cmds_need_lc_CXX=yes
15256 fi
15257 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15258 else
15259 cat conftest.err 1>&5
15260 fi
15261 $rm conftest*
15262 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15263 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15264 ;;
15265 esac
15266 fi
15267 ;;
15268 esac
15269
15270 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15271 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15272 library_names_spec=
15273 libname_spec='lib$name'
15274 soname_spec=
15275 shrext_cmds=".so"
15276 postinstall_cmds=
15277 postuninstall_cmds=
15278 finish_cmds=
15279 finish_eval=
15280 shlibpath_var=
15281 shlibpath_overrides_runpath=unknown
15282 version_type=none
15283 dynamic_linker="$host_os ld.so"
15284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15285 if test "$GCC" = yes; then
15286 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15287 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15288 # if the path contains ";" then we assume it to be the separator
15289 # otherwise default to the standard path separator (i.e. ":") - it is
15290 # assumed that no part of a normal pathname contains ";" but that should
15291 # okay in the real world where ";" in dirpaths is itself problematic.
15292 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15293 else
15294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15295 fi
15296 else
15297 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15298 fi
15299 need_lib_prefix=unknown
15300 hardcode_into_libs=no
15301
15302 # when you set need_version to no, make sure it does not cause -set_version
15303 # flags to be left without arguments
15304 need_version=unknown
15305
15306 case $host_os in
15307 aix3*)
15308 version_type=linux
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15310 shlibpath_var=LIBPATH
15311
15312 # AIX 3 has no versioning support, so we append a major version to the name.
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 ;;
15315
15316 aix4* | aix5*)
15317 version_type=linux
15318 need_lib_prefix=no
15319 need_version=no
15320 hardcode_into_libs=yes
15321 if test "$host_cpu" = ia64; then
15322 # AIX 5 supports IA64
15323 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15324 shlibpath_var=LD_LIBRARY_PATH
15325 else
15326 # With GCC up to 2.95.x, collect2 would create an import file
15327 # for dependence libraries. The import file would start with
15328 # the line `#! .'. This would cause the generated library to
15329 # depend on `.', always an invalid library. This was fixed in
15330 # development snapshots of GCC prior to 3.0.
15331 case $host_os in
15332 aix4 | aix4.[01] | aix4.[01].*)
15333 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15334 echo ' yes '
15335 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15336 :
15337 else
15338 can_build_shared=no
15339 fi
15340 ;;
15341 esac
15342 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15343 # soname into executable. Probably we can add versioning support to
15344 # collect2, so additional links can be useful in future.
15345 if test "$aix_use_runtimelinking" = yes; then
15346 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15347 # instead of lib<name>.a to let people know that these are not
15348 # typical AIX shared libraries.
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 else
15351 # We preserve .a as extension for shared libraries through AIX4.2
15352 # and later when we are not doing run time linking.
15353 library_names_spec='${libname}${release}.a $libname.a'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 fi
15356 shlibpath_var=LIBPATH
15357 fi
15358 ;;
15359
15360 amigaos*)
15361 library_names_spec='$libname.ixlibrary $libname.a'
15362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15363 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'
15364 ;;
15365
15366 beos*)
15367 library_names_spec='${libname}${shared_ext}'
15368 dynamic_linker="$host_os ld.so"
15369 shlibpath_var=LIBRARY_PATH
15370 ;;
15371
15372 bsdi[45]*)
15373 version_type=linux
15374 need_version=no
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376 soname_spec='${libname}${release}${shared_ext}$major'
15377 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15378 shlibpath_var=LD_LIBRARY_PATH
15379 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15380 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15381 # the default ld.so.conf also contains /usr/contrib/lib and
15382 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15383 # libtool to hard-code these into programs
15384 ;;
15385
15386 cygwin* | mingw* | pw32*)
15387 version_type=windows
15388 shrext_cmds=".dll"
15389 need_version=no
15390 need_lib_prefix=no
15391
15392 case $GCC,$host_os in
15393 yes,cygwin* | yes,mingw* | yes,pw32*)
15394 library_names_spec='$libname.dll.a'
15395 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15396 postinstall_cmds='base_file=`basename \${file}`~
15397 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15398 dldir=$destdir/`dirname \$dlpath`~
15399 test -d \$dldir || mkdir -p \$dldir~
15400 $install_prog $dir/$dlname \$dldir/$dlname'
15401 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15402 dlpath=$dir/\$dldll~
15403 $rm \$dlpath'
15404 shlibpath_overrides_runpath=yes
15405
15406 case $host_os in
15407 cygwin*)
15408 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15409 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15410 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15411 ;;
15412 mingw*)
15413 # MinGW DLLs use traditional 'lib' prefix
15414 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15415 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15416 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15417 # It is most probably a Windows format PATH printed by
15418 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15419 # path with ; separators, and with drive letters. We can handle the
15420 # drive letters (cygwin fileutils understands them), so leave them,
15421 # especially as we might pass files found there to a mingw objdump,
15422 # which wouldn't understand a cygwinified path. Ahh.
15423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15424 else
15425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15426 fi
15427 ;;
15428 pw32*)
15429 # pw32 DLLs use 'pw' prefix rather than 'lib'
15430 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15431 ;;
15432 esac
15433 ;;
15434
15435 *)
15436 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15437 ;;
15438 esac
15439 dynamic_linker='Win32 ld.exe'
15440 # FIXME: first we should search . and the directory the executable is in
15441 shlibpath_var=PATH
15442 ;;
15443
15444 darwin* | rhapsody*)
15445 dynamic_linker="$host_os dyld"
15446 version_type=darwin
15447 need_lib_prefix=no
15448 need_version=no
15449 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15450 soname_spec='${libname}${release}${major}$shared_ext'
15451 shlibpath_overrides_runpath=yes
15452 shlibpath_var=DYLD_LIBRARY_PATH
15453 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15454 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15455 if test "$GCC" = yes; then
15456 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15457 else
15458 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15459 fi
15460 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15461 ;;
15462
15463 dgux*)
15464 version_type=linux
15465 need_lib_prefix=no
15466 need_version=no
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15468 soname_spec='${libname}${release}${shared_ext}$major'
15469 shlibpath_var=LD_LIBRARY_PATH
15470 ;;
15471
15472 freebsd1*)
15473 dynamic_linker=no
15474 ;;
15475
15476 kfreebsd*-gnu)
15477 version_type=linux
15478 need_lib_prefix=no
15479 need_version=no
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15481 soname_spec='${libname}${release}${shared_ext}$major'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 shlibpath_overrides_runpath=no
15484 hardcode_into_libs=yes
15485 dynamic_linker='GNU ld.so'
15486 ;;
15487
15488 freebsd*)
15489 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15490 version_type=freebsd-$objformat
15491 case $version_type in
15492 freebsd-elf*)
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15494 need_version=no
15495 need_lib_prefix=no
15496 ;;
15497 freebsd-*)
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15499 need_version=yes
15500 ;;
15501 esac
15502 shlibpath_var=LD_LIBRARY_PATH
15503 case $host_os in
15504 freebsd2*)
15505 shlibpath_overrides_runpath=yes
15506 ;;
15507 freebsd3.01* | freebsdelf3.01*)
15508 shlibpath_overrides_runpath=yes
15509 hardcode_into_libs=yes
15510 ;;
15511 *) # from 3.2 on
15512 shlibpath_overrides_runpath=no
15513 hardcode_into_libs=yes
15514 ;;
15515 esac
15516 ;;
15517
15518 gnu*)
15519 version_type=linux
15520 need_lib_prefix=no
15521 need_version=no
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 shlibpath_var=LD_LIBRARY_PATH
15525 hardcode_into_libs=yes
15526 ;;
15527
15528 hpux9* | hpux10* | hpux11*)
15529 # Give a soname corresponding to the major version so that dld.sl refuses to
15530 # link against other versions.
15531 version_type=sunos
15532 need_lib_prefix=no
15533 need_version=no
15534 case "$host_cpu" in
15535 ia64*)
15536 shrext_cmds='.so'
15537 hardcode_into_libs=yes
15538 dynamic_linker="$host_os dld.so"
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15542 soname_spec='${libname}${release}${shared_ext}$major'
15543 if test "X$HPUX_IA64_MODE" = X32; then
15544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15545 else
15546 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15547 fi
15548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15549 ;;
15550 hppa*64*)
15551 shrext_cmds='.sl'
15552 hardcode_into_libs=yes
15553 dynamic_linker="$host_os dld.sl"
15554 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15560 ;;
15561 *)
15562 shrext_cmds='.sl'
15563 dynamic_linker="$host_os dld.sl"
15564 shlibpath_var=SHLIB_PATH
15565 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 ;;
15569 esac
15570 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15571 postinstall_cmds='chmod 555 $lib'
15572 ;;
15573
15574 irix5* | irix6* | nonstopux*)
15575 case $host_os in
15576 nonstopux*) version_type=nonstopux ;;
15577 *)
15578 if test "$lt_cv_prog_gnu_ld" = yes; then
15579 version_type=linux
15580 else
15581 version_type=irix
15582 fi ;;
15583 esac
15584 need_lib_prefix=no
15585 need_version=no
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15588 case $host_os in
15589 irix5* | nonstopux*)
15590 libsuff= shlibsuff=
15591 ;;
15592 *)
15593 case $LD in # libtool.m4 will add one of these switches to LD
15594 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15595 libsuff= shlibsuff= libmagic=32-bit;;
15596 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15597 libsuff=32 shlibsuff=N32 libmagic=N32;;
15598 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15599 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15600 *) libsuff= shlibsuff= libmagic=never-match;;
15601 esac
15602 ;;
15603 esac
15604 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15605 shlibpath_overrides_runpath=no
15606 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15607 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15608 hardcode_into_libs=yes
15609 ;;
15610
15611 # No shared lib support for Linux oldld, aout, or coff.
15612 linux*oldld* | linux*aout* | linux*coff*)
15613 dynamic_linker=no
15614 ;;
15615
15616 # This must be Linux ELF.
15617 linux*)
15618 version_type=linux
15619 need_lib_prefix=no
15620 need_version=no
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 shlibpath_overrides_runpath=no
15626 # This implies no fast_install, which is unacceptable.
15627 # Some rework will be needed to allow for fast_install
15628 # before this can be enabled.
15629 hardcode_into_libs=yes
15630
15631 # Append ld.so.conf contents to the search path
15632 if test -f /etc/ld.so.conf; then
15633 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15634 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15635 fi
15636
15637 # We used to test for /lib/ld.so.1 and disable shared libraries on
15638 # powerpc, because MkLinux only supported shared libraries with the
15639 # GNU dynamic linker. Since this was broken with cross compilers,
15640 # most powerpc-linux boxes support dynamic linking these days and
15641 # people can always --disable-shared, the test was removed, and we
15642 # assume the GNU/Linux dynamic linker is in use.
15643 dynamic_linker='GNU/Linux ld.so'
15644 ;;
15645
15646 knetbsd*-gnu)
15647 version_type=linux
15648 need_lib_prefix=no
15649 need_version=no
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=no
15654 hardcode_into_libs=yes
15655 dynamic_linker='GNU ld.so'
15656 ;;
15657
15658 netbsd*)
15659 version_type=sunos
15660 need_lib_prefix=no
15661 need_version=no
15662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15665 dynamic_linker='NetBSD (a.out) ld.so'
15666 else
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 dynamic_linker='NetBSD ld.elf_so'
15670 fi
15671 shlibpath_var=LD_LIBRARY_PATH
15672 shlibpath_overrides_runpath=yes
15673 hardcode_into_libs=yes
15674 ;;
15675
15676 newsos6)
15677 version_type=linux
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679 shlibpath_var=LD_LIBRARY_PATH
15680 shlibpath_overrides_runpath=yes
15681 ;;
15682
15683 nto-qnx*)
15684 version_type=linux
15685 need_lib_prefix=no
15686 need_version=no
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688 soname_spec='${libname}${release}${shared_ext}$major'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=yes
15691 ;;
15692
15693 openbsd*)
15694 version_type=sunos
15695 need_lib_prefix=no
15696 need_version=no
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15699 shlibpath_var=LD_LIBRARY_PATH
15700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15701 case $host_os in
15702 openbsd2.[89] | openbsd2.[89].*)
15703 shlibpath_overrides_runpath=no
15704 ;;
15705 *)
15706 shlibpath_overrides_runpath=yes
15707 ;;
15708 esac
15709 else
15710 shlibpath_overrides_runpath=yes
15711 fi
15712 ;;
15713
15714 os2*)
15715 libname_spec='$name'
15716 shrext_cmds=".dll"
15717 need_lib_prefix=no
15718 library_names_spec='$libname${shared_ext} $libname.a'
15719 dynamic_linker='OS/2 ld.exe'
15720 shlibpath_var=LIBPATH
15721 ;;
15722
15723 osf3* | osf4* | osf5*)
15724 version_type=osf
15725 need_lib_prefix=no
15726 need_version=no
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15732 ;;
15733
15734 sco3.2v5*)
15735 version_type=osf
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 ;;
15740
15741 solaris*)
15742 version_type=linux
15743 need_lib_prefix=no
15744 need_version=no
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746 soname_spec='${libname}${release}${shared_ext}$major'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 shlibpath_overrides_runpath=yes
15749 hardcode_into_libs=yes
15750 # ldd complains unless libraries are executable
15751 postinstall_cmds='chmod +x $lib'
15752 ;;
15753
15754 sunos4*)
15755 version_type=sunos
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 shlibpath_overrides_runpath=yes
15760 if test "$with_gnu_ld" = yes; then
15761 need_lib_prefix=no
15762 fi
15763 need_version=yes
15764 ;;
15765
15766 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15767 version_type=linux
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769 soname_spec='${libname}${release}${shared_ext}$major'
15770 shlibpath_var=LD_LIBRARY_PATH
15771 case $host_vendor in
15772 sni)
15773 shlibpath_overrides_runpath=no
15774 need_lib_prefix=no
15775 export_dynamic_flag_spec='${wl}-Blargedynsym'
15776 runpath_var=LD_RUN_PATH
15777 ;;
15778 siemens)
15779 need_lib_prefix=no
15780 ;;
15781 motorola)
15782 need_lib_prefix=no
15783 need_version=no
15784 shlibpath_overrides_runpath=no
15785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15786 ;;
15787 esac
15788 ;;
15789
15790 sysv4*MP*)
15791 if test -d /usr/nec ;then
15792 version_type=linux
15793 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15794 soname_spec='$libname${shared_ext}.$major'
15795 shlibpath_var=LD_LIBRARY_PATH
15796 fi
15797 ;;
15798
15799 uts4*)
15800 version_type=linux
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15802 soname_spec='${libname}${release}${shared_ext}$major'
15803 shlibpath_var=LD_LIBRARY_PATH
15804 ;;
15805
15806 *)
15807 dynamic_linker=no
15808 ;;
15809 esac
15810 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15811 echo "${ECHO_T}$dynamic_linker" >&6
15812 test "$dynamic_linker" = no && can_build_shared=no
15813
15814 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15815 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15816 hardcode_action_CXX=
15817 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15818 test -n "$runpath_var_CXX" || \
15819 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15820
15821 # We can hardcode non-existant directories.
15822 if test "$hardcode_direct_CXX" != no &&
15823 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15824 # have to relink, otherwise we might link with an installed library
15825 # when we should be linking with a yet-to-be-installed one
15826 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15827 test "$hardcode_minus_L_CXX" != no; then
15828 # Linking always hardcodes the temporary library directory.
15829 hardcode_action_CXX=relink
15830 else
15831 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15832 hardcode_action_CXX=immediate
15833 fi
15834 else
15835 # We cannot hardcode anything, or else we can only hardcode existing
15836 # directories.
15837 hardcode_action_CXX=unsupported
15838 fi
15839 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15840 echo "${ECHO_T}$hardcode_action_CXX" >&6
15841
15842 if test "$hardcode_action_CXX" = relink; then
15843 # Fast installation is not supported
15844 enable_fast_install=no
15845 elif test "$shlibpath_overrides_runpath" = yes ||
15846 test "$enable_shared" = no; then
15847 # Fast installation is not necessary
15848 enable_fast_install=needless
15849 fi
15850
15851 striplib=
15852 old_striplib=
15853 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15854 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15855 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15856 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15857 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15858 echo "$as_me:$LINENO: result: yes" >&5
15859 echo "${ECHO_T}yes" >&6
15860 else
15861 # FIXME - insert some real tests, host_os isn't really good enough
15862 case $host_os in
15863 darwin*)
15864 if test -n "$STRIP" ; then
15865 striplib="$STRIP -x"
15866 echo "$as_me:$LINENO: result: yes" >&5
15867 echo "${ECHO_T}yes" >&6
15868 else
15869 echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6
15871 fi
15872 ;;
15873 *)
15874 echo "$as_me:$LINENO: result: no" >&5
15875 echo "${ECHO_T}no" >&6
15876 ;;
15877 esac
15878 fi
15879
15880 if test "x$enable_dlopen" != xyes; then
15881 enable_dlopen=unknown
15882 enable_dlopen_self=unknown
15883 enable_dlopen_self_static=unknown
15884 else
15885 lt_cv_dlopen=no
15886 lt_cv_dlopen_libs=
15887
15888 case $host_os in
15889 beos*)
15890 lt_cv_dlopen="load_add_on"
15891 lt_cv_dlopen_libs=
15892 lt_cv_dlopen_self=yes
15893 ;;
15894
15895 mingw* | pw32*)
15896 lt_cv_dlopen="LoadLibrary"
15897 lt_cv_dlopen_libs=
15898 ;;
15899
15900 cygwin*)
15901 lt_cv_dlopen="dlopen"
15902 lt_cv_dlopen_libs=
15903 ;;
15904
15905 darwin*)
15906 # if libdl is installed we need to link against it
15907 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15908 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912 ac_check_lib_save_LIBS=$LIBS
15913 LIBS="-ldl $LIBS"
15914 cat >conftest.$ac_ext <<_ACEOF
15915 /* confdefs.h. */
15916 _ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920
15921 /* Override any gcc2 internal prototype to avoid an error. */
15922 #ifdef __cplusplus
15923 extern "C"
15924 #endif
15925 /* We use char because int might match the return type of a gcc2
15926 builtin and then its argument prototype would still apply. */
15927 char dlopen ();
15928 int
15929 main ()
15930 {
15931 dlopen ();
15932 ;
15933 return 0;
15934 }
15935 _ACEOF
15936 rm -f conftest.$ac_objext conftest$ac_exeext
15937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15938 (eval $ac_link) 2>conftest.er1
15939 ac_status=$?
15940 grep -v '^ *+' conftest.er1 >conftest.err
15941 rm -f conftest.er1
15942 cat conftest.err >&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } &&
15945 { ac_try='test -z "$ac_cxx_werror_flag"
15946 || test ! -s conftest.err'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest$ac_exeext'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_cv_lib_dl_dlopen=yes
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963 ac_cv_lib_dl_dlopen=no
15964 fi
15965 rm -f conftest.err conftest.$ac_objext \
15966 conftest$ac_exeext conftest.$ac_ext
15967 LIBS=$ac_check_lib_save_LIBS
15968 fi
15969 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15970 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15971 if test $ac_cv_lib_dl_dlopen = yes; then
15972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15973 else
15974
15975 lt_cv_dlopen="dyld"
15976 lt_cv_dlopen_libs=
15977 lt_cv_dlopen_self=yes
15978
15979 fi
15980
15981 ;;
15982
15983 *)
15984 echo "$as_me:$LINENO: checking for shl_load" >&5
15985 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15986 if test "${ac_cv_func_shl_load+set}" = set; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 else
15989 cat >conftest.$ac_ext <<_ACEOF
15990 /* confdefs.h. */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15997 #define shl_load innocuous_shl_load
15998
15999 /* System header to define __stub macros and hopefully few prototypes,
16000 which can conflict with char shl_load (); below.
16001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16002 <limits.h> exists even on freestanding compilers. */
16003
16004 #ifdef __STDC__
16005 # include <limits.h>
16006 #else
16007 # include <assert.h>
16008 #endif
16009
16010 #undef shl_load
16011
16012 /* Override any gcc2 internal prototype to avoid an error. */
16013 #ifdef __cplusplus
16014 extern "C"
16015 {
16016 #endif
16017 /* We use char because int might match the return type of a gcc2
16018 builtin and then its argument prototype would still apply. */
16019 char shl_load ();
16020 /* The GNU C library defines this for functions which it implements
16021 to always fail with ENOSYS. Some functions are actually named
16022 something starting with __ and the normal name is an alias. */
16023 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16024 choke me
16025 #else
16026 char (*f) () = shl_load;
16027 #endif
16028 #ifdef __cplusplus
16029 }
16030 #endif
16031
16032 int
16033 main ()
16034 {
16035 return f != shl_load;
16036 ;
16037 return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16042 (eval $ac_link) 2>conftest.er1
16043 ac_status=$?
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } &&
16049 { ac_try='test -z "$ac_cxx_werror_flag"
16050 || test ! -s conftest.err'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest$ac_exeext'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_cv_func_shl_load=yes
16063 else
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ac_cv_func_shl_load=no
16068 fi
16069 rm -f conftest.err conftest.$ac_objext \
16070 conftest$ac_exeext conftest.$ac_ext
16071 fi
16072 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16073 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16074 if test $ac_cv_func_shl_load = yes; then
16075 lt_cv_dlopen="shl_load"
16076 else
16077 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16078 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16079 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6
16081 else
16082 ac_check_lib_save_LIBS=$LIBS
16083 LIBS="-ldld $LIBS"
16084 cat >conftest.$ac_ext <<_ACEOF
16085 /* confdefs.h. */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16090
16091 /* Override any gcc2 internal prototype to avoid an error. */
16092 #ifdef __cplusplus
16093 extern "C"
16094 #endif
16095 /* We use char because int might match the return type of a gcc2
16096 builtin and then its argument prototype would still apply. */
16097 char shl_load ();
16098 int
16099 main ()
16100 {
16101 shl_load ();
16102 ;
16103 return 0;
16104 }
16105 _ACEOF
16106 rm -f conftest.$ac_objext conftest$ac_exeext
16107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16108 (eval $ac_link) 2>conftest.er1
16109 ac_status=$?
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -z "$ac_cxx_werror_flag"
16116 || test ! -s conftest.err'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest$ac_exeext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_cv_lib_dld_shl_load=yes
16129 else
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16132
16133 ac_cv_lib_dld_shl_load=no
16134 fi
16135 rm -f conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16137 LIBS=$ac_check_lib_save_LIBS
16138 fi
16139 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16140 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16141 if test $ac_cv_lib_dld_shl_load = yes; then
16142 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16143 else
16144 echo "$as_me:$LINENO: checking for dlopen" >&5
16145 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16146 if test "${ac_cv_func_dlopen+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h. */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16157 #define dlopen innocuous_dlopen
16158
16159 /* System header to define __stub macros and hopefully few prototypes,
16160 which can conflict with char dlopen (); below.
16161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16162 <limits.h> exists even on freestanding compilers. */
16163
16164 #ifdef __STDC__
16165 # include <limits.h>
16166 #else
16167 # include <assert.h>
16168 #endif
16169
16170 #undef dlopen
16171
16172 /* Override any gcc2 internal prototype to avoid an error. */
16173 #ifdef __cplusplus
16174 extern "C"
16175 {
16176 #endif
16177 /* We use char because int might match the return type of a gcc2
16178 builtin and then its argument prototype would still apply. */
16179 char dlopen ();
16180 /* The GNU C library defines this for functions which it implements
16181 to always fail with ENOSYS. Some functions are actually named
16182 something starting with __ and the normal name is an alias. */
16183 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16184 choke me
16185 #else
16186 char (*f) () = dlopen;
16187 #endif
16188 #ifdef __cplusplus
16189 }
16190 #endif
16191
16192 int
16193 main ()
16194 {
16195 return f != dlopen;
16196 ;
16197 return 0;
16198 }
16199 _ACEOF
16200 rm -f conftest.$ac_objext conftest$ac_exeext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16202 (eval $ac_link) 2>conftest.er1
16203 ac_status=$?
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -z "$ac_cxx_werror_flag"
16210 || test ! -s conftest.err'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest$ac_exeext'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222 ac_cv_func_dlopen=yes
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227 ac_cv_func_dlopen=no
16228 fi
16229 rm -f conftest.err conftest.$ac_objext \
16230 conftest$ac_exeext conftest.$ac_ext
16231 fi
16232 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16233 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16234 if test $ac_cv_func_dlopen = yes; then
16235 lt_cv_dlopen="dlopen"
16236 else
16237 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16238 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16239 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242 ac_check_lib_save_LIBS=$LIBS
16243 LIBS="-ldl $LIBS"
16244 cat >conftest.$ac_ext <<_ACEOF
16245 /* confdefs.h. */
16246 _ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h. */
16250
16251 /* Override any gcc2 internal prototype to avoid an error. */
16252 #ifdef __cplusplus
16253 extern "C"
16254 #endif
16255 /* We use char because int might match the return type of a gcc2
16256 builtin and then its argument prototype would still apply. */
16257 char dlopen ();
16258 int
16259 main ()
16260 {
16261 dlopen ();
16262 ;
16263 return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16268 (eval $ac_link) 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -z "$ac_cxx_werror_flag"
16276 || test ! -s conftest.err'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest$ac_exeext'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_cv_lib_dl_dlopen=yes
16289 else
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293 ac_cv_lib_dl_dlopen=no
16294 fi
16295 rm -f conftest.err conftest.$ac_objext \
16296 conftest$ac_exeext conftest.$ac_ext
16297 LIBS=$ac_check_lib_save_LIBS
16298 fi
16299 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16300 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16301 if test $ac_cv_lib_dl_dlopen = yes; then
16302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16303 else
16304 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16305 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16306 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16307 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 else
16309 ac_check_lib_save_LIBS=$LIBS
16310 LIBS="-lsvld $LIBS"
16311 cat >conftest.$ac_ext <<_ACEOF
16312 /* confdefs.h. */
16313 _ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317
16318 /* Override any gcc2 internal prototype to avoid an error. */
16319 #ifdef __cplusplus
16320 extern "C"
16321 #endif
16322 /* We use char because int might match the return type of a gcc2
16323 builtin and then its argument prototype would still apply. */
16324 char dlopen ();
16325 int
16326 main ()
16327 {
16328 dlopen ();
16329 ;
16330 return 0;
16331 }
16332 _ACEOF
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16335 (eval $ac_link) 2>conftest.er1
16336 ac_status=$?
16337 grep -v '^ *+' conftest.er1 >conftest.err
16338 rm -f conftest.er1
16339 cat conftest.err >&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
16342 { ac_try='test -z "$ac_cxx_werror_flag"
16343 || test ! -s conftest.err'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; } &&
16349 { ac_try='test -s conftest$ac_exeext'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; }; then
16355 ac_cv_lib_svld_dlopen=yes
16356 else
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360 ac_cv_lib_svld_dlopen=no
16361 fi
16362 rm -f conftest.err conftest.$ac_objext \
16363 conftest$ac_exeext conftest.$ac_ext
16364 LIBS=$ac_check_lib_save_LIBS
16365 fi
16366 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16367 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16368 if test $ac_cv_lib_svld_dlopen = yes; then
16369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16370 else
16371 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16372 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16373 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376 ac_check_lib_save_LIBS=$LIBS
16377 LIBS="-ldld $LIBS"
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h. */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16384
16385 /* Override any gcc2 internal prototype to avoid an error. */
16386 #ifdef __cplusplus
16387 extern "C"
16388 #endif
16389 /* We use char because int might match the return type of a gcc2
16390 builtin and then its argument prototype would still apply. */
16391 char dld_link ();
16392 int
16393 main ()
16394 {
16395 dld_link ();
16396 ;
16397 return 0;
16398 }
16399 _ACEOF
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try='test -z "$ac_cxx_werror_flag"
16410 || test ! -s conftest.err'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest$ac_exeext'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_cv_lib_dld_dld_link=yes
16423 else
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427 ac_cv_lib_dld_dld_link=no
16428 fi
16429 rm -f conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16431 LIBS=$ac_check_lib_save_LIBS
16432 fi
16433 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16434 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16435 if test $ac_cv_lib_dld_dld_link = yes; then
16436 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16437 fi
16438
16439
16440 fi
16441
16442
16443 fi
16444
16445
16446 fi
16447
16448
16449 fi
16450
16451
16452 fi
16453
16454 ;;
16455 esac
16456
16457 if test "x$lt_cv_dlopen" != xno; then
16458 enable_dlopen=yes
16459 else
16460 enable_dlopen=no
16461 fi
16462
16463 case $lt_cv_dlopen in
16464 dlopen)
16465 save_CPPFLAGS="$CPPFLAGS"
16466 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16467
16468 save_LDFLAGS="$LDFLAGS"
16469 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16470
16471 save_LIBS="$LIBS"
16472 LIBS="$lt_cv_dlopen_libs $LIBS"
16473
16474 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16475 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16476 if test "${lt_cv_dlopen_self+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16479 if test "$cross_compiling" = yes; then :
16480 lt_cv_dlopen_self=cross
16481 else
16482 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16483 lt_status=$lt_dlunknown
16484 cat > conftest.$ac_ext <<EOF
16485 #line 16485 "configure"
16486 #include "confdefs.h"
16487
16488 #if HAVE_DLFCN_H
16489 #include <dlfcn.h>
16490 #endif
16491
16492 #include <stdio.h>
16493
16494 #ifdef RTLD_GLOBAL
16495 # define LT_DLGLOBAL RTLD_GLOBAL
16496 #else
16497 # ifdef DL_GLOBAL
16498 # define LT_DLGLOBAL DL_GLOBAL
16499 # else
16500 # define LT_DLGLOBAL 0
16501 # endif
16502 #endif
16503
16504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16505 find out it does not work in some platform. */
16506 #ifndef LT_DLLAZY_OR_NOW
16507 # ifdef RTLD_LAZY
16508 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16509 # else
16510 # ifdef DL_LAZY
16511 # define LT_DLLAZY_OR_NOW DL_LAZY
16512 # else
16513 # ifdef RTLD_NOW
16514 # define LT_DLLAZY_OR_NOW RTLD_NOW
16515 # else
16516 # ifdef DL_NOW
16517 # define LT_DLLAZY_OR_NOW DL_NOW
16518 # else
16519 # define LT_DLLAZY_OR_NOW 0
16520 # endif
16521 # endif
16522 # endif
16523 # endif
16524 #endif
16525
16526 #ifdef __cplusplus
16527 extern "C" void exit (int);
16528 #endif
16529
16530 void fnord() { int i=42;}
16531 int main ()
16532 {
16533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16534 int status = $lt_dlunknown;
16535
16536 if (self)
16537 {
16538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16539 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16540 /* dlclose (self); */
16541 }
16542
16543 exit (status);
16544 }
16545 EOF
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547 (eval $ac_link) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16551 (./conftest; exit; ) 2>/dev/null
16552 lt_status=$?
16553 case x$lt_status in
16554 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16555 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16556 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16557 esac
16558 else :
16559 # compilation failed
16560 lt_cv_dlopen_self=no
16561 fi
16562 fi
16563 rm -fr conftest*
16564
16565
16566 fi
16567 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16568 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16569
16570 if test "x$lt_cv_dlopen_self" = xyes; then
16571 LDFLAGS="$LDFLAGS $link_static_flag"
16572 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16573 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16574 if test "${lt_cv_dlopen_self_static+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577 if test "$cross_compiling" = yes; then :
16578 lt_cv_dlopen_self_static=cross
16579 else
16580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16581 lt_status=$lt_dlunknown
16582 cat > conftest.$ac_ext <<EOF
16583 #line 16583 "configure"
16584 #include "confdefs.h"
16585
16586 #if HAVE_DLFCN_H
16587 #include <dlfcn.h>
16588 #endif
16589
16590 #include <stdio.h>
16591
16592 #ifdef RTLD_GLOBAL
16593 # define LT_DLGLOBAL RTLD_GLOBAL
16594 #else
16595 # ifdef DL_GLOBAL
16596 # define LT_DLGLOBAL DL_GLOBAL
16597 # else
16598 # define LT_DLGLOBAL 0
16599 # endif
16600 #endif
16601
16602 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16603 find out it does not work in some platform. */
16604 #ifndef LT_DLLAZY_OR_NOW
16605 # ifdef RTLD_LAZY
16606 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16607 # else
16608 # ifdef DL_LAZY
16609 # define LT_DLLAZY_OR_NOW DL_LAZY
16610 # else
16611 # ifdef RTLD_NOW
16612 # define LT_DLLAZY_OR_NOW RTLD_NOW
16613 # else
16614 # ifdef DL_NOW
16615 # define LT_DLLAZY_OR_NOW DL_NOW
16616 # else
16617 # define LT_DLLAZY_OR_NOW 0
16618 # endif
16619 # endif
16620 # endif
16621 # endif
16622 #endif
16623
16624 #ifdef __cplusplus
16625 extern "C" void exit (int);
16626 #endif
16627
16628 void fnord() { int i=42;}
16629 int main ()
16630 {
16631 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16632 int status = $lt_dlunknown;
16633
16634 if (self)
16635 {
16636 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16637 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16638 /* dlclose (self); */
16639 }
16640
16641 exit (status);
16642 }
16643 EOF
16644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16645 (eval $ac_link) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16649 (./conftest; exit; ) 2>/dev/null
16650 lt_status=$?
16651 case x$lt_status in
16652 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16653 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16654 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16655 esac
16656 else :
16657 # compilation failed
16658 lt_cv_dlopen_self_static=no
16659 fi
16660 fi
16661 rm -fr conftest*
16662
16663
16664 fi
16665 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16666 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16667 fi
16668
16669 CPPFLAGS="$save_CPPFLAGS"
16670 LDFLAGS="$save_LDFLAGS"
16671 LIBS="$save_LIBS"
16672 ;;
16673 esac
16674
16675 case $lt_cv_dlopen_self in
16676 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16677 *) enable_dlopen_self=unknown ;;
16678 esac
16679
16680 case $lt_cv_dlopen_self_static in
16681 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16682 *) enable_dlopen_self_static=unknown ;;
16683 esac
16684 fi
16685
16686
16687 # The else clause should only fire when bootstrapping the
16688 # libtool distribution, otherwise you forgot to ship ltmain.sh
16689 # with your package, and you will get complaints that there are
16690 # no rules to generate ltmain.sh.
16691 if test -f "$ltmain"; then
16692 # See if we are running on zsh, and set the options which allow our commands through
16693 # without removal of \ escapes.
16694 if test -n "${ZSH_VERSION+set}" ; then
16695 setopt NO_GLOB_SUBST
16696 fi
16697 # Now quote all the things that may contain metacharacters while being
16698 # careful not to overquote the AC_SUBSTed values. We take copies of the
16699 # variables and quote the copies for generation of the libtool script.
16700 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16701 SED SHELL STRIP \
16702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16704 deplibs_check_method reload_flag reload_cmds need_locks \
16705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16706 lt_cv_sys_global_symbol_to_c_name_address \
16707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16708 old_postinstall_cmds old_postuninstall_cmds \
16709 compiler_CXX \
16710 CC_CXX \
16711 LD_CXX \
16712 lt_prog_compiler_wl_CXX \
16713 lt_prog_compiler_pic_CXX \
16714 lt_prog_compiler_static_CXX \
16715 lt_prog_compiler_no_builtin_flag_CXX \
16716 export_dynamic_flag_spec_CXX \
16717 thread_safe_flag_spec_CXX \
16718 whole_archive_flag_spec_CXX \
16719 enable_shared_with_static_runtimes_CXX \
16720 old_archive_cmds_CXX \
16721 old_archive_from_new_cmds_CXX \
16722 predep_objects_CXX \
16723 postdep_objects_CXX \
16724 predeps_CXX \
16725 postdeps_CXX \
16726 compiler_lib_search_path_CXX \
16727 archive_cmds_CXX \
16728 archive_expsym_cmds_CXX \
16729 postinstall_cmds_CXX \
16730 postuninstall_cmds_CXX \
16731 old_archive_from_expsyms_cmds_CXX \
16732 allow_undefined_flag_CXX \
16733 no_undefined_flag_CXX \
16734 export_symbols_cmds_CXX \
16735 hardcode_libdir_flag_spec_CXX \
16736 hardcode_libdir_flag_spec_ld_CXX \
16737 hardcode_libdir_separator_CXX \
16738 hardcode_automatic_CXX \
16739 module_cmds_CXX \
16740 module_expsym_cmds_CXX \
16741 lt_cv_prog_compiler_c_o_CXX \
16742 exclude_expsyms_CXX \
16743 include_expsyms_CXX; do
16744
16745 case $var in
16746 old_archive_cmds_CXX | \
16747 old_archive_from_new_cmds_CXX | \
16748 archive_cmds_CXX | \
16749 archive_expsym_cmds_CXX | \
16750 module_cmds_CXX | \
16751 module_expsym_cmds_CXX | \
16752 old_archive_from_expsyms_cmds_CXX | \
16753 export_symbols_cmds_CXX | \
16754 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16755 postinstall_cmds | postuninstall_cmds | \
16756 old_postinstall_cmds | old_postuninstall_cmds | \
16757 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16758 # Double-quote double-evaled strings.
16759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16760 ;;
16761 *)
16762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16763 ;;
16764 esac
16765 done
16766
16767 case $lt_echo in
16768 *'\$0 --fallback-echo"')
16769 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16770 ;;
16771 esac
16772
16773 cfgfile="$ofile"
16774
16775 cat <<__EOF__ >> "$cfgfile"
16776 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16777
16778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16779
16780 # Shell to use when invoking shell scripts.
16781 SHELL=$lt_SHELL
16782
16783 # Whether or not to build shared libraries.
16784 build_libtool_libs=$enable_shared
16785
16786 # Whether or not to build static libraries.
16787 build_old_libs=$enable_static
16788
16789 # Whether or not to add -lc for building shared libraries.
16790 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16791
16792 # Whether or not to disallow shared libs when runtime libs are static
16793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16794
16795 # Whether or not to optimize for fast installation.
16796 fast_install=$enable_fast_install
16797
16798 # The host system.
16799 host_alias=$host_alias
16800 host=$host
16801
16802 # An echo program that does not interpret backslashes.
16803 echo=$lt_echo
16804
16805 # The archiver.
16806 AR=$lt_AR
16807 AR_FLAGS=$lt_AR_FLAGS
16808
16809 # A C compiler.
16810 LTCC=$lt_LTCC
16811
16812 # A language-specific compiler.
16813 CC=$lt_compiler_CXX
16814
16815 # Is the compiler the GNU C compiler?
16816 with_gcc=$GCC_CXX
16817
16818 # An ERE matcher.
16819 EGREP=$lt_EGREP
16820
16821 # The linker used to build libraries.
16822 LD=$lt_LD_CXX
16823
16824 # Whether we need hard or soft links.
16825 LN_S=$lt_LN_S
16826
16827 # A BSD-compatible nm program.
16828 NM=$lt_NM
16829
16830 # A symbol stripping program
16831 STRIP=$lt_STRIP
16832
16833 # Used to examine libraries when file_magic_cmd begins "file"
16834 MAGIC_CMD=$MAGIC_CMD
16835
16836 # Used on cygwin: DLL creation program.
16837 DLLTOOL="$DLLTOOL"
16838
16839 # Used on cygwin: object dumper.
16840 OBJDUMP="$OBJDUMP"
16841
16842 # Used on cygwin: assembler.
16843 AS="$AS"
16844
16845 # The name of the directory that contains temporary libtool files.
16846 objdir=$objdir
16847
16848 # How to create reloadable object files.
16849 reload_flag=$lt_reload_flag
16850 reload_cmds=$lt_reload_cmds
16851
16852 # How to pass a linker flag through the compiler.
16853 wl=$lt_lt_prog_compiler_wl_CXX
16854
16855 # Object file suffix (normally "o").
16856 objext="$ac_objext"
16857
16858 # Old archive suffix (normally "a").
16859 libext="$libext"
16860
16861 # Shared library suffix (normally ".so").
16862 shrext_cmds='$shrext_cmds'
16863
16864 # Executable file suffix (normally "").
16865 exeext="$exeext"
16866
16867 # Additional compiler flags for building library objects.
16868 pic_flag=$lt_lt_prog_compiler_pic_CXX
16869 pic_mode=$pic_mode
16870
16871 # What is the maximum length of a command?
16872 max_cmd_len=$lt_cv_sys_max_cmd_len
16873
16874 # Does compiler simultaneously support -c and -o options?
16875 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16876
16877 # Must we lock files when doing compilation ?
16878 need_locks=$lt_need_locks
16879
16880 # Do we need the lib prefix for modules?
16881 need_lib_prefix=$need_lib_prefix
16882
16883 # Do we need a version for libraries?
16884 need_version=$need_version
16885
16886 # Whether dlopen is supported.
16887 dlopen_support=$enable_dlopen
16888
16889 # Whether dlopen of programs is supported.
16890 dlopen_self=$enable_dlopen_self
16891
16892 # Whether dlopen of statically linked programs is supported.
16893 dlopen_self_static=$enable_dlopen_self_static
16894
16895 # Compiler flag to prevent dynamic linking.
16896 link_static_flag=$lt_lt_prog_compiler_static_CXX
16897
16898 # Compiler flag to turn off builtin functions.
16899 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16900
16901 # Compiler flag to allow reflexive dlopens.
16902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16903
16904 # Compiler flag to generate shared objects directly from archives.
16905 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16906
16907 # Compiler flag to generate thread-safe objects.
16908 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16909
16910 # Library versioning type.
16911 version_type=$version_type
16912
16913 # Format of library name prefix.
16914 libname_spec=$lt_libname_spec
16915
16916 # List of archive names. First name is the real one, the rest are links.
16917 # The last name is the one that the linker finds with -lNAME.
16918 library_names_spec=$lt_library_names_spec
16919
16920 # The coded name of the library, if different from the real name.
16921 soname_spec=$lt_soname_spec
16922
16923 # Commands used to build and install an old-style archive.
16924 RANLIB=$lt_RANLIB
16925 old_archive_cmds=$lt_old_archive_cmds_CXX
16926 old_postinstall_cmds=$lt_old_postinstall_cmds
16927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16928
16929 # Create an old-style archive from a shared archive.
16930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16931
16932 # Create a temporary old-style archive to link instead of a shared archive.
16933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16934
16935 # Commands used to build and install a shared archive.
16936 archive_cmds=$lt_archive_cmds_CXX
16937 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16938 postinstall_cmds=$lt_postinstall_cmds
16939 postuninstall_cmds=$lt_postuninstall_cmds
16940
16941 # Commands used to build a loadable module (assumed same as above if empty)
16942 module_cmds=$lt_module_cmds_CXX
16943 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16944
16945 # Commands to strip libraries.
16946 old_striplib=$lt_old_striplib
16947 striplib=$lt_striplib
16948
16949 # Dependencies to place before the objects being linked to create a
16950 # shared library.
16951 predep_objects=$lt_predep_objects_CXX
16952
16953 # Dependencies to place after the objects being linked to create a
16954 # shared library.
16955 postdep_objects=$lt_postdep_objects_CXX
16956
16957 # Dependencies to place before the objects being linked to create a
16958 # shared library.
16959 predeps=$lt_predeps_CXX
16960
16961 # Dependencies to place after the objects being linked to create a
16962 # shared library.
16963 postdeps=$lt_postdeps_CXX
16964
16965 # The library search path used internally by the compiler when linking
16966 # a shared library.
16967 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16968
16969 # Method to check whether dependent libraries are shared objects.
16970 deplibs_check_method=$lt_deplibs_check_method
16971
16972 # Command to use when deplibs_check_method == file_magic.
16973 file_magic_cmd=$lt_file_magic_cmd
16974
16975 # Flag that allows shared libraries with undefined symbols to be built.
16976 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16977
16978 # Flag that forces no undefined symbols.
16979 no_undefined_flag=$lt_no_undefined_flag_CXX
16980
16981 # Commands used to finish a libtool library installation in a directory.
16982 finish_cmds=$lt_finish_cmds
16983
16984 # Same as above, but a single script fragment to be evaled but not shown.
16985 finish_eval=$lt_finish_eval
16986
16987 # Take the output of nm and produce a listing of raw symbols and C names.
16988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16989
16990 # Transform the output of nm in a proper C declaration
16991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16992
16993 # Transform the output of nm in a C name address pair
16994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16995
16996 # This is the shared library runtime path variable.
16997 runpath_var=$runpath_var
16998
16999 # This is the shared library path variable.
17000 shlibpath_var=$shlibpath_var
17001
17002 # Is shlibpath searched before the hard-coded library search path?
17003 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17004
17005 # How to hardcode a shared library path into an executable.
17006 hardcode_action=$hardcode_action_CXX
17007
17008 # Whether we should hardcode library paths into libraries.
17009 hardcode_into_libs=$hardcode_into_libs
17010
17011 # Flag to hardcode \$libdir into a binary during linking.
17012 # This must work even if \$libdir does not exist.
17013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17014
17015 # If ld is used when linking, flag to hardcode \$libdir into
17016 # a binary during linking. This must work even if \$libdir does
17017 # not exist.
17018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17019
17020 # Whether we need a single -rpath flag with a separated argument.
17021 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17022
17023 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17024 # resulting binary.
17025 hardcode_direct=$hardcode_direct_CXX
17026
17027 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17028 # resulting binary.
17029 hardcode_minus_L=$hardcode_minus_L_CXX
17030
17031 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17032 # the resulting binary.
17033 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17034
17035 # Set to yes if building a shared library automatically hardcodes DIR into the library
17036 # and all subsequent libraries and executables linked against it.
17037 hardcode_automatic=$hardcode_automatic_CXX
17038
17039 # Variables whose values should be saved in libtool wrapper scripts and
17040 # restored at relink time.
17041 variables_saved_for_relink="$variables_saved_for_relink"
17042
17043 # Whether libtool must link a program against all its dependency libraries.
17044 link_all_deplibs=$link_all_deplibs_CXX
17045
17046 # Compile-time system search path for libraries
17047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17048
17049 # Run-time system search path for libraries
17050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17051
17052 # Fix the shell variable \$srcfile for the compiler.
17053 fix_srcfile_path="$fix_srcfile_path_CXX"
17054
17055 # Set to yes if exported symbols are required.
17056 always_export_symbols=$always_export_symbols_CXX
17057
17058 # The commands to list exported symbols.
17059 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17060
17061 # The commands to extract the exported symbol list from a shared archive.
17062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17063
17064 # Symbols that should not be listed in the preloaded symbols.
17065 exclude_expsyms=$lt_exclude_expsyms_CXX
17066
17067 # Symbols that must always be exported.
17068 include_expsyms=$lt_include_expsyms_CXX
17069
17070 # ### END LIBTOOL TAG CONFIG: $tagname
17071
17072 __EOF__
17073
17074
17075 else
17076 # If there is no Makefile yet, we rely on a make rule to execute
17077 # `config.status --recheck' to rerun these tests and create the
17078 # libtool script then.
17079 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17080 if test -f "$ltmain_in"; then
17081 test -f Makefile && make "$ltmain"
17082 fi
17083 fi
17084
17085
17086 ac_ext=c
17087 ac_cpp='$CPP $CPPFLAGS'
17088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17091
17092 CC=$lt_save_CC
17093 LDCXX=$LD
17094 LD=$lt_save_LD
17095 GCC=$lt_save_GCC
17096 with_gnu_ldcxx=$with_gnu_ld
17097 with_gnu_ld=$lt_save_with_gnu_ld
17098 lt_cv_path_LDCXX=$lt_cv_path_LD
17099 lt_cv_path_LD=$lt_save_path_LD
17100 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17101 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17102
17103 else
17104 tagname=""
17105 fi
17106 ;;
17107
17108 F77)
17109 if test -n "$F77" && test "X$F77" != "Xno"; then
17110
17111 ac_ext=f
17112 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17113 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17114 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17115
17116
17117 archive_cmds_need_lc_F77=no
17118 allow_undefined_flag_F77=
17119 always_export_symbols_F77=no
17120 archive_expsym_cmds_F77=
17121 export_dynamic_flag_spec_F77=
17122 hardcode_direct_F77=no
17123 hardcode_libdir_flag_spec_F77=
17124 hardcode_libdir_flag_spec_ld_F77=
17125 hardcode_libdir_separator_F77=
17126 hardcode_minus_L_F77=no
17127 hardcode_automatic_F77=no
17128 module_cmds_F77=
17129 module_expsym_cmds_F77=
17130 link_all_deplibs_F77=unknown
17131 old_archive_cmds_F77=$old_archive_cmds
17132 no_undefined_flag_F77=
17133 whole_archive_flag_spec_F77=
17134 enable_shared_with_static_runtimes_F77=no
17135
17136 # Source file extension for f77 test sources.
17137 ac_ext=f
17138
17139 # Object file extension for compiled f77 test sources.
17140 objext=o
17141 objext_F77=$objext
17142
17143 # Code to be used in simple compile tests
17144 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
17145
17146 # Code to be used in simple link tests
17147 lt_simple_link_test_code=" program t\n end\n"
17148
17149 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17150
17151 # If no C compiler was specified, use CC.
17152 LTCC=${LTCC-"$CC"}
17153
17154 # Allow CC to be a program name with arguments.
17155 compiler=$CC
17156
17157
17158 # Allow CC to be a program name with arguments.
17159 lt_save_CC="$CC"
17160 CC=${F77-"f77"}
17161 compiler=$CC
17162 compiler_F77=$CC
17163 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
17164
17165 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17166 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17167 echo "$as_me:$LINENO: result: $can_build_shared" >&5
17168 echo "${ECHO_T}$can_build_shared" >&6
17169
17170 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17171 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17172 test "$can_build_shared" = "no" && enable_shared=no
17173
17174 # On AIX, shared libraries and static libraries use the same namespace, and
17175 # are all built from PIC.
17176 case "$host_os" in
17177 aix3*)
17178 test "$enable_shared" = yes && enable_static=no
17179 if test -n "$RANLIB"; then
17180 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17181 postinstall_cmds='$RANLIB $lib'
17182 fi
17183 ;;
17184 aix4* | aix5*)
17185 test "$enable_shared" = yes && enable_static=no
17186 ;;
17187 esac
17188 echo "$as_me:$LINENO: result: $enable_shared" >&5
17189 echo "${ECHO_T}$enable_shared" >&6
17190
17191 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17192 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
17193 # Make sure either enable_shared or enable_static is yes.
17194 test "$enable_shared" = yes || enable_static=yes
17195 echo "$as_me:$LINENO: result: $enable_static" >&5
17196 echo "${ECHO_T}$enable_static" >&6
17197
17198 test "$ld_shlibs_F77" = no && can_build_shared=no
17199
17200 GCC_F77="$G77"
17201 LD_F77="$LD"
17202
17203 lt_prog_compiler_wl_F77=
17204 lt_prog_compiler_pic_F77=
17205 lt_prog_compiler_static_F77=
17206
17207 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17208 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17209
17210 if test "$GCC" = yes; then
17211 lt_prog_compiler_wl_F77='-Wl,'
17212 lt_prog_compiler_static_F77='-static'
17213
17214 case $host_os in
17215 aix*)
17216 # All AIX code is PIC.
17217 if test "$host_cpu" = ia64; then
17218 # AIX 5 now supports IA64 processor
17219 lt_prog_compiler_static_F77='-Bstatic'
17220 fi
17221 ;;
17222
17223 amigaos*)
17224 # FIXME: we need at least 68020 code to build shared libraries, but
17225 # adding the `-m68020' flag to GCC prevents building anything better,
17226 # like `-m68040'.
17227 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17228 ;;
17229
17230 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17231 # PIC is the default for these OSes.
17232 ;;
17233
17234 mingw* | pw32* | os2*)
17235 # This hack is so that the source file can tell whether it is being
17236 # built for inclusion in a dll (and should export symbols for example).
17237 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17238 ;;
17239
17240 darwin* | rhapsody*)
17241 # PIC is the default on this platform
17242 # Common symbols not allowed in MH_DYLIB files
17243 lt_prog_compiler_pic_F77='-fno-common'
17244 ;;
17245
17246 msdosdjgpp*)
17247 # Just because we use GCC doesn't mean we suddenly get shared libraries
17248 # on systems that don't support them.
17249 lt_prog_compiler_can_build_shared_F77=no
17250 enable_shared=no
17251 ;;
17252
17253 sysv4*MP*)
17254 if test -d /usr/nec; then
17255 lt_prog_compiler_pic_F77=-Kconform_pic
17256 fi
17257 ;;
17258
17259 hpux*)
17260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17261 # not for PA HP-UX.
17262 case "$host_cpu" in
17263 hppa*64*|ia64*)
17264 # +Z the default
17265 ;;
17266 *)
17267 lt_prog_compiler_pic_F77='-fPIC'
17268 ;;
17269 esac
17270 ;;
17271
17272 *)
17273 lt_prog_compiler_pic_F77='-fPIC'
17274 ;;
17275 esac
17276 else
17277 # PORTME Check for flag to pass linker flags through the system compiler.
17278 case $host_os in
17279 aix*)
17280 lt_prog_compiler_wl_F77='-Wl,'
17281 if test "$host_cpu" = ia64; then
17282 # AIX 5 now supports IA64 processor
17283 lt_prog_compiler_static_F77='-Bstatic'
17284 else
17285 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17286 fi
17287 ;;
17288 darwin*)
17289 # PIC is the default on this platform
17290 # Common symbols not allowed in MH_DYLIB files
17291 case "$cc_basename" in
17292 xlc*)
17293 lt_prog_compiler_pic_F77='-qnocommon'
17294 lt_prog_compiler_wl_F77='-Wl,'
17295 ;;
17296 esac
17297 ;;
17298
17299 mingw* | pw32* | os2*)
17300 # This hack is so that the source file can tell whether it is being
17301 # built for inclusion in a dll (and should export symbols for example).
17302 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17303 ;;
17304
17305 hpux9* | hpux10* | hpux11*)
17306 lt_prog_compiler_wl_F77='-Wl,'
17307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17308 # not for PA HP-UX.
17309 case "$host_cpu" in
17310 hppa*64*|ia64*)
17311 # +Z the default
17312 ;;
17313 *)
17314 lt_prog_compiler_pic_F77='+Z'
17315 ;;
17316 esac
17317 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17318 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17319 ;;
17320
17321 irix5* | irix6* | nonstopux*)
17322 lt_prog_compiler_wl_F77='-Wl,'
17323 # PIC (with -KPIC) is the default.
17324 lt_prog_compiler_static_F77='-non_shared'
17325 ;;
17326
17327 newsos6)
17328 lt_prog_compiler_pic_F77='-KPIC'
17329 lt_prog_compiler_static_F77='-Bstatic'
17330 ;;
17331
17332 linux*)
17333 case $CC in
17334 icc* | ecc*)
17335 lt_prog_compiler_wl_F77='-Wl,'
17336 lt_prog_compiler_pic_F77='-KPIC'
17337 lt_prog_compiler_static_F77='-static'
17338 ;;
17339 ccc*)
17340 lt_prog_compiler_wl_F77='-Wl,'
17341 # All Alpha code is PIC.
17342 lt_prog_compiler_static_F77='-non_shared'
17343 ;;
17344 esac
17345 ;;
17346
17347 osf3* | osf4* | osf5*)
17348 lt_prog_compiler_wl_F77='-Wl,'
17349 # All OSF/1 code is PIC.
17350 lt_prog_compiler_static_F77='-non_shared'
17351 ;;
17352
17353 sco3.2v5*)
17354 lt_prog_compiler_pic_F77='-Kpic'
17355 lt_prog_compiler_static_F77='-dn'
17356 ;;
17357
17358 solaris*)
17359 lt_prog_compiler_wl_F77='-Wl,'
17360 lt_prog_compiler_pic_F77='-KPIC'
17361 lt_prog_compiler_static_F77='-Bstatic'
17362 ;;
17363
17364 sunos4*)
17365 lt_prog_compiler_wl_F77='-Qoption ld '
17366 lt_prog_compiler_pic_F77='-PIC'
17367 lt_prog_compiler_static_F77='-Bstatic'
17368 ;;
17369
17370 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17371 lt_prog_compiler_wl_F77='-Wl,'
17372 lt_prog_compiler_pic_F77='-KPIC'
17373 lt_prog_compiler_static_F77='-Bstatic'
17374 ;;
17375
17376 sysv4*MP*)
17377 if test -d /usr/nec ;then
17378 lt_prog_compiler_pic_F77='-Kconform_pic'
17379 lt_prog_compiler_static_F77='-Bstatic'
17380 fi
17381 ;;
17382
17383 uts4*)
17384 lt_prog_compiler_pic_F77='-pic'
17385 lt_prog_compiler_static_F77='-Bstatic'
17386 ;;
17387
17388 *)
17389 lt_prog_compiler_can_build_shared_F77=no
17390 ;;
17391 esac
17392 fi
17393
17394 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17395 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
17396
17397 #
17398 # Check to make sure the PIC flag actually works.
17399 #
17400 if test -n "$lt_prog_compiler_pic_F77"; then
17401
17402 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17403 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
17404 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17406 else
17407 lt_prog_compiler_pic_works_F77=no
17408 ac_outfile=conftest.$ac_objext
17409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17410 lt_compiler_flag="$lt_prog_compiler_pic_F77"
17411 # Insert the option either (1) after the last *FLAGS variable, or
17412 # (2) before a word containing "conftest.", or (3) at the end.
17413 # Note that $ac_compile itself does not contain backslashes and begins
17414 # with a dollar sign (not a hyphen), so the echo should work correctly.
17415 # The option is referenced via a variable to avoid confusing sed.
17416 lt_compile=`echo "$ac_compile" | $SED \
17417 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17419 -e 's:$: $lt_compiler_flag:'`
17420 (eval echo "\"\$as_me:17420: $lt_compile\"" >&5)
17421 (eval "$lt_compile" 2>conftest.err)
17422 ac_status=$?
17423 cat conftest.err >&5
17424 echo "$as_me:17424: \$? = $ac_status" >&5
17425 if (exit $ac_status) && test -s "$ac_outfile"; then
17426 # The compiler can only warn and ignore the option if not recognized
17427 # So say no if there are warnings
17428 if test ! -s conftest.err; then
17429 lt_prog_compiler_pic_works_F77=yes
17430 fi
17431 fi
17432 $rm conftest*
17433
17434 fi
17435 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17436 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
17437
17438 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17439 case $lt_prog_compiler_pic_F77 in
17440 "" | " "*) ;;
17441 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17442 esac
17443 else
17444 lt_prog_compiler_pic_F77=
17445 lt_prog_compiler_can_build_shared_F77=no
17446 fi
17447
17448 fi
17449 case "$host_os" in
17450 # For platforms which do not support PIC, -DPIC is meaningless:
17451 *djgpp*)
17452 lt_prog_compiler_pic_F77=
17453 ;;
17454 *)
17455 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17456 ;;
17457 esac
17458
17459 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17460 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17461 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464 lt_cv_prog_compiler_c_o_F77=no
17465 $rm -r conftest 2>/dev/null
17466 mkdir conftest
17467 cd conftest
17468 mkdir out
17469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17470
17471 lt_compiler_flag="-o out/conftest2.$ac_objext"
17472 # Insert the option either (1) after the last *FLAGS variable, or
17473 # (2) before a word containing "conftest.", or (3) at the end.
17474 # Note that $ac_compile itself does not contain backslashes and begins
17475 # with a dollar sign (not a hyphen), so the echo should work correctly.
17476 lt_compile=`echo "$ac_compile" | $SED \
17477 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17479 -e 's:$: $lt_compiler_flag:'`
17480 (eval echo "\"\$as_me:17480: $lt_compile\"" >&5)
17481 (eval "$lt_compile" 2>out/conftest.err)
17482 ac_status=$?
17483 cat out/conftest.err >&5
17484 echo "$as_me:17484: \$? = $ac_status" >&5
17485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17486 then
17487 # The compiler can only warn and ignore the option if not recognized
17488 # So say no if there are warnings
17489 if test ! -s out/conftest.err; then
17490 lt_cv_prog_compiler_c_o_F77=yes
17491 fi
17492 fi
17493 chmod u+w .
17494 $rm conftest*
17495 # SGI C++ compiler will create directory out/ii_files/ for
17496 # template instantiation
17497 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17498 $rm out/* && rmdir out
17499 cd ..
17500 rmdir conftest
17501 $rm conftest*
17502
17503 fi
17504 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17505 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
17506
17507
17508 hard_links="nottested"
17509 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17510 # do not overwrite the value of need_locks provided by the user
17511 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17512 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17513 hard_links=yes
17514 $rm conftest*
17515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17516 touch conftest.a
17517 ln conftest.a conftest.b 2>&5 || hard_links=no
17518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17519 echo "$as_me:$LINENO: result: $hard_links" >&5
17520 echo "${ECHO_T}$hard_links" >&6
17521 if test "$hard_links" = no; then
17522 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17523 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17524 need_locks=warn
17525 fi
17526 else
17527 need_locks=no
17528 fi
17529
17530 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17531 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17532
17533 runpath_var=
17534 allow_undefined_flag_F77=
17535 enable_shared_with_static_runtimes_F77=no
17536 archive_cmds_F77=
17537 archive_expsym_cmds_F77=
17538 old_archive_From_new_cmds_F77=
17539 old_archive_from_expsyms_cmds_F77=
17540 export_dynamic_flag_spec_F77=
17541 whole_archive_flag_spec_F77=
17542 thread_safe_flag_spec_F77=
17543 hardcode_libdir_flag_spec_F77=
17544 hardcode_libdir_flag_spec_ld_F77=
17545 hardcode_libdir_separator_F77=
17546 hardcode_direct_F77=no
17547 hardcode_minus_L_F77=no
17548 hardcode_shlibpath_var_F77=unsupported
17549 link_all_deplibs_F77=unknown
17550 hardcode_automatic_F77=no
17551 module_cmds_F77=
17552 module_expsym_cmds_F77=
17553 always_export_symbols_F77=no
17554 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17555 # include_expsyms should be a list of space-separated symbols to be *always*
17556 # included in the symbol list
17557 include_expsyms_F77=
17558 # exclude_expsyms can be an extended regexp of symbols to exclude
17559 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17560 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17561 # as well as any symbol that contains `d'.
17562 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17563 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17564 # platforms (ab)use it in PIC code, but their linkers get confused if
17565 # the symbol is explicitly referenced. Since portable code cannot
17566 # rely on this symbol name, it's probably fine to never include it in
17567 # preloaded symbol tables.
17568 extract_expsyms_cmds=
17569
17570 case $host_os in
17571 cygwin* | mingw* | pw32*)
17572 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17573 # When not using gcc, we currently assume that we are using
17574 # Microsoft Visual C++.
17575 if test "$GCC" != yes; then
17576 with_gnu_ld=no
17577 fi
17578 ;;
17579 openbsd*)
17580 with_gnu_ld=no
17581 ;;
17582 esac
17583
17584 ld_shlibs_F77=yes
17585 if test "$with_gnu_ld" = yes; then
17586 # If archive_cmds runs LD, not CC, wlarc should be empty
17587 wlarc='${wl}'
17588
17589 # See if GNU ld supports shared libraries.
17590 case $host_os in
17591 aix3* | aix4* | aix5*)
17592 # On AIX/PPC, the GNU linker is very broken
17593 if test "$host_cpu" != ia64; then
17594 ld_shlibs_F77=no
17595 cat <<EOF 1>&2
17596
17597 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17598 *** to be unable to reliably create shared libraries on AIX.
17599 *** Therefore, libtool is disabling shared libraries support. If you
17600 *** really care for shared libraries, you may want to modify your PATH
17601 *** so that a non-GNU linker is found, and then restart.
17602
17603 EOF
17604 fi
17605 ;;
17606
17607 amigaos*)
17608 archive_cmds_F77='$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)'
17609 hardcode_libdir_flag_spec_F77='-L$libdir'
17610 hardcode_minus_L_F77=yes
17611
17612 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17613 # that the semantics of dynamic libraries on AmigaOS, at least up
17614 # to version 4, is to share data among multiple programs linked
17615 # with the same dynamic library. Since this doesn't match the
17616 # behavior of shared libraries on other platforms, we can't use
17617 # them.
17618 ld_shlibs_F77=no
17619 ;;
17620
17621 beos*)
17622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17623 allow_undefined_flag_F77=unsupported
17624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17625 # support --undefined. This deserves some investigation. FIXME
17626 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17627 else
17628 ld_shlibs_F77=no
17629 fi
17630 ;;
17631
17632 cygwin* | mingw* | pw32*)
17633 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17634 # as there is no search path for DLLs.
17635 hardcode_libdir_flag_spec_F77='-L$libdir'
17636 allow_undefined_flag_F77=unsupported
17637 always_export_symbols_F77=no
17638 enable_shared_with_static_runtimes_F77=yes
17639 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17640
17641 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17642 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17643 # If the export-symbols file already is a .def file (1st line
17644 # is EXPORTS), use it as is; otherwise, prepend...
17645 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17646 cp $export_symbols $output_objdir/$soname.def;
17647 else
17648 echo EXPORTS > $output_objdir/$soname.def;
17649 cat $export_symbols >> $output_objdir/$soname.def;
17650 fi~
17651 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17652 else
17653 ld_shlibs=no
17654 fi
17655 ;;
17656
17657 netbsd*)
17658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17659 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17660 wlarc=
17661 else
17662 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17663 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17664 fi
17665 ;;
17666
17667 solaris* | sysv5*)
17668 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17669 ld_shlibs_F77=no
17670 cat <<EOF 1>&2
17671
17672 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17673 *** create shared libraries on Solaris systems. Therefore, libtool
17674 *** is disabling shared libraries support. We urge you to upgrade GNU
17675 *** binutils to release 2.9.1 or newer. Another option is to modify
17676 *** your PATH or compiler configuration so that the native linker is
17677 *** used, and then restart.
17678
17679 EOF
17680 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17681 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17682 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17683 else
17684 ld_shlibs_F77=no
17685 fi
17686 ;;
17687
17688 sunos4*)
17689 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17690 wlarc=
17691 hardcode_direct_F77=yes
17692 hardcode_shlibpath_var_F77=no
17693 ;;
17694
17695 linux*)
17696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17697 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17698 archive_cmds_F77="$tmp_archive_cmds"
17699 supports_anon_versioning=no
17700 case `$LD -v 2>/dev/null` in
17701 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17702 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17703 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17704 *\ 2.11.*) ;; # other 2.11 versions
17705 *) supports_anon_versioning=yes ;;
17706 esac
17707 if test $supports_anon_versioning = yes; then
17708 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17710 $echo "local: *; };" >> $output_objdir/$libname.ver~
17711 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17712 else
17713 archive_expsym_cmds_F77="$tmp_archive_cmds"
17714 fi
17715 else
17716 ld_shlibs_F77=no
17717 fi
17718 ;;
17719
17720 *)
17721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17722 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17723 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17724 else
17725 ld_shlibs_F77=no
17726 fi
17727 ;;
17728 esac
17729
17730 if test "$ld_shlibs_F77" = yes; then
17731 runpath_var=LD_RUN_PATH
17732 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17733 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17734 # ancient GNU ld didn't support --whole-archive et. al.
17735 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17736 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17737 else
17738 whole_archive_flag_spec_F77=
17739 fi
17740 fi
17741 else
17742 # PORTME fill in a description of your system's linker (not GNU ld)
17743 case $host_os in
17744 aix3*)
17745 allow_undefined_flag_F77=unsupported
17746 always_export_symbols_F77=yes
17747 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17748 # Note: this linker hardcodes the directories in LIBPATH if there
17749 # are no directories specified by -L.
17750 hardcode_minus_L_F77=yes
17751 if test "$GCC" = yes && test -z "$link_static_flag"; then
17752 # Neither direct hardcoding nor static linking is supported with a
17753 # broken collect2.
17754 hardcode_direct_F77=unsupported
17755 fi
17756 ;;
17757
17758 aix4* | aix5*)
17759 if test "$host_cpu" = ia64; then
17760 # On IA64, the linker does run time linking by default, so we don't
17761 # have to do anything special.
17762 aix_use_runtimelinking=no
17763 exp_sym_flag='-Bexport'
17764 no_entry_flag=""
17765 else
17766 # If we're using GNU nm, then we don't want the "-C" option.
17767 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17768 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17769 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17770 else
17771 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17772 fi
17773 aix_use_runtimelinking=no
17774
17775 # Test if we are trying to use run time linking or normal
17776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17777 # need to do runtime linking.
17778 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17779 for ld_flag in $LDFLAGS; do
17780 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17781 aix_use_runtimelinking=yes
17782 break
17783 fi
17784 done
17785 esac
17786
17787 exp_sym_flag='-bexport'
17788 no_entry_flag='-bnoentry'
17789 fi
17790
17791 # When large executables or shared objects are built, AIX ld can
17792 # have problems creating the table of contents. If linking a library
17793 # or program results in "error TOC overflow" add -mminimal-toc to
17794 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17795 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17796
17797 archive_cmds_F77=''
17798 hardcode_direct_F77=yes
17799 hardcode_libdir_separator_F77=':'
17800 link_all_deplibs_F77=yes
17801
17802 if test "$GCC" = yes; then
17803 case $host_os in aix4.012|aix4.012.*)
17804 # We only want to do this on AIX 4.2 and lower, the check
17805 # below for broken collect2 doesn't work under 4.3+
17806 collect2name=`${CC} -print-prog-name=collect2`
17807 if test -f "$collect2name" && \
17808 strings "$collect2name" | grep resolve_lib_name >/dev/null
17809 then
17810 # We have reworked collect2
17811 hardcode_direct_F77=yes
17812 else
17813 # We have old collect2
17814 hardcode_direct_F77=unsupported
17815 # It fails to find uninstalled libraries when the uninstalled
17816 # path is not listed in the libpath. Setting hardcode_minus_L
17817 # to unsupported forces relinking
17818 hardcode_minus_L_F77=yes
17819 hardcode_libdir_flag_spec_F77='-L$libdir'
17820 hardcode_libdir_separator_F77=
17821 fi
17822 esac
17823 shared_flag='-shared'
17824 else
17825 # not using gcc
17826 if test "$host_cpu" = ia64; then
17827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17828 # chokes on -Wl,-G. The following line is correct:
17829 shared_flag='-G'
17830 else
17831 if test "$aix_use_runtimelinking" = yes; then
17832 shared_flag='${wl}-G'
17833 else
17834 shared_flag='${wl}-bM:SRE'
17835 fi
17836 fi
17837 fi
17838
17839 # It seems that -bexpall does not export symbols beginning with
17840 # underscore (_), so it is better to generate a list of symbols to export.
17841 always_export_symbols_F77=yes
17842 if test "$aix_use_runtimelinking" = yes; then
17843 # Warning - without using the other runtime loading flags (-brtl),
17844 # -berok will link without error, but may produce a broken library.
17845 allow_undefined_flag_F77='-berok'
17846 # Determine the default libpath from the value encoded in an empty executable.
17847 cat >conftest.$ac_ext <<_ACEOF
17848 program main
17849
17850 end
17851 _ACEOF
17852 rm -f conftest.$ac_objext conftest$ac_exeext
17853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17854 (eval $ac_link) 2>conftest.er1
17855 ac_status=$?
17856 grep -v '^ *+' conftest.er1 >conftest.err
17857 rm -f conftest.er1
17858 cat conftest.err >&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } &&
17861 { ac_try='test -z "$ac_f77_werror_flag"
17862 || test ! -s conftest.err'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; } &&
17868 { ac_try='test -s conftest$ac_exeext'
17869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870 (eval $ac_try) 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; }; then
17874
17875 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17876 }'`
17877 # Check for a 64-bit object if we didn't find anything.
17878 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17879 }'`; fi
17880 else
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17883
17884 fi
17885 rm -f conftest.err conftest.$ac_objext \
17886 conftest$ac_exeext conftest.$ac_ext
17887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17888
17889 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17890 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17891 else
17892 if test "$host_cpu" = ia64; then
17893 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17894 allow_undefined_flag_F77="-z nodefs"
17895 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17896 else
17897 # Determine the default libpath from the value encoded in an empty executable.
17898 cat >conftest.$ac_ext <<_ACEOF
17899 program main
17900
17901 end
17902 _ACEOF
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905 (eval $ac_link) 2>conftest.er1
17906 ac_status=$?
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
17912 { ac_try='test -z "$ac_f77_werror_flag"
17913 || test ! -s conftest.err'
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest$ac_exeext'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17925
17926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17927 }'`
17928 # Check for a 64-bit object if we didn't find anything.
17929 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17930 }'`; fi
17931 else
17932 echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17934
17935 fi
17936 rm -f conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17939
17940 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17941 # Warning - without using the other run time loading flags,
17942 # -berok will link without error, but may produce a broken library.
17943 no_undefined_flag_F77=' ${wl}-bernotok'
17944 allow_undefined_flag_F77=' ${wl}-berok'
17945 # -bexpall does not export symbols beginning with underscore (_)
17946 always_export_symbols_F77=yes
17947 # Exported symbols can be pulled into shared objects from archives
17948 whole_archive_flag_spec_F77=' '
17949 archive_cmds_need_lc_F77=yes
17950 # This is similar to how AIX traditionally builds it's shared libraries.
17951 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17952 fi
17953 fi
17954 ;;
17955
17956 amigaos*)
17957 archive_cmds_F77='$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)'
17958 hardcode_libdir_flag_spec_F77='-L$libdir'
17959 hardcode_minus_L_F77=yes
17960 # see comment about different semantics on the GNU ld section
17961 ld_shlibs_F77=no
17962 ;;
17963
17964 bsdi[45]*)
17965 export_dynamic_flag_spec_F77=-rdynamic
17966 ;;
17967
17968 cygwin* | mingw* | pw32*)
17969 # When not using gcc, we currently assume that we are using
17970 # Microsoft Visual C++.
17971 # hardcode_libdir_flag_spec is actually meaningless, as there is
17972 # no search path for DLLs.
17973 hardcode_libdir_flag_spec_F77=' '
17974 allow_undefined_flag_F77=unsupported
17975 # Tell ltmain to make .lib files, not .a files.
17976 libext=lib
17977 # Tell ltmain to make .dll files, not .so files.
17978 shrext_cmds=".dll"
17979 # FIXME: Setting linknames here is a bad hack.
17980 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17981 # The linker will automatically build a .lib file if we build a DLL.
17982 old_archive_From_new_cmds_F77='true'
17983 # FIXME: Should let the user specify the lib program.
17984 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17985 fix_srcfile_path='`cygpath -w "$srcfile"`'
17986 enable_shared_with_static_runtimes_F77=yes
17987 ;;
17988
17989 darwin* | rhapsody*)
17990 case "$host_os" in
17991 rhapsody* | darwin1.[012])
17992 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17993 ;;
17994 *) # Darwin 1.3 on
17995 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17996 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17997 else
17998 case ${MACOSX_DEPLOYMENT_TARGET} in
17999 10.[012])
18000 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18001 ;;
18002 10.*)
18003 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
18004 ;;
18005 esac
18006 fi
18007 ;;
18008 esac
18009 archive_cmds_need_lc_F77=no
18010 hardcode_direct_F77=no
18011 hardcode_automatic_F77=yes
18012 hardcode_shlibpath_var_F77=unsupported
18013 whole_archive_flag_spec_F77=''
18014 link_all_deplibs_F77=yes
18015 if test "$GCC" = yes ; then
18016 output_verbose_link_cmd='echo'
18017 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18018 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18019 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18020 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18021 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18022 else
18023 case "$cc_basename" in
18024 xlc*)
18025 output_verbose_link_cmd='echo'
18026 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18027 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18028 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18029 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18030 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18031 ;;
18032 *)
18033 ld_shlibs_F77=no
18034 ;;
18035 esac
18036 fi
18037 ;;
18038
18039 dgux*)
18040 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041 hardcode_libdir_flag_spec_F77='-L$libdir'
18042 hardcode_shlibpath_var_F77=no
18043 ;;
18044
18045 freebsd1*)
18046 ld_shlibs_F77=no
18047 ;;
18048
18049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18050 # support. Future versions do this automatically, but an explicit c++rt0.o
18051 # does not break anything, and helps significantly (at the cost of a little
18052 # extra space).
18053 freebsd2.2*)
18054 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18055 hardcode_libdir_flag_spec_F77='-R$libdir'
18056 hardcode_direct_F77=yes
18057 hardcode_shlibpath_var_F77=no
18058 ;;
18059
18060 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18061 freebsd2*)
18062 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18063 hardcode_direct_F77=yes
18064 hardcode_minus_L_F77=yes
18065 hardcode_shlibpath_var_F77=no
18066 ;;
18067
18068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18069 freebsd* | kfreebsd*-gnu)
18070 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18071 hardcode_libdir_flag_spec_F77='-R$libdir'
18072 hardcode_direct_F77=yes
18073 hardcode_shlibpath_var_F77=no
18074 ;;
18075
18076 hpux9*)
18077 if test "$GCC" = yes; then
18078 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18079 else
18080 archive_cmds_F77='$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'
18081 fi
18082 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18083 hardcode_libdir_separator_F77=:
18084 hardcode_direct_F77=yes
18085
18086 # hardcode_minus_L: Not really in the search PATH,
18087 # but as the default location of the library.
18088 hardcode_minus_L_F77=yes
18089 export_dynamic_flag_spec_F77='${wl}-E'
18090 ;;
18091
18092 hpux10* | hpux11*)
18093 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18094 case "$host_cpu" in
18095 hppa*64*|ia64*)
18096 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18097 ;;
18098 *)
18099 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18100 ;;
18101 esac
18102 else
18103 case "$host_cpu" in
18104 hppa*64*|ia64*)
18105 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18106 ;;
18107 *)
18108 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18109 ;;
18110 esac
18111 fi
18112 if test "$with_gnu_ld" = no; then
18113 case "$host_cpu" in
18114 hppa*64*)
18115 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18116 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18117 hardcode_libdir_separator_F77=:
18118 hardcode_direct_F77=no
18119 hardcode_shlibpath_var_F77=no
18120 ;;
18121 ia64*)
18122 hardcode_libdir_flag_spec_F77='-L$libdir'
18123 hardcode_direct_F77=no
18124 hardcode_shlibpath_var_F77=no
18125
18126 # hardcode_minus_L: Not really in the search PATH,
18127 # but as the default location of the library.
18128 hardcode_minus_L_F77=yes
18129 ;;
18130 *)
18131 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18132 hardcode_libdir_separator_F77=:
18133 hardcode_direct_F77=yes
18134 export_dynamic_flag_spec_F77='${wl}-E'
18135
18136 # hardcode_minus_L: Not really in the search PATH,
18137 # but as the default location of the library.
18138 hardcode_minus_L_F77=yes
18139 ;;
18140 esac
18141 fi
18142 ;;
18143
18144 irix5* | irix6* | nonstopux*)
18145 if test "$GCC" = yes; then
18146 archive_cmds_F77='$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'
18147 else
18148 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18149 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18150 fi
18151 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18152 hardcode_libdir_separator_F77=:
18153 link_all_deplibs_F77=yes
18154 ;;
18155
18156 netbsd*)
18157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18158 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18159 else
18160 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18161 fi
18162 hardcode_libdir_flag_spec_F77='-R$libdir'
18163 hardcode_direct_F77=yes
18164 hardcode_shlibpath_var_F77=no
18165 ;;
18166
18167 newsos6)
18168 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18169 hardcode_direct_F77=yes
18170 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18171 hardcode_libdir_separator_F77=:
18172 hardcode_shlibpath_var_F77=no
18173 ;;
18174
18175 openbsd*)
18176 hardcode_direct_F77=yes
18177 hardcode_shlibpath_var_F77=no
18178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18179 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18180 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18181 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18182 export_dynamic_flag_spec_F77='${wl}-E'
18183 else
18184 case $host_os in
18185 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18186 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18187 hardcode_libdir_flag_spec_F77='-R$libdir'
18188 ;;
18189 *)
18190 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18191 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18192 ;;
18193 esac
18194 fi
18195 ;;
18196
18197 os2*)
18198 hardcode_libdir_flag_spec_F77='-L$libdir'
18199 hardcode_minus_L_F77=yes
18200 allow_undefined_flag_F77=unsupported
18201 archive_cmds_F77='$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'
18202 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18203 ;;
18204
18205 osf3*)
18206 if test "$GCC" = yes; then
18207 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18208 archive_cmds_F77='$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'
18209 else
18210 allow_undefined_flag_F77=' -expect_unresolved \*'
18211 archive_cmds_F77='$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'
18212 fi
18213 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18214 hardcode_libdir_separator_F77=:
18215 ;;
18216
18217 osf4* | osf5*) # as osf3* with the addition of -msym flag
18218 if test "$GCC" = yes; then
18219 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18220 archive_cmds_F77='$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'
18221 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18222 else
18223 allow_undefined_flag_F77=' -expect_unresolved \*'
18224 archive_cmds_F77='$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'
18225 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18226 $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'
18227
18228 # Both c and cxx compiler support -rpath directly
18229 hardcode_libdir_flag_spec_F77='-rpath $libdir'
18230 fi
18231 hardcode_libdir_separator_F77=:
18232 ;;
18233
18234 sco3.2v5*)
18235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18236 hardcode_shlibpath_var_F77=no
18237 export_dynamic_flag_spec_F77='${wl}-Bexport'
18238 runpath_var=LD_RUN_PATH
18239 hardcode_runpath_var=yes
18240 ;;
18241
18242 solaris*)
18243 no_undefined_flag_F77=' -z text'
18244 if test "$GCC" = yes; then
18245 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18246 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18247 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18248 else
18249 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18250 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18251 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18252 fi
18253 hardcode_libdir_flag_spec_F77='-R$libdir'
18254 hardcode_shlibpath_var_F77=no
18255 case $host_os in
18256 solaris2.[0-5] | solaris2.[0-5].*) ;;
18257 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18258 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
18259 esac
18260 link_all_deplibs_F77=yes
18261 ;;
18262
18263 sunos4*)
18264 if test "x$host_vendor" = xsequent; then
18265 # Use $CC to link under sequent, because it throws in some extra .o
18266 # files that make .init and .fini sections work.
18267 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18268 else
18269 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18270 fi
18271 hardcode_libdir_flag_spec_F77='-L$libdir'
18272 hardcode_direct_F77=yes
18273 hardcode_minus_L_F77=yes
18274 hardcode_shlibpath_var_F77=no
18275 ;;
18276
18277 sysv4)
18278 case $host_vendor in
18279 sni)
18280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18281 hardcode_direct_F77=yes # is this really true???
18282 ;;
18283 siemens)
18284 ## LD is ld it makes a PLAMLIB
18285 ## CC just makes a GrossModule.
18286 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18287 reload_cmds_F77='$CC -r -o $output$reload_objs'
18288 hardcode_direct_F77=no
18289 ;;
18290 motorola)
18291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18292 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18293 ;;
18294 esac
18295 runpath_var='LD_RUN_PATH'
18296 hardcode_shlibpath_var_F77=no
18297 ;;
18298
18299 sysv4.3*)
18300 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18301 hardcode_shlibpath_var_F77=no
18302 export_dynamic_flag_spec_F77='-Bexport'
18303 ;;
18304
18305 sysv4*MP*)
18306 if test -d /usr/nec; then
18307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18308 hardcode_shlibpath_var_F77=no
18309 runpath_var=LD_RUN_PATH
18310 hardcode_runpath_var=yes
18311 ld_shlibs_F77=yes
18312 fi
18313 ;;
18314
18315 sysv4.2uw2*)
18316 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18317 hardcode_direct_F77=yes
18318 hardcode_minus_L_F77=no
18319 hardcode_shlibpath_var_F77=no
18320 hardcode_runpath_var=yes
18321 runpath_var=LD_RUN_PATH
18322 ;;
18323
18324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18325 no_undefined_flag_F77='${wl}-z ${wl}text'
18326 if test "$GCC" = yes; then
18327 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18328 else
18329 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18330 fi
18331 runpath_var='LD_RUN_PATH'
18332 hardcode_shlibpath_var_F77=no
18333 ;;
18334
18335 sysv5*)
18336 no_undefined_flag_F77=' -z text'
18337 # $CC -shared without GNU ld will not create a library from C++
18338 # object files and a static libstdc++, better avoid it by now
18339 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18340 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18342 hardcode_libdir_flag_spec_F77=
18343 hardcode_shlibpath_var_F77=no
18344 runpath_var='LD_RUN_PATH'
18345 ;;
18346
18347 uts4*)
18348 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18349 hardcode_libdir_flag_spec_F77='-L$libdir'
18350 hardcode_shlibpath_var_F77=no
18351 ;;
18352
18353 *)
18354 ld_shlibs_F77=no
18355 ;;
18356 esac
18357 fi
18358
18359 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18360 echo "${ECHO_T}$ld_shlibs_F77" >&6
18361 test "$ld_shlibs_F77" = no && can_build_shared=no
18362
18363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18364 if test "$GCC" = yes; then
18365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18366 fi
18367
18368 #
18369 # Do we need to explicitly link libc?
18370 #
18371 case "x$archive_cmds_need_lc_F77" in
18372 x|xyes)
18373 # Assume -lc should be added
18374 archive_cmds_need_lc_F77=yes
18375
18376 if test "$enable_shared" = yes && test "$GCC" = yes; then
18377 case $archive_cmds_F77 in
18378 *'~'*)
18379 # FIXME: we may have to deal with multi-command sequences.
18380 ;;
18381 '$CC '*)
18382 # Test whether the compiler implicitly links with -lc since on some
18383 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18384 # to ld, don't add -lc before -lgcc.
18385 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18386 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18387 $rm conftest*
18388 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18389
18390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18391 (eval $ac_compile) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } 2>conftest.err; then
18395 soname=conftest
18396 lib=conftest
18397 libobjs=conftest.$ac_objext
18398 deplibs=
18399 wl=$lt_prog_compiler_wl_F77
18400 compiler_flags=-v
18401 linker_flags=-v
18402 verstring=
18403 output_objdir=.
18404 libname=conftest
18405 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18406 allow_undefined_flag_F77=
18407 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18408 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }
18412 then
18413 archive_cmds_need_lc_F77=no
18414 else
18415 archive_cmds_need_lc_F77=yes
18416 fi
18417 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18418 else
18419 cat conftest.err 1>&5
18420 fi
18421 $rm conftest*
18422 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18423 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
18424 ;;
18425 esac
18426 fi
18427 ;;
18428 esac
18429
18430 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18431 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18432 library_names_spec=
18433 libname_spec='lib$name'
18434 soname_spec=
18435 shrext_cmds=".so"
18436 postinstall_cmds=
18437 postuninstall_cmds=
18438 finish_cmds=
18439 finish_eval=
18440 shlibpath_var=
18441 shlibpath_overrides_runpath=unknown
18442 version_type=none
18443 dynamic_linker="$host_os ld.so"
18444 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18445 if test "$GCC" = yes; then
18446 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18447 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18448 # if the path contains ";" then we assume it to be the separator
18449 # otherwise default to the standard path separator (i.e. ":") - it is
18450 # assumed that no part of a normal pathname contains ";" but that should
18451 # okay in the real world where ";" in dirpaths is itself problematic.
18452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18453 else
18454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18455 fi
18456 else
18457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18458 fi
18459 need_lib_prefix=unknown
18460 hardcode_into_libs=no
18461
18462 # when you set need_version to no, make sure it does not cause -set_version
18463 # flags to be left without arguments
18464 need_version=unknown
18465
18466 case $host_os in
18467 aix3*)
18468 version_type=linux
18469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18470 shlibpath_var=LIBPATH
18471
18472 # AIX 3 has no versioning support, so we append a major version to the name.
18473 soname_spec='${libname}${release}${shared_ext}$major'
18474 ;;
18475
18476 aix4* | aix5*)
18477 version_type=linux
18478 need_lib_prefix=no
18479 need_version=no
18480 hardcode_into_libs=yes
18481 if test "$host_cpu" = ia64; then
18482 # AIX 5 supports IA64
18483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18484 shlibpath_var=LD_LIBRARY_PATH
18485 else
18486 # With GCC up to 2.95.x, collect2 would create an import file
18487 # for dependence libraries. The import file would start with
18488 # the line `#! .'. This would cause the generated library to
18489 # depend on `.', always an invalid library. This was fixed in
18490 # development snapshots of GCC prior to 3.0.
18491 case $host_os in
18492 aix4 | aix4.[01] | aix4.[01].*)
18493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18494 echo ' yes '
18495 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18496 :
18497 else
18498 can_build_shared=no
18499 fi
18500 ;;
18501 esac
18502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18503 # soname into executable. Probably we can add versioning support to
18504 # collect2, so additional links can be useful in future.
18505 if test "$aix_use_runtimelinking" = yes; then
18506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18507 # instead of lib<name>.a to let people know that these are not
18508 # typical AIX shared libraries.
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18510 else
18511 # We preserve .a as extension for shared libraries through AIX4.2
18512 # and later when we are not doing run time linking.
18513 library_names_spec='${libname}${release}.a $libname.a'
18514 soname_spec='${libname}${release}${shared_ext}$major'
18515 fi
18516 shlibpath_var=LIBPATH
18517 fi
18518 ;;
18519
18520 amigaos*)
18521 library_names_spec='$libname.ixlibrary $libname.a'
18522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18523 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'
18524 ;;
18525
18526 beos*)
18527 library_names_spec='${libname}${shared_ext}'
18528 dynamic_linker="$host_os ld.so"
18529 shlibpath_var=LIBRARY_PATH
18530 ;;
18531
18532 bsdi[45]*)
18533 version_type=linux
18534 need_version=no
18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536 soname_spec='${libname}${release}${shared_ext}$major'
18537 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18538 shlibpath_var=LD_LIBRARY_PATH
18539 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18540 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18541 # the default ld.so.conf also contains /usr/contrib/lib and
18542 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18543 # libtool to hard-code these into programs
18544 ;;
18545
18546 cygwin* | mingw* | pw32*)
18547 version_type=windows
18548 shrext_cmds=".dll"
18549 need_version=no
18550 need_lib_prefix=no
18551
18552 case $GCC,$host_os in
18553 yes,cygwin* | yes,mingw* | yes,pw32*)
18554 library_names_spec='$libname.dll.a'
18555 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18556 postinstall_cmds='base_file=`basename \${file}`~
18557 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18558 dldir=$destdir/`dirname \$dlpath`~
18559 test -d \$dldir || mkdir -p \$dldir~
18560 $install_prog $dir/$dlname \$dldir/$dlname'
18561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18562 dlpath=$dir/\$dldll~
18563 $rm \$dlpath'
18564 shlibpath_overrides_runpath=yes
18565
18566 case $host_os in
18567 cygwin*)
18568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18569 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18570 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18571 ;;
18572 mingw*)
18573 # MinGW DLLs use traditional 'lib' prefix
18574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18576 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18577 # It is most probably a Windows format PATH printed by
18578 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18579 # path with ; separators, and with drive letters. We can handle the
18580 # drive letters (cygwin fileutils understands them), so leave them,
18581 # especially as we might pass files found there to a mingw objdump,
18582 # which wouldn't understand a cygwinified path. Ahh.
18583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18584 else
18585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18586 fi
18587 ;;
18588 pw32*)
18589 # pw32 DLLs use 'pw' prefix rather than 'lib'
18590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18591 ;;
18592 esac
18593 ;;
18594
18595 *)
18596 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18597 ;;
18598 esac
18599 dynamic_linker='Win32 ld.exe'
18600 # FIXME: first we should search . and the directory the executable is in
18601 shlibpath_var=PATH
18602 ;;
18603
18604 darwin* | rhapsody*)
18605 dynamic_linker="$host_os dyld"
18606 version_type=darwin
18607 need_lib_prefix=no
18608 need_version=no
18609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18610 soname_spec='${libname}${release}${major}$shared_ext'
18611 shlibpath_overrides_runpath=yes
18612 shlibpath_var=DYLD_LIBRARY_PATH
18613 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18614 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18615 if test "$GCC" = yes; then
18616 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18617 else
18618 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18619 fi
18620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18621 ;;
18622
18623 dgux*)
18624 version_type=linux
18625 need_lib_prefix=no
18626 need_version=no
18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18628 soname_spec='${libname}${release}${shared_ext}$major'
18629 shlibpath_var=LD_LIBRARY_PATH
18630 ;;
18631
18632 freebsd1*)
18633 dynamic_linker=no
18634 ;;
18635
18636 kfreebsd*-gnu)
18637 version_type=linux
18638 need_lib_prefix=no
18639 need_version=no
18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18641 soname_spec='${libname}${release}${shared_ext}$major'
18642 shlibpath_var=LD_LIBRARY_PATH
18643 shlibpath_overrides_runpath=no
18644 hardcode_into_libs=yes
18645 dynamic_linker='GNU ld.so'
18646 ;;
18647
18648 freebsd*)
18649 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18650 version_type=freebsd-$objformat
18651 case $version_type in
18652 freebsd-elf*)
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18654 need_version=no
18655 need_lib_prefix=no
18656 ;;
18657 freebsd-*)
18658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18659 need_version=yes
18660 ;;
18661 esac
18662 shlibpath_var=LD_LIBRARY_PATH
18663 case $host_os in
18664 freebsd2*)
18665 shlibpath_overrides_runpath=yes
18666 ;;
18667 freebsd3.01* | freebsdelf3.01*)
18668 shlibpath_overrides_runpath=yes
18669 hardcode_into_libs=yes
18670 ;;
18671 *) # from 3.2 on
18672 shlibpath_overrides_runpath=no
18673 hardcode_into_libs=yes
18674 ;;
18675 esac
18676 ;;
18677
18678 gnu*)
18679 version_type=linux
18680 need_lib_prefix=no
18681 need_version=no
18682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18683 soname_spec='${libname}${release}${shared_ext}$major'
18684 shlibpath_var=LD_LIBRARY_PATH
18685 hardcode_into_libs=yes
18686 ;;
18687
18688 hpux9* | hpux10* | hpux11*)
18689 # Give a soname corresponding to the major version so that dld.sl refuses to
18690 # link against other versions.
18691 version_type=sunos
18692 need_lib_prefix=no
18693 need_version=no
18694 case "$host_cpu" in
18695 ia64*)
18696 shrext_cmds='.so'
18697 hardcode_into_libs=yes
18698 dynamic_linker="$host_os dld.so"
18699 shlibpath_var=LD_LIBRARY_PATH
18700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18702 soname_spec='${libname}${release}${shared_ext}$major'
18703 if test "X$HPUX_IA64_MODE" = X32; then
18704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18705 else
18706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18707 fi
18708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18709 ;;
18710 hppa*64*)
18711 shrext_cmds='.sl'
18712 hardcode_into_libs=yes
18713 dynamic_linker="$host_os dld.sl"
18714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18717 soname_spec='${libname}${release}${shared_ext}$major'
18718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18720 ;;
18721 *)
18722 shrext_cmds='.sl'
18723 dynamic_linker="$host_os dld.sl"
18724 shlibpath_var=SHLIB_PATH
18725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18727 soname_spec='${libname}${release}${shared_ext}$major'
18728 ;;
18729 esac
18730 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18731 postinstall_cmds='chmod 555 $lib'
18732 ;;
18733
18734 irix5* | irix6* | nonstopux*)
18735 case $host_os in
18736 nonstopux*) version_type=nonstopux ;;
18737 *)
18738 if test "$lt_cv_prog_gnu_ld" = yes; then
18739 version_type=linux
18740 else
18741 version_type=irix
18742 fi ;;
18743 esac
18744 need_lib_prefix=no
18745 need_version=no
18746 soname_spec='${libname}${release}${shared_ext}$major'
18747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18748 case $host_os in
18749 irix5* | nonstopux*)
18750 libsuff= shlibsuff=
18751 ;;
18752 *)
18753 case $LD in # libtool.m4 will add one of these switches to LD
18754 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18755 libsuff= shlibsuff= libmagic=32-bit;;
18756 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18757 libsuff=32 shlibsuff=N32 libmagic=N32;;
18758 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18759 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18760 *) libsuff= shlibsuff= libmagic=never-match;;
18761 esac
18762 ;;
18763 esac
18764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18765 shlibpath_overrides_runpath=no
18766 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18767 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18768 hardcode_into_libs=yes
18769 ;;
18770
18771 # No shared lib support for Linux oldld, aout, or coff.
18772 linux*oldld* | linux*aout* | linux*coff*)
18773 dynamic_linker=no
18774 ;;
18775
18776 # This must be Linux ELF.
18777 linux*)
18778 version_type=linux
18779 need_lib_prefix=no
18780 need_version=no
18781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18782 soname_spec='${libname}${release}${shared_ext}$major'
18783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18784 shlibpath_var=LD_LIBRARY_PATH
18785 shlibpath_overrides_runpath=no
18786 # This implies no fast_install, which is unacceptable.
18787 # Some rework will be needed to allow for fast_install
18788 # before this can be enabled.
18789 hardcode_into_libs=yes
18790
18791 # Append ld.so.conf contents to the search path
18792 if test -f /etc/ld.so.conf; then
18793 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18794 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18795 fi
18796
18797 # We used to test for /lib/ld.so.1 and disable shared libraries on
18798 # powerpc, because MkLinux only supported shared libraries with the
18799 # GNU dynamic linker. Since this was broken with cross compilers,
18800 # most powerpc-linux boxes support dynamic linking these days and
18801 # people can always --disable-shared, the test was removed, and we
18802 # assume the GNU/Linux dynamic linker is in use.
18803 dynamic_linker='GNU/Linux ld.so'
18804 ;;
18805
18806 knetbsd*-gnu)
18807 version_type=linux
18808 need_lib_prefix=no
18809 need_version=no
18810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18811 soname_spec='${libname}${release}${shared_ext}$major'
18812 shlibpath_var=LD_LIBRARY_PATH
18813 shlibpath_overrides_runpath=no
18814 hardcode_into_libs=yes
18815 dynamic_linker='GNU ld.so'
18816 ;;
18817
18818 netbsd*)
18819 version_type=sunos
18820 need_lib_prefix=no
18821 need_version=no
18822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18825 dynamic_linker='NetBSD (a.out) ld.so'
18826 else
18827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18828 soname_spec='${libname}${release}${shared_ext}$major'
18829 dynamic_linker='NetBSD ld.elf_so'
18830 fi
18831 shlibpath_var=LD_LIBRARY_PATH
18832 shlibpath_overrides_runpath=yes
18833 hardcode_into_libs=yes
18834 ;;
18835
18836 newsos6)
18837 version_type=linux
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839 shlibpath_var=LD_LIBRARY_PATH
18840 shlibpath_overrides_runpath=yes
18841 ;;
18842
18843 nto-qnx*)
18844 version_type=linux
18845 need_lib_prefix=no
18846 need_version=no
18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848 soname_spec='${libname}${release}${shared_ext}$major'
18849 shlibpath_var=LD_LIBRARY_PATH
18850 shlibpath_overrides_runpath=yes
18851 ;;
18852
18853 openbsd*)
18854 version_type=sunos
18855 need_lib_prefix=no
18856 need_version=no
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18859 shlibpath_var=LD_LIBRARY_PATH
18860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18861 case $host_os in
18862 openbsd2.[89] | openbsd2.[89].*)
18863 shlibpath_overrides_runpath=no
18864 ;;
18865 *)
18866 shlibpath_overrides_runpath=yes
18867 ;;
18868 esac
18869 else
18870 shlibpath_overrides_runpath=yes
18871 fi
18872 ;;
18873
18874 os2*)
18875 libname_spec='$name'
18876 shrext_cmds=".dll"
18877 need_lib_prefix=no
18878 library_names_spec='$libname${shared_ext} $libname.a'
18879 dynamic_linker='OS/2 ld.exe'
18880 shlibpath_var=LIBPATH
18881 ;;
18882
18883 osf3* | osf4* | osf5*)
18884 version_type=osf
18885 need_lib_prefix=no
18886 need_version=no
18887 soname_spec='${libname}${release}${shared_ext}$major'
18888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18889 shlibpath_var=LD_LIBRARY_PATH
18890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18892 ;;
18893
18894 sco3.2v5*)
18895 version_type=osf
18896 soname_spec='${libname}${release}${shared_ext}$major'
18897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18898 shlibpath_var=LD_LIBRARY_PATH
18899 ;;
18900
18901 solaris*)
18902 version_type=linux
18903 need_lib_prefix=no
18904 need_version=no
18905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18906 soname_spec='${libname}${release}${shared_ext}$major'
18907 shlibpath_var=LD_LIBRARY_PATH
18908 shlibpath_overrides_runpath=yes
18909 hardcode_into_libs=yes
18910 # ldd complains unless libraries are executable
18911 postinstall_cmds='chmod +x $lib'
18912 ;;
18913
18914 sunos4*)
18915 version_type=sunos
18916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18918 shlibpath_var=LD_LIBRARY_PATH
18919 shlibpath_overrides_runpath=yes
18920 if test "$with_gnu_ld" = yes; then
18921 need_lib_prefix=no
18922 fi
18923 need_version=yes
18924 ;;
18925
18926 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18927 version_type=linux
18928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929 soname_spec='${libname}${release}${shared_ext}$major'
18930 shlibpath_var=LD_LIBRARY_PATH
18931 case $host_vendor in
18932 sni)
18933 shlibpath_overrides_runpath=no
18934 need_lib_prefix=no
18935 export_dynamic_flag_spec='${wl}-Blargedynsym'
18936 runpath_var=LD_RUN_PATH
18937 ;;
18938 siemens)
18939 need_lib_prefix=no
18940 ;;
18941 motorola)
18942 need_lib_prefix=no
18943 need_version=no
18944 shlibpath_overrides_runpath=no
18945 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18946 ;;
18947 esac
18948 ;;
18949
18950 sysv4*MP*)
18951 if test -d /usr/nec ;then
18952 version_type=linux
18953 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18954 soname_spec='$libname${shared_ext}.$major'
18955 shlibpath_var=LD_LIBRARY_PATH
18956 fi
18957 ;;
18958
18959 uts4*)
18960 version_type=linux
18961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18962 soname_spec='${libname}${release}${shared_ext}$major'
18963 shlibpath_var=LD_LIBRARY_PATH
18964 ;;
18965
18966 *)
18967 dynamic_linker=no
18968 ;;
18969 esac
18970 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18971 echo "${ECHO_T}$dynamic_linker" >&6
18972 test "$dynamic_linker" = no && can_build_shared=no
18973
18974 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18975 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18976 hardcode_action_F77=
18977 if test -n "$hardcode_libdir_flag_spec_F77" || \
18978 test -n "$runpath_var_F77" || \
18979 test "X$hardcode_automatic_F77" = "Xyes" ; then
18980
18981 # We can hardcode non-existant directories.
18982 if test "$hardcode_direct_F77" != no &&
18983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18984 # have to relink, otherwise we might link with an installed library
18985 # when we should be linking with a yet-to-be-installed one
18986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18987 test "$hardcode_minus_L_F77" != no; then
18988 # Linking always hardcodes the temporary library directory.
18989 hardcode_action_F77=relink
18990 else
18991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18992 hardcode_action_F77=immediate
18993 fi
18994 else
18995 # We cannot hardcode anything, or else we can only hardcode existing
18996 # directories.
18997 hardcode_action_F77=unsupported
18998 fi
18999 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
19000 echo "${ECHO_T}$hardcode_action_F77" >&6
19001
19002 if test "$hardcode_action_F77" = relink; then
19003 # Fast installation is not supported
19004 enable_fast_install=no
19005 elif test "$shlibpath_overrides_runpath" = yes ||
19006 test "$enable_shared" = no; then
19007 # Fast installation is not necessary
19008 enable_fast_install=needless
19009 fi
19010
19011 striplib=
19012 old_striplib=
19013 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19014 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19015 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19016 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19017 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19018 echo "$as_me:$LINENO: result: yes" >&5
19019 echo "${ECHO_T}yes" >&6
19020 else
19021 # FIXME - insert some real tests, host_os isn't really good enough
19022 case $host_os in
19023 darwin*)
19024 if test -n "$STRIP" ; then
19025 striplib="$STRIP -x"
19026 echo "$as_me:$LINENO: result: yes" >&5
19027 echo "${ECHO_T}yes" >&6
19028 else
19029 echo "$as_me:$LINENO: result: no" >&5
19030 echo "${ECHO_T}no" >&6
19031 fi
19032 ;;
19033 *)
19034 echo "$as_me:$LINENO: result: no" >&5
19035 echo "${ECHO_T}no" >&6
19036 ;;
19037 esac
19038 fi
19039
19040
19041
19042 # The else clause should only fire when bootstrapping the
19043 # libtool distribution, otherwise you forgot to ship ltmain.sh
19044 # with your package, and you will get complaints that there are
19045 # no rules to generate ltmain.sh.
19046 if test -f "$ltmain"; then
19047 # See if we are running on zsh, and set the options which allow our commands through
19048 # without removal of \ escapes.
19049 if test -n "${ZSH_VERSION+set}" ; then
19050 setopt NO_GLOB_SUBST
19051 fi
19052 # Now quote all the things that may contain metacharacters while being
19053 # careful not to overquote the AC_SUBSTed values. We take copies of the
19054 # variables and quote the copies for generation of the libtool script.
19055 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19056 SED SHELL STRIP \
19057 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19058 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19059 deplibs_check_method reload_flag reload_cmds need_locks \
19060 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19061 lt_cv_sys_global_symbol_to_c_name_address \
19062 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19063 old_postinstall_cmds old_postuninstall_cmds \
19064 compiler_F77 \
19065 CC_F77 \
19066 LD_F77 \
19067 lt_prog_compiler_wl_F77 \
19068 lt_prog_compiler_pic_F77 \
19069 lt_prog_compiler_static_F77 \
19070 lt_prog_compiler_no_builtin_flag_F77 \
19071 export_dynamic_flag_spec_F77 \
19072 thread_safe_flag_spec_F77 \
19073 whole_archive_flag_spec_F77 \
19074 enable_shared_with_static_runtimes_F77 \
19075 old_archive_cmds_F77 \
19076 old_archive_from_new_cmds_F77 \
19077 predep_objects_F77 \
19078 postdep_objects_F77 \
19079 predeps_F77 \
19080 postdeps_F77 \
19081 compiler_lib_search_path_F77 \
19082 archive_cmds_F77 \
19083 archive_expsym_cmds_F77 \
19084 postinstall_cmds_F77 \
19085 postuninstall_cmds_F77 \
19086 old_archive_from_expsyms_cmds_F77 \
19087 allow_undefined_flag_F77 \
19088 no_undefined_flag_F77 \
19089 export_symbols_cmds_F77 \
19090 hardcode_libdir_flag_spec_F77 \
19091 hardcode_libdir_flag_spec_ld_F77 \
19092 hardcode_libdir_separator_F77 \
19093 hardcode_automatic_F77 \
19094 module_cmds_F77 \
19095 module_expsym_cmds_F77 \
19096 lt_cv_prog_compiler_c_o_F77 \
19097 exclude_expsyms_F77 \
19098 include_expsyms_F77; do
19099
19100 case $var in
19101 old_archive_cmds_F77 | \
19102 old_archive_from_new_cmds_F77 | \
19103 archive_cmds_F77 | \
19104 archive_expsym_cmds_F77 | \
19105 module_cmds_F77 | \
19106 module_expsym_cmds_F77 | \
19107 old_archive_from_expsyms_cmds_F77 | \
19108 export_symbols_cmds_F77 | \
19109 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19110 postinstall_cmds | postuninstall_cmds | \
19111 old_postinstall_cmds | old_postuninstall_cmds | \
19112 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19113 # Double-quote double-evaled strings.
19114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19115 ;;
19116 *)
19117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19118 ;;
19119 esac
19120 done
19121
19122 case $lt_echo in
19123 *'\$0 --fallback-echo"')
19124 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19125 ;;
19126 esac
19127
19128 cfgfile="$ofile"
19129
19130 cat <<__EOF__ >> "$cfgfile"
19131 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19132
19133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19134
19135 # Shell to use when invoking shell scripts.
19136 SHELL=$lt_SHELL
19137
19138 # Whether or not to build shared libraries.
19139 build_libtool_libs=$enable_shared
19140
19141 # Whether or not to build static libraries.
19142 build_old_libs=$enable_static
19143
19144 # Whether or not to add -lc for building shared libraries.
19145 build_libtool_need_lc=$archive_cmds_need_lc_F77
19146
19147 # Whether or not to disallow shared libs when runtime libs are static
19148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19149
19150 # Whether or not to optimize for fast installation.
19151 fast_install=$enable_fast_install
19152
19153 # The host system.
19154 host_alias=$host_alias
19155 host=$host
19156
19157 # An echo program that does not interpret backslashes.
19158 echo=$lt_echo
19159
19160 # The archiver.
19161 AR=$lt_AR
19162 AR_FLAGS=$lt_AR_FLAGS
19163
19164 # A C compiler.
19165 LTCC=$lt_LTCC
19166
19167 # A language-specific compiler.
19168 CC=$lt_compiler_F77
19169
19170 # Is the compiler the GNU C compiler?
19171 with_gcc=$GCC_F77
19172
19173 # An ERE matcher.
19174 EGREP=$lt_EGREP
19175
19176 # The linker used to build libraries.
19177 LD=$lt_LD_F77
19178
19179 # Whether we need hard or soft links.
19180 LN_S=$lt_LN_S
19181
19182 # A BSD-compatible nm program.
19183 NM=$lt_NM
19184
19185 # A symbol stripping program
19186 STRIP=$lt_STRIP
19187
19188 # Used to examine libraries when file_magic_cmd begins "file"
19189 MAGIC_CMD=$MAGIC_CMD
19190
19191 # Used on cygwin: DLL creation program.
19192 DLLTOOL="$DLLTOOL"
19193
19194 # Used on cygwin: object dumper.
19195 OBJDUMP="$OBJDUMP"
19196
19197 # Used on cygwin: assembler.
19198 AS="$AS"
19199
19200 # The name of the directory that contains temporary libtool files.
19201 objdir=$objdir
19202
19203 # How to create reloadable object files.
19204 reload_flag=$lt_reload_flag
19205 reload_cmds=$lt_reload_cmds
19206
19207 # How to pass a linker flag through the compiler.
19208 wl=$lt_lt_prog_compiler_wl_F77
19209
19210 # Object file suffix (normally "o").
19211 objext="$ac_objext"
19212
19213 # Old archive suffix (normally "a").
19214 libext="$libext"
19215
19216 # Shared library suffix (normally ".so").
19217 shrext_cmds='$shrext_cmds'
19218
19219 # Executable file suffix (normally "").
19220 exeext="$exeext"
19221
19222 # Additional compiler flags for building library objects.
19223 pic_flag=$lt_lt_prog_compiler_pic_F77
19224 pic_mode=$pic_mode
19225
19226 # What is the maximum length of a command?
19227 max_cmd_len=$lt_cv_sys_max_cmd_len
19228
19229 # Does compiler simultaneously support -c and -o options?
19230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19231
19232 # Must we lock files when doing compilation ?
19233 need_locks=$lt_need_locks
19234
19235 # Do we need the lib prefix for modules?
19236 need_lib_prefix=$need_lib_prefix
19237
19238 # Do we need a version for libraries?
19239 need_version=$need_version
19240
19241 # Whether dlopen is supported.
19242 dlopen_support=$enable_dlopen
19243
19244 # Whether dlopen of programs is supported.
19245 dlopen_self=$enable_dlopen_self
19246
19247 # Whether dlopen of statically linked programs is supported.
19248 dlopen_self_static=$enable_dlopen_self_static
19249
19250 # Compiler flag to prevent dynamic linking.
19251 link_static_flag=$lt_lt_prog_compiler_static_F77
19252
19253 # Compiler flag to turn off builtin functions.
19254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19255
19256 # Compiler flag to allow reflexive dlopens.
19257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19258
19259 # Compiler flag to generate shared objects directly from archives.
19260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19261
19262 # Compiler flag to generate thread-safe objects.
19263 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19264
19265 # Library versioning type.
19266 version_type=$version_type
19267
19268 # Format of library name prefix.
19269 libname_spec=$lt_libname_spec
19270
19271 # List of archive names. First name is the real one, the rest are links.
19272 # The last name is the one that the linker finds with -lNAME.
19273 library_names_spec=$lt_library_names_spec
19274
19275 # The coded name of the library, if different from the real name.
19276 soname_spec=$lt_soname_spec
19277
19278 # Commands used to build and install an old-style archive.
19279 RANLIB=$lt_RANLIB
19280 old_archive_cmds=$lt_old_archive_cmds_F77
19281 old_postinstall_cmds=$lt_old_postinstall_cmds
19282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19283
19284 # Create an old-style archive from a shared archive.
19285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19286
19287 # Create a temporary old-style archive to link instead of a shared archive.
19288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19289
19290 # Commands used to build and install a shared archive.
19291 archive_cmds=$lt_archive_cmds_F77
19292 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19293 postinstall_cmds=$lt_postinstall_cmds
19294 postuninstall_cmds=$lt_postuninstall_cmds
19295
19296 # Commands used to build a loadable module (assumed same as above if empty)
19297 module_cmds=$lt_module_cmds_F77
19298 module_expsym_cmds=$lt_module_expsym_cmds_F77
19299
19300 # Commands to strip libraries.
19301 old_striplib=$lt_old_striplib
19302 striplib=$lt_striplib
19303
19304 # Dependencies to place before the objects being linked to create a
19305 # shared library.
19306 predep_objects=$lt_predep_objects_F77
19307
19308 # Dependencies to place after the objects being linked to create a
19309 # shared library.
19310 postdep_objects=$lt_postdep_objects_F77
19311
19312 # Dependencies to place before the objects being linked to create a
19313 # shared library.
19314 predeps=$lt_predeps_F77
19315
19316 # Dependencies to place after the objects being linked to create a
19317 # shared library.
19318 postdeps=$lt_postdeps_F77
19319
19320 # The library search path used internally by the compiler when linking
19321 # a shared library.
19322 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19323
19324 # Method to check whether dependent libraries are shared objects.
19325 deplibs_check_method=$lt_deplibs_check_method
19326
19327 # Command to use when deplibs_check_method == file_magic.
19328 file_magic_cmd=$lt_file_magic_cmd
19329
19330 # Flag that allows shared libraries with undefined symbols to be built.
19331 allow_undefined_flag=$lt_allow_undefined_flag_F77
19332
19333 # Flag that forces no undefined symbols.
19334 no_undefined_flag=$lt_no_undefined_flag_F77
19335
19336 # Commands used to finish a libtool library installation in a directory.
19337 finish_cmds=$lt_finish_cmds
19338
19339 # Same as above, but a single script fragment to be evaled but not shown.
19340 finish_eval=$lt_finish_eval
19341
19342 # Take the output of nm and produce a listing of raw symbols and C names.
19343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19344
19345 # Transform the output of nm in a proper C declaration
19346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19347
19348 # Transform the output of nm in a C name address pair
19349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19350
19351 # This is the shared library runtime path variable.
19352 runpath_var=$runpath_var
19353
19354 # This is the shared library path variable.
19355 shlibpath_var=$shlibpath_var
19356
19357 # Is shlibpath searched before the hard-coded library search path?
19358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19359
19360 # How to hardcode a shared library path into an executable.
19361 hardcode_action=$hardcode_action_F77
19362
19363 # Whether we should hardcode library paths into libraries.
19364 hardcode_into_libs=$hardcode_into_libs
19365
19366 # Flag to hardcode \$libdir into a binary during linking.
19367 # This must work even if \$libdir does not exist.
19368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19369
19370 # If ld is used when linking, flag to hardcode \$libdir into
19371 # a binary during linking. This must work even if \$libdir does
19372 # not exist.
19373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19374
19375 # Whether we need a single -rpath flag with a separated argument.
19376 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19377
19378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19379 # resulting binary.
19380 hardcode_direct=$hardcode_direct_F77
19381
19382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19383 # resulting binary.
19384 hardcode_minus_L=$hardcode_minus_L_F77
19385
19386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19387 # the resulting binary.
19388 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19389
19390 # Set to yes if building a shared library automatically hardcodes DIR into the library
19391 # and all subsequent libraries and executables linked against it.
19392 hardcode_automatic=$hardcode_automatic_F77
19393
19394 # Variables whose values should be saved in libtool wrapper scripts and
19395 # restored at relink time.
19396 variables_saved_for_relink="$variables_saved_for_relink"
19397
19398 # Whether libtool must link a program against all its dependency libraries.
19399 link_all_deplibs=$link_all_deplibs_F77
19400
19401 # Compile-time system search path for libraries
19402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19403
19404 # Run-time system search path for libraries
19405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19406
19407 # Fix the shell variable \$srcfile for the compiler.
19408 fix_srcfile_path="$fix_srcfile_path_F77"
19409
19410 # Set to yes if exported symbols are required.
19411 always_export_symbols=$always_export_symbols_F77
19412
19413 # The commands to list exported symbols.
19414 export_symbols_cmds=$lt_export_symbols_cmds_F77
19415
19416 # The commands to extract the exported symbol list from a shared archive.
19417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19418
19419 # Symbols that should not be listed in the preloaded symbols.
19420 exclude_expsyms=$lt_exclude_expsyms_F77
19421
19422 # Symbols that must always be exported.
19423 include_expsyms=$lt_include_expsyms_F77
19424
19425 # ### END LIBTOOL TAG CONFIG: $tagname
19426
19427 __EOF__
19428
19429
19430 else
19431 # If there is no Makefile yet, we rely on a make rule to execute
19432 # `config.status --recheck' to rerun these tests and create the
19433 # libtool script then.
19434 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19435 if test -f "$ltmain_in"; then
19436 test -f Makefile && make "$ltmain"
19437 fi
19438 fi
19439
19440
19441 ac_ext=c
19442 ac_cpp='$CPP $CPPFLAGS'
19443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19446
19447 CC="$lt_save_CC"
19448
19449 else
19450 tagname=""
19451 fi
19452 ;;
19453
19454 GCJ)
19455 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19456
19457
19458
19459 # Source file extension for Java test sources.
19460 ac_ext=java
19461
19462 # Object file extension for compiled Java test sources.
19463 objext=o
19464 objext_GCJ=$objext
19465
19466 # Code to be used in simple compile tests
19467 lt_simple_compile_test_code="class foo {}\n"
19468
19469 # Code to be used in simple link tests
19470 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
19471
19472 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19473
19474 # If no C compiler was specified, use CC.
19475 LTCC=${LTCC-"$CC"}
19476
19477 # Allow CC to be a program name with arguments.
19478 compiler=$CC
19479
19480
19481 # Allow CC to be a program name with arguments.
19482 lt_save_CC="$CC"
19483 CC=${GCJ-"gcj"}
19484 compiler=$CC
19485 compiler_GCJ=$CC
19486
19487 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19488 archive_cmds_need_lc_GCJ=no
19489
19490
19491 lt_prog_compiler_no_builtin_flag_GCJ=
19492
19493 if test "$GCC" = yes; then
19494 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19495
19496
19497 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19498 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
19499 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
19501 else
19502 lt_cv_prog_compiler_rtti_exceptions=no
19503 ac_outfile=conftest.$ac_objext
19504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19505 lt_compiler_flag="-fno-rtti -fno-exceptions"
19506 # Insert the option either (1) after the last *FLAGS variable, or
19507 # (2) before a word containing "conftest.", or (3) at the end.
19508 # Note that $ac_compile itself does not contain backslashes and begins
19509 # with a dollar sign (not a hyphen), so the echo should work correctly.
19510 # The option is referenced via a variable to avoid confusing sed.
19511 lt_compile=`echo "$ac_compile" | $SED \
19512 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19514 -e 's:$: $lt_compiler_flag:'`
19515 (eval echo "\"\$as_me:19515: $lt_compile\"" >&5)
19516 (eval "$lt_compile" 2>conftest.err)
19517 ac_status=$?
19518 cat conftest.err >&5
19519 echo "$as_me:19519: \$? = $ac_status" >&5
19520 if (exit $ac_status) && test -s "$ac_outfile"; then
19521 # The compiler can only warn and ignore the option if not recognized
19522 # So say no if there are warnings
19523 if test ! -s conftest.err; then
19524 lt_cv_prog_compiler_rtti_exceptions=yes
19525 fi
19526 fi
19527 $rm conftest*
19528
19529 fi
19530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19531 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
19532
19533 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19534 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19535 else
19536 :
19537 fi
19538
19539 fi
19540
19541 lt_prog_compiler_wl_GCJ=
19542 lt_prog_compiler_pic_GCJ=
19543 lt_prog_compiler_static_GCJ=
19544
19545 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19546 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19547
19548 if test "$GCC" = yes; then
19549 lt_prog_compiler_wl_GCJ='-Wl,'
19550 lt_prog_compiler_static_GCJ='-static'
19551
19552 case $host_os in
19553 aix*)
19554 # All AIX code is PIC.
19555 if test "$host_cpu" = ia64; then
19556 # AIX 5 now supports IA64 processor
19557 lt_prog_compiler_static_GCJ='-Bstatic'
19558 fi
19559 ;;
19560
19561 amigaos*)
19562 # FIXME: we need at least 68020 code to build shared libraries, but
19563 # adding the `-m68020' flag to GCC prevents building anything better,
19564 # like `-m68040'.
19565 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19566 ;;
19567
19568 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19569 # PIC is the default for these OSes.
19570 ;;
19571
19572 mingw* | pw32* | os2*)
19573 # This hack is so that the source file can tell whether it is being
19574 # built for inclusion in a dll (and should export symbols for example).
19575 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19576 ;;
19577
19578 darwin* | rhapsody*)
19579 # PIC is the default on this platform
19580 # Common symbols not allowed in MH_DYLIB files
19581 lt_prog_compiler_pic_GCJ='-fno-common'
19582 ;;
19583
19584 msdosdjgpp*)
19585 # Just because we use GCC doesn't mean we suddenly get shared libraries
19586 # on systems that don't support them.
19587 lt_prog_compiler_can_build_shared_GCJ=no
19588 enable_shared=no
19589 ;;
19590
19591 sysv4*MP*)
19592 if test -d /usr/nec; then
19593 lt_prog_compiler_pic_GCJ=-Kconform_pic
19594 fi
19595 ;;
19596
19597 hpux*)
19598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19599 # not for PA HP-UX.
19600 case "$host_cpu" in
19601 hppa*64*|ia64*)
19602 # +Z the default
19603 ;;
19604 *)
19605 lt_prog_compiler_pic_GCJ='-fPIC'
19606 ;;
19607 esac
19608 ;;
19609
19610 *)
19611 lt_prog_compiler_pic_GCJ='-fPIC'
19612 ;;
19613 esac
19614 else
19615 # PORTME Check for flag to pass linker flags through the system compiler.
19616 case $host_os in
19617 aix*)
19618 lt_prog_compiler_wl_GCJ='-Wl,'
19619 if test "$host_cpu" = ia64; then
19620 # AIX 5 now supports IA64 processor
19621 lt_prog_compiler_static_GCJ='-Bstatic'
19622 else
19623 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19624 fi
19625 ;;
19626 darwin*)
19627 # PIC is the default on this platform
19628 # Common symbols not allowed in MH_DYLIB files
19629 case "$cc_basename" in
19630 xlc*)
19631 lt_prog_compiler_pic_GCJ='-qnocommon'
19632 lt_prog_compiler_wl_GCJ='-Wl,'
19633 ;;
19634 esac
19635 ;;
19636
19637 mingw* | pw32* | os2*)
19638 # This hack is so that the source file can tell whether it is being
19639 # built for inclusion in a dll (and should export symbols for example).
19640 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19641 ;;
19642
19643 hpux9* | hpux10* | hpux11*)
19644 lt_prog_compiler_wl_GCJ='-Wl,'
19645 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19646 # not for PA HP-UX.
19647 case "$host_cpu" in
19648 hppa*64*|ia64*)
19649 # +Z the default
19650 ;;
19651 *)
19652 lt_prog_compiler_pic_GCJ='+Z'
19653 ;;
19654 esac
19655 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19656 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19657 ;;
19658
19659 irix5* | irix6* | nonstopux*)
19660 lt_prog_compiler_wl_GCJ='-Wl,'
19661 # PIC (with -KPIC) is the default.
19662 lt_prog_compiler_static_GCJ='-non_shared'
19663 ;;
19664
19665 newsos6)
19666 lt_prog_compiler_pic_GCJ='-KPIC'
19667 lt_prog_compiler_static_GCJ='-Bstatic'
19668 ;;
19669
19670 linux*)
19671 case $CC in
19672 icc* | ecc*)
19673 lt_prog_compiler_wl_GCJ='-Wl,'
19674 lt_prog_compiler_pic_GCJ='-KPIC'
19675 lt_prog_compiler_static_GCJ='-static'
19676 ;;
19677 ccc*)
19678 lt_prog_compiler_wl_GCJ='-Wl,'
19679 # All Alpha code is PIC.
19680 lt_prog_compiler_static_GCJ='-non_shared'
19681 ;;
19682 esac
19683 ;;
19684
19685 osf3* | osf4* | osf5*)
19686 lt_prog_compiler_wl_GCJ='-Wl,'
19687 # All OSF/1 code is PIC.
19688 lt_prog_compiler_static_GCJ='-non_shared'
19689 ;;
19690
19691 sco3.2v5*)
19692 lt_prog_compiler_pic_GCJ='-Kpic'
19693 lt_prog_compiler_static_GCJ='-dn'
19694 ;;
19695
19696 solaris*)
19697 lt_prog_compiler_wl_GCJ='-Wl,'
19698 lt_prog_compiler_pic_GCJ='-KPIC'
19699 lt_prog_compiler_static_GCJ='-Bstatic'
19700 ;;
19701
19702 sunos4*)
19703 lt_prog_compiler_wl_GCJ='-Qoption ld '
19704 lt_prog_compiler_pic_GCJ='-PIC'
19705 lt_prog_compiler_static_GCJ='-Bstatic'
19706 ;;
19707
19708 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19709 lt_prog_compiler_wl_GCJ='-Wl,'
19710 lt_prog_compiler_pic_GCJ='-KPIC'
19711 lt_prog_compiler_static_GCJ='-Bstatic'
19712 ;;
19713
19714 sysv4*MP*)
19715 if test -d /usr/nec ;then
19716 lt_prog_compiler_pic_GCJ='-Kconform_pic'
19717 lt_prog_compiler_static_GCJ='-Bstatic'
19718 fi
19719 ;;
19720
19721 uts4*)
19722 lt_prog_compiler_pic_GCJ='-pic'
19723 lt_prog_compiler_static_GCJ='-Bstatic'
19724 ;;
19725
19726 *)
19727 lt_prog_compiler_can_build_shared_GCJ=no
19728 ;;
19729 esac
19730 fi
19731
19732 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19733 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
19734
19735 #
19736 # Check to make sure the PIC flag actually works.
19737 #
19738 if test -n "$lt_prog_compiler_pic_GCJ"; then
19739
19740 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19741 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
19742 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 else
19745 lt_prog_compiler_pic_works_GCJ=no
19746 ac_outfile=conftest.$ac_objext
19747 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19748 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19749 # Insert the option either (1) after the last *FLAGS variable, or
19750 # (2) before a word containing "conftest.", or (3) at the end.
19751 # Note that $ac_compile itself does not contain backslashes and begins
19752 # with a dollar sign (not a hyphen), so the echo should work correctly.
19753 # The option is referenced via a variable to avoid confusing sed.
19754 lt_compile=`echo "$ac_compile" | $SED \
19755 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19757 -e 's:$: $lt_compiler_flag:'`
19758 (eval echo "\"\$as_me:19758: $lt_compile\"" >&5)
19759 (eval "$lt_compile" 2>conftest.err)
19760 ac_status=$?
19761 cat conftest.err >&5
19762 echo "$as_me:19762: \$? = $ac_status" >&5
19763 if (exit $ac_status) && test -s "$ac_outfile"; then
19764 # The compiler can only warn and ignore the option if not recognized
19765 # So say no if there are warnings
19766 if test ! -s conftest.err; then
19767 lt_prog_compiler_pic_works_GCJ=yes
19768 fi
19769 fi
19770 $rm conftest*
19771
19772 fi
19773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19774 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
19775
19776 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19777 case $lt_prog_compiler_pic_GCJ in
19778 "" | " "*) ;;
19779 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19780 esac
19781 else
19782 lt_prog_compiler_pic_GCJ=
19783 lt_prog_compiler_can_build_shared_GCJ=no
19784 fi
19785
19786 fi
19787 case "$host_os" in
19788 # For platforms which do not support PIC, -DPIC is meaningless:
19789 *djgpp*)
19790 lt_prog_compiler_pic_GCJ=
19791 ;;
19792 *)
19793 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19794 ;;
19795 esac
19796
19797 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19798 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19799 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19802 lt_cv_prog_compiler_c_o_GCJ=no
19803 $rm -r conftest 2>/dev/null
19804 mkdir conftest
19805 cd conftest
19806 mkdir out
19807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19808
19809 lt_compiler_flag="-o out/conftest2.$ac_objext"
19810 # Insert the option either (1) after the last *FLAGS variable, or
19811 # (2) before a word containing "conftest.", or (3) at the end.
19812 # Note that $ac_compile itself does not contain backslashes and begins
19813 # with a dollar sign (not a hyphen), so the echo should work correctly.
19814 lt_compile=`echo "$ac_compile" | $SED \
19815 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19817 -e 's:$: $lt_compiler_flag:'`
19818 (eval echo "\"\$as_me:19818: $lt_compile\"" >&5)
19819 (eval "$lt_compile" 2>out/conftest.err)
19820 ac_status=$?
19821 cat out/conftest.err >&5
19822 echo "$as_me:19822: \$? = $ac_status" >&5
19823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19824 then
19825 # The compiler can only warn and ignore the option if not recognized
19826 # So say no if there are warnings
19827 if test ! -s out/conftest.err; then
19828 lt_cv_prog_compiler_c_o_GCJ=yes
19829 fi
19830 fi
19831 chmod u+w .
19832 $rm conftest*
19833 # SGI C++ compiler will create directory out/ii_files/ for
19834 # template instantiation
19835 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19836 $rm out/* && rmdir out
19837 cd ..
19838 rmdir conftest
19839 $rm conftest*
19840
19841 fi
19842 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19843 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19844
19845
19846 hard_links="nottested"
19847 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19848 # do not overwrite the value of need_locks provided by the user
19849 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19850 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19851 hard_links=yes
19852 $rm conftest*
19853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19854 touch conftest.a
19855 ln conftest.a conftest.b 2>&5 || hard_links=no
19856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19857 echo "$as_me:$LINENO: result: $hard_links" >&5
19858 echo "${ECHO_T}$hard_links" >&6
19859 if test "$hard_links" = no; then
19860 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19861 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19862 need_locks=warn
19863 fi
19864 else
19865 need_locks=no
19866 fi
19867
19868 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19869 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19870
19871 runpath_var=
19872 allow_undefined_flag_GCJ=
19873 enable_shared_with_static_runtimes_GCJ=no
19874 archive_cmds_GCJ=
19875 archive_expsym_cmds_GCJ=
19876 old_archive_From_new_cmds_GCJ=
19877 old_archive_from_expsyms_cmds_GCJ=
19878 export_dynamic_flag_spec_GCJ=
19879 whole_archive_flag_spec_GCJ=
19880 thread_safe_flag_spec_GCJ=
19881 hardcode_libdir_flag_spec_GCJ=
19882 hardcode_libdir_flag_spec_ld_GCJ=
19883 hardcode_libdir_separator_GCJ=
19884 hardcode_direct_GCJ=no
19885 hardcode_minus_L_GCJ=no
19886 hardcode_shlibpath_var_GCJ=unsupported
19887 link_all_deplibs_GCJ=unknown
19888 hardcode_automatic_GCJ=no
19889 module_cmds_GCJ=
19890 module_expsym_cmds_GCJ=
19891 always_export_symbols_GCJ=no
19892 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19893 # include_expsyms should be a list of space-separated symbols to be *always*
19894 # included in the symbol list
19895 include_expsyms_GCJ=
19896 # exclude_expsyms can be an extended regexp of symbols to exclude
19897 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19898 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19899 # as well as any symbol that contains `d'.
19900 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19901 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19902 # platforms (ab)use it in PIC code, but their linkers get confused if
19903 # the symbol is explicitly referenced. Since portable code cannot
19904 # rely on this symbol name, it's probably fine to never include it in
19905 # preloaded symbol tables.
19906 extract_expsyms_cmds=
19907
19908 case $host_os in
19909 cygwin* | mingw* | pw32*)
19910 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19911 # When not using gcc, we currently assume that we are using
19912 # Microsoft Visual C++.
19913 if test "$GCC" != yes; then
19914 with_gnu_ld=no
19915 fi
19916 ;;
19917 openbsd*)
19918 with_gnu_ld=no
19919 ;;
19920 esac
19921
19922 ld_shlibs_GCJ=yes
19923 if test "$with_gnu_ld" = yes; then
19924 # If archive_cmds runs LD, not CC, wlarc should be empty
19925 wlarc='${wl}'
19926
19927 # See if GNU ld supports shared libraries.
19928 case $host_os in
19929 aix3* | aix4* | aix5*)
19930 # On AIX/PPC, the GNU linker is very broken
19931 if test "$host_cpu" != ia64; then
19932 ld_shlibs_GCJ=no
19933 cat <<EOF 1>&2
19934
19935 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19936 *** to be unable to reliably create shared libraries on AIX.
19937 *** Therefore, libtool is disabling shared libraries support. If you
19938 *** really care for shared libraries, you may want to modify your PATH
19939 *** so that a non-GNU linker is found, and then restart.
19940
19941 EOF
19942 fi
19943 ;;
19944
19945 amigaos*)
19946 archive_cmds_GCJ='$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)'
19947 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19948 hardcode_minus_L_GCJ=yes
19949
19950 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19951 # that the semantics of dynamic libraries on AmigaOS, at least up
19952 # to version 4, is to share data among multiple programs linked
19953 # with the same dynamic library. Since this doesn't match the
19954 # behavior of shared libraries on other platforms, we can't use
19955 # them.
19956 ld_shlibs_GCJ=no
19957 ;;
19958
19959 beos*)
19960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19961 allow_undefined_flag_GCJ=unsupported
19962 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19963 # support --undefined. This deserves some investigation. FIXME
19964 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19965 else
19966 ld_shlibs_GCJ=no
19967 fi
19968 ;;
19969
19970 cygwin* | mingw* | pw32*)
19971 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19972 # as there is no search path for DLLs.
19973 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19974 allow_undefined_flag_GCJ=unsupported
19975 always_export_symbols_GCJ=no
19976 enable_shared_with_static_runtimes_GCJ=yes
19977 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19978
19979 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19980 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19981 # If the export-symbols file already is a .def file (1st line
19982 # is EXPORTS), use it as is; otherwise, prepend...
19983 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19984 cp $export_symbols $output_objdir/$soname.def;
19985 else
19986 echo EXPORTS > $output_objdir/$soname.def;
19987 cat $export_symbols >> $output_objdir/$soname.def;
19988 fi~
19989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19990 else
19991 ld_shlibs=no
19992 fi
19993 ;;
19994
19995 netbsd*)
19996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19997 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19998 wlarc=
19999 else
20000 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20001 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20002 fi
20003 ;;
20004
20005 solaris* | sysv5*)
20006 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20007 ld_shlibs_GCJ=no
20008 cat <<EOF 1>&2
20009
20010 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20011 *** create shared libraries on Solaris systems. Therefore, libtool
20012 *** is disabling shared libraries support. We urge you to upgrade GNU
20013 *** binutils to release 2.9.1 or newer. Another option is to modify
20014 *** your PATH or compiler configuration so that the native linker is
20015 *** used, and then restart.
20016
20017 EOF
20018 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20019 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20020 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20021 else
20022 ld_shlibs_GCJ=no
20023 fi
20024 ;;
20025
20026 sunos4*)
20027 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20028 wlarc=
20029 hardcode_direct_GCJ=yes
20030 hardcode_shlibpath_var_GCJ=no
20031 ;;
20032
20033 linux*)
20034 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20035 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20036 archive_cmds_GCJ="$tmp_archive_cmds"
20037 supports_anon_versioning=no
20038 case `$LD -v 2>/dev/null` in
20039 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20040 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20041 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20042 *\ 2.11.*) ;; # other 2.11 versions
20043 *) supports_anon_versioning=yes ;;
20044 esac
20045 if test $supports_anon_versioning = yes; then
20046 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
20047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20048 $echo "local: *; };" >> $output_objdir/$libname.ver~
20049 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20050 else
20051 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
20052 fi
20053 else
20054 ld_shlibs_GCJ=no
20055 fi
20056 ;;
20057
20058 *)
20059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20060 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20061 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20062 else
20063 ld_shlibs_GCJ=no
20064 fi
20065 ;;
20066 esac
20067
20068 if test "$ld_shlibs_GCJ" = yes; then
20069 runpath_var=LD_RUN_PATH
20070 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
20071 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
20072 # ancient GNU ld didn't support --whole-archive et. al.
20073 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20074 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20075 else
20076 whole_archive_flag_spec_GCJ=
20077 fi
20078 fi
20079 else
20080 # PORTME fill in a description of your system's linker (not GNU ld)
20081 case $host_os in
20082 aix3*)
20083 allow_undefined_flag_GCJ=unsupported
20084 always_export_symbols_GCJ=yes
20085 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
20086 # Note: this linker hardcodes the directories in LIBPATH if there
20087 # are no directories specified by -L.
20088 hardcode_minus_L_GCJ=yes
20089 if test "$GCC" = yes && test -z "$link_static_flag"; then
20090 # Neither direct hardcoding nor static linking is supported with a
20091 # broken collect2.
20092 hardcode_direct_GCJ=unsupported
20093 fi
20094 ;;
20095
20096 aix4* | aix5*)
20097 if test "$host_cpu" = ia64; then
20098 # On IA64, the linker does run time linking by default, so we don't
20099 # have to do anything special.
20100 aix_use_runtimelinking=no
20101 exp_sym_flag='-Bexport'
20102 no_entry_flag=""
20103 else
20104 # If we're using GNU nm, then we don't want the "-C" option.
20105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20106 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20107 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20108 else
20109 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20110 fi
20111 aix_use_runtimelinking=no
20112
20113 # Test if we are trying to use run time linking or normal
20114 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20115 # need to do runtime linking.
20116 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20117 for ld_flag in $LDFLAGS; do
20118 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20119 aix_use_runtimelinking=yes
20120 break
20121 fi
20122 done
20123 esac
20124
20125 exp_sym_flag='-bexport'
20126 no_entry_flag='-bnoentry'
20127 fi
20128
20129 # When large executables or shared objects are built, AIX ld can
20130 # have problems creating the table of contents. If linking a library
20131 # or program results in "error TOC overflow" add -mminimal-toc to
20132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20134
20135 archive_cmds_GCJ=''
20136 hardcode_direct_GCJ=yes
20137 hardcode_libdir_separator_GCJ=':'
20138 link_all_deplibs_GCJ=yes
20139
20140 if test "$GCC" = yes; then
20141 case $host_os in aix4.012|aix4.012.*)
20142 # We only want to do this on AIX 4.2 and lower, the check
20143 # below for broken collect2 doesn't work under 4.3+
20144 collect2name=`${CC} -print-prog-name=collect2`
20145 if test -f "$collect2name" && \
20146 strings "$collect2name" | grep resolve_lib_name >/dev/null
20147 then
20148 # We have reworked collect2
20149 hardcode_direct_GCJ=yes
20150 else
20151 # We have old collect2
20152 hardcode_direct_GCJ=unsupported
20153 # It fails to find uninstalled libraries when the uninstalled
20154 # path is not listed in the libpath. Setting hardcode_minus_L
20155 # to unsupported forces relinking
20156 hardcode_minus_L_GCJ=yes
20157 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20158 hardcode_libdir_separator_GCJ=
20159 fi
20160 esac
20161 shared_flag='-shared'
20162 else
20163 # not using gcc
20164 if test "$host_cpu" = ia64; then
20165 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20166 # chokes on -Wl,-G. The following line is correct:
20167 shared_flag='-G'
20168 else
20169 if test "$aix_use_runtimelinking" = yes; then
20170 shared_flag='${wl}-G'
20171 else
20172 shared_flag='${wl}-bM:SRE'
20173 fi
20174 fi
20175 fi
20176
20177 # It seems that -bexpall does not export symbols beginning with
20178 # underscore (_), so it is better to generate a list of symbols to export.
20179 always_export_symbols_GCJ=yes
20180 if test "$aix_use_runtimelinking" = yes; then
20181 # Warning - without using the other runtime loading flags (-brtl),
20182 # -berok will link without error, but may produce a broken library.
20183 allow_undefined_flag_GCJ='-berok'
20184 # Determine the default libpath from the value encoded in an empty executable.
20185 cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h. */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191
20192 int
20193 main ()
20194 {
20195
20196 ;
20197 return 0;
20198 }
20199 _ACEOF
20200 rm -f conftest.$ac_objext conftest$ac_exeext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20202 (eval $ac_link) 2>conftest.er1
20203 ac_status=$?
20204 grep -v '^ *+' conftest.er1 >conftest.err
20205 rm -f conftest.er1
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
20209 { ac_try='test -z "$ac_c_werror_flag"
20210 || test ! -s conftest.err'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest$ac_exeext'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222
20223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20224 }'`
20225 # Check for a 64-bit object if we didn't find anything.
20226 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20227 }'`; fi
20228 else
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 fi
20233 rm -f conftest.err conftest.$ac_objext \
20234 conftest$ac_exeext conftest.$ac_ext
20235 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20236
20237 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20238 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20239 else
20240 if test "$host_cpu" = ia64; then
20241 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20242 allow_undefined_flag_GCJ="-z nodefs"
20243 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
20244 else
20245 # Determine the default libpath from the value encoded in an empty executable.
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h. */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252
20253 int
20254 main ()
20255 {
20256
20257 ;
20258 return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest.$ac_objext conftest$ac_exeext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263 (eval $ac_link) 2>conftest.er1
20264 ac_status=$?
20265 grep -v '^ *+' conftest.er1 >conftest.err
20266 rm -f conftest.er1
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } &&
20270 { ac_try='test -z "$ac_c_werror_flag"
20271 || test ! -s conftest.err'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; } &&
20277 { ac_try='test -s conftest$ac_exeext'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283
20284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20285 }'`
20286 # Check for a 64-bit object if we didn't find anything.
20287 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20288 }'`; fi
20289 else
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20292
20293 fi
20294 rm -f conftest.err conftest.$ac_objext \
20295 conftest$ac_exeext conftest.$ac_ext
20296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20297
20298 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20299 # Warning - without using the other run time loading flags,
20300 # -berok will link without error, but may produce a broken library.
20301 no_undefined_flag_GCJ=' ${wl}-bernotok'
20302 allow_undefined_flag_GCJ=' ${wl}-berok'
20303 # -bexpall does not export symbols beginning with underscore (_)
20304 always_export_symbols_GCJ=yes
20305 # Exported symbols can be pulled into shared objects from archives
20306 whole_archive_flag_spec_GCJ=' '
20307 archive_cmds_need_lc_GCJ=yes
20308 # This is similar to how AIX traditionally builds it's shared libraries.
20309 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20310 fi
20311 fi
20312 ;;
20313
20314 amigaos*)
20315 archive_cmds_GCJ='$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)'
20316 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20317 hardcode_minus_L_GCJ=yes
20318 # see comment about different semantics on the GNU ld section
20319 ld_shlibs_GCJ=no
20320 ;;
20321
20322 bsdi[45]*)
20323 export_dynamic_flag_spec_GCJ=-rdynamic
20324 ;;
20325
20326 cygwin* | mingw* | pw32*)
20327 # When not using gcc, we currently assume that we are using
20328 # Microsoft Visual C++.
20329 # hardcode_libdir_flag_spec is actually meaningless, as there is
20330 # no search path for DLLs.
20331 hardcode_libdir_flag_spec_GCJ=' '
20332 allow_undefined_flag_GCJ=unsupported
20333 # Tell ltmain to make .lib files, not .a files.
20334 libext=lib
20335 # Tell ltmain to make .dll files, not .so files.
20336 shrext_cmds=".dll"
20337 # FIXME: Setting linknames here is a bad hack.
20338 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20339 # The linker will automatically build a .lib file if we build a DLL.
20340 old_archive_From_new_cmds_GCJ='true'
20341 # FIXME: Should let the user specify the lib program.
20342 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
20343 fix_srcfile_path='`cygpath -w "$srcfile"`'
20344 enable_shared_with_static_runtimes_GCJ=yes
20345 ;;
20346
20347 darwin* | rhapsody*)
20348 case "$host_os" in
20349 rhapsody* | darwin1.[012])
20350 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20351 ;;
20352 *) # Darwin 1.3 on
20353 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20354 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20355 else
20356 case ${MACOSX_DEPLOYMENT_TARGET} in
20357 10.[012])
20358 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20359 ;;
20360 10.*)
20361 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20362 ;;
20363 esac
20364 fi
20365 ;;
20366 esac
20367 archive_cmds_need_lc_GCJ=no
20368 hardcode_direct_GCJ=no
20369 hardcode_automatic_GCJ=yes
20370 hardcode_shlibpath_var_GCJ=unsupported
20371 whole_archive_flag_spec_GCJ=''
20372 link_all_deplibs_GCJ=yes
20373 if test "$GCC" = yes ; then
20374 output_verbose_link_cmd='echo'
20375 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20376 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20377 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20378 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20379 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20380 else
20381 case "$cc_basename" in
20382 xlc*)
20383 output_verbose_link_cmd='echo'
20384 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20385 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20386 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20387 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20388 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20389 ;;
20390 *)
20391 ld_shlibs_GCJ=no
20392 ;;
20393 esac
20394 fi
20395 ;;
20396
20397 dgux*)
20398 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20399 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20400 hardcode_shlibpath_var_GCJ=no
20401 ;;
20402
20403 freebsd1*)
20404 ld_shlibs_GCJ=no
20405 ;;
20406
20407 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20408 # support. Future versions do this automatically, but an explicit c++rt0.o
20409 # does not break anything, and helps significantly (at the cost of a little
20410 # extra space).
20411 freebsd2.2*)
20412 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20413 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20414 hardcode_direct_GCJ=yes
20415 hardcode_shlibpath_var_GCJ=no
20416 ;;
20417
20418 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20419 freebsd2*)
20420 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20421 hardcode_direct_GCJ=yes
20422 hardcode_minus_L_GCJ=yes
20423 hardcode_shlibpath_var_GCJ=no
20424 ;;
20425
20426 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20427 freebsd* | kfreebsd*-gnu)
20428 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20429 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20430 hardcode_direct_GCJ=yes
20431 hardcode_shlibpath_var_GCJ=no
20432 ;;
20433
20434 hpux9*)
20435 if test "$GCC" = yes; then
20436 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20437 else
20438 archive_cmds_GCJ='$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'
20439 fi
20440 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20441 hardcode_libdir_separator_GCJ=:
20442 hardcode_direct_GCJ=yes
20443
20444 # hardcode_minus_L: Not really in the search PATH,
20445 # but as the default location of the library.
20446 hardcode_minus_L_GCJ=yes
20447 export_dynamic_flag_spec_GCJ='${wl}-E'
20448 ;;
20449
20450 hpux10* | hpux11*)
20451 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20452 case "$host_cpu" in
20453 hppa*64*|ia64*)
20454 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20455 ;;
20456 *)
20457 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20458 ;;
20459 esac
20460 else
20461 case "$host_cpu" in
20462 hppa*64*|ia64*)
20463 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20464 ;;
20465 *)
20466 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20467 ;;
20468 esac
20469 fi
20470 if test "$with_gnu_ld" = no; then
20471 case "$host_cpu" in
20472 hppa*64*)
20473 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20474 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20475 hardcode_libdir_separator_GCJ=:
20476 hardcode_direct_GCJ=no
20477 hardcode_shlibpath_var_GCJ=no
20478 ;;
20479 ia64*)
20480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20481 hardcode_direct_GCJ=no
20482 hardcode_shlibpath_var_GCJ=no
20483
20484 # hardcode_minus_L: Not really in the search PATH,
20485 # but as the default location of the library.
20486 hardcode_minus_L_GCJ=yes
20487 ;;
20488 *)
20489 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20490 hardcode_libdir_separator_GCJ=:
20491 hardcode_direct_GCJ=yes
20492 export_dynamic_flag_spec_GCJ='${wl}-E'
20493
20494 # hardcode_minus_L: Not really in the search PATH,
20495 # but as the default location of the library.
20496 hardcode_minus_L_GCJ=yes
20497 ;;
20498 esac
20499 fi
20500 ;;
20501
20502 irix5* | irix6* | nonstopux*)
20503 if test "$GCC" = yes; then
20504 archive_cmds_GCJ='$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'
20505 else
20506 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20507 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20508 fi
20509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20510 hardcode_libdir_separator_GCJ=:
20511 link_all_deplibs_GCJ=yes
20512 ;;
20513
20514 netbsd*)
20515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20516 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20517 else
20518 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20519 fi
20520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20521 hardcode_direct_GCJ=yes
20522 hardcode_shlibpath_var_GCJ=no
20523 ;;
20524
20525 newsos6)
20526 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20527 hardcode_direct_GCJ=yes
20528 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20529 hardcode_libdir_separator_GCJ=:
20530 hardcode_shlibpath_var_GCJ=no
20531 ;;
20532
20533 openbsd*)
20534 hardcode_direct_GCJ=yes
20535 hardcode_shlibpath_var_GCJ=no
20536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20537 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20538 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20539 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20540 export_dynamic_flag_spec_GCJ='${wl}-E'
20541 else
20542 case $host_os in
20543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20544 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20545 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20546 ;;
20547 *)
20548 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20550 ;;
20551 esac
20552 fi
20553 ;;
20554
20555 os2*)
20556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20557 hardcode_minus_L_GCJ=yes
20558 allow_undefined_flag_GCJ=unsupported
20559 archive_cmds_GCJ='$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'
20560 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20561 ;;
20562
20563 osf3*)
20564 if test "$GCC" = yes; then
20565 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20566 archive_cmds_GCJ='$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'
20567 else
20568 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20569 archive_cmds_GCJ='$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'
20570 fi
20571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20572 hardcode_libdir_separator_GCJ=:
20573 ;;
20574
20575 osf4* | osf5*) # as osf3* with the addition of -msym flag
20576 if test "$GCC" = yes; then
20577 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20578 archive_cmds_GCJ='$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'
20579 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20580 else
20581 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20582 archive_cmds_GCJ='$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'
20583 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20584 $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'
20585
20586 # Both c and cxx compiler support -rpath directly
20587 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20588 fi
20589 hardcode_libdir_separator_GCJ=:
20590 ;;
20591
20592 sco3.2v5*)
20593 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20594 hardcode_shlibpath_var_GCJ=no
20595 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20596 runpath_var=LD_RUN_PATH
20597 hardcode_runpath_var=yes
20598 ;;
20599
20600 solaris*)
20601 no_undefined_flag_GCJ=' -z text'
20602 if test "$GCC" = yes; then
20603 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20604 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20605 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20606 else
20607 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20608 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20610 fi
20611 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20612 hardcode_shlibpath_var_GCJ=no
20613 case $host_os in
20614 solaris2.[0-5] | solaris2.[0-5].*) ;;
20615 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20616 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20617 esac
20618 link_all_deplibs_GCJ=yes
20619 ;;
20620
20621 sunos4*)
20622 if test "x$host_vendor" = xsequent; then
20623 # Use $CC to link under sequent, because it throws in some extra .o
20624 # files that make .init and .fini sections work.
20625 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20626 else
20627 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20628 fi
20629 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20630 hardcode_direct_GCJ=yes
20631 hardcode_minus_L_GCJ=yes
20632 hardcode_shlibpath_var_GCJ=no
20633 ;;
20634
20635 sysv4)
20636 case $host_vendor in
20637 sni)
20638 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20639 hardcode_direct_GCJ=yes # is this really true???
20640 ;;
20641 siemens)
20642 ## LD is ld it makes a PLAMLIB
20643 ## CC just makes a GrossModule.
20644 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20645 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20646 hardcode_direct_GCJ=no
20647 ;;
20648 motorola)
20649 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20650 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20651 ;;
20652 esac
20653 runpath_var='LD_RUN_PATH'
20654 hardcode_shlibpath_var_GCJ=no
20655 ;;
20656
20657 sysv4.3*)
20658 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20659 hardcode_shlibpath_var_GCJ=no
20660 export_dynamic_flag_spec_GCJ='-Bexport'
20661 ;;
20662
20663 sysv4*MP*)
20664 if test -d /usr/nec; then
20665 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20666 hardcode_shlibpath_var_GCJ=no
20667 runpath_var=LD_RUN_PATH
20668 hardcode_runpath_var=yes
20669 ld_shlibs_GCJ=yes
20670 fi
20671 ;;
20672
20673 sysv4.2uw2*)
20674 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20675 hardcode_direct_GCJ=yes
20676 hardcode_minus_L_GCJ=no
20677 hardcode_shlibpath_var_GCJ=no
20678 hardcode_runpath_var=yes
20679 runpath_var=LD_RUN_PATH
20680 ;;
20681
20682 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20683 no_undefined_flag_GCJ='${wl}-z ${wl}text'
20684 if test "$GCC" = yes; then
20685 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20686 else
20687 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20688 fi
20689 runpath_var='LD_RUN_PATH'
20690 hardcode_shlibpath_var_GCJ=no
20691 ;;
20692
20693 sysv5*)
20694 no_undefined_flag_GCJ=' -z text'
20695 # $CC -shared without GNU ld will not create a library from C++
20696 # object files and a static libstdc++, better avoid it by now
20697 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20698 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20700 hardcode_libdir_flag_spec_GCJ=
20701 hardcode_shlibpath_var_GCJ=no
20702 runpath_var='LD_RUN_PATH'
20703 ;;
20704
20705 uts4*)
20706 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20707 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20708 hardcode_shlibpath_var_GCJ=no
20709 ;;
20710
20711 *)
20712 ld_shlibs_GCJ=no
20713 ;;
20714 esac
20715 fi
20716
20717 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20718 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20719 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20720
20721 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20722 if test "$GCC" = yes; then
20723 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20724 fi
20725
20726 #
20727 # Do we need to explicitly link libc?
20728 #
20729 case "x$archive_cmds_need_lc_GCJ" in
20730 x|xyes)
20731 # Assume -lc should be added
20732 archive_cmds_need_lc_GCJ=yes
20733
20734 if test "$enable_shared" = yes && test "$GCC" = yes; then
20735 case $archive_cmds_GCJ in
20736 *'~'*)
20737 # FIXME: we may have to deal with multi-command sequences.
20738 ;;
20739 '$CC '*)
20740 # Test whether the compiler implicitly links with -lc since on some
20741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20742 # to ld, don't add -lc before -lgcc.
20743 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20744 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20745 $rm conftest*
20746 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20747
20748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20749 (eval $ac_compile) 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } 2>conftest.err; then
20753 soname=conftest
20754 lib=conftest
20755 libobjs=conftest.$ac_objext
20756 deplibs=
20757 wl=$lt_prog_compiler_wl_GCJ
20758 compiler_flags=-v
20759 linker_flags=-v
20760 verstring=
20761 output_objdir=.
20762 libname=conftest
20763 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20764 allow_undefined_flag_GCJ=
20765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20766 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }
20770 then
20771 archive_cmds_need_lc_GCJ=no
20772 else
20773 archive_cmds_need_lc_GCJ=yes
20774 fi
20775 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20776 else
20777 cat conftest.err 1>&5
20778 fi
20779 $rm conftest*
20780 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20781 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20782 ;;
20783 esac
20784 fi
20785 ;;
20786 esac
20787
20788 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20789 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20790 library_names_spec=
20791 libname_spec='lib$name'
20792 soname_spec=
20793 shrext_cmds=".so"
20794 postinstall_cmds=
20795 postuninstall_cmds=
20796 finish_cmds=
20797 finish_eval=
20798 shlibpath_var=
20799 shlibpath_overrides_runpath=unknown
20800 version_type=none
20801 dynamic_linker="$host_os ld.so"
20802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20803 if test "$GCC" = yes; then
20804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20805 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20806 # if the path contains ";" then we assume it to be the separator
20807 # otherwise default to the standard path separator (i.e. ":") - it is
20808 # assumed that no part of a normal pathname contains ";" but that should
20809 # okay in the real world where ";" in dirpaths is itself problematic.
20810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20811 else
20812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20813 fi
20814 else
20815 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20816 fi
20817 need_lib_prefix=unknown
20818 hardcode_into_libs=no
20819
20820 # when you set need_version to no, make sure it does not cause -set_version
20821 # flags to be left without arguments
20822 need_version=unknown
20823
20824 case $host_os in
20825 aix3*)
20826 version_type=linux
20827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20828 shlibpath_var=LIBPATH
20829
20830 # AIX 3 has no versioning support, so we append a major version to the name.
20831 soname_spec='${libname}${release}${shared_ext}$major'
20832 ;;
20833
20834 aix4* | aix5*)
20835 version_type=linux
20836 need_lib_prefix=no
20837 need_version=no
20838 hardcode_into_libs=yes
20839 if test "$host_cpu" = ia64; then
20840 # AIX 5 supports IA64
20841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20842 shlibpath_var=LD_LIBRARY_PATH
20843 else
20844 # With GCC up to 2.95.x, collect2 would create an import file
20845 # for dependence libraries. The import file would start with
20846 # the line `#! .'. This would cause the generated library to
20847 # depend on `.', always an invalid library. This was fixed in
20848 # development snapshots of GCC prior to 3.0.
20849 case $host_os in
20850 aix4 | aix4.[01] | aix4.[01].*)
20851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20852 echo ' yes '
20853 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20854 :
20855 else
20856 can_build_shared=no
20857 fi
20858 ;;
20859 esac
20860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20861 # soname into executable. Probably we can add versioning support to
20862 # collect2, so additional links can be useful in future.
20863 if test "$aix_use_runtimelinking" = yes; then
20864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20865 # instead of lib<name>.a to let people know that these are not
20866 # typical AIX shared libraries.
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868 else
20869 # We preserve .a as extension for shared libraries through AIX4.2
20870 # and later when we are not doing run time linking.
20871 library_names_spec='${libname}${release}.a $libname.a'
20872 soname_spec='${libname}${release}${shared_ext}$major'
20873 fi
20874 shlibpath_var=LIBPATH
20875 fi
20876 ;;
20877
20878 amigaos*)
20879 library_names_spec='$libname.ixlibrary $libname.a'
20880 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20881 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'
20882 ;;
20883
20884 beos*)
20885 library_names_spec='${libname}${shared_ext}'
20886 dynamic_linker="$host_os ld.so"
20887 shlibpath_var=LIBRARY_PATH
20888 ;;
20889
20890 bsdi[45]*)
20891 version_type=linux
20892 need_version=no
20893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894 soname_spec='${libname}${release}${shared_ext}$major'
20895 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20896 shlibpath_var=LD_LIBRARY_PATH
20897 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20898 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20899 # the default ld.so.conf also contains /usr/contrib/lib and
20900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20901 # libtool to hard-code these into programs
20902 ;;
20903
20904 cygwin* | mingw* | pw32*)
20905 version_type=windows
20906 shrext_cmds=".dll"
20907 need_version=no
20908 need_lib_prefix=no
20909
20910 case $GCC,$host_os in
20911 yes,cygwin* | yes,mingw* | yes,pw32*)
20912 library_names_spec='$libname.dll.a'
20913 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20914 postinstall_cmds='base_file=`basename \${file}`~
20915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20916 dldir=$destdir/`dirname \$dlpath`~
20917 test -d \$dldir || mkdir -p \$dldir~
20918 $install_prog $dir/$dlname \$dldir/$dlname'
20919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20920 dlpath=$dir/\$dldll~
20921 $rm \$dlpath'
20922 shlibpath_overrides_runpath=yes
20923
20924 case $host_os in
20925 cygwin*)
20926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20928 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20929 ;;
20930 mingw*)
20931 # MinGW DLLs use traditional 'lib' prefix
20932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20933 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20934 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20935 # It is most probably a Windows format PATH printed by
20936 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20937 # path with ; separators, and with drive letters. We can handle the
20938 # drive letters (cygwin fileutils understands them), so leave them,
20939 # especially as we might pass files found there to a mingw objdump,
20940 # which wouldn't understand a cygwinified path. Ahh.
20941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20942 else
20943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20944 fi
20945 ;;
20946 pw32*)
20947 # pw32 DLLs use 'pw' prefix rather than 'lib'
20948 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20949 ;;
20950 esac
20951 ;;
20952
20953 *)
20954 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20955 ;;
20956 esac
20957 dynamic_linker='Win32 ld.exe'
20958 # FIXME: first we should search . and the directory the executable is in
20959 shlibpath_var=PATH
20960 ;;
20961
20962 darwin* | rhapsody*)
20963 dynamic_linker="$host_os dyld"
20964 version_type=darwin
20965 need_lib_prefix=no
20966 need_version=no
20967 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20968 soname_spec='${libname}${release}${major}$shared_ext'
20969 shlibpath_overrides_runpath=yes
20970 shlibpath_var=DYLD_LIBRARY_PATH
20971 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20972 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20973 if test "$GCC" = yes; then
20974 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20975 else
20976 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20977 fi
20978 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20979 ;;
20980
20981 dgux*)
20982 version_type=linux
20983 need_lib_prefix=no
20984 need_version=no
20985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20986 soname_spec='${libname}${release}${shared_ext}$major'
20987 shlibpath_var=LD_LIBRARY_PATH
20988 ;;
20989
20990 freebsd1*)
20991 dynamic_linker=no
20992 ;;
20993
20994 kfreebsd*-gnu)
20995 version_type=linux
20996 need_lib_prefix=no
20997 need_version=no
20998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20999 soname_spec='${libname}${release}${shared_ext}$major'
21000 shlibpath_var=LD_LIBRARY_PATH
21001 shlibpath_overrides_runpath=no
21002 hardcode_into_libs=yes
21003 dynamic_linker='GNU ld.so'
21004 ;;
21005
21006 freebsd*)
21007 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21008 version_type=freebsd-$objformat
21009 case $version_type in
21010 freebsd-elf*)
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21012 need_version=no
21013 need_lib_prefix=no
21014 ;;
21015 freebsd-*)
21016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21017 need_version=yes
21018 ;;
21019 esac
21020 shlibpath_var=LD_LIBRARY_PATH
21021 case $host_os in
21022 freebsd2*)
21023 shlibpath_overrides_runpath=yes
21024 ;;
21025 freebsd3.01* | freebsdelf3.01*)
21026 shlibpath_overrides_runpath=yes
21027 hardcode_into_libs=yes
21028 ;;
21029 *) # from 3.2 on
21030 shlibpath_overrides_runpath=no
21031 hardcode_into_libs=yes
21032 ;;
21033 esac
21034 ;;
21035
21036 gnu*)
21037 version_type=linux
21038 need_lib_prefix=no
21039 need_version=no
21040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21041 soname_spec='${libname}${release}${shared_ext}$major'
21042 shlibpath_var=LD_LIBRARY_PATH
21043 hardcode_into_libs=yes
21044 ;;
21045
21046 hpux9* | hpux10* | hpux11*)
21047 # Give a soname corresponding to the major version so that dld.sl refuses to
21048 # link against other versions.
21049 version_type=sunos
21050 need_lib_prefix=no
21051 need_version=no
21052 case "$host_cpu" in
21053 ia64*)
21054 shrext_cmds='.so'
21055 hardcode_into_libs=yes
21056 dynamic_linker="$host_os dld.so"
21057 shlibpath_var=LD_LIBRARY_PATH
21058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21060 soname_spec='${libname}${release}${shared_ext}$major'
21061 if test "X$HPUX_IA64_MODE" = X32; then
21062 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21063 else
21064 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21065 fi
21066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21067 ;;
21068 hppa*64*)
21069 shrext_cmds='.sl'
21070 hardcode_into_libs=yes
21071 dynamic_linker="$host_os dld.sl"
21072 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21075 soname_spec='${libname}${release}${shared_ext}$major'
21076 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21078 ;;
21079 *)
21080 shrext_cmds='.sl'
21081 dynamic_linker="$host_os dld.sl"
21082 shlibpath_var=SHLIB_PATH
21083 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21085 soname_spec='${libname}${release}${shared_ext}$major'
21086 ;;
21087 esac
21088 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21089 postinstall_cmds='chmod 555 $lib'
21090 ;;
21091
21092 irix5* | irix6* | nonstopux*)
21093 case $host_os in
21094 nonstopux*) version_type=nonstopux ;;
21095 *)
21096 if test "$lt_cv_prog_gnu_ld" = yes; then
21097 version_type=linux
21098 else
21099 version_type=irix
21100 fi ;;
21101 esac
21102 need_lib_prefix=no
21103 need_version=no
21104 soname_spec='${libname}${release}${shared_ext}$major'
21105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21106 case $host_os in
21107 irix5* | nonstopux*)
21108 libsuff= shlibsuff=
21109 ;;
21110 *)
21111 case $LD in # libtool.m4 will add one of these switches to LD
21112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21113 libsuff= shlibsuff= libmagic=32-bit;;
21114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21115 libsuff=32 shlibsuff=N32 libmagic=N32;;
21116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21118 *) libsuff= shlibsuff= libmagic=never-match;;
21119 esac
21120 ;;
21121 esac
21122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21123 shlibpath_overrides_runpath=no
21124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21126 hardcode_into_libs=yes
21127 ;;
21128
21129 # No shared lib support for Linux oldld, aout, or coff.
21130 linux*oldld* | linux*aout* | linux*coff*)
21131 dynamic_linker=no
21132 ;;
21133
21134 # This must be Linux ELF.
21135 linux*)
21136 version_type=linux
21137 need_lib_prefix=no
21138 need_version=no
21139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21140 soname_spec='${libname}${release}${shared_ext}$major'
21141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21142 shlibpath_var=LD_LIBRARY_PATH
21143 shlibpath_overrides_runpath=no
21144 # This implies no fast_install, which is unacceptable.
21145 # Some rework will be needed to allow for fast_install
21146 # before this can be enabled.
21147 hardcode_into_libs=yes
21148
21149 # Append ld.so.conf contents to the search path
21150 if test -f /etc/ld.so.conf; then
21151 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
21152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21153 fi
21154
21155 # We used to test for /lib/ld.so.1 and disable shared libraries on
21156 # powerpc, because MkLinux only supported shared libraries with the
21157 # GNU dynamic linker. Since this was broken with cross compilers,
21158 # most powerpc-linux boxes support dynamic linking these days and
21159 # people can always --disable-shared, the test was removed, and we
21160 # assume the GNU/Linux dynamic linker is in use.
21161 dynamic_linker='GNU/Linux ld.so'
21162 ;;
21163
21164 knetbsd*-gnu)
21165 version_type=linux
21166 need_lib_prefix=no
21167 need_version=no
21168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21169 soname_spec='${libname}${release}${shared_ext}$major'
21170 shlibpath_var=LD_LIBRARY_PATH
21171 shlibpath_overrides_runpath=no
21172 hardcode_into_libs=yes
21173 dynamic_linker='GNU ld.so'
21174 ;;
21175
21176 netbsd*)
21177 version_type=sunos
21178 need_lib_prefix=no
21179 need_version=no
21180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21183 dynamic_linker='NetBSD (a.out) ld.so'
21184 else
21185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21186 soname_spec='${libname}${release}${shared_ext}$major'
21187 dynamic_linker='NetBSD ld.elf_so'
21188 fi
21189 shlibpath_var=LD_LIBRARY_PATH
21190 shlibpath_overrides_runpath=yes
21191 hardcode_into_libs=yes
21192 ;;
21193
21194 newsos6)
21195 version_type=linux
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21197 shlibpath_var=LD_LIBRARY_PATH
21198 shlibpath_overrides_runpath=yes
21199 ;;
21200
21201 nto-qnx*)
21202 version_type=linux
21203 need_lib_prefix=no
21204 need_version=no
21205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21206 soname_spec='${libname}${release}${shared_ext}$major'
21207 shlibpath_var=LD_LIBRARY_PATH
21208 shlibpath_overrides_runpath=yes
21209 ;;
21210
21211 openbsd*)
21212 version_type=sunos
21213 need_lib_prefix=no
21214 need_version=no
21215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21217 shlibpath_var=LD_LIBRARY_PATH
21218 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21219 case $host_os in
21220 openbsd2.[89] | openbsd2.[89].*)
21221 shlibpath_overrides_runpath=no
21222 ;;
21223 *)
21224 shlibpath_overrides_runpath=yes
21225 ;;
21226 esac
21227 else
21228 shlibpath_overrides_runpath=yes
21229 fi
21230 ;;
21231
21232 os2*)
21233 libname_spec='$name'
21234 shrext_cmds=".dll"
21235 need_lib_prefix=no
21236 library_names_spec='$libname${shared_ext} $libname.a'
21237 dynamic_linker='OS/2 ld.exe'
21238 shlibpath_var=LIBPATH
21239 ;;
21240
21241 osf3* | osf4* | osf5*)
21242 version_type=osf
21243 need_lib_prefix=no
21244 need_version=no
21245 soname_spec='${libname}${release}${shared_ext}$major'
21246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21247 shlibpath_var=LD_LIBRARY_PATH
21248 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21249 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21250 ;;
21251
21252 sco3.2v5*)
21253 version_type=osf
21254 soname_spec='${libname}${release}${shared_ext}$major'
21255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21256 shlibpath_var=LD_LIBRARY_PATH
21257 ;;
21258
21259 solaris*)
21260 version_type=linux
21261 need_lib_prefix=no
21262 need_version=no
21263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21264 soname_spec='${libname}${release}${shared_ext}$major'
21265 shlibpath_var=LD_LIBRARY_PATH
21266 shlibpath_overrides_runpath=yes
21267 hardcode_into_libs=yes
21268 # ldd complains unless libraries are executable
21269 postinstall_cmds='chmod +x $lib'
21270 ;;
21271
21272 sunos4*)
21273 version_type=sunos
21274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21275 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21276 shlibpath_var=LD_LIBRARY_PATH
21277 shlibpath_overrides_runpath=yes
21278 if test "$with_gnu_ld" = yes; then
21279 need_lib_prefix=no
21280 fi
21281 need_version=yes
21282 ;;
21283
21284 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21285 version_type=linux
21286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21287 soname_spec='${libname}${release}${shared_ext}$major'
21288 shlibpath_var=LD_LIBRARY_PATH
21289 case $host_vendor in
21290 sni)
21291 shlibpath_overrides_runpath=no
21292 need_lib_prefix=no
21293 export_dynamic_flag_spec='${wl}-Blargedynsym'
21294 runpath_var=LD_RUN_PATH
21295 ;;
21296 siemens)
21297 need_lib_prefix=no
21298 ;;
21299 motorola)
21300 need_lib_prefix=no
21301 need_version=no
21302 shlibpath_overrides_runpath=no
21303 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21304 ;;
21305 esac
21306 ;;
21307
21308 sysv4*MP*)
21309 if test -d /usr/nec ;then
21310 version_type=linux
21311 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21312 soname_spec='$libname${shared_ext}.$major'
21313 shlibpath_var=LD_LIBRARY_PATH
21314 fi
21315 ;;
21316
21317 uts4*)
21318 version_type=linux
21319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21320 soname_spec='${libname}${release}${shared_ext}$major'
21321 shlibpath_var=LD_LIBRARY_PATH
21322 ;;
21323
21324 *)
21325 dynamic_linker=no
21326 ;;
21327 esac
21328 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21329 echo "${ECHO_T}$dynamic_linker" >&6
21330 test "$dynamic_linker" = no && can_build_shared=no
21331
21332 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21333 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21334 hardcode_action_GCJ=
21335 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21336 test -n "$runpath_var_GCJ" || \
21337 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21338
21339 # We can hardcode non-existant directories.
21340 if test "$hardcode_direct_GCJ" != no &&
21341 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21342 # have to relink, otherwise we might link with an installed library
21343 # when we should be linking with a yet-to-be-installed one
21344 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21345 test "$hardcode_minus_L_GCJ" != no; then
21346 # Linking always hardcodes the temporary library directory.
21347 hardcode_action_GCJ=relink
21348 else
21349 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21350 hardcode_action_GCJ=immediate
21351 fi
21352 else
21353 # We cannot hardcode anything, or else we can only hardcode existing
21354 # directories.
21355 hardcode_action_GCJ=unsupported
21356 fi
21357 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21358 echo "${ECHO_T}$hardcode_action_GCJ" >&6
21359
21360 if test "$hardcode_action_GCJ" = relink; then
21361 # Fast installation is not supported
21362 enable_fast_install=no
21363 elif test "$shlibpath_overrides_runpath" = yes ||
21364 test "$enable_shared" = no; then
21365 # Fast installation is not necessary
21366 enable_fast_install=needless
21367 fi
21368
21369 striplib=
21370 old_striplib=
21371 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21372 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21373 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21374 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21375 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21376 echo "$as_me:$LINENO: result: yes" >&5
21377 echo "${ECHO_T}yes" >&6
21378 else
21379 # FIXME - insert some real tests, host_os isn't really good enough
21380 case $host_os in
21381 darwin*)
21382 if test -n "$STRIP" ; then
21383 striplib="$STRIP -x"
21384 echo "$as_me:$LINENO: result: yes" >&5
21385 echo "${ECHO_T}yes" >&6
21386 else
21387 echo "$as_me:$LINENO: result: no" >&5
21388 echo "${ECHO_T}no" >&6
21389 fi
21390 ;;
21391 *)
21392 echo "$as_me:$LINENO: result: no" >&5
21393 echo "${ECHO_T}no" >&6
21394 ;;
21395 esac
21396 fi
21397
21398 if test "x$enable_dlopen" != xyes; then
21399 enable_dlopen=unknown
21400 enable_dlopen_self=unknown
21401 enable_dlopen_self_static=unknown
21402 else
21403 lt_cv_dlopen=no
21404 lt_cv_dlopen_libs=
21405
21406 case $host_os in
21407 beos*)
21408 lt_cv_dlopen="load_add_on"
21409 lt_cv_dlopen_libs=
21410 lt_cv_dlopen_self=yes
21411 ;;
21412
21413 mingw* | pw32*)
21414 lt_cv_dlopen="LoadLibrary"
21415 lt_cv_dlopen_libs=
21416 ;;
21417
21418 cygwin*)
21419 lt_cv_dlopen="dlopen"
21420 lt_cv_dlopen_libs=
21421 ;;
21422
21423 darwin*)
21424 # if libdl is installed we need to link against it
21425 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21426 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21427 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21428 echo $ECHO_N "(cached) $ECHO_C" >&6
21429 else
21430 ac_check_lib_save_LIBS=$LIBS
21431 LIBS="-ldl $LIBS"
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h. */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438
21439 /* Override any gcc2 internal prototype to avoid an error. */
21440 #ifdef __cplusplus
21441 extern "C"
21442 #endif
21443 /* We use char because int might match the return type of a gcc2
21444 builtin and then its argument prototype would still apply. */
21445 char dlopen ();
21446 int
21447 main ()
21448 {
21449 dlopen ();
21450 ;
21451 return 0;
21452 }
21453 _ACEOF
21454 rm -f conftest.$ac_objext conftest$ac_exeext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21456 (eval $ac_link) 2>conftest.er1
21457 ac_status=$?
21458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -z "$ac_c_werror_flag"
21464 || test ! -s conftest.err'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest$ac_exeext'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_cv_lib_dl_dlopen=yes
21477 else
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481 ac_cv_lib_dl_dlopen=no
21482 fi
21483 rm -f conftest.err conftest.$ac_objext \
21484 conftest$ac_exeext conftest.$ac_ext
21485 LIBS=$ac_check_lib_save_LIBS
21486 fi
21487 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21488 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21489 if test $ac_cv_lib_dl_dlopen = yes; then
21490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21491 else
21492
21493 lt_cv_dlopen="dyld"
21494 lt_cv_dlopen_libs=
21495 lt_cv_dlopen_self=yes
21496
21497 fi
21498
21499 ;;
21500
21501 *)
21502 echo "$as_me:$LINENO: checking for shl_load" >&5
21503 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
21504 if test "${ac_cv_func_shl_load+set}" = set; then
21505 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 else
21507 cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h. */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21515 #define shl_load innocuous_shl_load
21516
21517 /* System header to define __stub macros and hopefully few prototypes,
21518 which can conflict with char shl_load (); below.
21519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21520 <limits.h> exists even on freestanding compilers. */
21521
21522 #ifdef __STDC__
21523 # include <limits.h>
21524 #else
21525 # include <assert.h>
21526 #endif
21527
21528 #undef shl_load
21529
21530 /* Override any gcc2 internal prototype to avoid an error. */
21531 #ifdef __cplusplus
21532 extern "C"
21533 {
21534 #endif
21535 /* We use char because int might match the return type of a gcc2
21536 builtin and then its argument prototype would still apply. */
21537 char shl_load ();
21538 /* The GNU C library defines this for functions which it implements
21539 to always fail with ENOSYS. Some functions are actually named
21540 something starting with __ and the normal name is an alias. */
21541 #if defined (__stub_shl_load) || defined (__stub___shl_load)
21542 choke me
21543 #else
21544 char (*f) () = shl_load;
21545 #endif
21546 #ifdef __cplusplus
21547 }
21548 #endif
21549
21550 int
21551 main ()
21552 {
21553 return f != shl_load;
21554 ;
21555 return 0;
21556 }
21557 _ACEOF
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560 (eval $ac_link) 2>conftest.er1
21561 ac_status=$?
21562 grep -v '^ *+' conftest.er1 >conftest.err
21563 rm -f conftest.er1
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } &&
21567 { ac_try='test -z "$ac_c_werror_flag"
21568 || test ! -s conftest.err'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; } &&
21574 { ac_try='test -s conftest$ac_exeext'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21577 ac_status=$?
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 ac_cv_func_shl_load=yes
21581 else
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585 ac_cv_func_shl_load=no
21586 fi
21587 rm -f conftest.err conftest.$ac_objext \
21588 conftest$ac_exeext conftest.$ac_ext
21589 fi
21590 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21591 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
21592 if test $ac_cv_func_shl_load = yes; then
21593 lt_cv_dlopen="shl_load"
21594 else
21595 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21596 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
21597 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 else
21600 ac_check_lib_save_LIBS=$LIBS
21601 LIBS="-ldld $LIBS"
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h. */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608
21609 /* Override any gcc2 internal prototype to avoid an error. */
21610 #ifdef __cplusplus
21611 extern "C"
21612 #endif
21613 /* We use char because int might match the return type of a gcc2
21614 builtin and then its argument prototype would still apply. */
21615 char shl_load ();
21616 int
21617 main ()
21618 {
21619 shl_load ();
21620 ;
21621 return 0;
21622 }
21623 _ACEOF
21624 rm -f conftest.$ac_objext conftest$ac_exeext
21625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21626 (eval $ac_link) 2>conftest.er1
21627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } &&
21633 { ac_try='test -z "$ac_c_werror_flag"
21634 || test ! -s conftest.err'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; } &&
21640 { ac_try='test -s conftest$ac_exeext'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21646 ac_cv_lib_dld_shl_load=yes
21647 else
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651 ac_cv_lib_dld_shl_load=no
21652 fi
21653 rm -f conftest.err conftest.$ac_objext \
21654 conftest$ac_exeext conftest.$ac_ext
21655 LIBS=$ac_check_lib_save_LIBS
21656 fi
21657 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21658 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21659 if test $ac_cv_lib_dld_shl_load = yes; then
21660 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21661 else
21662 echo "$as_me:$LINENO: checking for dlopen" >&5
21663 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
21664 if test "${ac_cv_func_dlopen+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667 cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h. */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21675 #define dlopen innocuous_dlopen
21676
21677 /* System header to define __stub macros and hopefully few prototypes,
21678 which can conflict with char dlopen (); below.
21679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21680 <limits.h> exists even on freestanding compilers. */
21681
21682 #ifdef __STDC__
21683 # include <limits.h>
21684 #else
21685 # include <assert.h>
21686 #endif
21687
21688 #undef dlopen
21689
21690 /* Override any gcc2 internal prototype to avoid an error. */
21691 #ifdef __cplusplus
21692 extern "C"
21693 {
21694 #endif
21695 /* We use char because int might match the return type of a gcc2
21696 builtin and then its argument prototype would still apply. */
21697 char dlopen ();
21698 /* The GNU C library defines this for functions which it implements
21699 to always fail with ENOSYS. Some functions are actually named
21700 something starting with __ and the normal name is an alias. */
21701 #if defined (__stub_dlopen) || defined (__stub___dlopen)
21702 choke me
21703 #else
21704 char (*f) () = dlopen;
21705 #endif
21706 #ifdef __cplusplus
21707 }
21708 #endif
21709
21710 int
21711 main ()
21712 {
21713 return f != dlopen;
21714 ;
21715 return 0;
21716 }
21717 _ACEOF
21718 rm -f conftest.$ac_objext conftest$ac_exeext
21719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21720 (eval $ac_link) 2>conftest.er1
21721 ac_status=$?
21722 grep -v '^ *+' conftest.er1 >conftest.err
21723 rm -f conftest.er1
21724 cat conftest.err >&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); } &&
21727 { ac_try='test -z "$ac_c_werror_flag"
21728 || test ! -s conftest.err'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21731 ac_status=$?
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; } &&
21734 { ac_try='test -s conftest$ac_exeext'
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21737 ac_status=$?
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 ac_cv_func_dlopen=yes
21741 else
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21744
21745 ac_cv_func_dlopen=no
21746 fi
21747 rm -f conftest.err conftest.$ac_objext \
21748 conftest$ac_exeext conftest.$ac_ext
21749 fi
21750 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21751 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21752 if test $ac_cv_func_dlopen = yes; then
21753 lt_cv_dlopen="dlopen"
21754 else
21755 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21756 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21758 echo $ECHO_N "(cached) $ECHO_C" >&6
21759 else
21760 ac_check_lib_save_LIBS=$LIBS
21761 LIBS="-ldl $LIBS"
21762 cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h. */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21768
21769 /* Override any gcc2 internal prototype to avoid an error. */
21770 #ifdef __cplusplus
21771 extern "C"
21772 #endif
21773 /* We use char because int might match the return type of a gcc2
21774 builtin and then its argument prototype would still apply. */
21775 char dlopen ();
21776 int
21777 main ()
21778 {
21779 dlopen ();
21780 ;
21781 return 0;
21782 }
21783 _ACEOF
21784 rm -f conftest.$ac_objext conftest$ac_exeext
21785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21786 (eval $ac_link) 2>conftest.er1
21787 ac_status=$?
21788 grep -v '^ *+' conftest.er1 >conftest.err
21789 rm -f conftest.er1
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } &&
21793 { ac_try='test -z "$ac_c_werror_flag"
21794 || test ! -s conftest.err'
21795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21796 (eval $ac_try) 2>&5
21797 ac_status=$?
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); }; } &&
21800 { ac_try='test -s conftest$ac_exeext'
21801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802 (eval $ac_try) 2>&5
21803 ac_status=$?
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); }; }; then
21806 ac_cv_lib_dl_dlopen=yes
21807 else
21808 echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21810
21811 ac_cv_lib_dl_dlopen=no
21812 fi
21813 rm -f conftest.err conftest.$ac_objext \
21814 conftest$ac_exeext conftest.$ac_ext
21815 LIBS=$ac_check_lib_save_LIBS
21816 fi
21817 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21818 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21819 if test $ac_cv_lib_dl_dlopen = yes; then
21820 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21821 else
21822 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21823 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21824 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21825 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 else
21827 ac_check_lib_save_LIBS=$LIBS
21828 LIBS="-lsvld $LIBS"
21829 cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h. */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835
21836 /* Override any gcc2 internal prototype to avoid an error. */
21837 #ifdef __cplusplus
21838 extern "C"
21839 #endif
21840 /* We use char because int might match the return type of a gcc2
21841 builtin and then its argument prototype would still apply. */
21842 char dlopen ();
21843 int
21844 main ()
21845 {
21846 dlopen ();
21847 ;
21848 return 0;
21849 }
21850 _ACEOF
21851 rm -f conftest.$ac_objext conftest$ac_exeext
21852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21853 (eval $ac_link) 2>conftest.er1
21854 ac_status=$?
21855 grep -v '^ *+' conftest.er1 >conftest.err
21856 rm -f conftest.er1
21857 cat conftest.err >&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } &&
21860 { ac_try='test -z "$ac_c_werror_flag"
21861 || test ! -s conftest.err'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try='test -s conftest$ac_exeext'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; }; then
21873 ac_cv_lib_svld_dlopen=yes
21874 else
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21877
21878 ac_cv_lib_svld_dlopen=no
21879 fi
21880 rm -f conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext conftest.$ac_ext
21882 LIBS=$ac_check_lib_save_LIBS
21883 fi
21884 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21885 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21886 if test $ac_cv_lib_svld_dlopen = yes; then
21887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21888 else
21889 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21890 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21891 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 else
21894 ac_check_lib_save_LIBS=$LIBS
21895 LIBS="-ldld $LIBS"
21896 cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h. */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21902
21903 /* Override any gcc2 internal prototype to avoid an error. */
21904 #ifdef __cplusplus
21905 extern "C"
21906 #endif
21907 /* We use char because int might match the return type of a gcc2
21908 builtin and then its argument prototype would still apply. */
21909 char dld_link ();
21910 int
21911 main ()
21912 {
21913 dld_link ();
21914 ;
21915 return 0;
21916 }
21917 _ACEOF
21918 rm -f conftest.$ac_objext conftest$ac_exeext
21919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21920 (eval $ac_link) 2>conftest.er1
21921 ac_status=$?
21922 grep -v '^ *+' conftest.er1 >conftest.err
21923 rm -f conftest.er1
21924 cat conftest.err >&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } &&
21927 { ac_try='test -z "$ac_c_werror_flag"
21928 || test ! -s conftest.err'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; } &&
21934 { ac_try='test -s conftest$ac_exeext'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 ac_cv_lib_dld_dld_link=yes
21941 else
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21944
21945 ac_cv_lib_dld_dld_link=no
21946 fi
21947 rm -f conftest.err conftest.$ac_objext \
21948 conftest$ac_exeext conftest.$ac_ext
21949 LIBS=$ac_check_lib_save_LIBS
21950 fi
21951 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21952 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21953 if test $ac_cv_lib_dld_dld_link = yes; then
21954 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21955 fi
21956
21957
21958 fi
21959
21960
21961 fi
21962
21963
21964 fi
21965
21966
21967 fi
21968
21969
21970 fi
21971
21972 ;;
21973 esac
21974
21975 if test "x$lt_cv_dlopen" != xno; then
21976 enable_dlopen=yes
21977 else
21978 enable_dlopen=no
21979 fi
21980
21981 case $lt_cv_dlopen in
21982 dlopen)
21983 save_CPPFLAGS="$CPPFLAGS"
21984 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21985
21986 save_LDFLAGS="$LDFLAGS"
21987 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21988
21989 save_LIBS="$LIBS"
21990 LIBS="$lt_cv_dlopen_libs $LIBS"
21991
21992 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21993 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21994 if test "${lt_cv_dlopen_self+set}" = set; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
21996 else
21997 if test "$cross_compiling" = yes; then :
21998 lt_cv_dlopen_self=cross
21999 else
22000 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22001 lt_status=$lt_dlunknown
22002 cat > conftest.$ac_ext <<EOF
22003 #line 22003 "configure"
22004 #include "confdefs.h"
22005
22006 #if HAVE_DLFCN_H
22007 #include <dlfcn.h>
22008 #endif
22009
22010 #include <stdio.h>
22011
22012 #ifdef RTLD_GLOBAL
22013 # define LT_DLGLOBAL RTLD_GLOBAL
22014 #else
22015 # ifdef DL_GLOBAL
22016 # define LT_DLGLOBAL DL_GLOBAL
22017 # else
22018 # define LT_DLGLOBAL 0
22019 # endif
22020 #endif
22021
22022 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22023 find out it does not work in some platform. */
22024 #ifndef LT_DLLAZY_OR_NOW
22025 # ifdef RTLD_LAZY
22026 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22027 # else
22028 # ifdef DL_LAZY
22029 # define LT_DLLAZY_OR_NOW DL_LAZY
22030 # else
22031 # ifdef RTLD_NOW
22032 # define LT_DLLAZY_OR_NOW RTLD_NOW
22033 # else
22034 # ifdef DL_NOW
22035 # define LT_DLLAZY_OR_NOW DL_NOW
22036 # else
22037 # define LT_DLLAZY_OR_NOW 0
22038 # endif
22039 # endif
22040 # endif
22041 # endif
22042 #endif
22043
22044 #ifdef __cplusplus
22045 extern "C" void exit (int);
22046 #endif
22047
22048 void fnord() { int i=42;}
22049 int main ()
22050 {
22051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22052 int status = $lt_dlunknown;
22053
22054 if (self)
22055 {
22056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22057 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22058 /* dlclose (self); */
22059 }
22060
22061 exit (status);
22062 }
22063 EOF
22064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22065 (eval $ac_link) 2>&5
22066 ac_status=$?
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22069 (./conftest; exit; ) 2>/dev/null
22070 lt_status=$?
22071 case x$lt_status in
22072 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22073 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22074 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
22075 esac
22076 else :
22077 # compilation failed
22078 lt_cv_dlopen_self=no
22079 fi
22080 fi
22081 rm -fr conftest*
22082
22083
22084 fi
22085 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
22086 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
22087
22088 if test "x$lt_cv_dlopen_self" = xyes; then
22089 LDFLAGS="$LDFLAGS $link_static_flag"
22090 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
22091 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
22092 if test "${lt_cv_dlopen_self_static+set}" = set; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22094 else
22095 if test "$cross_compiling" = yes; then :
22096 lt_cv_dlopen_self_static=cross
22097 else
22098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22099 lt_status=$lt_dlunknown
22100 cat > conftest.$ac_ext <<EOF
22101 #line 22101 "configure"
22102 #include "confdefs.h"
22103
22104 #if HAVE_DLFCN_H
22105 #include <dlfcn.h>
22106 #endif
22107
22108 #include <stdio.h>
22109
22110 #ifdef RTLD_GLOBAL
22111 # define LT_DLGLOBAL RTLD_GLOBAL
22112 #else
22113 # ifdef DL_GLOBAL
22114 # define LT_DLGLOBAL DL_GLOBAL
22115 # else
22116 # define LT_DLGLOBAL 0
22117 # endif
22118 #endif
22119
22120 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22121 find out it does not work in some platform. */
22122 #ifndef LT_DLLAZY_OR_NOW
22123 # ifdef RTLD_LAZY
22124 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22125 # else
22126 # ifdef DL_LAZY
22127 # define LT_DLLAZY_OR_NOW DL_LAZY
22128 # else
22129 # ifdef RTLD_NOW
22130 # define LT_DLLAZY_OR_NOW RTLD_NOW
22131 # else
22132 # ifdef DL_NOW
22133 # define LT_DLLAZY_OR_NOW DL_NOW
22134 # else
22135 # define LT_DLLAZY_OR_NOW 0
22136 # endif
22137 # endif
22138 # endif
22139 # endif
22140 #endif
22141
22142 #ifdef __cplusplus
22143 extern "C" void exit (int);
22144 #endif
22145
22146 void fnord() { int i=42;}
22147 int main ()
22148 {
22149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22150 int status = $lt_dlunknown;
22151
22152 if (self)
22153 {
22154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22155 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22156 /* dlclose (self); */
22157 }
22158
22159 exit (status);
22160 }
22161 EOF
22162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22163 (eval $ac_link) 2>&5
22164 ac_status=$?
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22167 (./conftest; exit; ) 2>/dev/null
22168 lt_status=$?
22169 case x$lt_status in
22170 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22171 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22172 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
22173 esac
22174 else :
22175 # compilation failed
22176 lt_cv_dlopen_self_static=no
22177 fi
22178 fi
22179 rm -fr conftest*
22180
22181
22182 fi
22183 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
22184 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
22185 fi
22186
22187 CPPFLAGS="$save_CPPFLAGS"
22188 LDFLAGS="$save_LDFLAGS"
22189 LIBS="$save_LIBS"
22190 ;;
22191 esac
22192
22193 case $lt_cv_dlopen_self in
22194 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22195 *) enable_dlopen_self=unknown ;;
22196 esac
22197
22198 case $lt_cv_dlopen_self_static in
22199 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22200 *) enable_dlopen_self_static=unknown ;;
22201 esac
22202 fi
22203
22204
22205 # The else clause should only fire when bootstrapping the
22206 # libtool distribution, otherwise you forgot to ship ltmain.sh
22207 # with your package, and you will get complaints that there are
22208 # no rules to generate ltmain.sh.
22209 if test -f "$ltmain"; then
22210 # See if we are running on zsh, and set the options which allow our commands through
22211 # without removal of \ escapes.
22212 if test -n "${ZSH_VERSION+set}" ; then
22213 setopt NO_GLOB_SUBST
22214 fi
22215 # Now quote all the things that may contain metacharacters while being
22216 # careful not to overquote the AC_SUBSTed values. We take copies of the
22217 # variables and quote the copies for generation of the libtool script.
22218 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22219 SED SHELL STRIP \
22220 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22221 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22222 deplibs_check_method reload_flag reload_cmds need_locks \
22223 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22224 lt_cv_sys_global_symbol_to_c_name_address \
22225 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22226 old_postinstall_cmds old_postuninstall_cmds \
22227 compiler_GCJ \
22228 CC_GCJ \
22229 LD_GCJ \
22230 lt_prog_compiler_wl_GCJ \
22231 lt_prog_compiler_pic_GCJ \
22232 lt_prog_compiler_static_GCJ \
22233 lt_prog_compiler_no_builtin_flag_GCJ \
22234 export_dynamic_flag_spec_GCJ \
22235 thread_safe_flag_spec_GCJ \
22236 whole_archive_flag_spec_GCJ \
22237 enable_shared_with_static_runtimes_GCJ \
22238 old_archive_cmds_GCJ \
22239 old_archive_from_new_cmds_GCJ \
22240 predep_objects_GCJ \
22241 postdep_objects_GCJ \
22242 predeps_GCJ \
22243 postdeps_GCJ \
22244 compiler_lib_search_path_GCJ \
22245 archive_cmds_GCJ \
22246 archive_expsym_cmds_GCJ \
22247 postinstall_cmds_GCJ \
22248 postuninstall_cmds_GCJ \
22249 old_archive_from_expsyms_cmds_GCJ \
22250 allow_undefined_flag_GCJ \
22251 no_undefined_flag_GCJ \
22252 export_symbols_cmds_GCJ \
22253 hardcode_libdir_flag_spec_GCJ \
22254 hardcode_libdir_flag_spec_ld_GCJ \
22255 hardcode_libdir_separator_GCJ \
22256 hardcode_automatic_GCJ \
22257 module_cmds_GCJ \
22258 module_expsym_cmds_GCJ \
22259 lt_cv_prog_compiler_c_o_GCJ \
22260 exclude_expsyms_GCJ \
22261 include_expsyms_GCJ; do
22262
22263 case $var in
22264 old_archive_cmds_GCJ | \
22265 old_archive_from_new_cmds_GCJ | \
22266 archive_cmds_GCJ | \
22267 archive_expsym_cmds_GCJ | \
22268 module_cmds_GCJ | \
22269 module_expsym_cmds_GCJ | \
22270 old_archive_from_expsyms_cmds_GCJ | \
22271 export_symbols_cmds_GCJ | \
22272 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22273 postinstall_cmds | postuninstall_cmds | \
22274 old_postinstall_cmds | old_postuninstall_cmds | \
22275 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22276 # Double-quote double-evaled strings.
22277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22278 ;;
22279 *)
22280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22281 ;;
22282 esac
22283 done
22284
22285 case $lt_echo in
22286 *'\$0 --fallback-echo"')
22287 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22288 ;;
22289 esac
22290
22291 cfgfile="$ofile"
22292
22293 cat <<__EOF__ >> "$cfgfile"
22294 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22295
22296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22297
22298 # Shell to use when invoking shell scripts.
22299 SHELL=$lt_SHELL
22300
22301 # Whether or not to build shared libraries.
22302 build_libtool_libs=$enable_shared
22303
22304 # Whether or not to build static libraries.
22305 build_old_libs=$enable_static
22306
22307 # Whether or not to add -lc for building shared libraries.
22308 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22309
22310 # Whether or not to disallow shared libs when runtime libs are static
22311 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22312
22313 # Whether or not to optimize for fast installation.
22314 fast_install=$enable_fast_install
22315
22316 # The host system.
22317 host_alias=$host_alias
22318 host=$host
22319
22320 # An echo program that does not interpret backslashes.
22321 echo=$lt_echo
22322
22323 # The archiver.
22324 AR=$lt_AR
22325 AR_FLAGS=$lt_AR_FLAGS
22326
22327 # A C compiler.
22328 LTCC=$lt_LTCC
22329
22330 # A language-specific compiler.
22331 CC=$lt_compiler_GCJ
22332
22333 # Is the compiler the GNU C compiler?
22334 with_gcc=$GCC_GCJ
22335
22336 # An ERE matcher.
22337 EGREP=$lt_EGREP
22338
22339 # The linker used to build libraries.
22340 LD=$lt_LD_GCJ
22341
22342 # Whether we need hard or soft links.
22343 LN_S=$lt_LN_S
22344
22345 # A BSD-compatible nm program.
22346 NM=$lt_NM
22347
22348 # A symbol stripping program
22349 STRIP=$lt_STRIP
22350
22351 # Used to examine libraries when file_magic_cmd begins "file"
22352 MAGIC_CMD=$MAGIC_CMD
22353
22354 # Used on cygwin: DLL creation program.
22355 DLLTOOL="$DLLTOOL"
22356
22357 # Used on cygwin: object dumper.
22358 OBJDUMP="$OBJDUMP"
22359
22360 # Used on cygwin: assembler.
22361 AS="$AS"
22362
22363 # The name of the directory that contains temporary libtool files.
22364 objdir=$objdir
22365
22366 # How to create reloadable object files.
22367 reload_flag=$lt_reload_flag
22368 reload_cmds=$lt_reload_cmds
22369
22370 # How to pass a linker flag through the compiler.
22371 wl=$lt_lt_prog_compiler_wl_GCJ
22372
22373 # Object file suffix (normally "o").
22374 objext="$ac_objext"
22375
22376 # Old archive suffix (normally "a").
22377 libext="$libext"
22378
22379 # Shared library suffix (normally ".so").
22380 shrext_cmds='$shrext_cmds'
22381
22382 # Executable file suffix (normally "").
22383 exeext="$exeext"
22384
22385 # Additional compiler flags for building library objects.
22386 pic_flag=$lt_lt_prog_compiler_pic_GCJ
22387 pic_mode=$pic_mode
22388
22389 # What is the maximum length of a command?
22390 max_cmd_len=$lt_cv_sys_max_cmd_len
22391
22392 # Does compiler simultaneously support -c and -o options?
22393 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22394
22395 # Must we lock files when doing compilation ?
22396 need_locks=$lt_need_locks
22397
22398 # Do we need the lib prefix for modules?
22399 need_lib_prefix=$need_lib_prefix
22400
22401 # Do we need a version for libraries?
22402 need_version=$need_version
22403
22404 # Whether dlopen is supported.
22405 dlopen_support=$enable_dlopen
22406
22407 # Whether dlopen of programs is supported.
22408 dlopen_self=$enable_dlopen_self
22409
22410 # Whether dlopen of statically linked programs is supported.
22411 dlopen_self_static=$enable_dlopen_self_static
22412
22413 # Compiler flag to prevent dynamic linking.
22414 link_static_flag=$lt_lt_prog_compiler_static_GCJ
22415
22416 # Compiler flag to turn off builtin functions.
22417 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22418
22419 # Compiler flag to allow reflexive dlopens.
22420 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22421
22422 # Compiler flag to generate shared objects directly from archives.
22423 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22424
22425 # Compiler flag to generate thread-safe objects.
22426 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22427
22428 # Library versioning type.
22429 version_type=$version_type
22430
22431 # Format of library name prefix.
22432 libname_spec=$lt_libname_spec
22433
22434 # List of archive names. First name is the real one, the rest are links.
22435 # The last name is the one that the linker finds with -lNAME.
22436 library_names_spec=$lt_library_names_spec
22437
22438 # The coded name of the library, if different from the real name.
22439 soname_spec=$lt_soname_spec
22440
22441 # Commands used to build and install an old-style archive.
22442 RANLIB=$lt_RANLIB
22443 old_archive_cmds=$lt_old_archive_cmds_GCJ
22444 old_postinstall_cmds=$lt_old_postinstall_cmds
22445 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22446
22447 # Create an old-style archive from a shared archive.
22448 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22449
22450 # Create a temporary old-style archive to link instead of a shared archive.
22451 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22452
22453 # Commands used to build and install a shared archive.
22454 archive_cmds=$lt_archive_cmds_GCJ
22455 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22456 postinstall_cmds=$lt_postinstall_cmds
22457 postuninstall_cmds=$lt_postuninstall_cmds
22458
22459 # Commands used to build a loadable module (assumed same as above if empty)
22460 module_cmds=$lt_module_cmds_GCJ
22461 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22462
22463 # Commands to strip libraries.
22464 old_striplib=$lt_old_striplib
22465 striplib=$lt_striplib
22466
22467 # Dependencies to place before the objects being linked to create a
22468 # shared library.
22469 predep_objects=$lt_predep_objects_GCJ
22470
22471 # Dependencies to place after the objects being linked to create a
22472 # shared library.
22473 postdep_objects=$lt_postdep_objects_GCJ
22474
22475 # Dependencies to place before the objects being linked to create a
22476 # shared library.
22477 predeps=$lt_predeps_GCJ
22478
22479 # Dependencies to place after the objects being linked to create a
22480 # shared library.
22481 postdeps=$lt_postdeps_GCJ
22482
22483 # The library search path used internally by the compiler when linking
22484 # a shared library.
22485 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22486
22487 # Method to check whether dependent libraries are shared objects.
22488 deplibs_check_method=$lt_deplibs_check_method
22489
22490 # Command to use when deplibs_check_method == file_magic.
22491 file_magic_cmd=$lt_file_magic_cmd
22492
22493 # Flag that allows shared libraries with undefined symbols to be built.
22494 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22495
22496 # Flag that forces no undefined symbols.
22497 no_undefined_flag=$lt_no_undefined_flag_GCJ
22498
22499 # Commands used to finish a libtool library installation in a directory.
22500 finish_cmds=$lt_finish_cmds
22501
22502 # Same as above, but a single script fragment to be evaled but not shown.
22503 finish_eval=$lt_finish_eval
22504
22505 # Take the output of nm and produce a listing of raw symbols and C names.
22506 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22507
22508 # Transform the output of nm in a proper C declaration
22509 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22510
22511 # Transform the output of nm in a C name address pair
22512 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22513
22514 # This is the shared library runtime path variable.
22515 runpath_var=$runpath_var
22516
22517 # This is the shared library path variable.
22518 shlibpath_var=$shlibpath_var
22519
22520 # Is shlibpath searched before the hard-coded library search path?
22521 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22522
22523 # How to hardcode a shared library path into an executable.
22524 hardcode_action=$hardcode_action_GCJ
22525
22526 # Whether we should hardcode library paths into libraries.
22527 hardcode_into_libs=$hardcode_into_libs
22528
22529 # Flag to hardcode \$libdir into a binary during linking.
22530 # This must work even if \$libdir does not exist.
22531 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22532
22533 # If ld is used when linking, flag to hardcode \$libdir into
22534 # a binary during linking. This must work even if \$libdir does
22535 # not exist.
22536 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22537
22538 # Whether we need a single -rpath flag with a separated argument.
22539 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22540
22541 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22542 # resulting binary.
22543 hardcode_direct=$hardcode_direct_GCJ
22544
22545 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22546 # resulting binary.
22547 hardcode_minus_L=$hardcode_minus_L_GCJ
22548
22549 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22550 # the resulting binary.
22551 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22552
22553 # Set to yes if building a shared library automatically hardcodes DIR into the library
22554 # and all subsequent libraries and executables linked against it.
22555 hardcode_automatic=$hardcode_automatic_GCJ
22556
22557 # Variables whose values should be saved in libtool wrapper scripts and
22558 # restored at relink time.
22559 variables_saved_for_relink="$variables_saved_for_relink"
22560
22561 # Whether libtool must link a program against all its dependency libraries.
22562 link_all_deplibs=$link_all_deplibs_GCJ
22563
22564 # Compile-time system search path for libraries
22565 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22566
22567 # Run-time system search path for libraries
22568 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22569
22570 # Fix the shell variable \$srcfile for the compiler.
22571 fix_srcfile_path="$fix_srcfile_path_GCJ"
22572
22573 # Set to yes if exported symbols are required.
22574 always_export_symbols=$always_export_symbols_GCJ
22575
22576 # The commands to list exported symbols.
22577 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22578
22579 # The commands to extract the exported symbol list from a shared archive.
22580 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22581
22582 # Symbols that should not be listed in the preloaded symbols.
22583 exclude_expsyms=$lt_exclude_expsyms_GCJ
22584
22585 # Symbols that must always be exported.
22586 include_expsyms=$lt_include_expsyms_GCJ
22587
22588 # ### END LIBTOOL TAG CONFIG: $tagname
22589
22590 __EOF__
22591
22592
22593 else
22594 # If there is no Makefile yet, we rely on a make rule to execute
22595 # `config.status --recheck' to rerun these tests and create the
22596 # libtool script then.
22597 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22598 if test -f "$ltmain_in"; then
22599 test -f Makefile && make "$ltmain"
22600 fi
22601 fi
22602
22603
22604 ac_ext=c
22605 ac_cpp='$CPP $CPPFLAGS'
22606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22609
22610 CC="$lt_save_CC"
22611
22612 else
22613 tagname=""
22614 fi
22615 ;;
22616
22617 RC)
22618
22619
22620
22621 # Source file extension for RC test sources.
22622 ac_ext=rc
22623
22624 # Object file extension for compiled RC test sources.
22625 objext=o
22626 objext_RC=$objext
22627
22628 # Code to be used in simple compile tests
22629 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22630
22631 # Code to be used in simple link tests
22632 lt_simple_link_test_code="$lt_simple_compile_test_code"
22633
22634 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22635
22636 # If no C compiler was specified, use CC.
22637 LTCC=${LTCC-"$CC"}
22638
22639 # Allow CC to be a program name with arguments.
22640 compiler=$CC
22641
22642
22643 # Allow CC to be a program name with arguments.
22644 lt_save_CC="$CC"
22645 CC=${RC-"windres"}
22646 compiler=$CC
22647 compiler_RC=$CC
22648 lt_cv_prog_compiler_c_o_RC=yes
22649
22650 # The else clause should only fire when bootstrapping the
22651 # libtool distribution, otherwise you forgot to ship ltmain.sh
22652 # with your package, and you will get complaints that there are
22653 # no rules to generate ltmain.sh.
22654 if test -f "$ltmain"; then
22655 # See if we are running on zsh, and set the options which allow our commands through
22656 # without removal of \ escapes.
22657 if test -n "${ZSH_VERSION+set}" ; then
22658 setopt NO_GLOB_SUBST
22659 fi
22660 # Now quote all the things that may contain metacharacters while being
22661 # careful not to overquote the AC_SUBSTed values. We take copies of the
22662 # variables and quote the copies for generation of the libtool script.
22663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22664 SED SHELL STRIP \
22665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22667 deplibs_check_method reload_flag reload_cmds need_locks \
22668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22669 lt_cv_sys_global_symbol_to_c_name_address \
22670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22671 old_postinstall_cmds old_postuninstall_cmds \
22672 compiler_RC \
22673 CC_RC \
22674 LD_RC \
22675 lt_prog_compiler_wl_RC \
22676 lt_prog_compiler_pic_RC \
22677 lt_prog_compiler_static_RC \
22678 lt_prog_compiler_no_builtin_flag_RC \
22679 export_dynamic_flag_spec_RC \
22680 thread_safe_flag_spec_RC \
22681 whole_archive_flag_spec_RC \
22682 enable_shared_with_static_runtimes_RC \
22683 old_archive_cmds_RC \
22684 old_archive_from_new_cmds_RC \
22685 predep_objects_RC \
22686 postdep_objects_RC \
22687 predeps_RC \
22688 postdeps_RC \
22689 compiler_lib_search_path_RC \
22690 archive_cmds_RC \
22691 archive_expsym_cmds_RC \
22692 postinstall_cmds_RC \
22693 postuninstall_cmds_RC \
22694 old_archive_from_expsyms_cmds_RC \
22695 allow_undefined_flag_RC \
22696 no_undefined_flag_RC \
22697 export_symbols_cmds_RC \
22698 hardcode_libdir_flag_spec_RC \
22699 hardcode_libdir_flag_spec_ld_RC \
22700 hardcode_libdir_separator_RC \
22701 hardcode_automatic_RC \
22702 module_cmds_RC \
22703 module_expsym_cmds_RC \
22704 lt_cv_prog_compiler_c_o_RC \
22705 exclude_expsyms_RC \
22706 include_expsyms_RC; do
22707
22708 case $var in
22709 old_archive_cmds_RC | \
22710 old_archive_from_new_cmds_RC | \
22711 archive_cmds_RC | \
22712 archive_expsym_cmds_RC | \
22713 module_cmds_RC | \
22714 module_expsym_cmds_RC | \
22715 old_archive_from_expsyms_cmds_RC | \
22716 export_symbols_cmds_RC | \
22717 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22718 postinstall_cmds | postuninstall_cmds | \
22719 old_postinstall_cmds | old_postuninstall_cmds | \
22720 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22721 # Double-quote double-evaled strings.
22722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22723 ;;
22724 *)
22725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22726 ;;
22727 esac
22728 done
22729
22730 case $lt_echo in
22731 *'\$0 --fallback-echo"')
22732 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22733 ;;
22734 esac
22735
22736 cfgfile="$ofile"
22737
22738 cat <<__EOF__ >> "$cfgfile"
22739 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22740
22741 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22742
22743 # Shell to use when invoking shell scripts.
22744 SHELL=$lt_SHELL
22745
22746 # Whether or not to build shared libraries.
22747 build_libtool_libs=$enable_shared
22748
22749 # Whether or not to build static libraries.
22750 build_old_libs=$enable_static
22751
22752 # Whether or not to add -lc for building shared libraries.
22753 build_libtool_need_lc=$archive_cmds_need_lc_RC
22754
22755 # Whether or not to disallow shared libs when runtime libs are static
22756 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22757
22758 # Whether or not to optimize for fast installation.
22759 fast_install=$enable_fast_install
22760
22761 # The host system.
22762 host_alias=$host_alias
22763 host=$host
22764
22765 # An echo program that does not interpret backslashes.
22766 echo=$lt_echo
22767
22768 # The archiver.
22769 AR=$lt_AR
22770 AR_FLAGS=$lt_AR_FLAGS
22771
22772 # A C compiler.
22773 LTCC=$lt_LTCC
22774
22775 # A language-specific compiler.
22776 CC=$lt_compiler_RC
22777
22778 # Is the compiler the GNU C compiler?
22779 with_gcc=$GCC_RC
22780
22781 # An ERE matcher.
22782 EGREP=$lt_EGREP
22783
22784 # The linker used to build libraries.
22785 LD=$lt_LD_RC
22786
22787 # Whether we need hard or soft links.
22788 LN_S=$lt_LN_S
22789
22790 # A BSD-compatible nm program.
22791 NM=$lt_NM
22792
22793 # A symbol stripping program
22794 STRIP=$lt_STRIP
22795
22796 # Used to examine libraries when file_magic_cmd begins "file"
22797 MAGIC_CMD=$MAGIC_CMD
22798
22799 # Used on cygwin: DLL creation program.
22800 DLLTOOL="$DLLTOOL"
22801
22802 # Used on cygwin: object dumper.
22803 OBJDUMP="$OBJDUMP"
22804
22805 # Used on cygwin: assembler.
22806 AS="$AS"
22807
22808 # The name of the directory that contains temporary libtool files.
22809 objdir=$objdir
22810
22811 # How to create reloadable object files.
22812 reload_flag=$lt_reload_flag
22813 reload_cmds=$lt_reload_cmds
22814
22815 # How to pass a linker flag through the compiler.
22816 wl=$lt_lt_prog_compiler_wl_RC
22817
22818 # Object file suffix (normally "o").
22819 objext="$ac_objext"
22820
22821 # Old archive suffix (normally "a").
22822 libext="$libext"
22823
22824 # Shared library suffix (normally ".so").
22825 shrext_cmds='$shrext_cmds'
22826
22827 # Executable file suffix (normally "").
22828 exeext="$exeext"
22829
22830 # Additional compiler flags for building library objects.
22831 pic_flag=$lt_lt_prog_compiler_pic_RC
22832 pic_mode=$pic_mode
22833
22834 # What is the maximum length of a command?
22835 max_cmd_len=$lt_cv_sys_max_cmd_len
22836
22837 # Does compiler simultaneously support -c and -o options?
22838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22839
22840 # Must we lock files when doing compilation ?
22841 need_locks=$lt_need_locks
22842
22843 # Do we need the lib prefix for modules?
22844 need_lib_prefix=$need_lib_prefix
22845
22846 # Do we need a version for libraries?
22847 need_version=$need_version
22848
22849 # Whether dlopen is supported.
22850 dlopen_support=$enable_dlopen
22851
22852 # Whether dlopen of programs is supported.
22853 dlopen_self=$enable_dlopen_self
22854
22855 # Whether dlopen of statically linked programs is supported.
22856 dlopen_self_static=$enable_dlopen_self_static
22857
22858 # Compiler flag to prevent dynamic linking.
22859 link_static_flag=$lt_lt_prog_compiler_static_RC
22860
22861 # Compiler flag to turn off builtin functions.
22862 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22863
22864 # Compiler flag to allow reflexive dlopens.
22865 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22866
22867 # Compiler flag to generate shared objects directly from archives.
22868 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22869
22870 # Compiler flag to generate thread-safe objects.
22871 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22872
22873 # Library versioning type.
22874 version_type=$version_type
22875
22876 # Format of library name prefix.
22877 libname_spec=$lt_libname_spec
22878
22879 # List of archive names. First name is the real one, the rest are links.
22880 # The last name is the one that the linker finds with -lNAME.
22881 library_names_spec=$lt_library_names_spec
22882
22883 # The coded name of the library, if different from the real name.
22884 soname_spec=$lt_soname_spec
22885
22886 # Commands used to build and install an old-style archive.
22887 RANLIB=$lt_RANLIB
22888 old_archive_cmds=$lt_old_archive_cmds_RC
22889 old_postinstall_cmds=$lt_old_postinstall_cmds
22890 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22891
22892 # Create an old-style archive from a shared archive.
22893 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22894
22895 # Create a temporary old-style archive to link instead of a shared archive.
22896 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22897
22898 # Commands used to build and install a shared archive.
22899 archive_cmds=$lt_archive_cmds_RC
22900 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22901 postinstall_cmds=$lt_postinstall_cmds
22902 postuninstall_cmds=$lt_postuninstall_cmds
22903
22904 # Commands used to build a loadable module (assumed same as above if empty)
22905 module_cmds=$lt_module_cmds_RC
22906 module_expsym_cmds=$lt_module_expsym_cmds_RC
22907
22908 # Commands to strip libraries.
22909 old_striplib=$lt_old_striplib
22910 striplib=$lt_striplib
22911
22912 # Dependencies to place before the objects being linked to create a
22913 # shared library.
22914 predep_objects=$lt_predep_objects_RC
22915
22916 # Dependencies to place after the objects being linked to create a
22917 # shared library.
22918 postdep_objects=$lt_postdep_objects_RC
22919
22920 # Dependencies to place before the objects being linked to create a
22921 # shared library.
22922 predeps=$lt_predeps_RC
22923
22924 # Dependencies to place after the objects being linked to create a
22925 # shared library.
22926 postdeps=$lt_postdeps_RC
22927
22928 # The library search path used internally by the compiler when linking
22929 # a shared library.
22930 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22931
22932 # Method to check whether dependent libraries are shared objects.
22933 deplibs_check_method=$lt_deplibs_check_method
22934
22935 # Command to use when deplibs_check_method == file_magic.
22936 file_magic_cmd=$lt_file_magic_cmd
22937
22938 # Flag that allows shared libraries with undefined symbols to be built.
22939 allow_undefined_flag=$lt_allow_undefined_flag_RC
22940
22941 # Flag that forces no undefined symbols.
22942 no_undefined_flag=$lt_no_undefined_flag_RC
22943
22944 # Commands used to finish a libtool library installation in a directory.
22945 finish_cmds=$lt_finish_cmds
22946
22947 # Same as above, but a single script fragment to be evaled but not shown.
22948 finish_eval=$lt_finish_eval
22949
22950 # Take the output of nm and produce a listing of raw symbols and C names.
22951 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22952
22953 # Transform the output of nm in a proper C declaration
22954 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22955
22956 # Transform the output of nm in a C name address pair
22957 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22958
22959 # This is the shared library runtime path variable.
22960 runpath_var=$runpath_var
22961
22962 # This is the shared library path variable.
22963 shlibpath_var=$shlibpath_var
22964
22965 # Is shlibpath searched before the hard-coded library search path?
22966 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22967
22968 # How to hardcode a shared library path into an executable.
22969 hardcode_action=$hardcode_action_RC
22970
22971 # Whether we should hardcode library paths into libraries.
22972 hardcode_into_libs=$hardcode_into_libs
22973
22974 # Flag to hardcode \$libdir into a binary during linking.
22975 # This must work even if \$libdir does not exist.
22976 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22977
22978 # If ld is used when linking, flag to hardcode \$libdir into
22979 # a binary during linking. This must work even if \$libdir does
22980 # not exist.
22981 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22982
22983 # Whether we need a single -rpath flag with a separated argument.
22984 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22985
22986 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22987 # resulting binary.
22988 hardcode_direct=$hardcode_direct_RC
22989
22990 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22991 # resulting binary.
22992 hardcode_minus_L=$hardcode_minus_L_RC
22993
22994 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22995 # the resulting binary.
22996 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22997
22998 # Set to yes if building a shared library automatically hardcodes DIR into the library
22999 # and all subsequent libraries and executables linked against it.
23000 hardcode_automatic=$hardcode_automatic_RC
23001
23002 # Variables whose values should be saved in libtool wrapper scripts and
23003 # restored at relink time.
23004 variables_saved_for_relink="$variables_saved_for_relink"
23005
23006 # Whether libtool must link a program against all its dependency libraries.
23007 link_all_deplibs=$link_all_deplibs_RC
23008
23009 # Compile-time system search path for libraries
23010 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23011
23012 # Run-time system search path for libraries
23013 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23014
23015 # Fix the shell variable \$srcfile for the compiler.
23016 fix_srcfile_path="$fix_srcfile_path_RC"
23017
23018 # Set to yes if exported symbols are required.
23019 always_export_symbols=$always_export_symbols_RC
23020
23021 # The commands to list exported symbols.
23022 export_symbols_cmds=$lt_export_symbols_cmds_RC
23023
23024 # The commands to extract the exported symbol list from a shared archive.
23025 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23026
23027 # Symbols that should not be listed in the preloaded symbols.
23028 exclude_expsyms=$lt_exclude_expsyms_RC
23029
23030 # Symbols that must always be exported.
23031 include_expsyms=$lt_include_expsyms_RC
23032
23033 # ### END LIBTOOL TAG CONFIG: $tagname
23034
23035 __EOF__
23036
23037
23038 else
23039 # If there is no Makefile yet, we rely on a make rule to execute
23040 # `config.status --recheck' to rerun these tests and create the
23041 # libtool script then.
23042 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23043 if test -f "$ltmain_in"; then
23044 test -f Makefile && make "$ltmain"
23045 fi
23046 fi
23047
23048
23049 ac_ext=c
23050 ac_cpp='$CPP $CPPFLAGS'
23051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23054
23055 CC="$lt_save_CC"
23056
23057 ;;
23058
23059 *)
23060 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
23061 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
23062 { (exit 1); exit 1; }; }
23063 ;;
23064 esac
23065
23066 # Append the new tag name to the list of available tags.
23067 if test -n "$tagname" ; then
23068 available_tags="$available_tags $tagname"
23069 fi
23070 fi
23071 done
23072 IFS="$lt_save_ifs"
23073
23074 # Now substitute the updated list of available tags.
23075 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
23076 mv "${ofile}T" "$ofile"
23077 chmod +x "$ofile"
23078 else
23079 rm -f "${ofile}T"
23080 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
23081 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
23082 { (exit 1); exit 1; }; }
23083 fi
23084 fi
23085
23086
23087
23088 # This can be used to rebuild libtool when needed
23089 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
23090
23091 # Always use our own libtool.
23092 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
23093
23094 # Prevent multiple expansion
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117 # Extract the first word of "audacious", so it can be a program name with args.
23118 set dummy audacious; ac_word=$2
23119 echo "$as_me:$LINENO: checking for $ac_word" >&5
23120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23121 if test "${ac_cv_path_BEEP_PATH+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124 case $BEEP_PATH in
23125 [\\/]* | ?:[\\/]*)
23126 ac_cv_path_BEEP_PATH="$BEEP_PATH" # Let the user override the test with a path.
23127 ;;
23128 *)
23129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23130 for as_dir in $PATH
23131 do
23132 IFS=$as_save_IFS
23133 test -z "$as_dir" && as_dir=.
23134 for ac_exec_ext in '' $ac_executable_extensions; do
23135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23136 ac_cv_path_BEEP_PATH="$as_dir/$ac_word$ac_exec_ext"
23137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23138 break 2
23139 fi
23140 done
23141 done
23142
23143 test -z "$ac_cv_path_BEEP_PATH" && ac_cv_path_BEEP_PATH="no"
23144 ;;
23145 esac
23146 fi
23147 BEEP_PATH=$ac_cv_path_BEEP_PATH
23148
23149 if test -n "$BEEP_PATH"; then
23150 echo "$as_me:$LINENO: result: $BEEP_PATH" >&5
23151 echo "${ECHO_T}$BEEP_PATH" >&6
23152 else
23153 echo "$as_me:$LINENO: result: no" >&5
23154 echo "${ECHO_T}no" >&6
23155 fi
23156
23157
23158
23159 # Check whether --with-rc-path or --without-rc-path was given.
23160 if test "${with_rc_path+set}" = set; then
23161 withval="$with_rc_path"
23162 rc_path=$withval
23163 else
23164 rc_path=.audacious
23165
23166 fi;
23167
23168 cat >>confdefs.h <<_ACEOF
23169 #define BMP_RCPATH "$rc_path"
23170 _ACEOF
23171
23172
23173
23174 # Check whether --enable-one-plugin-dir or --disable-one-plugin-dir was given.
23175 if test "${enable_one_plugin_dir+set}" = set; then
23176 enableval="$enable_one_plugin_dir"
23177 enable_one_plugin_dir=$enableval
23178 else
23179 enable_one_plugin_dir=no
23180
23181 fi;
23182
23183 # Check whether --enable-user-plugin-dir or --disable-user-plugin-dir was given.
23184 if test "${enable_user_plugin_dir+set}" = set; then
23185 enableval="$enable_user_plugin_dir"
23186 enable_user_plugin_dir=$enableval
23187 else
23188 enable_user_plugin_dir=yes
23189
23190 fi;
23191
23192
23193 # Check whether --with-dev-dsp or --without-dev-dsp was given.
23194 if test "${with_dev_dsp+set}" = set; then
23195 withval="$with_dev_dsp"
23196 dev_dsp=$withval
23197 else
23198 dev_dsp=/dev/dsp
23199
23200 fi;
23201
23202 cat >>confdefs.h <<_ACEOF
23203 #define DEV_DSP "$dev_dsp"
23204 _ACEOF
23205
23206
23207
23208 # Check whether --with-dev-mixer or --without-dev-mixer was given.
23209 if test "${with_dev_mixer+set}" = set; then
23210 withval="$with_dev_mixer"
23211 dev_mixer=$withval
23212 else
23213 dev_mixer=/dev/mixer
23214
23215 fi;
23216
23217 cat >>confdefs.h <<_ACEOF
23218 #define DEV_MIXER "$dev_mixer"
23219 _ACEOF
23220
23221
23222
23223 # Check whether --with-cdda-device or --without-cdda-device was given.
23224 if test "${with_cdda_device+set}" = set; then
23225 withval="$with_cdda_device"
23226
23227 cat >>confdefs.h <<_ACEOF
23228 #define CDDA_DEVICE "$withval"
23229 _ACEOF
23230
23231
23232
23233 fi;
23234
23235
23236 # Check whether --with-cdda-dir or --without-cdda-dir was given.
23237 if test "${with_cdda_dir+set}" = set; then
23238 withval="$with_cdda_dir"
23239
23240 cat >>confdefs.h <<_ACEOF
23241 #define CDDA_DIRECTORY "$withval"
23242 _ACEOF
23243
23244
23245
23246 fi;
23247
23248
23249
23250 for class in EFFECT GENERAL INPUT OUTPUT VISUALIZATION; do
23251 value=`eval echo "\\$${class}_PLUGINS"`
23252 if test "${value}" = ""; then
23253 eval ${class}_PLUGINS="\$\(ALL_PLUGINS\)"
23254 else
23255 value=`echo ${value} | sed -e 's/,/ /g'`
23256 eval ${class}_PLUGINS="\${value}"
23257 fi
23258 done
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269 # Check whether --with-xmms-eq or --without-xmms-eq was given.
23270 if test "${with_xmms_eq+set}" = set; then
23271 withval="$with_xmms_eq"
23272 use_xmms_eq=$withval
23273 else
23274 use_xmms_eq=no
23275
23276 fi;
23277
23278 if test "$use_xmms_eq" = "yes"; then
23279
23280 cat >>confdefs.h <<\_ACEOF
23281 #define XMMS_EQ
23282 _ACEOF
23283
23284 fi
23285
23286
23287
23288 echo "$as_me:$LINENO: checking for X" >&5
23289 echo $ECHO_N "checking for X... $ECHO_C" >&6
23290
23291
23292 # Check whether --with-x or --without-x was given.
23293 if test "${with_x+set}" = set; then
23294 withval="$with_x"
23295
23296 fi;
23297 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23298 if test "x$with_x" = xno; then
23299 # The user explicitly disabled X.
23300 have_x=disabled
23301 else
23302 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23303 # Both variables are already set.
23304 have_x=yes
23305 else
23306 if test "${ac_cv_have_x+set}" = set; then
23307 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 else
23309 # One or both of the vars are not set, and there is no cached value.
23310 ac_x_includes=no ac_x_libraries=no
23311 rm -fr conftest.dir
23312 if mkdir conftest.dir; then
23313 cd conftest.dir
23314 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23315 cat >Imakefile <<'_ACEOF'
23316 acfindx:
23317 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23318 _ACEOF
23319 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23320 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23321 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23322 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23323 for ac_extension in a so sl; do
23324 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23325 test -f $ac_im_libdir/libX11.$ac_extension; then
23326 ac_im_usrlibdir=$ac_im_libdir; break
23327 fi
23328 done
23329 # Screen out bogus values from the imake configuration. They are
23330 # bogus both because they are the default anyway, and because
23331 # using them would break gcc on systems where it needs fixed includes.
23332 case $ac_im_incroot in
23333 /usr/include) ;;
23334 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23335 esac
23336 case $ac_im_usrlibdir in
23337 /usr/lib | /lib) ;;
23338 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23339 esac
23340 fi
23341 cd ..
23342 rm -fr conftest.dir
23343 fi
23344
23345 # Standard set of common directories for X headers.
23346 # Check X11 before X11Rn because it is often a symlink to the current release.
23347 ac_x_header_dirs='
23348 /usr/X11/include
23349 /usr/X11R6/include
23350 /usr/X11R5/include
23351 /usr/X11R4/include
23352
23353 /usr/include/X11
23354 /usr/include/X11R6
23355 /usr/include/X11R5
23356 /usr/include/X11R4
23357
23358 /usr/local/X11/include
23359 /usr/local/X11R6/include
23360 /usr/local/X11R5/include
23361 /usr/local/X11R4/include
23362
23363 /usr/local/include/X11
23364 /usr/local/include/X11R6
23365 /usr/local/include/X11R5
23366 /usr/local/include/X11R4
23367
23368 /usr/X386/include
23369 /usr/x386/include
23370 /usr/XFree86/include/X11
23371
23372 /usr/include
23373 /usr/local/include
23374 /usr/unsupported/include
23375 /usr/athena/include
23376 /usr/local/x11r5/include
23377 /usr/lpp/Xamples/include
23378
23379 /usr/openwin/include
23380 /usr/openwin/share/include'
23381
23382 if test "$ac_x_includes" = no; then
23383 # Guess where to find include files, by looking for Intrinsic.h.
23384 # First, try using that file with no special directory specified.
23385 cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h. */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h. */
23391 #include <X11/Intrinsic.h>
23392 _ACEOF
23393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23395 ac_status=$?
23396 grep -v '^ *+' conftest.er1 >conftest.err
23397 rm -f conftest.er1
23398 cat conftest.err >&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } >/dev/null; then
23401 if test -s conftest.err; then
23402 ac_cpp_err=$ac_c_preproc_warn_flag
23403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23404 else
23405 ac_cpp_err=
23406 fi
23407 else
23408 ac_cpp_err=yes
23409 fi
23410 if test -z "$ac_cpp_err"; then
23411 # We can compile using X headers with no special include directory.
23412 ac_x_includes=
23413 else
23414 echo "$as_me: failed program was:" >&5
23415 sed 's/^/| /' conftest.$ac_ext >&5
23416
23417 for ac_dir in $ac_x_header_dirs; do
23418 if test -r "$ac_dir/X11/Intrinsic.h"; then
23419 ac_x_includes=$ac_dir
23420 break
23421 fi
23422 done
23423 fi
23424 rm -f conftest.err conftest.$ac_ext
23425 fi # $ac_x_includes = no
23426
23427 if test "$ac_x_libraries" = no; then
23428 # Check for the libraries.
23429 # See if we find them without any special options.
23430 # Don't add to $LIBS permanently.
23431 ac_save_LIBS=$LIBS
23432 LIBS="-lXt $LIBS"
23433 cat >conftest.$ac_ext <<_ACEOF
23434 /* confdefs.h. */
23435 _ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h. */
23439 #include <X11/Intrinsic.h>
23440 int
23441 main ()
23442 {
23443 XtMalloc (0)
23444 ;
23445 return 0;
23446 }
23447 _ACEOF
23448 rm -f conftest.$ac_objext conftest$ac_exeext
23449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23450 (eval $ac_link) 2>conftest.er1
23451 ac_status=$?
23452 grep -v '^ *+' conftest.er1 >conftest.err
23453 rm -f conftest.er1
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } &&
23457 { ac_try='test -z "$ac_c_werror_flag"
23458 || test ! -s conftest.err'
23459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460 (eval $ac_try) 2>&5
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; } &&
23464 { ac_try='test -s conftest$ac_exeext'
23465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466 (eval $ac_try) 2>&5
23467 ac_status=$?
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); }; }; then
23470 LIBS=$ac_save_LIBS
23471 # We can link X programs with no special library path.
23472 ac_x_libraries=
23473 else
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23476
23477 LIBS=$ac_save_LIBS
23478 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23479 do
23480 # Don't even attempt the hair of trying to link an X program!
23481 for ac_extension in a so sl; do
23482 if test -r $ac_dir/libXt.$ac_extension; then
23483 ac_x_libraries=$ac_dir
23484 break 2
23485 fi
23486 done
23487 done
23488 fi
23489 rm -f conftest.err conftest.$ac_objext \
23490 conftest$ac_exeext conftest.$ac_ext
23491 fi # $ac_x_libraries = no
23492
23493 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23494 # Didn't find X anywhere. Cache the known absence of X.
23495 ac_cv_have_x="have_x=no"
23496 else
23497 # Record where we found X for the cache.
23498 ac_cv_have_x="have_x=yes \
23499 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23500 fi
23501 fi
23502
23503 fi
23504 eval "$ac_cv_have_x"
23505 fi # $with_x != no
23506
23507 if test "$have_x" != yes; then
23508 echo "$as_me:$LINENO: result: $have_x" >&5
23509 echo "${ECHO_T}$have_x" >&6
23510 no_x=yes
23511 else
23512 # If each of the values was on the command line, it overrides each guess.
23513 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23514 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23515 # Update the cache value to reflect the command line values.
23516 ac_cv_have_x="have_x=yes \
23517 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23518 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23519 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23520 fi
23521
23522 if test "$no_x" = yes; then
23523 # Not all programs may use this symbol, but it does not hurt to define it.
23524
23525 cat >>confdefs.h <<\_ACEOF
23526 #define X_DISPLAY_MISSING 1
23527 _ACEOF
23528
23529 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23530 else
23531 if test -n "$x_includes"; then
23532 X_CFLAGS="$X_CFLAGS -I$x_includes"
23533 fi
23534
23535 # It would also be nice to do this for all -L options, not just this one.
23536 if test -n "$x_libraries"; then
23537 X_LIBS="$X_LIBS -L$x_libraries"
23538 # For Solaris; some versions of Sun CC require a space after -R and
23539 # others require no space. Words are not sufficient . . . .
23540 case `(uname -sr) 2>/dev/null` in
23541 "SunOS 5"*)
23542 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23543 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23544 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23545 cat >conftest.$ac_ext <<_ACEOF
23546 /* confdefs.h. */
23547 _ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h. */
23551
23552 int
23553 main ()
23554 {
23555
23556 ;
23557 return 0;
23558 }
23559 _ACEOF
23560 rm -f conftest.$ac_objext conftest$ac_exeext
23561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562 (eval $ac_link) 2>conftest.er1
23563 ac_status=$?
23564 grep -v '^ *+' conftest.er1 >conftest.err
23565 rm -f conftest.er1
23566 cat conftest.err >&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } &&
23569 { ac_try='test -z "$ac_c_werror_flag"
23570 || test ! -s conftest.err'
23571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572 (eval $ac_try) 2>&5
23573 ac_status=$?
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); }; } &&
23576 { ac_try='test -s conftest$ac_exeext'
23577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578 (eval $ac_try) 2>&5
23579 ac_status=$?
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }; }; then
23582 ac_R_nospace=yes
23583 else
23584 echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23586
23587 ac_R_nospace=no
23588 fi
23589 rm -f conftest.err conftest.$ac_objext \
23590 conftest$ac_exeext conftest.$ac_ext
23591 if test $ac_R_nospace = yes; then
23592 echo "$as_me:$LINENO: result: no" >&5
23593 echo "${ECHO_T}no" >&6
23594 X_LIBS="$X_LIBS -R$x_libraries"
23595 else
23596 LIBS="$ac_xsave_LIBS -R $x_libraries"
23597 cat >conftest.$ac_ext <<_ACEOF
23598 /* confdefs.h. */
23599 _ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h. */
23603
23604 int
23605 main ()
23606 {
23607
23608 ;
23609 return 0;
23610 }
23611 _ACEOF
23612 rm -f conftest.$ac_objext conftest$ac_exeext
23613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23614 (eval $ac_link) 2>conftest.er1
23615 ac_status=$?
23616 grep -v '^ *+' conftest.er1 >conftest.err
23617 rm -f conftest.er1
23618 cat conftest.err >&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); } &&
23621 { ac_try='test -z "$ac_c_werror_flag"
23622 || test ! -s conftest.err'
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; } &&
23628 { ac_try='test -s conftest$ac_exeext'
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; }; then
23634 ac_R_space=yes
23635 else
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639 ac_R_space=no
23640 fi
23641 rm -f conftest.err conftest.$ac_objext \
23642 conftest$ac_exeext conftest.$ac_ext
23643 if test $ac_R_space = yes; then
23644 echo "$as_me:$LINENO: result: yes" >&5
23645 echo "${ECHO_T}yes" >&6
23646 X_LIBS="$X_LIBS -R $x_libraries"
23647 else
23648 echo "$as_me:$LINENO: result: neither works" >&5
23649 echo "${ECHO_T}neither works" >&6
23650 fi
23651 fi
23652 LIBS=$ac_xsave_LIBS
23653 esac
23654 fi
23655
23656 # Check for system-dependent libraries X programs must link with.
23657 # Do this before checking for the system-independent R6 libraries
23658 # (-lICE), since we may need -lsocket or whatever for X linking.
23659
23660 if test "$ISC" = yes; then
23661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23662 else
23663 # Martyn Johnson says this is needed for Ultrix, if the X
23664 # libraries were built with DECnet support. And Karl Berry says
23665 # the Alpha needs dnet_stub (dnet does not exist).
23666 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23667 cat >conftest.$ac_ext <<_ACEOF
23668 /* confdefs.h. */
23669 _ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23673
23674 /* Override any gcc2 internal prototype to avoid an error. */
23675 #ifdef __cplusplus
23676 extern "C"
23677 #endif
23678 /* We use char because int might match the return type of a gcc2
23679 builtin and then its argument prototype would still apply. */
23680 char XOpenDisplay ();
23681 int
23682 main ()
23683 {
23684 XOpenDisplay ();
23685 ;
23686 return 0;
23687 }
23688 _ACEOF
23689 rm -f conftest.$ac_objext conftest$ac_exeext
23690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23691 (eval $ac_link) 2>conftest.er1
23692 ac_status=$?
23693 grep -v '^ *+' conftest.er1 >conftest.err
23694 rm -f conftest.er1
23695 cat conftest.err >&5
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); } &&
23698 { ac_try='test -z "$ac_c_werror_flag"
23699 || test ! -s conftest.err'
23700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23701 (eval $ac_try) 2>&5
23702 ac_status=$?
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); }; } &&
23705 { ac_try='test -s conftest$ac_exeext'
23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23708 ac_status=$?
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; }; then
23711 :
23712 else
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23715
23716 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23717 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23718 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23719 echo $ECHO_N "(cached) $ECHO_C" >&6
23720 else
23721 ac_check_lib_save_LIBS=$LIBS
23722 LIBS="-ldnet $LIBS"
23723 cat >conftest.$ac_ext <<_ACEOF
23724 /* confdefs.h. */
23725 _ACEOF
23726 cat confdefs.h >>conftest.$ac_ext
23727 cat >>conftest.$ac_ext <<_ACEOF
23728 /* end confdefs.h. */
23729
23730 /* Override any gcc2 internal prototype to avoid an error. */
23731 #ifdef __cplusplus
23732 extern "C"
23733 #endif
23734 /* We use char because int might match the return type of a gcc2
23735 builtin and then its argument prototype would still apply. */
23736 char dnet_ntoa ();
23737 int
23738 main ()
23739 {
23740 dnet_ntoa ();
23741 ;
23742 return 0;
23743 }
23744 _ACEOF
23745 rm -f conftest.$ac_objext conftest$ac_exeext
23746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23747 (eval $ac_link) 2>conftest.er1
23748 ac_status=$?
23749 grep -v '^ *+' conftest.er1 >conftest.err
23750 rm -f conftest.er1
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } &&
23754 { ac_try='test -z "$ac_c_werror_flag"
23755 || test ! -s conftest.err'
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23758 ac_status=$?
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; } &&
23761 { ac_try='test -s conftest$ac_exeext'
23762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23763 (eval $ac_try) 2>&5
23764 ac_status=$?
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); }; }; then
23767 ac_cv_lib_dnet_dnet_ntoa=yes
23768 else
23769 echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23771
23772 ac_cv_lib_dnet_dnet_ntoa=no
23773 fi
23774 rm -f conftest.err conftest.$ac_objext \
23775 conftest$ac_exeext conftest.$ac_ext
23776 LIBS=$ac_check_lib_save_LIBS
23777 fi
23778 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23779 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23780 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23781 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23782 fi
23783
23784 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23785 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23786 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23787 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23789 else
23790 ac_check_lib_save_LIBS=$LIBS
23791 LIBS="-ldnet_stub $LIBS"
23792 cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h. */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798
23799 /* Override any gcc2 internal prototype to avoid an error. */
23800 #ifdef __cplusplus
23801 extern "C"
23802 #endif
23803 /* We use char because int might match the return type of a gcc2
23804 builtin and then its argument prototype would still apply. */
23805 char dnet_ntoa ();
23806 int
23807 main ()
23808 {
23809 dnet_ntoa ();
23810 ;
23811 return 0;
23812 }
23813 _ACEOF
23814 rm -f conftest.$ac_objext conftest$ac_exeext
23815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23816 (eval $ac_link) 2>conftest.er1
23817 ac_status=$?
23818 grep -v '^ *+' conftest.er1 >conftest.err
23819 rm -f conftest.er1
23820 cat conftest.err >&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } &&
23823 { ac_try='test -z "$ac_c_werror_flag"
23824 || test ! -s conftest.err'
23825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23826 (eval $ac_try) 2>&5
23827 ac_status=$?
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); }; } &&
23830 { ac_try='test -s conftest$ac_exeext'
23831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23832 (eval $ac_try) 2>&5
23833 ac_status=$?
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); }; }; then
23836 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23837 else
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841 ac_cv_lib_dnet_stub_dnet_ntoa=no
23842 fi
23843 rm -f conftest.err conftest.$ac_objext \
23844 conftest$ac_exeext conftest.$ac_ext
23845 LIBS=$ac_check_lib_save_LIBS
23846 fi
23847 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23848 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23849 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23850 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23851 fi
23852
23853 fi
23854 fi
23855 rm -f conftest.err conftest.$ac_objext \
23856 conftest$ac_exeext conftest.$ac_ext
23857 LIBS="$ac_xsave_LIBS"
23858
23859 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23860 # to get the SysV transport functions.
23861 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23862 # needs -lnsl.
23863 # The nsl library prevents programs from opening the X display
23864 # on Irix 5.2, according to T.E. Dickey.
23865 # The functions gethostbyname, getservbyname, and inet_addr are
23866 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23867 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23868 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23869 if test "${ac_cv_func_gethostbyname+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23880 #define gethostbyname innocuous_gethostbyname
23881
23882 /* System header to define __stub macros and hopefully few prototypes,
23883 which can conflict with char gethostbyname (); below.
23884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23885 <limits.h> exists even on freestanding compilers. */
23886
23887 #ifdef __STDC__
23888 # include <limits.h>
23889 #else
23890 # include <assert.h>
23891 #endif
23892
23893 #undef gethostbyname
23894
23895 /* Override any gcc2 internal prototype to avoid an error. */
23896 #ifdef __cplusplus
23897 extern "C"
23898 {
23899 #endif
23900 /* We use char because int might match the return type of a gcc2
23901 builtin and then its argument prototype would still apply. */
23902 char gethostbyname ();
23903 /* The GNU C library defines this for functions which it implements
23904 to always fail with ENOSYS. Some functions are actually named
23905 something starting with __ and the normal name is an alias. */
23906 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23907 choke me
23908 #else
23909 char (*f) () = gethostbyname;
23910 #endif
23911 #ifdef __cplusplus
23912 }
23913 #endif
23914
23915 int
23916 main ()
23917 {
23918 return f != gethostbyname;
23919 ;
23920 return 0;
23921 }
23922 _ACEOF
23923 rm -f conftest.$ac_objext conftest$ac_exeext
23924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23925 (eval $ac_link) 2>conftest.er1
23926 ac_status=$?
23927 grep -v '^ *+' conftest.er1 >conftest.err
23928 rm -f conftest.er1
23929 cat conftest.err >&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); } &&
23932 { ac_try='test -z "$ac_c_werror_flag"
23933 || test ! -s conftest.err'
23934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935 (eval $ac_try) 2>&5
23936 ac_status=$?
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; } &&
23939 { ac_try='test -s conftest$ac_exeext'
23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; }; then
23945 ac_cv_func_gethostbyname=yes
23946 else
23947 echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23949
23950 ac_cv_func_gethostbyname=no
23951 fi
23952 rm -f conftest.err conftest.$ac_objext \
23953 conftest$ac_exeext conftest.$ac_ext
23954 fi
23955 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23956 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23957
23958 if test $ac_cv_func_gethostbyname = no; then
23959 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23960 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23961 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23962 echo $ECHO_N "(cached) $ECHO_C" >&6
23963 else
23964 ac_check_lib_save_LIBS=$LIBS
23965 LIBS="-lnsl $LIBS"
23966 cat >conftest.$ac_ext <<_ACEOF
23967 /* confdefs.h. */
23968 _ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h. */
23972
23973 /* Override any gcc2 internal prototype to avoid an error. */
23974 #ifdef __cplusplus
23975 extern "C"
23976 #endif
23977 /* We use char because int might match the return type of a gcc2
23978 builtin and then its argument prototype would still apply. */
23979 char gethostbyname ();
23980 int
23981 main ()
23982 {
23983 gethostbyname ();
23984 ;
23985 return 0;
23986 }
23987 _ACEOF
23988 rm -f conftest.$ac_objext conftest$ac_exeext
23989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23990 (eval $ac_link) 2>conftest.er1
23991 ac_status=$?
23992 grep -v '^ *+' conftest.er1 >conftest.err
23993 rm -f conftest.er1
23994 cat conftest.err >&5
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); } &&
23997 { ac_try='test -z "$ac_c_werror_flag"
23998 || test ! -s conftest.err'
23999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000 (eval $ac_try) 2>&5
24001 ac_status=$?
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); }; } &&
24004 { ac_try='test -s conftest$ac_exeext'
24005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006 (eval $ac_try) 2>&5
24007 ac_status=$?
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); }; }; then
24010 ac_cv_lib_nsl_gethostbyname=yes
24011 else
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24014
24015 ac_cv_lib_nsl_gethostbyname=no
24016 fi
24017 rm -f conftest.err conftest.$ac_objext \
24018 conftest$ac_exeext conftest.$ac_ext
24019 LIBS=$ac_check_lib_save_LIBS
24020 fi
24021 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24022 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24023 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24025 fi
24026
24027 if test $ac_cv_lib_nsl_gethostbyname = no; then
24028 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24029 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24030 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24031 echo $ECHO_N "(cached) $ECHO_C" >&6
24032 else
24033 ac_check_lib_save_LIBS=$LIBS
24034 LIBS="-lbsd $LIBS"
24035 cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h. */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h. */
24041
24042 /* Override any gcc2 internal prototype to avoid an error. */
24043 #ifdef __cplusplus
24044 extern "C"
24045 #endif
24046 /* We use char because int might match the return type of a gcc2
24047 builtin and then its argument prototype would still apply. */
24048 char gethostbyname ();
24049 int
24050 main ()
24051 {
24052 gethostbyname ();
24053 ;
24054 return 0;
24055 }
24056 _ACEOF
24057 rm -f conftest.$ac_objext conftest$ac_exeext
24058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24059 (eval $ac_link) 2>conftest.er1
24060 ac_status=$?
24061 grep -v '^ *+' conftest.er1 >conftest.err
24062 rm -f conftest.er1
24063 cat conftest.err >&5
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); } &&
24066 { ac_try='test -z "$ac_c_werror_flag"
24067 || test ! -s conftest.err'
24068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24069 (eval $ac_try) 2>&5
24070 ac_status=$?
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); }; } &&
24073 { ac_try='test -s conftest$ac_exeext'
24074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24075 (eval $ac_try) 2>&5
24076 ac_status=$?
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); }; }; then
24079 ac_cv_lib_bsd_gethostbyname=yes
24080 else
24081 echo "$as_me: failed program was:" >&5
24082 sed 's/^/| /' conftest.$ac_ext >&5
24083
24084 ac_cv_lib_bsd_gethostbyname=no
24085 fi
24086 rm -f conftest.err conftest.$ac_objext \
24087 conftest$ac_exeext conftest.$ac_ext
24088 LIBS=$ac_check_lib_save_LIBS
24089 fi
24090 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24091 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24092 if test $ac_cv_lib_bsd_gethostbyname = yes; then
24093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24094 fi
24095
24096 fi
24097 fi
24098
24099 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24100 # socket/setsockopt and other routines are undefined under SCO ODT
24101 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24102 # on later versions), says Simon Leinen: it contains gethostby*
24103 # variants that don't use the name server (or something). -lsocket
24104 # must be given before -lnsl if both are needed. We assume that
24105 # if connect needs -lnsl, so does gethostbyname.
24106 echo "$as_me:$LINENO: checking for connect" >&5
24107 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24108 if test "${ac_cv_func_connect+set}" = set; then
24109 echo $ECHO_N "(cached) $ECHO_C" >&6
24110 else
24111 cat >conftest.$ac_ext <<_ACEOF
24112 /* confdefs.h. */
24113 _ACEOF
24114 cat confdefs.h >>conftest.$ac_ext
24115 cat >>conftest.$ac_ext <<_ACEOF
24116 /* end confdefs.h. */
24117 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24119 #define connect innocuous_connect
24120
24121 /* System header to define __stub macros and hopefully few prototypes,
24122 which can conflict with char connect (); below.
24123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24124 <limits.h> exists even on freestanding compilers. */
24125
24126 #ifdef __STDC__
24127 # include <limits.h>
24128 #else
24129 # include <assert.h>
24130 #endif
24131
24132 #undef connect
24133
24134 /* Override any gcc2 internal prototype to avoid an error. */
24135 #ifdef __cplusplus
24136 extern "C"
24137 {
24138 #endif
24139 /* We use char because int might match the return type of a gcc2
24140 builtin and then its argument prototype would still apply. */
24141 char connect ();
24142 /* The GNU C library defines this for functions which it implements
24143 to always fail with ENOSYS. Some functions are actually named
24144 something starting with __ and the normal name is an alias. */
24145 #if defined (__stub_connect) || defined (__stub___connect)
24146 choke me
24147 #else
24148 char (*f) () = connect;
24149 #endif
24150 #ifdef __cplusplus
24151 }
24152 #endif
24153
24154 int
24155 main ()
24156 {
24157 return f != connect;
24158 ;
24159 return 0;
24160 }
24161 _ACEOF
24162 rm -f conftest.$ac_objext conftest$ac_exeext
24163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24164 (eval $ac_link) 2>conftest.er1
24165 ac_status=$?
24166 grep -v '^ *+' conftest.er1 >conftest.err
24167 rm -f conftest.er1
24168 cat conftest.err >&5
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } &&
24171 { ac_try='test -z "$ac_c_werror_flag"
24172 || test ! -s conftest.err'
24173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24174 (eval $ac_try) 2>&5
24175 ac_status=$?
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); }; } &&
24178 { ac_try='test -s conftest$ac_exeext'
24179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24180 (eval $ac_try) 2>&5
24181 ac_status=$?
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); }; }; then
24184 ac_cv_func_connect=yes
24185 else
24186 echo "$as_me: failed program was:" >&5
24187 sed 's/^/| /' conftest.$ac_ext >&5
24188
24189 ac_cv_func_connect=no
24190 fi
24191 rm -f conftest.err conftest.$ac_objext \
24192 conftest$ac_exeext conftest.$ac_ext
24193 fi
24194 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24195 echo "${ECHO_T}$ac_cv_func_connect" >&6
24196
24197 if test $ac_cv_func_connect = no; then
24198 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24199 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24200 if test "${ac_cv_lib_socket_connect+set}" = set; then
24201 echo $ECHO_N "(cached) $ECHO_C" >&6
24202 else
24203 ac_check_lib_save_LIBS=$LIBS
24204 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24205 cat >conftest.$ac_ext <<_ACEOF
24206 /* confdefs.h. */
24207 _ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h. */
24211
24212 /* Override any gcc2 internal prototype to avoid an error. */
24213 #ifdef __cplusplus
24214 extern "C"
24215 #endif
24216 /* We use char because int might match the return type of a gcc2
24217 builtin and then its argument prototype would still apply. */
24218 char connect ();
24219 int
24220 main ()
24221 {
24222 connect ();
24223 ;
24224 return 0;
24225 }
24226 _ACEOF
24227 rm -f conftest.$ac_objext conftest$ac_exeext
24228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24229 (eval $ac_link) 2>conftest.er1
24230 ac_status=$?
24231 grep -v '^ *+' conftest.er1 >conftest.err
24232 rm -f conftest.er1
24233 cat conftest.err >&5
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); } &&
24236 { ac_try='test -z "$ac_c_werror_flag"
24237 || test ! -s conftest.err'
24238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24239 (eval $ac_try) 2>&5
24240 ac_status=$?
24241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); }; } &&
24243 { ac_try='test -s conftest$ac_exeext'
24244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245 (eval $ac_try) 2>&5
24246 ac_status=$?
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); }; }; then
24249 ac_cv_lib_socket_connect=yes
24250 else
24251 echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24253
24254 ac_cv_lib_socket_connect=no
24255 fi
24256 rm -f conftest.err conftest.$ac_objext \
24257 conftest$ac_exeext conftest.$ac_ext
24258 LIBS=$ac_check_lib_save_LIBS
24259 fi
24260 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24261 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24262 if test $ac_cv_lib_socket_connect = yes; then
24263 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24264 fi
24265
24266 fi
24267
24268 # Guillermo Gomez says -lposix is necessary on A/UX.
24269 echo "$as_me:$LINENO: checking for remove" >&5
24270 echo $ECHO_N "checking for remove... $ECHO_C" >&6
24271 if test "${ac_cv_func_remove+set}" = set; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24273 else
24274 cat >conftest.$ac_ext <<_ACEOF
24275 /* confdefs.h. */
24276 _ACEOF
24277 cat confdefs.h >>conftest.$ac_ext
24278 cat >>conftest.$ac_ext <<_ACEOF
24279 /* end confdefs.h. */
24280 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24282 #define remove innocuous_remove
24283
24284 /* System header to define __stub macros and hopefully few prototypes,
24285 which can conflict with char remove (); below.
24286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24287 <limits.h> exists even on freestanding compilers. */
24288
24289 #ifdef __STDC__
24290 # include <limits.h>
24291 #else
24292 # include <assert.h>
24293 #endif
24294
24295 #undef remove
24296
24297 /* Override any gcc2 internal prototype to avoid an error. */
24298 #ifdef __cplusplus
24299 extern "C"
24300 {
24301 #endif
24302 /* We use char because int might match the return type of a gcc2
24303 builtin and then its argument prototype would still apply. */
24304 char remove ();
24305 /* The GNU C library defines this for functions which it implements
24306 to always fail with ENOSYS. Some functions are actually named
24307 something starting with __ and the normal name is an alias. */
24308 #if defined (__stub_remove) || defined (__stub___remove)
24309 choke me
24310 #else
24311 char (*f) () = remove;
24312 #endif
24313 #ifdef __cplusplus
24314 }
24315 #endif
24316
24317 int
24318 main ()
24319 {
24320 return f != remove;
24321 ;
24322 return 0;
24323 }
24324 _ACEOF
24325 rm -f conftest.$ac_objext conftest$ac_exeext
24326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24327 (eval $ac_link) 2>conftest.er1
24328 ac_status=$?
24329 grep -v '^ *+' conftest.er1 >conftest.err
24330 rm -f conftest.er1
24331 cat conftest.err >&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } &&
24334 { ac_try='test -z "$ac_c_werror_flag"
24335 || test ! -s conftest.err'
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; } &&
24341 { ac_try='test -s conftest$ac_exeext'
24342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24343 (eval $ac_try) 2>&5
24344 ac_status=$?
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); }; }; then
24347 ac_cv_func_remove=yes
24348 else
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352 ac_cv_func_remove=no
24353 fi
24354 rm -f conftest.err conftest.$ac_objext \
24355 conftest$ac_exeext conftest.$ac_ext
24356 fi
24357 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24358 echo "${ECHO_T}$ac_cv_func_remove" >&6
24359
24360 if test $ac_cv_func_remove = no; then
24361 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24362 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24363 if test "${ac_cv_lib_posix_remove+set}" = set; then
24364 echo $ECHO_N "(cached) $ECHO_C" >&6
24365 else
24366 ac_check_lib_save_LIBS=$LIBS
24367 LIBS="-lposix $LIBS"
24368 cat >conftest.$ac_ext <<_ACEOF
24369 /* confdefs.h. */
24370 _ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h. */
24374
24375 /* Override any gcc2 internal prototype to avoid an error. */
24376 #ifdef __cplusplus
24377 extern "C"
24378 #endif
24379 /* We use char because int might match the return type of a gcc2
24380 builtin and then its argument prototype would still apply. */
24381 char remove ();
24382 int
24383 main ()
24384 {
24385 remove ();
24386 ;
24387 return 0;
24388 }
24389 _ACEOF
24390 rm -f conftest.$ac_objext conftest$ac_exeext
24391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24392 (eval $ac_link) 2>conftest.er1
24393 ac_status=$?
24394 grep -v '^ *+' conftest.er1 >conftest.err
24395 rm -f conftest.er1
24396 cat conftest.err >&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); } &&
24399 { ac_try='test -z "$ac_c_werror_flag"
24400 || test ! -s conftest.err'
24401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24402 (eval $ac_try) 2>&5
24403 ac_status=$?
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); }; } &&
24406 { ac_try='test -s conftest$ac_exeext'
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
24412 ac_cv_lib_posix_remove=yes
24413 else
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24416
24417 ac_cv_lib_posix_remove=no
24418 fi
24419 rm -f conftest.err conftest.$ac_objext \
24420 conftest$ac_exeext conftest.$ac_ext
24421 LIBS=$ac_check_lib_save_LIBS
24422 fi
24423 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24424 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24425 if test $ac_cv_lib_posix_remove = yes; then
24426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24427 fi
24428
24429 fi
24430
24431 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24432 echo "$as_me:$LINENO: checking for shmat" >&5
24433 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24434 if test "${ac_cv_func_shmat+set}" = set; then
24435 echo $ECHO_N "(cached) $ECHO_C" >&6
24436 else
24437 cat >conftest.$ac_ext <<_ACEOF
24438 /* confdefs.h. */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h. */
24443 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24445 #define shmat innocuous_shmat
24446
24447 /* System header to define __stub macros and hopefully few prototypes,
24448 which can conflict with char shmat (); below.
24449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24450 <limits.h> exists even on freestanding compilers. */
24451
24452 #ifdef __STDC__
24453 # include <limits.h>
24454 #else
24455 # include <assert.h>
24456 #endif
24457
24458 #undef shmat
24459
24460 /* Override any gcc2 internal prototype to avoid an error. */
24461 #ifdef __cplusplus
24462 extern "C"
24463 {
24464 #endif
24465 /* We use char because int might match the return type of a gcc2
24466 builtin and then its argument prototype would still apply. */
24467 char shmat ();
24468 /* The GNU C library defines this for functions which it implements
24469 to always fail with ENOSYS. Some functions are actually named
24470 something starting with __ and the normal name is an alias. */
24471 #if defined (__stub_shmat) || defined (__stub___shmat)
24472 choke me
24473 #else
24474 char (*f) () = shmat;
24475 #endif
24476 #ifdef __cplusplus
24477 }
24478 #endif
24479
24480 int
24481 main ()
24482 {
24483 return f != shmat;
24484 ;
24485 return 0;
24486 }
24487 _ACEOF
24488 rm -f conftest.$ac_objext conftest$ac_exeext
24489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24490 (eval $ac_link) 2>conftest.er1
24491 ac_status=$?
24492 grep -v '^ *+' conftest.er1 >conftest.err
24493 rm -f conftest.er1
24494 cat conftest.err >&5
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); } &&
24497 { ac_try='test -z "$ac_c_werror_flag"
24498 || test ! -s conftest.err'
24499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500 (eval $ac_try) 2>&5
24501 ac_status=$?
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; } &&
24504 { ac_try='test -s conftest$ac_exeext'
24505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); }; }; then
24510 ac_cv_func_shmat=yes
24511 else
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24514
24515 ac_cv_func_shmat=no
24516 fi
24517 rm -f conftest.err conftest.$ac_objext \
24518 conftest$ac_exeext conftest.$ac_ext
24519 fi
24520 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24521 echo "${ECHO_T}$ac_cv_func_shmat" >&6
24522
24523 if test $ac_cv_func_shmat = no; then
24524 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24525 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24526 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24527 echo $ECHO_N "(cached) $ECHO_C" >&6
24528 else
24529 ac_check_lib_save_LIBS=$LIBS
24530 LIBS="-lipc $LIBS"
24531 cat >conftest.$ac_ext <<_ACEOF
24532 /* confdefs.h. */
24533 _ACEOF
24534 cat confdefs.h >>conftest.$ac_ext
24535 cat >>conftest.$ac_ext <<_ACEOF
24536 /* end confdefs.h. */
24537
24538 /* Override any gcc2 internal prototype to avoid an error. */
24539 #ifdef __cplusplus
24540 extern "C"
24541 #endif
24542 /* We use char because int might match the return type of a gcc2
24543 builtin and then its argument prototype would still apply. */
24544 char shmat ();
24545 int
24546 main ()
24547 {
24548 shmat ();
24549 ;
24550 return 0;
24551 }
24552 _ACEOF
24553 rm -f conftest.$ac_objext conftest$ac_exeext
24554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24555 (eval $ac_link) 2>conftest.er1
24556 ac_status=$?
24557 grep -v '^ *+' conftest.er1 >conftest.err
24558 rm -f conftest.er1
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } &&
24562 { ac_try='test -z "$ac_c_werror_flag"
24563 || test ! -s conftest.err'
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24566 ac_status=$?
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; } &&
24569 { ac_try='test -s conftest$ac_exeext'
24570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24571 (eval $ac_try) 2>&5
24572 ac_status=$?
24573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574 (exit $ac_status); }; }; then
24575 ac_cv_lib_ipc_shmat=yes
24576 else
24577 echo "$as_me: failed program was:" >&5
24578 sed 's/^/| /' conftest.$ac_ext >&5
24579
24580 ac_cv_lib_ipc_shmat=no
24581 fi
24582 rm -f conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
24584 LIBS=$ac_check_lib_save_LIBS
24585 fi
24586 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24587 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24588 if test $ac_cv_lib_ipc_shmat = yes; then
24589 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24590 fi
24591
24592 fi
24593 fi
24594
24595 # Check for libraries that X11R6 Xt/Xaw programs need.
24596 ac_save_LDFLAGS=$LDFLAGS
24597 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24598 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24599 # check for ICE first), but we must link in the order -lSM -lICE or
24600 # we get undefined symbols. So assume we have SM if we have ICE.
24601 # These have to be linked with before -lX11, unlike the other
24602 # libraries we check for below, so use a different variable.
24603 # John Interrante, Karl Berry
24604 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24605 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24606 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24608 else
24609 ac_check_lib_save_LIBS=$LIBS
24610 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24611 cat >conftest.$ac_ext <<_ACEOF
24612 /* confdefs.h. */
24613 _ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24617
24618 /* Override any gcc2 internal prototype to avoid an error. */
24619 #ifdef __cplusplus
24620 extern "C"
24621 #endif
24622 /* We use char because int might match the return type of a gcc2
24623 builtin and then its argument prototype would still apply. */
24624 char IceConnectionNumber ();
24625 int
24626 main ()
24627 {
24628 IceConnectionNumber ();
24629 ;
24630 return 0;
24631 }
24632 _ACEOF
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24635 (eval $ac_link) 2>conftest.er1
24636 ac_status=$?
24637 grep -v '^ *+' conftest.er1 >conftest.err
24638 rm -f conftest.er1
24639 cat conftest.err >&5
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); } &&
24642 { ac_try='test -z "$ac_c_werror_flag"
24643 || test ! -s conftest.err'
24644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645 (eval $ac_try) 2>&5
24646 ac_status=$?
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); }; } &&
24649 { ac_try='test -s conftest$ac_exeext'
24650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24651 (eval $ac_try) 2>&5
24652 ac_status=$?
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; }; then
24655 ac_cv_lib_ICE_IceConnectionNumber=yes
24656 else
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660 ac_cv_lib_ICE_IceConnectionNumber=no
24661 fi
24662 rm -f conftest.err conftest.$ac_objext \
24663 conftest$ac_exeext conftest.$ac_ext
24664 LIBS=$ac_check_lib_save_LIBS
24665 fi
24666 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24667 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24668 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24669 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24670 fi
24671
24672 LDFLAGS=$ac_save_LDFLAGS
24673
24674 fi
24675
24676 if test "$no_x" = "yes" ; then
24677 { { echo "$as_me:$LINENO: error: Cannot find X11 headers/libraries" >&5
24678 echo "$as_me: error: Cannot find X11 headers/libraries" >&2;}
24679 { (exit 1); exit 1; }; }
24680 fi
24681
24682
24683
24684 succeeded=no
24685
24686 if test -z "$PKG_CONFIG"; then
24687 # Extract the first word of "pkg-config", so it can be a program name with args.
24688 set dummy pkg-config; ac_word=$2
24689 echo "$as_me:$LINENO: checking for $ac_word" >&5
24690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24691 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24692 echo $ECHO_N "(cached) $ECHO_C" >&6
24693 else
24694 case $PKG_CONFIG in
24695 [\\/]* | ?:[\\/]*)
24696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24697 ;;
24698 *)
24699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24700 for as_dir in $PATH
24701 do
24702 IFS=$as_save_IFS
24703 test -z "$as_dir" && as_dir=.
24704 for ac_exec_ext in '' $ac_executable_extensions; do
24705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24708 break 2
24709 fi
24710 done
24711 done
24712
24713 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24714 ;;
24715 esac
24716 fi
24717 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24718
24719 if test -n "$PKG_CONFIG"; then
24720 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24721 echo "${ECHO_T}$PKG_CONFIG" >&6
24722 else
24723 echo "$as_me:$LINENO: result: no" >&5
24724 echo "${ECHO_T}no" >&6
24725 fi
24726
24727 fi
24728
24729 if test "$PKG_CONFIG" = "no" ; then
24730 echo "*** The pkg-config script could not be found. Make sure it is"
24731 echo "*** in your path, or set the PKG_CONFIG environment variable"
24732 echo "*** to the full path to pkg-config."
24733 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24734 else
24735 PKG_CONFIG_MIN_VERSION=0.9.0
24736 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24737 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4.0 gtk+-2.0 >= 2.4.0 gthread-2.0 pango" >&5
24738 echo $ECHO_N "checking for glib-2.0 >= 2.4.0 gtk+-2.0 >= 2.4.0 gthread-2.0 pango... $ECHO_C" >&6
24739
24740 if $PKG_CONFIG --exists "glib-2.0 >= 2.4.0 gtk+-2.0 >= 2.4.0 gthread-2.0 pango" ; then
24741 echo "$as_me:$LINENO: result: yes" >&5
24742 echo "${ECHO_T}yes" >&6
24743 succeeded=yes
24744
24745 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24746 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24747 GTK_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4.0 gtk+-2.0 >= 2.4.0 gthread-2.0 pango"`
24748 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24749 echo "${ECHO_T}$GTK_CFLAGS" >&6
24750
24751 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24752 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24753 GTK_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4.0 gtk+-2.0 >= 2.4.0 gthread-2.0 pango"`
24754 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24755 echo "${ECHO_T}$GTK_LIBS" >&6
24756 else
24757 GTK_CFLAGS=""
24758 GTK_LIBS=""
24759 ## If we have a custom action on failure, don't print errors, but
24760 ## do set a variable so people can do so.
24761 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4.0 gtk+-2.0 >= 2.4.0 gthread-2.0 pango"`
24762
24763 fi
24764
24765
24766
24767 else
24768 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24769 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24770 fi
24771 fi
24772
24773 if test $succeeded = yes; then
24774
24775 test -z "$PC_REQUIRES" && PC_REQUIRES="glib-2.0 >= 2.4.0, gtk+-2.0 >= 2.4.0" || PC_REQUIRES="$PC_REQUIRES, glib-2.0 >= 2.4.0, gtk+-2.0 >= 2.4.0"
24776
24777
24778
24779 else
24780 { { echo "$as_me:$LINENO: error: Cannot find glib2/gtk2/pango" >&5
24781 echo "$as_me: error: Cannot find glib2/gtk2/pango" >&2;}
24782 { (exit 1); exit 1; }; }
24783
24784 fi
24785
24786
24787
24788
24789 succeeded=no
24790
24791 if test -z "$PKG_CONFIG"; then
24792 # Extract the first word of "pkg-config", so it can be a program name with args.
24793 set dummy pkg-config; ac_word=$2
24794 echo "$as_me:$LINENO: checking for $ac_word" >&5
24795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24798 else
24799 case $PKG_CONFIG in
24800 [\\/]* | ?:[\\/]*)
24801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24802 ;;
24803 *)
24804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24805 for as_dir in $PATH
24806 do
24807 IFS=$as_save_IFS
24808 test -z "$as_dir" && as_dir=.
24809 for ac_exec_ext in '' $ac_executable_extensions; do
24810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24813 break 2
24814 fi
24815 done
24816 done
24817
24818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24819 ;;
24820 esac
24821 fi
24822 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24823
24824 if test -n "$PKG_CONFIG"; then
24825 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24826 echo "${ECHO_T}$PKG_CONFIG" >&6
24827 else
24828 echo "$as_me:$LINENO: result: no" >&5
24829 echo "${ECHO_T}no" >&6
24830 fi
24831
24832 fi
24833
24834 if test "$PKG_CONFIG" = "no" ; then
24835 echo "*** The pkg-config script could not be found. Make sure it is"
24836 echo "*** in your path, or set the PKG_CONFIG environment variable"
24837 echo "*** to the full path to pkg-config."
24838 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24839 else
24840 PKG_CONFIG_MIN_VERSION=0.9.0
24841 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24842 echo "$as_me:$LINENO: checking for libglade-2.0 >= 2.3.1" >&5
24843 echo $ECHO_N "checking for libglade-2.0 >= 2.3.1... $ECHO_C" >&6
24844
24845 if $PKG_CONFIG --exists "libglade-2.0 >= 2.3.1" ; then
24846 echo "$as_me:$LINENO: result: yes" >&5
24847 echo "${ECHO_T}yes" >&6
24848 succeeded=yes
24849
24850 echo "$as_me:$LINENO: checking LIBGLADE_CFLAGS" >&5
24851 echo $ECHO_N "checking LIBGLADE_CFLAGS... $ECHO_C" >&6
24852 LIBGLADE_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0 >= 2.3.1"`
24853 echo "$as_me:$LINENO: result: $LIBGLADE_CFLAGS" >&5
24854 echo "${ECHO_T}$LIBGLADE_CFLAGS" >&6
24855
24856 echo "$as_me:$LINENO: checking LIBGLADE_LIBS" >&5
24857 echo $ECHO_N "checking LIBGLADE_LIBS... $ECHO_C" >&6
24858 LIBGLADE_LIBS=`$PKG_CONFIG --libs "libglade-2.0 >= 2.3.1"`
24859 echo "$as_me:$LINENO: result: $LIBGLADE_LIBS" >&5
24860 echo "${ECHO_T}$LIBGLADE_LIBS" >&6
24861 else
24862 LIBGLADE_CFLAGS=""
24863 LIBGLADE_LIBS=""
24864 ## If we have a custom action on failure, don't print errors, but
24865 ## do set a variable so people can do so.
24866 LIBGLADE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglade-2.0 >= 2.3.1"`
24867
24868 fi
24869
24870
24871
24872 else
24873 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24874 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24875 fi
24876 fi
24877
24878 if test $succeeded = yes; then
24879 :
24880 else
24881 { { echo "$as_me:$LINENO: error: Cannot find libglade" >&5
24882 echo "$as_me: error: Cannot find libglade" >&2;}
24883 { (exit 1); exit 1; }; }
24884
24885 fi
24886
24887
24888
24889
24890 # Check whether --enable-simd or --disable-simd was given.
24891 if test "${enable_simd+set}" = set; then
24892 enableval="$enable_simd"
24893 USE_SIMD=$enableval
24894 else
24895 USE_SIMD=no
24896
24897 fi;
24898
24899 if test "$USE_SIMD" = "yes"; then
24900
24901 cat >>confdefs.h <<\_ACEOF
24902 #define USE_SIMD
24903 _ACEOF
24904
24905 fi
24906
24907
24908
24909 if test "$USE_SIMD" = "yes"; then
24910 USE_SIMD_TRUE=
24911 USE_SIMD_FALSE='#'
24912 else
24913 USE_SIMD_TRUE='#'
24914 USE_SIMD_FALSE=
24915 fi
24916
24917
24918
24919
24920 # Check if socklen_t is defined
24921
24922 echo "$as_me:$LINENO: checking for socklen_t" >&5
24923 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
24924 if test "${beep_cv_type_socklen_t+set}" = set; then
24925 echo $ECHO_N "(cached) $ECHO_C" >&6
24926 else
24927 cat >conftest.$ac_ext <<_ACEOF
24928 /* confdefs.h. */
24929 _ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24933 #include <sys/types.h>
24934 #include <sys/socket.h>
24935 int
24936 main ()
24937 {
24938 socklen_t s;
24939 ;
24940 return 0;
24941 }
24942 _ACEOF
24943 rm -f conftest.$ac_objext
24944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24945 (eval $ac_compile) 2>conftest.er1
24946 ac_status=$?
24947 grep -v '^ *+' conftest.er1 >conftest.err
24948 rm -f conftest.er1
24949 cat conftest.err >&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); } &&
24952 { ac_try='test -z "$ac_c_werror_flag"
24953 || test ! -s conftest.err'
24954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955 (eval $ac_try) 2>&5
24956 ac_status=$?
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); }; } &&
24959 { ac_try='test -s conftest.$ac_objext'
24960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961 (eval $ac_try) 2>&5
24962 ac_status=$?
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); }; }; then
24965 beep_cv_type_socklen_t=yes
24966 else
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24969
24970 beep_cv_type_socklen_t=no
24971
24972 fi
24973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24974
24975
24976 fi
24977 echo "$as_me:$LINENO: result: $beep_cv_type_socklen_t" >&5
24978 echo "${ECHO_T}$beep_cv_type_socklen_t" >&6
24979
24980 if test "$beep_cv_type_socklen_t" = "no"; then
24981
24982 cat >>confdefs.h <<\_ACEOF
24983 #define socklen_t int
24984 _ACEOF
24985
24986 fi
24987
24988
24989
24990 # Check whether --enable-gconf or --disable-gconf was given.
24991 if test "${enable_gconf+set}" = set; then
24992 enableval="$enable_gconf"
24993 enable_gconf=$enableval
24994 else
24995 enable_gconf="no"
24996
24997 fi;
24998
24999 if test "$enable_gconf" = "yes"; then
25000
25001 succeeded=no
25002
25003 if test -z "$PKG_CONFIG"; then
25004 # Extract the first word of "pkg-config", so it can be a program name with args.
25005 set dummy pkg-config; ac_word=$2
25006 echo "$as_me:$LINENO: checking for $ac_word" >&5
25007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25008 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25009 echo $ECHO_N "(cached) $ECHO_C" >&6
25010 else
25011 case $PKG_CONFIG in
25012 [\\/]* | ?:[\\/]*)
25013 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25014 ;;
25015 *)
25016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25017 for as_dir in $PATH
25018 do
25019 IFS=$as_save_IFS
25020 test -z "$as_dir" && as_dir=.
25021 for ac_exec_ext in '' $ac_executable_extensions; do
25022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25023 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25025 break 2
25026 fi
25027 done
25028 done
25029
25030 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25031 ;;
25032 esac
25033 fi
25034 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25035
25036 if test -n "$PKG_CONFIG"; then
25037 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25038 echo "${ECHO_T}$PKG_CONFIG" >&6
25039 else
25040 echo "$as_me:$LINENO: result: no" >&5
25041 echo "${ECHO_T}no" >&6
25042 fi
25043
25044 fi
25045
25046 if test "$PKG_CONFIG" = "no" ; then
25047 echo "*** The pkg-config script could not be found. Make sure it is"
25048 echo "*** in your path, or set the PKG_CONFIG environment variable"
25049 echo "*** to the full path to pkg-config."
25050 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25051 else
25052 PKG_CONFIG_MIN_VERSION=0.9.0
25053 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25054 echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.6.0" >&5
25055 echo $ECHO_N "checking for gconf-2.0 >= 2.6.0... $ECHO_C" >&6
25056
25057 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
25058 echo "$as_me:$LINENO: result: yes" >&5
25059 echo "${ECHO_T}yes" >&6
25060 succeeded=yes
25061
25062 echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
25063 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
25064 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
25065 echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
25066 echo "${ECHO_T}$GCONF_CFLAGS" >&6
25067
25068 echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
25069 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
25070 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
25071 echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
25072 echo "${ECHO_T}$GCONF_LIBS" >&6
25073 else
25074 GCONF_CFLAGS=""
25075 GCONF_LIBS=""
25076 ## If we have a custom action on failure, don't print errors, but
25077 ## do set a variable so people can do so.
25078 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
25079
25080 fi
25081
25082
25083
25084 else
25085 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25086 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25087 fi
25088 fi
25089
25090 if test $succeeded = yes; then
25091
25092
25093 cat >>confdefs.h <<\_ACEOF
25094 #define HAVE_GCONF
25095 _ACEOF
25096
25097
25098 test -z "$PC_REQUIRES" && PC_REQUIRES="gconf-2.0 >= 2.6.0" || PC_REQUIRES="$PC_REQUIRES, gconf-2.0 >= 2.6.0"
25099
25100
25101
25102
25103 else
25104 { { echo "$as_me:$LINENO: error: Cannot find GConf" >&5
25105 echo "$as_me: error: Cannot find GConf" >&2;}
25106 { (exit 1); exit 1; }; }
25107
25108 fi
25109
25110 fi
25111
25112
25113
25114 if test "$enable_gconf" = "yes"; then
25115 HAVE_GCONF_TRUE=
25116 HAVE_GCONF_FALSE='#'
25117 else
25118 HAVE_GCONF_TRUE='#'
25119 HAVE_GCONF_FALSE=
25120 fi
25121
25122
25123
25124
25125 # Check whether --enable-gnome-vfs or --disable-gnome-vfs was given.
25126 if test "${enable_gnome_vfs+set}" = set; then
25127 enableval="$enable_gnome_vfs"
25128 enable_gnomevfs=$enableval
25129 else
25130 enable_gnomevfs="no"
25131
25132 fi;
25133
25134 if test "$enable_gnomevfs" = "yes"; then
25135
25136 succeeded=no
25137
25138 if test -z "$PKG_CONFIG"; then
25139 # Extract the first word of "pkg-config", so it can be a program name with args.
25140 set dummy pkg-config; ac_word=$2
25141 echo "$as_me:$LINENO: checking for $ac_word" >&5
25142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25143 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25144 echo $ECHO_N "(cached) $ECHO_C" >&6
25145 else
25146 case $PKG_CONFIG in
25147 [\\/]* | ?:[\\/]*)
25148 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25149 ;;
25150 *)
25151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25152 for as_dir in $PATH
25153 do
25154 IFS=$as_save_IFS
25155 test -z "$as_dir" && as_dir=.
25156 for ac_exec_ext in '' $ac_executable_extensions; do
25157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25158 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25160 break 2
25161 fi
25162 done
25163 done
25164
25165 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25166 ;;
25167 esac
25168 fi
25169 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25170
25171 if test -n "$PKG_CONFIG"; then
25172 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25173 echo "${ECHO_T}$PKG_CONFIG" >&6
25174 else
25175 echo "$as_me:$LINENO: result: no" >&5
25176 echo "${ECHO_T}no" >&6
25177 fi
25178
25179 fi
25180
25181 if test "$PKG_CONFIG" = "no" ; then
25182 echo "*** The pkg-config script could not be found. Make sure it is"
25183 echo "*** in your path, or set the PKG_CONFIG environment variable"
25184 echo "*** to the full path to pkg-config."
25185 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25186 else
25187 PKG_CONFIG_MIN_VERSION=0.9.0
25188 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25189 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.6.0" >&5
25190 echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.6.0... $ECHO_C" >&6
25191
25192 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.6.0" ; then
25193 echo "$as_me:$LINENO: result: yes" >&5
25194 echo "${ECHO_T}yes" >&6
25195 succeeded=yes
25196
25197 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
25198 echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
25199 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.6.0"`
25200 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
25201 echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
25202
25203 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
25204 echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
25205 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.6.0"`
25206 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
25207 echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
25208 else
25209 GNOMEVFS_CFLAGS=""
25210 GNOMEVFS_LIBS=""
25211 ## If we have a custom action on failure, don't print errors, but
25212 ## do set a variable so people can do so.
25213 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.6.0"`
25214
25215 fi
25216
25217
25218
25219 else
25220 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25221 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25222 fi
25223 fi
25224
25225 if test $succeeded = yes; then
25226
25227
25228 cat >>confdefs.h <<\_ACEOF
25229 #define HAVE_GNOME_VFS
25230 _ACEOF
25231
25232
25233 test -z "$PC_REQUIRES" && PC_REQUIRES="gnome-vfs-2.0 >= 2.6.0" || PC_REQUIRES="$PC_REQUIRES, gnome-vfs-2.0 >= 2.6.0"
25234
25235
25236
25237
25238 else
25239 { { echo "$as_me:$LINENO: error: Cannot find GnomeVFS" >&5
25240 echo "$as_me: error: Cannot find GnomeVFS" >&2;}
25241 { (exit 1); exit 1; }; }
25242
25243 fi
25244
25245 fi
25246
25247
25248
25249 if test "$enable_gnomevfs" = "yes"; then
25250 HAVE_GNOME_VFS_TRUE=
25251 HAVE_GNOME_VFS_FALSE='#'
25252 else
25253 HAVE_GNOME_VFS_TRUE='#'
25254 HAVE_GNOME_VFS_FALSE=
25255 fi
25256
25257
25258
25259
25260 # Check whether --enable-esd or --disable-esd was given.
25261 if test "${enable_esd+set}" = set; then
25262 enableval="$enable_esd"
25263 enable_esd=$enableval
25264 else
25265 enable_esd="yes"
25266
25267 fi;
25268
25269 if test "$enable_esd" = "yes"; then
25270
25271 succeeded=no
25272
25273 if test -z "$PKG_CONFIG"; then
25274 # Extract the first word of "pkg-config", so it can be a program name with args.
25275 set dummy pkg-config; ac_word=$2
25276 echo "$as_me:$LINENO: checking for $ac_word" >&5
25277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25278 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25279 echo $ECHO_N "(cached) $ECHO_C" >&6
25280 else
25281 case $PKG_CONFIG in
25282 [\\/]* | ?:[\\/]*)
25283 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25284 ;;
25285 *)
25286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25287 for as_dir in $PATH
25288 do
25289 IFS=$as_save_IFS
25290 test -z "$as_dir" && as_dir=.
25291 for ac_exec_ext in '' $ac_executable_extensions; do
25292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25293 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25295 break 2
25296 fi
25297 done
25298 done
25299
25300 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25301 ;;
25302 esac
25303 fi
25304 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25305
25306 if test -n "$PKG_CONFIG"; then
25307 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25308 echo "${ECHO_T}$PKG_CONFIG" >&6
25309 else
25310 echo "$as_me:$LINENO: result: no" >&5
25311 echo "${ECHO_T}no" >&6
25312 fi
25313
25314 fi
25315
25316 if test "$PKG_CONFIG" = "no" ; then
25317 echo "*** The pkg-config script could not be found. Make sure it is"
25318 echo "*** in your path, or set the PKG_CONFIG environment variable"
25319 echo "*** to the full path to pkg-config."
25320 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25321 else
25322 PKG_CONFIG_MIN_VERSION=0.9.0
25323 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25324 echo "$as_me:$LINENO: checking for esound >= 0.2" >&5
25325 echo $ECHO_N "checking for esound >= 0.2... $ECHO_C" >&6
25326
25327 if $PKG_CONFIG --exists "esound >= 0.2" ; then
25328 echo "$as_me:$LINENO: result: yes" >&5
25329 echo "${ECHO_T}yes" >&6
25330 succeeded=yes
25331
25332 echo "$as_me:$LINENO: checking ESD_CFLAGS" >&5
25333 echo $ECHO_N "checking ESD_CFLAGS... $ECHO_C" >&6
25334 ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2"`
25335 echo "$as_me:$LINENO: result: $ESD_CFLAGS" >&5
25336 echo "${ECHO_T}$ESD_CFLAGS" >&6
25337
25338 echo "$as_me:$LINENO: checking ESD_LIBS" >&5
25339 echo $ECHO_N "checking ESD_LIBS... $ECHO_C" >&6
25340 ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2"`
25341 echo "$as_me:$LINENO: result: $ESD_LIBS" >&5
25342 echo "${ECHO_T}$ESD_LIBS" >&6
25343 else
25344 ESD_CFLAGS=""
25345 ESD_LIBS=""
25346 ## If we have a custom action on failure, don't print errors, but
25347 ## do set a variable so people can do so.
25348 ESD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound >= 0.2"`
25349
25350 fi
25351
25352
25353
25354 else
25355 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25356 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25357 fi
25358 fi
25359
25360 if test $succeeded = yes; then
25361 have_esd=yes
25362 else
25363 have_esd=no
25364
25365 fi
25366
25367 else
25368 echo "$as_me:$LINENO: result: *** esound plugin disabled per user request ***" >&5
25369 echo "${ECHO_T}*** esound plugin disabled per user request ***" >&6
25370 have_esd=no
25371 fi
25372
25373
25374
25375 if test "$have_esd" = "yes"; then
25376 HAVE_ESD_TRUE=
25377 HAVE_ESD_FALSE='#'
25378 else
25379 HAVE_ESD_TRUE='#'
25380 HAVE_ESD_FALSE=
25381 fi
25382
25383
25384
25385
25386 # Check whether --enable-mp3 or --disable-mp3 was given.
25387 if test "${enable_mp3+set}" = set; then
25388 enableval="$enable_mp3"
25389 enable_mp3=$enableval
25390 else
25391 enable_mp3=yes
25392
25393 fi;
25394
25395
25396
25397 if test "$enable_mp3" = "yes"; then
25398 ENABLE_MPG123_TRUE=
25399 ENABLE_MPG123_FALSE='#'
25400 else
25401 ENABLE_MPG123_TRUE='#'
25402 ENABLE_MPG123_FALSE=
25403 fi
25404
25405
25406 if test "x$enable_mp3" = "xyes" ; then
25407
25408 ID3LIBS=""
25409 have_id3lib="no"
25410
25411
25412 for ac_header in id3.h
25413 do
25414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25416 echo "$as_me:$LINENO: checking for $ac_header" >&5
25417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25419 echo $ECHO_N "(cached) $ECHO_C" >&6
25420 fi
25421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25423 else
25424 # Is the header compilable?
25425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25427 cat >conftest.$ac_ext <<_ACEOF
25428 /* confdefs.h. */
25429 _ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h. */
25433 $ac_includes_default
25434 #include <$ac_header>
25435 _ACEOF
25436 rm -f conftest.$ac_objext
25437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25438 (eval $ac_compile) 2>conftest.er1
25439 ac_status=$?
25440 grep -v '^ *+' conftest.er1 >conftest.err
25441 rm -f conftest.er1
25442 cat conftest.err >&5
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); } &&
25445 { ac_try='test -z "$ac_c_werror_flag"
25446 || test ! -s conftest.err'
25447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448 (eval $ac_try) 2>&5
25449 ac_status=$?
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); }; } &&
25452 { ac_try='test -s conftest.$ac_objext'
25453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454 (eval $ac_try) 2>&5
25455 ac_status=$?
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); }; }; then
25458 ac_header_compiler=yes
25459 else
25460 echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25462
25463 ac_header_compiler=no
25464 fi
25465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25467 echo "${ECHO_T}$ac_header_compiler" >&6
25468
25469 # Is the header present?
25470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25472 cat >conftest.$ac_ext <<_ACEOF
25473 /* confdefs.h. */
25474 _ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h. */
25478 #include <$ac_header>
25479 _ACEOF
25480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25482 ac_status=$?
25483 grep -v '^ *+' conftest.er1 >conftest.err
25484 rm -f conftest.er1
25485 cat conftest.err >&5
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); } >/dev/null; then
25488 if test -s conftest.err; then
25489 ac_cpp_err=$ac_c_preproc_warn_flag
25490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25491 else
25492 ac_cpp_err=
25493 fi
25494 else
25495 ac_cpp_err=yes
25496 fi
25497 if test -z "$ac_cpp_err"; then
25498 ac_header_preproc=yes
25499 else
25500 echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25502
25503 ac_header_preproc=no
25504 fi
25505 rm -f conftest.err conftest.$ac_ext
25506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25507 echo "${ECHO_T}$ac_header_preproc" >&6
25508
25509 # So? What about this header?
25510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25511 yes:no: )
25512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25516 ac_header_preproc=yes
25517 ;;
25518 no:yes:* )
25519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25531 (
25532 cat <<\_ASBOX
25533 ## ------------------------------------ ##
25534 ## Report this to the audacious lists. ##
25535 ## ------------------------------------ ##
25536 _ASBOX
25537 ) |
25538 sed "s/^/$as_me: WARNING: /" >&2
25539 ;;
25540 esac
25541 echo "$as_me:$LINENO: checking for $ac_header" >&5
25542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546 eval "$as_ac_Header=\$ac_header_preproc"
25547 fi
25548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25550
25551 fi
25552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25553 cat >>confdefs.h <<_ACEOF
25554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25555 _ACEOF
25556
25557 echo "$as_me:$LINENO: checking for compress in -lz" >&5
25558 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
25559 if test "${ac_cv_lib_z_compress+set}" = set; then
25560 echo $ECHO_N "(cached) $ECHO_C" >&6
25561 else
25562 ac_check_lib_save_LIBS=$LIBS
25563 LIBS="-lz $LIBS"
25564 cat >conftest.$ac_ext <<_ACEOF
25565 /* confdefs.h. */
25566 _ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h. */
25570
25571 /* Override any gcc2 internal prototype to avoid an error. */
25572 #ifdef __cplusplus
25573 extern "C"
25574 #endif
25575 /* We use char because int might match the return type of a gcc2
25576 builtin and then its argument prototype would still apply. */
25577 char compress ();
25578 int
25579 main ()
25580 {
25581 compress ();
25582 ;
25583 return 0;
25584 }
25585 _ACEOF
25586 rm -f conftest.$ac_objext conftest$ac_exeext
25587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25588 (eval $ac_link) 2>conftest.er1
25589 ac_status=$?
25590 grep -v '^ *+' conftest.er1 >conftest.err
25591 rm -f conftest.er1
25592 cat conftest.err >&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); } &&
25595 { ac_try='test -z "$ac_c_werror_flag"
25596 || test ! -s conftest.err'
25597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; } &&
25602 { ac_try='test -s conftest$ac_exeext'
25603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25604 (eval $ac_try) 2>&5
25605 ac_status=$?
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); }; }; then
25608 ac_cv_lib_z_compress=yes
25609 else
25610 echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25612
25613 ac_cv_lib_z_compress=no
25614 fi
25615 rm -f conftest.err conftest.$ac_objext \
25616 conftest$ac_exeext conftest.$ac_ext
25617 LIBS=$ac_check_lib_save_LIBS
25618 fi
25619 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
25620 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
25621 if test $ac_cv_lib_z_compress = yes; then
25622 ZLIB='-lz'
25623 else
25624 ZLIB=''
25625 fi
25626
25627 echo "$as_me:$LINENO: checking for ID3Tag_New in -lid3" >&5
25628 echo $ECHO_N "checking for ID3Tag_New in -lid3... $ECHO_C" >&6
25629 if test "${ac_cv_lib_id3_ID3Tag_New+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25631 else
25632 ac_check_lib_save_LIBS=$LIBS
25633 LIBS="-lid3 -lstdc++ $ZLIB $LIBS"
25634 cat >conftest.$ac_ext <<_ACEOF
25635 /* confdefs.h. */
25636 _ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h. */
25640
25641 /* Override any gcc2 internal prototype to avoid an error. */
25642 #ifdef __cplusplus
25643 extern "C"
25644 #endif
25645 /* We use char because int might match the return type of a gcc2
25646 builtin and then its argument prototype would still apply. */
25647 char ID3Tag_New ();
25648 int
25649 main ()
25650 {
25651 ID3Tag_New ();
25652 ;
25653 return 0;
25654 }
25655 _ACEOF
25656 rm -f conftest.$ac_objext conftest$ac_exeext
25657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25658 (eval $ac_link) 2>conftest.er1
25659 ac_status=$?
25660 grep -v '^ *+' conftest.er1 >conftest.err
25661 rm -f conftest.er1
25662 cat conftest.err >&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } &&
25665 { ac_try='test -z "$ac_c_werror_flag"
25666 || test ! -s conftest.err'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668 (eval $ac_try) 2>&5
25669 ac_status=$?
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; } &&
25672 { ac_try='test -s conftest$ac_exeext'
25673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); }; }; then
25678 ac_cv_lib_id3_ID3Tag_New=yes
25679 else
25680 echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25682
25683 ac_cv_lib_id3_ID3Tag_New=no
25684 fi
25685 rm -f conftest.err conftest.$ac_objext \
25686 conftest$ac_exeext conftest.$ac_ext
25687 LIBS=$ac_check_lib_save_LIBS
25688 fi
25689 echo "$as_me:$LINENO: result: $ac_cv_lib_id3_ID3Tag_New" >&5
25690 echo "${ECHO_T}$ac_cv_lib_id3_ID3Tag_New" >&6
25691 if test $ac_cv_lib_id3_ID3Tag_New = yes; then
25692 have_id3lib=yes
25693
25694 cat >>confdefs.h <<\_ACEOF
25695 #define HAVE_ID3LIB
25696 _ACEOF
25697
25698 ID3LIBS="-lstdc++ $ZLIB -lid3"
25699 fi
25700
25701 fi
25702
25703 done
25704
25705
25706
25707
25708 fi
25709
25710 # Check whether --enable-vorbis or --disable-vorbis was given.
25711 if test "${enable_vorbis+set}" = set; then
25712 enableval="$enable_vorbis"
25713 enable_vorbis=$enableval
25714 else
25715 enable_vorbis="yes"
25716
25717 fi;
25718
25719 if test "$enable_vorbis" = "yes"; then
25720
25721 succeeded=no
25722
25723 if test -z "$PKG_CONFIG"; then
25724 # Extract the first word of "pkg-config", so it can be a program name with args.
25725 set dummy pkg-config; ac_word=$2
25726 echo "$as_me:$LINENO: checking for $ac_word" >&5
25727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25728 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25729 echo $ECHO_N "(cached) $ECHO_C" >&6
25730 else
25731 case $PKG_CONFIG in
25732 [\\/]* | ?:[\\/]*)
25733 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25734 ;;
25735 *)
25736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25737 for as_dir in $PATH
25738 do
25739 IFS=$as_save_IFS
25740 test -z "$as_dir" && as_dir=.
25741 for ac_exec_ext in '' $ac_executable_extensions; do
25742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25743 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25745 break 2
25746 fi
25747 done
25748 done
25749
25750 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25751 ;;
25752 esac
25753 fi
25754 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25755
25756 if test -n "$PKG_CONFIG"; then
25757 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25758 echo "${ECHO_T}$PKG_CONFIG" >&6
25759 else
25760 echo "$as_me:$LINENO: result: no" >&5
25761 echo "${ECHO_T}no" >&6
25762 fi
25763
25764 fi
25765
25766 if test "$PKG_CONFIG" = "no" ; then
25767 echo "*** The pkg-config script could not be found. Make sure it is"
25768 echo "*** in your path, or set the PKG_CONFIG environment variable"
25769 echo "*** to the full path to pkg-config."
25770 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25771 else
25772 PKG_CONFIG_MIN_VERSION=0.9.0
25773 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25774 echo "$as_me:$LINENO: checking for ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0" >&5
25775 echo $ECHO_N "checking for ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0... $ECHO_C" >&6
25776
25777 if $PKG_CONFIG --exists "ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0" ; then
25778 echo "$as_me:$LINENO: result: yes" >&5
25779 echo "${ECHO_T}yes" >&6
25780 succeeded=yes
25781
25782 echo "$as_me:$LINENO: checking OGG_VORBIS_CFLAGS" >&5
25783 echo $ECHO_N "checking OGG_VORBIS_CFLAGS... $ECHO_C" >&6
25784 OGG_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0"`
25785 echo "$as_me:$LINENO: result: $OGG_VORBIS_CFLAGS" >&5
25786 echo "${ECHO_T}$OGG_VORBIS_CFLAGS" >&6
25787
25788 echo "$as_me:$LINENO: checking OGG_VORBIS_LIBS" >&5
25789 echo $ECHO_N "checking OGG_VORBIS_LIBS... $ECHO_C" >&6
25790 OGG_VORBIS_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0"`
25791 echo "$as_me:$LINENO: result: $OGG_VORBIS_LIBS" >&5
25792 echo "${ECHO_T}$OGG_VORBIS_LIBS" >&6
25793 else
25794 OGG_VORBIS_CFLAGS=""
25795 OGG_VORBIS_LIBS=""
25796 ## If we have a custom action on failure, don't print errors, but
25797 ## do set a variable so people can do so.
25798 OGG_VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0"`
25799
25800 fi
25801
25802
25803
25804 else
25805 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25806 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25807 fi
25808 fi
25809
25810 if test $succeeded = yes; then
25811 have_oggvorbis=yes
25812 else
25813 { { echo "$as_me:$LINENO: error: Cannot find libogg/libvorbis" >&5
25814 echo "$as_me: error: Cannot find libogg/libvorbis" >&2;}
25815 { (exit 1); exit 1; }; }
25816 have_oggvorbis=no
25817
25818 fi
25819
25820 else
25821 echo "$as_me:$LINENO: result: *** Ogg Vorbis plugin disabled per user request ***" >&5
25822 echo "${ECHO_T}*** Ogg Vorbis plugin disabled per user request ***" >&6
25823 have_oggvorbis=no
25824 fi
25825
25826
25827
25828 if test "$have_oggvorbis" = "yes"; then
25829 HAVE_OGGVORBIS_TRUE=
25830 HAVE_OGGVORBIS_FALSE='#'
25831 else
25832 HAVE_OGGVORBIS_TRUE='#'
25833 HAVE_OGGVORBIS_FALSE=
25834 fi
25835
25836
25837
25838
25839 # Check whether --enable-oss or --disable-oss was given.
25840 if test "${enable_oss+set}" = set; then
25841 enableval="$enable_oss"
25842 have_oss=$enableval
25843 else
25844 have_oss=yes
25845
25846 fi;
25847
25848 if test "$have_oss" = "yes"; then
25849 echo "$as_me:$LINENO: checking for OSS include dir" >&5
25850 echo $ECHO_N "checking for OSS include dir... $ECHO_C" >&6
25851 OSS_CFLAGS=""
25852 if test -f "/etc/oss.conf" ; then
25853 for i in `cat /etc/oss.conf`; do
25854 t=`echo $i | sed -e 's/OSSLIBDIR=//'`
25855 if test "$i" != "$t" ; then
25856 if test -f "$t/include/sys/soundcard.h" ; then
25857 OSS_CFLAGS="-I$t/include"
25858 fi
25859 fi
25860 done
25861 fi
25862 if test -n "$OSS_CFLAGS" ; then
25863 echo "$as_me:$LINENO: result: $OSS_CFLAGS" >&5
25864 echo "${ECHO_T}$OSS_CFLAGS" >&6
25865 else
25866 echo "$as_me:$LINENO: result: not found" >&5
25867 echo "${ECHO_T}not found" >&6
25868 fi
25869 CFLAGS_save=$CFLAGS
25870 CFLAGS="$CFLAGS $OSS_CFLAGS"
25871
25872 for ac_header in sys/soundcard.h
25873 do
25874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25876 echo "$as_me:$LINENO: checking for $ac_header" >&5
25877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25879 echo $ECHO_N "(cached) $ECHO_C" >&6
25880 fi
25881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25883 else
25884 # Is the header compilable?
25885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25887 cat >conftest.$ac_ext <<_ACEOF
25888 /* confdefs.h. */
25889 _ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25893 $ac_includes_default
25894 #include <$ac_header>
25895 _ACEOF
25896 rm -f conftest.$ac_objext
25897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25898 (eval $ac_compile) 2>conftest.er1
25899 ac_status=$?
25900 grep -v '^ *+' conftest.er1 >conftest.err
25901 rm -f conftest.er1
25902 cat conftest.err >&5
25903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904 (exit $ac_status); } &&
25905 { ac_try='test -z "$ac_c_werror_flag"
25906 || test ! -s conftest.err'
25907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25908 (eval $ac_try) 2>&5
25909 ac_status=$?
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); }; } &&
25912 { ac_try='test -s conftest.$ac_objext'
25913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914 (eval $ac_try) 2>&5
25915 ac_status=$?
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); }; }; then
25918 ac_header_compiler=yes
25919 else
25920 echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25922
25923 ac_header_compiler=no
25924 fi
25925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25927 echo "${ECHO_T}$ac_header_compiler" >&6
25928
25929 # Is the header present?
25930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25932 cat >conftest.$ac_ext <<_ACEOF
25933 /* confdefs.h. */
25934 _ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h. */
25938 #include <$ac_header>
25939 _ACEOF
25940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25942 ac_status=$?
25943 grep -v '^ *+' conftest.er1 >conftest.err
25944 rm -f conftest.er1
25945 cat conftest.err >&5
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } >/dev/null; then
25948 if test -s conftest.err; then
25949 ac_cpp_err=$ac_c_preproc_warn_flag
25950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25951 else
25952 ac_cpp_err=
25953 fi
25954 else
25955 ac_cpp_err=yes
25956 fi
25957 if test -z "$ac_cpp_err"; then
25958 ac_header_preproc=yes
25959 else
25960 echo "$as_me: failed program was:" >&5
25961 sed 's/^/| /' conftest.$ac_ext >&5
25962
25963 ac_header_preproc=no
25964 fi
25965 rm -f conftest.err conftest.$ac_ext
25966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25967 echo "${ECHO_T}$ac_header_preproc" >&6
25968
25969 # So? What about this header?
25970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25971 yes:no: )
25972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25976 ac_header_preproc=yes
25977 ;;
25978 no:yes:* )
25979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25991 (
25992 cat <<\_ASBOX
25993 ## ------------------------------------ ##
25994 ## Report this to the audacious lists. ##
25995 ## ------------------------------------ ##
25996 _ASBOX
25997 ) |
25998 sed "s/^/$as_me: WARNING: /" >&2
25999 ;;
26000 esac
26001 echo "$as_me:$LINENO: checking for $ac_header" >&5
26002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26004 echo $ECHO_N "(cached) $ECHO_C" >&6
26005 else
26006 eval "$as_ac_Header=\$ac_header_preproc"
26007 fi
26008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26010
26011 fi
26012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26013 cat >>confdefs.h <<_ACEOF
26014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26015 _ACEOF
26016
26017 fi
26018
26019 done
26020
26021
26022 for ac_header in machine/soundcard.h
26023 do
26024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26026 echo "$as_me:$LINENO: checking for $ac_header" >&5
26027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26029 echo $ECHO_N "(cached) $ECHO_C" >&6
26030 fi
26031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26033 else
26034 # Is the header compilable?
26035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26037 cat >conftest.$ac_ext <<_ACEOF
26038 /* confdefs.h. */
26039 _ACEOF
26040 cat confdefs.h >>conftest.$ac_ext
26041 cat >>conftest.$ac_ext <<_ACEOF
26042 /* end confdefs.h. */
26043 $ac_includes_default
26044 #include <$ac_header>
26045 _ACEOF
26046 rm -f conftest.$ac_objext
26047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26048 (eval $ac_compile) 2>conftest.er1
26049 ac_status=$?
26050 grep -v '^ *+' conftest.er1 >conftest.err
26051 rm -f conftest.er1
26052 cat conftest.err >&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } &&
26055 { ac_try='test -z "$ac_c_werror_flag"
26056 || test ! -s conftest.err'
26057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26058 (eval $ac_try) 2>&5
26059 ac_status=$?
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); }; } &&
26062 { ac_try='test -s conftest.$ac_objext'
26063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26065 ac_status=$?
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; }; then
26068 ac_header_compiler=yes
26069 else
26070 echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26072
26073 ac_header_compiler=no
26074 fi
26075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26077 echo "${ECHO_T}$ac_header_compiler" >&6
26078
26079 # Is the header present?
26080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26082 cat >conftest.$ac_ext <<_ACEOF
26083 /* confdefs.h. */
26084 _ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h. */
26088 #include <$ac_header>
26089 _ACEOF
26090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26092 ac_status=$?
26093 grep -v '^ *+' conftest.er1 >conftest.err
26094 rm -f conftest.er1
26095 cat conftest.err >&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); } >/dev/null; then
26098 if test -s conftest.err; then
26099 ac_cpp_err=$ac_c_preproc_warn_flag
26100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26101 else
26102 ac_cpp_err=
26103 fi
26104 else
26105 ac_cpp_err=yes
26106 fi
26107 if test -z "$ac_cpp_err"; then
26108 ac_header_preproc=yes
26109 else
26110 echo "$as_me: failed program was:" >&5
26111 sed 's/^/| /' conftest.$ac_ext >&5
26112
26113 ac_header_preproc=no
26114 fi
26115 rm -f conftest.err conftest.$ac_ext
26116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26117 echo "${ECHO_T}$ac_header_preproc" >&6
26118
26119 # So? What about this header?
26120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26121 yes:no: )
26122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26126 ac_header_preproc=yes
26127 ;;
26128 no:yes:* )
26129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26141 (
26142 cat <<\_ASBOX
26143 ## ------------------------------------ ##
26144 ## Report this to the audacious lists. ##
26145 ## ------------------------------------ ##
26146 _ASBOX
26147 ) |
26148 sed "s/^/$as_me: WARNING: /" >&2
26149 ;;
26150 esac
26151 echo "$as_me:$LINENO: checking for $ac_header" >&5
26152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26154 echo $ECHO_N "(cached) $ECHO_C" >&6
26155 else
26156 eval "$as_ac_Header=\$ac_header_preproc"
26157 fi
26158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26160
26161 fi
26162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26163 cat >>confdefs.h <<_ACEOF
26164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26165 _ACEOF
26166
26167 fi
26168
26169 done
26170
26171 CFLAGS=$CFLAGS_save
26172
26173 if test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
26174 have_oss=yes
26175 fi
26176 fi
26177
26178 if test "$have_oss" = "yes"; then
26179
26180 cat >>confdefs.h <<\_ACEOF
26181 #define HAVE_OSS 1
26182 _ACEOF
26183
26184 else
26185 have_oss=no
26186 fi
26187
26188
26189
26190 if test "$have_oss" = "yes"; then
26191 HAVE_OSS_TRUE=
26192 HAVE_OSS_FALSE='#'
26193 else
26194 HAVE_OSS_TRUE='#'
26195 HAVE_OSS_FALSE=
26196 fi
26197
26198
26199
26200
26201 # Check whether --enable-alsa or --disable-alsa was given.
26202 if test "${enable_alsa+set}" = set; then
26203 enableval="$enable_alsa"
26204 enable_alsa=$enableval
26205 else
26206 enable_alsa=yes
26207
26208 fi;
26209
26210 if test "$enable_alsa" = "yes"; then
26211
26212 succeeded=no
26213
26214 if test -z "$PKG_CONFIG"; then
26215 # Extract the first word of "pkg-config", so it can be a program name with args.
26216 set dummy pkg-config; ac_word=$2
26217 echo "$as_me:$LINENO: checking for $ac_word" >&5
26218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26219 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26220 echo $ECHO_N "(cached) $ECHO_C" >&6
26221 else
26222 case $PKG_CONFIG in
26223 [\\/]* | ?:[\\/]*)
26224 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26225 ;;
26226 *)
26227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26228 for as_dir in $PATH
26229 do
26230 IFS=$as_save_IFS
26231 test -z "$as_dir" && as_dir=.
26232 for ac_exec_ext in '' $ac_executable_extensions; do
26233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26234 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26236 break 2
26237 fi
26238 done
26239 done
26240
26241 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26242 ;;
26243 esac
26244 fi
26245 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26246
26247 if test -n "$PKG_CONFIG"; then
26248 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26249 echo "${ECHO_T}$PKG_CONFIG" >&6
26250 else
26251 echo "$as_me:$LINENO: result: no" >&5
26252 echo "${ECHO_T}no" >&6
26253 fi
26254
26255 fi
26256
26257 if test "$PKG_CONFIG" = "no" ; then
26258 echo "*** The pkg-config script could not be found. Make sure it is"
26259 echo "*** in your path, or set the PKG_CONFIG environment variable"
26260 echo "*** to the full path to pkg-config."
26261 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26262 else
26263 PKG_CONFIG_MIN_VERSION=0.9.0
26264 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26265 echo "$as_me:$LINENO: checking for alsa >= 1.0" >&5
26266 echo $ECHO_N "checking for alsa >= 1.0... $ECHO_C" >&6
26267
26268 if $PKG_CONFIG --exists "alsa >= 1.0" ; then
26269 echo "$as_me:$LINENO: result: yes" >&5
26270 echo "${ECHO_T}yes" >&6
26271 succeeded=yes
26272
26273 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
26274 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
26275 ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 1.0"`
26276 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
26277 echo "${ECHO_T}$ALSA_CFLAGS" >&6
26278
26279 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
26280 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
26281 ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 1.0"`
26282 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
26283 echo "${ECHO_T}$ALSA_LIBS" >&6
26284 else
26285 ALSA_CFLAGS=""
26286 ALSA_LIBS=""
26287 ## If we have a custom action on failure, don't print errors, but
26288 ## do set a variable so people can do so.
26289 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 1.0"`
26290
26291 fi
26292
26293
26294
26295 else
26296 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26297 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26298 fi
26299 fi
26300
26301 if test $succeeded = yes; then
26302 have_alsa=yes
26303 else
26304 have_alsa=no
26305
26306 fi
26307
26308 else
26309 echo "$as_me:$LINENO: result: *** ALSA output plugin disabled per user request ***" >&5
26310 echo "${ECHO_T}*** ALSA output plugin disabled per user request ***" >&6
26311 have_alsa=no
26312 fi
26313
26314
26315
26316 if test "$have_alsa" = "yes"; then
26317 HAVE_ALSA_TRUE=
26318 HAVE_ALSA_FALSE='#'
26319 else
26320 HAVE_ALSA_TRUE='#'
26321 HAVE_ALSA_FALSE=
26322 fi
26323
26324
26325
26326
26327 echo "$as_me:$LINENO: checking for FreeBSD newpcm driver" >&5
26328 echo $ECHO_N "checking for FreeBSD newpcm driver... $ECHO_C" >&6
26329 if test "${beep_cv_newpcm_driver+set}" = set; then
26330 echo $ECHO_N "(cached) $ECHO_C" >&6
26331 else
26332 if test -r "/dev/sndstat"; then
26333 grep 'newpcm' /dev/sndstat 2>/dev/null 1>/dev/null
26334 if test "x$?" = "x0"; then
26335 beep_cv_newpcm_driver="yes"
26336 else
26337 beep_cv_newpcm_driver="no"
26338 fi
26339 else
26340 beep_cv_newpcm_driver="no"
26341 fi
26342
26343 fi
26344 echo "$as_me:$LINENO: result: $beep_cv_newpcm_driver" >&5
26345 echo "${ECHO_T}$beep_cv_newpcm_driver" >&6
26346
26347 if test "$beep_cv_newpcm_driver" = "yes"; then
26348
26349 cat >>confdefs.h <<\_ACEOF
26350 #define HAVE_NEWPCM 1
26351 _ACEOF
26352
26353 fi
26354
26355
26356
26357 for ac_header in linux/cdrom.h
26358 do
26359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26361 echo "$as_me:$LINENO: checking for $ac_header" >&5
26362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26364 echo $ECHO_N "(cached) $ECHO_C" >&6
26365 fi
26366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26368 else
26369 # Is the header compilable?
26370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26372 cat >conftest.$ac_ext <<_ACEOF
26373 /* confdefs.h. */
26374 _ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h. */
26378 $ac_includes_default
26379 #include <$ac_header>
26380 _ACEOF
26381 rm -f conftest.$ac_objext
26382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26383 (eval $ac_compile) 2>conftest.er1
26384 ac_status=$?
26385 grep -v '^ *+' conftest.er1 >conftest.err
26386 rm -f conftest.er1
26387 cat conftest.err >&5
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); } &&
26390 { ac_try='test -z "$ac_c_werror_flag"
26391 || test ! -s conftest.err'
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; } &&
26397 { ac_try='test -s conftest.$ac_objext'
26398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26399 (eval $ac_try) 2>&5
26400 ac_status=$?
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); }; }; then
26403 ac_header_compiler=yes
26404 else
26405 echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26407
26408 ac_header_compiler=no
26409 fi
26410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26412 echo "${ECHO_T}$ac_header_compiler" >&6
26413
26414 # Is the header present?
26415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26417 cat >conftest.$ac_ext <<_ACEOF
26418 /* confdefs.h. */
26419 _ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h. */
26423 #include <$ac_header>
26424 _ACEOF
26425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26427 ac_status=$?
26428 grep -v '^ *+' conftest.er1 >conftest.err
26429 rm -f conftest.er1
26430 cat conftest.err >&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } >/dev/null; then
26433 if test -s conftest.err; then
26434 ac_cpp_err=$ac_c_preproc_warn_flag
26435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26436 else
26437 ac_cpp_err=
26438 fi
26439 else
26440 ac_cpp_err=yes
26441 fi
26442 if test -z "$ac_cpp_err"; then
26443 ac_header_preproc=yes
26444 else
26445 echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26447
26448 ac_header_preproc=no
26449 fi
26450 rm -f conftest.err conftest.$ac_ext
26451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26452 echo "${ECHO_T}$ac_header_preproc" >&6
26453
26454 # So? What about this header?
26455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26456 yes:no: )
26457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26461 ac_header_preproc=yes
26462 ;;
26463 no:yes:* )
26464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26476 (
26477 cat <<\_ASBOX
26478 ## ------------------------------------ ##
26479 ## Report this to the audacious lists. ##
26480 ## ------------------------------------ ##
26481 _ASBOX
26482 ) |
26483 sed "s/^/$as_me: WARNING: /" >&2
26484 ;;
26485 esac
26486 echo "$as_me:$LINENO: checking for $ac_header" >&5
26487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26489 echo $ECHO_N "(cached) $ECHO_C" >&6
26490 else
26491 eval "$as_ac_Header=\$ac_header_preproc"
26492 fi
26493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26495
26496 fi
26497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26498 cat >>confdefs.h <<_ACEOF
26499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26500 _ACEOF
26501
26502 fi
26503
26504 done
26505
26506
26507 for ac_header in sys/cdio.h
26508 do
26509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26511 echo "$as_me:$LINENO: checking for $ac_header" >&5
26512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26514 echo $ECHO_N "(cached) $ECHO_C" >&6
26515 fi
26516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26518 else
26519 # Is the header compilable?
26520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26522 cat >conftest.$ac_ext <<_ACEOF
26523 /* confdefs.h. */
26524 _ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h. */
26528 $ac_includes_default
26529 #include <$ac_header>
26530 _ACEOF
26531 rm -f conftest.$ac_objext
26532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26533 (eval $ac_compile) 2>conftest.er1
26534 ac_status=$?
26535 grep -v '^ *+' conftest.er1 >conftest.err
26536 rm -f conftest.er1
26537 cat conftest.err >&5
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } &&
26540 { ac_try='test -z "$ac_c_werror_flag"
26541 || test ! -s conftest.err'
26542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543 (eval $ac_try) 2>&5
26544 ac_status=$?
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; } &&
26547 { ac_try='test -s conftest.$ac_objext'
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26550 ac_status=$?
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; }; then
26553 ac_header_compiler=yes
26554 else
26555 echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26557
26558 ac_header_compiler=no
26559 fi
26560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26562 echo "${ECHO_T}$ac_header_compiler" >&6
26563
26564 # Is the header present?
26565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26567 cat >conftest.$ac_ext <<_ACEOF
26568 /* confdefs.h. */
26569 _ACEOF
26570 cat confdefs.h >>conftest.$ac_ext
26571 cat >>conftest.$ac_ext <<_ACEOF
26572 /* end confdefs.h. */
26573 #include <$ac_header>
26574 _ACEOF
26575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26577 ac_status=$?
26578 grep -v '^ *+' conftest.er1 >conftest.err
26579 rm -f conftest.er1
26580 cat conftest.err >&5
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } >/dev/null; then
26583 if test -s conftest.err; then
26584 ac_cpp_err=$ac_c_preproc_warn_flag
26585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26586 else
26587 ac_cpp_err=
26588 fi
26589 else
26590 ac_cpp_err=yes
26591 fi
26592 if test -z "$ac_cpp_err"; then
26593 ac_header_preproc=yes
26594 else
26595 echo "$as_me: failed program was:" >&5
26596 sed 's/^/| /' conftest.$ac_ext >&5
26597
26598 ac_header_preproc=no
26599 fi
26600 rm -f conftest.err conftest.$ac_ext
26601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26602 echo "${ECHO_T}$ac_header_preproc" >&6
26603
26604 # So? What about this header?
26605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26606 yes:no: )
26607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26611 ac_header_preproc=yes
26612 ;;
26613 no:yes:* )
26614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26626 (
26627 cat <<\_ASBOX
26628 ## ------------------------------------ ##
26629 ## Report this to the audacious lists. ##
26630 ## ------------------------------------ ##
26631 _ASBOX
26632 ) |
26633 sed "s/^/$as_me: WARNING: /" >&2
26634 ;;
26635 esac
26636 echo "$as_me:$LINENO: checking for $ac_header" >&5
26637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26639 echo $ECHO_N "(cached) $ECHO_C" >&6
26640 else
26641 eval "$as_ac_Header=\$ac_header_preproc"
26642 fi
26643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26645
26646 fi
26647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26648 cat >>confdefs.h <<_ACEOF
26649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26650 _ACEOF
26651
26652 fi
26653
26654 done
26655
26656
26657 for ac_header in linux/joystick.h
26658 do
26659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26661 echo "$as_me:$LINENO: checking for $ac_header" >&5
26662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26664 echo $ECHO_N "(cached) $ECHO_C" >&6
26665 fi
26666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26668 else
26669 # Is the header compilable?
26670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26672 cat >conftest.$ac_ext <<_ACEOF
26673 /* confdefs.h. */
26674 _ACEOF
26675 cat confdefs.h >>conftest.$ac_ext
26676 cat >>conftest.$ac_ext <<_ACEOF
26677 /* end confdefs.h. */
26678 $ac_includes_default
26679 #include <$ac_header>
26680 _ACEOF
26681 rm -f conftest.$ac_objext
26682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26683 (eval $ac_compile) 2>conftest.er1
26684 ac_status=$?
26685 grep -v '^ *+' conftest.er1 >conftest.err
26686 rm -f conftest.er1
26687 cat conftest.err >&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); } &&
26690 { ac_try='test -z "$ac_c_werror_flag"
26691 || test ! -s conftest.err'
26692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693 (eval $ac_try) 2>&5
26694 ac_status=$?
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); }; } &&
26697 { ac_try='test -s conftest.$ac_objext'
26698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699 (eval $ac_try) 2>&5
26700 ac_status=$?
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); }; }; then
26703 ac_header_compiler=yes
26704 else
26705 echo "$as_me: failed program was:" >&5
26706 sed 's/^/| /' conftest.$ac_ext >&5
26707
26708 ac_header_compiler=no
26709 fi
26710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26712 echo "${ECHO_T}$ac_header_compiler" >&6
26713
26714 # Is the header present?
26715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26717 cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h. */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h. */
26723 #include <$ac_header>
26724 _ACEOF
26725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26727 ac_status=$?
26728 grep -v '^ *+' conftest.er1 >conftest.err
26729 rm -f conftest.er1
26730 cat conftest.err >&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } >/dev/null; then
26733 if test -s conftest.err; then
26734 ac_cpp_err=$ac_c_preproc_warn_flag
26735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26736 else
26737 ac_cpp_err=
26738 fi
26739 else
26740 ac_cpp_err=yes
26741 fi
26742 if test -z "$ac_cpp_err"; then
26743 ac_header_preproc=yes
26744 else
26745 echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26747
26748 ac_header_preproc=no
26749 fi
26750 rm -f conftest.err conftest.$ac_ext
26751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26752 echo "${ECHO_T}$ac_header_preproc" >&6
26753
26754 # So? What about this header?
26755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26756 yes:no: )
26757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26761 ac_header_preproc=yes
26762 ;;
26763 no:yes:* )
26764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26776 (
26777 cat <<\_ASBOX
26778 ## ------------------------------------ ##
26779 ## Report this to the audacious lists. ##
26780 ## ------------------------------------ ##
26781 _ASBOX
26782 ) |
26783 sed "s/^/$as_me: WARNING: /" >&2
26784 ;;
26785 esac
26786 echo "$as_me:$LINENO: checking for $ac_header" >&5
26787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26790 else
26791 eval "$as_ac_Header=\$ac_header_preproc"
26792 fi
26793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26795
26796 fi
26797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26798 cat >>confdefs.h <<_ACEOF
26799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26800 _ACEOF
26801
26802 fi
26803
26804 done
26805
26806
26807 for ac_header in unistd.h
26808 do
26809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26811 echo "$as_me:$LINENO: checking for $ac_header" >&5
26812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26814 echo $ECHO_N "(cached) $ECHO_C" >&6
26815 fi
26816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26818 else
26819 # Is the header compilable?
26820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26822 cat >conftest.$ac_ext <<_ACEOF
26823 /* confdefs.h. */
26824 _ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h. */
26828 $ac_includes_default
26829 #include <$ac_header>
26830 _ACEOF
26831 rm -f conftest.$ac_objext
26832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26833 (eval $ac_compile) 2>conftest.er1
26834 ac_status=$?
26835 grep -v '^ *+' conftest.er1 >conftest.err
26836 rm -f conftest.er1
26837 cat conftest.err >&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); } &&
26840 { ac_try='test -z "$ac_c_werror_flag"
26841 || test ! -s conftest.err'
26842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26843 (eval $ac_try) 2>&5
26844 ac_status=$?
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); }; } &&
26847 { ac_try='test -s conftest.$ac_objext'
26848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849 (eval $ac_try) 2>&5
26850 ac_status=$?
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); }; }; then
26853 ac_header_compiler=yes
26854 else
26855 echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26857
26858 ac_header_compiler=no
26859 fi
26860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26862 echo "${ECHO_T}$ac_header_compiler" >&6
26863
26864 # Is the header present?
26865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26867 cat >conftest.$ac_ext <<_ACEOF
26868 /* confdefs.h. */
26869 _ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h. */
26873 #include <$ac_header>
26874 _ACEOF
26875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26877 ac_status=$?
26878 grep -v '^ *+' conftest.er1 >conftest.err
26879 rm -f conftest.er1
26880 cat conftest.err >&5
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); } >/dev/null; then
26883 if test -s conftest.err; then
26884 ac_cpp_err=$ac_c_preproc_warn_flag
26885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26886 else
26887 ac_cpp_err=
26888 fi
26889 else
26890 ac_cpp_err=yes
26891 fi
26892 if test -z "$ac_cpp_err"; then
26893 ac_header_preproc=yes
26894 else
26895 echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26897
26898 ac_header_preproc=no
26899 fi
26900 rm -f conftest.err conftest.$ac_ext
26901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26902 echo "${ECHO_T}$ac_header_preproc" >&6
26903
26904 # So? What about this header?
26905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26906 yes:no: )
26907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26911 ac_header_preproc=yes
26912 ;;
26913 no:yes:* )
26914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26926 (
26927 cat <<\_ASBOX
26928 ## ------------------------------------ ##
26929 ## Report this to the audacious lists. ##
26930 ## ------------------------------------ ##
26931 _ASBOX
26932 ) |
26933 sed "s/^/$as_me: WARNING: /" >&2
26934 ;;
26935 esac
26936 echo "$as_me:$LINENO: checking for $ac_header" >&5
26937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26939 echo $ECHO_N "(cached) $ECHO_C" >&6
26940 else
26941 eval "$as_ac_Header=\$ac_header_preproc"
26942 fi
26943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26945
26946 fi
26947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26948 cat >>confdefs.h <<_ACEOF
26949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26950 _ACEOF
26951
26952 fi
26953
26954 done
26955
26956
26957 for ac_header in fcntl.h
26958 do
26959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26961 echo "$as_me:$LINENO: checking for $ac_header" >&5
26962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26964 echo $ECHO_N "(cached) $ECHO_C" >&6
26965 fi
26966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26968 else
26969 # Is the header compilable?
26970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26972 cat >conftest.$ac_ext <<_ACEOF
26973 /* confdefs.h. */
26974 _ACEOF
26975 cat confdefs.h >>conftest.$ac_ext
26976 cat >>conftest.$ac_ext <<_ACEOF
26977 /* end confdefs.h. */
26978 $ac_includes_default
26979 #include <$ac_header>
26980 _ACEOF
26981 rm -f conftest.$ac_objext
26982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26983 (eval $ac_compile) 2>conftest.er1
26984 ac_status=$?
26985 grep -v '^ *+' conftest.er1 >conftest.err
26986 rm -f conftest.er1
26987 cat conftest.err >&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); } &&
26990 { ac_try='test -z "$ac_c_werror_flag"
26991 || test ! -s conftest.err'
26992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26993 (eval $ac_try) 2>&5
26994 ac_status=$?
26995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996 (exit $ac_status); }; } &&
26997 { ac_try='test -s conftest.$ac_objext'
26998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999 (eval $ac_try) 2>&5
27000 ac_status=$?
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; }; then
27003 ac_header_compiler=yes
27004 else
27005 echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27007
27008 ac_header_compiler=no
27009 fi
27010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27012 echo "${ECHO_T}$ac_header_compiler" >&6
27013
27014 # Is the header present?
27015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27017 cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h. */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h. */
27023 #include <$ac_header>
27024 _ACEOF
27025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27027 ac_status=$?
27028 grep -v '^ *+' conftest.er1 >conftest.err
27029 rm -f conftest.er1
27030 cat conftest.err >&5
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); } >/dev/null; then
27033 if test -s conftest.err; then
27034 ac_cpp_err=$ac_c_preproc_warn_flag
27035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27036 else
27037 ac_cpp_err=
27038 fi
27039 else
27040 ac_cpp_err=yes
27041 fi
27042 if test -z "$ac_cpp_err"; then
27043 ac_header_preproc=yes
27044 else
27045 echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27047
27048 ac_header_preproc=no
27049 fi
27050 rm -f conftest.err conftest.$ac_ext
27051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27052 echo "${ECHO_T}$ac_header_preproc" >&6
27053
27054 # So? What about this header?
27055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27056 yes:no: )
27057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27061 ac_header_preproc=yes
27062 ;;
27063 no:yes:* )
27064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27076 (
27077 cat <<\_ASBOX
27078 ## ------------------------------------ ##
27079 ## Report this to the audacious lists. ##
27080 ## ------------------------------------ ##
27081 _ASBOX
27082 ) |
27083 sed "s/^/$as_me: WARNING: /" >&2
27084 ;;
27085 esac
27086 echo "$as_me:$LINENO: checking for $ac_header" >&5
27087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27090 else
27091 eval "$as_ac_Header=\$ac_header_preproc"
27092 fi
27093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27095
27096 fi
27097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27098 cat >>confdefs.h <<_ACEOF
27099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27100 _ACEOF
27101
27102 fi
27103
27104 done
27105
27106
27107 for ac_header in sys/ioctl.h
27108 do
27109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27111 echo "$as_me:$LINENO: checking for $ac_header" >&5
27112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27114 echo $ECHO_N "(cached) $ECHO_C" >&6
27115 fi
27116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27118 else
27119 # Is the header compilable?
27120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27122 cat >conftest.$ac_ext <<_ACEOF
27123 /* confdefs.h. */
27124 _ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h. */
27128 $ac_includes_default
27129 #include <$ac_header>
27130 _ACEOF
27131 rm -f conftest.$ac_objext
27132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27133 (eval $ac_compile) 2>conftest.er1
27134 ac_status=$?
27135 grep -v '^ *+' conftest.er1 >conftest.err
27136 rm -f conftest.er1
27137 cat conftest.err >&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } &&
27140 { ac_try='test -z "$ac_c_werror_flag"
27141 || test ! -s conftest.err'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27144 ac_status=$?
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; } &&
27147 { ac_try='test -s conftest.$ac_objext'
27148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149 (eval $ac_try) 2>&5
27150 ac_status=$?
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); }; }; then
27153 ac_header_compiler=yes
27154 else
27155 echo "$as_me: failed program was:" >&5
27156 sed 's/^/| /' conftest.$ac_ext >&5
27157
27158 ac_header_compiler=no
27159 fi
27160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27162 echo "${ECHO_T}$ac_header_compiler" >&6
27163
27164 # Is the header present?
27165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27167 cat >conftest.$ac_ext <<_ACEOF
27168 /* confdefs.h. */
27169 _ACEOF
27170 cat confdefs.h >>conftest.$ac_ext
27171 cat >>conftest.$ac_ext <<_ACEOF
27172 /* end confdefs.h. */
27173 #include <$ac_header>
27174 _ACEOF
27175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27177 ac_status=$?
27178 grep -v '^ *+' conftest.er1 >conftest.err
27179 rm -f conftest.er1
27180 cat conftest.err >&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } >/dev/null; then
27183 if test -s conftest.err; then
27184 ac_cpp_err=$ac_c_preproc_warn_flag
27185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27186 else
27187 ac_cpp_err=
27188 fi
27189 else
27190 ac_cpp_err=yes
27191 fi
27192 if test -z "$ac_cpp_err"; then
27193 ac_header_preproc=yes
27194 else
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27197
27198 ac_header_preproc=no
27199 fi
27200 rm -f conftest.err conftest.$ac_ext
27201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27202 echo "${ECHO_T}$ac_header_preproc" >&6
27203
27204 # So? What about this header?
27205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27206 yes:no: )
27207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27211 ac_header_preproc=yes
27212 ;;
27213 no:yes:* )
27214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27226 (
27227 cat <<\_ASBOX
27228 ## ------------------------------------ ##
27229 ## Report this to the audacious lists. ##
27230 ## ------------------------------------ ##
27231 _ASBOX
27232 ) |
27233 sed "s/^/$as_me: WARNING: /" >&2
27234 ;;
27235 esac
27236 echo "$as_me:$LINENO: checking for $ac_header" >&5
27237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27239 echo $ECHO_N "(cached) $ECHO_C" >&6
27240 else
27241 eval "$as_ac_Header=\$ac_header_preproc"
27242 fi
27243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27245
27246 fi
27247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27248 cat >>confdefs.h <<_ACEOF
27249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27250 _ACEOF
27251
27252 fi
27253
27254 done
27255
27256
27257 for ac_header in fnmatch.h
27258 do
27259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27261 echo "$as_me:$LINENO: checking for $ac_header" >&5
27262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27264 echo $ECHO_N "(cached) $ECHO_C" >&6
27265 fi
27266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27268 else
27269 # Is the header compilable?
27270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27272 cat >conftest.$ac_ext <<_ACEOF
27273 /* confdefs.h. */
27274 _ACEOF
27275 cat confdefs.h >>conftest.$ac_ext
27276 cat >>conftest.$ac_ext <<_ACEOF
27277 /* end confdefs.h. */
27278 $ac_includes_default
27279 #include <$ac_header>
27280 _ACEOF
27281 rm -f conftest.$ac_objext
27282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27283 (eval $ac_compile) 2>conftest.er1
27284 ac_status=$?
27285 grep -v '^ *+' conftest.er1 >conftest.err
27286 rm -f conftest.er1
27287 cat conftest.err >&5
27288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289 (exit $ac_status); } &&
27290 { ac_try='test -z "$ac_c_werror_flag"
27291 || test ! -s conftest.err'
27292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27293 (eval $ac_try) 2>&5
27294 ac_status=$?
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; } &&
27297 { ac_try='test -s conftest.$ac_objext'
27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299 (eval $ac_try) 2>&5
27300 ac_status=$?
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; }; then
27303 ac_header_compiler=yes
27304 else
27305 echo "$as_me: failed program was:" >&5
27306 sed 's/^/| /' conftest.$ac_ext >&5
27307
27308 ac_header_compiler=no
27309 fi
27310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27312 echo "${ECHO_T}$ac_header_compiler" >&6
27313
27314 # Is the header present?
27315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27317 cat >conftest.$ac_ext <<_ACEOF
27318 /* confdefs.h. */
27319 _ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h. */
27323 #include <$ac_header>
27324 _ACEOF
27325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27327 ac_status=$?
27328 grep -v '^ *+' conftest.er1 >conftest.err
27329 rm -f conftest.er1
27330 cat conftest.err >&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); } >/dev/null; then
27333 if test -s conftest.err; then
27334 ac_cpp_err=$ac_c_preproc_warn_flag
27335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27336 else
27337 ac_cpp_err=
27338 fi
27339 else
27340 ac_cpp_err=yes
27341 fi
27342 if test -z "$ac_cpp_err"; then
27343 ac_header_preproc=yes
27344 else
27345 echo "$as_me: failed program was:" >&5
27346 sed 's/^/| /' conftest.$ac_ext >&5
27347
27348 ac_header_preproc=no
27349 fi
27350 rm -f conftest.err conftest.$ac_ext
27351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27352 echo "${ECHO_T}$ac_header_preproc" >&6
27353
27354 # So? What about this header?
27355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27356 yes:no: )
27357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27361 ac_header_preproc=yes
27362 ;;
27363 no:yes:* )
27364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27376 (
27377 cat <<\_ASBOX
27378 ## ------------------------------------ ##
27379 ## Report this to the audacious lists. ##
27380 ## ------------------------------------ ##
27381 _ASBOX
27382 ) |
27383 sed "s/^/$as_me: WARNING: /" >&2
27384 ;;
27385 esac
27386 echo "$as_me:$LINENO: checking for $ac_header" >&5
27387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27389 echo $ECHO_N "(cached) $ECHO_C" >&6
27390 else
27391 eval "$as_ac_Header=\$ac_header_preproc"
27392 fi
27393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27395
27396 fi
27397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27398 cat >>confdefs.h <<_ACEOF
27399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27400 _ACEOF
27401
27402 fi
27403
27404 done
27405
27406
27407 for ac_header in limits.h
27408 do
27409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27411 echo "$as_me:$LINENO: checking for $ac_header" >&5
27412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27414 echo $ECHO_N "(cached) $ECHO_C" >&6
27415 fi
27416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27418 else
27419 # Is the header compilable?
27420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27422 cat >conftest.$ac_ext <<_ACEOF
27423 /* confdefs.h. */
27424 _ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h. */
27428 $ac_includes_default
27429 #include <$ac_header>
27430 _ACEOF
27431 rm -f conftest.$ac_objext
27432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27433 (eval $ac_compile) 2>conftest.er1
27434 ac_status=$?
27435 grep -v '^ *+' conftest.er1 >conftest.err
27436 rm -f conftest.er1
27437 cat conftest.err >&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); } &&
27440 { ac_try='test -z "$ac_c_werror_flag"
27441 || test ! -s conftest.err'
27442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443 (eval $ac_try) 2>&5
27444 ac_status=$?
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); }; } &&
27447 { ac_try='test -s conftest.$ac_objext'
27448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449 (eval $ac_try) 2>&5
27450 ac_status=$?
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; }; then
27453 ac_header_compiler=yes
27454 else
27455 echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27457
27458 ac_header_compiler=no
27459 fi
27460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27462 echo "${ECHO_T}$ac_header_compiler" >&6
27463
27464 # Is the header present?
27465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27467 cat >conftest.$ac_ext <<_ACEOF
27468 /* confdefs.h. */
27469 _ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h. */
27473 #include <$ac_header>
27474 _ACEOF
27475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27477 ac_status=$?
27478 grep -v '^ *+' conftest.er1 >conftest.err
27479 rm -f conftest.er1
27480 cat conftest.err >&5
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); } >/dev/null; then
27483 if test -s conftest.err; then
27484 ac_cpp_err=$ac_c_preproc_warn_flag
27485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27486 else
27487 ac_cpp_err=
27488 fi
27489 else
27490 ac_cpp_err=yes
27491 fi
27492 if test -z "$ac_cpp_err"; then
27493 ac_header_preproc=yes
27494 else
27495 echo "$as_me: failed program was:" >&5
27496 sed 's/^/| /' conftest.$ac_ext >&5
27497
27498 ac_header_preproc=no
27499 fi
27500 rm -f conftest.err conftest.$ac_ext
27501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27502 echo "${ECHO_T}$ac_header_preproc" >&6
27503
27504 # So? What about this header?
27505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27506 yes:no: )
27507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27511 ac_header_preproc=yes
27512 ;;
27513 no:yes:* )
27514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27526 (
27527 cat <<\_ASBOX
27528 ## ------------------------------------ ##
27529 ## Report this to the audacious lists. ##
27530 ## ------------------------------------ ##
27531 _ASBOX
27532 ) |
27533 sed "s/^/$as_me: WARNING: /" >&2
27534 ;;
27535 esac
27536 echo "$as_me:$LINENO: checking for $ac_header" >&5
27537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27539 echo $ECHO_N "(cached) $ECHO_C" >&6
27540 else
27541 eval "$as_ac_Header=\$ac_header_preproc"
27542 fi
27543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27545
27546 fi
27547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27548 cat >>confdefs.h <<_ACEOF
27549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27550 _ACEOF
27551
27552 fi
27553
27554 done
27555
27556
27557 for ac_header in wchar.h
27558 do
27559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27561 echo "$as_me:$LINENO: checking for $ac_header" >&5
27562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27564 echo $ECHO_N "(cached) $ECHO_C" >&6
27565 fi
27566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27568 else
27569 # Is the header compilable?
27570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27572 cat >conftest.$ac_ext <<_ACEOF
27573 /* confdefs.h. */
27574 _ACEOF
27575 cat confdefs.h >>conftest.$ac_ext
27576 cat >>conftest.$ac_ext <<_ACEOF
27577 /* end confdefs.h. */
27578 $ac_includes_default
27579 #include <$ac_header>
27580 _ACEOF
27581 rm -f conftest.$ac_objext
27582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27583 (eval $ac_compile) 2>conftest.er1
27584 ac_status=$?
27585 grep -v '^ *+' conftest.er1 >conftest.err
27586 rm -f conftest.er1
27587 cat conftest.err >&5
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); } &&
27590 { ac_try='test -z "$ac_c_werror_flag"
27591 || test ! -s conftest.err'
27592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27593 (eval $ac_try) 2>&5
27594 ac_status=$?
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); }; } &&
27597 { ac_try='test -s conftest.$ac_objext'
27598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599 (eval $ac_try) 2>&5
27600 ac_status=$?
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); }; }; then
27603 ac_header_compiler=yes
27604 else
27605 echo "$as_me: failed program was:" >&5
27606 sed 's/^/| /' conftest.$ac_ext >&5
27607
27608 ac_header_compiler=no
27609 fi
27610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27612 echo "${ECHO_T}$ac_header_compiler" >&6
27613
27614 # Is the header present?
27615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27617 cat >conftest.$ac_ext <<_ACEOF
27618 /* confdefs.h. */
27619 _ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h. */
27623 #include <$ac_header>
27624 _ACEOF
27625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27627 ac_status=$?
27628 grep -v '^ *+' conftest.er1 >conftest.err
27629 rm -f conftest.er1
27630 cat conftest.err >&5
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); } >/dev/null; then
27633 if test -s conftest.err; then
27634 ac_cpp_err=$ac_c_preproc_warn_flag
27635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27636 else
27637 ac_cpp_err=
27638 fi
27639 else
27640 ac_cpp_err=yes
27641 fi
27642 if test -z "$ac_cpp_err"; then
27643 ac_header_preproc=yes
27644 else
27645 echo "$as_me: failed program was:" >&5
27646 sed 's/^/| /' conftest.$ac_ext >&5
27647
27648 ac_header_preproc=no
27649 fi
27650 rm -f conftest.err conftest.$ac_ext
27651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27652 echo "${ECHO_T}$ac_header_preproc" >&6
27653
27654 # So? What about this header?
27655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27656 yes:no: )
27657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27661 ac_header_preproc=yes
27662 ;;
27663 no:yes:* )
27664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27676 (
27677 cat <<\_ASBOX
27678 ## ------------------------------------ ##
27679 ## Report this to the audacious lists. ##
27680 ## ------------------------------------ ##
27681 _ASBOX
27682 ) |
27683 sed "s/^/$as_me: WARNING: /" >&2
27684 ;;
27685 esac
27686 echo "$as_me:$LINENO: checking for $ac_header" >&5
27687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27689 echo $ECHO_N "(cached) $ECHO_C" >&6
27690 else
27691 eval "$as_ac_Header=\$ac_header_preproc"
27692 fi
27693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27695
27696 fi
27697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27698 cat >>confdefs.h <<_ACEOF
27699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27700 _ACEOF
27701
27702 fi
27703
27704 done
27705
27706
27707 for ac_header in fts.h
27708 do
27709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27711 echo "$as_me:$LINENO: checking for $ac_header" >&5
27712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27714 echo $ECHO_N "(cached) $ECHO_C" >&6
27715 fi
27716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27718 else
27719 # Is the header compilable?
27720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27722 cat >conftest.$ac_ext <<_ACEOF
27723 /* confdefs.h. */
27724 _ACEOF
27725 cat confdefs.h >>conftest.$ac_ext
27726 cat >>conftest.$ac_ext <<_ACEOF
27727 /* end confdefs.h. */
27728 $ac_includes_default
27729 #include <$ac_header>
27730 _ACEOF
27731 rm -f conftest.$ac_objext
27732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27733 (eval $ac_compile) 2>conftest.er1
27734 ac_status=$?
27735 grep -v '^ *+' conftest.er1 >conftest.err
27736 rm -f conftest.er1
27737 cat conftest.err >&5
27738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739 (exit $ac_status); } &&
27740 { ac_try='test -z "$ac_c_werror_flag"
27741 || test ! -s conftest.err'
27742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27743 (eval $ac_try) 2>&5
27744 ac_status=$?
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); }; } &&
27747 { ac_try='test -s conftest.$ac_objext'
27748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749 (eval $ac_try) 2>&5
27750 ac_status=$?
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); }; }; then
27753 ac_header_compiler=yes
27754 else
27755 echo "$as_me: failed program was:" >&5
27756 sed 's/^/| /' conftest.$ac_ext >&5
27757
27758 ac_header_compiler=no
27759 fi
27760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27762 echo "${ECHO_T}$ac_header_compiler" >&6
27763
27764 # Is the header present?
27765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27767 cat >conftest.$ac_ext <<_ACEOF
27768 /* confdefs.h. */
27769 _ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h. */
27773 #include <$ac_header>
27774 _ACEOF
27775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27777 ac_status=$?
27778 grep -v '^ *+' conftest.er1 >conftest.err
27779 rm -f conftest.er1
27780 cat conftest.err >&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); } >/dev/null; then
27783 if test -s conftest.err; then
27784 ac_cpp_err=$ac_c_preproc_warn_flag
27785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27786 else
27787 ac_cpp_err=
27788 fi
27789 else
27790 ac_cpp_err=yes
27791 fi
27792 if test -z "$ac_cpp_err"; then
27793 ac_header_preproc=yes
27794 else
27795 echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27797
27798 ac_header_preproc=no
27799 fi
27800 rm -f conftest.err conftest.$ac_ext
27801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27802 echo "${ECHO_T}$ac_header_preproc" >&6
27803
27804 # So? What about this header?
27805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27806 yes:no: )
27807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27811 ac_header_preproc=yes
27812 ;;
27813 no:yes:* )
27814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27826 (
27827 cat <<\_ASBOX
27828 ## ------------------------------------ ##
27829 ## Report this to the audacious lists. ##
27830 ## ------------------------------------ ##
27831 _ASBOX
27832 ) |
27833 sed "s/^/$as_me: WARNING: /" >&2
27834 ;;
27835 esac
27836 echo "$as_me:$LINENO: checking for $ac_header" >&5
27837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27840 else
27841 eval "$as_ac_Header=\$ac_header_preproc"
27842 fi
27843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27845
27846 fi
27847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27848 cat >>confdefs.h <<_ACEOF
27849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27850 _ACEOF
27851
27852 fi
27853
27854 done
27855
27856
27857
27858 for ac_func in mkdtemp
27859 do
27860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27861 echo "$as_me:$LINENO: checking for $ac_func" >&5
27862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27863 if eval "test \"\${$as_ac_var+set}\" = set"; then
27864 echo $ECHO_N "(cached) $ECHO_C" >&6
27865 else
27866 cat >conftest.$ac_ext <<_ACEOF
27867 /* confdefs.h. */
27868 _ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h. */
27872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27874 #define $ac_func innocuous_$ac_func
27875
27876 /* System header to define __stub macros and hopefully few prototypes,
27877 which can conflict with char $ac_func (); below.
27878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27879 <limits.h> exists even on freestanding compilers. */
27880
27881 #ifdef __STDC__
27882 # include <limits.h>
27883 #else
27884 # include <assert.h>
27885 #endif
27886
27887 #undef $ac_func
27888
27889 /* Override any gcc2 internal prototype to avoid an error. */
27890 #ifdef __cplusplus
27891 extern "C"
27892 {
27893 #endif
27894 /* We use char because int might match the return type of a gcc2
27895 builtin and then its argument prototype would still apply. */
27896 char $ac_func ();
27897 /* The GNU C library defines this for functions which it implements
27898 to always fail with ENOSYS. Some functions are actually named
27899 something starting with __ and the normal name is an alias. */
27900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27901 choke me
27902 #else
27903 char (*f) () = $ac_func;
27904 #endif
27905 #ifdef __cplusplus
27906 }
27907 #endif
27908
27909 int
27910 main ()
27911 {
27912 return f != $ac_func;
27913 ;
27914 return 0;
27915 }
27916 _ACEOF
27917 rm -f conftest.$ac_objext conftest$ac_exeext
27918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27919 (eval $ac_link) 2>conftest.er1
27920 ac_status=$?
27921 grep -v '^ *+' conftest.er1 >conftest.err
27922 rm -f conftest.er1
27923 cat conftest.err >&5
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); } &&
27926 { ac_try='test -z "$ac_c_werror_flag"
27927 || test ! -s conftest.err'
27928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27929 (eval $ac_try) 2>&5
27930 ac_status=$?
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; } &&
27933 { ac_try='test -s conftest$ac_exeext'
27934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27935 (eval $ac_try) 2>&5
27936 ac_status=$?
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); }; }; then
27939 eval "$as_ac_var=yes"
27940 else
27941 echo "$as_me: failed program was:" >&5
27942 sed 's/^/| /' conftest.$ac_ext >&5
27943
27944 eval "$as_ac_var=no"
27945 fi
27946 rm -f conftest.err conftest.$ac_objext \
27947 conftest$ac_exeext conftest.$ac_ext
27948 fi
27949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27951 if test `eval echo '${'$as_ac_var'}'` = yes; then
27952 cat >>confdefs.h <<_ACEOF
27953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27954 _ACEOF
27955
27956 fi
27957 done
27958
27959
27960 for ac_func in getmntinfo
27961 do
27962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27963 echo "$as_me:$LINENO: checking for $ac_func" >&5
27964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27965 if eval "test \"\${$as_ac_var+set}\" = set"; then
27966 echo $ECHO_N "(cached) $ECHO_C" >&6
27967 else
27968 cat >conftest.$ac_ext <<_ACEOF
27969 /* confdefs.h. */
27970 _ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h. */
27974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27976 #define $ac_func innocuous_$ac_func
27977
27978 /* System header to define __stub macros and hopefully few prototypes,
27979 which can conflict with char $ac_func (); below.
27980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27981 <limits.h> exists even on freestanding compilers. */
27982
27983 #ifdef __STDC__
27984 # include <limits.h>
27985 #else
27986 # include <assert.h>
27987 #endif
27988
27989 #undef $ac_func
27990
27991 /* Override any gcc2 internal prototype to avoid an error. */
27992 #ifdef __cplusplus
27993 extern "C"
27994 {
27995 #endif
27996 /* We use char because int might match the return type of a gcc2
27997 builtin and then its argument prototype would still apply. */
27998 char $ac_func ();
27999 /* The GNU C library defines this for functions which it implements
28000 to always fail with ENOSYS. Some functions are actually named
28001 something starting with __ and the normal name is an alias. */
28002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28003 choke me
28004 #else
28005 char (*f) () = $ac_func;
28006 #endif
28007 #ifdef __cplusplus
28008 }
28009 #endif
28010
28011 int
28012 main ()
28013 {
28014 return f != $ac_func;
28015 ;
28016 return 0;
28017 }
28018 _ACEOF
28019 rm -f conftest.$ac_objext conftest$ac_exeext
28020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28021 (eval $ac_link) 2>conftest.er1
28022 ac_status=$?
28023 grep -v '^ *+' conftest.er1 >conftest.err
28024 rm -f conftest.er1
28025 cat conftest.err >&5
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); } &&
28028 { ac_try='test -z "$ac_c_werror_flag"
28029 || test ! -s conftest.err'
28030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031 (eval $ac_try) 2>&5
28032 ac_status=$?
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); }; } &&
28035 { ac_try='test -s conftest$ac_exeext'
28036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037 (eval $ac_try) 2>&5
28038 ac_status=$?
28039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 (exit $ac_status); }; }; then
28041 eval "$as_ac_var=yes"
28042 else
28043 echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28045
28046 eval "$as_ac_var=no"
28047 fi
28048 rm -f conftest.err conftest.$ac_objext \
28049 conftest$ac_exeext conftest.$ac_ext
28050 fi
28051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28053 if test `eval echo '${'$as_ac_var'}'` = yes; then
28054 cat >>confdefs.h <<_ACEOF
28055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28056 _ACEOF
28057
28058 fi
28059 done
28060
28061
28062 for ac_func in strtoul
28063 do
28064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28065 echo "$as_me:$LINENO: checking for $ac_func" >&5
28066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28067 if eval "test \"\${$as_ac_var+set}\" = set"; then
28068 echo $ECHO_N "(cached) $ECHO_C" >&6
28069 else
28070 cat >conftest.$ac_ext <<_ACEOF
28071 /* confdefs.h. */
28072 _ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h. */
28076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28078 #define $ac_func innocuous_$ac_func
28079
28080 /* System header to define __stub macros and hopefully few prototypes,
28081 which can conflict with char $ac_func (); below.
28082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28083 <limits.h> exists even on freestanding compilers. */
28084
28085 #ifdef __STDC__
28086 # include <limits.h>
28087 #else
28088 # include <assert.h>
28089 #endif
28090
28091 #undef $ac_func
28092
28093 /* Override any gcc2 internal prototype to avoid an error. */
28094 #ifdef __cplusplus
28095 extern "C"
28096 {
28097 #endif
28098 /* We use char because int might match the return type of a gcc2
28099 builtin and then its argument prototype would still apply. */
28100 char $ac_func ();
28101 /* The GNU C library defines this for functions which it implements
28102 to always fail with ENOSYS. Some functions are actually named
28103 something starting with __ and the normal name is an alias. */
28104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28105 choke me
28106 #else
28107 char (*f) () = $ac_func;
28108 #endif
28109 #ifdef __cplusplus
28110 }
28111 #endif
28112
28113 int
28114 main ()
28115 {
28116 return f != $ac_func;
28117 ;
28118 return 0;
28119 }
28120 _ACEOF
28121 rm -f conftest.$ac_objext conftest$ac_exeext
28122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28123 (eval $ac_link) 2>conftest.er1
28124 ac_status=$?
28125 grep -v '^ *+' conftest.er1 >conftest.err
28126 rm -f conftest.er1
28127 cat conftest.err >&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } &&
28130 { ac_try='test -z "$ac_c_werror_flag"
28131 || test ! -s conftest.err'
28132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28134 ac_status=$?
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; } &&
28137 { ac_try='test -s conftest$ac_exeext'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; }; then
28143 eval "$as_ac_var=yes"
28144 else
28145 echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28147
28148 eval "$as_ac_var=no"
28149 fi
28150 rm -f conftest.err conftest.$ac_objext \
28151 conftest$ac_exeext conftest.$ac_ext
28152 fi
28153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28155 if test `eval echo '${'$as_ac_var'}'` = yes; then
28156 cat >>confdefs.h <<_ACEOF
28157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28158 _ACEOF
28159
28160 fi
28161 done
28162
28163
28164
28165 if test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes"
28166 then
28167 case "$host" in
28168 *-*-sunos* | *-*-solaris* | *-*-linux*)
28169
28170 cat >>confdefs.h <<\_ACEOF
28171 #define BEEP_CDROM_SOLARIS
28172 _ACEOF
28173
28174 ;;
28175 *-*-freebsd*)
28176
28177 cat >>confdefs.h <<\_ACEOF
28178 #define BEEP_CDROM_BSD
28179 _ACEOF
28180
28181 ;;
28182 *-*-netbsd* | *-*-openbsd*)
28183
28184 cat >>confdefs.h <<\_ACEOF
28185 #define BEEP_CDROM_BSD
28186 _ACEOF
28187
28188
28189 cat >>confdefs.h <<\_ACEOF
28190 #define BEEP_CDROM_BSD_NETBSD
28191 _ACEOF
28192
28193 ;;
28194 *-*darwin*)
28195
28196 cat >>confdefs.h <<\_ACEOF
28197 #define BEEP_CDROM_BSD
28198 _ACEOF
28199
28200
28201 cat >>confdefs.h <<\_ACEOF
28202 #define BEEP_CDROM_BSD_DARWIN
28203 _ACEOF
28204
28205 ;;
28206 esac
28207 fi
28208
28209
28210
28211
28212 if test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes"; then
28213 HAVE_CDROM_TRUE=
28214 HAVE_CDROM_FALSE='#'
28215 else
28216 HAVE_CDROM_TRUE='#'
28217 HAVE_CDROM_FALSE=
28218 fi
28219
28220
28221
28222 if test "${ac_cv_header_linux_joystick_h}" = "yes"; then
28223 HAVE_LINUX_JOYSTICK_TRUE=
28224 HAVE_LINUX_JOYSTICK_FALSE='#'
28225 else
28226 HAVE_LINUX_JOYSTICK_TRUE='#'
28227 HAVE_LINUX_JOYSTICK_FALSE=
28228 fi
28229
28230
28231 if test -n "$GCC"
28232 then
28233 CFLAGS="$CFLAGS -Wall -Wpointer-arith -finline-functions -ffast-math"
28234 case "$CFLAGS" in
28235 -g*) ;;
28236 *\ -g*) ;;
28237 *) CFLAGS="$CFLAGS -fomit-frame-pointer" ;;
28238 esac
28239 case "$host" in
28240 *-*-freebsd*)
28241 ;;
28242 *)
28243 CFLAGS="$CFLAGS -funroll-all-loops"
28244 ;;
28245 esac
28246 fi
28247
28248 echo "$as_me:$LINENO: checking if __ELF__ is defined" >&5
28249 echo $ECHO_N "checking if __ELF__ is defined... $ECHO_C" >&6
28250 cat >conftest.$ac_ext <<_ACEOF
28251 /* confdefs.h. */
28252 _ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h. */
28256 #ifdef __ELF__
28257 yes
28258 #endif
28259
28260 _ACEOF
28261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28262 $EGREP "yes" >/dev/null 2>&1; then
28263 is_elf=yes
28264 else
28265 is_elf=no
28266
28267 fi
28268 rm -f conftest*
28269
28270 echo "$as_me:$LINENO: result: ${is_elf}" >&5
28271 echo "${ECHO_T}${is_elf}" >&6
28272
28273
28274 have_solaris=no
28275 have_sun=no
28276 ARCH_DEFINES=""
28277 case "$host" in
28278 *-*-openbsd* | *-*-netbsd*)
28279 have_sun=yes
28280 if test "${is_elf}" = "no"
28281 then
28282
28283 cat >>confdefs.h <<\_ACEOF
28284 #define SYMBOL_PREFIX "_"
28285 _ACEOF
28286
28287 fi
28288 ;;
28289 *-*-darwin*)
28290
28291 cat >>confdefs.h <<\_ACEOF
28292 #define SYMBOL_PREFIX "_"
28293 _ACEOF
28294
28295 ;;
28296 *-hpux-*)
28297 ARCH_DEFINES="-DHPUX"
28298 ;;
28299 *-*-solaris* | *-*-sunos*)
28300 have_solaris=yes
28301 ;;
28302 esac
28303
28304 arch_type=other
28305 x86_asm=no
28306 case "$host" in
28307 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
28308 arch_type=ix86
28309 case "$host" in
28310 *-*-netbsd* | *-*openbsd*)
28311 ;;
28312 *)
28313 ARCH_DEFINES="-DI386_ASSEM"
28314 x86_asm=yes
28315 ;;
28316 esac
28317 ;;
28318 esac
28319
28320
28321
28322
28323
28324 if test "x$arch_type" = "xix86"; then
28325 ARCH_X86_TRUE=
28326 ARCH_X86_FALSE='#'
28327 else
28328 ARCH_X86_TRUE='#'
28329 ARCH_X86_FALSE=
28330 fi
28331
28332
28333
28334 if test "x$x86_asm" = xyes; then
28335 USE_X86ASM_TRUE=
28336 USE_X86ASM_FALSE='#'
28337 else
28338 USE_X86ASM_TRUE='#'
28339 USE_X86ASM_FALSE=
28340 fi
28341
28342
28343
28344 if test "x$have_solaris" = xyes; then
28345 HAVE_SOLARIS_TRUE=
28346 HAVE_SOLARIS_FALSE='#'
28347 else
28348 HAVE_SOLARIS_TRUE='#'
28349 HAVE_SOLARIS_FALSE=
28350 fi
28351
28352
28353
28354 if test "x$have_sun" = xyes; then
28355 HAVE_SUN_TRUE=
28356 HAVE_SUN_FALSE='#'
28357 else
28358 HAVE_SUN_TRUE='#'
28359 HAVE_SUN_FALSE=
28360 fi
28361
28362
28363 plugindir=$libdir/audacious
28364
28365
28366 if test "x$enable_one_plugin_dir" = "xyes"; then
28367 pluginsubs="\\\"Plugins\\\""
28368 INPUT_PLUGIN_DIR=Plugins
28369 OUTPUT_PLUGIN_DIR=Plugins
28370 EFFECT_PLUGIN_DIR=Plugins
28371 GENERAL_PLUGIN_DIR=Plugins
28372 VISUALIZATION_PLUGIN_DIR=Plugins
28373 else
28374 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\""
28375 INPUT_PLUGIN_DIR=Input
28376 OUTPUT_PLUGIN_DIR=Output
28377 EFFECT_PLUGIN_DIR=Effect
28378 GENERAL_PLUGIN_DIR=General
28379 VISUALIZATION_PLUGIN_DIR=Visualization
28380 fi
28381
28382
28383
28384
28385
28386
28387
28388
28389 localedir=$datadir/locale
28390
28391
28392 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\""
28393 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
28394
28395 if test "$enable_user_plugin_dir" = "no"; then
28396
28397 cat >>confdefs.h <<\_ACEOF
28398 #define DISABLE_USER_PLUGIN_DIR
28399 _ACEOF
28400
28401 fi
28402
28403
28404
28405 PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex "get_.plugin_info"'
28406
28407
28408
28409
28410
28411 ac_config_files="$ac_config_files Makefile audacious.1 audacious.spec audacious.pc audacious/audacious.desktop audacious/Makefile audacious/glade/Makefile audacious/images/Makefile libaudacious/Makefile Output/Makefile Output/OSS/Makefile Output/esd/Makefile Output/alsa/Makefile Input/Makefile Input/mpg123/Makefile Input/vorbis/Makefile Input/cdaudio/Makefile Input/wav/Makefile Visualization/Makefile Visualization/blur_scope/Makefile po/Makefile.in intl/Makefile icons/Makefile skin/Makefile"
28412
28413
28414 cat >confcache <<\_ACEOF
28415 # This file is a shell script that caches the results of configure
28416 # tests run on this system so they can be shared between configure
28417 # scripts and configure runs, see configure's option --config-cache.
28418 # It is not useful on other systems. If it contains results you don't
28419 # want to keep, you may remove or edit it.
28420 #
28421 # config.status only pays attention to the cache file if you give it
28422 # the --recheck option to rerun configure.
28423 #
28424 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28426 # following values.
28427
28428 _ACEOF
28429
28430 # The following way of writing the cache mishandles newlines in values,
28431 # but we know of no workaround that is simple, portable, and efficient.
28432 # So, don't put newlines in cache variables' values.
28433 # Ultrix sh set writes to stderr and can't be redirected directly,
28434 # and sets the high bit in the cache file unless we assign to the vars.
28435 {
28436 (set) 2>&1 |
28437 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28438 *ac_space=\ *)
28439 # `set' does not quote correctly, so add quotes (double-quote
28440 # substitution turns \\\\ into \\, and sed turns \\ into \).
28441 sed -n \
28442 "s/'/'\\\\''/g;
28443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28444 ;;
28445 *)
28446 # `set' quotes correctly as required by POSIX, so do not add quotes.
28447 sed -n \
28448 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28449 ;;
28450 esac;
28451 } |
28452 sed '
28453 t clear
28454 : clear
28455 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28456 t end
28457 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28458 : end' >>confcache
28459 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28460 if test -w $cache_file; then
28461 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28462 cat confcache >$cache_file
28463 else
28464 echo "not updating unwritable cache $cache_file"
28465 fi
28466 fi
28467 rm -f confcache
28468
28469 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28470 # Let make expand exec_prefix.
28471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28472
28473 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28474 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28475 # trailing colons and then remove the whole line if VPATH becomes empty
28476 # (actually we leave an empty line to preserve line numbers).
28477 if test "x$srcdir" = x.; then
28478 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28479 s/:*\$(srcdir):*/:/;
28480 s/:*\${srcdir}:*/:/;
28481 s/:*@srcdir@:*/:/;
28482 s/^\([^=]*=[ ]*\):*/\1/;
28483 s/:*$//;
28484 s/^[^=]*=[ ]*$//;
28485 }'
28486 fi
28487
28488 DEFS=-DHAVE_CONFIG_H
28489
28490 ac_libobjs=
28491 ac_ltlibobjs=
28492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28493 # 1. Remove the extension, and $U if already installed.
28494 ac_i=`echo "$ac_i" |
28495 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28496 # 2. Add them.
28497 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28498 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28499 done
28500 LIBOBJS=$ac_libobjs
28501
28502 LTLIBOBJS=$ac_ltlibobjs
28503
28504
28505 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28506 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28507 Usually this means the macro was only invoked conditionally." >&5
28508 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28509 Usually this means the macro was only invoked conditionally." >&2;}
28510 { (exit 1); exit 1; }; }
28511 fi
28512 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28513 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28514 Usually this means the macro was only invoked conditionally." >&5
28515 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28516 Usually this means the macro was only invoked conditionally." >&2;}
28517 { (exit 1); exit 1; }; }
28518 fi
28519 if test -z "${USE_SIMD_TRUE}" && test -z "${USE_SIMD_FALSE}"; then
28520 { { echo "$as_me:$LINENO: error: conditional \"USE_SIMD\" was never defined.
28521 Usually this means the macro was only invoked conditionally." >&5
28522 echo "$as_me: error: conditional \"USE_SIMD\" was never defined.
28523 Usually this means the macro was only invoked conditionally." >&2;}
28524 { (exit 1); exit 1; }; }
28525 fi
28526 if test -z "${HAVE_GCONF_TRUE}" && test -z "${HAVE_GCONF_FALSE}"; then
28527 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GCONF\" was never defined.
28528 Usually this means the macro was only invoked conditionally." >&5
28529 echo "$as_me: error: conditional \"HAVE_GCONF\" was never defined.
28530 Usually this means the macro was only invoked conditionally." >&2;}
28531 { (exit 1); exit 1; }; }
28532 fi
28533 if test -z "${HAVE_GNOME_VFS_TRUE}" && test -z "${HAVE_GNOME_VFS_FALSE}"; then
28534 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GNOME_VFS\" was never defined.
28535 Usually this means the macro was only invoked conditionally." >&5
28536 echo "$as_me: error: conditional \"HAVE_GNOME_VFS\" was never defined.
28537 Usually this means the macro was only invoked conditionally." >&2;}
28538 { (exit 1); exit 1; }; }
28539 fi
28540 if test -z "${HAVE_ESD_TRUE}" && test -z "${HAVE_ESD_FALSE}"; then
28541 { { echo "$as_me:$LINENO: error: conditional \"HAVE_ESD\" was never defined.
28542 Usually this means the macro was only invoked conditionally." >&5
28543 echo "$as_me: error: conditional \"HAVE_ESD\" was never defined.
28544 Usually this means the macro was only invoked conditionally." >&2;}
28545 { (exit 1); exit 1; }; }
28546 fi
28547 if test -z "${ENABLE_MPG123_TRUE}" && test -z "${ENABLE_MPG123_FALSE}"; then
28548 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MPG123\" was never defined.
28549 Usually this means the macro was only invoked conditionally." >&5
28550 echo "$as_me: error: conditional \"ENABLE_MPG123\" was never defined.
28551 Usually this means the macro was only invoked conditionally." >&2;}
28552 { (exit 1); exit 1; }; }
28553 fi
28554 if test -z "${HAVE_OGGVORBIS_TRUE}" && test -z "${HAVE_OGGVORBIS_FALSE}"; then
28555 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OGGVORBIS\" was never defined.
28556 Usually this means the macro was only invoked conditionally." >&5
28557 echo "$as_me: error: conditional \"HAVE_OGGVORBIS\" was never defined.
28558 Usually this means the macro was only invoked conditionally." >&2;}
28559 { (exit 1); exit 1; }; }
28560 fi
28561 if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then
28562 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OSS\" was never defined.
28563 Usually this means the macro was only invoked conditionally." >&5
28564 echo "$as_me: error: conditional \"HAVE_OSS\" was never defined.
28565 Usually this means the macro was only invoked conditionally." >&2;}
28566 { (exit 1); exit 1; }; }
28567 fi
28568 if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then
28569 { { echo "$as_me:$LINENO: error: conditional \"HAVE_ALSA\" was never defined.
28570 Usually this means the macro was only invoked conditionally." >&5
28571 echo "$as_me: error: conditional \"HAVE_ALSA\" was never defined.
28572 Usually this means the macro was only invoked conditionally." >&2;}
28573 { (exit 1); exit 1; }; }
28574 fi
28575 if test -z "${HAVE_CDROM_TRUE}" && test -z "${HAVE_CDROM_FALSE}"; then
28576 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CDROM\" was never defined.
28577 Usually this means the macro was only invoked conditionally." >&5
28578 echo "$as_me: error: conditional \"HAVE_CDROM\" was never defined.
28579 Usually this means the macro was only invoked conditionally." >&2;}
28580 { (exit 1); exit 1; }; }
28581 fi
28582 if test -z "${HAVE_LINUX_JOYSTICK_TRUE}" && test -z "${HAVE_LINUX_JOYSTICK_FALSE}"; then
28583 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LINUX_JOYSTICK\" was never defined.
28584 Usually this means the macro was only invoked conditionally." >&5
28585 echo "$as_me: error: conditional \"HAVE_LINUX_JOYSTICK\" was never defined.
28586 Usually this means the macro was only invoked conditionally." >&2;}
28587 { (exit 1); exit 1; }; }
28588 fi
28589 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
28590 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
28591 Usually this means the macro was only invoked conditionally." >&5
28592 echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
28593 Usually this means the macro was only invoked conditionally." >&2;}
28594 { (exit 1); exit 1; }; }
28595 fi
28596 if test -z "${USE_X86ASM_TRUE}" && test -z "${USE_X86ASM_FALSE}"; then
28597 { { echo "$as_me:$LINENO: error: conditional \"USE_X86ASM\" was never defined.
28598 Usually this means the macro was only invoked conditionally." >&5
28599 echo "$as_me: error: conditional \"USE_X86ASM\" was never defined.
28600 Usually this means the macro was only invoked conditionally." >&2;}
28601 { (exit 1); exit 1; }; }
28602 fi
28603 if test -z "${HAVE_SOLARIS_TRUE}" && test -z "${HAVE_SOLARIS_FALSE}"; then
28604 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SOLARIS\" was never defined.
28605 Usually this means the macro was only invoked conditionally." >&5
28606 echo "$as_me: error: conditional \"HAVE_SOLARIS\" was never defined.
28607 Usually this means the macro was only invoked conditionally." >&2;}
28608 { (exit 1); exit 1; }; }
28609 fi
28610 if test -z "${HAVE_SUN_TRUE}" && test -z "${HAVE_SUN_FALSE}"; then
28611 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SUN\" was never defined.
28612 Usually this means the macro was only invoked conditionally." >&5
28613 echo "$as_me: error: conditional \"HAVE_SUN\" was never defined.
28614 Usually this means the macro was only invoked conditionally." >&2;}
28615 { (exit 1); exit 1; }; }
28616 fi
28617
28618 : ${CONFIG_STATUS=./config.status}
28619 ac_clean_files_save=$ac_clean_files
28620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28623 cat >$CONFIG_STATUS <<_ACEOF
28624 #! $SHELL
28625 # Generated by $as_me.
28626 # Run this file to recreate the current configuration.
28627 # Compiler output produced by configure, useful for debugging
28628 # configure, is in config.log if it exists.
28629
28630 debug=false
28631 ac_cs_recheck=false
28632 ac_cs_silent=false
28633 SHELL=\${CONFIG_SHELL-$SHELL}
28634 _ACEOF
28635
28636 cat >>$CONFIG_STATUS <<\_ACEOF
28637 ## --------------------- ##
28638 ## M4sh Initialization. ##
28639 ## --------------------- ##
28640
28641 # Be Bourne compatible
28642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28643 emulate sh
28644 NULLCMD=:
28645 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28646 # is contrary to our usage. Disable this feature.
28647 alias -g '${1+"$@"}'='"$@"'
28648 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28649 set -o posix
28650 fi
28651 DUALCASE=1; export DUALCASE # for MKS sh
28652
28653 # Support unset when possible.
28654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28655 as_unset=unset
28656 else
28657 as_unset=false
28658 fi
28659
28660
28661 # Work around bugs in pre-3.0 UWIN ksh.
28662 $as_unset ENV MAIL MAILPATH
28663 PS1='$ '
28664 PS2='> '
28665 PS4='+ '
28666
28667 # NLS nuisances.
28668 for as_var in \
28669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28671 LC_TELEPHONE LC_TIME
28672 do
28673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28674 eval $as_var=C; export $as_var
28675 else
28676 $as_unset $as_var
28677 fi
28678 done
28679
28680 # Required to use basename.
28681 if expr a : '\(a\)' >/dev/null 2>&1; then
28682 as_expr=expr
28683 else
28684 as_expr=false
28685 fi
28686
28687 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28688 as_basename=basename
28689 else
28690 as_basename=false
28691 fi
28692
28693
28694 # Name of the executable.
28695 as_me=`$as_basename "$0" ||
28696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28697 X"$0" : 'X\(//\)$' \| \
28698 X"$0" : 'X\(/\)$' \| \
28699 . : '\(.\)' 2>/dev/null ||
28700 echo X/"$0" |
28701 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28702 /^X\/\(\/\/\)$/{ s//\1/; q; }
28703 /^X\/\(\/\).*/{ s//\1/; q; }
28704 s/.*/./; q'`
28705
28706
28707 # PATH needs CR, and LINENO needs CR and PATH.
28708 # Avoid depending upon Character Ranges.
28709 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28710 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28711 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28712 as_cr_digits='0123456789'
28713 as_cr_alnum=$as_cr_Letters$as_cr_digits
28714
28715 # The user is always right.
28716 if test "${PATH_SEPARATOR+set}" != set; then
28717 echo "#! /bin/sh" >conf$$.sh
28718 echo "exit 0" >>conf$$.sh
28719 chmod +x conf$$.sh
28720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28721 PATH_SEPARATOR=';'
28722 else
28723 PATH_SEPARATOR=:
28724 fi
28725 rm -f conf$$.sh
28726 fi
28727
28728
28729 as_lineno_1=$LINENO
28730 as_lineno_2=$LINENO
28731 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28732 test "x$as_lineno_1" != "x$as_lineno_2" &&
28733 test "x$as_lineno_3" = "x$as_lineno_2" || {
28734 # Find who we are. Look in the path if we contain no path at all
28735 # relative or not.
28736 case $0 in
28737 *[\\/]* ) as_myself=$0 ;;
28738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28739 for as_dir in $PATH
28740 do
28741 IFS=$as_save_IFS
28742 test -z "$as_dir" && as_dir=.
28743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28744 done
28745
28746 ;;
28747 esac
28748 # We did not find ourselves, most probably we were run as `sh COMMAND'
28749 # in which case we are not to be found in the path.
28750 if test "x$as_myself" = x; then
28751 as_myself=$0
28752 fi
28753 if test ! -f "$as_myself"; then
28754 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28755 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28756 { (exit 1); exit 1; }; }
28757 fi
28758 case $CONFIG_SHELL in
28759 '')
28760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28761 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28762 do
28763 IFS=$as_save_IFS
28764 test -z "$as_dir" && as_dir=.
28765 for as_base in sh bash ksh sh5; do
28766 case $as_dir in
28767 /*)
28768 if ("$as_dir/$as_base" -c '
28769 as_lineno_1=$LINENO
28770 as_lineno_2=$LINENO
28771 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28772 test "x$as_lineno_1" != "x$as_lineno_2" &&
28773 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28774 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28775 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28776 CONFIG_SHELL=$as_dir/$as_base
28777 export CONFIG_SHELL
28778 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28779 fi;;
28780 esac
28781 done
28782 done
28783 ;;
28784 esac
28785
28786 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28787 # uniformly replaced by the line number. The first 'sed' inserts a
28788 # line-number line before each line; the second 'sed' does the real
28789 # work. The second script uses 'N' to pair each line-number line
28790 # with the numbered line, and appends trailing '-' during
28791 # substitution so that $LINENO is not a special case at line end.
28792 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28793 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28794 sed '=' <$as_myself |
28795 sed '
28796 N
28797 s,$,-,
28798 : loop
28799 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28800 t loop
28801 s,-$,,
28802 s,^['$as_cr_digits']*\n,,
28803 ' >$as_me.lineno &&
28804 chmod +x $as_me.lineno ||
28805 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28806 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28807 { (exit 1); exit 1; }; }
28808
28809 # Don't try to exec as it changes $[0], causing all sort of problems
28810 # (the dirname of $[0] is not the place where we might find the
28811 # original and so on. Autoconf is especially sensible to this).
28812 . ./$as_me.lineno
28813 # Exit status is that of the last command.
28814 exit
28815 }
28816
28817
28818 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28819 *c*,-n*) ECHO_N= ECHO_C='
28820 ' ECHO_T=' ' ;;
28821 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28822 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28823 esac
28824
28825 if expr a : '\(a\)' >/dev/null 2>&1; then
28826 as_expr=expr
28827 else
28828 as_expr=false
28829 fi
28830
28831 rm -f conf$$ conf$$.exe conf$$.file
28832 echo >conf$$.file
28833 if ln -s conf$$.file conf$$ 2>/dev/null; then
28834 # We could just check for DJGPP; but this test a) works b) is more generic
28835 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28836 if test -f conf$$.exe; then
28837 # Don't use ln at all; we don't have any links
28838 as_ln_s='cp -p'
28839 else
28840 as_ln_s='ln -s'
28841 fi
28842 elif ln conf$$.file conf$$ 2>/dev/null; then
28843 as_ln_s=ln
28844 else
28845 as_ln_s='cp -p'
28846 fi
28847 rm -f conf$$ conf$$.exe conf$$.file
28848
28849 if mkdir -p . 2>/dev/null; then
28850 as_mkdir_p=:
28851 else
28852 test -d ./-p && rmdir ./-p
28853 as_mkdir_p=false
28854 fi
28855
28856 as_executable_p="test -f"
28857
28858 # Sed expression to map a string onto a valid CPP name.
28859 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28860
28861 # Sed expression to map a string onto a valid variable name.
28862 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28863
28864
28865 # IFS
28866 # We need space, tab and new line, in precisely that order.
28867 as_nl='
28868 '
28869 IFS=" $as_nl"
28870
28871 # CDPATH.
28872 $as_unset CDPATH
28873
28874 exec 6>&1
28875
28876 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28877 # report actual input values of CONFIG_FILES etc. instead of their
28878 # values after options handling. Logging --version etc. is OK.
28879 exec 5>>config.log
28880 {
28881 echo
28882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28883 ## Running $as_me. ##
28884 _ASBOX
28885 } >&5
28886 cat >&5 <<_CSEOF
28887
28888 This file was extended by audacious $as_me 0.1, which was
28889 generated by GNU Autoconf 2.59. Invocation command line was
28890
28891 CONFIG_FILES = $CONFIG_FILES
28892 CONFIG_HEADERS = $CONFIG_HEADERS
28893 CONFIG_LINKS = $CONFIG_LINKS
28894 CONFIG_COMMANDS = $CONFIG_COMMANDS
28895 $ $0 $@
28896
28897 _CSEOF
28898 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28899 echo >&5
28900 _ACEOF
28901
28902 # Files that config.status was made for.
28903 if test -n "$ac_config_files"; then
28904 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28905 fi
28906
28907 if test -n "$ac_config_headers"; then
28908 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28909 fi
28910
28911 if test -n "$ac_config_links"; then
28912 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28913 fi
28914
28915 if test -n "$ac_config_commands"; then
28916 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28917 fi
28918
28919 cat >>$CONFIG_STATUS <<\_ACEOF
28920
28921 ac_cs_usage="\
28922 \`$as_me' instantiates files from templates according to the
28923 current configuration.
28924
28925 Usage: $0 [OPTIONS] [FILE]...
28926
28927 -h, --help print this help, then exit
28928 -V, --version print version number, then exit
28929 -q, --quiet do not print progress messages
28930 -d, --debug don't remove temporary files
28931 --recheck update $as_me by reconfiguring in the same conditions
28932 --file=FILE[:TEMPLATE]
28933 instantiate the configuration file FILE
28934 --header=FILE[:TEMPLATE]
28935 instantiate the configuration header FILE
28936
28937 Configuration files:
28938 $config_files
28939
28940 Configuration headers:
28941 $config_headers
28942
28943 Configuration commands:
28944 $config_commands
28945
28946 Report bugs to <bug-autoconf@gnu.org>."
28947 _ACEOF
28948
28949 cat >>$CONFIG_STATUS <<_ACEOF
28950 ac_cs_version="\\
28951 audacious config.status 0.1
28952 configured by $0, generated by GNU Autoconf 2.59,
28953 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28954
28955 Copyright (C) 2003 Free Software Foundation, Inc.
28956 This config.status script is free software; the Free Software Foundation
28957 gives unlimited permission to copy, distribute and modify it."
28958 srcdir=$srcdir
28959 INSTALL="$INSTALL"
28960 _ACEOF
28961
28962 cat >>$CONFIG_STATUS <<\_ACEOF
28963 # If no file are specified by the user, then we need to provide default
28964 # value. By we need to know if files were specified by the user.
28965 ac_need_defaults=:
28966 while test $# != 0
28967 do
28968 case $1 in
28969 --*=*)
28970 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28971 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28972 ac_shift=:
28973 ;;
28974 -*)
28975 ac_option=$1
28976 ac_optarg=$2
28977 ac_shift=shift
28978 ;;
28979 *) # This is not an option, so the user has probably given explicit
28980 # arguments.
28981 ac_option=$1
28982 ac_need_defaults=false;;
28983 esac
28984
28985 case $ac_option in
28986 # Handling of the options.
28987 _ACEOF
28988 cat >>$CONFIG_STATUS <<\_ACEOF
28989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28990 ac_cs_recheck=: ;;
28991 --version | --vers* | -V )
28992 echo "$ac_cs_version"; exit 0 ;;
28993 --he | --h)
28994 # Conflict between --help and --header
28995 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28996 Try \`$0 --help' for more information." >&5
28997 echo "$as_me: error: ambiguous option: $1
28998 Try \`$0 --help' for more information." >&2;}
28999 { (exit 1); exit 1; }; };;
29000 --help | --hel | -h )
29001 echo "$ac_cs_usage"; exit 0 ;;
29002 --debug | --d* | -d )
29003 debug=: ;;
29004 --file | --fil | --fi | --f )
29005 $ac_shift
29006 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29007 ac_need_defaults=false;;
29008 --header | --heade | --head | --hea )
29009 $ac_shift
29010 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29011 ac_need_defaults=false;;
29012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29014 ac_cs_silent=: ;;
29015
29016 # This is an error.
29017 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29018 Try \`$0 --help' for more information." >&5
29019 echo "$as_me: error: unrecognized option: $1
29020 Try \`$0 --help' for more information." >&2;}
29021 { (exit 1); exit 1; }; } ;;
29022
29023 *) ac_config_targets="$ac_config_targets $1" ;;
29024
29025 esac
29026 shift
29027 done
29028
29029 ac_configure_extra_args=
29030
29031 if $ac_cs_silent; then
29032 exec 6>/dev/null
29033 ac_configure_extra_args="$ac_configure_extra_args --silent"
29034 fi
29035
29036 _ACEOF
29037 cat >>$CONFIG_STATUS <<_ACEOF
29038 if \$ac_cs_recheck; then
29039 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29040 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29041 fi
29042
29043 _ACEOF
29044
29045 cat >>$CONFIG_STATUS <<_ACEOF
29046 #
29047 # INIT-COMMANDS section.
29048 #
29049
29050 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
29051 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
29052 # from automake.
29053 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
29054 # Capture the value of LINGUAS because we need it to compute CATALOGS.
29055 LINGUAS="${LINGUAS-%UNSET%}"
29056
29057 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29058
29059 _ACEOF
29060
29061
29062
29063 cat >>$CONFIG_STATUS <<\_ACEOF
29064 for ac_config_target in $ac_config_targets
29065 do
29066 case "$ac_config_target" in
29067 # Handling of arguments.
29068 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29069 "audacious.1" ) CONFIG_FILES="$CONFIG_FILES audacious.1" ;;
29070 "audacious.spec" ) CONFIG_FILES="$CONFIG_FILES audacious.spec" ;;
29071 "audacious.pc" ) CONFIG_FILES="$CONFIG_FILES audacious.pc" ;;
29072 "audacious/audacious.desktop" ) CONFIG_FILES="$CONFIG_FILES audacious/audacious.desktop" ;;
29073 "audacious/Makefile" ) CONFIG_FILES="$CONFIG_FILES audacious/Makefile" ;;
29074 "audacious/glade/Makefile" ) CONFIG_FILES="$CONFIG_FILES audacious/glade/Makefile" ;;
29075 "audacious/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES audacious/images/Makefile" ;;
29076 "libaudacious/Makefile" ) CONFIG_FILES="$CONFIG_FILES libaudacious/Makefile" ;;
29077 "Output/Makefile" ) CONFIG_FILES="$CONFIG_FILES Output/Makefile" ;;
29078 "Output/OSS/Makefile" ) CONFIG_FILES="$CONFIG_FILES Output/OSS/Makefile" ;;
29079 "Output/esd/Makefile" ) CONFIG_FILES="$CONFIG_FILES Output/esd/Makefile" ;;
29080 "Output/alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES Output/alsa/Makefile" ;;
29081 "Input/Makefile" ) CONFIG_FILES="$CONFIG_FILES Input/Makefile" ;;
29082 "Input/mpg123/Makefile" ) CONFIG_FILES="$CONFIG_FILES Input/mpg123/Makefile" ;;
29083 "Input/vorbis/Makefile" ) CONFIG_FILES="$CONFIG_FILES Input/vorbis/Makefile" ;;
29084 "Input/cdaudio/Makefile" ) CONFIG_FILES="$CONFIG_FILES Input/cdaudio/Makefile" ;;
29085 "Input/wav/Makefile" ) CONFIG_FILES="$CONFIG_FILES Input/wav/Makefile" ;;
29086 "Visualization/Makefile" ) CONFIG_FILES="$CONFIG_FILES Visualization/Makefile" ;;
29087 "Visualization/blur_scope/Makefile" ) CONFIG_FILES="$CONFIG_FILES Visualization/blur_scope/Makefile" ;;
29088 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29089 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
29090 "icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
29091 "skin/Makefile" ) CONFIG_FILES="$CONFIG_FILES skin/Makefile" ;;
29092 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29093 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29094 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29095 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29096 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29097 { (exit 1); exit 1; }; };;
29098 esac
29099 done
29100
29101 # If the user did not use the arguments to specify the items to instantiate,
29102 # then the envvar interface is used. Set only those that are not.
29103 # We use the long form for the default assignment because of an extremely
29104 # bizarre bug on SunOS 4.1.3.
29105 if $ac_need_defaults; then
29106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29107 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29108 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29109 fi
29110
29111 # Have a temporary directory for convenience. Make it in the build tree
29112 # simply because there is no reason to put it here, and in addition,
29113 # creating and moving files from /tmp can sometimes cause problems.
29114 # Create a temporary directory, and hook for its removal unless debugging.
29115 $debug ||
29116 {
29117 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29118 trap '{ (exit 1); exit 1; }' 1 2 13 15
29119 }
29120
29121 # Create a (secure) tmp directory for tmp files.
29122
29123 {
29124 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29125 test -n "$tmp" && test -d "$tmp"
29126 } ||
29127 {
29128 tmp=./confstat$$-$RANDOM
29129 (umask 077 && mkdir $tmp)
29130 } ||
29131 {
29132 echo "$me: cannot create a temporary directory in ." >&2
29133 { (exit 1); exit 1; }
29134 }
29135
29136 _ACEOF
29137
29138 cat >>$CONFIG_STATUS <<_ACEOF
29139
29140 #
29141 # CONFIG_FILES section.
29142 #
29143
29144 # No need to generate the scripts if there are no CONFIG_FILES.
29145 # This happens for instance when ./config.status config.h
29146 if test -n "\$CONFIG_FILES"; then
29147 # Protect against being on the right side of a sed subst in config.status.
29148 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29149 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29150 s,@SHELL@,$SHELL,;t t
29151 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29152 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29153 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29154 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29155 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29156 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29157 s,@exec_prefix@,$exec_prefix,;t t
29158 s,@prefix@,$prefix,;t t
29159 s,@program_transform_name@,$program_transform_name,;t t
29160 s,@bindir@,$bindir,;t t
29161 s,@sbindir@,$sbindir,;t t
29162 s,@libexecdir@,$libexecdir,;t t
29163 s,@datadir@,$datadir,;t t
29164 s,@sysconfdir@,$sysconfdir,;t t
29165 s,@sharedstatedir@,$sharedstatedir,;t t
29166 s,@localstatedir@,$localstatedir,;t t
29167 s,@libdir@,$libdir,;t t
29168 s,@includedir@,$includedir,;t t
29169 s,@oldincludedir@,$oldincludedir,;t t
29170 s,@infodir@,$infodir,;t t
29171 s,@mandir@,$mandir,;t t
29172 s,@build_alias@,$build_alias,;t t
29173 s,@host_alias@,$host_alias,;t t
29174 s,@target_alias@,$target_alias,;t t
29175 s,@DEFS@,$DEFS,;t t
29176 s,@ECHO_C@,$ECHO_C,;t t
29177 s,@ECHO_N@,$ECHO_N,;t t
29178 s,@ECHO_T@,$ECHO_T,;t t
29179 s,@LIBS@,$LIBS,;t t
29180 s,@build@,$build,;t t
29181 s,@build_cpu@,$build_cpu,;t t
29182 s,@build_vendor@,$build_vendor,;t t
29183 s,@build_os@,$build_os,;t t
29184 s,@host@,$host,;t t
29185 s,@host_cpu@,$host_cpu,;t t
29186 s,@host_vendor@,$host_vendor,;t t
29187 s,@host_os@,$host_os,;t t
29188 s,@target@,$target,;t t
29189 s,@target_cpu@,$target_cpu,;t t
29190 s,@target_vendor@,$target_vendor,;t t
29191 s,@target_os@,$target_os,;t t
29192 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29193 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29194 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29195 s,@CYGPATH_W@,$CYGPATH_W,;t t
29196 s,@PACKAGE@,$PACKAGE,;t t
29197 s,@VERSION@,$VERSION,;t t
29198 s,@ACLOCAL@,$ACLOCAL,;t t
29199 s,@AUTOCONF@,$AUTOCONF,;t t
29200 s,@AUTOMAKE@,$AUTOMAKE,;t t
29201 s,@AUTOHEADER@,$AUTOHEADER,;t t
29202 s,@MAKEINFO@,$MAKEINFO,;t t
29203 s,@install_sh@,$install_sh,;t t
29204 s,@STRIP@,$STRIP,;t t
29205 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29206 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29207 s,@mkdir_p@,$mkdir_p,;t t
29208 s,@AWK@,$AWK,;t t
29209 s,@SET_MAKE@,$SET_MAKE,;t t
29210 s,@am__leading_dot@,$am__leading_dot,;t t
29211 s,@AMTAR@,$AMTAR,;t t
29212 s,@am__tar@,$am__tar,;t t
29213 s,@am__untar@,$am__untar,;t t
29214 s,@LIBBEEP_MAJOR_VERSION@,$LIBBEEP_MAJOR_VERSION,;t t
29215 s,@LIBBEEP_MINOR_VERSION@,$LIBBEEP_MINOR_VERSION,;t t
29216 s,@LIBBEEP_MICRO_VERSION@,$LIBBEEP_MICRO_VERSION,;t t
29217 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
29218 s,@USE_NLS@,$USE_NLS,;t t
29219 s,@MSGFMT@,$MSGFMT,;t t
29220 s,@GMSGFMT@,$GMSGFMT,;t t
29221 s,@XGETTEXT@,$XGETTEXT,;t t
29222 s,@MSGMERGE@,$MSGMERGE,;t t
29223 s,@CC@,$CC,;t t
29224 s,@CFLAGS@,$CFLAGS,;t t
29225 s,@LDFLAGS@,$LDFLAGS,;t t
29226 s,@CPPFLAGS@,$CPPFLAGS,;t t
29227 s,@ac_ct_CC@,$ac_ct_CC,;t t
29228 s,@EXEEXT@,$EXEEXT,;t t
29229 s,@OBJEXT@,$OBJEXT,;t t
29230 s,@DEPDIR@,$DEPDIR,;t t
29231 s,@am__include@,$am__include,;t t
29232 s,@am__quote@,$am__quote,;t t
29233 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29234 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29235 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29236 s,@CCDEPMODE@,$CCDEPMODE,;t t
29237 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29238 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29239 s,@RANLIB@,$RANLIB,;t t
29240 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29241 s,@CPP@,$CPP,;t t
29242 s,@EGREP@,$EGREP,;t t
29243 s,@ALLOCA@,$ALLOCA,;t t
29244 s,@GLIBC21@,$GLIBC21,;t t
29245 s,@LIBICONV@,$LIBICONV,;t t
29246 s,@LTLIBICONV@,$LTLIBICONV,;t t
29247 s,@INTLBISON@,$INTLBISON,;t t
29248 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
29249 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
29250 s,@CATOBJEXT@,$CATOBJEXT,;t t
29251 s,@DATADIRNAME@,$DATADIRNAME,;t t
29252 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
29253 s,@GENCAT@,$GENCAT,;t t
29254 s,@INTLOBJS@,$INTLOBJS,;t t
29255 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
29256 s,@INTLLIBS@,$INTLLIBS,;t t
29257 s,@LIBINTL@,$LIBINTL,;t t
29258 s,@LTLIBINTL@,$LTLIBINTL,;t t
29259 s,@POSUB@,$POSUB,;t t
29260 s,@CCAS@,$CCAS,;t t
29261 s,@CCASFLAGS@,$CCASFLAGS,;t t
29262 s,@LN_S@,$LN_S,;t t
29263 s,@ECHO@,$ECHO,;t t
29264 s,@AR@,$AR,;t t
29265 s,@ac_ct_AR@,$ac_ct_AR,;t t
29266 s,@CXXCPP@,$CXXCPP,;t t
29267 s,@LIBTOOL@,$LIBTOOL,;t t
29268 s,@BEEP_PATH@,$BEEP_PATH,;t t
29269 s,@BMP_RCPATH@,$BMP_RCPATH,;t t
29270 s,@EFFECT_PLUGINS@,$EFFECT_PLUGINS,;t t
29271 s,@GENERAL_PLUGINS@,$GENERAL_PLUGINS,;t t
29272 s,@INPUT_PLUGINS@,$INPUT_PLUGINS,;t t
29273 s,@OUTPUT_PLUGINS@,$OUTPUT_PLUGINS,;t t
29274 s,@VISUALIZATION_PLUGINS@,$VISUALIZATION_PLUGINS,;t t
29275 s,@X_CFLAGS@,$X_CFLAGS,;t t
29276 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29277 s,@X_LIBS@,$X_LIBS,;t t
29278 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29279 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29280 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29281 s,@GTK_LIBS@,$GTK_LIBS,;t t
29282 s,@PC_REQUIRES@,$PC_REQUIRES,;t t
29283 s,@LIBGLADE_CFLAGS@,$LIBGLADE_CFLAGS,;t t
29284 s,@LIBGLADE_LIBS@,$LIBGLADE_LIBS,;t t
29285 s,@USE_SIMD_TRUE@,$USE_SIMD_TRUE,;t t
29286 s,@USE_SIMD_FALSE@,$USE_SIMD_FALSE,;t t
29287 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
29288 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
29289 s,@HAVE_GCONF_TRUE@,$HAVE_GCONF_TRUE,;t t
29290 s,@HAVE_GCONF_FALSE@,$HAVE_GCONF_FALSE,;t t
29291 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
29292 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
29293 s,@HAVE_GNOME_VFS_TRUE@,$HAVE_GNOME_VFS_TRUE,;t t
29294 s,@HAVE_GNOME_VFS_FALSE@,$HAVE_GNOME_VFS_FALSE,;t t
29295 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
29296 s,@ESD_LIBS@,$ESD_LIBS,;t t
29297 s,@HAVE_ESD_TRUE@,$HAVE_ESD_TRUE,;t t
29298 s,@HAVE_ESD_FALSE@,$HAVE_ESD_FALSE,;t t
29299 s,@ENABLE_MPG123_TRUE@,$ENABLE_MPG123_TRUE,;t t
29300 s,@ENABLE_MPG123_FALSE@,$ENABLE_MPG123_FALSE,;t t
29301 s,@ID3LIBS@,$ID3LIBS,;t t
29302 s,@OGG_VORBIS_CFLAGS@,$OGG_VORBIS_CFLAGS,;t t
29303 s,@OGG_VORBIS_LIBS@,$OGG_VORBIS_LIBS,;t t
29304 s,@HAVE_OGGVORBIS_TRUE@,$HAVE_OGGVORBIS_TRUE,;t t
29305 s,@HAVE_OGGVORBIS_FALSE@,$HAVE_OGGVORBIS_FALSE,;t t
29306 s,@HAVE_OSS_TRUE@,$HAVE_OSS_TRUE,;t t
29307 s,@HAVE_OSS_FALSE@,$HAVE_OSS_FALSE,;t t
29308 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
29309 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
29310 s,@HAVE_ALSA_TRUE@,$HAVE_ALSA_TRUE,;t t
29311 s,@HAVE_ALSA_FALSE@,$HAVE_ALSA_FALSE,;t t
29312 s,@HAVE_CDROM_TRUE@,$HAVE_CDROM_TRUE,;t t
29313 s,@HAVE_CDROM_FALSE@,$HAVE_CDROM_FALSE,;t t
29314 s,@HAVE_LINUX_JOYSTICK_TRUE@,$HAVE_LINUX_JOYSTICK_TRUE,;t t
29315 s,@HAVE_LINUX_JOYSTICK_FALSE@,$HAVE_LINUX_JOYSTICK_FALSE,;t t
29316 s,@ARCH_DEFINES@,$ARCH_DEFINES,;t t
29317 s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
29318 s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
29319 s,@USE_X86ASM_TRUE@,$USE_X86ASM_TRUE,;t t
29320 s,@USE_X86ASM_FALSE@,$USE_X86ASM_FALSE,;t t
29321 s,@HAVE_SOLARIS_TRUE@,$HAVE_SOLARIS_TRUE,;t t
29322 s,@HAVE_SOLARIS_FALSE@,$HAVE_SOLARIS_FALSE,;t t
29323 s,@HAVE_SUN_TRUE@,$HAVE_SUN_TRUE,;t t
29324 s,@HAVE_SUN_FALSE@,$HAVE_SUN_FALSE,;t t
29325 s,@plugindir@,$plugindir,;t t
29326 s,@INPUT_PLUGIN_DIR@,$INPUT_PLUGIN_DIR,;t t
29327 s,@OUTPUT_PLUGIN_DIR@,$OUTPUT_PLUGIN_DIR,;t t
29328 s,@EFFECT_PLUGIN_DIR@,$EFFECT_PLUGIN_DIR,;t t
29329 s,@GENERAL_PLUGIN_DIR@,$GENERAL_PLUGIN_DIR,;t t
29330 s,@VISUALIZATION_PLUGIN_DIR@,$VISUALIZATION_PLUGIN_DIR,;t t
29331 s,@pluginsubs@,$pluginsubs,;t t
29332 s,@localedir@,$localedir,;t t
29333 s,@BEEP_DEFINES@,$BEEP_DEFINES,;t t
29334 s,@PLUGIN_LDFLAGS@,$PLUGIN_LDFLAGS,;t t
29335 s,@beepdir@,$beepdir,;t t
29336 s,@LIBOBJS@,$LIBOBJS,;t t
29337 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29338 CEOF
29339
29340 _ACEOF
29341
29342 cat >>$CONFIG_STATUS <<\_ACEOF
29343 # Split the substitutions into bite-sized pieces for seds with
29344 # small command number limits, like on Digital OSF/1 and HP-UX.
29345 ac_max_sed_lines=48
29346 ac_sed_frag=1 # Number of current file.
29347 ac_beg=1 # First line for current file.
29348 ac_end=$ac_max_sed_lines # Line after last line for current file.
29349 ac_more_lines=:
29350 ac_sed_cmds=
29351 while $ac_more_lines; do
29352 if test $ac_beg -gt 1; then
29353 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29354 else
29355 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29356 fi
29357 if test ! -s $tmp/subs.frag; then
29358 ac_more_lines=false
29359 else
29360 # The purpose of the label and of the branching condition is to
29361 # speed up the sed processing (if there are no `@' at all, there
29362 # is no need to browse any of the substitutions).
29363 # These are the two extra sed commands mentioned above.
29364 (echo ':t
29365 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29366 if test -z "$ac_sed_cmds"; then
29367 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29368 else
29369 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29370 fi
29371 ac_sed_frag=`expr $ac_sed_frag + 1`
29372 ac_beg=$ac_end
29373 ac_end=`expr $ac_end + $ac_max_sed_lines`
29374 fi
29375 done
29376 if test -z "$ac_sed_cmds"; then
29377 ac_sed_cmds=cat
29378 fi
29379 fi # test -n "$CONFIG_FILES"
29380
29381 _ACEOF
29382 cat >>$CONFIG_STATUS <<\_ACEOF
29383 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29384 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29385 case $ac_file in
29386 - | *:- | *:-:* ) # input from stdin
29387 cat >$tmp/stdin
29388 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29389 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29390 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29392 * ) ac_file_in=$ac_file.in ;;
29393 esac
29394
29395 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29396 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29398 X"$ac_file" : 'X\(//\)[^/]' \| \
29399 X"$ac_file" : 'X\(//\)$' \| \
29400 X"$ac_file" : 'X\(/\)' \| \
29401 . : '\(.\)' 2>/dev/null ||
29402 echo X"$ac_file" |
29403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29405 /^X\(\/\/\)$/{ s//\1/; q; }
29406 /^X\(\/\).*/{ s//\1/; q; }
29407 s/.*/./; q'`
29408 { if $as_mkdir_p; then
29409 mkdir -p "$ac_dir"
29410 else
29411 as_dir="$ac_dir"
29412 as_dirs=
29413 while test ! -d "$as_dir"; do
29414 as_dirs="$as_dir $as_dirs"
29415 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29417 X"$as_dir" : 'X\(//\)[^/]' \| \
29418 X"$as_dir" : 'X\(//\)$' \| \
29419 X"$as_dir" : 'X\(/\)' \| \
29420 . : '\(.\)' 2>/dev/null ||
29421 echo X"$as_dir" |
29422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29424 /^X\(\/\/\)$/{ s//\1/; q; }
29425 /^X\(\/\).*/{ s//\1/; q; }
29426 s/.*/./; q'`
29427 done
29428 test ! -n "$as_dirs" || mkdir $as_dirs
29429 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29430 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29431 { (exit 1); exit 1; }; }; }
29432
29433 ac_builddir=.
29434
29435 if test "$ac_dir" != .; then
29436 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29437 # A "../" for each directory in $ac_dir_suffix.
29438 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29439 else
29440 ac_dir_suffix= ac_top_builddir=
29441 fi
29442
29443 case $srcdir in
29444 .) # No --srcdir option. We are building in place.
29445 ac_srcdir=.
29446 if test -z "$ac_top_builddir"; then
29447 ac_top_srcdir=.
29448 else
29449 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29450 fi ;;
29451 [\\/]* | ?:[\\/]* ) # Absolute path.
29452 ac_srcdir=$srcdir$ac_dir_suffix;
29453 ac_top_srcdir=$srcdir ;;
29454 *) # Relative path.
29455 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29456 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29457 esac
29458
29459 # Do not use `cd foo && pwd` to compute absolute paths, because
29460 # the directories may not exist.
29461 case `pwd` in
29462 .) ac_abs_builddir="$ac_dir";;
29463 *)
29464 case "$ac_dir" in
29465 .) ac_abs_builddir=`pwd`;;
29466 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29467 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29468 esac;;
29469 esac
29470 case $ac_abs_builddir in
29471 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29472 *)
29473 case ${ac_top_builddir}. in
29474 .) ac_abs_top_builddir=$ac_abs_builddir;;
29475 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29476 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29477 esac;;
29478 esac
29479 case $ac_abs_builddir in
29480 .) ac_abs_srcdir=$ac_srcdir;;
29481 *)
29482 case $ac_srcdir in
29483 .) ac_abs_srcdir=$ac_abs_builddir;;
29484 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29485 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29486 esac;;
29487 esac
29488 case $ac_abs_builddir in
29489 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29490 *)
29491 case $ac_top_srcdir in
29492 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29493 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29494 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29495 esac;;
29496 esac
29497
29498
29499 case $INSTALL in
29500 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29501 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29502 esac
29503
29504 if test x"$ac_file" != x-; then
29505 { echo "$as_me:$LINENO: creating $ac_file" >&5
29506 echo "$as_me: creating $ac_file" >&6;}
29507 rm -f "$ac_file"
29508 fi
29509 # Let's still pretend it is `configure' which instantiates (i.e., don't
29510 # use $as_me), people would be surprised to read:
29511 # /* config.h. Generated by config.status. */
29512 if test x"$ac_file" = x-; then
29513 configure_input=
29514 else
29515 configure_input="$ac_file. "
29516 fi
29517 configure_input=$configure_input"Generated from `echo $ac_file_in |
29518 sed 's,.*/,,'` by configure."
29519
29520 # First look for the input files in the build tree, otherwise in the
29521 # src tree.
29522 ac_file_inputs=`IFS=:
29523 for f in $ac_file_in; do
29524 case $f in
29525 -) echo $tmp/stdin ;;
29526 [\\/$]*)
29527 # Absolute (can't be DOS-style, as IFS=:)
29528 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29529 echo "$as_me: error: cannot find input file: $f" >&2;}
29530 { (exit 1); exit 1; }; }
29531 echo "$f";;
29532 *) # Relative
29533 if test -f "$f"; then
29534 # Build tree
29535 echo "$f"
29536 elif test -f "$srcdir/$f"; then
29537 # Source tree
29538 echo "$srcdir/$f"
29539 else
29540 # /dev/null tree
29541 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29542 echo "$as_me: error: cannot find input file: $f" >&2;}
29543 { (exit 1); exit 1; }; }
29544 fi;;
29545 esac
29546 done` || { (exit 1); exit 1; }
29547 _ACEOF
29548 cat >>$CONFIG_STATUS <<_ACEOF
29549 sed "$ac_vpsub
29550 $extrasub
29551 _ACEOF
29552 cat >>$CONFIG_STATUS <<\_ACEOF
29553 :t
29554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29555 s,@configure_input@,$configure_input,;t t
29556 s,@srcdir@,$ac_srcdir,;t t
29557 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29558 s,@top_srcdir@,$ac_top_srcdir,;t t
29559 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29560 s,@builddir@,$ac_builddir,;t t
29561 s,@abs_builddir@,$ac_abs_builddir,;t t
29562 s,@top_builddir@,$ac_top_builddir,;t t
29563 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29564 s,@INSTALL@,$ac_INSTALL,;t t
29565 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29566 rm -f $tmp/stdin
29567 if test x"$ac_file" != x-; then
29568 mv $tmp/out $ac_file
29569 else
29570 cat $tmp/out
29571 rm -f $tmp/out
29572 fi
29573
29574 done
29575 _ACEOF
29576 cat >>$CONFIG_STATUS <<\_ACEOF
29577
29578 #
29579 # CONFIG_HEADER section.
29580 #
29581
29582 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29583 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29584 #
29585 # ac_d sets the value in "#define NAME VALUE" lines.
29586 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29587 ac_dB='[ ].*$,\1#\2'
29588 ac_dC=' '
29589 ac_dD=',;t'
29590 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29591 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29592 ac_uB='$,\1#\2define\3'
29593 ac_uC=' '
29594 ac_uD=',;t'
29595
29596 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29598 case $ac_file in
29599 - | *:- | *:-:* ) # input from stdin
29600 cat >$tmp/stdin
29601 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29603 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29605 * ) ac_file_in=$ac_file.in ;;
29606 esac
29607
29608 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29609 echo "$as_me: creating $ac_file" >&6;}
29610
29611 # First look for the input files in the build tree, otherwise in the
29612 # src tree.
29613 ac_file_inputs=`IFS=:
29614 for f in $ac_file_in; do
29615 case $f in
29616 -) echo $tmp/stdin ;;
29617 [\\/$]*)
29618 # Absolute (can't be DOS-style, as IFS=:)
29619 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29620 echo "$as_me: error: cannot find input file: $f" >&2;}
29621 { (exit 1); exit 1; }; }
29622 # Do quote $f, to prevent DOS paths from being IFS'd.
29623 echo "$f";;
29624 *) # Relative
29625 if test -f "$f"; then
29626 # Build tree
29627 echo "$f"
29628 elif test -f "$srcdir/$f"; then
29629 # Source tree
29630 echo "$srcdir/$f"
29631 else
29632 # /dev/null tree
29633 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29634 echo "$as_me: error: cannot find input file: $f" >&2;}
29635 { (exit 1); exit 1; }; }
29636 fi;;
29637 esac
29638 done` || { (exit 1); exit 1; }
29639 # Remove the trailing spaces.
29640 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29641
29642 _ACEOF
29643
29644 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29645 # `conftest.undefs', that substitutes the proper values into
29646 # config.h.in to produce config.h. The first handles `#define'
29647 # templates, and the second `#undef' templates.
29648 # And first: Protect against being on the right side of a sed subst in
29649 # config.status. Protect against being in an unquoted here document
29650 # in config.status.
29651 rm -f conftest.defines conftest.undefs
29652 # Using a here document instead of a string reduces the quoting nightmare.
29653 # Putting comments in sed scripts is not portable.
29654 #
29655 # `end' is used to avoid that the second main sed command (meant for
29656 # 0-ary CPP macros) applies to n-ary macro definitions.
29657 # See the Autoconf documentation for `clear'.
29658 cat >confdef2sed.sed <<\_ACEOF
29659 s/[\\&,]/\\&/g
29660 s,[\\$`],\\&,g
29661 t clear
29662 : clear
29663 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29664 t end
29665 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29666 : end
29667 _ACEOF
29668 # If some macros were called several times there might be several times
29669 # the same #defines, which is useless. Nevertheless, we may not want to
29670 # sort them, since we want the *last* AC-DEFINE to be honored.
29671 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29672 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29673 rm -f confdef2sed.sed
29674
29675 # This sed command replaces #undef with comments. This is necessary, for
29676 # example, in the case of _POSIX_SOURCE, which is predefined and required
29677 # on some systems where configure will not decide to define it.
29678 cat >>conftest.undefs <<\_ACEOF
29679 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29680 _ACEOF
29681
29682 # Break up conftest.defines because some shells have a limit on the size
29683 # of here documents, and old seds have small limits too (100 cmds).
29684 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29685 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29686 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29687 echo ' :' >>$CONFIG_STATUS
29688 rm -f conftest.tail
29689 while grep . conftest.defines >/dev/null
29690 do
29691 # Write a limited-size here document to $tmp/defines.sed.
29692 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29693 # Speed up: don't consider the non `#define' lines.
29694 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29695 # Work around the forget-to-reset-the-flag bug.
29696 echo 't clr' >>$CONFIG_STATUS
29697 echo ': clr' >>$CONFIG_STATUS
29698 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29699 echo 'CEOF
29700 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29701 rm -f $tmp/in
29702 mv $tmp/out $tmp/in
29703 ' >>$CONFIG_STATUS
29704 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29705 rm -f conftest.defines
29706 mv conftest.tail conftest.defines
29707 done
29708 rm -f conftest.defines
29709 echo ' fi # grep' >>$CONFIG_STATUS
29710 echo >>$CONFIG_STATUS
29711
29712 # Break up conftest.undefs because some shells have a limit on the size
29713 # of here documents, and old seds have small limits too (100 cmds).
29714 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29715 rm -f conftest.tail
29716 while grep . conftest.undefs >/dev/null
29717 do
29718 # Write a limited-size here document to $tmp/undefs.sed.
29719 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29720 # Speed up: don't consider the non `#undef'
29721 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29722 # Work around the forget-to-reset-the-flag bug.
29723 echo 't clr' >>$CONFIG_STATUS
29724 echo ': clr' >>$CONFIG_STATUS
29725 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29726 echo 'CEOF
29727 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29728 rm -f $tmp/in
29729 mv $tmp/out $tmp/in
29730 ' >>$CONFIG_STATUS
29731 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29732 rm -f conftest.undefs
29733 mv conftest.tail conftest.undefs
29734 done
29735 rm -f conftest.undefs
29736
29737 cat >>$CONFIG_STATUS <<\_ACEOF
29738 # Let's still pretend it is `configure' which instantiates (i.e., don't
29739 # use $as_me), people would be surprised to read:
29740 # /* config.h. Generated by config.status. */
29741 if test x"$ac_file" = x-; then
29742 echo "/* Generated by configure. */" >$tmp/config.h
29743 else
29744 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29745 fi
29746 cat $tmp/in >>$tmp/config.h
29747 rm -f $tmp/in
29748 if test x"$ac_file" != x-; then
29749 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29750 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29751 echo "$as_me: $ac_file is unchanged" >&6;}
29752 else
29753 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29755 X"$ac_file" : 'X\(//\)[^/]' \| \
29756 X"$ac_file" : 'X\(//\)$' \| \
29757 X"$ac_file" : 'X\(/\)' \| \
29758 . : '\(.\)' 2>/dev/null ||
29759 echo X"$ac_file" |
29760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29762 /^X\(\/\/\)$/{ s//\1/; q; }
29763 /^X\(\/\).*/{ s//\1/; q; }
29764 s/.*/./; q'`
29765 { if $as_mkdir_p; then
29766 mkdir -p "$ac_dir"
29767 else
29768 as_dir="$ac_dir"
29769 as_dirs=
29770 while test ! -d "$as_dir"; do
29771 as_dirs="$as_dir $as_dirs"
29772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29774 X"$as_dir" : 'X\(//\)[^/]' \| \
29775 X"$as_dir" : 'X\(//\)$' \| \
29776 X"$as_dir" : 'X\(/\)' \| \
29777 . : '\(.\)' 2>/dev/null ||
29778 echo X"$as_dir" |
29779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29781 /^X\(\/\/\)$/{ s//\1/; q; }
29782 /^X\(\/\).*/{ s//\1/; q; }
29783 s/.*/./; q'`
29784 done
29785 test ! -n "$as_dirs" || mkdir $as_dirs
29786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29787 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29788 { (exit 1); exit 1; }; }; }
29789
29790 rm -f $ac_file
29791 mv $tmp/config.h $ac_file
29792 fi
29793 else
29794 cat $tmp/config.h
29795 rm -f $tmp/config.h
29796 fi
29797 # Compute $ac_file's index in $config_headers.
29798 _am_stamp_count=1
29799 for _am_header in $config_headers :; do
29800 case $_am_header in
29801 $ac_file | $ac_file:* )
29802 break ;;
29803 * )
29804 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29805 esac
29806 done
29807 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29808 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29809 X$ac_file : 'X\(//\)[^/]' \| \
29810 X$ac_file : 'X\(//\)$' \| \
29811 X$ac_file : 'X\(/\)' \| \
29812 . : '\(.\)' 2>/dev/null ||
29813 echo X$ac_file |
29814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29816 /^X\(\/\/\)$/{ s//\1/; q; }
29817 /^X\(\/\).*/{ s//\1/; q; }
29818 s/.*/./; q'`/stamp-h$_am_stamp_count
29819 done
29820 _ACEOF
29821 cat >>$CONFIG_STATUS <<\_ACEOF
29822
29823 #
29824 # CONFIG_COMMANDS section.
29825 #
29826 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29827 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29828 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29829 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29830 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29831 X"$ac_dest" : 'X\(//\)[^/]' \| \
29832 X"$ac_dest" : 'X\(//\)$' \| \
29833 X"$ac_dest" : 'X\(/\)' \| \
29834 . : '\(.\)' 2>/dev/null ||
29835 echo X"$ac_dest" |
29836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29838 /^X\(\/\/\)$/{ s//\1/; q; }
29839 /^X\(\/\).*/{ s//\1/; q; }
29840 s/.*/./; q'`
29841 { if $as_mkdir_p; then
29842 mkdir -p "$ac_dir"
29843 else
29844 as_dir="$ac_dir"
29845 as_dirs=
29846 while test ! -d "$as_dir"; do
29847 as_dirs="$as_dir $as_dirs"
29848 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29850 X"$as_dir" : 'X\(//\)[^/]' \| \
29851 X"$as_dir" : 'X\(//\)$' \| \
29852 X"$as_dir" : 'X\(/\)' \| \
29853 . : '\(.\)' 2>/dev/null ||
29854 echo X"$as_dir" |
29855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29857 /^X\(\/\/\)$/{ s//\1/; q; }
29858 /^X\(\/\).*/{ s//\1/; q; }
29859 s/.*/./; q'`
29860 done
29861 test ! -n "$as_dirs" || mkdir $as_dirs
29862 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29863 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29864 { (exit 1); exit 1; }; }; }
29865
29866 ac_builddir=.
29867
29868 if test "$ac_dir" != .; then
29869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29870 # A "../" for each directory in $ac_dir_suffix.
29871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29872 else
29873 ac_dir_suffix= ac_top_builddir=
29874 fi
29875
29876 case $srcdir in
29877 .) # No --srcdir option. We are building in place.
29878 ac_srcdir=.
29879 if test -z "$ac_top_builddir"; then
29880 ac_top_srcdir=.
29881 else
29882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29883 fi ;;
29884 [\\/]* | ?:[\\/]* ) # Absolute path.
29885 ac_srcdir=$srcdir$ac_dir_suffix;
29886 ac_top_srcdir=$srcdir ;;
29887 *) # Relative path.
29888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29890 esac
29891
29892 # Do not use `cd foo && pwd` to compute absolute paths, because
29893 # the directories may not exist.
29894 case `pwd` in
29895 .) ac_abs_builddir="$ac_dir";;
29896 *)
29897 case "$ac_dir" in
29898 .) ac_abs_builddir=`pwd`;;
29899 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29900 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29901 esac;;
29902 esac
29903 case $ac_abs_builddir in
29904 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29905 *)
29906 case ${ac_top_builddir}. in
29907 .) ac_abs_top_builddir=$ac_abs_builddir;;
29908 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29909 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29910 esac;;
29911 esac
29912 case $ac_abs_builddir in
29913 .) ac_abs_srcdir=$ac_srcdir;;
29914 *)
29915 case $ac_srcdir in
29916 .) ac_abs_srcdir=$ac_abs_builddir;;
29917 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29918 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29919 esac;;
29920 esac
29921 case $ac_abs_builddir in
29922 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29923 *)
29924 case $ac_top_srcdir in
29925 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29926 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29927 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29928 esac;;
29929 esac
29930
29931
29932 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29933 echo "$as_me: executing $ac_dest commands" >&6;}
29934 case $ac_dest in
29935 default-1 )
29936 for ac_file in $CONFIG_FILES; do
29937 # Support "outfile[:infile[:infile...]]"
29938 case "$ac_file" in
29939 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
29940 esac
29941 # PO directories have a Makefile.in generated from Makefile.in.in.
29942 case "$ac_file" in */Makefile.in)
29943 # Adjust a relative srcdir.
29944 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
29945 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
29946 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
29947 # In autoconf-2.13 it is called $ac_given_srcdir.
29948 # In autoconf-2.50 it is called $srcdir.
29949 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
29950 case "$ac_given_srcdir" in
29951 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
29952 /*) top_srcdir="$ac_given_srcdir" ;;
29953 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
29954 esac
29955 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
29956 rm -f "$ac_dir/POTFILES"
29957 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
29958 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
29959 POMAKEFILEDEPS="POTFILES.in"
29960 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
29961 # on $ac_dir but don't depend on user-specified configuration
29962 # parameters.
29963 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
29964 # The LINGUAS file contains the set of available languages.
29965 if test -n "$OBSOLETE_ALL_LINGUAS"; then
29966 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
29967 fi
29968 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
29969 # Hide the ALL_LINGUAS assigment from automake.
29970 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
29971 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
29972 else
29973 # The set of available languages was given in configure.in.
29974 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
29975 fi
29976 case "$ac_given_srcdir" in
29977 .) srcdirpre= ;;
29978 *) srcdirpre='$(srcdir)/' ;;
29979 esac
29980 POFILES=
29981 GMOFILES=
29982 UPDATEPOFILES=
29983 DUMMYPOFILES=
29984 for lang in $ALL_LINGUAS; do
29985 POFILES="$POFILES $srcdirpre$lang.po"
29986 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
29987 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
29988 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
29989 done
29990 # CATALOGS depends on both $ac_dir and the user's LINGUAS
29991 # environment variable.
29992 INST_LINGUAS=
29993 if test -n "$ALL_LINGUAS"; then
29994 for presentlang in $ALL_LINGUAS; do
29995 useit=no
29996 if test "%UNSET%" != "$LINGUAS"; then
29997 desiredlanguages="$LINGUAS"
29998 else
29999 desiredlanguages="$ALL_LINGUAS"
30000 fi
30001 for desiredlang in $desiredlanguages; do
30002 # Use the presentlang catalog if desiredlang is
30003 # a. equal to presentlang, or
30004 # b. a variant of presentlang (because in this case,
30005 # presentlang can be used as a fallback for messages
30006 # which are not translated in the desiredlang catalog).
30007 case "$desiredlang" in
30008 "$presentlang"*) useit=yes;;
30009 esac
30010 done
30011 if test $useit = yes; then
30012 INST_LINGUAS="$INST_LINGUAS $presentlang"
30013 fi
30014 done
30015 fi
30016 CATALOGS=
30017 if test -n "$INST_LINGUAS"; then
30018 for lang in $INST_LINGUAS; do
30019 CATALOGS="$CATALOGS $lang.gmo"
30020 done
30021 fi
30022 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
30023 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
30024 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
30025 if test -f "$f"; then
30026 case "$f" in
30027 *.orig | *.bak | *~) ;;
30028 *) cat "$f" >> "$ac_dir/Makefile" ;;
30029 esac
30030 fi
30031 done
30032 fi
30033 ;;
30034 esac
30035 done ;;
30036 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30037 # Strip MF so we end up with the name of the file.
30038 mf=`echo "$mf" | sed -e 's/:.*$//'`
30039 # Check whether this is an Automake generated Makefile or not.
30040 # We used to match only the files named `Makefile.in', but
30041 # some people rename them; so instead we look at the file content.
30042 # Grep'ing the first line is not enough: some people post-process
30043 # each Makefile.in and add a new line on top of each file to say so.
30044 # So let's grep whole file.
30045 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30046 dirpart=`(dirname "$mf") 2>/dev/null ||
30047 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30048 X"$mf" : 'X\(//\)[^/]' \| \
30049 X"$mf" : 'X\(//\)$' \| \
30050 X"$mf" : 'X\(/\)' \| \
30051 . : '\(.\)' 2>/dev/null ||
30052 echo X"$mf" |
30053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30055 /^X\(\/\/\)$/{ s//\1/; q; }
30056 /^X\(\/\).*/{ s//\1/; q; }
30057 s/.*/./; q'`
30058 else
30059 continue
30060 fi
30061 # Extract the definition of DEPDIR, am__include, and am__quote
30062 # from the Makefile without running `make'.
30063 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30064 test -z "$DEPDIR" && continue
30065 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30066 test -z "am__include" && continue
30067 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30068 # When using ansi2knr, U may be empty or an underscore; expand it
30069 U=`sed -n 's/^U = //p' < "$mf"`
30070 # Find all dependency output files, they are included files with
30071 # $(DEPDIR) in their names. We invoke sed twice because it is the
30072 # simplest approach to changing $(DEPDIR) to its actual value in the
30073 # expansion.
30074 for file in `sed -n "
30075 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30076 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30077 # Make sure the directory exists.
30078 test -f "$dirpart/$file" && continue
30079 fdir=`(dirname "$file") 2>/dev/null ||
30080 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30081 X"$file" : 'X\(//\)[^/]' \| \
30082 X"$file" : 'X\(//\)$' \| \
30083 X"$file" : 'X\(/\)' \| \
30084 . : '\(.\)' 2>/dev/null ||
30085 echo X"$file" |
30086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30088 /^X\(\/\/\)$/{ s//\1/; q; }
30089 /^X\(\/\).*/{ s//\1/; q; }
30090 s/.*/./; q'`
30091 { if $as_mkdir_p; then
30092 mkdir -p $dirpart/$fdir
30093 else
30094 as_dir=$dirpart/$fdir
30095 as_dirs=
30096 while test ! -d "$as_dir"; do
30097 as_dirs="$as_dir $as_dirs"
30098 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30100 X"$as_dir" : 'X\(//\)[^/]' \| \
30101 X"$as_dir" : 'X\(//\)$' \| \
30102 X"$as_dir" : 'X\(/\)' \| \
30103 . : '\(.\)' 2>/dev/null ||
30104 echo X"$as_dir" |
30105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30107 /^X\(\/\/\)$/{ s//\1/; q; }
30108 /^X\(\/\).*/{ s//\1/; q; }
30109 s/.*/./; q'`
30110 done
30111 test ! -n "$as_dirs" || mkdir $as_dirs
30112 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30113 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30114 { (exit 1); exit 1; }; }; }
30115
30116 # echo "creating $dirpart/$file"
30117 echo '# dummy' > "$dirpart/$file"
30118 done
30119 done
30120 ;;
30121 esac
30122 done
30123 _ACEOF
30124
30125 cat >>$CONFIG_STATUS <<\_ACEOF
30126
30127 { (exit 0); exit 0; }
30128 _ACEOF
30129 chmod +x $CONFIG_STATUS
30130 ac_clean_files=$ac_clean_files_save
30131
30132
30133 # configure is writing to config.log, and then calls config.status.
30134 # config.status does its own redirection, appending to config.log.
30135 # Unfortunately, on DOS this fails, as config.log is still kept open
30136 # by configure, so config.status won't be able to write to it; its
30137 # output is simply discarded. So we exec the FD to /dev/null,
30138 # effectively closing config.log, so it can be properly (re)opened and
30139 # appended to by config.status. When coming back to configure, we
30140 # need to make the FD available again.
30141 if test "$no_create" != yes; then
30142 ac_cs_success=:
30143 ac_config_status_args=
30144 test "$silent" = yes &&
30145 ac_config_status_args="$ac_config_status_args --quiet"
30146 exec 5>/dev/null
30147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30148 exec 5>>config.log
30149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30150 # would make configure fail if this is the last instruction.
30151 $ac_cs_success || { (exit 1); exit 1; }
30152 fi
30153
30154
30155
30156 echo
30157 echo "Configuration:"
30158 echo
30159 echo " Install path: ${prefix}"
30160
30161 if test "$BEEP_PATH" != "no"; then
30162 echo " Current beep executable: $BEEP_PATH"
30163 fi
30164
30165 echo " Configuration path: \$HOME/$rc_path"
30166 echo
30167 echo " Use one plugin dir: $enable_one_plugin_dir"
30168 echo " Allow user plugin dir: $enable_user_plugin_dir"
30169 echo
30170 echo " XMMS Legacy"
30171 echo " -----------"
30172 echo " Equalization (works only with mpg123) $use_xmms_eq"
30173 echo
30174 echo " GNOME support"
30175 echo " -------------"
30176 echo " GConf support $enable_gconf"
30177 echo " VFS support $enable_gnomevfs"
30178 echo
30179 echo " Output Plugins"
30180 echo " --------------"
30181 echo " Open Sound System (oss): $have_oss"
30182 echo " Advanced Linux Sound Arch. (alsa): $have_alsa"
30183 echo " Enlightenment Sound Daemon (esd): $have_esd"
30184 echo
30185 echo " Input Plugins"
30186 echo " -------------"
30187 echo " MPEG 1/2/3 (mpg123): $enable_mp3"
30188 echo " + id3v2 editing: $have_id3lib"
30189 echo " CD Digital Audio (cdda): yes"
30190 echo " Microsoft WAV (wav): yes"
30191 echo " Ogg Vorbis (vorbis): $have_oggvorbis"
30192 echo ""
30193 echo " Visualization"
30194 echo " -------------"
30195 echo " Blur Scope: yes"
30196 echo
30197
30198 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then
30199 echo "Note: You need to have thread-safe xlibs to use beep."
30200 echo "If you are using libc5 thread aware Xlibs just skip this."
30201 echo ""
30202 echo "If you don't have those libs and you are on a libc5 system get them at:"
30203 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/"
30204 fi
30205
30206 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then
30207 echo ""
30208 echo "Note: Configure has discovered that you already have Audacious installed"
30209 echo "and it does not match with the given --prefix. You have Audacious installed "
30210 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin."
30211 echo
30212 echo "If you don't want two copies of Audacious installed, rerun configure with"
30213 echo "the --prefix option set to the location of the old Audacious, or uninstall"
30214 echo "the old Audacious."
30215 fi